@wikicasa-dev/components 2.0.4 → 2.0.5-0.alpha-0
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 +16 -16
- package/dist/BaseComplexToggle.js +4 -4
- package/dist/BaseDropDown.js +1 -1
- package/dist/BaseFloatingLabel.js +21 -19
- package/dist/BaseIcon.js +4 -4
- package/dist/BaseInput.js +106 -100
- 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 +173 -222
- 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 +16 -15
- package/dist/BaseToggle.js +4 -4
- package/dist/BaseTooltip.js +3 -3
- package/dist/BaseUploadFile.js +1 -1
- package/dist/CheckboxBtn.js +10 -6
- 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 +83 -0
- package/dist/StaticSpinner.js +2 -2
- package/dist/SwiperCarousel.js +1 -1
- package/dist/SwiperSlide.js +2 -2
- package/dist/UIKit/AccessibleSelect.vue.d.ts +49 -103
- 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 +8 -8
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +39 -198
- package/dist/UIKit/BaseBadge.vue.d.ts +7 -7
- 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 +14 -23
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +7 -6
- package/dist/UIKit/BaseDropDown.vue.d.ts +39 -40
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +8 -13
- package/dist/UIKit/BaseIcon.vue.d.ts +3 -9
- package/dist/UIKit/BaseInput.vue.d.ts +20 -20
- package/dist/UIKit/BaseModal.vue.d.ts +35 -60
- package/dist/UIKit/BasePagination.vue.d.ts +7 -14
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +10 -12
- package/dist/UIKit/BaseSlider.vue.d.ts +20 -175
- package/dist/UIKit/BaseSnackbar.vue.d.ts +7 -14
- package/dist/UIKit/BaseTextarea.vue.d.ts +9 -10
- 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 +19 -0
- 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 +8 -9
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +9 -11
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +11 -8
- package/dist/UIKit/types.d.ts +4 -1
- package/dist/assets/BaseAlert.css +1 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseFloatingLabel.css +1 -1
- package/dist/assets/BaseInput.css +1 -1
- package/dist/assets/BaseSlider.css +1 -1
- package/dist/assets/BaseTextarea.css +1 -1
- package/dist/assets/BaseTooltip.css +1 -1
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/assets/SimpleSlider.css +1 -0
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chart/DoughnutChart.vue.d.ts +3 -5
- package/dist/chart/LineChart.vue.d.ts +16 -6
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.aBS46udY.js +246 -0
- 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.C34SZThb.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.m5rScY4N.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.C64T2OK4.js} +89 -84
- 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.BH2c3gOe.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +18 -18
- 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.BscSQ5bW.js → BaseDropDown.vue_vue_type_script_setup_true_lang.DoEvtblv.js} +59 -46
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.Cy2ThBHM.js +151 -0
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.D_X7MS6X.js +164 -0
- package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CpIiJy6I.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +3 -3
- 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.CUgJNst9.js +105 -0
- 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.JlHKkjHJ.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.CAO5UUO3.js} +37 -37
- 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.CXNsFiyD.js +42 -0
- 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.BalzO73O.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +6 -6
- 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/SwiperCarousel.ZIrIp4kV.js +744 -0
- package/dist/chunks/{index.D6IWh9UY.js → index.D3A-yNFt.js} +9 -7
- package/dist/chunks/polyline.DjpLdMaW.js +5256 -0
- package/dist/chunks/{types-B0dZ7OiV.D29wNgoj.js → useBreakpoints.BXk8Xcw3.js} +2854 -874
- 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 +9 -9
- package/dist/components/carousel/SwiperSlide.vue.d.ts +3 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +35 -33
- package/dist/useChartjsModules.js +1 -1
- package/package.json +30 -28
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.YIp2u7gd.js +0 -231
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.CautEumd.js +0 -142
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DxPb8OYe.js +0 -163
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DGeL_YSc.js +0 -95
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js +0 -37
- package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
- package/dist/chunks/SwiperCarousel.DWUl3bgn.js +0 -718
- package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as S, mergeModels as C, useModel as z, ref as b, useId as j, useSlots as q, computed as G, provide as v, watch as k, createElementBlock as p, openBlock as i, normalizeClass as I, createElementVNode as H, createBlock as d, createCommentVNode as o, unref as f, toDisplayString as J, Fragment as _, renderList as K, withCtx as O, resolveDynamicComponent as Q } from "vue";
|
|
2
|
+
import { _ as R } from "./BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js";
|
|
3
|
+
import { _ as g } from "./BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js";
|
|
4
|
+
const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "BaseTabView",
|
|
7
|
+
props: /* @__PURE__ */ C({
|
|
8
|
+
tabsPosition: { default: "top" },
|
|
9
|
+
tabViewDescription: {},
|
|
10
|
+
tabListClasses: {},
|
|
11
|
+
dataCy: {}
|
|
12
|
+
}, {
|
|
13
|
+
activeIdx: { default: 0 },
|
|
14
|
+
activeIdxModifiers: {}
|
|
15
|
+
}),
|
|
16
|
+
emits: /* @__PURE__ */ C(["tabClicked"], ["update:activeIdx"]),
|
|
17
|
+
setup(P, { emit: x }) {
|
|
18
|
+
const B = x, l = z(P, "activeIdx"), $ = b(""), u = b(null), A = b(null), r = j(), m = q(), c = (e) => e.props ?? null, h = (e) => e.type.__name === "BaseTab", y = (e, a) => ({
|
|
19
|
+
renderFn: e,
|
|
20
|
+
tabId: T(a),
|
|
21
|
+
"active-tab-panel-idx": c(e)?.["active-tab-panel-idx"] ?? a,
|
|
22
|
+
"header-title": c(e)?.["header-title"] || "",
|
|
23
|
+
class: c(e)?.class || "",
|
|
24
|
+
"tab-panel-classes": c(e)?.["tab-panel-classes"] || "",
|
|
25
|
+
"data-cy": c(e)?.["data-cy"] || ""
|
|
26
|
+
}), n = G(() => m.default ? m.default().reduce((e, a) => (a.children && Array.isArray(a.children) ? a.children.forEach((t) => {
|
|
27
|
+
h(t) && e.push(y(t, e.length));
|
|
28
|
+
}) : h(a) && e.push(y(a, e.length)), e), []) : []);
|
|
29
|
+
v("tabs", n), v("isTabActive", (e) => l.value === e);
|
|
30
|
+
const F = (e = -1) => u.value === e, T = (e) => `base-tab-${e}-${r}`, V = (e = -1) => `base-tab-panel-${e}-${r}`, w = (e = -1) => {
|
|
31
|
+
const a = n.value.reduce(
|
|
32
|
+
(t, s, N) => (s["active-tab-panel-idx"] !== e || t.push({ tab: s, idx: N }), t),
|
|
33
|
+
[]
|
|
34
|
+
);
|
|
35
|
+
return a && a.length === 1 ? a[0].tab.tabId : a.find((t) => t.idx === l.value)?.tab.tabId;
|
|
36
|
+
}, D = (e) => {
|
|
37
|
+
$.value = T(e);
|
|
38
|
+
}, L = (e) => {
|
|
39
|
+
const a = n.value.at(e ?? -1);
|
|
40
|
+
u.value = a?.["active-tab-panel-idx"] ?? null;
|
|
41
|
+
};
|
|
42
|
+
v("handleClick", (e, a) => {
|
|
43
|
+
D(e), l.value = e, B("tabClicked", { tabIdx: e, tabElement: a });
|
|
44
|
+
}), k(
|
|
45
|
+
l,
|
|
46
|
+
(e) => {
|
|
47
|
+
L(e ?? -1);
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
immediate: !0
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
const E = (e, a) => {
|
|
54
|
+
for (let t = 0; t < e.length; t++)
|
|
55
|
+
if (e[t] !== a[t]) return t;
|
|
56
|
+
return null;
|
|
57
|
+
}, M = (e = -1) => n.value.find((a) => a["active-tab-panel-idx"] === e);
|
|
58
|
+
return k(
|
|
59
|
+
() => n.value.map((e) => e["active-tab-panel-idx"]),
|
|
60
|
+
(e, a) => {
|
|
61
|
+
const t = E(e, a);
|
|
62
|
+
if (t === null) return;
|
|
63
|
+
const s = n.value[t]["active-tab-panel-idx"];
|
|
64
|
+
l.value !== t || s === void 0 || (u.value = s);
|
|
65
|
+
}
|
|
66
|
+
), (e, a) => (i(), p("div", {
|
|
67
|
+
ref_key: "root",
|
|
68
|
+
ref: A,
|
|
69
|
+
class: I(e.$attrs.class),
|
|
70
|
+
"data-cy": e.dataCy
|
|
71
|
+
}, [
|
|
72
|
+
H("span", {
|
|
73
|
+
id: `tablist-${f(r)}`,
|
|
74
|
+
class: "uikit-sr-only"
|
|
75
|
+
}, J(e.tabViewDescription), 9, W),
|
|
76
|
+
e.tabsPosition === "top" ? (i(), d(g, {
|
|
77
|
+
key: 0,
|
|
78
|
+
uid: f(r),
|
|
79
|
+
"tab-list-classes": e.tabListClasses
|
|
80
|
+
}, null, 8, ["uid", "tab-list-classes"])) : o("", !0),
|
|
81
|
+
(i(!0), p(_, null, K(n.value, (t, s) => (i(), p(_, { key: s }, [
|
|
82
|
+
M(s) ? (i(), d(R, {
|
|
83
|
+
key: 0,
|
|
84
|
+
id: V(t["active-tab-panel-idx"]),
|
|
85
|
+
"labelled-by": w(s) ?? "",
|
|
86
|
+
active: F(s),
|
|
87
|
+
class: I(t["tab-panel-classes"])
|
|
88
|
+
}, {
|
|
89
|
+
default: O(() => [
|
|
90
|
+
t.renderFn.children && t.renderFn.children.default ? (i(), d(Q(t.renderFn.children.default), { key: 0 })) : o("", !0)
|
|
91
|
+
]),
|
|
92
|
+
_: 2
|
|
93
|
+
}, 1032, ["id", "labelled-by", "active", "class"])) : o("", !0)
|
|
94
|
+
], 64))), 128)),
|
|
95
|
+
e.tabsPosition === "bottom" ? (i(), d(g, {
|
|
96
|
+
key: 1,
|
|
97
|
+
uid: f(r),
|
|
98
|
+
"tab-list-classes": e.tabListClasses
|
|
99
|
+
}, null, 8, ["uid", "tab-list-classes"])) : o("", !0)
|
|
100
|
+
], 10, U));
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
te as _
|
|
105
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as b, watch as m,
|
|
1
|
+
import { defineComponent as c, ref as b, watch as m, createElementBlock as o, openBlock as s, normalizeClass as t, createElementVNode as l, createBlock as h, createCommentVNode as n, renderSlot as v } from "vue";
|
|
2
2
|
import w from "../BaseFloatingLabel.js";
|
|
3
3
|
const C = ["innerHTML"], g = ["for"], y = ["id", "multiple", "accept"], B = /* @__PURE__ */ c({
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as y, ref as v, computed as i, watch as x, renderSlot as m, createElementVNode as D, normalizeClass as E, createElementBlock as $, createCommentVNode as B, openBlock as b, Fragment as I, renderList as R, createBlock as A, unref as K } from "vue";
|
|
2
|
+
import "./polyline.DjpLdMaW.js";
|
|
3
|
+
import L from "../CheckboxBtn.js";
|
|
4
|
+
const V = (a) => !a?.length, w = (a = "") => !a || !a.trim() ? "" : (a = a.trim(), a.replace(" ", "-").toLowerCase()), G = ["id", "data-cy"], j = /* @__PURE__ */ y({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "CheckboxGroup",
|
|
7
7
|
props: {
|
|
@@ -21,12 +21,12 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
21
21
|
dataCy: { default: "" }
|
|
22
22
|
},
|
|
23
23
|
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
24
|
-
setup(a, { emit:
|
|
25
|
-
const
|
|
26
|
-
for (const e of
|
|
24
|
+
setup(a, { emit: C }) {
|
|
25
|
+
const c = a, s = C, l = v(/* @__PURE__ */ new Map()), r = i(() => {
|
|
26
|
+
for (const e of c.checkboxData)
|
|
27
27
|
if (e.reset) return e;
|
|
28
28
|
return null;
|
|
29
|
-
}),
|
|
29
|
+
}), g = i(() => c.checkboxData.length), f = i(() => {
|
|
30
30
|
let e = 0;
|
|
31
31
|
return l.value.forEach((t) => {
|
|
32
32
|
t.checked && e++;
|
|
@@ -34,21 +34,21 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
34
34
|
});
|
|
35
35
|
(() => {
|
|
36
36
|
const e = [];
|
|
37
|
-
for (const t of
|
|
37
|
+
for (const t of c.checkboxData)
|
|
38
38
|
t.checked = !!t.checked, l.value.set(
|
|
39
39
|
`${t.id}`,
|
|
40
40
|
t
|
|
41
41
|
), t.checked && e.push(t);
|
|
42
|
-
|
|
42
|
+
s("update:modelValue", e);
|
|
43
43
|
})();
|
|
44
44
|
const u = (e, t) => {
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
45
|
+
const o = l.value.get(e);
|
|
46
|
+
if (o) {
|
|
47
47
|
if (t) {
|
|
48
|
-
l.value.set(e, { ...
|
|
48
|
+
l.value.set(e, { ...o, ...t });
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
|
-
l.value.set(e, { ...
|
|
51
|
+
l.value.set(e, { ...o, checked: !o.checked });
|
|
52
52
|
}
|
|
53
53
|
}, k = () => {
|
|
54
54
|
l.value.forEach((e) => {
|
|
@@ -56,56 +56,56 @@ const w = (a) => !a?.length, G = (a = "") => !a || !a.trim() ? "" : (a = a.trim(
|
|
|
56
56
|
});
|
|
57
57
|
}, p = () => {
|
|
58
58
|
k(), s("update:modelValue", []), s("resetted");
|
|
59
|
-
}, d = (e) => l.value.get(
|
|
60
|
-
if (
|
|
59
|
+
}, d = (e) => l.value.get(c.getKey(e))?.checked ?? !1, h = (e) => {
|
|
60
|
+
if (V(c.checkboxData)) return;
|
|
61
61
|
const t = l.value.get(e.id);
|
|
62
|
-
t?.reset && e.checked ? k() : r.value && !t?.reset && u(
|
|
62
|
+
t?.reset && e.checked ? k() : r.value && !t?.reset && u(c.getKey(r.value), { checked: !1 }), u(`${e.id}`), c.autoCheckResetAll && r.value && f.value === g.value - 1 && l.value.forEach((n) => {
|
|
63
63
|
n.checked = !!n.reset;
|
|
64
|
-
}),
|
|
65
|
-
const
|
|
64
|
+
}), c.autoCheckResetEmpty && r.value && !f.value && (!c.manualToggleResetButton || !t?.reset) && u(c.getKey(r.value), { checked: !0 });
|
|
65
|
+
const o = [];
|
|
66
66
|
l.value.forEach((n) => {
|
|
67
|
-
n.checked &&
|
|
68
|
-
}), s("update:modelValue",
|
|
67
|
+
n.checked && o.push(n);
|
|
68
|
+
}), s("update:modelValue", o), s("checkedGroup", c.groupId);
|
|
69
69
|
};
|
|
70
|
-
return
|
|
71
|
-
() =>
|
|
70
|
+
return x(
|
|
71
|
+
() => c.reset,
|
|
72
72
|
(e) => {
|
|
73
73
|
e && p();
|
|
74
74
|
}
|
|
75
75
|
), (e, t) => m(e.$slots, "default", {
|
|
76
76
|
isActive: d,
|
|
77
|
-
handleChange:
|
|
77
|
+
handleChange: h,
|
|
78
78
|
checkboxesData: e.checkboxData
|
|
79
79
|
}, () => [
|
|
80
|
-
|
|
80
|
+
D("div", {
|
|
81
81
|
id: e.groupId,
|
|
82
|
-
class:
|
|
82
|
+
class: E(["checkbox-group-container", e.$attrs.class || ""]),
|
|
83
83
|
"data-cy": e.dataCy
|
|
84
84
|
}, [
|
|
85
85
|
m(e.$slots, "checkbox_elements", {
|
|
86
86
|
isActive: d,
|
|
87
|
-
handleChange:
|
|
87
|
+
handleChange: h,
|
|
88
88
|
checkboxesData: e.checkboxData,
|
|
89
89
|
reset: p
|
|
90
90
|
}, () => [
|
|
91
|
-
e.checkboxData ? (b(!0),
|
|
92
|
-
id: e.getKey(
|
|
93
|
-
key:
|
|
94
|
-
"data-cy": `checkbox_${K(
|
|
95
|
-
label:
|
|
91
|
+
e.checkboxData ? (b(!0), $(I, { key: 0 }, R(e.checkboxData, (o, n) => (b(), A(L, {
|
|
92
|
+
id: e.getKey(o),
|
|
93
|
+
key: n,
|
|
94
|
+
"data-cy": o.dataCy ?? `checkbox_${K(w)(`${o.label}`)}`,
|
|
95
|
+
label: o.label,
|
|
96
96
|
inline: e.formCheckInline,
|
|
97
|
-
"model-value": d(
|
|
97
|
+
"model-value": d(o),
|
|
98
98
|
"container-class": [
|
|
99
99
|
e.formCheckInline ? "uikit-mr-10px" : "uikit-mb-10px",
|
|
100
100
|
e.checkboxContainerClasses
|
|
101
101
|
],
|
|
102
|
-
onChange:
|
|
103
|
-
}, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) :
|
|
102
|
+
onChange: h
|
|
103
|
+
}, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) : B("", !0)
|
|
104
104
|
])
|
|
105
|
-
], 10,
|
|
105
|
+
], 10, G)
|
|
106
106
|
]);
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
j as _
|
|
111
111
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, onBeforeMount as p,
|
|
1
|
+
import { defineComponent as i, onBeforeMount as p, createBlock as u, createCommentVNode as m, unref as t, openBlock as c } from "vue";
|
|
2
2
|
import { Doughnut as l } from "vue-chartjs";
|
|
3
3
|
import { Chart as d, DoughnutController as f, ArcElement as g } from "chart.js";
|
|
4
4
|
import { useChartJsModules as h } from "../useChartjsModules.js";
|
|
@@ -15,11 +15,11 @@ const y = /* @__PURE__ */ i({
|
|
|
15
15
|
);
|
|
16
16
|
return p(async () => {
|
|
17
17
|
await a(n);
|
|
18
|
-
}), (o, C) => t(s) ? (
|
|
18
|
+
}), (o, C) => t(s) ? (c(), u(t(l), {
|
|
19
19
|
key: 0,
|
|
20
20
|
options: o.options,
|
|
21
21
|
data: o.data
|
|
22
|
-
}, null, 8, ["options", "data"])) :
|
|
22
|
+
}, null, 8, ["options", "data"])) : m("", !0);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t, ref as n, onMounted as a,
|
|
1
|
+
import { defineComponent as t, ref as n, onMounted as a, createElementBlock as i, renderSlot as s, openBlock as u, normalizeClass as f } from "vue";
|
|
2
2
|
const b = /* @__PURE__ */ t({
|
|
3
3
|
__name: "IntersectionObservable",
|
|
4
4
|
props: {
|
|
@@ -9,7 +9,7 @@ const b = /* @__PURE__ */ t({
|
|
|
9
9
|
const r = l, o = n(null);
|
|
10
10
|
return a(() => {
|
|
11
11
|
!r.observer || !o.value || r.observer.observe(o.value);
|
|
12
|
-
}), (e, p) => e.isVisible ? s(e.$slots, "default", { key: 1 }) : (
|
|
12
|
+
}), (e, p) => e.isVisible ? s(e.$slots, "default", { key: 1 }) : (u(), i("div", {
|
|
13
13
|
key: 0,
|
|
14
14
|
ref_key: "root",
|
|
15
15
|
ref: o,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, reactive as d, ref as m, onBeforeMount as h, onBeforeUnmount as V,
|
|
1
|
+
import { defineComponent as p, reactive as d, ref as m, onBeforeMount as h, onBeforeUnmount as V, createElementBlock as k, renderSlot as l, unref as t, openBlock as B, normalizeClass as O } from "vue";
|
|
2
2
|
const _ = /* @__PURE__ */ p({
|
|
3
3
|
__name: "IntersectionObserver",
|
|
4
4
|
props: {
|
|
@@ -35,7 +35,7 @@ const _ = /* @__PURE__ */ p({
|
|
|
35
35
|
key: 1,
|
|
36
36
|
observer: e.value,
|
|
37
37
|
isVisible: t(r).isVisible
|
|
38
|
-
}) : (
|
|
38
|
+
}) : (B(), k("div", {
|
|
39
39
|
key: 0,
|
|
40
40
|
ref: "root",
|
|
41
41
|
class: O(s.$attrs["root-classes"])
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as m, onBeforeMount as u, useTemplateRef as f, computed as d, createBlock as h, createCommentVNode as C, unref as t, openBlock as g } from "vue";
|
|
2
|
+
import { Line as L } from "vue-chartjs";
|
|
3
|
+
import { Chart as _, LineController as k, LineElement as x, Filler as y, PointElement as B, CategoryScale as E, LinearScale as v } from "chart.js";
|
|
4
|
+
import { useChartJsModules as M } from "../useChartjsModules.js";
|
|
5
|
+
const A = /* @__PURE__ */ m({
|
|
6
|
+
__name: "LineChart",
|
|
7
|
+
props: {
|
|
8
|
+
options: {},
|
|
9
|
+
data: {}
|
|
10
|
+
},
|
|
11
|
+
setup(o, { expose: r }) {
|
|
12
|
+
_.register(
|
|
13
|
+
k,
|
|
14
|
+
x,
|
|
15
|
+
y,
|
|
16
|
+
B,
|
|
17
|
+
E,
|
|
18
|
+
v
|
|
19
|
+
);
|
|
20
|
+
const n = o, {
|
|
21
|
+
registerPlugins: a,
|
|
22
|
+
registerTimeCartesianAxis: s,
|
|
23
|
+
executeRegistration: i,
|
|
24
|
+
resolved: c
|
|
25
|
+
} = M(n.options);
|
|
26
|
+
u(async () => {
|
|
27
|
+
await i(a, s);
|
|
28
|
+
});
|
|
29
|
+
const p = f("chart"), l = d(
|
|
30
|
+
() => p.value?.chart
|
|
31
|
+
);
|
|
32
|
+
return r({ chartInstance: l }), (e, P) => t(c) ? (g(), h(t(L), {
|
|
33
|
+
key: 0,
|
|
34
|
+
ref: "chart",
|
|
35
|
+
options: e.options,
|
|
36
|
+
data: e.data
|
|
37
|
+
}, null, 8, ["options", "data"])) : C("", !0);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
A as _
|
|
42
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, useId as m, computed as c,
|
|
1
|
+
import { defineComponent as k, useId as m, computed as c, createElementBlock as p, openBlock as b, withModifiers as l, createElementVNode as n, normalizeClass as u, createTextVNode as f, toDisplayString as h } from "vue";
|
|
2
2
|
const C = ["id", "name", "checked"], V = ["for"], y = /* @__PURE__ */ k({
|
|
3
3
|
__name: "RadioButton",
|
|
4
4
|
props: {
|
|
@@ -20,7 +20,7 @@ const C = ["id", "name", "checked"], V = ["for"], y = /* @__PURE__ */ k({
|
|
|
20
20
|
};
|
|
21
21
|
o("change", e), o("update:modelValue", !i.modelValue);
|
|
22
22
|
};
|
|
23
|
-
return (e, t) => (
|
|
23
|
+
return (e, t) => (b(), p("div", {
|
|
24
24
|
class: "uikit-inline-block",
|
|
25
25
|
onClick: l(r, ["stop"])
|
|
26
26
|
}, [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as p, mergeModels as d, useModel as C, ref as h, watch as $, renderSlot as u, createElementVNode as V, normalizeClass as c,
|
|
2
|
-
import { _ } from "./RadioButton.vue_vue_type_script_setup_true_lang.
|
|
3
|
-
const b = ["data-cy"],
|
|
1
|
+
import { defineComponent as p, mergeModels as d, useModel as C, ref as h, watch as $, renderSlot as u, createElementVNode as V, normalizeClass as c, createElementBlock as k, openBlock as m, Fragment as R, renderList as g, createBlock as y } from "vue";
|
|
2
|
+
import { _ } from "./RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js";
|
|
3
|
+
const b = ["data-cy"], w = /* @__PURE__ */ p({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "RadioGroup",
|
|
6
6
|
props: /* @__PURE__ */ d({
|
|
@@ -27,7 +27,7 @@ const b = ["data-cy"], E = /* @__PURE__ */ p({
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
})(), $(n, (e) => {
|
|
30
|
-
|
|
30
|
+
e && t();
|
|
31
31
|
}), (e, M) => u(e.$slots, "default", {
|
|
32
32
|
handleClick: l,
|
|
33
33
|
activeValue: a.value,
|
|
@@ -44,7 +44,7 @@ const b = ["data-cy"], E = /* @__PURE__ */ p({
|
|
|
44
44
|
reset: t,
|
|
45
45
|
isActive: r
|
|
46
46
|
}, () => [
|
|
47
|
-
(m(!0), R
|
|
47
|
+
(m(!0), k(R, null, g(e.radioValues, (s, v) => (m(), y(_, {
|
|
48
48
|
id: s.id,
|
|
49
49
|
key: v,
|
|
50
50
|
class: c(e.radioContainerClasses),
|
|
@@ -58,5 +58,5 @@ const b = ["data-cy"], E = /* @__PURE__ */ p({
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
w as _
|
|
62
62
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r, useTemplateRef as u, watch as m, nextTick as d,
|
|
1
|
+
import { defineComponent as r, useTemplateRef as u, watch as m, nextTick as d, createElementBlock as c, openBlock as f, normalizeClass as p, renderSlot as k, createElementVNode as v } from "vue";
|
|
2
2
|
const b = ["tabindex"], x = ["innerHTML"], $ = /* @__PURE__ */ r({
|
|
3
3
|
__name: "SelectItem",
|
|
4
4
|
props: {
|
|
@@ -17,7 +17,7 @@ const b = ["tabindex"], x = ["innerHTML"], $ = /* @__PURE__ */ r({
|
|
|
17
17
|
});
|
|
18
18
|
},
|
|
19
19
|
{ immediate: !0 }
|
|
20
|
-
), (e, i) => (
|
|
20
|
+
), (e, i) => (f(), c("li", {
|
|
21
21
|
ref: "liItem",
|
|
22
22
|
class: p(["uikit-list-none uikit-text-w-black", [
|
|
23
23
|
{ "active uikit-bg-w-cultured": e.active },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createElementBlock as n, openBlock as r, Fragment as s, renderList as l, createBlock as m, normalizeStyle as a, normalizeClass as o } from "vue";
|
|
2
2
|
import h from "../BaseShimmerLoader.js";
|
|
3
3
|
const c = /* @__PURE__ */ t({
|
|
4
4
|
__name: "ShimmerMultiLine",
|
|
@@ -12,13 +12,13 @@ const c = /* @__PURE__ */ t({
|
|
|
12
12
|
return (e, d) => (r(!0), n(s, null, l(e.lines, (i) => (r(), m(h, {
|
|
13
13
|
ref_for: !0,
|
|
14
14
|
ref: "shimmerLines",
|
|
15
|
-
class:
|
|
15
|
+
class: o(["shimmer-line", [
|
|
16
16
|
e.shimmerClasses,
|
|
17
17
|
e.inheritHeight ? "uikit-h-[1em]" : "uikit-h-8",
|
|
18
18
|
"uikit-mb-2 uikit-rounded-xs"
|
|
19
19
|
]]),
|
|
20
20
|
key: `sml-${i}`,
|
|
21
|
-
style:
|
|
21
|
+
style: a({
|
|
22
22
|
marginRight: e.randomLength ? `${Math.round(Math.random() * 5) * 10}%` : 0
|
|
23
23
|
})
|
|
24
24
|
}, null, 8, ["class", "style"]))), 128));
|