@wikicasa-dev/components 2.0.52 → 2.0.54-alpha.1
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/dist/AccessibleSelect.js +1 -1
- package/dist/BaseAccordion.js +1 -1
- package/dist/BaseAccordionBtn.js +1 -1
- package/dist/BaseAccordionContent.js +1 -1
- package/dist/BaseAccordionItem.js +1 -1
- package/dist/BaseAlert.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseBadge.js +1 -1
- package/dist/BaseBreadcrumb.js +1 -1
- package/dist/BaseButton.js +1 -1
- package/dist/BaseCard.js +2 -2
- package/dist/BaseComplexToggle.js +4 -4
- package/dist/BaseDropDown.js +1 -1
- package/dist/BaseFloatingLabel.js +3 -3
- package/dist/BaseIcon.js +4 -4
- package/dist/BaseInput.js +9 -9
- package/dist/BaseModal.js +1 -1
- package/dist/BasePagination.js +1 -1
- package/dist/BasePaper.js +2 -2
- package/dist/BaseShimmerLoader.js +2 -2
- package/dist/BaseSlider.js +2 -2
- package/dist/BaseSnackbar.js +3 -3
- package/dist/BaseTabList.js +1 -1
- package/dist/BaseTabPanel.js +1 -1
- package/dist/BaseTabView.js +1 -1
- package/dist/BaseTextarea.js +4 -4
- package/dist/BaseToggle.js +4 -4
- package/dist/BaseTooltip.js +3 -3
- package/dist/BaseUploadFile.js +1 -1
- package/dist/CheckboxBtn.js +5 -5
- package/dist/CheckboxGroup.js +1 -1
- package/dist/DoughnutChart.js +1 -1
- package/dist/IntersectionObservable.js +1 -1
- package/dist/IntersectionObserver.js +1 -1
- package/dist/LineChart.js +1 -1
- package/dist/RadioButton.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/SelectItem.js +1 -1
- package/dist/ShimmerMultiLine.js +1 -1
- package/dist/SimpleSlider.js +2 -2
- package/dist/StaticSpinner.js +2 -2
- package/dist/SwiperCarousel.js +1593 -3
- package/dist/SwiperSlide.js +2 -2
- package/dist/UIKit/AccessibleSelect.vue.d.ts +5 -10
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +9 -12
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +12 -17
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -14
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +20 -33
- package/dist/UIKit/BaseAlert.vue.d.ts +7 -7
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +4 -8
- package/dist/UIKit/BaseBadge.vue.d.ts +6 -6
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +8 -10
- package/dist/UIKit/BaseButton.vue.d.ts +17 -30
- package/dist/UIKit/BaseCard.vue.d.ts +12 -15
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +7 -6
- package/dist/UIKit/BaseDropDown.vue.d.ts +9 -6
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +5 -11
- package/dist/UIKit/BaseIcon.vue.d.ts +3 -9
- package/dist/UIKit/BaseInput.vue.d.ts +10 -7
- package/dist/UIKit/BaseModal.vue.d.ts +25 -44
- package/dist/UIKit/BasePagination.vue.d.ts +5 -5
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +10 -12
- package/dist/UIKit/BaseSlider.vue.d.ts +10 -7
- package/dist/UIKit/BaseSnackbar.vue.d.ts +7 -14
- package/dist/UIKit/BaseTextarea.vue.d.ts +7 -5
- package/dist/UIKit/BaseToggle.vue.d.ts +6 -5
- package/dist/UIKit/BaseTooltip.vue.d.ts +13 -20
- package/dist/UIKit/BaseUploadFile.vue.d.ts +13 -19
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +18 -31
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +23 -43
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +7 -11
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +8 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -6
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +54 -8
- package/dist/UIKit/Slider/SimpleSlider.vue.d.ts +7 -5
- package/dist/UIKit/StaticSpinner.vue.d.ts +3 -5
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +8 -10
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +5 -7
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +9 -11
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +7 -5
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/chart/DoughnutChart.vue.d.ts +3 -5
- package/dist/chart/LineChart.vue.d.ts +4 -6
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.tcyWuhKm.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js} +4 -4
- package/dist/chunks/{ArrowIcon.CCFMdsq6.js → ArrowIcon.Bq6Xr3uH.js} +1 -1
- package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js → BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js} +2 -2
- package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +4 -4
- package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +2 -2
- package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +8 -8
- package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js → BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.B31Vyyn6.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.m9DVH1he.js} +9 -9
- package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js → BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js} +2 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BAE3i6sW.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +7 -7
- package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js → BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js} +4 -4
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.CpbjEyOl.js → BaseDropDown.vue_vue_type_script_setup_true_lang.CPpsFIZy.js} +9 -9
- package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.CeKWAwpg.js → BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +4 -4
- package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.Cb6fEMc-.js → BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +20 -19
- package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CohlLou1.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +2 -2
- package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +2 -2
- package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.DTPN9Rg-.js → BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +3 -3
- package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js} +1 -1
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.BC3hlJfx.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.CDFRhya0.js} +5 -5
- package/dist/chunks/{CloseIcon.DIkr4soH.js → CloseIcon.BZ4U3aiI.js} +1 -1
- package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js → DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js} +3 -3
- package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +2 -2
- package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +2 -2
- package/dist/chunks/{LineChart.vue_vue_type_script_setup_true_lang.iRZ_Q6nK.js → LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js} +3 -3
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js → RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +2 -2
- package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +2 -2
- package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js → SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +2 -2
- package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js} +3 -3
- package/dist/chunks/polyline.tNTK3v2u.js +129 -0
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -9
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +5 -2
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +6 -2
- package/dist/components/carousel/SwiperSlide.vue.d.ts +3 -2
- package/dist/index.js +25 -25
- package/dist/useChartjsModules.js +28 -39
- package/package.json +5 -4
- package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
- package/dist/chunks/SwiperCarousel.ZCDTriDD.js +0 -720
- package/dist/chunks/index.DzeXT3uf.js +0 -885
- package/dist/chunks/types-B0dZ7OiV.D29wNgoj.js +0 -3209
- package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ref as p, onMounted as w, onUnmounted as E, unref as x } from "vue";
|
|
2
|
+
const D = (t) => {
|
|
3
|
+
const { isDropdownOpen: o, disableSpaceHandler: m } = t, n = p(-1), a = p(-1);
|
|
4
|
+
if (!(t.activate === void 0 || t.activate)) return { activeIdx: n, selectedIdx: a };
|
|
5
|
+
const l = (e) => {
|
|
6
|
+
const v = "ArrowUp", d = "ArrowDown", s = "Enter", i = "Escape", u = " ", c = "PageUp", y = "Home", f = "PageDown", k = "End";
|
|
7
|
+
if (!o.value || ![
|
|
8
|
+
v,
|
|
9
|
+
d,
|
|
10
|
+
s,
|
|
11
|
+
i,
|
|
12
|
+
u,
|
|
13
|
+
c,
|
|
14
|
+
y,
|
|
15
|
+
f,
|
|
16
|
+
k
|
|
17
|
+
].includes(e.key))
|
|
18
|
+
return;
|
|
19
|
+
const r = x(t.optionsLength);
|
|
20
|
+
if (e.key === v)
|
|
21
|
+
n.value = n.value === 0 ? r - 1 : n.value - 1;
|
|
22
|
+
else if (e.key === d)
|
|
23
|
+
n.value = (n.value + 1) % r;
|
|
24
|
+
else if (e.key === s || e.key === u) {
|
|
25
|
+
if (e.key === u && m) return;
|
|
26
|
+
a.value = n.value, o.value = !1;
|
|
27
|
+
} else e.key === i ? (n.value = a.value, o.value = !1) : e.key === c || e.key === y ? n.value = 0 : (e.key === f || e.key === k) && (n.value = r - 1);
|
|
28
|
+
e.stopPropagation(), e.preventDefault();
|
|
29
|
+
};
|
|
30
|
+
return w(() => {
|
|
31
|
+
document && document.addEventListener("keydown", l);
|
|
32
|
+
}), E(() => {
|
|
33
|
+
document && document.removeEventListener("keydown", l);
|
|
34
|
+
}), {
|
|
35
|
+
activeIdx: n,
|
|
36
|
+
selectedIdx: a
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
D as A
|
|
41
|
+
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
observer?: IntersectionObserver | null;
|
|
3
|
+
isVisible?: boolean;
|
|
4
|
+
};
|
|
1
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
2
7
|
slots: {
|
|
3
8
|
default?(_: {}): any;
|
|
4
9
|
default?(_: {}): any;
|
|
@@ -6,19 +11,15 @@ declare function __VLS_template(): {
|
|
|
6
11
|
refs: {
|
|
7
12
|
root: HTMLDivElement;
|
|
8
13
|
};
|
|
9
|
-
|
|
14
|
+
rootEl: any;
|
|
10
15
|
};
|
|
11
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
13
|
-
observer?: IntersectionObserver | null;
|
|
14
|
-
isVisible?: boolean;
|
|
15
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
16
|
-
observer?: IntersectionObserver | null;
|
|
17
|
-
isVisible?: boolean;
|
|
18
|
-
}> & Readonly<{}>, {
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
18
|
observer: IntersectionObserver | null;
|
|
20
19
|
isVisible: boolean;
|
|
21
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
root: HTMLDivElement;
|
|
22
|
+
}, any>;
|
|
22
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
24
|
export default _default;
|
|
24
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -4,6 +4,7 @@ interface IntersectionObserverProps {
|
|
|
4
4
|
threshold?: number;
|
|
5
5
|
}
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: {
|
|
8
9
|
observer?(_: {
|
|
9
10
|
observer: {
|
|
@@ -33,7 +34,7 @@ declare function __VLS_template(): {
|
|
|
33
34
|
refs: {
|
|
34
35
|
root: HTMLDivElement;
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
rootEl: any;
|
|
37
38
|
};
|
|
38
39
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
39
40
|
declare const __VLS_component: import('vue').DefineComponent<IntersectionObserverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -44,7 +45,9 @@ declare const __VLS_component: import('vue').DefineComponent<IntersectionObserve
|
|
|
44
45
|
threshold: number;
|
|
45
46
|
observeOnce: boolean;
|
|
46
47
|
skip: boolean;
|
|
47
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
49
|
+
root: HTMLDivElement;
|
|
50
|
+
}, any>;
|
|
48
51
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
52
|
export default _default;
|
|
50
53
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -14,6 +14,7 @@ type SwiperCarouselProps = {
|
|
|
14
14
|
shiftFirstImage?: boolean;
|
|
15
15
|
};
|
|
16
16
|
declare function __VLS_template(): {
|
|
17
|
+
attrs: Partial<{}>;
|
|
17
18
|
slots: {
|
|
18
19
|
default?(_: {}): any;
|
|
19
20
|
last_slide?(_: {}): any;
|
|
@@ -22,7 +23,7 @@ declare function __VLS_template(): {
|
|
|
22
23
|
root: HTMLDivElement;
|
|
23
24
|
swiperWrapper: HTMLDivElement;
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
+
rootEl: any;
|
|
26
27
|
};
|
|
27
28
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
29
|
declare const __VLS_component: import('vue').DefineComponent<SwiperCarouselProps, {
|
|
@@ -39,7 +40,10 @@ declare const __VLS_component: import('vue').DefineComponent<SwiperCarouselProps
|
|
|
39
40
|
activeIndex: number;
|
|
40
41
|
}) => any) | undefined;
|
|
41
42
|
onFirstSlideLoaded?: (() => any) | undefined;
|
|
42
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
43
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
|
+
root: HTMLDivElement;
|
|
45
|
+
swiperWrapper: HTMLDivElement;
|
|
46
|
+
}, any>;
|
|
43
47
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
48
|
export default _default;
|
|
45
49
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
2
3
|
slots: {
|
|
3
4
|
default?(_: {}): any;
|
|
4
5
|
};
|
|
5
6
|
refs: {};
|
|
6
|
-
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
7
8
|
};
|
|
8
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
10
11
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
12
|
export default _default;
|
|
12
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/index.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { _ as r } from "./chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.
|
|
2
|
-
import { _ as t } from "./chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.
|
|
3
|
-
import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.
|
|
4
|
-
import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.
|
|
5
|
-
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as r } from "./chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js";
|
|
2
|
+
import { _ as t } from "./chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js";
|
|
3
|
+
import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js";
|
|
4
|
+
import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js";
|
|
5
|
+
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js";
|
|
6
6
|
import { default as d } from "./CheckboxBtn.js";
|
|
7
|
-
import { _ as u } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.
|
|
7
|
+
import { _ as u } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.CDFRhya0.js";
|
|
8
8
|
import { _ } from "./chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js";
|
|
9
|
-
import { _ as S } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.
|
|
10
|
-
import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.
|
|
11
|
-
import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.
|
|
12
|
-
import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.
|
|
13
|
-
import { _ as w } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.
|
|
14
|
-
import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.
|
|
15
|
-
import { _ as v } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.
|
|
16
|
-
import { _ as G } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.
|
|
9
|
+
import { _ as S } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js";
|
|
10
|
+
import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js";
|
|
11
|
+
import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js";
|
|
12
|
+
import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js";
|
|
13
|
+
import { _ as w } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js";
|
|
14
|
+
import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.m9DVH1he.js";
|
|
15
|
+
import { _ as v } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js";
|
|
16
|
+
import { _ as G } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js";
|
|
17
17
|
import { default as O } from "./BaseCard.js";
|
|
18
18
|
import { default as R } from "./BaseComplexToggle.js";
|
|
19
|
-
import { _ as V } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.
|
|
19
|
+
import { _ as V } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.CPpsFIZy.js";
|
|
20
20
|
import { default as q } from "./BaseFloatingLabel.js";
|
|
21
21
|
import { default as z } from "./BaseIcon.js";
|
|
22
22
|
import { default as H } from "./BaseInput.js";
|
|
23
|
-
import { _ as K } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.
|
|
23
|
+
import { _ as K } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js";
|
|
24
24
|
import { default as Q } from "./BasePaper.js";
|
|
25
25
|
import { default as X } from "./BaseSlider.js";
|
|
26
26
|
import { default as Z } from "./BaseTextarea.js";
|
|
27
27
|
import { default as ee } from "./BaseToggle.js";
|
|
28
28
|
import { default as re } from "./BaseTooltip.js";
|
|
29
|
-
import { _ as te } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.
|
|
30
|
-
import { _ as fe } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.
|
|
29
|
+
import { _ as te } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js";
|
|
30
|
+
import { _ as fe } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js";
|
|
31
31
|
import { default as me } from "./BaseSnackbar.js";
|
|
32
32
|
import { default as le } from "./StaticSpinner.js";
|
|
33
33
|
import { default as de } from "./BaseShimmerLoader.js";
|
|
34
|
-
import { _ as ue } from "./chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.
|
|
35
|
-
import { _ as _e } from "./chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.
|
|
36
|
-
import { _ as Se } from "./chunks/LineChart.vue_vue_type_script_setup_true_lang.
|
|
34
|
+
import { _ as ue } from "./chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js";
|
|
35
|
+
import { _ as _e } from "./chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js";
|
|
36
|
+
import { _ as Se } from "./chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js";
|
|
37
37
|
import { default as ge } from "./SimpleSlider.js";
|
|
38
|
-
import { _ as he } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.
|
|
39
|
-
import { _ as Ie } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.
|
|
40
|
-
import {
|
|
38
|
+
import { _ as he } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js";
|
|
39
|
+
import { _ as Ie } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js";
|
|
40
|
+
import { default as we } from "./SwiperCarousel.js";
|
|
41
41
|
import { default as ke } from "./SwiperSlide.js";
|
|
42
|
-
import { _ as ve } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.
|
|
42
|
+
import { _ as ve } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js";
|
|
43
43
|
import './assets/index.css';export {
|
|
44
44
|
I as AccessibleSelect,
|
|
45
45
|
r as BaseAccordion,
|
|
@@ -1,48 +1,37 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { Chart as r } from "chart.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
//@ts-expect-error Date-fns does not have a type definition
|
|
19
|
-
import("chartjs-adapter-date-fns"),
|
|
20
|
-
import("chart.js")
|
|
21
|
-
]);
|
|
22
|
-
r.register(s.TimeScale);
|
|
1
|
+
import { computed as t, ref as f } from "vue";
|
|
2
|
+
import { Chart as r, TimeScale as d, Tooltip as T, Legend as h, Title as w } from "chart.js";
|
|
3
|
+
import "chartjs-adapter-date-fns";
|
|
4
|
+
const L = (e) => {
|
|
5
|
+
if (!e) throw Error("Options must be defined");
|
|
6
|
+
const l = t(
|
|
7
|
+
() => !!e.plugins?.tooltip
|
|
8
|
+
), o = t(
|
|
9
|
+
() => e.scales?.x?.type === "time"
|
|
10
|
+
), c = t(() => !!e.plugins?.title), u = t(
|
|
11
|
+
() => !!e.plugins?.legend
|
|
12
|
+
), i = async () => {
|
|
13
|
+
l.value && r.register(T);
|
|
14
|
+
}, g = async () => {
|
|
15
|
+
o.value && r.register(d);
|
|
16
|
+
}, s = async () => {
|
|
17
|
+
c.value && r.register(w);
|
|
23
18
|
}, n = async () => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
r.register(e);
|
|
27
|
-
}, o = async () => {
|
|
28
|
-
if (!m.value) return;
|
|
29
|
-
const { Legend: e } = await import("chart.js");
|
|
30
|
-
r.register(e);
|
|
31
|
-
}, l = w(!1);
|
|
19
|
+
u.value && r.register(h);
|
|
20
|
+
}, a = f(!1);
|
|
32
21
|
return {
|
|
33
|
-
registerTitle:
|
|
34
|
-
registerLegend:
|
|
35
|
-
registerTooltip:
|
|
36
|
-
registerTimeCartesianAxis:
|
|
37
|
-
executeRegistration: async (...
|
|
38
|
-
await Promise.all(
|
|
22
|
+
registerTitle: s,
|
|
23
|
+
registerLegend: n,
|
|
24
|
+
registerTooltip: i,
|
|
25
|
+
registerTimeCartesianAxis: g,
|
|
26
|
+
executeRegistration: async (...m) => {
|
|
27
|
+
await Promise.all(m.map((p) => p())), a.value = !0;
|
|
39
28
|
},
|
|
40
29
|
registerPlugins: async () => {
|
|
41
|
-
await Promise.all([
|
|
30
|
+
await Promise.all([i(), s(), n()]);
|
|
42
31
|
},
|
|
43
|
-
resolved:
|
|
32
|
+
resolved: a
|
|
44
33
|
};
|
|
45
34
|
};
|
|
46
35
|
export {
|
|
47
|
-
|
|
36
|
+
L as useChartJsModules
|
|
48
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.54-alpha.1",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@vue/eslint-config-typescript": "^14.5.0",
|
|
48
48
|
"@wikicasa-dev/svg-icons": "^1.2.9",
|
|
49
49
|
"@wikicasa-dev/tailwind-plugins": "^0.0.3",
|
|
50
|
-
"@wikicasa-dev/types": "
|
|
51
|
-
"@wikicasa-dev/utilities": "
|
|
52
|
-
"@wikicasa-dev/vue-composables": "0.0.
|
|
50
|
+
"@wikicasa-dev/types": "2.1.1-alpha.2",
|
|
51
|
+
"@wikicasa-dev/utilities": "1.1.20-alpha.1",
|
|
52
|
+
"@wikicasa-dev/vue-composables": "0.0.23",
|
|
53
53
|
"ajv": "^8.17.1",
|
|
54
54
|
"autoprefixer": "^10.4.21",
|
|
55
55
|
"eslint": "^9.25",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"postcss": "^8.5.3",
|
|
60
60
|
"prettier": "^3.5.3",
|
|
61
61
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
62
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
62
63
|
"tailwindcss": "^3.4.15",
|
|
63
64
|
"typescript": "^5.8.3",
|
|
64
65
|
"vite": "^6.3.2",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { h as o } from "vue";
|
|
2
|
-
const e = () => ({
|
|
3
|
-
width: 20,
|
|
4
|
-
height: 20,
|
|
5
|
-
"stroke-color": "#222",
|
|
6
|
-
"aria-hidden": !0
|
|
7
|
-
});
|
|
8
|
-
o(
|
|
9
|
-
"svg",
|
|
10
|
-
{ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28.5 20.243" },
|
|
11
|
-
o("g", { fill: "none", stroke: "#222", "stroke-linecap": "round", "stroke-width": "3" }, [
|
|
12
|
-
o("path", { "stroke-linejoin": "round", d: "m9.501 2.121-8 8 8 8" }),
|
|
13
|
-
o("path", { d: "M2 10.121h25" })
|
|
14
|
-
])
|
|
15
|
-
);
|
|
16
|
-
o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 17 17" });
|
|
17
|
-
export {
|
|
18
|
-
e
|
|
19
|
-
};
|