@wikicasa-dev/components 2.0.5-0.alpha-6 → 2.0.5
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 +19 -21
- package/dist/BaseIcon.js +4 -4
- package/dist/BaseInput.js +100 -106
- 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 +222 -173
- 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 +15 -16
- package/dist/BaseToggle.js +4 -4
- package/dist/BaseTooltip.js +3 -3
- package/dist/BaseUploadFile.js +1 -1
- package/dist/CheckboxBtn.js +6 -10
- 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/StaticSpinner.js +2 -2
- package/dist/SwiperCarousel.js +1 -1
- package/dist/SwiperSlide.js +2 -2
- package/dist/UIKit/AccessibleSelect.vue.d.ts +103 -49
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +12 -9
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +17 -12
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +14 -10
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +33 -20
- package/dist/UIKit/BaseAlert.vue.d.ts +8 -8
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +198 -39
- package/dist/UIKit/BaseBadge.vue.d.ts +7 -7
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +10 -8
- package/dist/UIKit/BaseButton.vue.d.ts +30 -17
- package/dist/UIKit/BaseCard.vue.d.ts +23 -14
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +6 -7
- package/dist/UIKit/BaseDropDown.vue.d.ts +40 -39
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +13 -8
- package/dist/UIKit/BaseIcon.vue.d.ts +9 -3
- package/dist/UIKit/BaseInput.vue.d.ts +20 -20
- package/dist/UIKit/BaseModal.vue.d.ts +60 -35
- package/dist/UIKit/BasePagination.vue.d.ts +14 -7
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +12 -10
- package/dist/UIKit/BaseSlider.vue.d.ts +175 -20
- package/dist/UIKit/BaseSnackbar.vue.d.ts +14 -7
- package/dist/UIKit/BaseTextarea.vue.d.ts +10 -9
- package/dist/UIKit/BaseToggle.vue.d.ts +5 -6
- package/dist/UIKit/BaseTooltip.vue.d.ts +20 -13
- package/dist/UIKit/BaseUploadFile.vue.d.ts +19 -13
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +31 -18
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +43 -23
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +11 -7
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +7 -8
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -6
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +8 -54
- package/dist/UIKit/StaticSpinner.vue.d.ts +5 -3
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +10 -8
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +7 -5
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +11 -9
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +8 -8
- package/dist/UIKit/types.d.ts +1 -4
- 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/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chart/DoughnutChart.vue.d.ts +5 -3
- package/dist/chart/LineChart.vue.d.ts +6 -16
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.YIp2u7gd.js +231 -0
- package/dist/chunks/{ArrowIcon.Bq6Xr3uH.js → ArrowIcon.CCFMdsq6.js} +1 -1
- package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js → BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js} +2 -2
- package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js} +4 -4
- package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js} +2 -2
- package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js} +8 -8
- package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js → BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js} +2 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.C64T2OK4.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.m5rScY4N.js} +84 -89
- package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js → BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js} +2 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BH2c3gOe.js} +18 -18
- package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js → BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js} +4 -4
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.DoEvtblv.js → BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js} +46 -59
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.CautEumd.js +142 -0
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DxPb8OYe.js +163 -0
- package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js → BaseTabList.vue_vue_type_script_setup_true_lang.CohlLou1.js} +2 -2
- package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js} +2 -2
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.Ar2KNVYH.js +95 -0
- package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js} +1 -1
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.CAO5UUO3.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.JlHKkjHJ.js} +37 -37
- package/dist/chunks/{CloseIcon.BZ4U3aiI.js → CloseIcon.DIkr4soH.js} +1 -1
- package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js → DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js} +3 -3
- package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js} +2 -2
- package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js} +2 -2
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js +37 -0
- package/dist/chunks/ObjectUtils.BOUbloeg.js +10 -0
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +19 -0
- package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js} +2 -2
- package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js → RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js} +6 -6
- package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js → SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js} +2 -2
- package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js} +3 -3
- package/dist/chunks/SwiperCarousel.DWUl3bgn.js +718 -0
- package/dist/chunks/{index.D_1s8S8L.js → index.D6IWh9UY.js} +7 -9
- package/dist/chunks/{useBreakpoints.BXk8Xcw3.js → types-B0dZ7OiV.D29wNgoj.js} +832 -2812
- package/dist/chunks/useKeyboardController.CutKeclN.js +41 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +9 -10
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +2 -5
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +9 -9
- package/dist/components/carousel/SwiperSlide.vue.d.ts +2 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.js +33 -35
- package/dist/useChartjsModules.js +1 -1
- package/package.json +28 -30
- package/dist/SimpleSlider.js +0 -83
- package/dist/UIKit/Slider/SimpleSlider.vue.d.ts +0 -19
- package/dist/assets/SimpleSlider.css +0 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.aBS46udY.js +0 -246
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.Cy2ThBHM.js +0 -151
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.D_X7MS6X.js +0 -164
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js +0 -105
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +0 -42
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/SwiperCarousel.C8hJ7R2K.js +0 -749
- package/dist/chunks/polyline.DjpLdMaW.js +0 -5256
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { h as m, defineComponent as D, mergeModels as L, useModel as V, useId as z, computed as T, ref as B, watch as g, onMounted as E, onUnmounted as P, createElementBlock as n, openBlock as o, normalizeClass as a, createElementVNode as s, createCommentVNode as k, withModifiers as p, renderSlot as N, unref as b, createBlock as O, createVNode as S, Fragment as H, renderList as q } from "vue";
|
|
2
|
-
import { A as j } from "./useBreakpoints.BXk8Xcw3.js";
|
|
3
|
-
import { a as U } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
4
|
-
import { e as G } from "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
-
const J = (t, { attrs: w }) => {
|
|
6
|
-
t = { ...G(), ...t };
|
|
7
|
-
const { width: c, height: r } = t;
|
|
8
|
-
return m(
|
|
9
|
-
"svg",
|
|
10
|
-
{
|
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
-
viewBox: "0 0 11.175 13.409",
|
|
13
|
-
width: `${c}`,
|
|
14
|
-
height: `${r}`,
|
|
15
|
-
class: t.class ?? "",
|
|
16
|
-
"aria-hidden": w["aria-hidden"] ?? "true",
|
|
17
|
-
fill: "none",
|
|
18
|
-
stroke: t["stroke-color"] ?? "#FA4F64"
|
|
19
|
-
},
|
|
20
|
-
[
|
|
21
|
-
m("circle", {
|
|
22
|
-
cx: 6,
|
|
23
|
-
cy: 6,
|
|
24
|
-
r: 4.5
|
|
25
|
-
}),
|
|
26
|
-
m("path", {
|
|
27
|
-
"stroke-linejoin": "round",
|
|
28
|
-
d: "M5.8 3.6h.4L6 6.5z"
|
|
29
|
-
}),
|
|
30
|
-
m("circle", {
|
|
31
|
-
cx: 6,
|
|
32
|
-
cy: 8.2,
|
|
33
|
-
r: 0.6,
|
|
34
|
-
fill: t["stroke-color"] ?? "#FA4F64",
|
|
35
|
-
stroke: "none"
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
);
|
|
39
|
-
}, K = ["id", "innerHTML"], Q = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], R = ["innerHTML"], W = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, X = ["innerHTML"], Y = ["data-cy"], Z = ["id", "aria-selected", "onClick", "onMouseover"], x = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, _ = ["name", "checked", "onInput"], ee = ["innerHTML"], ie = ["id", "arial-live", "innerHTML"], te = ["id", "arial-live", "innerHTML"], ne = /* @__PURE__ */ D({
|
|
40
|
-
inheritAttrs: !1,
|
|
41
|
-
__name: "AccessibleSelect",
|
|
42
|
-
props: /* @__PURE__ */ L({
|
|
43
|
-
label: { default: "" },
|
|
44
|
-
dropdownPosition: { default: "bottom" },
|
|
45
|
-
namespace: {},
|
|
46
|
-
options: {},
|
|
47
|
-
isValid: { type: [Boolean, null], default: null },
|
|
48
|
-
feedback: {},
|
|
49
|
-
closeOnBodyPressed: { type: Boolean, default: !0 },
|
|
50
|
-
border: { type: Boolean, default: !0 },
|
|
51
|
-
fieldsetClasses: {},
|
|
52
|
-
legendClasses: {},
|
|
53
|
-
dropdownClasses: {},
|
|
54
|
-
labelClasses: {},
|
|
55
|
-
btnClasses: {},
|
|
56
|
-
dropdownItemClasses: {},
|
|
57
|
-
btnTextClasses: {},
|
|
58
|
-
arrowIcon: {},
|
|
59
|
-
dataCy: {},
|
|
60
|
-
wrapperClasses: {}
|
|
61
|
-
}, {
|
|
62
|
-
modelValue: {
|
|
63
|
-
default: () => ({ id: "", label: "" })
|
|
64
|
-
},
|
|
65
|
-
modelModifiers: {},
|
|
66
|
-
toggleDropdown: {
|
|
67
|
-
default: void 0
|
|
68
|
-
},
|
|
69
|
-
toggleDropdownModifiers: {}
|
|
70
|
-
}),
|
|
71
|
-
emits: /* @__PURE__ */ L(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
|
|
72
|
-
setup(t, { emit: w }) {
|
|
73
|
-
const c = w, r = V(t, "modelValue"), C = V(t, "toggleDropdown"), F = z(), l = T(() => t.namespace || F), i = B(!1), I = B(null), h = T(() => !!r.value.label), { activeIdx: v, selectedIdx: A } = j({
|
|
74
|
-
optionsLength: t.options.length,
|
|
75
|
-
isDropdownOpen: i
|
|
76
|
-
}), y = (e) => {
|
|
77
|
-
i.value = !1, r.value = e;
|
|
78
|
-
};
|
|
79
|
-
g(A, (e) => {
|
|
80
|
-
y(t.options[e]), i.value = !1;
|
|
81
|
-
}), g(C, (e) => {
|
|
82
|
-
e && (i.value = !i.value, C.value = !1);
|
|
83
|
-
}), g(i, (e) => {
|
|
84
|
-
c("update:dropdownState", e);
|
|
85
|
-
});
|
|
86
|
-
const $ = ({ target: e }) => {
|
|
87
|
-
`${l.value}_btn` !== e.id && (i.value = !1);
|
|
88
|
-
};
|
|
89
|
-
return E(() => {
|
|
90
|
-
t.closeOnBodyPressed && document.addEventListener("click", $);
|
|
91
|
-
}), P(() => {
|
|
92
|
-
t.closeOnBodyPressed && document.removeEventListener("click", $);
|
|
93
|
-
}), (e, u) => (o(), n("div", {
|
|
94
|
-
class: a(e.$attrs.class)
|
|
95
|
-
}, [
|
|
96
|
-
s("div", {
|
|
97
|
-
class: a(["uikit-relative uikit-flex uikit-h-12 uikit-items-center", e.wrapperClasses])
|
|
98
|
-
}, [
|
|
99
|
-
e.label ? (o(), n("label", {
|
|
100
|
-
key: 0,
|
|
101
|
-
id: `${l.value}_label`,
|
|
102
|
-
class: a(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
|
|
103
|
-
h.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
|
|
104
|
-
e.labelClasses,
|
|
105
|
-
{ "uikit-left-9": e.$slots.lefticon && !h.value },
|
|
106
|
-
{ "uikit-left-4": !e.$slots.lefticon && !h.value }
|
|
107
|
-
]]),
|
|
108
|
-
innerHTML: e.label
|
|
109
|
-
}, null, 10, K)) : k("", !0),
|
|
110
|
-
e.$slots.lefticon ? (o(), n("span", {
|
|
111
|
-
key: 1,
|
|
112
|
-
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
113
|
-
onClick: u[0] || (u[0] = p((d) => i.value = !i.value, ["stop"]))
|
|
114
|
-
}, [
|
|
115
|
-
N(e.$slots, "lefticon")
|
|
116
|
-
])) : k("", !0),
|
|
117
|
-
s("button", {
|
|
118
|
-
id: `${l.value}_btn`,
|
|
119
|
-
ref_key: "btnEl",
|
|
120
|
-
ref: I,
|
|
121
|
-
type: "button",
|
|
122
|
-
"data-cy": e.dataCy,
|
|
123
|
-
class: a(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [e.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", e.btnClasses]]),
|
|
124
|
-
"aria-required": !!e.$attrs.required,
|
|
125
|
-
role: "combobox",
|
|
126
|
-
"aria-haspopup": "listbox",
|
|
127
|
-
"aria-controls": `${l.value}_dropdown`,
|
|
128
|
-
"aria-labelledby": `${l.value}_label ${l.value}_btn`,
|
|
129
|
-
"aria-expanded": i.value,
|
|
130
|
-
"aria-activedescendant": b(v) >= 0 && i.value ? `${l.value}_element_${e.options[b(v)].label}` : "",
|
|
131
|
-
"aria-invalid": e.isValid === !1,
|
|
132
|
-
"aria-describedby": e.isValid === !1 ? `${l.value}_invalid_msg` : void 0,
|
|
133
|
-
onClick: u[1] || (u[1] = (d) => {
|
|
134
|
-
i.value = !i.value, c("click", d);
|
|
135
|
-
})
|
|
136
|
-
}, [
|
|
137
|
-
s("span", {
|
|
138
|
-
class: a(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
|
|
139
|
-
innerHTML: r.value.visibleLabel || r.value.label
|
|
140
|
-
}, null, 10, R),
|
|
141
|
-
s("span", W, [
|
|
142
|
-
e.isValid == !1 ? (o(), O(b(J), {
|
|
143
|
-
key: 0,
|
|
144
|
-
class: "uikit-mr-1",
|
|
145
|
-
width: 20,
|
|
146
|
-
height: 20,
|
|
147
|
-
"stroke-color": "#FA4F64"
|
|
148
|
-
})) : k("", !0),
|
|
149
|
-
S(b(U), {
|
|
150
|
-
class: a(["uikit-transition-transform motion-reduce:uikit-transition-none", [
|
|
151
|
-
i.value ? "uikit-rotate-180" : "",
|
|
152
|
-
e.arrowIcon?.classes
|
|
153
|
-
]]),
|
|
154
|
-
width: e.arrowIcon?.width ?? 18,
|
|
155
|
-
height: e.arrowIcon?.height ?? 18,
|
|
156
|
-
"stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
|
|
157
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])
|
|
158
|
-
])
|
|
159
|
-
], 10, Q),
|
|
160
|
-
s("fieldset", {
|
|
161
|
-
"aria-hidden": "true",
|
|
162
|
-
class: a(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
|
|
163
|
-
e.fieldsetClasses,
|
|
164
|
-
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
165
|
-
{
|
|
166
|
-
"uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger": e.border
|
|
167
|
-
},
|
|
168
|
-
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
169
|
-
]])
|
|
170
|
-
}, [
|
|
171
|
-
s("legend", {
|
|
172
|
-
class: a([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
|
|
173
|
-
}, [
|
|
174
|
-
e.label ? (o(), n("span", {
|
|
175
|
-
key: 0,
|
|
176
|
-
class: a(["uikit-mx-5px", [r.value.label ? "uikit-invisible" : "uikit-hidden"]]),
|
|
177
|
-
innerHTML: e.label
|
|
178
|
-
}, null, 10, X)) : k("", !0)
|
|
179
|
-
], 2)
|
|
180
|
-
], 2),
|
|
181
|
-
s("ul", {
|
|
182
|
-
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
183
|
-
role: "listbox",
|
|
184
|
-
tabindex: -1,
|
|
185
|
-
"aria-multiselectable": !1,
|
|
186
|
-
class: a(["uikit-absolute uikit-z-30 uikit-m-0 uikit-max-h-[225px] uikit-w-full uikit-min-w-full uikit-list-none uikit-overflow-y-auto uikit-p-0 uikit-no-scrollbar", [
|
|
187
|
-
{ "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !i.value },
|
|
188
|
-
{
|
|
189
|
-
"uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": i.value
|
|
190
|
-
},
|
|
191
|
-
{ "uikit-bottom-[55px]": e.dropdownPosition === "top" },
|
|
192
|
-
{ "uikit-top-[55px]": e.dropdownPosition === "bottom" },
|
|
193
|
-
e.dropdownClasses
|
|
194
|
-
]]),
|
|
195
|
-
onClick: u[3] || (u[3] = p(() => {
|
|
196
|
-
}, ["stop"]))
|
|
197
|
-
}, [
|
|
198
|
-
(o(!0), n(H, null, q(e.options, (d, f) => (o(), n("li", {
|
|
199
|
-
id: `${l.value}_element_${e.options[f].label}`,
|
|
200
|
-
key: `${d.label}_${f}`,
|
|
201
|
-
role: "option",
|
|
202
|
-
"aria-selected": b(v) === f,
|
|
203
|
-
class: a(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
|
|
204
|
-
onClick: p((M) => y(d), ["stop"]),
|
|
205
|
-
onMouseover: p((M) => v.value = f, ["stop"]),
|
|
206
|
-
onBlur: u[2] || (u[2] = p(() => {
|
|
207
|
-
}, ["stop"]))
|
|
208
|
-
}, [
|
|
209
|
-
s("label", x, [
|
|
210
|
-
s("input", {
|
|
211
|
-
tabindex: "-1",
|
|
212
|
-
class: "uikit-m-0 uikit-appearance-none",
|
|
213
|
-
name: `${l.value}_radio`,
|
|
214
|
-
type: "radio",
|
|
215
|
-
checked: d.label === r.value.label,
|
|
216
|
-
onInput: p((M) => y(d), ["stop"])
|
|
217
|
-
}, null, 40, _),
|
|
218
|
-
s("span", {
|
|
219
|
-
innerHTML: d.label
|
|
220
|
-
}, null, 8, ee)
|
|
221
|
-
])
|
|
222
|
-
], 42, Z))), 128))
|
|
223
|
-
], 10, Y)
|
|
224
|
-
], 2),
|
|
225
|
-
e.feedback ? (o(), n(H, { key: 0 }, [
|
|
226
|
-
e.feedback.valid ? (o(), n("span", {
|
|
227
|
-
key: 0,
|
|
228
|
-
id: `${l.value}_valid_msg`,
|
|
229
|
-
"arial-live": e.$attrs["aria-live"],
|
|
230
|
-
class: "uikit-mt-1 uikit-inline-block uikit-text-12",
|
|
231
|
-
innerHTML: e.isValid ? e.feedback.valid : ""
|
|
232
|
-
}, null, 8, ie)) : k("", !0),
|
|
233
|
-
e.feedback.invalid ? (o(), n("span", {
|
|
234
|
-
key: 1,
|
|
235
|
-
id: `${l.value}_invalid_msg`,
|
|
236
|
-
"arial-live": e.$attrs["aria-live"],
|
|
237
|
-
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
|
|
238
|
-
innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
|
|
239
|
-
}, null, 8, te)) : k("", !0)
|
|
240
|
-
], 64)) : k("", !0)
|
|
241
|
-
], 2));
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
export {
|
|
245
|
-
ne as _
|
|
246
|
-
};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { defineComponent as T, ref as d, useTemplateRef as z, onUnmounted as H, watch as O, createBlock as $, openBlock as m, Teleport as D, createElementVNode as a, normalizeClass as s, withModifiers as y, createElementBlock as h, createCommentVNode as w, renderSlot as r, createVNode as I, unref as K, nextTick as N } from "vue";
|
|
2
|
-
import "./polyline.DjpLdMaW.js";
|
|
3
|
-
import { l as V } from "./CloseIcon.BZ4U3aiI.js";
|
|
4
|
-
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
-
import '../assets/BaseModal.css';const g = () => navigator?.userAgent.includes("Windows"), A = (o, c) => new Promise((l, t) => {
|
|
6
|
-
setTimeout(() => {
|
|
7
|
-
try {
|
|
8
|
-
o && o(), l();
|
|
9
|
-
} catch {
|
|
10
|
-
t();
|
|
11
|
-
}
|
|
12
|
-
}, c);
|
|
13
|
-
}), F = ["id", "data-cy"], P = ["innerHTML"], j = /* @__PURE__ */ T({
|
|
14
|
-
__name: "BaseModal",
|
|
15
|
-
props: {
|
|
16
|
-
id: { default: "base-bt-modal" },
|
|
17
|
-
size: { default: "modal-md" },
|
|
18
|
-
customBackdropClasses: {},
|
|
19
|
-
customModalDialogClasses: {},
|
|
20
|
-
customModalHeaderClasses: {},
|
|
21
|
-
customModalBodyClasses: {},
|
|
22
|
-
customModalFooterClasses: {},
|
|
23
|
-
withCloseIcon: { type: Boolean, default: !0 },
|
|
24
|
-
showModal: { type: Boolean, default: !0 },
|
|
25
|
-
headerTitle: { default: "" },
|
|
26
|
-
autoClose: {},
|
|
27
|
-
fullHeight: { type: Boolean, default: !1 },
|
|
28
|
-
closeOnClickOut: { type: Boolean, default: !0 },
|
|
29
|
-
centered: { type: Boolean, default: !1 },
|
|
30
|
-
dataCy: {},
|
|
31
|
-
closeIconBtnClasses: {},
|
|
32
|
-
titleClasses: {}
|
|
33
|
-
},
|
|
34
|
-
emits: ["closed", "opened", "dialogClick"],
|
|
35
|
-
setup(o, { emit: c }) {
|
|
36
|
-
const l = c, t = d(!1), f = d(null), u = z("modalDialog"), k = d(!1), n = d(!1), p = ({ key: e }) => {
|
|
37
|
-
e === "Escape" && i();
|
|
38
|
-
}, C = () => {
|
|
39
|
-
document?.body.addEventListener("keydown", p);
|
|
40
|
-
}, b = () => {
|
|
41
|
-
document?.body.removeEventListener("keydown", p);
|
|
42
|
-
}, M = async () => {
|
|
43
|
-
t.value = !0, N(() => {
|
|
44
|
-
C(), g() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
45
|
-
}), l("opened"), o.autoClose !== void 0 && setTimeout(() => {
|
|
46
|
-
i();
|
|
47
|
-
}, o.autoClose);
|
|
48
|
-
}, B = (e) => {
|
|
49
|
-
u.value && u.value.contains(e.target) && (n.value = !0);
|
|
50
|
-
}, x = (e) => {
|
|
51
|
-
u.value && u.value.contains(e.target) && (n.value = !1);
|
|
52
|
-
}, L = async () => {
|
|
53
|
-
if (o.closeOnClickOut) {
|
|
54
|
-
if (n.value) {
|
|
55
|
-
n.value = !1;
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
await i();
|
|
59
|
-
}
|
|
60
|
-
}, i = async () => {
|
|
61
|
-
t.value = !1, b(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await A(() => {
|
|
62
|
-
f.value?.classList.add("uikit-hidden"), l("closed");
|
|
63
|
-
}, 250);
|
|
64
|
-
};
|
|
65
|
-
return H(() => {
|
|
66
|
-
b(), document?.documentElement.classList.remove("uikit-no-scrolling"), g() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
67
|
-
}), O(
|
|
68
|
-
() => o.showModal,
|
|
69
|
-
async (e) => {
|
|
70
|
-
!e && !t.value ? k.value = !0 : k.value = !1, e && !t.value && await M(), !e && t.value && await i(), t.value = e;
|
|
71
|
-
},
|
|
72
|
-
{ immediate: !0 }
|
|
73
|
-
), (e, v) => (m(), $(D, { to: "body" }, [
|
|
74
|
-
a("div", {
|
|
75
|
-
ref_key: "backdropEl",
|
|
76
|
-
ref: f,
|
|
77
|
-
class: s(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
78
|
-
e.customBackdropClasses,
|
|
79
|
-
{
|
|
80
|
-
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": t.value
|
|
81
|
-
},
|
|
82
|
-
{ "uikit-bg-transparent": !t.value },
|
|
83
|
-
{ "sm:uikit-pt-[30px]": !e.centered },
|
|
84
|
-
{ hide: k.value }
|
|
85
|
-
]]),
|
|
86
|
-
style: { "z-index": "1062" },
|
|
87
|
-
onClick: L,
|
|
88
|
-
onMousedown: B,
|
|
89
|
-
onMouseup: x
|
|
90
|
-
}, [
|
|
91
|
-
a("dialog", {
|
|
92
|
-
id: e.id,
|
|
93
|
-
ref: "modalDialog",
|
|
94
|
-
"data-cy": e.dataCy,
|
|
95
|
-
class: s(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
|
|
96
|
-
e.customModalDialogClasses,
|
|
97
|
-
{ show: t.value },
|
|
98
|
-
{ "closed uikit-overflow-hidden": !t.value },
|
|
99
|
-
{ centered: e.centered },
|
|
100
|
-
{ "uikit-absolute": e.centered },
|
|
101
|
-
{ "uikit-static": !e.centered },
|
|
102
|
-
`base-${e.size}`,
|
|
103
|
-
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
104
|
-
]]),
|
|
105
|
-
onClick: v[0] || (v[0] = y((E) => l("dialogClick", E), ["stop"]))
|
|
106
|
-
}, [
|
|
107
|
-
a("div", {
|
|
108
|
-
class: s(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-rounded-t uikit-border-0 uikit-bg-white uikit-px-4 uikit-pb-10px uikit-pt-20px sm:uikit-px-6", [e.customModalHeaderClasses]])
|
|
109
|
-
}, [
|
|
110
|
-
e.withCloseIcon ? (m(), h("button", {
|
|
111
|
-
key: 0,
|
|
112
|
-
id: "close-icon-btn",
|
|
113
|
-
"data-cy": "bbt-default-close-icon-btn",
|
|
114
|
-
class: s(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
|
|
115
|
-
type: "button",
|
|
116
|
-
"aria-label": "Close",
|
|
117
|
-
onClick: y(i, ["prevent", "stop"])
|
|
118
|
-
}, [
|
|
119
|
-
I(K(V), {
|
|
120
|
-
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
121
|
-
width: 30,
|
|
122
|
-
height: 30
|
|
123
|
-
})
|
|
124
|
-
], 2)) : w("", !0),
|
|
125
|
-
r(e.$slots, "header", { closeModal: i }, () => [
|
|
126
|
-
a("span", {
|
|
127
|
-
class: s(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
128
|
-
innerHTML: e.headerTitle
|
|
129
|
-
}, null, 10, P)
|
|
130
|
-
])
|
|
131
|
-
], 2),
|
|
132
|
-
a("div", {
|
|
133
|
-
class: s(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-4 uikit-pb-0 uikit-no-scrollbar sm:uikit-px-6 sm:uikit-pb-25px", [e.customModalBodyClasses]])
|
|
134
|
-
}, [
|
|
135
|
-
r(e.$slots, "body", { closeModal: i })
|
|
136
|
-
], 2),
|
|
137
|
-
e.$slots.footer ? (m(), h("div", {
|
|
138
|
-
key: 0,
|
|
139
|
-
class: s(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", e.customModalFooterClasses])
|
|
140
|
-
}, [
|
|
141
|
-
r(e.$slots, "footer", { closeModal: i })
|
|
142
|
-
], 2)) : w("", !0),
|
|
143
|
-
r(e.$slots, "fixed-bottom")
|
|
144
|
-
], 10, F)
|
|
145
|
-
], 34)
|
|
146
|
-
]));
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
export {
|
|
150
|
-
j as _
|
|
151
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, mergeModels as P, useModel as D, computed as s, createElementBlock as n, openBlock as r, createCommentVNode as o, createElementVNode as p, normalizeClass as h, createVNode as y, unref as v, toDisplayString as c, Fragment as m, renderList as x } from "vue";
|
|
2
|
-
import "./polyline.DjpLdMaW.js";
|
|
3
|
-
import { a as C } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
4
|
-
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
-
function d(l, t = !1) {
|
|
6
|
-
return l == null ? "" : S(t ? Math.round(l) : Math.floor(l), 0);
|
|
7
|
-
}
|
|
8
|
-
function S(l, t) {
|
|
9
|
-
return !l && l !== 0 ? "" : l.toLocaleString(
|
|
10
|
-
"it-IT",
|
|
11
|
-
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
12
|
-
{
|
|
13
|
-
minimumFractionDigits: t,
|
|
14
|
-
maximumFractionDigits: t,
|
|
15
|
-
useGrouping: "always"
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
const $ = {
|
|
20
|
-
"aria-label": "Page navigation",
|
|
21
|
-
class: "uikit-overflow-auto"
|
|
22
|
-
}, B = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "uikit-text-14 uikit-m-0 uikit-flex uikit-list-none uikit-content-center uikit-gap-4 uikit-p-0 uikit-pl-0 uikit-font-semibold sm:uikit-gap-5"
|
|
25
|
-
}, F = ["data-cy"], O = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "uikit-mx-10px uikit-select-none"
|
|
28
|
-
}, V = {
|
|
29
|
-
key: 1,
|
|
30
|
-
class: "font-weight-bold uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
31
|
-
}, A = ["onClick"], E = ["onClick"], z = {
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
34
|
-
}, G = ["data-cy"], T = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "uikit-mx-10px uikit-select-none"
|
|
37
|
-
}, Q = /* @__PURE__ */ j({
|
|
38
|
-
__name: "BasePagination",
|
|
39
|
-
props: /* @__PURE__ */ P({
|
|
40
|
-
count: { default: 0 },
|
|
41
|
-
limit: { default: 25 },
|
|
42
|
-
siblings: { default: 3 },
|
|
43
|
-
additionalCount: { default: 0 },
|
|
44
|
-
arrowColor: { default: "#2B5DFF" },
|
|
45
|
-
small: { type: Boolean, default: !1 },
|
|
46
|
-
prevLabel: { default: "" },
|
|
47
|
-
nextLabel: { default: "" },
|
|
48
|
-
prevDataCy: {},
|
|
49
|
-
nextDataCy: {}
|
|
50
|
-
}, {
|
|
51
|
-
pageNumber: { default: 1 },
|
|
52
|
-
pageNumberModifiers: {}
|
|
53
|
-
}),
|
|
54
|
-
emits: ["update:pageNumber"],
|
|
55
|
-
setup(l) {
|
|
56
|
-
const t = D(l, "pageNumber"), a = s(() => Math.ceil((l.count + l.additionalCount) / l.limit)), g = s(() => (t.value || 0) > l.siblings + 2), f = s(
|
|
57
|
-
() => (t.value || 0) < a.value - l.siblings - 1
|
|
58
|
-
), b = s(() => {
|
|
59
|
-
let e = t.value || 0, u = 0;
|
|
60
|
-
for (; e > 2 && u < l.siblings; )
|
|
61
|
-
e--, u++;
|
|
62
|
-
return u;
|
|
63
|
-
}), w = s(() => {
|
|
64
|
-
let e = t.value || 0, u = 0;
|
|
65
|
-
for (; e < a.value - 1 && u < l.siblings; )
|
|
66
|
-
e++, u++;
|
|
67
|
-
return u;
|
|
68
|
-
}), N = s(() => {
|
|
69
|
-
const i = b.value + /* Filling with the remaining right siblings */
|
|
70
|
-
Math.abs(w.value - l.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
71
|
-
new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
72
|
-
new Number(t.value === a.value).valueOf();
|
|
73
|
-
let e = Math.max((t.value || 0) - i, 2);
|
|
74
|
-
const u = [];
|
|
75
|
-
for (e; e < (t.value || 0); e++) u.push(e);
|
|
76
|
-
return u;
|
|
77
|
-
}), M = s(() => {
|
|
78
|
-
const i = w.value + /* Filling with the remaining left siblings */
|
|
79
|
-
Math.abs(b.value - l.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
80
|
-
new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
81
|
-
new Number(t.value === 1).valueOf();
|
|
82
|
-
let e = Math.min(t.value || 0, a.value - 1);
|
|
83
|
-
const u = [];
|
|
84
|
-
for (e; e < Math.min((t.value || 0) + i, a.value - 1); e++)
|
|
85
|
-
u.push(e + 1);
|
|
86
|
-
return u;
|
|
87
|
-
}), k = (i) => {
|
|
88
|
-
let e = i;
|
|
89
|
-
i < 1 ? e = 1 : i > a.value && (e = a.value), t.value = e;
|
|
90
|
-
};
|
|
91
|
-
return (i, e) => (r(), n("nav", $, [
|
|
92
|
-
i.count > 0 ? (r(), n("ul", B, [
|
|
93
|
-
p("li", {
|
|
94
|
-
class: h(["arrow-button prev-page uikit-h-30x uikit-flex uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
95
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": t.value !== 1,
|
|
96
|
-
"hover:uikit-text-white": i.small && t.value !== 1,
|
|
97
|
-
"uikit-rounded-xs": i.small && i.prevLabel
|
|
98
|
-
}]),
|
|
99
|
-
"data-cy": i.prevDataCy,
|
|
100
|
-
onClick: e[0] || (e[0] = (u) => k((t.value || 0) - 1))
|
|
101
|
-
}, [
|
|
102
|
-
y(v(C), {
|
|
103
|
-
width: 20,
|
|
104
|
-
height: 11,
|
|
105
|
-
"stroke-color": t.value === 1 ? "#8996A9" : i.arrowColor,
|
|
106
|
-
class: "uikit-inline-block uikit-rotate-90"
|
|
107
|
-
}, null, 8, ["stroke-color"]),
|
|
108
|
-
i.small && i.prevLabel ? (r(), n("span", O, c(i.prevLabel), 1)) : o("", !0)
|
|
109
|
-
], 10, F),
|
|
110
|
-
i.small ? o("", !0) : (r(), n(m, { key: 0 }, [
|
|
111
|
-
(t.value || 0) > 1 ? (r(), n("li", {
|
|
112
|
-
key: 0,
|
|
113
|
-
class: "page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
114
|
-
onClick: e[1] || (e[1] = (u) => k(0))
|
|
115
|
-
}, " 1 ")) : o("", !0),
|
|
116
|
-
g.value ? (r(), n("li", V, " ... ")) : o("", !0),
|
|
117
|
-
(r(!0), n(m, null, x(N.value, (u) => (r(), n("li", {
|
|
118
|
-
key: u,
|
|
119
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
120
|
-
onClick: (L) => k(u)
|
|
121
|
-
}, c(v(d)(u)), 9, A))), 128))
|
|
122
|
-
], 64)),
|
|
123
|
-
p("li", {
|
|
124
|
-
class: h(["selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
125
|
-
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
|
|
126
|
-
}])
|
|
127
|
-
}, c(t.value || 0), 3),
|
|
128
|
-
i.small ? o("", !0) : (r(), n(m, { key: 1 }, [
|
|
129
|
-
(r(!0), n(m, null, x(M.value, (u) => (r(), n("li", {
|
|
130
|
-
key: u,
|
|
131
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
132
|
-
onClick: (L) => k(u)
|
|
133
|
-
}, c(v(d)(u)), 9, E))), 128)),
|
|
134
|
-
f.value ? (r(), n("li", z, " ... ")) : o("", !0),
|
|
135
|
-
(t.value || 0) < a.value ? (r(), n("li", {
|
|
136
|
-
key: 1,
|
|
137
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
138
|
-
onClick: e[2] || (e[2] = (u) => k(a.value))
|
|
139
|
-
}, c(v(d)(a.value)), 1)) : o("", !0)
|
|
140
|
-
], 64)),
|
|
141
|
-
p("li", {
|
|
142
|
-
class: h(["arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
143
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (t.value || 0) < a.value,
|
|
144
|
-
"hover:uikit-text-white": i.small && (t.value || 0) < a.value,
|
|
145
|
-
"uikit-rounded-xs": i.small && i.nextLabel
|
|
146
|
-
}]),
|
|
147
|
-
"data-cy": i.nextDataCy,
|
|
148
|
-
onClick: e[3] || (e[3] = (u) => k((t.value || 0) + 1))
|
|
149
|
-
}, [
|
|
150
|
-
i.small && i.nextLabel ? (r(), n("span", T, c(i.nextLabel), 1)) : o("", !0),
|
|
151
|
-
y(v(C), {
|
|
152
|
-
"stroke-color": (t.value || 0) === a.value ? "#8996A9" : i.arrowColor,
|
|
153
|
-
width: 20,
|
|
154
|
-
height: 11,
|
|
155
|
-
class: "uikit-inline-block -uikit-rotate-90"
|
|
156
|
-
}, null, 8, ["stroke-color"])
|
|
157
|
-
], 10, G)
|
|
158
|
-
])) : o("", !0)
|
|
159
|
-
]));
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
export {
|
|
163
|
-
Q as _
|
|
164
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
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
|
-
};
|