@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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import "./PharmacyIcon.
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as d, computed as k, createElementBlock as s, openBlock as i, createElementVNode as n, normalizeClass as a, Fragment as u, renderList as p, renderSlot as c, toDisplayString as h, createVNode as b, unref as f } from "vue";
|
|
2
|
+
import { a as C } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
3
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
4
|
+
const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], B = ["href"], $ = /* @__PURE__ */ d({
|
|
5
5
|
__name: "BaseBreadcrumb",
|
|
6
6
|
props: {
|
|
7
7
|
items: {},
|
|
@@ -9,38 +9,38 @@ const C = { "aria-label": "Breadcrumb" }, g = ["data-tooltip"], w = ["href"], _
|
|
|
9
9
|
listItemClasses: {}
|
|
10
10
|
},
|
|
11
11
|
setup(r) {
|
|
12
|
-
const
|
|
12
|
+
const m = k(() => {
|
|
13
13
|
let e = 0;
|
|
14
14
|
const l = [];
|
|
15
15
|
for (; e < r.items.length; )
|
|
16
16
|
l.push({ ...r.items[e], idx: e }), e < r.items.length - 1 && l.push({ arrowIcon: !0 }), e++;
|
|
17
17
|
return l;
|
|
18
18
|
});
|
|
19
|
-
return (e, l) => (
|
|
20
|
-
|
|
19
|
+
return (e, l) => (i(), s("nav", g, [
|
|
20
|
+
n("ol", {
|
|
21
21
|
class: a(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", e.listClasses])
|
|
22
22
|
}, [
|
|
23
|
-
(
|
|
24
|
-
t?.label ? (
|
|
25
|
-
key:
|
|
23
|
+
(i(!0), s(u, null, p(m.value, (t, o) => (i(), s(u, null, [
|
|
24
|
+
t?.label ? (i(), s("li", {
|
|
25
|
+
key: `breadcrumb-li-${o}`,
|
|
26
26
|
class: a(["uikit-list-none", e.listItemClasses]),
|
|
27
27
|
"data-tooltip": t.dataTooltip
|
|
28
28
|
}, [
|
|
29
|
-
|
|
29
|
+
c(e.$slots, "item", {
|
|
30
30
|
item: t
|
|
31
31
|
}, () => [
|
|
32
|
-
|
|
32
|
+
n("a", {
|
|
33
33
|
class: a(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
|
|
34
34
|
href: t.link
|
|
35
|
-
},
|
|
35
|
+
}, h(t.label), 11, B)
|
|
36
36
|
])
|
|
37
|
-
], 10,
|
|
38
|
-
key:
|
|
37
|
+
], 10, w)) : (i(), s("li", {
|
|
38
|
+
key: `breadcrumb-li-no-label-${o}`,
|
|
39
39
|
class: a(["uikit-list-none", e.listItemClasses]),
|
|
40
40
|
"aria-hidden": "true"
|
|
41
41
|
}, [
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
c(e.$slots, "separator", {}, () => [
|
|
43
|
+
b(f(C), {
|
|
44
44
|
class: "-uikit-rotate-90",
|
|
45
45
|
"stroke-color": "#222",
|
|
46
46
|
width: 10,
|
|
@@ -54,5 +54,5 @@ const C = { "aria-label": "Breadcrumb" }, g = ["data-tooltip"], w = ["href"], _
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
_
|
|
57
|
+
$ as _
|
|
58
58
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, computed as s,
|
|
1
|
+
import { defineComponent as y, ref as b, computed as s, createElementBlock as f, openBlock as v, withModifiers as l, normalizeStyle as B, normalizeClass as C, renderSlot as u, createVNode as c } from "vue";
|
|
2
2
|
import M from "../StaticSpinner.js";
|
|
3
3
|
const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ y({
|
|
4
4
|
__name: "BaseButton",
|
|
@@ -22,11 +22,11 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
22
22
|
}, k = () => {
|
|
23
23
|
n.value = !1;
|
|
24
24
|
};
|
|
25
|
-
return (e, t) => (
|
|
25
|
+
return (e, t) => (v(), f("button", {
|
|
26
26
|
id: e.$attrs.id,
|
|
27
27
|
"data-cy": e.dataCy,
|
|
28
28
|
type: e.type,
|
|
29
|
-
class:
|
|
29
|
+
class: C([
|
|
30
30
|
"uikit-btn",
|
|
31
31
|
{
|
|
32
32
|
"uikit-btn-empty": !e.withMinWidth,
|
|
@@ -37,7 +37,7 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
|
|
|
37
37
|
d.value,
|
|
38
38
|
m.value
|
|
39
39
|
]),
|
|
40
|
-
style:
|
|
40
|
+
style: B(e.$attrs.style),
|
|
41
41
|
"data-active": e.keepActive,
|
|
42
42
|
disabled: e.isLoading || e.disabled,
|
|
43
43
|
"aria-label": e.ariaLabel,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as
|
|
4
|
-
import "./PharmacyIcon.
|
|
5
|
-
import { A as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as M, mergeModels as b, useId as A, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as N, createElementBlock as T, openBlock as u, withModifiers as g, normalizeClass as i, renderSlot as C, createBlock as y, createVNode as V, unref as l, withCtx as D, createElementVNode as K, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
|
+
import { _ as R } from "./BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js";
|
|
3
|
+
import { a as U } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
4
|
+
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
+
import { A as j } from "./useBreakpoints.BXk8Xcw3.js";
|
|
6
|
+
const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseDropDown",
|
|
9
|
-
props: {
|
|
9
|
+
props: /* @__PURE__ */ b({
|
|
10
10
|
dropdownClasses: { default: "" },
|
|
11
11
|
btnClasses: { default: "" },
|
|
12
12
|
withArrowIcon: { type: Boolean, default: !1 },
|
|
@@ -22,15 +22,20 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
22
22
|
keepState: { default: "" },
|
|
23
23
|
activateKeyboardController: { type: Boolean, default: !0 },
|
|
24
24
|
dataCy: { default: "" }
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
}, {
|
|
26
|
+
toggleDropdown: {
|
|
27
|
+
default: void 0
|
|
28
|
+
},
|
|
29
|
+
toggleDropdownModifiers: {}
|
|
30
|
+
}),
|
|
31
|
+
emits: /* @__PURE__ */ b(["click", "update:dropdownState"], ["update:toggleDropdown"]),
|
|
32
|
+
setup(p, { emit: B }) {
|
|
33
|
+
const o = p, c = A(), k = B, f = E(p, "toggleDropdown"), t = h(!1), d = h([]), S = O(() => d.value.length), w = W("dropdown"), { activeIdx: m, selectedIdx: r } = j({
|
|
34
|
+
optionsLength: S,
|
|
30
35
|
isDropdownOpen: t,
|
|
31
36
|
activate: o.activateKeyboardController
|
|
32
37
|
});
|
|
33
|
-
|
|
38
|
+
n(
|
|
34
39
|
() => o.openDropdown,
|
|
35
40
|
(e) => {
|
|
36
41
|
t.value = e;
|
|
@@ -38,34 +43,40 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
38
43
|
{
|
|
39
44
|
immediate: !0
|
|
40
45
|
}
|
|
41
|
-
),
|
|
42
|
-
|
|
43
|
-
}),
|
|
44
|
-
e
|
|
46
|
+
), n(t, (e) => {
|
|
47
|
+
k("update:dropdownState", e);
|
|
48
|
+
}), n(f, (e) => {
|
|
49
|
+
e && (t.value = !t.value, f.value = !1);
|
|
50
|
+
}), n(r, (e) => {
|
|
51
|
+
e !== -1 && d.value[e].querySelector("a")?.click();
|
|
45
52
|
});
|
|
46
|
-
const
|
|
53
|
+
const v = () => {
|
|
47
54
|
t.value = !1;
|
|
48
|
-
},
|
|
55
|
+
}, s = () => {
|
|
49
56
|
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
57
|
+
}, I = (e) => {
|
|
58
|
+
e != null && (m.value = e);
|
|
59
|
+
}, L = (e) => {
|
|
60
|
+
e != null && (r.value = e);
|
|
50
61
|
};
|
|
51
|
-
return
|
|
52
|
-
o.closeWhenClickedOutside && document.body.addEventListener("click",
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
}),
|
|
56
|
-
o.closeWhenClickedOutside && document.body.removeEventListener("click",
|
|
57
|
-
}), (e,
|
|
62
|
+
return $(() => {
|
|
63
|
+
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
64
|
+
}), H(() => {
|
|
65
|
+
w.value && (d.value = w.value.children || []);
|
|
66
|
+
}), N(() => {
|
|
67
|
+
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
68
|
+
}), (e, a) => (u(), T("div", {
|
|
58
69
|
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
59
|
-
onClick:
|
|
60
|
-
|
|
70
|
+
onClick: a[1] || (a[1] = g((G) => {
|
|
71
|
+
k("click"), s();
|
|
61
72
|
}, ["stop"]))
|
|
62
73
|
}, [
|
|
63
|
-
|
|
64
|
-
toggleDropdown:
|
|
74
|
+
C(e.$slots, "btn_slot", {
|
|
75
|
+
toggleDropdown: s,
|
|
65
76
|
isOpen: t.value
|
|
66
77
|
}, () => [
|
|
67
|
-
|
|
68
|
-
id:
|
|
78
|
+
V(R, {
|
|
79
|
+
id: l(c),
|
|
69
80
|
type: "button",
|
|
70
81
|
"data-cy": e.dataCy,
|
|
71
82
|
class: i([
|
|
@@ -75,24 +86,24 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
75
86
|
"aria-expanded": t.value,
|
|
76
87
|
"btn-class": "uikit-btn-single-selection"
|
|
77
88
|
}, {
|
|
78
|
-
default:
|
|
79
|
-
|
|
89
|
+
default: D(() => [
|
|
90
|
+
K("span", {
|
|
80
91
|
class: i(["uikit-mr-5px", e.labelClasses]),
|
|
81
92
|
innerHTML: e.btnLabel
|
|
82
|
-
}, null, 10,
|
|
83
|
-
e.withArrowIcon ? (
|
|
93
|
+
}, null, 10, F),
|
|
94
|
+
e.withArrowIcon ? (u(), y(l(U), {
|
|
84
95
|
key: 0,
|
|
85
96
|
class: i(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
86
97
|
width: e.arrowWidth,
|
|
87
98
|
height: e.arrowWidth,
|
|
88
99
|
"stroke-color": e.arrowStrokeColor
|
|
89
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])) :
|
|
100
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])) : q("", !0)
|
|
90
101
|
]),
|
|
91
102
|
_: 1
|
|
92
103
|
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
93
104
|
]),
|
|
94
|
-
(
|
|
95
|
-
id: "dropdown_" +
|
|
105
|
+
(u(), y(z(e.dropdownElement), {
|
|
106
|
+
id: "dropdown_" + l(c),
|
|
96
107
|
ref: "dropdown",
|
|
97
108
|
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
98
109
|
class: i(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
@@ -103,15 +114,17 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
103
114
|
{ "uikit-absolute": e.isAbsolute }
|
|
104
115
|
]]),
|
|
105
116
|
"aria-hidden": !t.value,
|
|
106
|
-
onClick:
|
|
117
|
+
onClick: a[0] || (a[0] = g(() => {
|
|
107
118
|
}, ["stop"]))
|
|
108
119
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
|
|
120
|
+
default: D(() => [
|
|
121
|
+
C(e.$slots, "default", {
|
|
111
122
|
isOpen: t.value,
|
|
112
|
-
toggleDropdown:
|
|
113
|
-
activeIdx:
|
|
114
|
-
selectedIdx:
|
|
123
|
+
toggleDropdown: s,
|
|
124
|
+
activeIdx: l(m),
|
|
125
|
+
selectedIdx: l(r),
|
|
126
|
+
setActiveIdx: I,
|
|
127
|
+
setSelectedIdx: L
|
|
115
128
|
})
|
|
116
129
|
]),
|
|
117
130
|
_: 3
|
|
@@ -120,5 +133,5 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
120
133
|
}
|
|
121
134
|
});
|
|
122
135
|
export {
|
|
123
|
-
|
|
136
|
+
Z as _
|
|
124
137
|
};
|
|
@@ -0,0 +1,151 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,164 @@
|
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, inject as l,
|
|
1
|
+
import { defineComponent as p, inject as l, createElementBlock as r, openBlock as a, normalizeClass as o, Fragment as m, renderList as h, unref as i, createBlock as y, createCommentVNode as C, toDisplayString as _, resolveDynamicComponent as f } from "vue";
|
|
2
2
|
const v = ["aria-labelledby"], B = ["id", "data-cy", "aria-selected", "aria-controls", "tabindex", "onClick"], F = { key: 0 }, $ = /* @__PURE__ */ p({
|
|
3
3
|
__name: "BaseTabList",
|
|
4
4
|
props: {
|
|
@@ -30,10 +30,10 @@ const v = ["aria-labelledby"], B = ["id", "data-cy", "aria-selected", "aria-cont
|
|
|
30
30
|
e.class
|
|
31
31
|
]),
|
|
32
32
|
onClick: (k) => {
|
|
33
|
-
i(b)(t), u("tabClick", k, t);
|
|
33
|
+
i(b)(t, e), u("tabClick", k, t, e);
|
|
34
34
|
}
|
|
35
35
|
}, [
|
|
36
|
-
e["header-title"] ? (a(), r("span", F,
|
|
36
|
+
e["header-title"] ? (a(), r("span", F, _(e["header-title"]), 1)) : e.renderFn.children && e.renderFn.children.header ? (a(), y(f(e.renderFn.children.header), { key: 1 })) : C("", !0)
|
|
37
37
|
], 10, B))), 128))
|
|
38
38
|
], 10, v));
|
|
39
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, withDirectives as l,
|
|
1
|
+
import { defineComponent as a, withDirectives as l, createElementBlock as o, openBlock as s, normalizeClass as t, renderSlot as r, vShow as i } from "vue";
|
|
2
2
|
const n = ["id", "aria-labelledby"], b = /* @__PURE__ */ a({
|
|
3
3
|
__name: "BaseTabPanel",
|
|
4
4
|
props: {
|
|
@@ -7,7 +7,7 @@ const n = ["id", "aria-labelledby"], b = /* @__PURE__ */ a({
|
|
|
7
7
|
labelledBy: {}
|
|
8
8
|
},
|
|
9
9
|
setup(d) {
|
|
10
|
-
return (e, p) => l((
|
|
10
|
+
return (e, p) => l((s(), o("div", {
|
|
11
11
|
id: e.id,
|
|
12
12
|
role: "tabpanel",
|
|
13
13
|
"aria-labelledby": e.labelledBy,
|