From 51441272a781ba575149b214933f0c5b4bafb6ab Mon Sep 17 00:00:00 2001 From: Dan Onoshko Date: Thu, 17 Nov 2022 17:08:44 +0400 Subject: [PATCH] refactor: move to esm in sources (#10879) --- helpers/helpers.d.ts | 2 +- package.json | 24 +- pnpm-lock.yaml | 688 ++++++++++++------ rollup.config.js | 18 - src/controllers/controller.bar.js | 4 +- src/controllers/controller.bubble.js | 4 +- src/controllers/controller.doughnut.js | 10 +- src/controllers/controller.line.js | 8 +- src/controllers/controller.pie.js | 2 +- src/controllers/controller.polarArea.js | 4 +- src/controllers/controller.radar.js | 4 +- src/controllers/controller.scatter.js | 8 +- src/controllers/index.js | 16 +- src/core/core.adapters.ts | 4 +- src/core/core.animation.js | 6 +- src/core/core.animations.js | 8 +- src/core/core.animator.js | 6 +- src/core/core.config.js | 6 +- src/core/core.controller.js | 34 +- src/core/core.datasetController.js | 14 +- src/core/core.defaults.js | 10 +- src/core/core.element.ts | 8 +- src/core/core.interaction.js | 16 +- src/core/core.layouts.js | 6 +- src/core/core.plugins.js | 12 +- src/core/core.registry.js | 14 +- src/core/core.scale.autoskip.js | 8 +- src/core/core.scale.defaults.js | 2 +- src/core/core.scale.js | 16 +- src/core/core.ticks.js | 6 +- src/core/core.typedRegistry.js | 4 +- src/core/index.ts | 30 +- src/elements/element.arc.ts | 10 +- src/elements/element.bar.js | 8 +- src/elements/element.line.js | 14 +- src/elements/element.point.ts | 18 +- src/elements/index.js | 8 +- src/helpers/helpers.canvas.js | 8 +- src/helpers/helpers.collection.ts | 2 +- src/helpers/helpers.color.ts | 6 +- src/helpers/helpers.config.js | 2 +- src/helpers/helpers.core.ts | 4 +- src/helpers/helpers.curve.ts | 6 +- src/helpers/helpers.dom.ts | 10 +- src/helpers/helpers.easing.ts | 2 +- src/helpers/helpers.extras.ts | 8 +- src/helpers/helpers.interpolation.ts | 4 +- src/helpers/helpers.math.ts | 4 +- src/helpers/helpers.options.ts | 10 +- src/helpers/helpers.segment.js | 8 +- src/helpers/index.ts | 30 +- src/helpers/types.ts | 28 +- src/index.ts | 20 +- src/index.umd.ts | 38 +- src/platform/index.js | 8 +- src/platform/platform.base.js | 4 +- src/platform/platform.basic.js | 2 +- src/platform/platform.dom.js | 10 +- src/plugins/index.js | 14 +- src/plugins/plugin.colors.ts | 2 +- src/plugins/plugin.decimation.js | 2 +- src/plugins/plugin.filler/filler.drawing.js | 6 +- src/plugins/plugin.filler/filler.helper.js | 12 +- src/plugins/plugin.filler/filler.options.js | 10 +- src/plugins/plugin.filler/filler.segment.js | 2 +- src/plugins/plugin.filler/filler.target.js | 16 +- .../plugin.filler/filler.target.stack.js | 12 +- src/plugins/plugin.filler/index.js | 8 +- src/plugins/plugin.filler/simpleArc.js | 2 +- src/plugins/plugin.legend.js | 16 +- src/plugins/plugin.subtitle.js | 4 +- src/plugins/plugin.title.js | 10 +- src/plugins/plugin.tooltip.js | 24 +- src/scales/index.js | 12 +- src/scales/scale.category.js | 4 +- src/scales/scale.linear.js | 8 +- src/scales/scale.linearbase.js | 8 +- src/scales/scale.logarithmic.js | 12 +- src/scales/scale.radialLinear.js | 14 +- src/scales/scale.time.js | 14 +- src/scales/scale.timeseries.js | 4 +- src/types.ts | 6 +- .../typescript-node-next/tsconfig.json | 1 + .../integration/typescript-node/tsconfig.json | 1 + tsconfig.json | 8 +- types/animation.d.ts | 4 +- types/helpers/helpers.canvas.d.ts | 8 +- types/helpers/index.d.ts | 6 +- types/index.d.ts | 39 +- types/layout.d.ts | 2 +- types/tests/animation.ts | 2 +- types/tests/chart_types.ts | 2 +- types/tests/controllers/bar_floating_data.ts | 2 +- .../tests/controllers/bubble_chart_options.ts | 2 +- .../tests/controllers/doughnut_meta_total.ts | 2 +- types/tests/controllers/doughnut_offset.ts | 2 +- .../controllers/doughnut_outer_radius.ts | 2 +- .../line_scriptable_parsed_data.ts | 2 +- types/tests/controllers/line_segments.ts | 2 +- types/tests/controllers/line_span_gaps.ts | 2 +- types/tests/controllers/line_styling_array.ts | 2 +- .../radar_dataset_indexable_options.ts | 2 +- types/tests/data_types.ts | 2 +- types/tests/dataset_null_data.ts | 2 +- types/tests/date_adapter.ts | 2 +- types/tests/defaults.ts | 2 +- .../elements/scriptable_element_options.ts | 2 +- types/tests/extensions/plugin.ts | 2 +- types/tests/extensions/scale.ts | 4 +- types/tests/helpers/options.ts | 2 +- types/tests/layout/position.ts | 2 +- types/tests/options.ts | 2 +- types/tests/overrides.ts | 2 +- types/tests/parsed.data.type.ts | 2 +- types/tests/plugins/defaults.ts | 2 +- .../plugin.decimation/decimation_algorithm.ts | 2 +- .../plugins/plugin.filler/fill_target_true.ts | 2 +- .../plugins/plugin.tooltip/chart.tooltip.ts | 2 +- .../plugin.tooltip/tooltip_dataset_type.ts | 2 +- .../plugin.tooltip/tooltip_parsed_data.ts | 2 +- .../tooltip_parsed_data_chart_defaults.ts | 2 +- .../tooltip_scriptable_background_color.ts | 2 +- types/tests/scales/chart_options.ts | 2 +- types/tests/scales/options.ts | 2 +- types/tests/scales/time_string_max.ts | 2 +- types/tests/scriptable.ts | 2 +- types/tests/scriptable_core_chart_options.ts | 2 +- types/tests/test_instance_assignment.ts | 2 +- 128 files changed, 950 insertions(+), 693 deletions(-) diff --git a/helpers/helpers.d.ts b/helpers/helpers.d.ts index 451fa58f739..3870461f29b 100644 --- a/helpers/helpers.d.ts +++ b/helpers/helpers.d.ts @@ -1 +1 @@ -export * from '../dist/helpers.js'; +export * from '../dist/helpers/index.js'; diff --git a/package.json b/package.json index 06b5ea7356f..08505a3b5c3 100644 --- a/package.json +++ b/package.json @@ -46,11 +46,14 @@ "auto/**", "dist/**", "!dist/docs/**", - "helpers/**" + "helpers/**", + "types/**/*.ts", + "!types/tests/**" ], "scripts": { "autobuild": "rollup -c -w", - "build": "tsc --noEmit && rollup -c", + "emitDeclarations": "tsc --emitDeclarationOnly", + "build": "rollup -c && pnpm emitDeclarations", "dev": "karma start ./karma.conf.cjs --auto-watch --no-single-run --browsers chrome --grep", "dev:ff": "karma start ./karma.conf.cjs --auto-watch --no-single-run --browsers firefox --grep", "docs": "pnpm run build && pnpm --filter \"./docs/**\" build", @@ -67,12 +70,12 @@ }, "devDependencies": { "@kurkle/color": "^0.2.1", - "@rollup/plugin-commonjs": "^22.0.2", - "@rollup/plugin-inject": "^4.0.4", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.3.0", + "@rollup/plugin-commonjs": "^23.0.2", + "@rollup/plugin-inject": "^5.0.2", + "@rollup/plugin-json": "^5.0.1", + "@rollup/plugin-node-resolve": "^15.0.1", "@size-limit/preset-big-lib": "^8.0.0", - "@swc/core": "^1.2.224", + "@swc/core": "^1.3.18", "@types/estree": "^1.0.0", "@types/offscreencanvas": "^2019.7.0", "@typescript-eslint/eslint-plugin": "^5.32.0", @@ -106,11 +109,10 @@ "moment": "^2.29.4", "moment-timezone": "^0.5.34", "pixelmatch": "^5.3.0", - "rollup": "^2.77.2", + "rollup": "^3.3.0", "rollup-plugin-cleanup": "^3.2.1", - "rollup-plugin-dts": "^4.2.2", - "rollup-plugin-istanbul": "^3.0.0", - "rollup-plugin-swc3": "^0.3.0", + "rollup-plugin-istanbul": "^4.0.0", + "rollup-plugin-swc3": "^0.7.0", "rollup-plugin-terser": "^7.0.2", "size-limit": "^8.0.0", "typescript": "^4.7.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 60fa8c7db20..bd7b1a85a6f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,12 +8,12 @@ importers: .: specifiers: '@kurkle/color': ^0.2.1 - '@rollup/plugin-commonjs': ^22.0.2 - '@rollup/plugin-inject': ^4.0.4 - '@rollup/plugin-json': ^4.1.0 - '@rollup/plugin-node-resolve': ^13.3.0 + '@rollup/plugin-commonjs': ^23.0.2 + '@rollup/plugin-inject': ^5.0.2 + '@rollup/plugin-json': ^5.0.1 + '@rollup/plugin-node-resolve': ^15.0.1 '@size-limit/preset-big-lib': ^8.0.0 - '@swc/core': ^1.2.224 + '@swc/core': ^1.3.18 '@types/estree': ^1.0.0 '@types/offscreencanvas': ^2019.7.0 '@typescript-eslint/eslint-plugin': ^5.32.0 @@ -47,23 +47,22 @@ importers: moment: ^2.29.4 moment-timezone: ^0.5.34 pixelmatch: ^5.3.0 - rollup: ^2.77.2 + rollup: ^3.3.0 rollup-plugin-cleanup: ^3.2.1 - rollup-plugin-dts: ^4.2.2 - rollup-plugin-istanbul: ^3.0.0 - rollup-plugin-swc3: ^0.3.0 + rollup-plugin-istanbul: ^4.0.0 + rollup-plugin-swc3: ^0.7.0 rollup-plugin-terser: ^7.0.2 size-limit: ^8.0.0 typescript: ^4.7.4 yargs: ^17.5.1 devDependencies: '@kurkle/color': 0.2.1 - '@rollup/plugin-commonjs': 22.0.2_rollup@2.77.2 - '@rollup/plugin-inject': 4.0.4_rollup@2.77.2 - '@rollup/plugin-json': 4.1.0_rollup@2.77.2 - '@rollup/plugin-node-resolve': 13.3.0_rollup@2.77.2 - '@size-limit/preset-big-lib': 8.0.1_hddtpos5jfkc23eqwxrdgcpq3u - '@swc/core': 1.2.241 + '@rollup/plugin-commonjs': 23.0.2_rollup@3.3.0 + '@rollup/plugin-inject': 5.0.2_rollup@3.3.0 + '@rollup/plugin-json': 5.0.1_rollup@3.3.0 + '@rollup/plugin-node-resolve': 15.0.1_rollup@3.3.0 + '@size-limit/preset-big-lib': 8.0.1_47jnvg6nx7r3rk772firp3f63y + '@swc/core': 1.3.18 '@types/estree': 1.0.0 '@types/offscreencanvas': 2019.7.0 '@typescript-eslint/eslint-plugin': 5.32.0_iosr3hrei2tubxveewluhu5lhy @@ -90,19 +89,18 @@ importers: karma-firefox-launcher: 2.1.2 karma-jasmine: 4.0.2_karma@6.4.0 karma-jasmine-html-reporter: 1.7.0_yivd6d3oqtt7z3iozna2k5bmk4 - karma-rollup-preprocessor: 7.0.7_rollup@2.77.2 + karma-rollup-preprocessor: 7.0.7_rollup@3.3.0 karma-safari-private-launcher: 1.0.0 karma-spec-reporter: 0.0.32_karma@6.4.0 luxon: 3.0.1 moment: 2.29.4 moment-timezone: 0.5.34 pixelmatch: 5.3.0 - rollup: 2.77.2 - rollup-plugin-cleanup: 3.2.1_rollup@2.77.2 - rollup-plugin-dts: 4.2.2_oo3i3f3qmqiztdz5qgxrrjmd5e - rollup-plugin-istanbul: 3.0.0_rollup@2.77.2 - rollup-plugin-swc3: 0.3.0_niznp7c4dpiumotw6saahmrjuy - rollup-plugin-terser: 7.0.2_rollup@2.77.2 + rollup: 3.3.0 + rollup-plugin-cleanup: 3.2.1_rollup@3.3.0 + rollup-plugin-istanbul: 4.0.0_rollup@3.3.0 + rollup-plugin-swc3: 0.7.0_e2f5yg54cs4fzvddguvwzmdrmi + rollup-plugin-terser: 7.0.2_rollup@3.3.0 size-limit: 8.0.1 typescript: 4.7.4 yargs: 17.5.1 @@ -147,6 +145,108 @@ importers: vuepress-theme-chartjs: 0.2.0_vue@2.7.8 webpack: 4.46.0 + package: + specifiers: + '@kurkle/color': ^0.2.1 + '@rollup/plugin-commonjs': ^23.0.2 + '@rollup/plugin-inject': ^5.0.2 + '@rollup/plugin-json': ^5.0.1 + '@rollup/plugin-node-resolve': ^15.0.1 + '@size-limit/preset-big-lib': ^8.0.0 + '@swc/core': ^1.3.18 + '@types/estree': ^1.0.0 + '@types/offscreencanvas': ^2019.7.0 + '@typescript-eslint/eslint-plugin': ^5.32.0 + '@typescript-eslint/parser': ^5.32.0 + chartjs-adapter-luxon: ^1.2.0 + chartjs-adapter-moment: ^1.0.0 + chartjs-test-utils: ^0.4.0 + concurrently: ^7.3.0 + coveralls: ^3.1.1 + cross-env: ^7.0.3 + eslint: ^8.21.0 + eslint-config-chartjs: ^0.3.0 + eslint-plugin-es: ^4.1.0 + eslint-plugin-html: ^7.1.0 + eslint-plugin-markdown: ^3.0.0 + esm: ^3.2.25 + glob: ^8.0.3 + jasmine: ^3.7.0 + jasmine-core: ^3.7.1 + karma: ^6.3.2 + karma-chrome-launcher: ^3.1.0 + karma-coverage: ^2.0.3 + karma-edge-launcher: ^0.4.2 + karma-firefox-launcher: ^2.1.0 + karma-jasmine: ^4.0.1 + karma-jasmine-html-reporter: ^1.5.4 + karma-rollup-preprocessor: 7.0.7 + karma-safari-private-launcher: ^1.0.0 + karma-spec-reporter: 0.0.32 + luxon: ^3.0.1 + moment: ^2.29.4 + moment-timezone: ^0.5.34 + pixelmatch: ^5.3.0 + rollup: ^3.3.0 + rollup-plugin-cleanup: ^3.2.1 + rollup-plugin-dts: ^4.2.2 + rollup-plugin-istanbul: ^4.0.0 + rollup-plugin-swc3: ^0.7.0 + rollup-plugin-terser: ^7.0.2 + size-limit: ^8.0.0 + typescript: ^4.7.4 + yargs: ^17.5.1 + devDependencies: + '@kurkle/color': 0.2.1 + '@rollup/plugin-commonjs': 23.0.2_rollup@3.3.0 + '@rollup/plugin-inject': 5.0.2_rollup@3.3.0 + '@rollup/plugin-json': 5.0.1_rollup@3.3.0 + '@rollup/plugin-node-resolve': 15.0.1_rollup@3.3.0 + '@size-limit/preset-big-lib': 8.0.1_47jnvg6nx7r3rk772firp3f63y + '@swc/core': 1.3.18 + '@types/estree': 1.0.0 + '@types/offscreencanvas': 2019.7.0 + '@typescript-eslint/eslint-plugin': 5.32.0_iosr3hrei2tubxveewluhu5lhy + '@typescript-eslint/parser': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq + chartjs-adapter-luxon: 1.2.0_luxon@3.0.1 + chartjs-adapter-moment: 1.0.0_moment@2.29.4 + chartjs-test-utils: 0.4.0_wlkifrf2gjdasqfukx67z26wni + concurrently: 7.3.0 + coveralls: 3.1.1 + cross-env: 7.0.3 + eslint: 8.21.0 + eslint-config-chartjs: 0.3.0 + eslint-plugin-es: 4.1.0_eslint@8.21.0 + eslint-plugin-html: 7.1.0 + eslint-plugin-markdown: 3.0.0_eslint@8.21.0 + esm: 3.2.25 + glob: 8.0.3 + jasmine: 3.99.0 + jasmine-core: 3.99.1 + karma: 6.4.0 + karma-chrome-launcher: 3.1.1 + karma-coverage: 2.2.0 + karma-edge-launcher: 0.4.2_karma@6.4.0 + karma-firefox-launcher: 2.1.2 + karma-jasmine: 4.0.2_karma@6.4.0 + karma-jasmine-html-reporter: 1.7.0_yivd6d3oqtt7z3iozna2k5bmk4 + karma-rollup-preprocessor: 7.0.7_rollup@3.3.0 + karma-safari-private-launcher: 1.0.0 + karma-spec-reporter: 0.0.32_karma@6.4.0 + luxon: 3.0.1 + moment: 2.29.4 + moment-timezone: 0.5.34 + pixelmatch: 5.3.0 + rollup: 3.3.0 + rollup-plugin-cleanup: 3.2.1_rollup@3.3.0 + rollup-plugin-dts: 4.2.2_ltfkimcuim2tiqojakuazqhfme + rollup-plugin-istanbul: 4.0.0_rollup@3.3.0 + rollup-plugin-swc3: 0.7.0_e2f5yg54cs4fzvddguvwzmdrmi + rollup-plugin-terser: 7.0.2_rollup@3.3.0 + size-limit: 8.0.1 + typescript: 4.7.4 + yargs: 17.5.1 + test/integration/node: specifiers: chart.js: workspace:* @@ -234,6 +334,11 @@ packages: resolution: {integrity: sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==} engines: {node: '>=6.9.0'} + /@babel/compat-data/7.20.1: + resolution: {integrity: sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/core/7.18.10: resolution: {integrity: sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==} engines: {node: '>=6.9.0'} @@ -256,6 +361,29 @@ packages: transitivePeerDependencies: - supports-color + /@babel/core/7.20.2: + resolution: {integrity: sha512-w7DbG8DtMrJcFOi4VrLm+8QM4az8Mo+PuLBKLp2zrYRCow8W/f9xiXm5sN53C8HksCyDQwCKha9JiDoIyPjT2g==} + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': 2.2.0 + '@babel/code-frame': 7.18.6 + '@babel/generator': 7.20.4 + '@babel/helper-compilation-targets': 7.20.0_@babel+core@7.20.2 + '@babel/helper-module-transforms': 7.20.2 + '@babel/helpers': 7.20.1 + '@babel/parser': 7.20.3 + '@babel/template': 7.18.10 + '@babel/traverse': 7.20.1 + '@babel/types': 7.20.2 + convert-source-map: 1.9.0 + debug: 4.3.4 + gensync: 1.0.0-beta.2 + json5: 2.2.1 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + /@babel/eslint-parser/7.18.9_xqt7ek4fk233nrovqiamjvck4u: resolution: {integrity: sha512-KzSGpMBggz4fKbRbWLNyPVTuQr6cmCcBhOyXTw/fieOVaw5oYAwcAj4a7UKcDYCPxQq+CG1NCDZH9e2JTXquiQ==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} @@ -278,6 +406,15 @@ packages: '@jridgewell/gen-mapping': 0.3.2 jsesc: 2.5.2 + /@babel/generator/7.20.4: + resolution: {integrity: sha512-luCf7yk/cm7yab6CAW1aiFnmEfBJplb/JojV56MYEK7ziWfGmFlTfmL9Ehwfy4gFhbjBfWO1wj7/TuSbVNEEtA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.20.2 + '@jridgewell/gen-mapping': 0.3.2 + jsesc: 2.5.2 + dev: true + /@babel/helper-annotate-as-pure/7.18.6: resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==} engines: {node: '>=6.9.0'} @@ -303,6 +440,19 @@ packages: browserslist: 4.21.3 semver: 6.3.0 + /@babel/helper-compilation-targets/7.20.0_@babel+core@7.20.2: + resolution: {integrity: sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/compat-data': 7.20.1 + '@babel/core': 7.20.2 + '@babel/helper-validator-option': 7.18.6 + browserslist: 4.21.4 + semver: 6.3.0 + dev: true + /@babel/helper-create-class-features-plugin/7.18.9_@babel+core@7.18.10: resolution: {integrity: sha512-WvypNAYaVh23QcjpMR24CwZY2Nz6hqdOcFdPbNpV56hL5H6KiFheO7Xm1aPdlLQ7d5emYZX7VZwPp9x3z+2opw==} engines: {node: '>=6.9.0'} @@ -362,11 +512,19 @@ packages: '@babel/template': 7.18.10 '@babel/types': 7.18.10 + /@babel/helper-function-name/7.19.0: + resolution: {integrity: sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.18.10 + '@babel/types': 7.20.2 + dev: true + /@babel/helper-hoist-variables/7.18.6: resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.10 + '@babel/types': 7.20.2 /@babel/helper-member-expression-to-functions/7.18.9: resolution: {integrity: sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==} @@ -378,7 +536,7 @@ packages: resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.10 + '@babel/types': 7.20.2 /@babel/helper-module-transforms/7.18.9: resolution: {integrity: sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g==} @@ -395,6 +553,22 @@ packages: transitivePeerDependencies: - supports-color + /@babel/helper-module-transforms/7.20.2: + resolution: {integrity: sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-environment-visitor': 7.18.9 + '@babel/helper-module-imports': 7.18.6 + '@babel/helper-simple-access': 7.20.2 + '@babel/helper-split-export-declaration': 7.18.6 + '@babel/helper-validator-identifier': 7.19.1 + '@babel/template': 7.18.10 + '@babel/traverse': 7.20.1 + '@babel/types': 7.20.2 + transitivePeerDependencies: + - supports-color + dev: true + /@babel/helper-optimise-call-expression/7.18.6: resolution: {integrity: sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==} engines: {node: '>=6.9.0'} @@ -437,6 +611,13 @@ packages: dependencies: '@babel/types': 7.18.10 + /@babel/helper-simple-access/7.20.2: + resolution: {integrity: sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.20.2 + dev: true + /@babel/helper-skip-transparent-expression-wrappers/7.18.9: resolution: {integrity: sha512-imytd2gHi3cJPsybLRbmFrF7u5BIEuI2cNheyKi3/iOBC63kNn3q8Crn2xVuESli0aM4KYsyEqKyS7lFL8YVtw==} engines: {node: '>=6.9.0'} @@ -447,16 +628,24 @@ packages: resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.10 + '@babel/types': 7.20.2 /@babel/helper-string-parser/7.18.10: resolution: {integrity: sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==} engines: {node: '>=6.9.0'} + /@babel/helper-string-parser/7.19.4: + resolution: {integrity: sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==} + engines: {node: '>=6.9.0'} + /@babel/helper-validator-identifier/7.18.6: resolution: {integrity: sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==} engines: {node: '>=6.9.0'} + /@babel/helper-validator-identifier/7.19.1: + resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==} + engines: {node: '>=6.9.0'} + /@babel/helper-validator-option/7.18.6: resolution: {integrity: sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==} engines: {node: '>=6.9.0'} @@ -482,11 +671,22 @@ packages: transitivePeerDependencies: - supports-color + /@babel/helpers/7.20.1: + resolution: {integrity: sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.18.10 + '@babel/traverse': 7.20.1 + '@babel/types': 7.20.2 + transitivePeerDependencies: + - supports-color + dev: true + /@babel/highlight/7.18.6: resolution: {integrity: sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.18.6 + '@babel/helper-validator-identifier': 7.19.1 chalk: 2.4.2 js-tokens: 4.0.0 @@ -497,6 +697,13 @@ packages: dependencies: '@babel/types': 7.18.10 + /@babel/parser/7.20.3: + resolution: {integrity: sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.20.2 + /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/7.18.6_@babel+core@7.18.10: resolution: {integrity: sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==} engines: {node: '>=6.9.0'} @@ -1452,8 +1659,8 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.18.6 - '@babel/parser': 7.18.11 - '@babel/types': 7.18.10 + '@babel/parser': 7.20.3 + '@babel/types': 7.20.2 /@babel/traverse/7.18.11: resolution: {integrity: sha512-TG9PiM2R/cWCAy6BPJKeHzNbu4lPzOSZpeMfeNErskGpTJx6trEvFaVCbDvpcxwy49BKWmEPwiW8mrysNiDvIQ==} @@ -1472,6 +1679,24 @@ packages: transitivePeerDependencies: - supports-color + /@babel/traverse/7.20.1: + resolution: {integrity: sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.18.6 + '@babel/generator': 7.20.4 + '@babel/helper-environment-visitor': 7.18.9 + '@babel/helper-function-name': 7.19.0 + '@babel/helper-hoist-variables': 7.18.6 + '@babel/helper-split-export-declaration': 7.18.6 + '@babel/parser': 7.20.3 + '@babel/types': 7.20.2 + debug: 4.3.4 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + /@babel/types/7.18.10: resolution: {integrity: sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==} engines: {node: '>=6.9.0'} @@ -1480,6 +1705,14 @@ packages: '@babel/helper-validator-identifier': 7.18.6 to-fast-properties: 2.0.0 + /@babel/types/7.20.2: + resolution: {integrity: sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.19.4 + '@babel/helper-validator-identifier': 7.19.1 + to-fast-properties: 2.0.0 + /@bcoe/v8-coverage/0.2.3: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: false @@ -1644,6 +1877,10 @@ packages: transitivePeerDependencies: - supports-color + /@fastify/deepmerge/1.1.0: + resolution: {integrity: sha512-E8Hfdvs1bG6u0N4vN5Nty6JONUfTdOciyD5rn8KnEsLKIenvOVcr210BQR9t34PRkNyjqnMLGk3e0BsaxRdL+g==} + dev: true + /@humanwhocodes/config-array/0.10.4: resolution: {integrity: sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==} engines: {node: '>=10.10.0'} @@ -2041,40 +2278,50 @@ packages: rollup: 2.77.2 dev: false - /@rollup/plugin-commonjs/22.0.2_rollup@2.77.2: - resolution: {integrity: sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg==} - engines: {node: '>= 12.0.0'} + /@rollup/plugin-commonjs/23.0.2_rollup@3.3.0: + resolution: {integrity: sha512-e9ThuiRf93YlVxc4qNIurvv+Hp9dnD+4PjOqQs5vAYfcZ3+AXSrcdzXnVjWxcGQOa6KGJFcRZyUI3ktWLavFjg==} + engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^2.68.0 + rollup: ^2.68.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true dependencies: - '@rollup/pluginutils': 3.1.0_rollup@2.77.2 + '@rollup/pluginutils': 5.0.2_rollup@3.3.0 commondir: 1.0.1 estree-walker: 2.0.2 - glob: 7.2.3 + glob: 8.0.3 is-reference: 1.2.1 - magic-string: 0.25.9 - resolve: 1.22.1 - rollup: 2.77.2 + magic-string: 0.26.7 + rollup: 3.3.0 dev: true - /@rollup/plugin-inject/4.0.4_rollup@2.77.2: - resolution: {integrity: sha512-4pbcU4J/nS+zuHk+c+OL3WtmEQhqxlZ9uqfjQMQDOHOPld7PsCd8k5LWs8h5wjwJN7MgnAn768F2sDxEP4eNFQ==} + /@rollup/plugin-inject/5.0.2_rollup@3.3.0: + resolution: {integrity: sha512-zRthPC/sZ2OaQwPh2LvFn0A+3SyMAZR1Vqsp89mWkIuGXKswT8ty1JWj1pf7xdZvft4gHZaCuhdopuiCwjclWg==} + engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^1.20.0 || ^2.0.0 + rollup: ^1.20.0||^2.0.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true dependencies: - '@rollup/pluginutils': 3.1.0_rollup@2.77.2 + '@rollup/pluginutils': 5.0.2_rollup@3.3.0 estree-walker: 2.0.2 - magic-string: 0.25.9 - rollup: 2.77.2 + magic-string: 0.26.7 + rollup: 3.3.0 dev: true - /@rollup/plugin-json/4.1.0_rollup@2.77.2: - resolution: {integrity: sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==} + /@rollup/plugin-json/5.0.1_rollup@3.3.0: + resolution: {integrity: sha512-QCwhZZLvM8nRcTHyR1vOgyTMiAnjiNj1ebD/BMRvbO1oc/z14lZH6PfxXeegee2B6mky/u9fia4fxRM4TqrUaw==} + engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^1.20.0 || ^2.0.0 + rollup: ^1.20.0||^2.0.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true dependencies: - '@rollup/pluginutils': 3.1.0_rollup@2.77.2 - rollup: 2.77.2 + '@rollup/pluginutils': 5.0.2_rollup@3.3.0 + rollup: 3.3.0 dev: true /@rollup/plugin-node-resolve/11.2.1_rollup@2.77.2: @@ -2092,19 +2339,22 @@ packages: rollup: 2.77.2 dev: false - /@rollup/plugin-node-resolve/13.3.0_rollup@2.77.2: - resolution: {integrity: sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==} - engines: {node: '>= 10.0.0'} + /@rollup/plugin-node-resolve/15.0.1_rollup@3.3.0: + resolution: {integrity: sha512-ReY88T7JhJjeRVbfCyNj+NXAG3IIsVMsX9b5/9jC98dRP8/yxlZdz7mHZbHk5zHr24wZZICS5AcXsFZAXYUQEg==} + engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^2.42.0 + rollup: ^2.78.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true dependencies: - '@rollup/pluginutils': 3.1.0_rollup@2.77.2 - '@types/resolve': 1.17.1 + '@rollup/pluginutils': 5.0.2_rollup@3.3.0 + '@types/resolve': 1.20.2 deepmerge: 4.2.2 is-builtin-module: 3.2.0 is-module: 1.0.0 resolve: 1.22.1 - rollup: 2.77.2 + rollup: 3.3.0 dev: true /@rollup/plugin-replace/2.4.2_rollup@2.77.2: @@ -2127,6 +2377,7 @@ packages: estree-walker: 1.0.1 picomatch: 2.3.1 rollup: 2.77.2 + dev: false /@rollup/pluginutils/4.2.1: resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} @@ -2136,6 +2387,21 @@ packages: picomatch: 2.3.1 dev: true + /@rollup/pluginutils/5.0.2_rollup@3.3.0: + resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@types/estree': 1.0.0 + estree-walker: 2.0.2 + picomatch: 2.3.1 + rollup: 3.3.0 + dev: true + /@rushstack/eslint-patch/1.1.4: resolution: {integrity: sha512-LwzQKA4vzIct1zNZzBmRKI9QuNpLgTQMEjsQLf3BXuGYb3QPTP4Yjf6mkdX+X1mYttZ808QpOwAzZjv28kq7DA==} dev: false @@ -2199,14 +2465,14 @@ packages: size-limit: 8.0.1 dev: true - /@size-limit/preset-big-lib/8.0.1_hddtpos5jfkc23eqwxrdgcpq3u: + /@size-limit/preset-big-lib/8.0.1_47jnvg6nx7r3rk772firp3f63y: resolution: {integrity: sha512-X4BpAv5Cm7Y7lcTQjo2rJdUtFQTN6K5rG42T4CcL3ZGWFk3VH1NZaCf82rPWD9io1yCVAGrrDvnEjYRy/wtyLQ==} peerDependencies: size-limit: 8.0.1 dependencies: '@size-limit/file': 8.0.1_size-limit@8.0.1 '@size-limit/time': 8.0.1_size-limit@8.0.1 - '@size-limit/webpack': 8.0.1_hddtpos5jfkc23eqwxrdgcpq3u + '@size-limit/webpack': 8.0.1_47jnvg6nx7r3rk772firp3f63y size-limit: 8.0.1 transitivePeerDependencies: - '@swc/core' @@ -2235,7 +2501,7 @@ packages: - utf-8-validate dev: true - /@size-limit/webpack/8.0.1_hddtpos5jfkc23eqwxrdgcpq3u: + /@size-limit/webpack/8.0.1_47jnvg6nx7r3rk772firp3f63y: resolution: {integrity: sha512-bSIku0LoDsL520B3BRa/Rkn453r3SB2RRijsd7nZnApJebjMKeWE9gA0zoQ/yDc2c513FRDus4dztvPiDoMCkA==} engines: {node: ^14.0.0 || ^16.0.0 || >=18.0.0} peerDependencies: @@ -2244,7 +2510,7 @@ packages: escape-string-regexp: 4.0.0 nanoid: 3.3.4 size-limit: 8.0.1 - webpack: 5.74.0_@swc+core@1.2.241 + webpack: 5.74.0_@swc+core@1.3.18 transitivePeerDependencies: - '@swc/core' - esbuild @@ -2370,30 +2636,8 @@ packages: - supports-color dev: false - /@swc/core-android-arm-eabi/1.2.241: - resolution: {integrity: sha512-VfbyFAQ+JT4kl4a7kPFM4pUSLHXnJ/bKIW0gAsVngBIcu73cz59HlylKiOtmx3UtXPsYu0Ort/qfC/UJfeEgrQ==} - engines: {node: '>=10'} - cpu: [arm] - os: [android] - requiresBuild: true - dependencies: - '@swc/wasm': 1.2.122 - dev: true - optional: true - - /@swc/core-android-arm64/1.2.241: - resolution: {integrity: sha512-WAJW542fxtO5iTP/vrBrf64dWfBq6rmWgL0HpM+ENFbqO4ME0xO49ky+5rMRAQdtwnJ5ZNkCvb49J+iIIY6yaw==} - engines: {node: '>=10'} - cpu: [arm64] - os: [android] - requiresBuild: true - dependencies: - '@swc/wasm': 1.2.130 - dev: true - optional: true - - /@swc/core-darwin-arm64/1.2.241: - resolution: {integrity: sha512-5lQaguosciAN6kOfmNY1UeitrwMyPUt4d/Z70A1ac5e1ZFuYlhOxGHuhkz6abEewLkS/b1CGruSAtphEEVGLmw==} + /@swc/core-darwin-arm64/1.3.18: + resolution: {integrity: sha512-4UEQ+LyzDFTszEy4LCU50h4cjVNJcNwD87aVBT/8i6YXj5dyMki/TrkIQ6Bhv7g5beg2GRncB2ndjN66r8I8+w==} engines: {node: '>=10'} cpu: [arm64] os: [darwin] @@ -2401,8 +2645,8 @@ packages: dev: true optional: true - /@swc/core-darwin-x64/1.2.241: - resolution: {integrity: sha512-VtcCBdhOktYPDnEEL0f+pfGmvjIlmXWMZKIb48WTYunxwsehxQk79ZkLXc+TwZ3ur9GEoZHh31RaKqOj4QDHpQ==} + /@swc/core-darwin-x64/1.3.18: + resolution: {integrity: sha512-DSCd7eVr+4ukffNnvhrFmUoCF0VLOXPgGmdwm6u0irLWOLtr2VZNZcf7UF+t/Y9jPKmXz3OY6lVgwtjxZhiklQ==} engines: {node: '>=10'} cpu: [x64] os: [darwin] @@ -2410,30 +2654,17 @@ packages: dev: true optional: true - /@swc/core-freebsd-x64/1.2.241: - resolution: {integrity: sha512-i12GxWnm1LuvZ9T0HVB8+CFIhcFzTxu3u2U97LZNb7vbHGHehUwIb6GmTwUbF+wEdFkwsIKWTf3RpvnEejWUsA==} - engines: {node: '>=10'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dependencies: - '@swc/wasm': 1.2.130 - dev: true - optional: true - - /@swc/core-linux-arm-gnueabihf/1.2.241: - resolution: {integrity: sha512-lTSiPkfEscfYEZxsKLbVqISRvCcatB+h7eENy0+Qdqqyio0yTOMfG7837jZhfy1hCjAwT8x2sh77fbvfQD4dRA==} + /@swc/core-linux-arm-gnueabihf/1.3.18: + resolution: {integrity: sha512-9dy6qJiWAls9OrBvrWbFDbjEkuOPrEP6OsKyrQWTMqLjCLwgLa3g4yC0YtPdUa/A8uyNVKtRcq+NXoKW+mP/QQ==} engines: {node: '>=10'} cpu: [arm] os: [linux] requiresBuild: true - dependencies: - '@swc/wasm': 1.2.130 dev: true optional: true - /@swc/core-linux-arm64-gnu/1.2.241: - resolution: {integrity: sha512-H6lTvd6nm4eaOi4Ledo5z1a6LXzJ2WpHTRsf3FssM9qqwFmbvNIz9vCTI4jCR5Y3Ed3jlmQli+znzmWJ/qzLLQ==} + /@swc/core-linux-arm64-gnu/1.3.18: + resolution: {integrity: sha512-8FZjiUSM4JBQTD4sV7Y6BNMdo0oDlqa8xYVaAimuIBL8ixD/Fb+0GIxKdB59yKRVQyuXJRa6Pwzd7zk3wY5T0Q==} engines: {node: '>=10'} cpu: [arm64] os: [linux] @@ -2441,8 +2672,8 @@ packages: dev: true optional: true - /@swc/core-linux-arm64-musl/1.2.241: - resolution: {integrity: sha512-K8bXA+JtoD0g+w9wDyI3R0VkFaxFokF9KI0ioDVRfwDDNoFWq3slQWyN9fkj0dI9XagK15OcSuMGTH+h9B7veQ==} + /@swc/core-linux-arm64-musl/1.3.18: + resolution: {integrity: sha512-0zNqfFeAHZp37lu+lTVvZKfDM10EIoYJtv9sWz+0EA5mkzwj4NtC3ialTIjcPAyJ9Oq4zBtToW2hv7qEtyBHZw==} engines: {node: '>=10'} cpu: [arm64] os: [linux] @@ -2450,8 +2681,8 @@ packages: dev: true optional: true - /@swc/core-linux-x64-gnu/1.2.241: - resolution: {integrity: sha512-jLr+mtNhHMcSRz0xZ9/R9g59kVmgekcz9RyXIFkO7RzJOGVzXxGxfO3pSsQ+u2tCpYbK9M6rMiaNoRYnQj3yNQ==} + /@swc/core-linux-x64-gnu/1.3.18: + resolution: {integrity: sha512-PA3Cc97Kc6W6RtpBLeJaoXLCRL5dJLYd2dszf+f5hGHHJybh6eXGIU0ZkZr898NUHoL8fT6Mg6I4JCNImq/yBg==} engines: {node: '>=10'} cpu: [x64] os: [linux] @@ -2459,8 +2690,8 @@ packages: dev: true optional: true - /@swc/core-linux-x64-musl/1.2.241: - resolution: {integrity: sha512-yXkhlxTSH6ddcBCxwRHTnpj5TA0GXbWADjPIhhXG8KlM4KGjnEvfSBa1xtSNbJcYT8kBYM1n+jYf0dIX2je5eg==} + /@swc/core-linux-x64-musl/1.3.18: + resolution: {integrity: sha512-RiZXHwED8cfD/zoBG01iY8YZtOF/8t9XHZ1JqCx9PWOMjXD3Vc8F2I7bp1Qg6ahzWEaP+2+/rqGO1kSwaJjJLw==} engines: {node: '>=10'} cpu: [x64] os: [linux] @@ -2468,30 +2699,26 @@ packages: dev: true optional: true - /@swc/core-win32-arm64-msvc/1.2.241: - resolution: {integrity: sha512-/f3ylWLHfUtRgHFER3FdH5QwDhO7siQ6h5ug0yVKXIDfNJhJVt9Hd+ZjMGJhNGTkzrl+uZmwXWBiklMcaMCtbQ==} + /@swc/core-win32-arm64-msvc/1.3.18: + resolution: {integrity: sha512-G1Lu/sP+v34lwsGFreklnCdxygMLmobyLY31cNPd0i47ZwgrGowuTV34Mcqfc4AWRkayqVAIlb/WWIZ1+qemcA==} engines: {node: '>=10'} cpu: [arm64] os: [win32] requiresBuild: true - dependencies: - '@swc/wasm': 1.2.130 dev: true optional: true - /@swc/core-win32-ia32-msvc/1.2.241: - resolution: {integrity: sha512-HC1T9sWC9zuZ6C/WWTFMHdgKYv+qaOfWduIvNVqhECa+FXRcBTPtDgNBhMTc2lpt4biKf5iPHhAVZkP6Za3OOw==} + /@swc/core-win32-ia32-msvc/1.3.18: + resolution: {integrity: sha512-Uu+m5BPemw5ZiG6LaF+pP0qFQuIXF55wMZNa0Dbl/16hF7ci6q941MT6CqeK5LQQ52FVVqeYO5lDk5CggaA3Mw==} engines: {node: '>=10'} cpu: [ia32] os: [win32] requiresBuild: true - dependencies: - '@swc/wasm': 1.2.130 dev: true optional: true - /@swc/core-win32-x64-msvc/1.2.241: - resolution: {integrity: sha512-BW1MHKdmi+DDBH+Z/XlhluIjZj9SMkMheeN95G71Z2Pim5LrvzIHf31UD0kYh6ZWWphP06Jlpzl0oi4stxeETw==} + /@swc/core-win32-x64-msvc/1.3.18: + resolution: {integrity: sha512-9o8uFNsPmWB5FFQSDCsI/KVBSHuAILEwB/hMvbUxKtZeSWAQTm5BqbNPi6X11KJ3MdyoJn7zPejj3grL3dcd/w==} engines: {node: '>=10'} cpu: [x64] os: [win32] @@ -2499,38 +2726,23 @@ packages: dev: true optional: true - /@swc/core/1.2.241: - resolution: {integrity: sha512-zDUpW3ffFllBi2c5ui9JXl7zUjzMOOZGwy9JCAsodWo7DXWjw5pJF4GsTCzaYHDf62XQzQWuL7zGyRnJyMiyAA==} + /@swc/core/1.3.18: + resolution: {integrity: sha512-VChk3ldLhmVoX3Hd2M3Y4j960T0lo2Zus60iZoWST6P65RVPt8BatFVVPAB9dABy1dB5zn1BCpHlH85yXVysQw==} engines: {node: '>=10'} hasBin: true requiresBuild: true optionalDependencies: - '@swc/core-android-arm-eabi': 1.2.241 - '@swc/core-android-arm64': 1.2.241 - '@swc/core-darwin-arm64': 1.2.241 - '@swc/core-darwin-x64': 1.2.241 - '@swc/core-freebsd-x64': 1.2.241 - '@swc/core-linux-arm-gnueabihf': 1.2.241 - '@swc/core-linux-arm64-gnu': 1.2.241 - '@swc/core-linux-arm64-musl': 1.2.241 - '@swc/core-linux-x64-gnu': 1.2.241 - '@swc/core-linux-x64-musl': 1.2.241 - '@swc/core-win32-arm64-msvc': 1.2.241 - '@swc/core-win32-ia32-msvc': 1.2.241 - '@swc/core-win32-x64-msvc': 1.2.241 - dev: true - - /@swc/wasm/1.2.122: - resolution: {integrity: sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==} - requiresBuild: true - dev: true - optional: true - - /@swc/wasm/1.2.130: - resolution: {integrity: sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==} - requiresBuild: true + '@swc/core-darwin-arm64': 1.3.18 + '@swc/core-darwin-x64': 1.3.18 + '@swc/core-linux-arm-gnueabihf': 1.3.18 + '@swc/core-linux-arm64-gnu': 1.3.18 + '@swc/core-linux-arm64-musl': 1.3.18 + '@swc/core-linux-x64-gnu': 1.3.18 + '@swc/core-linux-x64-musl': 1.3.18 + '@swc/core-win32-arm64-msvc': 1.3.18 + '@swc/core-win32-ia32-msvc': 1.3.18 + '@swc/core-win32-x64-msvc': 1.3.18 dev: true - optional: true /@szmarczak/http-timer/1.1.2: resolution: {integrity: sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==} @@ -2627,6 +2839,7 @@ packages: /@types/estree/0.0.39: resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} + dev: false /@types/estree/0.0.51: resolution: {integrity: sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==} @@ -2783,6 +2996,11 @@ packages: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: '@types/node': 18.7.6 + dev: false + + /@types/resolve/1.20.2: + resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} + dev: true /@types/responselike/1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} @@ -4742,6 +4960,17 @@ packages: node-releases: 2.0.6 update-browserslist-db: 1.0.5_browserslist@4.21.3 + /browserslist/4.21.4: + resolution: {integrity: sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001431 + electron-to-chromium: 1.4.284 + node-releases: 2.0.6 + update-browserslist-db: 1.0.10_browserslist@4.21.4 + dev: true + /bser/2.1.1: resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} dependencies: @@ -4950,6 +5179,10 @@ packages: /caniuse-lite/1.0.30001374: resolution: {integrity: sha512-mWvzatRx3w+j5wx/mpFN5v5twlPrabG8NqX2c6e45LCpymdoGqNvRkRutFUqpRTXKFQFNQJasvK0YT7suW6/Hw==} + /caniuse-lite/1.0.30001431: + resolution: {integrity: sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ==} + dev: true + /case-sensitive-paths-webpack-plugin/2.4.0: resolution: {integrity: sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==} engines: {node: '>=4'} @@ -5335,7 +5568,7 @@ packages: dev: true /concat-map/0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} /concat-stream/1.6.2: resolution: {integrity: sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==} @@ -5596,6 +5829,10 @@ packages: dependencies: safe-buffer: 5.1.2 + /convert-source-map/1.9.0: + resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} + dev: true + /cookie-signature/1.0.6: resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} @@ -6673,7 +6910,7 @@ packages: dev: true /ee-first/1.1.1: - resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} /ejs/3.1.8: resolution: {integrity: sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==} @@ -6686,6 +6923,10 @@ packages: /electron-to-chromium/1.4.211: resolution: {integrity: sha512-BZSbMpyFQU0KBJ1JG26XGeFI3i4op+qOYGxftmZXFZoHkhLgsSv4DHDJfl8ogII3hIuzGt51PaZ195OVu0yJ9A==} + /electron-to-chromium/1.4.284: + resolution: {integrity: sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==} + dev: true + /elliptic/6.5.4: resolution: {integrity: sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==} dependencies: @@ -7493,6 +7734,7 @@ packages: /estree-walker/1.0.1: resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} + dev: false /estree-walker/2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} @@ -8247,6 +8489,10 @@ packages: call-bind: 1.0.2 get-intrinsic: 1.1.2 + /get-tsconfig/4.2.0: + resolution: {integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==} + dev: true + /get-value/2.0.6: resolution: {integrity: sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==} engines: {node: '>=0.10.0'} @@ -9135,6 +9381,12 @@ packages: resolution: {integrity: sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==} dependencies: has: 1.0.3 + dev: false + + /is-core-module/2.11.0: + resolution: {integrity: sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==} + dependencies: + has: 1.0.3 /is-data-descriptor/0.1.4: resolution: {integrity: sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==} @@ -9446,29 +9698,31 @@ packages: resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} engines: {node: '>=8'} - /istanbul-lib-instrument/4.0.3: - resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} + /istanbul-lib-instrument/5.2.0: + resolution: {integrity: sha512-6Lthe1hqXHBNsqvgDzGO6l03XNeu3CrG4RqQ1KM9+l5+jNGpEJfIELx1NS3SEHmJQA8np/u+E4EPRKRiu6m19A==} engines: {node: '>=8'} dependencies: '@babel/core': 7.18.10 + '@babel/parser': 7.18.11 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 semver: 6.3.0 transitivePeerDependencies: - supports-color - dev: true + dev: false - /istanbul-lib-instrument/5.2.0: - resolution: {integrity: sha512-6Lthe1hqXHBNsqvgDzGO6l03XNeu3CrG4RqQ1KM9+l5+jNGpEJfIELx1NS3SEHmJQA8np/u+E4EPRKRiu6m19A==} + /istanbul-lib-instrument/5.2.1: + resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.18.10 - '@babel/parser': 7.18.11 + '@babel/core': 7.20.2 + '@babel/parser': 7.20.3 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 semver: 6.3.0 transitivePeerDependencies: - supports-color + dev: true /istanbul-lib-report/3.0.0: resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==} @@ -10070,11 +10324,6 @@ packages: - utf-8-validate dev: false - /joycon/3.1.1: - resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} - engines: {node: '>=10'} - dev: true - /js-cleanup/1.2.0: resolution: {integrity: sha512-JeDD0yiiSt80fXzAVa/crrS0JDPQljyBG/RpOtaSbyDq03VHa9szJWMaWOYU/bcTn412uMN2MxApXq8v79cUiQ==} engines: {node: ^10.14.2 || >=12.0.0} @@ -10251,7 +10500,7 @@ packages: engines: {node: '>=10.0.0'} dependencies: istanbul-lib-coverage: 3.2.0 - istanbul-lib-instrument: 5.2.0 + istanbul-lib-instrument: 5.2.1 istanbul-lib-report: 3.0.0 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.5 @@ -10299,7 +10548,7 @@ packages: karma: 6.4.0 dev: true - /karma-rollup-preprocessor/7.0.7_rollup@2.77.2: + /karma-rollup-preprocessor/7.0.7_rollup@3.3.0: resolution: {integrity: sha512-Y1QwsTCiCBp8sSALZdqmqry/mWIWIy0V6zonUIpy+0/D/Kpb2XZvR+JZrWfacQvcvKQdZFJvg6EwlnKtjepu3Q==} engines: {node: '>= 8.0.0'} peerDependencies: @@ -10307,7 +10556,7 @@ packages: dependencies: chokidar: 3.5.3 debounce: 1.2.1 - rollup: 2.77.2 + rollup: 3.3.0 dev: true /karma-safari-private-launcher/1.0.0: @@ -10670,8 +10919,8 @@ packages: dependencies: sourcemap-codec: 1.4.8 - /magic-string/0.26.3: - resolution: {integrity: sha512-u1Po0NDyFcwdg2nzHT88wSK0+Rih0N1M+Ph1Sp08k8yvFFU3KR72wryS7e1qMPJypt99WB7fIFVCA92mQrMjrg==} + /magic-string/0.26.7: + resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==} engines: {node: '>=12'} dependencies: sourcemap-codec: 1.4.8 @@ -10812,7 +11061,7 @@ packages: dev: true /media-typer/0.3.0: - resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} /memfs/3.4.7: @@ -13753,7 +14002,7 @@ packages: resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==} hasBin: true dependencies: - is-core-module: 2.10.0 + is-core-module: 2.11.0 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 @@ -13823,59 +14072,58 @@ packages: inherits: 2.0.4 dev: true - /rollup-plugin-cleanup/3.2.1_rollup@2.77.2: + /rollup-plugin-cleanup/3.2.1_rollup@3.3.0: resolution: {integrity: sha512-zuv8EhoO3TpnrU8MX8W7YxSbO4gmOR0ny06Lm3nkFfq0IVKdBUtHwhVzY1OAJyNCIAdLiyPnOrU0KnO0Fri1GQ==} engines: {node: ^10.14.2 || >=12.0.0} peerDependencies: rollup: '>=2.0' dependencies: js-cleanup: 1.2.0 - rollup: 2.77.2 + rollup: 3.3.0 rollup-pluginutils: 2.8.2 dev: true - /rollup-plugin-dts/4.2.2_oo3i3f3qmqiztdz5qgxrrjmd5e: + /rollup-plugin-dts/4.2.2_ltfkimcuim2tiqojakuazqhfme: resolution: {integrity: sha512-A3g6Rogyko/PXeKoUlkjxkP++8UDVpgA7C+Tdl77Xj4fgEaIjPSnxRmR53EzvoYy97VMVwLAOcWJudaVAuxneQ==} engines: {node: '>=v12.22.11'} peerDependencies: rollup: ^2.55 typescript: ^4.1 dependencies: - magic-string: 0.26.3 - rollup: 2.77.2 + magic-string: 0.26.7 + rollup: 3.3.0 typescript: 4.7.4 optionalDependencies: '@babel/code-frame': 7.18.6 dev: true - /rollup-plugin-istanbul/3.0.0_rollup@2.77.2: - resolution: {integrity: sha512-z8kD2A57qTcxgqjbJ8cZBBE/IGYk+iJtE42sCaZjrSe/uBEUq5jJYvQwquJ+Acfko1LMYww4EJfeMJmc0GttpQ==} + /rollup-plugin-istanbul/4.0.0_rollup@3.3.0: + resolution: {integrity: sha512-AOauxxl4eAHWdvTnY/uwSrwMkbDymTWUhaD6aym8a4YJaO9hxK2U8bcuhZA0iravuOTUulqPWUbYP7mTV7i4oQ==} peerDependencies: - rollup: ^1.20.0||^2.0.0 + rollup: ^1.20.0||^2.0.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true dependencies: - '@rollup/pluginutils': 4.2.1 - istanbul-lib-instrument: 4.0.3 - rollup: 2.77.2 + '@rollup/pluginutils': 5.0.2_rollup@3.3.0 + istanbul-lib-instrument: 5.2.1 + rollup: 3.3.0 transitivePeerDependencies: - supports-color dev: true - /rollup-plugin-swc3/0.3.0_niznp7c4dpiumotw6saahmrjuy: - resolution: {integrity: sha512-ZQK2XxYxSspmT8j6/Y4CaxRxAlZHbNnxI+m+yJ5I87ZLp5uH7CYL4hFlJk1jkcZ+Q2QC19jIg7AClB/7+XFljw==} + /rollup-plugin-swc3/0.7.0_e2f5yg54cs4fzvddguvwzmdrmi: + resolution: {integrity: sha512-aWkbRGjmzSLs8BPQEuGo3PQsBAsYyL9Nk5xZ6ruEnBp+5RN9KavSQV1nM13gSmXZNBhz7Wh5mscyo5lCWQ1Bpg==} engines: {node: '>=12'} peerDependencies: '@swc/core': '>=1.2.165' - rollup: ^2.0.0 + rollup: ^2.0.0 || ^3.0.0 dependencies: + '@fastify/deepmerge': 1.1.0 '@rollup/pluginutils': 4.2.1 - '@swc/core': 1.2.241 - deepmerge: 4.2.2 - joycon: 3.1.1 - jsonc-parser: 3.1.0 - rollup: 2.77.2 - typedoc: 0.22.18_typescript@4.7.4 - transitivePeerDependencies: - - typescript + '@swc/core': 1.3.18 + get-tsconfig: 4.2.0 + rollup: 3.3.0 dev: true /rollup-plugin-terser/7.0.2_rollup@2.77.2: @@ -13888,6 +14136,19 @@ packages: rollup: 2.77.2 serialize-javascript: 4.0.0 terser: 5.14.2 + dev: false + + /rollup-plugin-terser/7.0.2_rollup@3.3.0: + resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==} + peerDependencies: + rollup: ^2.0.0 + dependencies: + '@babel/code-frame': 7.18.6 + jest-worker: 26.6.2 + rollup: 3.3.0 + serialize-javascript: 4.0.0 + terser: 5.14.2 + dev: true /rollup-pluginutils/2.8.2: resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} @@ -13901,6 +14162,15 @@ packages: hasBin: true optionalDependencies: fsevents: 2.3.2 + dev: false + + /rollup/3.3.0: + resolution: {integrity: sha512-wqOV/vUJCYEbWsXvwCkgGWvgaEnsbn4jxBQWKpN816CqsmCimDmCNJI83c6if7QVD4v/zlyRzxN7U2yDT5rfoA==} + engines: {node: '>=14.18.0', npm: '>=8.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.2 + dev: true /run-parallel/1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -15055,7 +15325,7 @@ packages: worker-farm: 1.7.0 dev: true - /terser-webpack-plugin/5.3.3_w322td5fcxzrbi4j3tewgvv7hu: + /terser-webpack-plugin/5.3.3_shw3cv54523u3rna4vn263uk5y: resolution: {integrity: sha512-Fx60G5HNYknNTNQnzQ1VePRuu89ZVYWfjRAeT5rITuCY/1b08s49e5kSQwHDirKZWuoKOBRFS98EUUoZ9kLEwQ==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -15072,12 +15342,12 @@ packages: optional: true dependencies: '@jridgewell/trace-mapping': 0.3.14 - '@swc/core': 1.2.241 + '@swc/core': 1.3.18 jest-worker: 27.5.1 schema-utils: 3.1.1 serialize-javascript: 6.0.0 terser: 5.14.2 - webpack: 5.74.0_@swc+core@1.2.241 + webpack: 5.74.0_@swc+core@1.3.18 dev: true /terser-webpack-plugin/5.3.3_webpack@5.74.0: @@ -15383,21 +15653,6 @@ packages: typedoc: 0.23.10_typescript@4.7.4 dev: true - /typedoc/0.22.18_typescript@4.7.4: - resolution: {integrity: sha512-NK9RlLhRUGMvc6Rw5USEYgT4DVAUFk7IF7Q6MYfpJ88KnTZP7EneEa4RcP+tX1auAcz7QT1Iy0bUSZBYYHdoyA==} - engines: {node: '>= 12.10.0'} - hasBin: true - peerDependencies: - typescript: 4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x || 4.5.x || 4.6.x || 4.7.x - dependencies: - glob: 8.0.3 - lunr: 2.3.9 - marked: 4.0.18 - minimatch: 5.1.0 - shiki: 0.10.1 - typescript: 4.7.4 - dev: true - /typedoc/0.23.10_typescript@4.7.4: resolution: {integrity: sha512-03EUiu/ZuScUBMnY6p0lY+HTH8SwhzvRE3gImoemdPDWXPXlks83UGTx++lyquWeB1MTwm9D9Ca8RIjkK3AFfQ==} engines: {node: '>= 14.14'} @@ -15546,6 +15801,17 @@ packages: resolution: {integrity: sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==} engines: {node: '>=4'} + /update-browserslist-db/1.0.10_browserslist@4.21.4: + resolution: {integrity: sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + dependencies: + browserslist: 4.21.4 + escalade: 3.1.1 + picocolors: 1.0.0 + dev: true + /update-browserslist-db/1.0.5_browserslist@4.21.3: resolution: {integrity: sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==} hasBin: true @@ -15661,7 +15927,7 @@ packages: resolution: {integrity: sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==} /utils-merge/1.0.1: - resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} /uuid/3.4.0: @@ -15695,7 +15961,7 @@ packages: dev: true /verror/1.10.0: - resolution: {integrity: sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=} + resolution: {integrity: sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==} engines: {'0': node >=0.6.0} dependencies: assert-plus: 1.0.0 @@ -16381,7 +16647,7 @@ packages: - uglify-js dev: false - /webpack/5.74.0_@swc+core@1.2.241: + /webpack/5.74.0_@swc+core@1.3.18: resolution: {integrity: sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==} engines: {node: '>=10.13.0'} hasBin: true @@ -16398,7 +16664,7 @@ packages: '@webassemblyjs/wasm-parser': 1.11.1 acorn: 8.8.0 acorn-import-assertions: 1.8.0_acorn@8.8.0 - browserslist: 4.21.3 + browserslist: 4.21.4 chrome-trace-event: 1.0.3 enhanced-resolve: 5.10.0 es-module-lexer: 0.9.3 @@ -16412,7 +16678,7 @@ packages: neo-async: 2.6.2 schema-utils: 3.1.1 tapable: 2.2.1 - terser-webpack-plugin: 5.3.3_w322td5fcxzrbi4j3tewgvv7hu + terser-webpack-plugin: 5.3.3_shw3cv54523u3rna4vn263uk5y watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: diff --git a/rollup.config.js b/rollup.config.js index c45e09455c6..b6ab1e82697 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,7 +3,6 @@ import json from '@rollup/plugin-json'; import resolve from '@rollup/plugin-node-resolve'; import {swc} from 'rollup-plugin-swc3'; import {terser} from 'rollup-plugin-terser'; -import dts from 'rollup-plugin-dts'; import {readFileSync} from 'fs'; const {version, homepage} = JSON.parse(readFileSync('./package.json')); @@ -77,22 +76,5 @@ export default [ indent: false, sourcemap: true, }, - }, - - // Types - // dist/types.d.ts - // dist/helpers.d.ts - { - input: { - 'dist/types': 'src/types.ts', - 'dist/helpers': 'src/helpers/types.ts' - }, - plugins: [dts()], - output: { - dir: './', - chunkFileNames: 'dist/chunks/[name].d.ts', - entryFileNames: '[name].d.ts', - format: 'es' - } } ]; diff --git a/src/controllers/controller.bar.js b/src/controllers/controller.bar.js index 503f6a5738f..20e053cc0d5 100644 --- a/src/controllers/controller.bar.js +++ b/src/controllers/controller.bar.js @@ -1,8 +1,8 @@ -import DatasetController from '../core/core.datasetController'; +import DatasetController from '../core/core.datasetController.js'; import { _arrayUnique, isArray, isNullOrUndef, valueOrDefault, resolveObjectKey, sign, defined -} from '../helpers'; +} from '../helpers/index.js'; function getAllScaleValues(scale, type) { if (!scale._cache.$bar) { diff --git a/src/controllers/controller.bubble.js b/src/controllers/controller.bubble.js index c5cfa827d01..81bf516356a 100644 --- a/src/controllers/controller.bubble.js +++ b/src/controllers/controller.bubble.js @@ -1,5 +1,5 @@ -import DatasetController from '../core/core.datasetController'; -import {valueOrDefault} from '../helpers/helpers.core'; +import DatasetController from '../core/core.datasetController.js'; +import {valueOrDefault} from '../helpers/helpers.core.js'; export default class BubbleController extends DatasetController { diff --git a/src/controllers/controller.doughnut.js b/src/controllers/controller.doughnut.js index e270e4df98d..3080b98831a 100644 --- a/src/controllers/controller.doughnut.js +++ b/src/controllers/controller.doughnut.js @@ -1,10 +1,10 @@ -import DatasetController from '../core/core.datasetController'; -import {isObject, resolveObjectKey, toPercentage, toDimension, valueOrDefault} from '../helpers/helpers.core'; -import {formatNumber} from '../helpers/helpers.intl'; -import {toRadians, PI, TAU, HALF_PI, _angleBetween} from '../helpers/helpers.math'; +import DatasetController from '../core/core.datasetController.js'; +import {isObject, resolveObjectKey, toPercentage, toDimension, valueOrDefault} from '../helpers/helpers.core.js'; +import {formatNumber} from '../helpers/helpers.intl.js'; +import {toRadians, PI, TAU, HALF_PI, _angleBetween} from '../helpers/helpers.math.js'; /** - * @typedef { import("../core/core.controller").default } Chart + * @typedef { import('../core/core.controller.js').default } Chart */ function getRatioAndOffset(rotation, circumference, cutout) { diff --git a/src/controllers/controller.line.js b/src/controllers/controller.line.js index 18f0aa847a6..fddd5ce9889 100644 --- a/src/controllers/controller.line.js +++ b/src/controllers/controller.line.js @@ -1,7 +1,7 @@ -import DatasetController from '../core/core.datasetController'; -import {isNullOrUndef} from '../helpers'; -import {isNumber} from '../helpers/helpers.math'; -import {_getStartAndCountOfVisiblePoints, _scaleRangesChanged} from '../helpers/helpers.extras'; +import DatasetController from '../core/core.datasetController.js'; +import {isNullOrUndef} from '../helpers/index.js'; +import {isNumber} from '../helpers/helpers.math.js'; +import {_getStartAndCountOfVisiblePoints, _scaleRangesChanged} from '../helpers/helpers.extras.js'; export default class LineController extends DatasetController { diff --git a/src/controllers/controller.pie.js b/src/controllers/controller.pie.js index 5dd63b1f272..0f3466f6c1a 100644 --- a/src/controllers/controller.pie.js +++ b/src/controllers/controller.pie.js @@ -1,4 +1,4 @@ -import DoughnutController from './controller.doughnut'; +import DoughnutController from './controller.doughnut.js'; // Pie charts are Doughnut chart with different defaults export default class PieController extends DoughnutController { diff --git a/src/controllers/controller.polarArea.js b/src/controllers/controller.polarArea.js index 8684adede50..9514cf7c7c7 100644 --- a/src/controllers/controller.polarArea.js +++ b/src/controllers/controller.polarArea.js @@ -1,5 +1,5 @@ -import DatasetController from '../core/core.datasetController'; -import {toRadians, PI, formatNumber, _parseObjectDataRadialScale} from '../helpers/index'; +import DatasetController from '../core/core.datasetController.js'; +import {toRadians, PI, formatNumber, _parseObjectDataRadialScale} from '../helpers/index.js'; export default class PolarAreaController extends DatasetController { diff --git a/src/controllers/controller.radar.js b/src/controllers/controller.radar.js index 982065efb6d..d702a3c4457 100644 --- a/src/controllers/controller.radar.js +++ b/src/controllers/controller.radar.js @@ -1,5 +1,5 @@ -import DatasetController from '../core/core.datasetController'; -import {_parseObjectDataRadialScale} from '../helpers/index'; +import DatasetController from '../core/core.datasetController.js'; +import {_parseObjectDataRadialScale} from '../helpers/index.js'; export default class RadarController extends DatasetController { diff --git a/src/controllers/controller.scatter.js b/src/controllers/controller.scatter.js index 44fc5927658..aae36ed6068 100644 --- a/src/controllers/controller.scatter.js +++ b/src/controllers/controller.scatter.js @@ -1,7 +1,7 @@ -import DatasetController from '../core/core.datasetController'; -import {isNullOrUndef} from '../helpers'; -import {isNumber} from '../helpers/helpers.math'; -import {_getStartAndCountOfVisiblePoints, _scaleRangesChanged} from '../helpers/helpers.extras'; +import DatasetController from '../core/core.datasetController.js'; +import {isNullOrUndef} from '../helpers/index.js'; +import {isNumber} from '../helpers/helpers.math.js'; +import {_getStartAndCountOfVisiblePoints, _scaleRangesChanged} from '../helpers/helpers.extras.js'; export default class ScatterController extends DatasetController { diff --git a/src/controllers/index.js b/src/controllers/index.js index 8c0129b3687..9d265dc9dc6 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -1,8 +1,8 @@ -export {default as BarController} from './controller.bar'; -export {default as BubbleController} from './controller.bubble'; -export {default as DoughnutController} from './controller.doughnut'; -export {default as LineController} from './controller.line'; -export {default as PolarAreaController} from './controller.polarArea'; -export {default as PieController} from './controller.pie'; -export {default as RadarController} from './controller.radar'; -export {default as ScatterController} from './controller.scatter'; +export {default as BarController} from './controller.bar.js'; +export {default as BubbleController} from './controller.bubble.js'; +export {default as DoughnutController} from './controller.doughnut.js'; +export {default as LineController} from './controller.line.js'; +export {default as PolarAreaController} from './controller.polarArea.js'; +export {default as PieController} from './controller.pie.js'; +export {default as RadarController} from './controller.radar.js'; +export {default as ScatterController} from './controller.scatter.js'; diff --git a/src/core/core.adapters.ts b/src/core/core.adapters.ts index 6132b46b75c..56899ae1322 100644 --- a/src/core/core.adapters.ts +++ b/src/core/core.adapters.ts @@ -4,8 +4,8 @@ * @private */ -import type {AnyObject} from '../../types/basic'; -import type {ChartOptions} from '../../types'; +import type {AnyObject} from '../../types/basic.js'; +import type {ChartOptions} from '../../types/index.js'; export type TimeUnit = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'; diff --git a/src/core/core.animation.js b/src/core/core.animation.js index 88514e416b1..eca21f63584 100644 --- a/src/core/core.animation.js +++ b/src/core/core.animation.js @@ -1,6 +1,6 @@ -import effects from '../helpers/helpers.easing'; -import {resolve} from '../helpers/helpers.options'; -import {color as helpersColor} from '../helpers/helpers.color'; +import effects from '../helpers/helpers.easing.js'; +import {resolve} from '../helpers/helpers.options.js'; +import {color as helpersColor} from '../helpers/helpers.color.js'; const transparent = 'transparent'; const interpolators = { diff --git a/src/core/core.animations.js b/src/core/core.animations.js index ad35720eefd..4ee61b84b0d 100644 --- a/src/core/core.animations.js +++ b/src/core/core.animations.js @@ -1,7 +1,7 @@ -import animator from './core.animator'; -import Animation from './core.animation'; -import defaults from './core.defaults'; -import {isArray, isObject} from '../helpers/helpers.core'; +import animator from './core.animator.js'; +import Animation from './core.animation.js'; +import defaults from './core.defaults.js'; +import {isArray, isObject} from '../helpers/helpers.core.js'; export default class Animations { constructor(chart, config) { diff --git a/src/core/core.animator.js b/src/core/core.animator.js index dd2155587f1..1a93e83e71d 100644 --- a/src/core/core.animator.js +++ b/src/core/core.animator.js @@ -1,8 +1,8 @@ -import {requestAnimFrame} from '../helpers/helpers.extras'; +import {requestAnimFrame} from '../helpers/helpers.extras.js'; /** - * @typedef { import("./core.animation").default } Animation - * @typedef { import("./core.controller").default } Chart + * @typedef { import('./core.animation.js').default } Animation + * @typedef { import('./core.controller.js').default } Chart */ /** diff --git a/src/core/core.config.js b/src/core/core.config.js index 630c21e89af..b7362b328c4 100644 --- a/src/core/core.config.js +++ b/src/core/core.config.js @@ -1,6 +1,6 @@ -import defaults, {overrides, descriptors} from './core.defaults'; -import {mergeIf, resolveObjectKey, isArray, isFunction, valueOrDefault, isObject} from '../helpers/helpers.core'; -import {_attachContext, _createResolver, _descriptors} from '../helpers/helpers.config'; +import defaults, {overrides, descriptors} from './core.defaults.js'; +import {mergeIf, resolveObjectKey, isArray, isFunction, valueOrDefault, isObject} from '../helpers/helpers.core.js'; +import {_attachContext, _createResolver, _descriptors} from '../helpers/helpers.config.js'; export function getIndexAxis(type, options) { const datasetDefaults = defaults.datasets[type] || {}; diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 9991263b76f..007ea6f65d8 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -1,21 +1,21 @@ -import animator from './core.animator'; -import defaults, {overrides} from './core.defaults'; -import Interaction from './core.interaction'; -import layouts from './core.layouts'; -import {_detectPlatform} from '../platform'; -import PluginService from './core.plugins'; -import registry from './core.registry'; -import Config, {determineAxis, getIndexAxis} from './core.config'; -import {retinaScale, _isDomSupported} from '../helpers/helpers.dom'; -import {each, callback as callCallback, uid, valueOrDefault, _elementsEqual, isNullOrUndef, setsEqual, defined, isFunction, _isClickEvent} from '../helpers/helpers.core'; -import {clearCanvas, clipArea, createContext, unclipArea, _isPointInArea} from '../helpers'; +import animator from './core.animator.js'; +import defaults, {overrides} from './core.defaults.js'; +import Interaction from './core.interaction.js'; +import layouts from './core.layouts.js'; +import {_detectPlatform} from '../platform/index.js'; +import PluginService from './core.plugins.js'; +import registry from './core.registry.js'; +import Config, {determineAxis, getIndexAxis} from './core.config.js'; +import {retinaScale, _isDomSupported} from '../helpers/helpers.dom.js'; +import {each, callback as callCallback, uid, valueOrDefault, _elementsEqual, isNullOrUndef, setsEqual, defined, isFunction, _isClickEvent} from '../helpers/helpers.core.js'; +import {clearCanvas, clipArea, createContext, unclipArea, _isPointInArea} from '../helpers/index.js'; // @ts-ignore import {version} from '../../package.json'; -import {debounce} from '../helpers/helpers.extras'; +import {debounce} from '../helpers/helpers.extras.js'; /** - * @typedef { import('../../types').ChartEvent } ChartEvent - * @typedef { import("../../types").Point } Point + * @typedef { import('../../types/index.js').ChartEvent } ChartEvent + * @typedef { import('../../types/index.js').Point } Point */ const KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea']; @@ -1141,7 +1141,7 @@ class Chart { * returned value can be used, for instance, to interrupt the current action. * @param {string} hook - The name of the plugin method to call (e.g. 'beforeUpdate'). * @param {Object} [args] - Extra arguments to apply to the hook call. - * @param {import('./core.plugins').filterCallback} [filter] - Filtering function for limiting which plugins are notified + * @param {import('./core.plugins.js').filterCallback} [filter] - Filtering function for limiting which plugins are notified * @returns {boolean} false if any of the plugins return false, else returns true. */ notifyPlugins(hook, args, filter) { @@ -1258,10 +1258,10 @@ class Chart { /** * @param {ChartEvent} e - The event - * @param {import('../../types').ActiveElement[]} lastActive - Previously active elements + * @param {import('../../types/index.js').ActiveElement[]} lastActive - Previously active elements * @param {boolean} inChartArea - Is the envent inside chartArea * @param {boolean} useFinalPosition - Should the evaluation be done with current or final (after animation) element positions - * @returns {import('../../types').ActiveElement[]} - The active elements + * @returns {import('../../types/index.js').ActiveElement[]} - The active elements * @pravate */ _getActiveElements(e, lastActive, inChartArea, useFinalPosition) { diff --git a/src/core/core.datasetController.js b/src/core/core.datasetController.js index a825d24a70f..6a31228a8ef 100644 --- a/src/core/core.datasetController.js +++ b/src/core/core.datasetController.js @@ -1,12 +1,12 @@ -import Animations from './core.animations'; -import defaults from './core.defaults'; -import {isArray, isFinite, isObject, valueOrDefault, resolveObjectKey, defined} from '../helpers/helpers.core'; -import {listenArrayEvents, unlistenArrayEvents} from '../helpers/helpers.collection'; -import {createContext, sign} from '../helpers'; +import Animations from './core.animations.js'; +import defaults from './core.defaults.js'; +import {isArray, isFinite, isObject, valueOrDefault, resolveObjectKey, defined} from '../helpers/helpers.core.js'; +import {listenArrayEvents, unlistenArrayEvents} from '../helpers/helpers.collection.js'; +import {createContext, sign} from '../helpers/index.js'; /** - * @typedef { import("./core.controller").default } Chart - * @typedef { import("./core.scale").default } Scale + * @typedef { import('./core.controller.js').default } Chart + * @typedef { import('./core.scale.js').default } Scale */ function scaleClip(scale, allowedOverflow) { diff --git a/src/core/core.defaults.js b/src/core/core.defaults.js index 85d876048a8..67a1c8e5b84 100644 --- a/src/core/core.defaults.js +++ b/src/core/core.defaults.js @@ -1,8 +1,8 @@ -import {getHoverColor} from '../helpers/helpers.color'; -import {isObject, merge, valueOrDefault} from '../helpers/helpers.core'; -import {applyAnimationsDefaults} from './core.animations.defaults'; -import {applyLayoutsDefaults} from './core.layouts.defaults'; -import {applyScaleDefaults} from './core.scale.defaults'; +import {getHoverColor} from '../helpers/helpers.color.js'; +import {isObject, merge, valueOrDefault} from '../helpers/helpers.core.js'; +import {applyAnimationsDefaults} from './core.animations.defaults.js'; +import {applyLayoutsDefaults} from './core.layouts.defaults.js'; +import {applyScaleDefaults} from './core.scale.defaults.js'; export const overrides = Object.create(null); export const descriptors = Object.create(null); diff --git a/src/core/core.element.ts b/src/core/core.element.ts index 9bfca13b3c9..20f72e95a76 100644 --- a/src/core/core.element.ts +++ b/src/core/core.element.ts @@ -1,7 +1,7 @@ -import type {AnyObject} from '../../types/basic'; -import type {Point} from '../../types/geometric'; -import type {Animation} from '../../types/animation'; -import {isNumber} from '../helpers/helpers.math'; +import type {AnyObject} from '../../types/basic.js'; +import type {Point} from '../../types/geometric.js'; +import type {Animation} from '../../types/animation.js'; +import {isNumber} from '../helpers/helpers.math.js'; export default class Element { diff --git a/src/core/core.interaction.js b/src/core/core.interaction.js index 776db328804..9f9046b4920 100644 --- a/src/core/core.interaction.js +++ b/src/core/core.interaction.js @@ -1,14 +1,14 @@ -import {_lookupByKey, _rlookupByKey} from '../helpers/helpers.collection'; -import {getRelativePosition} from '../helpers/helpers.dom'; -import {_angleBetween, getAngleFromPoint} from '../helpers/helpers.math'; -import {_isPointInArea} from '../helpers'; +import {_lookupByKey, _rlookupByKey} from '../helpers/helpers.collection.js'; +import {getRelativePosition} from '../helpers/helpers.dom.js'; +import {_angleBetween, getAngleFromPoint} from '../helpers/helpers.math.js'; +import {_isPointInArea} from '../helpers/index.js'; /** - * @typedef { import("./core.controller").default } Chart - * @typedef { import("../../types").ChartEvent } ChartEvent + * @typedef { import('./core.controller.js').default } Chart + * @typedef { import('../../types/index.js').ChartEvent } ChartEvent * @typedef {{axis?: string, intersect?: boolean, includeInvisible?: boolean}} InteractionOptions - * @typedef {{datasetIndex: number, index: number, element: import("./core.element").default}} InteractionItem - * @typedef { import("../../types").Point } Point + * @typedef {{datasetIndex: number, index: number, element: import('./core.element.js').default}} InteractionItem + * @typedef { import('../../types/index.js').Point } Point */ /** diff --git a/src/core/core.layouts.js b/src/core/core.layouts.js index d69ea06e86c..301a1241733 100644 --- a/src/core/core.layouts.js +++ b/src/core/core.layouts.js @@ -1,8 +1,8 @@ -import {defined, each, isObject} from '../helpers/helpers.core'; -import {toPadding} from '../helpers/helpers.options'; +import {defined, each, isObject} from '../helpers/helpers.core.js'; +import {toPadding} from '../helpers/helpers.options.js'; /** - * @typedef { import("./core.controller").default } Chart + * @typedef { import('./core.controller.js').default } Chart */ const STATIC_POSITIONS = ['left', 'top', 'right', 'bottom']; diff --git a/src/core/core.plugins.js b/src/core/core.plugins.js index 77aa6fb006e..b2584955a0f 100644 --- a/src/core/core.plugins.js +++ b/src/core/core.plugins.js @@ -1,10 +1,10 @@ -import registry from './core.registry'; -import {callback as callCallback, isNullOrUndef, valueOrDefault} from '../helpers/helpers.core'; +import registry from './core.registry.js'; +import {callback as callCallback, isNullOrUndef, valueOrDefault} from '../helpers/helpers.core.js'; /** - * @typedef { import("./core.controller").default } Chart - * @typedef { import("../../types").ChartEvent } ChartEvent - * @typedef { import("../plugins/plugin.tooltip").default } Tooltip + * @typedef { import('./core.controller.js').default } Chart + * @typedef { import('../../types/index.js').ChartEvent } ChartEvent + * @typedef { import('../plugins/plugin.tooltip.js').default } Tooltip */ /** @@ -115,7 +115,7 @@ export default class PluginService { } /** - * @param {import("./core.config").default} config + * @param {import('./core.config.js').default} config */ function allPlugins(config) { const localIds = {}; diff --git a/src/core/core.registry.js b/src/core/core.registry.js index bbf5ec2e45c..09222bd3788 100644 --- a/src/core/core.registry.js +++ b/src/core/core.registry.js @@ -1,8 +1,8 @@ -import DatasetController from './core.datasetController'; -import Element from './core.element'; -import Scale from './core.scale'; -import TypedRegistry from './core.typedRegistry'; -import {each, callback as call, _capitalize} from '../helpers/helpers.core'; +import DatasetController from './core.datasetController.js'; +import Element from './core.element.js'; +import Scale from './core.scale.js'; +import TypedRegistry from './core.typedRegistry.js'; +import {each, callback as call, _capitalize} from '../helpers/helpers.core.js'; /** * Please use the module's default export which provides a singleton instance @@ -129,13 +129,13 @@ export class Registry { } else { // Handle loopable args // Use case: - // import * as plugins from './plugins'; + // import * as plugins from './plugins.js'; // Chart.register(plugins); each(arg, item => { // If there are mixed types in the loopable, make sure those are // registered in correct registry // Use case: (treemap exporting controller, elements etc) - // import * as treemap from 'chartjs-chart-treemap'; + // import * as treemap from 'chartjs-chart-treemap.js'; // Chart.register(treemap); const itemReg = typedRegistry || this._getRegistryForType(item); diff --git a/src/core/core.scale.autoskip.js b/src/core/core.scale.autoskip.js index 1fc7283d652..b703bda85a9 100644 --- a/src/core/core.scale.autoskip.js +++ b/src/core/core.scale.autoskip.js @@ -1,15 +1,15 @@ -import {isNullOrUndef, valueOrDefault} from '../helpers/helpers.core'; -import {_factorize} from '../helpers/helpers.math'; +import {isNullOrUndef, valueOrDefault} from '../helpers/helpers.core.js'; +import {_factorize} from '../helpers/helpers.math.js'; /** - * @typedef { import("./core.controller").default } Chart + * @typedef { import('./core.controller.js').default } Chart * @typedef {{value:number | string, label?:string, major?:boolean, $context?:any}} Tick */ /** * Returns a subset of ticks to be plotted to avoid overlapping labels. - * @param {import('./core.scale').default} scale + * @param {import('./core.scale.js').default} scale * @param {Tick[]} ticks * @return {Tick[]} * @private diff --git a/src/core/core.scale.defaults.js b/src/core/core.scale.defaults.js index 9a8556e3920..85f9764ec0a 100644 --- a/src/core/core.scale.defaults.js +++ b/src/core/core.scale.defaults.js @@ -1,4 +1,4 @@ -import Ticks from './core.ticks'; +import Ticks from './core.ticks.js'; export function applyScaleDefaults(defaults) { defaults.set('scale', { diff --git a/src/core/core.scale.js b/src/core/core.scale.js index cae728b4a6f..e79deb20384 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -1,16 +1,16 @@ -import Element from './core.element'; -import {_alignPixel, _measureText, renderText, clipArea, unclipArea} from '../helpers/helpers.canvas'; -import {callback as call, each, finiteOrDefault, isArray, isFinite, isNullOrUndef, isObject, valueOrDefault} from '../helpers/helpers.core'; -import {toDegrees, toRadians, _int16Range, _limitValue, HALF_PI} from '../helpers/helpers.math'; -import {_alignStartEnd, _toLeftRightCenter} from '../helpers/helpers.extras'; -import {createContext, toFont, toPadding, _addGrace} from '../helpers/helpers.options'; -import {autoSkip} from './core.scale.autoskip'; +import Element from './core.element.js'; +import {_alignPixel, _measureText, renderText, clipArea, unclipArea} from '../helpers/helpers.canvas.js'; +import {callback as call, each, finiteOrDefault, isArray, isFinite, isNullOrUndef, isObject, valueOrDefault} from '../helpers/helpers.core.js'; +import {toDegrees, toRadians, _int16Range, _limitValue, HALF_PI} from '../helpers/helpers.math.js'; +import {_alignStartEnd, _toLeftRightCenter} from '../helpers/helpers.extras.js'; +import {createContext, toFont, toPadding, _addGrace} from '../helpers/helpers.options.js'; +import {autoSkip} from './core.scale.autoskip.js'; const reverseAlign = (align) => align === 'left' ? 'right' : align === 'right' ? 'left' : align; const offsetFromEdge = (scale, edge, offset) => edge === 'top' || edge === 'left' ? scale[edge] + offset : scale[edge] - offset; /** - * @typedef { import("./core.controller").default } Chart + * @typedef { import('./core.controller.js').default } Chart * @typedef {{value:number | string, label?:string, major?:boolean, $context?:any}} Tick */ diff --git a/src/core/core.ticks.js b/src/core/core.ticks.js index 8050f574ba4..eac44444af5 100644 --- a/src/core/core.ticks.js +++ b/src/core/core.ticks.js @@ -1,6 +1,6 @@ -import {isArray} from '../helpers/helpers.core'; -import {formatNumber} from '../helpers/helpers.intl'; -import {log10} from '../helpers/helpers.math'; +import {isArray} from '../helpers/helpers.core.js'; +import {formatNumber} from '../helpers/helpers.intl.js'; +import {log10} from '../helpers/helpers.math.js'; /** * Namespace to hold formatters for different types of ticks diff --git a/src/core/core.typedRegistry.js b/src/core/core.typedRegistry.js index 8e6eaa87358..bc921f6903f 100644 --- a/src/core/core.typedRegistry.js +++ b/src/core/core.typedRegistry.js @@ -1,5 +1,5 @@ -import {merge} from '../helpers'; -import defaults, {overrides} from './core.defaults'; +import {merge} from '../helpers/index.js'; +import defaults, {overrides} from './core.defaults.js'; /** * @typedef {{id: string, defaults: any, overrides?: any, defaultRoutes: any}} IChartComponent diff --git a/src/core/index.ts b/src/core/index.ts index 706884b0577..81a06149da6 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -1,15 +1,15 @@ -export type {DateAdapter, TimeUnit} from './core.adapters'; -export {default as _adapters} from './core.adapters'; -export {default as Animation} from './core.animation'; -export {default as Animations} from './core.animations'; -export {default as animator} from './core.animator'; -export {default as Chart} from './core.controller'; -export {default as DatasetController} from './core.datasetController'; -export {default as defaults} from './core.defaults'; -export {default as Element} from './core.element'; -export {default as Interaction} from './core.interaction'; -export {default as layouts} from './core.layouts'; -export {default as plugins} from './core.plugins'; -export {default as registry} from './core.registry'; -export {default as Scale} from './core.scale'; -export {default as Ticks} from './core.ticks'; +export type {DateAdapter, TimeUnit} from './core.adapters.js'; +export {default as _adapters} from './core.adapters.js'; +export {default as Animation} from './core.animation.js'; +export {default as Animations} from './core.animations.js'; +export {default as animator} from './core.animator.js'; +export {default as Chart} from './core.controller.js'; +export {default as DatasetController} from './core.datasetController.js'; +export {default as defaults} from './core.defaults.js'; +export {default as Element} from './core.element.js'; +export {default as Interaction} from './core.interaction.js'; +export {default as layouts} from './core.layouts.js'; +export {default as plugins} from './core.plugins.js'; +export {default as registry} from './core.registry.js'; +export {default as Scale} from './core.scale.js'; +export {default as Ticks} from './core.ticks.js'; diff --git a/src/elements/element.arc.ts b/src/elements/element.arc.ts index 7e19c911582..5a1dc18451f 100644 --- a/src/elements/element.arc.ts +++ b/src/elements/element.arc.ts @@ -1,8 +1,8 @@ -import Element from '../core/core.element'; -import {_angleBetween, getAngleFromPoint, TAU, HALF_PI, valueOrDefault} from '../helpers/index'; -import {PI, _isBetween, _limitValue} from '../helpers/helpers.math'; -import {_readValueToProps} from '../helpers/helpers.options'; -import type {ArcOptions, Point} from '../../types'; +import Element from '../core/core.element.js'; +import {_angleBetween, getAngleFromPoint, TAU, HALF_PI, valueOrDefault} from '../helpers/index.js'; +import {PI, _isBetween, _limitValue} from '../helpers/helpers.math.js'; +import {_readValueToProps} from '../helpers/helpers.options.js'; +import type {ArcOptions, Point} from '../../types/index.js'; function clipArc(ctx: CanvasRenderingContext2D, element: ArcElement, endAngle: number) { diff --git a/src/elements/element.bar.js b/src/elements/element.bar.js index 5f2f7515050..6b0cfc70bc1 100644 --- a/src/elements/element.bar.js +++ b/src/elements/element.bar.js @@ -1,7 +1,7 @@ -import Element from '../core/core.element'; -import {isObject, _isBetween, _limitValue} from '../helpers'; -import {addRoundedRectPath} from '../helpers/helpers.canvas'; -import {toTRBL, toTRBLCorners} from '../helpers/helpers.options'; +import Element from '../core/core.element.js'; +import {isObject, _isBetween, _limitValue} from '../helpers/index.js'; +import {addRoundedRectPath} from '../helpers/helpers.canvas.js'; +import {toTRBL, toTRBLCorners} from '../helpers/helpers.options.js'; /** @typedef {{ x: number, y: number, base: number, horizontal: boolean, width: number, height: number }} BarProps */ diff --git a/src/elements/element.line.js b/src/elements/element.line.js index 80a4b518d4a..3305393dc0b 100644 --- a/src/elements/element.line.js +++ b/src/elements/element.line.js @@ -1,12 +1,12 @@ -import Element from '../core/core.element'; -import {_bezierInterpolation, _pointInLine, _steppedInterpolation} from '../helpers/helpers.interpolation'; -import {_computeSegments, _boundSegments} from '../helpers/helpers.segment'; -import {_steppedLineTo, _bezierCurveTo} from '../helpers/helpers.canvas'; -import {_updateBezierControlPoints} from '../helpers/helpers.curve'; -import {valueOrDefault} from '../helpers'; +import Element from '../core/core.element.js'; +import {_bezierInterpolation, _pointInLine, _steppedInterpolation} from '../helpers/helpers.interpolation.js'; +import {_computeSegments, _boundSegments} from '../helpers/helpers.segment.js'; +import {_steppedLineTo, _bezierCurveTo} from '../helpers/helpers.canvas.js'; +import {_updateBezierControlPoints} from '../helpers/helpers.curve.js'; +import {valueOrDefault} from '../helpers/index.js'; /** - * @typedef { import("./element.point").default } PointElement + * @typedef { import('./element.point.js').default } PointElement */ function setStyle(ctx, options, style = options) { diff --git a/src/elements/element.point.ts b/src/elements/element.point.ts index 780a412991f..4b7b26d8a2b 100644 --- a/src/elements/element.point.ts +++ b/src/elements/element.point.ts @@ -1,12 +1,12 @@ -import Element from '../core/core.element'; -import {drawPoint, _isPointInArea} from '../helpers/helpers.canvas'; -import { - type CartesianParsedData, - type ChartArea, - type Point, - type PointHoverOptions, - type PointOptions, -} from '../../types'; +import Element from '../core/core.element.js'; +import {drawPoint, _isPointInArea} from '../helpers/helpers.canvas.js'; +import type { + CartesianParsedData, + ChartArea, + Point, + PointHoverOptions, + PointOptions, +} from '../../types/index.js'; function inRange(el: PointElement, pos: number, axis: 'x' | 'y', useFinalPosition?: boolean) { const options = el.options; diff --git a/src/elements/index.js b/src/elements/index.js index 53378f2a2c2..baa2a6dbd8d 100644 --- a/src/elements/index.js +++ b/src/elements/index.js @@ -1,4 +1,4 @@ -export {default as ArcElement} from './element.arc'; -export {default as LineElement} from './element.line'; -export {default as PointElement} from './element.point'; -export {default as BarElement} from './element.bar'; +export {default as ArcElement} from './element.arc.js'; +export {default as LineElement} from './element.line.js'; +export {default as PointElement} from './element.point.js'; +export {default as BarElement} from './element.bar.js'; diff --git a/src/helpers/helpers.canvas.js b/src/helpers/helpers.canvas.js index 773398c18b3..40ada9bbb69 100644 --- a/src/helpers/helpers.canvas.js +++ b/src/helpers/helpers.canvas.js @@ -1,12 +1,12 @@ -import {isArray, isNullOrUndef} from './helpers.core'; -import {PI, TAU, HALF_PI, QUARTER_PI, TWO_THIRDS_PI, RAD_PER_DEG} from './helpers.math'; +import {isArray, isNullOrUndef} from './helpers.core.js'; +import {PI, TAU, HALF_PI, QUARTER_PI, TWO_THIRDS_PI, RAD_PER_DEG} from './helpers.math.js'; /** * Note: typedefs are auto-exported, so use a made-up `canvas` namespace where * necessary to avoid duplicates with `export * from './helpers`; see * https://github.com/microsoft/TypeScript/issues/46011 - * @typedef { import("../core/core.controller").default } canvas.Chart - * @typedef { import("../../types").Point } Point + * @typedef { import('../core/core.controller.js').default } canvas.Chart + * @typedef { import('../../types/index.js').Point } Point */ /** diff --git a/src/helpers/helpers.collection.ts b/src/helpers/helpers.collection.ts index 4f925b4dcf0..ce97cda8444 100644 --- a/src/helpers/helpers.collection.ts +++ b/src/helpers/helpers.collection.ts @@ -1,4 +1,4 @@ -import {_capitalize} from './helpers.core'; +import {_capitalize} from './helpers.core.js'; /** * Binary search diff --git a/src/helpers/helpers.color.ts b/src/helpers/helpers.color.ts index f2fa5c565fa..0ee3ef6b40e 100644 --- a/src/helpers/helpers.color.ts +++ b/src/helpers/helpers.color.ts @@ -1,4 +1,4 @@ -import colorLib, {Color} from '@kurkle/color'; +import {Color} from '@kurkle/color'; export function isPatternOrGradient(value: unknown): value is CanvasPattern | CanvasGradient { if (value && typeof value === 'object') { @@ -19,7 +19,7 @@ export function color( | [number, number, number, number] ): Color; export function color(value) { - return isPatternOrGradient(value) ? value : colorLib(value); + return isPatternOrGradient(value) ? value : new Color(value); } export function getHoverColor(value: CanvasGradient): CanvasGradient; @@ -28,5 +28,5 @@ export function getHoverColor(value: string): string; export function getHoverColor(value) { return isPatternOrGradient(value) ? value - : colorLib(value).saturate(0.5).darken(0.1).hexString(); + : new Color(value).saturate(0.5).darken(0.1).hexString(); } diff --git a/src/helpers/helpers.config.js b/src/helpers/helpers.config.js index 0b229222294..3820c5ce325 100644 --- a/src/helpers/helpers.config.js +++ b/src/helpers/helpers.config.js @@ -1,4 +1,4 @@ -import {defined, isArray, isFunction, isObject, resolveObjectKey, _capitalize} from './helpers.core'; +import {defined, isArray, isFunction, isObject, resolveObjectKey, _capitalize} from './helpers.core.js'; /** * Creates a Proxy for resolving raw values for options. diff --git a/src/helpers/helpers.core.ts b/src/helpers/helpers.core.ts index 964fc8eee3d..f6f6f5ce5aa 100644 --- a/src/helpers/helpers.core.ts +++ b/src/helpers/helpers.core.ts @@ -2,8 +2,8 @@ * @namespace Chart.helpers */ -import type {AnyObject} from '../../types/basic'; -import type {ActiveDataPoint, ChartEvent} from '../../types'; +import type {AnyObject} from '../../types/basic.js'; +import type {ActiveDataPoint, ChartEvent} from '../../types/index.js'; /** * An empty function that can be used, for example, for optional callback. diff --git a/src/helpers/helpers.curve.ts b/src/helpers/helpers.curve.ts index 14a6bc33268..e9dab22e838 100644 --- a/src/helpers/helpers.curve.ts +++ b/src/helpers/helpers.curve.ts @@ -1,6 +1,6 @@ -import {almostEquals, distanceBetweenPoints, sign} from './helpers.math'; -import {_isPointInArea} from './helpers.canvas'; -import {ChartArea} from '../../types'; +import {almostEquals, distanceBetweenPoints, sign} from './helpers.math.js'; +import {_isPointInArea} from './helpers.canvas.js'; +import type {ChartArea} from '../../types/index.js'; export interface SplinePoint { x: number; diff --git a/src/helpers/helpers.dom.ts b/src/helpers/helpers.dom.ts index 864b23f0d86..60b0aefb0e1 100644 --- a/src/helpers/helpers.dom.ts +++ b/src/helpers/helpers.dom.ts @@ -1,13 +1,13 @@ -import {ChartArea, Scale} from '../../types'; -import Chart from '../core/core.controller'; -import {ChartEvent} from '../types'; -import {INFINITY} from './helpers.math'; +import type {ChartArea, Scale} from '../../types/index.js'; +import type Chart from '../core/core.controller.js'; +import type {ChartEvent} from '../types.js'; +import {INFINITY} from './helpers.math.js'; /** * Note: typedefs are auto-exported, so use a made-up `dom` namespace where * necessary to avoid duplicates with `export * from './helpers`; see * https://github.com/microsoft/TypeScript/issues/46011 - * @typedef { import("../core/core.controller").default } dom.Chart + * @typedef { import('../core/core.controller.js').default } dom.Chart * @typedef { import('../../types').ChartEvent } ChartEvent */ diff --git a/src/helpers/helpers.easing.ts b/src/helpers/helpers.easing.ts index f98917a5b7b..caa9c17bf51 100644 --- a/src/helpers/helpers.easing.ts +++ b/src/helpers/helpers.easing.ts @@ -1,4 +1,4 @@ -import {PI, TAU, HALF_PI} from './helpers.math'; +import {PI, TAU, HALF_PI} from './helpers.math.js'; const atEdge = (t: number) => t === 0 || t === 1; const elasticIn = (t: number, s: number, p: number) => -(Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * TAU / p)); diff --git a/src/helpers/helpers.extras.ts b/src/helpers/helpers.extras.ts index 1008aaacc59..162103f85f1 100644 --- a/src/helpers/helpers.extras.ts +++ b/src/helpers/helpers.extras.ts @@ -1,7 +1,7 @@ -import {type ChartMeta, type PointElement} from '../../types'; +import type {ChartMeta, PointElement} from '../../types/index.js'; -import {_limitValue} from './helpers.math'; -import {_lookupByKey} from './helpers.collection'; +import {_limitValue} from './helpers.math.js'; +import {_lookupByKey} from './helpers.collection.js'; export function fontString(pixelSize: number, fontStyle: string, fontFamily: string) { return fontStyle + ' ' + pixelSize + 'px ' + fontFamily; @@ -50,7 +50,7 @@ export function debounce>(fn: (...args: TArgs) => void, clearTimeout(timeout); timeout = setTimeout(fn, delay, args); } else { - fn.apply(this, args); + fn.apply(this, args); } return delay; }; diff --git a/src/helpers/helpers.interpolation.ts b/src/helpers/helpers.interpolation.ts index 81f1948df3b..222654e530c 100644 --- a/src/helpers/helpers.interpolation.ts +++ b/src/helpers/helpers.interpolation.ts @@ -1,5 +1,5 @@ -import type {Point} from '../../types/geometric'; -import type {SplinePoint} from './helpers.curve'; +import type {Point} from '../../types/geometric.js'; +import type {SplinePoint} from './helpers.curve.js'; /** * @private diff --git a/src/helpers/helpers.math.ts b/src/helpers/helpers.math.ts index b9de9eed5ac..f7178694562 100644 --- a/src/helpers/helpers.math.ts +++ b/src/helpers/helpers.math.ts @@ -1,5 +1,5 @@ -import type {Point} from '../../types/geometric'; -import {isFinite as isFiniteNumber} from './helpers.core'; +import type {Point} from '../../types/geometric.js'; +import {isFinite as isFiniteNumber} from './helpers.core.js'; /** * @alias Chart.helpers.math diff --git a/src/helpers/helpers.options.ts b/src/helpers/helpers.options.ts index ce411647047..3ee1b55f21a 100644 --- a/src/helpers/helpers.options.ts +++ b/src/helpers/helpers.options.ts @@ -1,8 +1,8 @@ -import defaults from '../core/core.defaults'; -import {isArray, isObject, toDimension, valueOrDefault} from './helpers.core'; -import {Point, toFontString} from './helpers.canvas'; -import type {ChartArea, FontSpec} from '../../types'; -import type {TRBL, TRBLCorners} from '../../types/geometric'; +import defaults from '../core/core.defaults.js'; +import {isArray, isObject, toDimension, valueOrDefault} from './helpers.core.js'; +import {Point, toFontString} from './helpers.canvas.js'; +import type {ChartArea, FontSpec} from '../../types/index.js'; +import type {TRBL, TRBLCorners} from '../../types/geometric.js'; const LINE_HEIGHT = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/; const FONT_STYLE = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/; diff --git a/src/helpers/helpers.segment.js b/src/helpers/helpers.segment.js index 13e4e28d9c9..0c6dbfd0ce2 100644 --- a/src/helpers/helpers.segment.js +++ b/src/helpers/helpers.segment.js @@ -1,9 +1,9 @@ -import {_angleBetween, _angleDiff, _isBetween, _normalizeAngle} from './helpers.math'; -import {createContext} from './helpers.options'; +import {_angleBetween, _angleDiff, _isBetween, _normalizeAngle} from './helpers.math.js'; +import {createContext} from './helpers.options.js'; /** - * @typedef { import("../elements/element.line").default } LineElement - * @typedef { import("../elements/element.point").default } PointElement + * @typedef { import('../elements/element.line.js').default } LineElement + * @typedef { import('../elements/element.point.js').default } PointElement * @typedef {{start: number, end: number, loop: boolean, style?: any}} Segment */ diff --git a/src/helpers/index.ts b/src/helpers/index.ts index 354317f3fe6..1917ce740a1 100644 --- a/src/helpers/index.ts +++ b/src/helpers/index.ts @@ -1,15 +1,15 @@ -export * from './helpers.color'; -export * from './helpers.core'; -export * from './helpers.canvas'; -export * from './helpers.collection'; -export * from './helpers.config'; -export * from './helpers.curve'; -export * from './helpers.dom'; -export {default as easingEffects} from './helpers.easing'; -export * from './helpers.extras'; -export * from './helpers.interpolation'; -export * from './helpers.intl'; -export * from './helpers.options'; -export * from './helpers.math'; -export * from './helpers.rtl'; -export * from './helpers.segment'; +export * from './helpers.color.js'; +export * from './helpers.core.js'; +export * from './helpers.canvas.js'; +export * from './helpers.collection.js'; +export * from './helpers.config.js'; +export * from './helpers.curve.js'; +export * from './helpers.dom.js'; +export {default as easingEffects} from './helpers.easing.js'; +export * from './helpers.extras.js'; +export * from './helpers.interpolation.js'; +export * from './helpers.intl.js'; +export * from './helpers.options.js'; +export * from './helpers.math.js'; +export * from './helpers.rtl.js'; +export * from './helpers.segment.js'; diff --git a/src/helpers/types.ts b/src/helpers/types.ts index cc13d581801..7eff7d57c97 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -3,17 +3,17 @@ * After transition done need to remove it in favor of index.ts */ -// export * from '.'; -export * from './helpers.color'; -export * from './helpers.collection'; -export * from './helpers.core'; -export * from './helpers.curve'; -export * from './helpers.dom'; -export * from './helpers.easing'; -export * from './helpers.extras'; -export * from './helpers.interpolation'; -export * from './helpers.intl'; -export * from './helpers.math'; -export * from './helpers.options'; -export * from './helpers.rtl'; -export * from '../../types/helpers'; +// export * from '..js'; +export * from './helpers.color.js'; +export * from './helpers.collection.js'; +export * from './helpers.core.js'; +export * from './helpers.curve.js'; +export * from './helpers.dom.js'; +export * from './helpers.easing.js'; +export * from './helpers.extras.js'; +export * from './helpers.interpolation.js'; +export * from './helpers.intl.js'; +export * from './helpers.math.js'; +export * from './helpers.options.js'; +export * from './helpers.rtl.js'; +export * from '../../types/helpers/index.js'; diff --git a/src/index.ts b/src/index.ts index 15865c36080..940af6f86e3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,14 +1,14 @@ -export * from './controllers'; -export * from './core'; -export * from './elements'; -export * from './platform'; -export * from './plugins'; -export * from './scales'; +export * from './controllers/index.js'; +export * from './core/index.js'; +export * from './elements/index.js'; +export * from './platform/index.js'; +export * from './plugins/index.js'; +export * from './scales/index.js'; -import * as controllers from './controllers'; -import * as elements from './elements'; -import * as plugins from './plugins'; -import * as scales from './scales'; +import * as controllers from './controllers/index.js'; +import * as elements from './elements/index.js'; +import * as plugins from './plugins/index.js'; +import * as scales from './scales/index.js'; export { controllers, diff --git a/src/index.umd.ts b/src/index.umd.ts index 98088228cb1..f830a013072 100644 --- a/src/index.umd.ts +++ b/src/index.umd.ts @@ -4,25 +4,25 @@ /** * @namespace Chart */ -import Chart from './core/core.controller'; - -import * as helpers from './helpers'; -import _adapters from './core/core.adapters'; -import Animation from './core/core.animation'; -import animator from './core/core.animator'; -import Animations from './core/core.animations'; -import * as controllers from './controllers'; -import DatasetController from './core/core.datasetController'; -import Element from './core/core.element'; -import * as elements from './elements/index'; -import Interaction from './core/core.interaction'; -import layouts from './core/core.layouts'; -import * as platforms from './platform/index'; -import * as plugins from './plugins'; -import registry from './core/core.registry'; -import Scale from './core/core.scale'; -import * as scales from './scales'; -import Ticks from './core/core.ticks'; +import Chart from './core/core.controller.js'; + +import * as helpers from './helpers/index.js'; +import _adapters from './core/core.adapters.js'; +import Animation from './core/core.animation.js'; +import animator from './core/core.animator.js'; +import Animations from './core/core.animations.js'; +import * as controllers from './controllers/index.js'; +import DatasetController from './core/core.datasetController.js'; +import Element from './core/core.element.js'; +import * as elements from './elements/index.js'; +import Interaction from './core/core.interaction.js'; +import layouts from './core/core.layouts.js'; +import * as platforms from './platform/index.js'; +import * as plugins from './plugins/index.js'; +import registry from './core/core.registry.js'; +import Scale from './core/core.scale.js'; +import * as scales from './scales/index.js'; +import Ticks from './core/core.ticks.js'; // Register built-ins Chart.register(controllers, scales, elements, plugins); diff --git a/src/platform/index.js b/src/platform/index.js index 7ae28f5b05e..1c0fd9d66ee 100644 --- a/src/platform/index.js +++ b/src/platform/index.js @@ -1,7 +1,7 @@ -import {_isDomSupported} from '../helpers'; -import BasePlatform from './platform.base'; -import BasicPlatform from './platform.basic'; -import DomPlatform from './platform.dom'; +import {_isDomSupported} from '../helpers/index.js'; +import BasePlatform from './platform.base.js'; +import BasicPlatform from './platform.basic.js'; +import DomPlatform from './platform.dom.js'; export function _detectPlatform(canvas) { if (!_isDomSupported() || (typeof OffscreenCanvas !== 'undefined' && canvas instanceof OffscreenCanvas)) { diff --git a/src/platform/platform.base.js b/src/platform/platform.base.js index 1da169e9b36..298e4088342 100644 --- a/src/platform/platform.base.js +++ b/src/platform/platform.base.js @@ -1,6 +1,6 @@ /** - * @typedef { import("../core/core.controller").default } Chart + * @typedef { import('../core/core.controller.js').default } Chart */ /** @@ -75,7 +75,7 @@ export default class BasePlatform { /** * Updates config with platform specific requirements - * @param {import("../core/core.config").default} config + * @param {import('../core/core.config.js').default} config */ updateConfig(config) { // eslint-disable-line no-unused-vars // no-op diff --git a/src/platform/platform.basic.js b/src/platform/platform.basic.js index 4d0717bc147..04e0bee943a 100644 --- a/src/platform/platform.basic.js +++ b/src/platform/platform.basic.js @@ -3,7 +3,7 @@ * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939 */ -import BasePlatform from './platform.base'; +import BasePlatform from './platform.base.js'; /** * Platform class for charts without access to the DOM or to many element properties diff --git a/src/platform/platform.dom.js b/src/platform/platform.dom.js index c25bd25810c..301b2c46c47 100644 --- a/src/platform/platform.dom.js +++ b/src/platform/platform.dom.js @@ -2,13 +2,13 @@ * Chart.Platform implementation for targeting a web browser */ -import BasePlatform from './platform.base'; -import {_getParentNode, getRelativePosition, supportsEventListenerOptions, readUsedSize, getMaximumSize} from '../helpers/helpers.dom'; -import {throttled} from '../helpers/helpers.extras'; -import {isNullOrUndef} from '../helpers/helpers.core'; +import BasePlatform from './platform.base.js'; +import {_getParentNode, getRelativePosition, supportsEventListenerOptions, readUsedSize, getMaximumSize} from '../helpers/helpers.dom.js'; +import {throttled} from '../helpers/helpers.extras.js'; +import {isNullOrUndef} from '../helpers/helpers.core.js'; /** - * @typedef { import("../core/core.controller").default } Chart + * @typedef { import('../core/core.controller.js').default } Chart */ const EXPANDO_KEY = '$chartjs'; diff --git a/src/plugins/index.js b/src/plugins/index.js index e9a0be35aa6..f6233705257 100644 --- a/src/plugins/index.js +++ b/src/plugins/index.js @@ -1,7 +1,7 @@ -export {default as Colors} from './plugin.colors'; -export {default as Decimation} from './plugin.decimation'; -export {default as Filler} from './plugin.filler'; -export {default as Legend} from './plugin.legend'; -export {default as SubTitle} from './plugin.subtitle'; -export {default as Title} from './plugin.title'; -export {default as Tooltip} from './plugin.tooltip'; +export {default as Colors} from './plugin.colors.js'; +export {default as Decimation} from './plugin.decimation.js'; +export {default as Filler} from './plugin.filler/index.js'; +export {default as Legend} from './plugin.legend.js'; +export {default as SubTitle} from './plugin.subtitle.js'; +export {default as Title} from './plugin.title.js'; +export {default as Tooltip} from './plugin.tooltip.js'; diff --git a/src/plugins/plugin.colors.ts b/src/plugins/plugin.colors.ts index 956447a0446..fdc8d7e3b69 100644 --- a/src/plugins/plugin.colors.ts +++ b/src/plugins/plugin.colors.ts @@ -1,4 +1,4 @@ -import type {Chart, ChartConfiguration, ChartDataset} from '../types'; +import type {Chart, ChartConfiguration, ChartDataset} from '../types.js'; export interface ColorsPluginOptions { enabled?: boolean; diff --git a/src/plugins/plugin.decimation.js b/src/plugins/plugin.decimation.js index 95604e42966..112a5e32b40 100644 --- a/src/plugins/plugin.decimation.js +++ b/src/plugins/plugin.decimation.js @@ -1,4 +1,4 @@ -import {_limitValue, _lookupByKey, isNullOrUndef, resolve} from '../helpers'; +import {_limitValue, _lookupByKey, isNullOrUndef, resolve} from '../helpers/index.js'; function lttbDecimation(data, start, count, availableWidth, options) { /** diff --git a/src/plugins/plugin.filler/filler.drawing.js b/src/plugins/plugin.filler/filler.drawing.js index 3fe4c363a1e..2e2fbd2b99e 100644 --- a/src/plugins/plugin.filler/filler.drawing.js +++ b/src/plugins/plugin.filler/filler.drawing.js @@ -1,6 +1,6 @@ -import {clipArea, unclipArea} from '../../helpers'; -import {_findSegmentEnd, _getBounds, _segments} from './filler.segment'; -import {_getTarget} from './filler.target'; +import {clipArea, unclipArea} from '../../helpers/index.js'; +import {_findSegmentEnd, _getBounds, _segments} from './filler.segment.js'; +import {_getTarget} from './filler.target.js'; export function _drawfill(ctx, source, area) { const target = _getTarget(source); diff --git a/src/plugins/plugin.filler/filler.helper.js b/src/plugins/plugin.filler/filler.helper.js index c3ede0bc9d6..8d9c4037fd1 100644 --- a/src/plugins/plugin.filler/filler.helper.js +++ b/src/plugins/plugin.filler/filler.helper.js @@ -1,12 +1,12 @@ /** - * @typedef { import('../../core/core.controller').default } Chart - * @typedef { import('../../core/core.scale').default } Scale - * @typedef { import('../../elements/element.point').default } PointElement + * @typedef { import('../../core/core.controller.js').default } Chart + * @typedef { import('../../core/core.scale.js').default } Scale + * @typedef { import('../../elements/element.point.js').default } PointElement */ -import {LineElement} from '../../elements'; -import {isArray} from '../../helpers'; -import {_pointsFromSegments} from './filler.segment'; +import {LineElement} from '../../elements/index.js'; +import {isArray} from '../../helpers/index.js'; +import {_pointsFromSegments} from './filler.segment.js'; /** * @param {PointElement[] | { x: number; y: number; }} boundary diff --git a/src/plugins/plugin.filler/filler.options.js b/src/plugins/plugin.filler/filler.options.js index 8277825c5c9..3185760a2c3 100644 --- a/src/plugins/plugin.filler/filler.options.js +++ b/src/plugins/plugin.filler/filler.options.js @@ -1,10 +1,10 @@ -import {isObject, isFinite, valueOrDefault} from '../../helpers/helpers.core'; +import {isObject, isFinite, valueOrDefault} from '../../helpers/helpers.core.js'; /** - * @typedef { import('../../core/core.scale').default } Scale - * @typedef { import('../../elements/element.line').default } LineElement - * @typedef { import('../../../types').FillTarget } FillTarget - * @typedef { import('../../../types').ComplexFillTarget } ComplexFillTarget + * @typedef { import('../../core/core.scale.js').default } Scale + * @typedef { import('../../elements/element.line.js').default } LineElement + * @typedef { import('../../../types/index.js').FillTarget } FillTarget + * @typedef { import('../../../types/index.js').ComplexFillTarget } ComplexFillTarget */ export function _resolveTarget(sources, index, propagate) { diff --git a/src/plugins/plugin.filler/filler.segment.js b/src/plugins/plugin.filler/filler.segment.js index 8d78f6937cc..c0e4e8d81a1 100644 --- a/src/plugins/plugin.filler/filler.segment.js +++ b/src/plugins/plugin.filler/filler.segment.js @@ -1,4 +1,4 @@ -import {_boundSegment, _boundSegments, _normalizeAngle} from '../../helpers'; +import {_boundSegment, _boundSegments, _normalizeAngle} from '../../helpers/index.js'; export function _segments(line, target, property) { const segments = line.segments; diff --git a/src/plugins/plugin.filler/filler.target.js b/src/plugins/plugin.filler/filler.target.js index 2547636c274..fa9048e70c0 100644 --- a/src/plugins/plugin.filler/filler.target.js +++ b/src/plugins/plugin.filler/filler.target.js @@ -1,13 +1,13 @@ -import {isFinite} from '../../helpers'; -import {_createBoundaryLine} from './filler.helper'; -import {_getTargetPixel, _getTargetValue} from './filler.options'; -import {_buildStackLine} from './filler.target.stack'; -import {simpleArc} from './simpleArc'; +import {isFinite} from '../../helpers/index.js'; +import {_createBoundaryLine} from './filler.helper.js'; +import {_getTargetPixel, _getTargetValue} from './filler.options.js'; +import {_buildStackLine} from './filler.target.stack.js'; +import {simpleArc} from './simpleArc.js'; /** - * @typedef { import('../../core/core.controller').default } Chart - * @typedef { import('../../core/core.scale').default } Scale - * @typedef { import('../../elements/element.point').default } PointElement + * @typedef { import('../../core/core.controller.js').default } Chart + * @typedef { import('../../core/core.scale.js').default } Scale + * @typedef { import('../../elements/element.point.js').default } PointElement */ export function _getTarget(source) { diff --git a/src/plugins/plugin.filler/filler.target.stack.js b/src/plugins/plugin.filler/filler.target.stack.js index b32fa1fb54e..006c5737fea 100644 --- a/src/plugins/plugin.filler/filler.target.stack.js +++ b/src/plugins/plugin.filler/filler.target.stack.js @@ -1,12 +1,12 @@ /** - * @typedef { import('../../core/core.controller').default } Chart - * @typedef { import('../../core/core.scale').default } Scale - * @typedef { import('../../elements/element.point').default } PointElement + * @typedef { import('../../core/core.controller.js').default } Chart + * @typedef { import('../../core/core.scale.js').default } Scale + * @typedef { import('../../elements/element.point.js').default } PointElement */ -import {LineElement} from '../../elements'; -import {_isBetween} from '../../helpers'; -import {_createBoundaryLine} from './filler.helper'; +import {LineElement} from '../../elements/index.js'; +import {_isBetween} from '../../helpers/index.js'; +import {_createBoundaryLine} from './filler.helper.js'; /** * @param {{ chart: Chart; scale: Scale; index: number; line: LineElement; }} source diff --git a/src/plugins/plugin.filler/index.js b/src/plugins/plugin.filler/index.js index 12bacb0805e..07e0b968b17 100644 --- a/src/plugins/plugin.filler/index.js +++ b/src/plugins/plugin.filler/index.js @@ -4,10 +4,10 @@ * @see https://github.com/chartjs/Chart.js/issues/2440#issuecomment-256461897 */ -import LineElement from '../../elements/element.line'; -import {_drawfill} from './filler.drawing'; -import {_shouldApplyFill} from './filler.helper'; -import {_decodeFill, _resolveTarget} from './filler.options'; +import LineElement from '../../elements/element.line.js'; +import {_drawfill} from './filler.drawing.js'; +import {_shouldApplyFill} from './filler.helper.js'; +import {_decodeFill, _resolveTarget} from './filler.options.js'; export default { id: 'filler', diff --git a/src/plugins/plugin.filler/simpleArc.js b/src/plugins/plugin.filler/simpleArc.js index 0606a5200b4..7304b3e393b 100644 --- a/src/plugins/plugin.filler/simpleArc.js +++ b/src/plugins/plugin.filler/simpleArc.js @@ -1,4 +1,4 @@ -import {TAU} from '../../helpers'; +import {TAU} from '../../helpers/index.js'; // TODO: use elements.ArcElement instead export class simpleArc { diff --git a/src/plugins/plugin.legend.js b/src/plugins/plugin.legend.js index 573c0775598..e3cee4f2c8e 100644 --- a/src/plugins/plugin.legend.js +++ b/src/plugins/plugin.legend.js @@ -1,7 +1,7 @@ -import defaults from '../core/core.defaults'; -import Element from '../core/core.element'; -import layouts from '../core/core.layouts'; -import {addRoundedRectPath, drawPointLegend, renderText} from '../helpers/helpers.canvas'; +import defaults from '../core/core.defaults.js'; +import Element from '../core/core.element.js'; +import layouts from '../core/core.layouts.js'; +import {addRoundedRectPath, drawPointLegend, renderText} from '../helpers/helpers.canvas.js'; import { _isBetween, callback as call, @@ -13,12 +13,12 @@ import { toPadding, unclipArea, valueOrDefault, -} from '../helpers/index'; -import {_alignStartEnd, _textX, _toLeftRightCenter} from '../helpers/helpers.extras'; -import {toTRBLCorners} from '../helpers/helpers.options'; +} from '../helpers/index.js'; +import {_alignStartEnd, _textX, _toLeftRightCenter} from '../helpers/helpers.extras.js'; +import {toTRBLCorners} from '../helpers/helpers.options.js'; /** - * @typedef { import("../../types").ChartEvent } ChartEvent + * @typedef { import('../../types/index.js').ChartEvent } ChartEvent */ const getBoxSize = (labelOpts, fontSize) => { diff --git a/src/plugins/plugin.subtitle.js b/src/plugins/plugin.subtitle.js index 864f6472811..6f8be223c1e 100644 --- a/src/plugins/plugin.subtitle.js +++ b/src/plugins/plugin.subtitle.js @@ -1,5 +1,5 @@ -import {Title} from './plugin.title'; -import layouts from '../core/core.layouts'; +import {Title} from './plugin.title.js'; +import layouts from '../core/core.layouts.js'; const map = new WeakMap(); diff --git a/src/plugins/plugin.title.js b/src/plugins/plugin.title.js index 5b5158b66cf..ecf625040e6 100644 --- a/src/plugins/plugin.title.js +++ b/src/plugins/plugin.title.js @@ -1,8 +1,8 @@ -import Element from '../core/core.element'; -import layouts from '../core/core.layouts'; -import {PI, isArray, toPadding, toFont} from '../helpers'; -import {_toLeftRightCenter, _alignStartEnd} from '../helpers/helpers.extras'; -import {renderText} from '../helpers/helpers.canvas'; +import Element from '../core/core.element.js'; +import layouts from '../core/core.layouts.js'; +import {PI, isArray, toPadding, toFont} from '../helpers/index.js'; +import {_toLeftRightCenter, _alignStartEnd} from '../helpers/helpers.extras.js'; +import {renderText} from '../helpers/helpers.canvas.js'; export class Title extends Element { /** diff --git a/src/plugins/plugin.tooltip.js b/src/plugins/plugin.tooltip.js index f1b0e9115da..1e59f432971 100644 --- a/src/plugins/plugin.tooltip.js +++ b/src/plugins/plugin.tooltip.js @@ -1,17 +1,17 @@ -import Animations from '../core/core.animations'; -import Element from '../core/core.element'; -import {addRoundedRectPath} from '../helpers/helpers.canvas'; -import {each, noop, isNullOrUndef, isArray, _elementsEqual, isObject} from '../helpers/helpers.core'; -import {toFont, toPadding, toTRBLCorners} from '../helpers/helpers.options'; -import {getRtlAdapter, overrideTextDirection, restoreTextDirection} from '../helpers/helpers.rtl'; -import {distanceBetweenPoints, _limitValue} from '../helpers/helpers.math'; -import {createContext, drawPoint} from '../helpers'; +import Animations from '../core/core.animations.js'; +import Element from '../core/core.element.js'; +import {addRoundedRectPath} from '../helpers/helpers.canvas.js'; +import {each, noop, isNullOrUndef, isArray, _elementsEqual, isObject} from '../helpers/helpers.core.js'; +import {toFont, toPadding, toTRBLCorners} from '../helpers/helpers.options.js'; +import {getRtlAdapter, overrideTextDirection, restoreTextDirection} from '../helpers/helpers.rtl.js'; +import {distanceBetweenPoints, _limitValue} from '../helpers/helpers.math.js'; +import {createContext, drawPoint} from '../helpers/index.js'; /** - * @typedef { import("../platform/platform.base").Chart } Chart - * @typedef { import("../../types").ChartEvent } ChartEvent - * @typedef { import("../../types").ActiveElement } ActiveElement - * @typedef { import("../core/core.interaction").InteractionItem } InteractionItem + * @typedef { import('../platform/platform.base.js').Chart } Chart + * @typedef { import('../../types/index.js').ChartEvent } ChartEvent + * @typedef { import('../../types/index.js').ActiveElement } ActiveElement + * @typedef { import('../core/core.interaction.js').InteractionItem } InteractionItem */ const positioners = { diff --git a/src/scales/index.js b/src/scales/index.js index bc81fda4562..02ed3c10a2a 100644 --- a/src/scales/index.js +++ b/src/scales/index.js @@ -1,6 +1,6 @@ -export {default as CategoryScale} from './scale.category'; -export {default as LinearScale} from './scale.linear'; -export {default as LogarithmicScale} from './scale.logarithmic'; -export {default as RadialLinearScale} from './scale.radialLinear'; -export {default as TimeScale} from './scale.time'; -export {default as TimeSeriesScale} from './scale.timeseries'; +export {default as CategoryScale} from './scale.category.js'; +export {default as LinearScale} from './scale.linear.js'; +export {default as LogarithmicScale} from './scale.logarithmic.js'; +export {default as RadialLinearScale} from './scale.radialLinear.js'; +export {default as TimeScale} from './scale.time.js'; +export {default as TimeSeriesScale} from './scale.timeseries.js'; diff --git a/src/scales/scale.category.js b/src/scales/scale.category.js index ff086788ed4..3d773a8a8c2 100644 --- a/src/scales/scale.category.js +++ b/src/scales/scale.category.js @@ -1,5 +1,5 @@ -import Scale from '../core/core.scale'; -import {isNullOrUndef, valueOrDefault, _limitValue} from '../helpers'; +import Scale from '../core/core.scale.js'; +import {isNullOrUndef, valueOrDefault, _limitValue} from '../helpers/index.js'; const addIfString = (labels, raw, index, addedLabels) => { if (typeof raw === 'string') { diff --git a/src/scales/scale.linear.js b/src/scales/scale.linear.js index 16dceccf697..9fde052a6b0 100644 --- a/src/scales/scale.linear.js +++ b/src/scales/scale.linear.js @@ -1,7 +1,7 @@ -import {isFinite} from '../helpers/helpers.core'; -import LinearScaleBase from './scale.linearbase'; -import Ticks from '../core/core.ticks'; -import {toRadians} from '../helpers'; +import {isFinite} from '../helpers/helpers.core.js'; +import LinearScaleBase from './scale.linearbase.js'; +import Ticks from '../core/core.ticks.js'; +import {toRadians} from '../helpers/index.js'; export default class LinearScale extends LinearScaleBase { diff --git a/src/scales/scale.linearbase.js b/src/scales/scale.linearbase.js index 2bcbc44ffe4..4c6248d5dc0 100644 --- a/src/scales/scale.linearbase.js +++ b/src/scales/scale.linearbase.js @@ -1,7 +1,7 @@ -import {isNullOrUndef} from '../helpers/helpers.core'; -import {almostEquals, almostWhole, niceNum, _decimalPlaces, _setMinAndMaxByKey, sign, toRadians} from '../helpers/helpers.math'; -import Scale from '../core/core.scale'; -import {formatNumber} from '../helpers/helpers.intl'; +import {isNullOrUndef} from '../helpers/helpers.core.js'; +import {almostEquals, almostWhole, niceNum, _decimalPlaces, _setMinAndMaxByKey, sign, toRadians} from '../helpers/helpers.math.js'; +import Scale from '../core/core.scale.js'; +import {formatNumber} from '../helpers/helpers.intl.js'; /** * Generate a set of linear ticks for an axis diff --git a/src/scales/scale.logarithmic.js b/src/scales/scale.logarithmic.js index 8f32807e79a..a9a06cd10cf 100644 --- a/src/scales/scale.logarithmic.js +++ b/src/scales/scale.logarithmic.js @@ -1,9 +1,9 @@ -import {finiteOrDefault, isFinite} from '../helpers/helpers.core'; -import {formatNumber} from '../helpers/helpers.intl'; -import {_setMinAndMaxByKey, log10} from '../helpers/helpers.math'; -import Scale from '../core/core.scale'; -import LinearScaleBase from './scale.linearbase'; -import Ticks from '../core/core.ticks'; +import {finiteOrDefault, isFinite} from '../helpers/helpers.core.js'; +import {formatNumber} from '../helpers/helpers.intl.js'; +import {_setMinAndMaxByKey, log10} from '../helpers/helpers.math.js'; +import Scale from '../core/core.scale.js'; +import LinearScaleBase from './scale.linearbase.js'; +import Ticks from '../core/core.ticks.js'; const log10Floor = v => Math.floor(log10(v)); const changeExponent = (v, m) => Math.pow(10, log10Floor(v) + m); diff --git a/src/scales/scale.radialLinear.js b/src/scales/scale.radialLinear.js index 1c9fb938c72..7d41d36830c 100644 --- a/src/scales/scale.radialLinear.js +++ b/src/scales/scale.radialLinear.js @@ -1,10 +1,10 @@ -import defaults from '../core/core.defaults'; -import {_longestText, addRoundedRectPath, renderText} from '../helpers/helpers.canvas'; -import {HALF_PI, TAU, toDegrees, toRadians, _normalizeAngle, PI} from '../helpers/helpers.math'; -import LinearScaleBase from './scale.linearbase'; -import Ticks from '../core/core.ticks'; -import {valueOrDefault, isArray, isFinite, callback as callCallback, isNullOrUndef} from '../helpers/helpers.core'; -import {createContext, toFont, toPadding, toTRBLCorners} from '../helpers/helpers.options'; +import defaults from '../core/core.defaults.js'; +import {_longestText, addRoundedRectPath, renderText} from '../helpers/helpers.canvas.js'; +import {HALF_PI, TAU, toDegrees, toRadians, _normalizeAngle, PI} from '../helpers/helpers.math.js'; +import LinearScaleBase from './scale.linearbase.js'; +import Ticks from '../core/core.ticks.js'; +import {valueOrDefault, isArray, isFinite, callback as callCallback, isNullOrUndef} from '../helpers/helpers.core.js'; +import {createContext, toFont, toPadding, toTRBLCorners} from '../helpers/helpers.options.js'; function getTickBackdropHeight(opts) { const tickOpts = opts.ticks; diff --git a/src/scales/scale.time.js b/src/scales/scale.time.js index 8a575a49b4a..6f292beacd2 100644 --- a/src/scales/scale.time.js +++ b/src/scales/scale.time.js @@ -1,13 +1,13 @@ -import adapters from '../core/core.adapters'; -import {callback as call, isFinite, isNullOrUndef, mergeIf, valueOrDefault} from '../helpers/helpers.core'; -import {toRadians, isNumber, _limitValue} from '../helpers/helpers.math'; -import Scale from '../core/core.scale'; -import {_arrayUnique, _filterBetween, _lookup} from '../helpers/helpers.collection'; +import adapters from '../core/core.adapters.js'; +import {callback as call, isFinite, isNullOrUndef, mergeIf, valueOrDefault} from '../helpers/helpers.core.js'; +import {toRadians, isNumber, _limitValue} from '../helpers/helpers.math.js'; +import Scale from '../core/core.scale.js'; +import {_arrayUnique, _filterBetween, _lookup} from '../helpers/helpers.collection.js'; /** - * @typedef { import("../core/core.adapters").TimeUnit } Unit + * @typedef { import('../core/core.adapters.js').TimeUnit } Unit * @typedef {{common: boolean, size: number, steps?: number}} Interval - * @typedef { import("../core/core.adapters").DateAdapter } DateAdapter + * @typedef { import('../core/core.adapters.js').DateAdapter } DateAdapter */ /** diff --git a/src/scales/scale.timeseries.js b/src/scales/scale.timeseries.js index 6e8d39cd500..f347cd341c1 100644 --- a/src/scales/scale.timeseries.js +++ b/src/scales/scale.timeseries.js @@ -1,5 +1,5 @@ -import TimeScale from './scale.time'; -import {_lookupByKey} from '../helpers/helpers.collection'; +import TimeScale from './scale.time.js'; +import {_lookupByKey} from '../helpers/helpers.collection.js'; /** * Linearly interpolates the given source `val` using the table. If value is out of bounds, values diff --git a/src/types.ts b/src/types.ts index cf780e11538..56689652188 100644 --- a/src/types.ts +++ b/src/types.ts @@ -3,7 +3,7 @@ * After transition done need to remove it in favor of index.ts */ -export * from '.'; +export * from './index.js'; /** * Explicitly re-exporting to resolve the ambiguity. */ @@ -46,5 +46,5 @@ export { TimeScale, TimeSeriesScale, registerables -} from '../types'; -export * from '../types'; +} from '../types/index.js'; +export * from '../types/index.js'; diff --git a/test/integration/typescript-node-next/tsconfig.json b/test/integration/typescript-node-next/tsconfig.json index 3a894d5737e..0abf67dcf94 100644 --- a/test/integration/typescript-node-next/tsconfig.json +++ b/test/integration/typescript-node-next/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "target": "ES6", "moduleResolution": "NodeNext", "noEmit": true, "lib": ["es2018", "DOM"] diff --git a/test/integration/typescript-node/tsconfig.json b/test/integration/typescript-node/tsconfig.json index 9a26a3d9dc4..0036ee25208 100644 --- a/test/integration/typescript-node/tsconfig.json +++ b/test/integration/typescript-node/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "target": "ES6", "moduleResolution": "Node", "noEmit": true, "lib": ["es2018", "DOM"] diff --git a/tsconfig.json b/tsconfig.json index f58c0b3a182..5ccc6334e76 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,10 +11,16 @@ // "noUnusedLocals": true, // "noUnusedParameters": true, /* Modules */ - "moduleResolution": "Node", + "baseUrl": ".", + "module": "ESNext", + "moduleResolution": "NodeNext", + "resolveJsonModule": true, + "rootDir": "src", "types": ["offscreencanvas"], /* Emit */ "declaration": true, + "importsNotUsedAsValues": "error", + "inlineSourceMap": true, "outDir": "dist", /* JavaScript Support */ "allowJs": true, diff --git a/types/animation.d.ts b/types/animation.d.ts index 31d8d0b5704..9c6aaa34060 100644 --- a/types/animation.d.ts +++ b/types/animation.d.ts @@ -1,5 +1,5 @@ -import { Chart } from '.'; -import { AnyObject } from './basic'; +import { Chart } from './index.js'; +import { AnyObject } from './basic.js'; export declare class Animation { constructor(cfg: AnyObject, target: AnyObject, prop: string, to?: unknown); diff --git a/types/helpers/helpers.canvas.d.ts b/types/helpers/helpers.canvas.d.ts index 58129dba6a9..cda1b5ce804 100644 --- a/types/helpers/helpers.canvas.d.ts +++ b/types/helpers/helpers.canvas.d.ts @@ -1,7 +1,7 @@ -import { PointStyle } from '..'; -import { Color } from '../color'; -import { ChartArea, RoundedRect } from '../geometric'; -import { CanvasFontSpec } from '../../src/helpers/helpers.options'; +import { PointStyle } from '../index.js'; +import { Color } from '../color.js'; +import { ChartArea, RoundedRect } from '../geometric.js'; +import { CanvasFontSpec } from '../../src/helpers/helpers.options.js'; export function clearCanvas(canvas: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void; diff --git a/types/helpers/index.d.ts b/types/helpers/index.d.ts index 303ee1e0767..9aa9cf2bdf3 100644 --- a/types/helpers/index.d.ts +++ b/types/helpers/index.d.ts @@ -1,3 +1,3 @@ -export * from './helpers.canvas'; -export * from './helpers.canvas'; -export * from './helpers.segment'; +export * from './helpers.canvas.js'; +export * from './helpers.canvas.js'; +export * from './helpers.segment.js'; diff --git a/types/index.d.ts b/types/index.d.ts index 2e0369a093a..671f3e27f6f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,23 +1,22 @@ -import { DeepPartial, DistributiveArray, UnionToIntersection } from './utils'; - -import { TimeUnit } from '../src/core/core.adapters'; -import ArcElement from '../src/elements/element.arc'; -import PointElement from '../src/elements/element.point'; -import { EasingFunction } from '../src/helpers/helpers.easing'; -import { AnimationEvent } from './animation'; -import { AnyObject, EmptyObject } from './basic'; -import { Color } from './color'; -import Element from '../src/core/core.element'; -import { ChartArea, Padding, Point } from './geometric'; -import { LayoutItem, LayoutPosition } from './layout'; - -export { EasingFunction } from '../src/helpers/helpers.easing'; -export { default as ArcElement, ArcProps } from '../src/elements/element.arc'; -export { default as PointElement, PointProps } from '../src/elements/element.point'; -export { Animation, Animations, Animator, AnimationEvent } from './animation'; -export { Color } from './color'; -export { ChartArea, Point } from './geometric'; -export { LayoutItem, LayoutPosition } from './layout'; +import { DeepPartial, DistributiveArray, UnionToIntersection } from './utils.js'; + +import { TimeUnit } from '../src/core/core.adapters.js'; +import PointElement from '../src/elements/element.point.js'; +import { EasingFunction } from '../src/helpers/helpers.easing.js'; +import { AnimationEvent } from './animation.js'; +import { AnyObject, EmptyObject } from './basic.js'; +import { Color } from './color.js'; +import Element from '../src/core/core.element.js'; +import { ChartArea, Padding, Point } from './geometric.js'; +import { LayoutItem, LayoutPosition } from './layout.js'; + +export { EasingFunction } from '../src/helpers/helpers.easing.js'; +export { default as ArcElement, ArcProps } from '../src/elements/element.arc.js'; +export { default as PointElement, PointProps } from '../src/elements/element.point.js'; +export { Animation, Animations, Animator, AnimationEvent } from './animation.js'; +export { Color } from './color.js'; +export { ChartArea, Point } from './geometric.js'; +export { LayoutItem, LayoutPosition } from './layout.js'; export interface ScriptableContext { active: boolean; diff --git a/types/layout.d.ts b/types/layout.d.ts index 4c770711582..32fef763451 100644 --- a/types/layout.d.ts +++ b/types/layout.d.ts @@ -1,4 +1,4 @@ -import { ChartArea } from './geometric'; +import { ChartArea } from './geometric.js'; export type LayoutPosition = 'left' | 'top' | 'right' | 'bottom' | 'center' | 'chartArea' | {[scaleId: string]: number}; diff --git a/types/tests/animation.ts b/types/tests/animation.ts index c998bf603df..634862404c0 100644 --- a/types/tests/animation.ts +++ b/types/tests/animation.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../src/types'; +import { Chart } from '../../src/types.js'; const chart = new Chart('id', { type: 'bar', diff --git a/types/tests/chart_types.ts b/types/tests/chart_types.ts index 16ec835266a..f1dfb0ff6d2 100644 --- a/types/tests/chart_types.ts +++ b/types/tests/chart_types.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../src/types'; +import { Chart } from '../../src/types.js'; const chart = new Chart('chart', { type: 'bar', diff --git a/types/tests/controllers/bar_floating_data.ts b/types/tests/controllers/bar_floating_data.ts index 91380a85cce..36edfb8fa36 100644 --- a/types/tests/controllers/bar_floating_data.ts +++ b/types/tests/controllers/bar_floating_data.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; const chart = new Chart('id', { type: 'bar', diff --git a/types/tests/controllers/bubble_chart_options.ts b/types/tests/controllers/bubble_chart_options.ts index aa1ba511007..0143083882c 100644 --- a/types/tests/controllers/bubble_chart_options.ts +++ b/types/tests/controllers/bubble_chart_options.ts @@ -1,4 +1,4 @@ -import { Chart, ChartOptions } from '../../../src/types'; +import { Chart, ChartOptions } from '../../../src/types.js'; const chart = new Chart('test', { type: 'bubble', diff --git a/types/tests/controllers/doughnut_meta_total.ts b/types/tests/controllers/doughnut_meta_total.ts index ccd8f337a35..d749765d912 100644 --- a/types/tests/controllers/doughnut_meta_total.ts +++ b/types/tests/controllers/doughnut_meta_total.ts @@ -1,4 +1,4 @@ -import { Chart, ChartMeta, Element } from '../../../src/types'; +import { Chart, ChartMeta, Element } from '../../../src/types.js'; const chart = new Chart('id', { type: 'doughnut', diff --git a/types/tests/controllers/doughnut_offset.ts b/types/tests/controllers/doughnut_offset.ts index a238b269083..ed70838188f 100644 --- a/types/tests/controllers/doughnut_offset.ts +++ b/types/tests/controllers/doughnut_offset.ts @@ -1,4 +1,4 @@ -import { Chart, ChartMeta, Element } from '../../../src/types'; +import { Chart, ChartMeta, Element } from '../../../src/types.js'; const chart = new Chart('id', { type: 'doughnut', diff --git a/types/tests/controllers/doughnut_outer_radius.ts b/types/tests/controllers/doughnut_outer_radius.ts index 9f39caf6fe2..7d651ed0038 100644 --- a/types/tests/controllers/doughnut_outer_radius.ts +++ b/types/tests/controllers/doughnut_outer_radius.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; const chart = new Chart('id', { type: 'doughnut', diff --git a/types/tests/controllers/line_scriptable_parsed_data.ts b/types/tests/controllers/line_scriptable_parsed_data.ts index 0562250bb26..e484e09cff9 100644 --- a/types/tests/controllers/line_scriptable_parsed_data.ts +++ b/types/tests/controllers/line_scriptable_parsed_data.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; const chart = new Chart('id', { type: 'line', diff --git a/types/tests/controllers/line_segments.ts b/types/tests/controllers/line_segments.ts index 6478cdaa9c4..2e4d0170741 100644 --- a/types/tests/controllers/line_segments.ts +++ b/types/tests/controllers/line_segments.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; const chart = new Chart('id', { type: 'line', diff --git a/types/tests/controllers/line_span_gaps.ts b/types/tests/controllers/line_span_gaps.ts index da6c8bcb714..38c94b67387 100644 --- a/types/tests/controllers/line_span_gaps.ts +++ b/types/tests/controllers/line_span_gaps.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; const chart = new Chart('id', { type: 'line', diff --git a/types/tests/controllers/line_styling_array.ts b/types/tests/controllers/line_styling_array.ts index b5dce9d8308..673eb386fb1 100644 --- a/types/tests/controllers/line_styling_array.ts +++ b/types/tests/controllers/line_styling_array.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; const chart = new Chart('id', { type: 'line', diff --git a/types/tests/controllers/radar_dataset_indexable_options.ts b/types/tests/controllers/radar_dataset_indexable_options.ts index d55924f3e3c..28aeecf539e 100644 --- a/types/tests/controllers/radar_dataset_indexable_options.ts +++ b/types/tests/controllers/radar_dataset_indexable_options.ts @@ -1,4 +1,4 @@ -import { Chart, ChartOptions } from '../../../src/types'; +import { Chart, ChartOptions } from '../../../src/types.js'; const chart = new Chart('test', { type: 'radar', diff --git a/types/tests/data_types.ts b/types/tests/data_types.ts index 7c1ca05b308..48a60598ffe 100644 --- a/types/tests/data_types.ts +++ b/types/tests/data_types.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../src/types'; +import { Chart } from '../../src/types.js'; const chart = new Chart('chart', { type: 'bar', diff --git a/types/tests/dataset_null_data.ts b/types/tests/dataset_null_data.ts index 3ee85f2abf0..b63344db17d 100644 --- a/types/tests/dataset_null_data.ts +++ b/types/tests/dataset_null_data.ts @@ -1,4 +1,4 @@ -import { ChartDataset } from '../../src/types'; +import { ChartDataset } from '../../src/types.js'; const dataset: ChartDataset = { data: [10, null, 20], diff --git a/types/tests/date_adapter.ts b/types/tests/date_adapter.ts index a6e28445281..c514ae7eba5 100644 --- a/types/tests/date_adapter.ts +++ b/types/tests/date_adapter.ts @@ -1,4 +1,4 @@ -import { _adapters } from '../../src/types'; +import { _adapters } from '../../src/types.js'; _adapters._date.override<{myOption: boolean}>({ init() { diff --git a/types/tests/defaults.ts b/types/tests/defaults.ts index 096eafab506..84071849245 100644 --- a/types/tests/defaults.ts +++ b/types/tests/defaults.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../src/types'; +import { Chart } from '../../src/types.js'; Chart.defaults.scales.time.time.minUnit = 'day'; diff --git a/types/tests/elements/scriptable_element_options.ts b/types/tests/elements/scriptable_element_options.ts index 3792fc37e59..90dd3ee14a5 100644 --- a/types/tests/elements/scriptable_element_options.ts +++ b/types/tests/elements/scriptable_element_options.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; const chart = new Chart('id', { type: 'line', diff --git a/types/tests/extensions/plugin.ts b/types/tests/extensions/plugin.ts index f03b27b5cd1..79bce4f5a59 100644 --- a/types/tests/extensions/plugin.ts +++ b/types/tests/extensions/plugin.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; Chart.register({ id: 'my-plugin', diff --git a/types/tests/extensions/scale.ts b/types/tests/extensions/scale.ts index e78c41745e8..c02871c4eb8 100644 --- a/types/tests/extensions/scale.ts +++ b/types/tests/extensions/scale.ts @@ -1,5 +1,5 @@ -import { AnyObject } from '../../basic'; -import { CartesianScaleOptions, Chart, Scale } from '../../../src/types'; +import { AnyObject } from '../../basic.js'; +import { CartesianScaleOptions, Chart, Scale } from '../../../src/types.js'; export type TestScaleOptions = CartesianScaleOptions & { testOption?: boolean diff --git a/types/tests/helpers/options.ts b/types/tests/helpers/options.ts index bb57312a81b..454f2495758 100644 --- a/types/tests/helpers/options.ts +++ b/types/tests/helpers/options.ts @@ -1,4 +1,4 @@ -import { createContext } from '../../../src/helpers/helpers.options'; +import { createContext } from '../../../src/helpers/helpers.options.js'; const context1 = createContext(null, { type: 'test1', parent: true }); const context2 = createContext(context1, { type: 'test2' }); diff --git a/types/tests/layout/position.ts b/types/tests/layout/position.ts index 25007207fb2..cc0e8be67ee 100644 --- a/types/tests/layout/position.ts +++ b/types/tests/layout/position.ts @@ -1,4 +1,4 @@ -import { LayoutPosition } from '../../../src/types'; +import { LayoutPosition } from '../../../src/types.js'; const left: LayoutPosition = 'left'; const right: LayoutPosition = 'right'; diff --git a/types/tests/options.ts b/types/tests/options.ts index 231a83b79d7..a3b612f625d 100644 --- a/types/tests/options.ts +++ b/types/tests/options.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../src/types'; +import { Chart } from '../../src/types.js'; const chart = new Chart('test', { type: 'bar', diff --git a/types/tests/overrides.ts b/types/tests/overrides.ts index 28701cbbbbd..b4da296a322 100644 --- a/types/tests/overrides.ts +++ b/types/tests/overrides.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../src/types'; +import { Chart } from '../../src/types.js'; Chart.overrides.bar.scales.x.type = 'time'; diff --git a/types/tests/parsed.data.type.ts b/types/tests/parsed.data.type.ts index 6123ce9c017..a4de0aaf305 100644 --- a/types/tests/parsed.data.type.ts +++ b/types/tests/parsed.data.type.ts @@ -1,4 +1,4 @@ -import { ParsedDataType } from '../../src/types'; +import { ParsedDataType } from '../../src/types.js'; interface test { pie: ParsedDataType<'pie'>, diff --git a/types/tests/plugins/defaults.ts b/types/tests/plugins/defaults.ts index cc2896b688c..55a08ac7ad8 100644 --- a/types/tests/plugins/defaults.ts +++ b/types/tests/plugins/defaults.ts @@ -1,4 +1,4 @@ -import { defaults } from '../../../src/types'; +import { defaults } from '../../../src/types.js'; // https://github.com/chartjs/Chart.js/issues/8711 const original = defaults.plugins.legend.labels.generateLabels; diff --git a/types/tests/plugins/plugin.decimation/decimation_algorithm.ts b/types/tests/plugins/plugin.decimation/decimation_algorithm.ts index 2ca4afbed83..0667968cbf5 100644 --- a/types/tests/plugins/plugin.decimation/decimation_algorithm.ts +++ b/types/tests/plugins/plugin.decimation/decimation_algorithm.ts @@ -1,4 +1,4 @@ -import { Chart, DecimationAlgorithm } from '../../../../src/types'; +import { Chart, DecimationAlgorithm } from '../../../../src/types.js'; const chart = new Chart('id', { type: 'bubble', diff --git a/types/tests/plugins/plugin.filler/fill_target_true.ts b/types/tests/plugins/plugin.filler/fill_target_true.ts index e43a94fe191..6e9553da9d7 100644 --- a/types/tests/plugins/plugin.filler/fill_target_true.ts +++ b/types/tests/plugins/plugin.filler/fill_target_true.ts @@ -1,4 +1,4 @@ -import { ChartDataset } from '../../../../src/types'; +import { ChartDataset } from '../../../../src/types.js'; const dataset: ChartDataset = { data: [], diff --git a/types/tests/plugins/plugin.tooltip/chart.tooltip.ts b/types/tests/plugins/plugin.tooltip/chart.tooltip.ts index 6f32fe20be0..338b62df858 100644 --- a/types/tests/plugins/plugin.tooltip/chart.tooltip.ts +++ b/types/tests/plugins/plugin.tooltip/chart.tooltip.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../../src/types'; +import { Chart } from '../../../../src/types.js'; const chart = new Chart('id', { type: 'line', diff --git a/types/tests/plugins/plugin.tooltip/tooltip_dataset_type.ts b/types/tests/plugins/plugin.tooltip/tooltip_dataset_type.ts index aae63fcb7a6..045476265ad 100644 --- a/types/tests/plugins/plugin.tooltip/tooltip_dataset_type.ts +++ b/types/tests/plugins/plugin.tooltip/tooltip_dataset_type.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../../src/types'; +import { Chart } from '../../../../src/types.js'; const chart = new Chart('id', { type: 'line', diff --git a/types/tests/plugins/plugin.tooltip/tooltip_parsed_data.ts b/types/tests/plugins/plugin.tooltip/tooltip_parsed_data.ts index 52c58bea0e1..4c35c8b8abe 100644 --- a/types/tests/plugins/plugin.tooltip/tooltip_parsed_data.ts +++ b/types/tests/plugins/plugin.tooltip/tooltip_parsed_data.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../../src/types'; +import { Chart } from '../../../../src/types.js'; const chart = new Chart('id', { type: 'bar', diff --git a/types/tests/plugins/plugin.tooltip/tooltip_parsed_data_chart_defaults.ts b/types/tests/plugins/plugin.tooltip/tooltip_parsed_data_chart_defaults.ts index 3817b0261e9..5072824bcf9 100644 --- a/types/tests/plugins/plugin.tooltip/tooltip_parsed_data_chart_defaults.ts +++ b/types/tests/plugins/plugin.tooltip/tooltip_parsed_data_chart_defaults.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../../src/types'; +import { Chart } from '../../../../src/types.js'; Chart.overrides.bubble.plugins.tooltip.callbacks.label = (item) => { const { x, y, _custom: r } = item.parsed; diff --git a/types/tests/plugins/plugin.tooltip/tooltip_scriptable_background_color.ts b/types/tests/plugins/plugin.tooltip/tooltip_scriptable_background_color.ts index bc90008f6cb..2c6fd47e64b 100644 --- a/types/tests/plugins/plugin.tooltip/tooltip_scriptable_background_color.ts +++ b/types/tests/plugins/plugin.tooltip/tooltip_scriptable_background_color.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../../src/types'; +import { Chart } from '../../../../src/types.js'; const chart = new Chart('id', { type: 'bar', diff --git a/types/tests/scales/chart_options.ts b/types/tests/scales/chart_options.ts index fa8c806a771..8694aa9f7e3 100644 --- a/types/tests/scales/chart_options.ts +++ b/types/tests/scales/chart_options.ts @@ -1,4 +1,4 @@ -import { ChartOptions } from '../../../src/types'; +import { ChartOptions } from '../../../src/types.js'; const chartOptions: ChartOptions<'line'> = { scales: { diff --git a/types/tests/scales/options.ts b/types/tests/scales/options.ts index 65debaffa52..3b545d4e13a 100644 --- a/types/tests/scales/options.ts +++ b/types/tests/scales/options.ts @@ -1,4 +1,4 @@ -import { Chart, ScaleOptions } from '../../../src/types'; +import { Chart, ScaleOptions } from '../../../src/types.js'; const chart = new Chart('test', { type: 'bar', diff --git a/types/tests/scales/time_string_max.ts b/types/tests/scales/time_string_max.ts index 377c3e268a9..734e2eda125 100644 --- a/types/tests/scales/time_string_max.ts +++ b/types/tests/scales/time_string_max.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../../src/types'; +import { Chart } from '../../../src/types.js'; const chart = new Chart('id', { type: 'line', diff --git a/types/tests/scriptable.ts b/types/tests/scriptable.ts index 248441cdaa4..607fe8cffb4 100644 --- a/types/tests/scriptable.ts +++ b/types/tests/scriptable.ts @@ -1,4 +1,4 @@ -import { ChartType, Scriptable, ScriptableContext } from '../../src/types'; +import { ChartType, Scriptable, ScriptableContext } from '../../src/types.js'; interface test { pie?: Scriptable>, diff --git a/types/tests/scriptable_core_chart_options.ts b/types/tests/scriptable_core_chart_options.ts index 59fe94af930..87b3bbe5e08 100644 --- a/types/tests/scriptable_core_chart_options.ts +++ b/types/tests/scriptable_core_chart_options.ts @@ -1,4 +1,4 @@ -import { ChartConfiguration } from '../../src/types'; +import { ChartConfiguration } from '../../src/types.js'; const getConfig = (): ChartConfiguration<'bar'> => { return { diff --git a/types/tests/test_instance_assignment.ts b/types/tests/test_instance_assignment.ts index 5e8823a7e87..5d84637735c 100644 --- a/types/tests/test_instance_assignment.ts +++ b/types/tests/test_instance_assignment.ts @@ -1,4 +1,4 @@ -import { Chart } from '../../src/types'; +import { Chart } from '../../src/types.js'; const chart = new Chart('id', { type: 'scatter',