fiery-rabbit 0.0.54 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/dist/{auto-oniAJtOb.mjs → auto-Dcgrp2-d.mjs} +158 -94
- package/dist/components/accordion/src/accordion.vue.d.ts +16 -13
- package/dist/components/accordion/src/accordion.vue.d.ts.map +1 -1
- package/dist/components/auto-complete/src/auto-complete.vue.d.ts +56 -53
- package/dist/components/auto-complete/src/auto-complete.vue.d.ts.map +1 -1
- package/dist/components/avatar/src/avatar.vue.d.ts +15 -12
- package/dist/components/avatar/src/avatar.vue.d.ts.map +1 -1
- package/dist/components/avatar-group/src/avatar-group.vue.d.ts +11 -8
- package/dist/components/avatar-group/src/avatar-group.vue.d.ts.map +1 -1
- package/dist/components/badge/src/badge.vue.d.ts +11 -8
- package/dist/components/badge/src/badge.vue.d.ts.map +1 -1
- package/dist/components/block-ui/src/block-ui.vue.d.ts +13 -10
- package/dist/components/block-ui/src/block-ui.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/src/breadcrumb.vue.d.ts +14 -11
- package/dist/components/breadcrumb/src/breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/button/src/button.vue.d.ts +20 -17
- package/dist/components/button/src/button.vue.d.ts.map +1 -1
- package/dist/components/card/src/card.vue.d.ts +13 -10
- package/dist/components/card/src/card.vue.d.ts.map +1 -1
- package/dist/components/carousel/src/carousel.vue.d.ts +21 -18
- package/dist/components/carousel/src/carousel.vue.d.ts.map +1 -1
- package/dist/components/cascade-select/src/cascade-select.vue.d.ts +24 -21
- package/dist/components/cascade-select/src/cascade-select.vue.d.ts.map +1 -1
- package/dist/components/chart/src/chart.vue.d.ts +9 -8
- package/dist/components/chart/src/chart.vue.d.ts.map +1 -1
- package/dist/components/checkbox/src/checkbox.vue.d.ts +19 -16
- package/dist/components/checkbox/src/checkbox.vue.d.ts.map +1 -1
- package/dist/components/chip/src/chip.vue.d.ts +18 -15
- package/dist/components/chip/src/chip.vue.d.ts.map +1 -1
- package/dist/components/chips/src/chips.vue.d.ts +22 -19
- package/dist/components/chips/src/chips.vue.d.ts.map +1 -1
- package/dist/components/color-picker/src/color-picker.vue.d.ts +9 -8
- package/dist/components/color-picker/src/color-picker.vue.d.ts.map +1 -1
- package/dist/components/confirm-dialog/src/confirm-dialog.vue.d.ts +17 -14
- package/dist/components/confirm-dialog/src/confirm-dialog.vue.d.ts.map +1 -1
- package/dist/components/confirm-popup/src/confirm-popup.vue.d.ts +14 -11
- package/dist/components/confirm-popup/src/confirm-popup.vue.d.ts.map +1 -1
- package/dist/components/data-view/src/data-view.vue.d.ts +26 -23
- package/dist/components/data-view/src/data-view.vue.d.ts.map +1 -1
- package/dist/components/data-view-layout-options/src/data-view-layout-options.vue.d.ts +14 -11
- package/dist/components/data-view-layout-options/src/data-view-layout-options.vue.d.ts.map +1 -1
- package/dist/components/deferred/src/deferred.vue.d.ts +13 -10
- package/dist/components/deferred/src/deferred.vue.d.ts.map +1 -1
- package/dist/components/dialog/src/dialog.vue.d.ts +27 -24
- package/dist/components/dialog/src/dialog.vue.d.ts.map +1 -1
- package/dist/components/divider/src/divider.vue.d.ts +11 -8
- package/dist/components/divider/src/divider.vue.d.ts.map +1 -1
- package/dist/components/dock/src/dock.vue.d.ts +22 -19
- package/dist/components/dock/src/dock.vue.d.ts.map +1 -1
- package/dist/components/dropdown/src/dropdown.vue.d.ts +60 -57
- package/dist/components/dropdown/src/dropdown.vue.d.ts.map +1 -1
- package/dist/components/dynamic-dialog/src/dynamic-dialog.vue.d.ts +10 -8
- package/dist/components/dynamic-dialog/src/dynamic-dialog.vue.d.ts.map +1 -1
- package/dist/components/fieldset/src/fieldset.vue.d.ts +15 -12
- package/dist/components/fieldset/src/fieldset.vue.d.ts.map +1 -1
- package/dist/components/file-upload/src/file-upload.vue.d.ts +35 -32
- package/dist/components/file-upload/src/file-upload.vue.d.ts.map +1 -1
- package/dist/components/float-label/src/float-label.vue.d.ts +11 -8
- package/dist/components/float-label/src/float-label.vue.d.ts.map +1 -1
- package/dist/components/form/src/form.vue.d.ts +13 -10
- package/dist/components/form/src/form.vue.d.ts.map +1 -1
- package/dist/components/form-item/src/form-item.vue.d.ts +9 -6
- package/dist/components/form-item/src/form-item.vue.d.ts.map +1 -1
- package/dist/components/galleria/src/galleria.vue.d.ts +31 -28
- package/dist/components/galleria/src/galleria.vue.d.ts.map +1 -1
- package/dist/components/icon-field/src/icon-field.vue.d.ts +12 -9
- package/dist/components/icon-field/src/icon-field.vue.d.ts.map +1 -1
- package/dist/components/image/src/image.vue.d.ts +22 -19
- package/dist/components/image/src/image.vue.d.ts.map +1 -1
- package/dist/components/inline-message/src/inline-message.vue.d.ts +12 -9
- package/dist/components/inline-message/src/inline-message.vue.d.ts.map +1 -1
- package/dist/components/inplace/src/inplace.vue.d.ts +15 -12
- package/dist/components/inplace/src/inplace.vue.d.ts.map +1 -1
- package/dist/components/input-group/src/input-group.vue.d.ts +13 -10
- package/dist/components/input-group/src/input-group.vue.d.ts.map +1 -1
- package/dist/components/input-mask/src/input-mask.vue.d.ts +11 -10
- package/dist/components/input-mask/src/input-mask.vue.d.ts.map +1 -1
- package/dist/components/input-otp/src/input-otp.vue.d.ts +19 -16
- package/dist/components/input-otp/src/input-otp.vue.d.ts.map +1 -1
- package/dist/components/input-switch/src/input-switch.vue.d.ts +11 -10
- package/dist/components/input-switch/src/input-switch.vue.d.ts.map +1 -1
- package/dist/components/input-text/src/input-text.vue.d.ts +12 -11
- package/dist/components/input-text/src/input-text.vue.d.ts.map +1 -1
- package/dist/components/knob/src/knob.vue.d.ts +9 -8
- package/dist/components/knob/src/knob.vue.d.ts.map +1 -1
- package/dist/components/layout/src/layout-aside.vue.d.ts +5 -2
- package/dist/components/layout/src/layout-aside.vue.d.ts.map +1 -1
- package/dist/components/layout/src/layout-main.vue.d.ts +2 -1
- package/dist/components/layout/src/layout-main.vue.d.ts.map +1 -1
- package/dist/components/layout/src/layout-setting.vue.d.ts +3 -3
- package/dist/components/layout/src/layout.vue.d.ts +17 -14
- package/dist/components/layout/src/layout.vue.d.ts.map +1 -1
- package/dist/components/listbox/src/listbox.vue.d.ts +46 -43
- package/dist/components/listbox/src/listbox.vue.d.ts.map +1 -1
- package/dist/components/mega-menu/src/mega-menu.vue.d.ts +29 -26
- package/dist/components/mega-menu/src/mega-menu.vue.d.ts.map +1 -1
- package/dist/components/menu/src/menu.vue.d.ts +27 -24
- package/dist/components/menu/src/menu.vue.d.ts.map +1 -1
- package/dist/components/menubar/src/menubar.vue.d.ts +17 -14
- package/dist/components/menubar/src/menubar.vue.d.ts.map +1 -1
- package/dist/components/message/src/message.vue.d.ts +22 -19
- package/dist/components/message/src/message.vue.d.ts.map +1 -1
- package/dist/components/meter-group/src/meter-group.vue.d.ts +28 -25
- package/dist/components/meter-group/src/meter-group.vue.d.ts.map +1 -1
- package/dist/components/multi-select/src/multi-select.vue.d.ts +76 -73
- package/dist/components/multi-select/src/multi-select.vue.d.ts.map +1 -1
- package/dist/components/order-list/src/order-list.vue.d.ts +23 -20
- package/dist/components/order-list/src/order-list.vue.d.ts.map +1 -1
- package/dist/components/org-chart/src/org-chart.vue.d.ts +20 -17
- package/dist/components/org-chart/src/org-chart.vue.d.ts.map +1 -1
- package/dist/components/overlay-panel/src/overlay-panel.vue.d.ts +18 -15
- package/dist/components/overlay-panel/src/overlay-panel.vue.d.ts.map +1 -1
- package/dist/components/paginator/src/paginator.vue.d.ts +28 -25
- package/dist/components/paginator/src/paginator.vue.d.ts.map +1 -1
- package/dist/components/panel/src/panel.vue.d.ts +23 -20
- package/dist/components/panel/src/panel.vue.d.ts.map +1 -1
- package/dist/components/panel-menu/src/panel-menu.vue.d.ts +25 -22
- package/dist/components/panel-menu/src/panel-menu.vue.d.ts.map +1 -1
- package/dist/components/password/src/password.vue.d.ts +21 -18
- package/dist/components/password/src/password.vue.d.ts.map +1 -1
- package/dist/components/pick-list/src/pick-list.vue.d.ts +41 -38
- package/dist/components/pick-list/src/pick-list.vue.d.ts.map +1 -1
- package/dist/components/progress-bar/src/progress-bar.vue.d.ts +11 -8
- package/dist/components/progress-bar/src/progress-bar.vue.d.ts.map +1 -1
- package/dist/components/progress-spinner/src/progress-spinner.vue.d.ts +7 -6
- package/dist/components/progress-spinner/src/progress-spinner.vue.d.ts.map +1 -1
- package/dist/components/radio-button/src/radio-button.vue.d.ts +12 -11
- package/dist/components/radio-button/src/radio-button.vue.d.ts.map +1 -1
- package/dist/components/rating/src/rating.vue.d.ts +25 -22
- package/dist/components/rating/src/rating.vue.d.ts.map +1 -1
- package/dist/components/scroll-panel/src/scroll-panel.vue.d.ts +11 -8
- package/dist/components/scroll-panel/src/scroll-panel.vue.d.ts.map +1 -1
- package/dist/components/scroll-top/src/scroll-top.vue.d.ts +12 -9
- package/dist/components/scroll-top/src/scroll-top.vue.d.ts.map +1 -1
- package/dist/components/select-button/src/select-button.vue.d.ts +18 -15
- package/dist/components/select-button/src/select-button.vue.d.ts.map +1 -1
- package/dist/components/sidebar/src/sidebar.vue.d.ts +22 -19
- package/dist/components/sidebar/src/sidebar.vue.d.ts.map +1 -1
- package/dist/components/sidebar-menu/src/sidebar-menu.vue.d.ts +16 -13
- package/dist/components/sidebar-menu/src/sidebar-menu.vue.d.ts.map +1 -1
- package/dist/components/skeleton/src/skeleton.vue.d.ts +7 -6
- package/dist/components/skeleton/src/skeleton.vue.d.ts.map +1 -1
- package/dist/components/slider/src/slider.vue.d.ts +9 -8
- package/dist/components/slider/src/slider.vue.d.ts.map +1 -1
- package/dist/components/speed-dial/src/speed-dial.vue.d.ts +24 -21
- package/dist/components/speed-dial/src/speed-dial.vue.d.ts.map +1 -1
- package/dist/components/split-button/src/split-button.vue.d.ts +30 -27
- package/dist/components/split-button/src/split-button.vue.d.ts.map +1 -1
- package/dist/components/splitter/src/splitter.vue.d.ts +13 -10
- package/dist/components/splitter/src/splitter.vue.d.ts.map +1 -1
- package/dist/components/stepper/src/stepper.vue.d.ts +15 -12
- package/dist/components/stepper/src/stepper.vue.d.ts.map +1 -1
- package/dist/components/steps/src/steps.vue.d.ts +19 -16
- package/dist/components/steps/src/steps.vue.d.ts.map +1 -1
- package/dist/components/tab-menu/src/tab-menu.vue.d.ts +23 -20
- package/dist/components/tab-menu/src/tab-menu.vue.d.ts.map +1 -1
- package/dist/components/tag/src/tag.vue.d.ts +12 -9
- package/dist/components/tag/src/tag.vue.d.ts.map +1 -1
- package/dist/components/terminal/src/terminal.vue.d.ts +7 -6
- package/dist/components/terminal/src/terminal.vue.d.ts.map +1 -1
- package/dist/components/textarea/src/textarea.vue.d.ts +11 -10
- package/dist/components/textarea/src/textarea.vue.d.ts.map +1 -1
- package/dist/components/tiered-menu/src/tiered-menu.vue.d.ts +28 -25
- package/dist/components/tiered-menu/src/tiered-menu.vue.d.ts.map +1 -1
- package/dist/components/timeline/src/timeline.vue.d.ts +19 -16
- package/dist/components/timeline/src/timeline.vue.d.ts.map +1 -1
- package/dist/components/toast/src/toast.vue.d.ts +25 -22
- package/dist/components/toast/src/toast.vue.d.ts.map +1 -1
- package/dist/components/toggle-button/src/toggle-button.vue.d.ts +18 -15
- package/dist/components/toggle-button/src/toggle-button.vue.d.ts.map +1 -1
- package/dist/components/toolbar/src/toolbar.vue.d.ts +13 -10
- package/dist/components/toolbar/src/toolbar.vue.d.ts.map +1 -1
- package/dist/components/tree-select/src/tree-select.vue.d.ts +39 -36
- package/dist/components/tree-select/src/tree-select.vue.d.ts.map +1 -1
- package/dist/components/tri-state-checkbox/src/tri-state-checkbox.vue.d.ts +23 -20
- package/dist/components/tri-state-checkbox/src/tri-state-checkbox.vue.d.ts.map +1 -1
- package/dist/components/virtual-tree/src/virtual-tree.vue.d.ts +8 -7
- package/dist/components/virtual-tree/src/virtual-tree.vue.d.ts.map +1 -1
- package/dist/components/x6-graph/src/x6-graph.vue.d.ts +19 -16
- package/dist/components/x6-graph/src/x6-graph.vue.d.ts.map +1 -1
- package/dist/fiery-rabbit.d.ts +1 -0
- package/dist/fiery-rabbit.d.ts.map +1 -1
- package/dist/fiery-rabbit.es.js +117 -124
- package/dist/fiery-rabbit.umd.js +10 -10
- package/dist/hooks/request/index.d.ts +8 -7
- package/dist/hooks/request/index.d.ts.map +1 -1
- package/dist/hooks/router/index.d.ts +1 -0
- package/dist/hooks/websocket/index.d.ts +2 -2
- package/dist/{main-JvLLNkQW.mjs → main-DbGcpjB2.mjs} +2744 -4211
- package/dist/main.d.ts +115 -114
- package/dist/{quill-WK5YQ4G6.mjs → quill-DaAzFrT2.mjs} +49 -93
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Vue 3 + TypeScript + Vite
|
|
2
|
-
|
|
3
|
-
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
-
|
|
5
|
-
## Recommended IDE Setup
|
|
6
|
-
|
|
7
|
-
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
8
|
-
|
|
9
|
-
## Type Support For `.vue` Imports in TS
|
|
10
|
-
|
|
11
|
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
-
|
|
13
|
-
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
14
|
-
|
|
15
|
-
1. Disable the built-in TypeScript Extension
|
|
16
|
-
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
-
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
-
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
8
|
+
|
|
9
|
+
## Type Support For `.vue` Imports in TS
|
|
10
|
+
|
|
11
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
+
|
|
13
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
14
|
+
|
|
15
|
+
1. Disable the built-in TypeScript Extension
|
|
16
|
+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
/*!
|
|
8
|
-
* @kurkle/color v0.3.
|
|
5
|
+
* @kurkle/color v0.3.4
|
|
9
6
|
* https://github.com/kurkle/color#readme
|
|
10
|
-
* (c)
|
|
7
|
+
* (c) 2024 Jukka Kurkela
|
|
11
8
|
* Released under the MIT License
|
|
12
9
|
*/
|
|
13
10
|
function round(v) {
|
|
@@ -604,9 +601,9 @@ class Color {
|
|
|
604
601
|
}
|
|
605
602
|
}
|
|
606
603
|
/*!
|
|
607
|
-
* Chart.js v4.4.
|
|
604
|
+
* Chart.js v4.4.9
|
|
608
605
|
* https://www.chartjs.org
|
|
609
|
-
* (c)
|
|
606
|
+
* (c) 2025 Chart.js Contributors
|
|
610
607
|
* Released under the MIT License
|
|
611
608
|
*/
|
|
612
609
|
function noop() {
|
|
@@ -616,7 +613,7 @@ const uid = /* @__PURE__ */ (() => {
|
|
|
616
613
|
return () => id++;
|
|
617
614
|
})();
|
|
618
615
|
function isNullOrUndef(value) {
|
|
619
|
-
return value === null ||
|
|
616
|
+
return value === null || value === void 0;
|
|
620
617
|
}
|
|
621
618
|
function isArray(value) {
|
|
622
619
|
if (Array.isArray && Array.isArray(value)) {
|
|
@@ -651,11 +648,7 @@ function each(loopable, fn, thisArg, reverse) {
|
|
|
651
648
|
let i, len, keys;
|
|
652
649
|
if (isArray(loopable)) {
|
|
653
650
|
len = loopable.length;
|
|
654
|
-
|
|
655
|
-
for (i = len - 1; i >= 0; i--) {
|
|
656
|
-
fn.call(thisArg, loopable[i], i);
|
|
657
|
-
}
|
|
658
|
-
} else {
|
|
651
|
+
{
|
|
659
652
|
for (i = 0; i < len; i++) {
|
|
660
653
|
fn.call(thisArg, loopable[i], i);
|
|
661
654
|
}
|
|
@@ -845,8 +838,11 @@ function _factorize(value) {
|
|
|
845
838
|
result.sort((a, b) => a - b).pop();
|
|
846
839
|
return result;
|
|
847
840
|
}
|
|
841
|
+
function isNonPrimitive(n) {
|
|
842
|
+
return typeof n === "symbol" || typeof n === "object" && n !== null && !(Symbol.toPrimitive in n || "toString" in n || "valueOf" in n);
|
|
843
|
+
}
|
|
848
844
|
function isNumber(n) {
|
|
849
|
-
return !isNaN(parseFloat(n)) && isFinite(n);
|
|
845
|
+
return !isNonPrimitive(n) && !isNaN(parseFloat(n)) && isFinite(n);
|
|
850
846
|
}
|
|
851
847
|
function almostWhole(x, epsilon) {
|
|
852
848
|
const rounded = Math.round(x);
|
|
@@ -1058,8 +1054,10 @@ function _getStartAndCountOfVisiblePoints(meta, points, animationsDisabled) {
|
|
|
1058
1054
|
if (meta._sorted) {
|
|
1059
1055
|
const {
|
|
1060
1056
|
iScale,
|
|
1057
|
+
vScale,
|
|
1061
1058
|
_parsed
|
|
1062
1059
|
} = meta;
|
|
1060
|
+
const spanGaps = meta.dataset ? meta.dataset.options ? meta.dataset.options.spanGaps : null : null;
|
|
1063
1061
|
const axis = iScale.axis;
|
|
1064
1062
|
const {
|
|
1065
1063
|
min,
|
|
@@ -1068,20 +1066,30 @@ function _getStartAndCountOfVisiblePoints(meta, points, animationsDisabled) {
|
|
|
1068
1066
|
maxDefined
|
|
1069
1067
|
} = iScale.getUserBounds();
|
|
1070
1068
|
if (minDefined) {
|
|
1071
|
-
start =
|
|
1069
|
+
start = Math.min(
|
|
1072
1070
|
// @ts-expect-error Need to type _parsed
|
|
1073
1071
|
_lookupByKey(_parsed, axis, min).lo,
|
|
1074
1072
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
1075
1073
|
animationsDisabled ? pointCount : _lookupByKey(points, axis, iScale.getPixelForValue(min)).lo
|
|
1076
|
-
)
|
|
1074
|
+
);
|
|
1075
|
+
if (spanGaps) {
|
|
1076
|
+
const distanceToDefinedLo = _parsed.slice(0, start + 1).reverse().findIndex((point) => !isNullOrUndef(point[vScale.axis]));
|
|
1077
|
+
start -= Math.max(0, distanceToDefinedLo);
|
|
1078
|
+
}
|
|
1079
|
+
start = _limitValue(start, 0, pointCount - 1);
|
|
1077
1080
|
}
|
|
1078
1081
|
if (maxDefined) {
|
|
1079
|
-
|
|
1082
|
+
let end = Math.max(
|
|
1080
1083
|
// @ts-expect-error Need to type _parsed
|
|
1081
1084
|
_lookupByKey(_parsed, iScale.axis, max, true).hi + 1,
|
|
1082
1085
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
1083
1086
|
animationsDisabled ? 0 : _lookupByKey(points, axis, iScale.getPixelForValue(max), true).hi + 1
|
|
1084
|
-
)
|
|
1087
|
+
);
|
|
1088
|
+
if (spanGaps) {
|
|
1089
|
+
const distanceToDefinedHi = _parsed.slice(end - 1).findIndex((point) => !isNullOrUndef(point[vScale.axis]));
|
|
1090
|
+
end += Math.max(0, distanceToDefinedHi);
|
|
1091
|
+
}
|
|
1092
|
+
count = _limitValue(end, start, pointCount) - start;
|
|
1085
1093
|
} else {
|
|
1086
1094
|
count = pointCount - start;
|
|
1087
1095
|
}
|
|
@@ -1572,6 +1580,9 @@ function _alignPixel(chart, pixel, width) {
|
|
|
1572
1580
|
return Math.round((pixel - halfWidth) * devicePixelRatio) / devicePixelRatio + halfWidth;
|
|
1573
1581
|
}
|
|
1574
1582
|
function clearCanvas(canvas, ctx) {
|
|
1583
|
+
if (!ctx && !canvas) {
|
|
1584
|
+
return;
|
|
1585
|
+
}
|
|
1575
1586
|
ctx = ctx || canvas.getContext("2d");
|
|
1576
1587
|
ctx.save();
|
|
1577
1588
|
ctx.resetTransform();
|
|
@@ -1888,25 +1899,13 @@ function toFont(options, fallback) {
|
|
|
1888
1899
|
return font;
|
|
1889
1900
|
}
|
|
1890
1901
|
function resolve(inputs, context, index2, info) {
|
|
1891
|
-
let cacheable = true;
|
|
1892
1902
|
let i, ilen, value;
|
|
1893
1903
|
for (i = 0, ilen = inputs.length; i < ilen; ++i) {
|
|
1894
1904
|
value = inputs[i];
|
|
1895
1905
|
if (value === void 0) {
|
|
1896
1906
|
continue;
|
|
1897
1907
|
}
|
|
1898
|
-
if (context !== void 0 && typeof value === "function") {
|
|
1899
|
-
value = value(context);
|
|
1900
|
-
cacheable = false;
|
|
1901
|
-
}
|
|
1902
|
-
if (index2 !== void 0 && isArray(value)) {
|
|
1903
|
-
value = value[index2 % value.length];
|
|
1904
|
-
cacheable = false;
|
|
1905
|
-
}
|
|
1906
1908
|
if (value !== void 0) {
|
|
1907
|
-
if (info && !cacheable) {
|
|
1908
|
-
info.cacheable = false;
|
|
1909
|
-
}
|
|
1910
1909
|
return value;
|
|
1911
1910
|
}
|
|
1912
1911
|
}
|
|
@@ -2076,7 +2075,7 @@ function _descriptors(proxy, defaults2 = {
|
|
|
2076
2075
|
const readKey = (prefix, name) => prefix ? prefix + _capitalize(name) : name;
|
|
2077
2076
|
const needsSubResolver = (prop, value) => isObject(value) && prop !== "adapters" && (Object.getPrototypeOf(value) === null || value.constructor === Object);
|
|
2078
2077
|
function _cached(target, prop, resolve2) {
|
|
2079
|
-
if (Object.prototype.hasOwnProperty.call(target, prop)) {
|
|
2078
|
+
if (Object.prototype.hasOwnProperty.call(target, prop) || prop === "constructor") {
|
|
2080
2079
|
return target[prop];
|
|
2081
2080
|
}
|
|
2082
2081
|
const value = resolve2();
|
|
@@ -2493,7 +2492,7 @@ function getRelativePosition(event, chart) {
|
|
|
2493
2492
|
function getContainerSize(canvas, width, height) {
|
|
2494
2493
|
let maxWidth, maxHeight;
|
|
2495
2494
|
if (width === void 0 || height === void 0) {
|
|
2496
|
-
const container = _getParentNode(canvas);
|
|
2495
|
+
const container = canvas && _getParentNode(canvas);
|
|
2497
2496
|
if (!container) {
|
|
2498
2497
|
width = canvas.clientWidth;
|
|
2499
2498
|
height = canvas.clientHeight;
|
|
@@ -3000,10 +2999,41 @@ function styleChanged(style, prevStyle) {
|
|
|
3000
2999
|
};
|
|
3001
3000
|
return JSON.stringify(style, replacer) !== JSON.stringify(prevStyle, replacer);
|
|
3002
3001
|
}
|
|
3002
|
+
function getSizeForArea(scale, chartArea, field) {
|
|
3003
|
+
return scale.options.clip ? scale[field] : chartArea[field];
|
|
3004
|
+
}
|
|
3005
|
+
function getDatasetArea(meta, chartArea) {
|
|
3006
|
+
const {
|
|
3007
|
+
xScale,
|
|
3008
|
+
yScale
|
|
3009
|
+
} = meta;
|
|
3010
|
+
if (xScale && yScale) {
|
|
3011
|
+
return {
|
|
3012
|
+
left: getSizeForArea(xScale, chartArea, "left"),
|
|
3013
|
+
right: getSizeForArea(xScale, chartArea, "right"),
|
|
3014
|
+
top: getSizeForArea(yScale, chartArea, "top"),
|
|
3015
|
+
bottom: getSizeForArea(yScale, chartArea, "bottom")
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3018
|
+
return chartArea;
|
|
3019
|
+
}
|
|
3020
|
+
function getDatasetClipArea(chart, meta) {
|
|
3021
|
+
const clip = meta._clip;
|
|
3022
|
+
if (clip.disabled) {
|
|
3023
|
+
return false;
|
|
3024
|
+
}
|
|
3025
|
+
const area = getDatasetArea(meta, chart.chartArea);
|
|
3026
|
+
return {
|
|
3027
|
+
left: clip.left === false ? 0 : area.left - (clip.left === true ? 0 : clip.left),
|
|
3028
|
+
right: clip.right === false ? chart.width : area.right + (clip.right === true ? 0 : clip.right),
|
|
3029
|
+
top: clip.top === false ? 0 : area.top - (clip.top === true ? 0 : clip.top),
|
|
3030
|
+
bottom: clip.bottom === false ? chart.height : area.bottom + (clip.bottom === true ? 0 : clip.bottom)
|
|
3031
|
+
};
|
|
3032
|
+
}
|
|
3003
3033
|
/*!
|
|
3004
|
-
* Chart.js v4.4.
|
|
3034
|
+
* Chart.js v4.4.9
|
|
3005
3035
|
* https://www.chartjs.org
|
|
3006
|
-
* (c)
|
|
3036
|
+
* (c) 2025 Chart.js Contributors
|
|
3007
3037
|
* Released under the MIT License
|
|
3008
3038
|
*/
|
|
3009
3039
|
class Animator {
|
|
@@ -3413,9 +3443,11 @@ function applyStack(stack, value, dsIndex, options = {}) {
|
|
|
3413
3443
|
if (value === null) {
|
|
3414
3444
|
return;
|
|
3415
3445
|
}
|
|
3446
|
+
let found = false;
|
|
3416
3447
|
for (i = 0, ilen = keys.length; i < ilen; ++i) {
|
|
3417
3448
|
datasetIndex = +keys[i];
|
|
3418
3449
|
if (datasetIndex === dsIndex) {
|
|
3450
|
+
found = true;
|
|
3419
3451
|
if (options.all) {
|
|
3420
3452
|
continue;
|
|
3421
3453
|
}
|
|
@@ -3426,17 +3458,26 @@ function applyStack(stack, value, dsIndex, options = {}) {
|
|
|
3426
3458
|
value += otherValue;
|
|
3427
3459
|
}
|
|
3428
3460
|
}
|
|
3461
|
+
if (!found && !options.all) {
|
|
3462
|
+
return 0;
|
|
3463
|
+
}
|
|
3429
3464
|
return value;
|
|
3430
3465
|
}
|
|
3431
|
-
function convertObjectDataToArray(data) {
|
|
3466
|
+
function convertObjectDataToArray(data, meta) {
|
|
3467
|
+
const {
|
|
3468
|
+
iScale,
|
|
3469
|
+
vScale
|
|
3470
|
+
} = meta;
|
|
3471
|
+
const iAxisKey = iScale.axis === "x" ? "x" : "y";
|
|
3472
|
+
const vAxisKey = vScale.axis === "x" ? "x" : "y";
|
|
3432
3473
|
const keys = Object.keys(data);
|
|
3433
3474
|
const adata = new Array(keys.length);
|
|
3434
3475
|
let i, ilen, key;
|
|
3435
3476
|
for (i = 0, ilen = keys.length; i < ilen; ++i) {
|
|
3436
3477
|
key = keys[i];
|
|
3437
3478
|
adata[i] = {
|
|
3438
|
-
|
|
3439
|
-
|
|
3479
|
+
[iAxisKey]: key,
|
|
3480
|
+
[vAxisKey]: data[key]
|
|
3440
3481
|
};
|
|
3441
3482
|
}
|
|
3442
3483
|
return adata;
|
|
@@ -3640,7 +3681,8 @@ class DatasetController {
|
|
|
3640
3681
|
const data = dataset.data || (dataset.data = []);
|
|
3641
3682
|
const _data = this._data;
|
|
3642
3683
|
if (isObject(data)) {
|
|
3643
|
-
|
|
3684
|
+
const meta = this._cachedMeta;
|
|
3685
|
+
this._data = convertObjectDataToArray(data, meta);
|
|
3644
3686
|
} else if (_data !== data) {
|
|
3645
3687
|
if (_data) {
|
|
3646
3688
|
unlistenArrayEvents(_data, this);
|
|
@@ -3677,6 +3719,7 @@ class DatasetController {
|
|
|
3677
3719
|
this._resyncElements(resetNewElements);
|
|
3678
3720
|
if (stackChanged || oldStacked !== meta._stacked) {
|
|
3679
3721
|
updateStacks(this, meta._parsed);
|
|
3722
|
+
meta._stacked = isStacked(meta.vScale, meta);
|
|
3680
3723
|
}
|
|
3681
3724
|
}
|
|
3682
3725
|
configure() {
|
|
@@ -4453,8 +4496,10 @@ class BarController extends DatasetController {
|
|
|
4453
4496
|
const metasets = iScale.getMatchingVisibleMetas(this._type).filter((meta) => meta.controller.options.grouped);
|
|
4454
4497
|
const stacked = iScale.options.stacked;
|
|
4455
4498
|
const stacks = [];
|
|
4499
|
+
const currentParsed = this._cachedMeta.controller.getParsed(dataIndex);
|
|
4500
|
+
const iScaleValue = currentParsed && currentParsed[iScale.axis];
|
|
4456
4501
|
const skipNull = (meta) => {
|
|
4457
|
-
const parsed = meta.
|
|
4502
|
+
const parsed = meta._parsed.find((item) => item[iScale.axis] === iScaleValue);
|
|
4458
4503
|
const val = parsed && parsed[meta.vScale.axis];
|
|
4459
4504
|
if (isNullOrUndef(val) || isNaN(val)) {
|
|
4460
4505
|
return true;
|
|
@@ -4603,7 +4648,7 @@ class BarController extends DatasetController {
|
|
|
4603
4648
|
const ilen = rects.length;
|
|
4604
4649
|
let i = 0;
|
|
4605
4650
|
for (; i < ilen; ++i) {
|
|
4606
|
-
if (this.getParsed(i)[vScale.axis] !== null) {
|
|
4651
|
+
if (this.getParsed(i)[vScale.axis] !== null && !rects[i].hidden) {
|
|
4607
4652
|
rects[i].draw(this._ctx);
|
|
4608
4653
|
}
|
|
4609
4654
|
}
|
|
@@ -5666,10 +5711,24 @@ function binarySearch(metaset, axis, value, intersect) {
|
|
|
5666
5711
|
_sorted
|
|
5667
5712
|
} = metaset;
|
|
5668
5713
|
const iScale = controller._cachedMeta.iScale;
|
|
5714
|
+
const spanGaps = metaset.dataset ? metaset.dataset.options ? metaset.dataset.options.spanGaps : null : null;
|
|
5669
5715
|
if (iScale && axis === iScale.axis && axis !== "r" && _sorted && data.length) {
|
|
5670
5716
|
const lookupMethod = iScale._reversePixels ? _rlookupByKey : _lookupByKey;
|
|
5671
5717
|
if (!intersect) {
|
|
5672
|
-
|
|
5718
|
+
const result = lookupMethod(data, axis, value);
|
|
5719
|
+
if (spanGaps) {
|
|
5720
|
+
const {
|
|
5721
|
+
vScale
|
|
5722
|
+
} = controller._cachedMeta;
|
|
5723
|
+
const {
|
|
5724
|
+
_parsed
|
|
5725
|
+
} = metaset;
|
|
5726
|
+
const distanceToDefinedLo = _parsed.slice(0, result.lo + 1).reverse().findIndex((point) => !isNullOrUndef(point[vScale.axis]));
|
|
5727
|
+
result.lo -= Math.max(0, distanceToDefinedLo);
|
|
5728
|
+
const distanceToDefinedHi = _parsed.slice(result.hi).findIndex((point) => !isNullOrUndef(point[vScale.axis]));
|
|
5729
|
+
result.hi += Math.max(0, distanceToDefinedHi);
|
|
5730
|
+
}
|
|
5731
|
+
return result;
|
|
5673
5732
|
} else if (controller._sharedOptions) {
|
|
5674
5733
|
const el = data[0];
|
|
5675
5734
|
const range = typeof el.getRange === "function" && el.getRange(axis);
|
|
@@ -5805,7 +5864,7 @@ function getAxisItems(chart, position, axis, intersect, useFinalPosition) {
|
|
|
5805
5864
|
const rangeMethod = axis === "x" ? "inXRange" : "inYRange";
|
|
5806
5865
|
let intersectsItem = false;
|
|
5807
5866
|
evaluateInteractionItems(chart, axis, position, (element, datasetIndex, index2) => {
|
|
5808
|
-
if (element[rangeMethod](position[axis], useFinalPosition)) {
|
|
5867
|
+
if (element[rangeMethod] && element[rangeMethod](position[axis], useFinalPosition)) {
|
|
5809
5868
|
items.push({
|
|
5810
5869
|
element,
|
|
5811
5870
|
datasetIndex,
|
|
@@ -5820,7 +5879,6 @@ function getAxisItems(chart, position, axis, intersect, useFinalPosition) {
|
|
|
5820
5879
|
return items;
|
|
5821
5880
|
}
|
|
5822
5881
|
var Interaction = {
|
|
5823
|
-
evaluateInteractionItems,
|
|
5824
5882
|
modes: {
|
|
5825
5883
|
index(chart, e, options, useFinalPosition) {
|
|
5826
5884
|
const position = getRelativePosition(e, chart);
|
|
@@ -6095,7 +6153,6 @@ function placeBoxes(boxes, chartArea, params, stacks) {
|
|
|
6095
6153
|
for (const layout of boxes) {
|
|
6096
6154
|
const box = layout.box;
|
|
6097
6155
|
const stack = stacks[layout.stack] || {
|
|
6098
|
-
count: 1,
|
|
6099
6156
|
placed: 0,
|
|
6100
6157
|
weight: 1
|
|
6101
6158
|
};
|
|
@@ -6514,7 +6571,7 @@ class DomPlatform extends BasePlatform {
|
|
|
6514
6571
|
return getMaximumSize(canvas, width, height, aspectRatio);
|
|
6515
6572
|
}
|
|
6516
6573
|
isAttached(canvas) {
|
|
6517
|
-
const container = _getParentNode(canvas);
|
|
6574
|
+
const container = canvas && _getParentNode(canvas);
|
|
6518
6575
|
return !!(container && container.isConnected);
|
|
6519
6576
|
}
|
|
6520
6577
|
}
|
|
@@ -8583,7 +8640,7 @@ function needContext(proxy, names2) {
|
|
|
8583
8640
|
}
|
|
8584
8641
|
return false;
|
|
8585
8642
|
}
|
|
8586
|
-
var version = "4.4.
|
|
8643
|
+
var version = "4.4.9";
|
|
8587
8644
|
const KNOWN_POSITIONS = ["top", "bottom", "left", "right", "chartArea"];
|
|
8588
8645
|
function positionIsHorizontal(position, axis) {
|
|
8589
8646
|
return position === "top" || position === "bottom" || KNOWN_POSITIONS.indexOf(position) === -1 && axis === "x";
|
|
@@ -8642,24 +8699,6 @@ function determineLastEvent(e, lastEvent, inChartArea, isClick) {
|
|
|
8642
8699
|
}
|
|
8643
8700
|
return e;
|
|
8644
8701
|
}
|
|
8645
|
-
function getSizeForArea(scale, chartArea, field) {
|
|
8646
|
-
return scale.options.clip ? scale[field] : chartArea[field];
|
|
8647
|
-
}
|
|
8648
|
-
function getDatasetArea(meta, chartArea) {
|
|
8649
|
-
const {
|
|
8650
|
-
xScale,
|
|
8651
|
-
yScale
|
|
8652
|
-
} = meta;
|
|
8653
|
-
if (xScale && yScale) {
|
|
8654
|
-
return {
|
|
8655
|
-
left: getSizeForArea(xScale, chartArea, "left"),
|
|
8656
|
-
right: getSizeForArea(xScale, chartArea, "right"),
|
|
8657
|
-
top: getSizeForArea(yScale, chartArea, "top"),
|
|
8658
|
-
bottom: getSizeForArea(yScale, chartArea, "bottom")
|
|
8659
|
-
};
|
|
8660
|
-
}
|
|
8661
|
-
return chartArea;
|
|
8662
|
-
}
|
|
8663
8702
|
class Chart {
|
|
8664
8703
|
static register(...items) {
|
|
8665
8704
|
registry.add(...items);
|
|
@@ -9128,8 +9167,8 @@ class Chart {
|
|
|
9128
9167
|
width,
|
|
9129
9168
|
height
|
|
9130
9169
|
} = this._resizeBeforeDraw;
|
|
9131
|
-
this._resize(width, height);
|
|
9132
9170
|
this._resizeBeforeDraw = null;
|
|
9171
|
+
this._resize(width, height);
|
|
9133
9172
|
}
|
|
9134
9173
|
this.clear();
|
|
9135
9174
|
if (this.width <= 0 || this.height <= 0) {
|
|
@@ -9179,27 +9218,20 @@ class Chart {
|
|
|
9179
9218
|
}
|
|
9180
9219
|
_drawDataset(meta) {
|
|
9181
9220
|
const ctx = this.ctx;
|
|
9182
|
-
const clip = meta._clip;
|
|
9183
|
-
const useClip = !clip.disabled;
|
|
9184
|
-
const area = getDatasetArea(meta, this.chartArea);
|
|
9185
9221
|
const args = {
|
|
9186
9222
|
meta,
|
|
9187
9223
|
index: meta.index,
|
|
9188
9224
|
cancelable: true
|
|
9189
9225
|
};
|
|
9226
|
+
const clip = getDatasetClipArea(this, meta);
|
|
9190
9227
|
if (this.notifyPlugins("beforeDatasetDraw", args) === false) {
|
|
9191
9228
|
return;
|
|
9192
9229
|
}
|
|
9193
|
-
if (
|
|
9194
|
-
clipArea(ctx,
|
|
9195
|
-
left: clip.left === false ? 0 : area.left - clip.left,
|
|
9196
|
-
right: clip.right === false ? this.width : area.right + clip.right,
|
|
9197
|
-
top: clip.top === false ? 0 : area.top - clip.top,
|
|
9198
|
-
bottom: clip.bottom === false ? this.height : area.bottom + clip.bottom
|
|
9199
|
-
});
|
|
9230
|
+
if (clip) {
|
|
9231
|
+
clipArea(ctx, clip);
|
|
9200
9232
|
}
|
|
9201
9233
|
meta.controller.draw();
|
|
9202
|
-
if (
|
|
9234
|
+
if (clip) {
|
|
9203
9235
|
unclipArea(ctx);
|
|
9204
9236
|
}
|
|
9205
9237
|
args.cancelable = false;
|
|
@@ -9743,7 +9775,8 @@ class ArcElement extends Element {
|
|
|
9743
9775
|
} = this.getProps(["startAngle", "endAngle", "innerRadius", "outerRadius", "circumference"], useFinalPosition);
|
|
9744
9776
|
const rAdjust = (this.options.spacing + this.options.borderWidth) / 2;
|
|
9745
9777
|
const _circumference = valueOrDefault(circumference, endAngle - startAngle);
|
|
9746
|
-
const
|
|
9778
|
+
const nonZeroBetween = _angleBetween(angle, startAngle, endAngle) && startAngle !== endAngle;
|
|
9779
|
+
const betweenAngles = _circumference >= TAU || nonZeroBetween;
|
|
9747
9780
|
const withinRadius = _isBetween(distance, innerRadius + rAdjust, outerRadius + rAdjust);
|
|
9748
9781
|
return betweenAngles && withinRadius;
|
|
9749
9782
|
}
|
|
@@ -10471,6 +10504,9 @@ function containsColorsDefinitions(descriptors2) {
|
|
|
10471
10504
|
function containsColorsDefinition(descriptor) {
|
|
10472
10505
|
return descriptor && (descriptor.borderColor || descriptor.backgroundColor);
|
|
10473
10506
|
}
|
|
10507
|
+
function containsDefaultColorsDefenitions() {
|
|
10508
|
+
return defaults.borderColor !== "rgba(0,0,0,0.1)" || defaults.backgroundColor !== "rgba(0,0,0,0.1)";
|
|
10509
|
+
}
|
|
10474
10510
|
var plugin_colors = {
|
|
10475
10511
|
id: "colors",
|
|
10476
10512
|
defaults: {
|
|
@@ -10490,7 +10526,8 @@ var plugin_colors = {
|
|
|
10490
10526
|
const {
|
|
10491
10527
|
elements: elements2
|
|
10492
10528
|
} = chartOptions;
|
|
10493
|
-
|
|
10529
|
+
const containsColorDefenition = containsColorsDefinitions(datasets) || containsColorsDefinition(chartOptions) || elements2 && containsColorsDefinitions(elements2) || containsDefaultColorsDefenitions();
|
|
10530
|
+
if (!options.forceOverride && containsColorDefenition) {
|
|
10494
10531
|
return;
|
|
10495
10532
|
}
|
|
10496
10533
|
const colorizer = getColorizer(chart);
|
|
@@ -11122,6 +11159,8 @@ function computeCircularBoundary(source) {
|
|
|
11122
11159
|
function _drawfill(ctx, source, area) {
|
|
11123
11160
|
const target = _getTarget(source);
|
|
11124
11161
|
const {
|
|
11162
|
+
chart,
|
|
11163
|
+
index: index2,
|
|
11125
11164
|
line,
|
|
11126
11165
|
scale,
|
|
11127
11166
|
axis
|
|
@@ -11133,6 +11172,8 @@ function _drawfill(ctx, source, area) {
|
|
|
11133
11172
|
above = color2,
|
|
11134
11173
|
below = color2
|
|
11135
11174
|
} = fillOption || {};
|
|
11175
|
+
const meta = chart.getDatasetMeta(index2);
|
|
11176
|
+
const clip = getDatasetClipArea(chart, meta);
|
|
11136
11177
|
if (target && line.points.length) {
|
|
11137
11178
|
clipArea(ctx, area);
|
|
11138
11179
|
doFill(ctx, {
|
|
@@ -11142,7 +11183,8 @@ function _drawfill(ctx, source, area) {
|
|
|
11142
11183
|
below,
|
|
11143
11184
|
area,
|
|
11144
11185
|
scale,
|
|
11145
|
-
axis
|
|
11186
|
+
axis,
|
|
11187
|
+
clip
|
|
11146
11188
|
});
|
|
11147
11189
|
unclipArea(ctx);
|
|
11148
11190
|
}
|
|
@@ -11154,7 +11196,8 @@ function doFill(ctx, cfg) {
|
|
|
11154
11196
|
above,
|
|
11155
11197
|
below,
|
|
11156
11198
|
area,
|
|
11157
|
-
scale
|
|
11199
|
+
scale,
|
|
11200
|
+
clip
|
|
11158
11201
|
} = cfg;
|
|
11159
11202
|
const property = line._loop ? "angle" : cfg.axis;
|
|
11160
11203
|
ctx.save();
|
|
@@ -11165,7 +11208,8 @@ function doFill(ctx, cfg) {
|
|
|
11165
11208
|
target,
|
|
11166
11209
|
color: above,
|
|
11167
11210
|
scale,
|
|
11168
|
-
property
|
|
11211
|
+
property,
|
|
11212
|
+
clip
|
|
11169
11213
|
});
|
|
11170
11214
|
ctx.restore();
|
|
11171
11215
|
ctx.save();
|
|
@@ -11176,7 +11220,8 @@ function doFill(ctx, cfg) {
|
|
|
11176
11220
|
target,
|
|
11177
11221
|
color: below,
|
|
11178
11222
|
scale,
|
|
11179
|
-
property
|
|
11223
|
+
property,
|
|
11224
|
+
clip
|
|
11180
11225
|
});
|
|
11181
11226
|
ctx.restore();
|
|
11182
11227
|
}
|
|
@@ -11221,7 +11266,8 @@ function fill(ctx, cfg) {
|
|
|
11221
11266
|
target,
|
|
11222
11267
|
property,
|
|
11223
11268
|
color: color2,
|
|
11224
|
-
scale
|
|
11269
|
+
scale,
|
|
11270
|
+
clip
|
|
11225
11271
|
} = cfg;
|
|
11226
11272
|
const segments = _segments(line, target, property);
|
|
11227
11273
|
for (const {
|
|
@@ -11238,7 +11284,7 @@ function fill(ctx, cfg) {
|
|
|
11238
11284
|
const notShape = target !== true;
|
|
11239
11285
|
ctx.save();
|
|
11240
11286
|
ctx.fillStyle = backgroundColor;
|
|
11241
|
-
clipBounds(ctx, scale, notShape && _getBounds(property, start, end));
|
|
11287
|
+
clipBounds(ctx, scale, clip, notShape && _getBounds(property, start, end));
|
|
11242
11288
|
ctx.beginPath();
|
|
11243
11289
|
const lineLoop = !!line.pathSegment(ctx, src);
|
|
11244
11290
|
let loop;
|
|
@@ -11262,19 +11308,34 @@ function fill(ctx, cfg) {
|
|
|
11262
11308
|
ctx.restore();
|
|
11263
11309
|
}
|
|
11264
11310
|
}
|
|
11265
|
-
function clipBounds(ctx, scale, bounds) {
|
|
11266
|
-
const
|
|
11267
|
-
top,
|
|
11268
|
-
bottom
|
|
11269
|
-
} = scale.chart.chartArea;
|
|
11311
|
+
function clipBounds(ctx, scale, clip, bounds) {
|
|
11312
|
+
const chartArea = scale.chart.chartArea;
|
|
11270
11313
|
const {
|
|
11271
11314
|
property,
|
|
11272
11315
|
start,
|
|
11273
11316
|
end
|
|
11274
11317
|
} = bounds || {};
|
|
11275
|
-
if (property === "x") {
|
|
11318
|
+
if (property === "x" || property === "y") {
|
|
11319
|
+
let left, top, right, bottom;
|
|
11320
|
+
if (property === "x") {
|
|
11321
|
+
left = start;
|
|
11322
|
+
top = chartArea.top;
|
|
11323
|
+
right = end;
|
|
11324
|
+
bottom = chartArea.bottom;
|
|
11325
|
+
} else {
|
|
11326
|
+
left = chartArea.left;
|
|
11327
|
+
top = start;
|
|
11328
|
+
right = chartArea.right;
|
|
11329
|
+
bottom = end;
|
|
11330
|
+
}
|
|
11276
11331
|
ctx.beginPath();
|
|
11277
|
-
|
|
11332
|
+
if (clip) {
|
|
11333
|
+
left = Math.max(left, clip.left);
|
|
11334
|
+
right = Math.min(right, clip.right);
|
|
11335
|
+
top = Math.max(top, clip.top);
|
|
11336
|
+
bottom = Math.min(bottom, clip.bottom);
|
|
11337
|
+
}
|
|
11338
|
+
ctx.rect(left, top, right - left, bottom - top);
|
|
11278
11339
|
ctx.clip();
|
|
11279
11340
|
}
|
|
11280
11341
|
}
|
|
@@ -12150,6 +12211,9 @@ const positioners = {
|
|
|
12150
12211
|
++count;
|
|
12151
12212
|
}
|
|
12152
12213
|
}
|
|
12214
|
+
if (count === 0 || xSet.size === 0) {
|
|
12215
|
+
return false;
|
|
12216
|
+
}
|
|
12153
12217
|
const xAverage = [...xSet].reduce((a, b) => a + b) / xSet.size;
|
|
12154
12218
|
return {
|
|
12155
12219
|
x: xAverage,
|
|
@@ -14062,7 +14126,7 @@ function drawRadiusLine(scale, gridLineOpts, radius, labelCount, borderOpts) {
|
|
|
14062
14126
|
ctx.save();
|
|
14063
14127
|
ctx.strokeStyle = color2;
|
|
14064
14128
|
ctx.lineWidth = lineWidth;
|
|
14065
|
-
ctx.setLineDash(borderOpts.dash);
|
|
14129
|
+
ctx.setLineDash(borderOpts.dash || []);
|
|
14066
14130
|
ctx.lineDashOffset = borderOpts.dashOffset;
|
|
14067
14131
|
ctx.beginPath();
|
|
14068
14132
|
pathRadiusLine(scale, radius, circular, labelCount);
|
|
@@ -14240,7 +14304,7 @@ class RadialLinearScale extends LinearScaleBase {
|
|
|
14240
14304
|
ctx.strokeStyle = color2;
|
|
14241
14305
|
ctx.setLineDash(optsAtIndex.borderDash);
|
|
14242
14306
|
ctx.lineDashOffset = optsAtIndex.borderDashOffset;
|
|
14243
|
-
offset = this.getDistanceFromCenterForValue(opts.
|
|
14307
|
+
offset = this.getDistanceFromCenterForValue(opts.reverse ? this.min : this.max);
|
|
14244
14308
|
position = this.getPointPosition(i, offset);
|
|
14245
14309
|
ctx.beginPath();
|
|
14246
14310
|
ctx.moveTo(this.xCenter, this.yCenter);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PassThroughOptions } from 'primevue/passthrough';
|
|
2
2
|
import { AccordionPassThroughOptions, AccordionTabOpenEvent, AccordionTabCloseEvent, AccordionClickEvent } from 'primevue/accordion';
|
|
3
|
+
|
|
3
4
|
export declare type PassThrough<T = void> = T | object | undefined;
|
|
4
5
|
export interface IProps {
|
|
5
6
|
multiple: boolean;
|
|
@@ -13,41 +14,43 @@ export interface IProps {
|
|
|
13
14
|
ptOptions: PassThroughOptions;
|
|
14
15
|
unstyled: boolean;
|
|
15
16
|
}
|
|
16
|
-
declare
|
|
17
|
+
declare function __VLS_template(): {
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
collapseicon?(_: {}): any;
|
|
20
|
+
expandicon?(_: {}): any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<IProps>>, {
|
|
17
23
|
multiple: boolean;
|
|
18
24
|
lazy: boolean;
|
|
19
25
|
tabindex: number;
|
|
20
26
|
selectOnFocus: boolean;
|
|
21
27
|
unstyled: boolean;
|
|
22
|
-
}
|
|
23
|
-
accordion: import(
|
|
24
|
-
},
|
|
28
|
+
}>>, {
|
|
29
|
+
accordion: import('vue').Ref<any, any>;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
31
|
"update:activeIndex": (value?: number | number[] | null | undefined) => void;
|
|
26
32
|
"tab-open": (event?: AccordionTabOpenEvent | undefined) => void;
|
|
27
33
|
"tab-close": (event?: AccordionTabCloseEvent | undefined) => void;
|
|
28
34
|
"tab-click": (event?: AccordionClickEvent | undefined) => void;
|
|
29
|
-
}, string, import(
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<IProps>>, {
|
|
30
36
|
multiple: boolean;
|
|
31
37
|
lazy: boolean;
|
|
32
38
|
tabindex: number;
|
|
33
39
|
selectOnFocus: boolean;
|
|
34
40
|
unstyled: boolean;
|
|
35
|
-
}>>> & {
|
|
41
|
+
}>>> & Readonly<{
|
|
36
42
|
"onUpdate:activeIndex"?: ((value?: number | number[] | null | undefined) => any) | undefined;
|
|
37
43
|
"onTab-open"?: ((event?: AccordionTabOpenEvent | undefined) => any) | undefined;
|
|
38
44
|
"onTab-close"?: ((event?: AccordionTabCloseEvent | undefined) => any) | undefined;
|
|
39
45
|
"onTab-click"?: ((event?: AccordionClickEvent | undefined) => any) | undefined;
|
|
40
|
-
}
|
|
41
|
-
multiple: boolean;
|
|
46
|
+
}>, {
|
|
42
47
|
lazy: boolean;
|
|
48
|
+
multiple: boolean;
|
|
43
49
|
tabindex: number;
|
|
44
50
|
selectOnFocus: boolean;
|
|
45
51
|
unstyled: boolean;
|
|
46
|
-
}, {}
|
|
47
|
-
|
|
48
|
-
collapseicon?(_: {}): any;
|
|
49
|
-
expandicon?(_: {}): any;
|
|
50
|
-
}>;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
51
54
|
export default _default;
|
|
52
55
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
56
|
type __VLS_TypePropsToRuntimeProps<T> = {
|