@wikicasa-dev/components 2.1.5-alpha.4 → 2.1.6
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/UIKit/BasePagination.d.ts +7 -1
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +4 -5
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +3 -3
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +12 -13
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +155 -94
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +4 -5
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +20 -21
- package/package.json +15 -11
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12-alpha.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12-alpha.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12-alpha.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12-alpha.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12-alpha.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.2 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.2 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.2 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.2 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.2 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.22-alpha.2 → @wikicasa-dev_utilities@1.1.21}/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.24-alpha.3 → @wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Optional } from '@wikicasa-dev/types';
|
|
1
|
+
import { Nullable, Optional } from '@wikicasa-dev/types';
|
|
2
|
+
import { Component } from 'vue';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
count?: number;
|
|
4
5
|
limit?: number;
|
|
@@ -10,6 +11,11 @@ type __VLS_Props = {
|
|
|
10
11
|
nextLabel?: string;
|
|
11
12
|
prevDataCy?: string;
|
|
12
13
|
nextDataCy?: string;
|
|
14
|
+
linkProps?: Record<string, unknown>;
|
|
15
|
+
linkTag?: Component | "a";
|
|
16
|
+
baseUrl?: string;
|
|
17
|
+
pageQueryParameter?: string;
|
|
18
|
+
formatter?: (value?: Nullable<number>) => string;
|
|
13
19
|
};
|
|
14
20
|
type __VLS_PublicProps = {
|
|
15
21
|
"pageNumber"?: Optional<number>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as F, mergeModels as $, useModel as M, useId as A, computed as V, ref as L, watch as w, onMounted as E, onUnmounted as P, createElementBlock as s, openBlock as a, normalizeClass as l, createElementVNode as o, createCommentVNode as d, withModifiers as p, renderSlot as z, unref as b, createBlock as N, createVNode as O, Fragment as T, renderList as S } from "vue";
|
|
2
|
-
import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.
|
|
3
|
-
import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
-
import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
3
|
+
import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
|
|
5
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
6
|
const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], W = ["innerHTML"], G = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, J = ["innerHTML"], Q = ["data-cy"], X = ["id", "aria-selected", "onClick", "onMouseover"], Y = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Z = ["name", "checked", "onInput"], x = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], se = /* @__PURE__ */ F({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "AccessibleSelect",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, ref as u, provide as c, renderSlot as d } from "vue";
|
|
2
2
|
import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
-
import { isEmptyObject as f } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.
|
|
4
|
-
import "date-fns";
|
|
3
|
+
import { isEmptyObject as f } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
5
4
|
import "../../../../../_virtual/polyline.js";
|
|
6
|
-
const
|
|
5
|
+
const k = /* @__PURE__ */ p({
|
|
7
6
|
__name: "BaseAccordion",
|
|
8
7
|
props: {
|
|
9
8
|
autoClose: { type: Boolean, default: !0 },
|
|
@@ -12,23 +11,23 @@ const y = /* @__PURE__ */ s({
|
|
|
12
11
|
setup(l) {
|
|
13
12
|
const n = u(null), o = u(
|
|
14
13
|
{}
|
|
15
|
-
),
|
|
14
|
+
), i = (e, t) => {
|
|
16
15
|
if (l.autoClose && t && !f(t))
|
|
17
16
|
for (const a in t)
|
|
18
17
|
a !== `${e}` && (t[a].active = !1);
|
|
19
|
-
},
|
|
18
|
+
}, s = (e, t) => {
|
|
20
19
|
t && (t[e].active = !(t[e].active ?? !1));
|
|
21
20
|
}, r = (e, t) => {
|
|
22
|
-
|
|
21
|
+
i(e.id, t ?? o.value), n.value = e, s(e.id, t ?? o.value);
|
|
23
22
|
};
|
|
24
|
-
return
|
|
23
|
+
return c("handleClick", (e) => {
|
|
25
24
|
l.autoUpdate && r(e);
|
|
26
|
-
}),
|
|
25
|
+
}), c("accordionItems", o), (e, t) => d(e.$slots, "default", {
|
|
27
26
|
updatePrev: r,
|
|
28
27
|
prev: n.value
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
31
|
export {
|
|
33
|
-
|
|
32
|
+
k as default
|
|
34
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as n, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
|
|
2
|
-
import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseAccordionBtn",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as h, ref as $, inject as p, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as s, createElementVNode as f, withModifiers as O, createVNode as k, withCtx as c } from "vue";
|
|
2
2
|
import A from "./BaseAccordionBtn.vue.js";
|
|
3
3
|
import B from "./BaseAccordionContent.vue.js";
|
|
4
|
-
import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
+
import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
5
|
+
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
6
|
const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseAccordionItem",
|
|
@@ -2,12 +2,11 @@ import { defineComponent as L, mergeModels as y, useModel as F, ref as d, comput
|
|
|
2
2
|
import j from "../../../../UIKit/BaseInput.js";
|
|
3
3
|
import q from "./BaseDropDown.vue.js";
|
|
4
4
|
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
5
|
-
import "
|
|
6
|
-
import { debounce as G } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
|
|
5
|
+
import { debounce as G } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
|
|
7
6
|
import "../../../../_virtual/polyline.js";
|
|
8
7
|
import J from "./BaseSelect/SelectItem.vue.js";
|
|
9
|
-
import { useKeyboardController as Q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.
|
|
10
|
-
const R = ["innerHTML"],
|
|
8
|
+
import { useKeyboardController as Q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
9
|
+
const R = ["innerHTML"], ne = /* @__PURE__ */ L({
|
|
11
10
|
__name: "BaseAutocomplete",
|
|
12
11
|
props: /* @__PURE__ */ y({
|
|
13
12
|
isValid: { default: null },
|
|
@@ -189,5 +188,5 @@ const R = ["innerHTML"], ae = /* @__PURE__ */ L({
|
|
|
189
188
|
}
|
|
190
189
|
});
|
|
191
190
|
export {
|
|
192
|
-
|
|
191
|
+
ne as default
|
|
193
192
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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 { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], v = /* @__PURE__ */ d({
|
|
5
5
|
__name: "BaseBreadcrumb",
|
|
6
6
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as L, mergeModels as b, useId as M, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as K, createElementBlock as N, openBlock as u, withModifiers as C, normalizeClass as i, renderSlot as g, createBlock as y, createVNode as T, unref as l, withCtx as D, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
2
|
import R from "./BaseButton.vue.js";
|
|
3
|
-
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.
|
|
3
|
+
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
6
6
|
const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseDropDown",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent as T, ref as n, useTemplateRef as z, onUnmounted as H, watch as I, createBlock as O, openBlock as k, Teleport as $, createElementVNode as s, normalizeClass as o, withModifiers as v, createElementBlock as y, createCommentVNode as h, renderSlot as d, createVNode as D, unref as K, nextTick as N } from "vue";
|
|
2
2
|
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import { awaitableSetTimeout as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js";
|
|
3
|
+
import { isWindows as w } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js";
|
|
4
|
+
import { awaitableSetTimeout as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js";
|
|
6
5
|
import "../../../../_virtual/polyline.js";
|
|
7
|
-
import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
8
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
9
|
-
const F = ["id", "data-cy"], U = ["innerHTML"],
|
|
6
|
+
import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
7
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
8
|
+
const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
10
9
|
__name: "BaseModal",
|
|
11
10
|
props: {
|
|
12
11
|
id: { default: "base-bt-modal" },
|
|
@@ -29,12 +28,12 @@ const F = ["id", "data-cy"], U = ["innerHTML"], Q = /* @__PURE__ */ T({
|
|
|
29
28
|
},
|
|
30
29
|
emits: ["closed", "opened", "dialogClick"],
|
|
31
30
|
setup(l, { emit: C }) {
|
|
32
|
-
const r = C, t = n(!1), m = n(null), a = z("modalDialog"), c = n(!1), u = n(!1),
|
|
31
|
+
const r = C, t = n(!1), m = n(null), a = z("modalDialog"), c = n(!1), u = n(!1), f = ({ key: e }) => {
|
|
33
32
|
e === "Escape" && i();
|
|
34
33
|
}, g = () => {
|
|
35
|
-
document?.body.addEventListener("keydown",
|
|
36
|
-
},
|
|
37
|
-
document?.body.removeEventListener("keydown",
|
|
34
|
+
document?.body.addEventListener("keydown", f);
|
|
35
|
+
}, p = () => {
|
|
36
|
+
document?.body.removeEventListener("keydown", f);
|
|
38
37
|
}, M = async () => {
|
|
39
38
|
t.value = !0, N(() => {
|
|
40
39
|
g(), w() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
@@ -54,12 +53,12 @@ const F = ["id", "data-cy"], U = ["innerHTML"], Q = /* @__PURE__ */ T({
|
|
|
54
53
|
await i();
|
|
55
54
|
}
|
|
56
55
|
}, i = async () => {
|
|
57
|
-
t.value = !1,
|
|
56
|
+
t.value = !1, p(), 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 S(() => {
|
|
58
57
|
m.value?.classList.add("uikit-hidden"), r("closed");
|
|
59
58
|
}, 250);
|
|
60
59
|
};
|
|
61
60
|
return H(() => {
|
|
62
|
-
|
|
61
|
+
p(), document?.documentElement.classList.remove("uikit-no-scrolling"), w() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
63
62
|
}), I(
|
|
64
63
|
() => l.showModal,
|
|
65
64
|
async (e) => {
|
|
@@ -143,5 +142,5 @@ const F = ["id", "data-cy"], U = ["innerHTML"], Q = /* @__PURE__ */ T({
|
|
|
143
142
|
}
|
|
144
143
|
});
|
|
145
144
|
export {
|
|
146
|
-
|
|
145
|
+
J as default
|
|
147
146
|
};
|
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import "../../../../node_modules/.pnpm
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import "../../../../_virtual/polyline.js";
|
|
6
|
-
import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
7
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
8
|
-
const D = {
|
|
1
|
+
import { defineComponent as U, mergeModels as F, useModel as O, computed as k, createElementBlock as a, openBlock as r, createCommentVNode as s, createElementVNode as w, normalizeClass as N, createVNode as M, unref as L, toDisplayString as c, Fragment as b, createBlock as f, resolveDynamicComponent as h, mergeProps as d, withCtx as p, createTextVNode as g, renderList as j } from "vue";
|
|
2
|
+
import { ArrowIcon as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
|
+
const T = {
|
|
9
5
|
"aria-label": "Page navigation",
|
|
10
6
|
class: "uikit-overflow-auto"
|
|
11
|
-
},
|
|
7
|
+
}, V = {
|
|
12
8
|
key: 0,
|
|
13
9
|
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"
|
|
14
|
-
},
|
|
10
|
+
}, A = ["data-cy"], E = {
|
|
15
11
|
key: 0,
|
|
16
12
|
class: "uikit-mx-10px uikit-select-none"
|
|
17
|
-
},
|
|
13
|
+
}, Q = {
|
|
18
14
|
key: 1,
|
|
19
15
|
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"
|
|
20
|
-
},
|
|
16
|
+
}, z = ["onClick"], R = ["onClick"], q = {
|
|
21
17
|
key: 0,
|
|
22
18
|
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"
|
|
23
|
-
},
|
|
19
|
+
}, G = ["data-cy"], H = {
|
|
24
20
|
key: 0,
|
|
25
21
|
class: "uikit-mx-10px uikit-select-none"
|
|
26
|
-
},
|
|
22
|
+
}, X = /* @__PURE__ */ U({
|
|
27
23
|
__name: "BasePagination",
|
|
28
|
-
props: /* @__PURE__ */
|
|
24
|
+
props: /* @__PURE__ */ F({
|
|
29
25
|
count: { default: 0 },
|
|
30
26
|
limit: { default: 25 },
|
|
31
27
|
siblings: { default: 3 },
|
|
@@ -35,119 +31,184 @@ const D = {
|
|
|
35
31
|
prevLabel: { default: "" },
|
|
36
32
|
nextLabel: { default: "" },
|
|
37
33
|
prevDataCy: {},
|
|
38
|
-
nextDataCy: {}
|
|
34
|
+
nextDataCy: {},
|
|
35
|
+
linkProps: {},
|
|
36
|
+
linkTag: { default: "a" },
|
|
37
|
+
baseUrl: {},
|
|
38
|
+
pageQueryParameter: { default: "p" },
|
|
39
|
+
formatter: { type: Function }
|
|
39
40
|
}, {
|
|
40
41
|
pageNumber: { default: 1 },
|
|
41
42
|
pageNumberModifiers: {}
|
|
42
43
|
}),
|
|
43
44
|
emits: ["update:pageNumber"],
|
|
44
|
-
setup(
|
|
45
|
-
const u =
|
|
46
|
-
() => (u.value || 0) <
|
|
47
|
-
),
|
|
48
|
-
let
|
|
49
|
-
for (;
|
|
50
|
-
|
|
45
|
+
setup(n) {
|
|
46
|
+
const u = O(n, "pageNumber"), m = k(() => n.baseUrl ? n.linkTag : "span"), l = k(() => Math.ceil((n.count + n.additionalCount) / n.limit)), y = k(() => (u.value || 0) > n.siblings + 2), x = k(
|
|
47
|
+
() => (u.value || 0) < l.value - n.siblings - 1
|
|
48
|
+
), C = k(() => {
|
|
49
|
+
let i = u.value || 0, t = 0;
|
|
50
|
+
for (; i > 2 && t < n.siblings; )
|
|
51
|
+
i--, t++;
|
|
51
52
|
return t;
|
|
52
|
-
}),
|
|
53
|
-
let
|
|
54
|
-
for (;
|
|
55
|
-
|
|
53
|
+
}), P = k(() => {
|
|
54
|
+
let i = u.value || 0, t = 0;
|
|
55
|
+
for (; i < l.value - 1 && t < n.siblings; )
|
|
56
|
+
i++, t++;
|
|
56
57
|
return t;
|
|
57
|
-
}),
|
|
58
|
-
const
|
|
59
|
-
Math.abs(
|
|
60
|
-
new Number(!
|
|
61
|
-
new Number(u.value ===
|
|
62
|
-
let
|
|
58
|
+
}), D = k(() => {
|
|
59
|
+
const e = C.value + /* Filling with the remaining right siblings */
|
|
60
|
+
Math.abs(P.value - n.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
61
|
+
new Number(!x.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
62
|
+
new Number(u.value === l.value).valueOf();
|
|
63
|
+
let i = Math.max((u.value || 0) - e, 2);
|
|
63
64
|
const t = [];
|
|
64
|
-
for (
|
|
65
|
+
for (i; i < (u.value || 0); i++) t.push(i);
|
|
65
66
|
return t;
|
|
66
|
-
}),
|
|
67
|
-
const
|
|
68
|
-
Math.abs(
|
|
69
|
-
new Number(!
|
|
67
|
+
}), $ = k(() => {
|
|
68
|
+
const e = P.value + /* Filling with the remaining left siblings */
|
|
69
|
+
Math.abs(C.value - n.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
70
|
+
new Number(!y.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
70
71
|
new Number(u.value === 1).valueOf();
|
|
71
|
-
let
|
|
72
|
+
let i = Math.min(u.value || 0, l.value - 1);
|
|
72
73
|
const t = [];
|
|
73
|
-
for (
|
|
74
|
-
t.push(
|
|
74
|
+
for (i; i < Math.min((u.value || 0) + e, l.value - 1); i++)
|
|
75
|
+
t.push(i + 1);
|
|
75
76
|
return t;
|
|
76
|
-
}),
|
|
77
|
-
let
|
|
78
|
-
|
|
77
|
+
}), v = (e) => {
|
|
78
|
+
let i = e;
|
|
79
|
+
e < 1 ? i = 1 : e > l.value && (i = l.value), u.value = i;
|
|
80
|
+
}, o = (e = 1) => {
|
|
81
|
+
if (n.baseUrl)
|
|
82
|
+
try {
|
|
83
|
+
const i = new URL(n.baseUrl);
|
|
84
|
+
return e === 1 || i.searchParams.set(n.pageQueryParameter, `${e}`), i.toString();
|
|
85
|
+
} catch (i) {
|
|
86
|
+
console.error(i);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
79
89
|
};
|
|
80
|
-
return (
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
class:
|
|
90
|
+
return (e, i) => (r(), a("nav", T, [
|
|
91
|
+
e.count > 0 ? (r(), a("ul", V, [
|
|
92
|
+
w("li", {
|
|
93
|
+
class: N(["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", {
|
|
84
94
|
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": u.value !== 1,
|
|
85
|
-
"hover:uikit-text-white":
|
|
86
|
-
"uikit-rounded-xs":
|
|
95
|
+
"hover:uikit-text-white": e.small && u.value !== 1,
|
|
96
|
+
"uikit-rounded-xs": e.small && e.prevLabel
|
|
87
97
|
}]),
|
|
88
|
-
"data-cy":
|
|
89
|
-
onClick:
|
|
98
|
+
"data-cy": e.prevDataCy,
|
|
99
|
+
onClick: i[0] || (i[0] = (t) => v((u.value || 0) - 1))
|
|
90
100
|
}, [
|
|
91
|
-
|
|
101
|
+
M(L(S), {
|
|
92
102
|
width: 20,
|
|
93
103
|
height: 11,
|
|
94
|
-
"stroke-color": u.value === 1 ? "#8996A9" :
|
|
104
|
+
"stroke-color": u.value === 1 ? "#8996A9" : e.arrowColor,
|
|
95
105
|
class: "uikit-inline-block uikit-rotate-90"
|
|
96
106
|
}, null, 8, ["stroke-color"]),
|
|
97
|
-
|
|
98
|
-
], 10,
|
|
99
|
-
|
|
100
|
-
(u.value || 0) > 1 ? (r(),
|
|
107
|
+
e.small && e.prevLabel ? (r(), a("span", E, c(e.prevLabel), 1)) : s("", !0)
|
|
108
|
+
], 10, A),
|
|
109
|
+
e.small ? s("", !0) : (r(), a(b, { key: 0 }, [
|
|
110
|
+
(u.value || 0) > 1 ? (r(), a("li", {
|
|
101
111
|
key: 0,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
112
|
+
onClick: i[1] || (i[1] = (t) => v(0))
|
|
113
|
+
}, [
|
|
114
|
+
(r(), f(h(m.value), d({
|
|
115
|
+
href: o(1),
|
|
116
|
+
to: o(1),
|
|
117
|
+
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 uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
118
|
+
}, e.linkProps), {
|
|
119
|
+
default: p(() => i[4] || (i[4] = [
|
|
120
|
+
g(" 1 ")
|
|
121
|
+
])),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 16, ["href", "to"]))
|
|
124
|
+
])) : s("", !0),
|
|
125
|
+
y.value ? (r(), a("li", Q, " ... ")) : s("", !0),
|
|
126
|
+
(r(!0), a(b, null, j(D.value, (t) => (r(), a("li", {
|
|
107
127
|
key: t,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
128
|
+
onClick: (B) => v(t)
|
|
129
|
+
}, [
|
|
130
|
+
(r(), f(h(m.value), d({
|
|
131
|
+
href: o(t),
|
|
132
|
+
to: o(t),
|
|
133
|
+
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 uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
134
|
+
ref_for: !0
|
|
135
|
+
}, e.linkProps), {
|
|
136
|
+
default: p(() => [
|
|
137
|
+
g(c(e.formatter ? e.formatter(t) : t), 1)
|
|
138
|
+
]),
|
|
139
|
+
_: 2
|
|
140
|
+
}, 1040, ["href", "to"]))
|
|
141
|
+
], 8, z))), 128))
|
|
111
142
|
], 64)),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
143
|
+
w("li", null, [
|
|
144
|
+
(r(), f(h(m.value), d({
|
|
145
|
+
href: o(u.value),
|
|
146
|
+
to: o(u.value),
|
|
147
|
+
class: ["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 uikit-no-underline", {
|
|
148
|
+
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !e.small
|
|
149
|
+
}]
|
|
150
|
+
}, e.linkProps), {
|
|
151
|
+
default: p(() => [
|
|
152
|
+
g(c(e.formatter ? e.formatter(u.value) : u.value), 1)
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 16, ["href", "to", "class"]))
|
|
156
|
+
]),
|
|
157
|
+
e.small ? s("", !0) : (r(), a(b, { key: 1 }, [
|
|
158
|
+
(r(!0), a(b, null, j($.value, (t) => (r(), a("li", {
|
|
119
159
|
key: t,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
160
|
+
onClick: (B) => v(t)
|
|
161
|
+
}, [
|
|
162
|
+
(r(), f(h(m.value), d({
|
|
163
|
+
href: o(t),
|
|
164
|
+
to: o(t),
|
|
165
|
+
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 uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
166
|
+
ref_for: !0
|
|
167
|
+
}, e.linkProps), {
|
|
168
|
+
default: p(() => [
|
|
169
|
+
g(c(e.formatter ? e.formatter(t) : t), 1)
|
|
170
|
+
]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1040, ["href", "to"]))
|
|
173
|
+
], 8, R))), 128)),
|
|
174
|
+
x.value ? (r(), a("li", q, " ... ")) : s("", !0),
|
|
175
|
+
(u.value || 0) < l.value ? (r(), a("li", {
|
|
125
176
|
key: 1,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
177
|
+
onClick: i[2] || (i[2] = (t) => v(l.value))
|
|
178
|
+
}, [
|
|
179
|
+
(r(), f(h(m.value), d({
|
|
180
|
+
href: o(l.value),
|
|
181
|
+
to: o(l.value),
|
|
182
|
+
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 uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
183
|
+
}, e.linkProps), {
|
|
184
|
+
default: p(() => [
|
|
185
|
+
g(c(e.formatter ? e.formatter(l.value) : l.value), 1)
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 16, ["href", "to"]))
|
|
189
|
+
])) : s("", !0)
|
|
129
190
|
], 64)),
|
|
130
|
-
|
|
131
|
-
class:
|
|
132
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (u.value || 0) <
|
|
133
|
-
"hover:uikit-text-white":
|
|
134
|
-
"uikit-rounded-xs":
|
|
191
|
+
w("li", {
|
|
192
|
+
class: N(["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", {
|
|
193
|
+
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (u.value || 0) < l.value,
|
|
194
|
+
"hover:uikit-text-white": e.small && (u.value || 0) < l.value,
|
|
195
|
+
"uikit-rounded-xs": e.small && e.nextLabel
|
|
135
196
|
}]),
|
|
136
|
-
"data-cy":
|
|
137
|
-
onClick:
|
|
197
|
+
"data-cy": e.nextDataCy,
|
|
198
|
+
onClick: i[3] || (i[3] = (t) => v((u.value || 0) + 1))
|
|
138
199
|
}, [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"stroke-color": (u.value || 0) ===
|
|
200
|
+
e.small && e.nextLabel ? (r(), a("span", H, c(e.nextLabel), 1)) : s("", !0),
|
|
201
|
+
M(L(S), {
|
|
202
|
+
"stroke-color": (u.value || 0) === l.value ? "#8996A9" : e.arrowColor,
|
|
142
203
|
width: 20,
|
|
143
204
|
height: 11,
|
|
144
205
|
class: "uikit-inline-block -uikit-rotate-90"
|
|
145
206
|
}, null, 8, ["stroke-color"])
|
|
146
|
-
], 10,
|
|
147
|
-
])) :
|
|
207
|
+
], 10, G)
|
|
208
|
+
])) : s("", !0)
|
|
148
209
|
]));
|
|
149
210
|
}
|
|
150
211
|
});
|
|
151
212
|
export {
|
|
152
|
-
|
|
213
|
+
X as default
|
|
153
214
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, ref as u, onBeforeMount as f, createBlock as h, openBlock as i, Teleport as y, createElementVNode as e, withModifiers as l, normalizeClass as x, createElementBlock as a, createCommentVNode as s, createVNode as v, unref as _ } from "vue";
|
|
2
|
-
import { CloseIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { CloseIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const g = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, T = ["data-cy"], w = ["src", "alt"], L = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "snackbar-type-icon uikit-bg-contain uikit-bg-no-repeat"
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineComponent as y, ref as v, computed as h, watch as x, renderSlot as m, createElementVNode as D, normalizeClass as E, createElementBlock as $, createCommentVNode as B, openBlock as b, Fragment as A, renderList as I, createBlock as R, unref as K } from "vue";
|
|
2
|
-
import { isArrNullOrEmpty as V } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.
|
|
2
|
+
import { isArrNullOrEmpty as V } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js";
|
|
3
3
|
import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
4
|
-
import "
|
|
5
|
-
import { stringToHyphened as L } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js";
|
|
4
|
+
import { stringToHyphened as L } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js";
|
|
6
5
|
import "../../../../../_virtual/polyline.js";
|
|
7
6
|
import G from "../../../../../UIKit/Checkbox/CheckboxBtn.js";
|
|
8
|
-
const N = ["id", "data-cy"],
|
|
7
|
+
const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
|
|
9
8
|
inheritAttrs: !1,
|
|
10
9
|
__name: "CheckboxGroup",
|
|
11
10
|
props: {
|
|
@@ -111,5 +110,5 @@ const N = ["id", "data-cy"], H = /* @__PURE__ */ y({
|
|
|
111
110
|
}
|
|
112
111
|
});
|
|
113
112
|
export {
|
|
114
|
-
|
|
113
|
+
F as default
|
|
115
114
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineComponent as J, reactive as Q, ref as k, useId as U, computed as f, onMounted as X, watch as Y, nextTick as M, createElementBlock as l, openBlock as
|
|
1
|
+
import { defineComponent as J, reactive as Q, ref as k, useId as U, computed as f, onMounted as X, watch as Y, nextTick as M, createElementBlock as l, openBlock as u, normalizeClass as p, createElementVNode as v, createCommentVNode as y, renderSlot as E, Fragment as P, renderList as F, mergeProps as T, withModifiers as O } from "vue";
|
|
2
2
|
import { Swiper as B } from "swiper";
|
|
3
3
|
import x from "../../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js";
|
|
4
4
|
import '../../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css';import '../../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css';/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
7
|
-
import { shallowCopyObjectTo as _ } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.
|
|
8
|
-
import "date-fns";
|
|
7
|
+
import { shallowCopyObjectTo as _ } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
9
8
|
import "../../../../../_virtual/polyline.js";
|
|
10
|
-
const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "height", "onLoad"], ie = ["id"], ae = ["alt"],
|
|
9
|
+
const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "height", "onLoad"], ie = ["id"], ae = ["alt"], me = /* @__PURE__ */ J({
|
|
11
10
|
inheritAttrs: !1,
|
|
12
11
|
__name: "SwiperCarousel",
|
|
13
12
|
props: {
|
|
@@ -149,35 +148,35 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
|
|
|
149
148
|
r.swiper?.update();
|
|
150
149
|
});
|
|
151
150
|
}
|
|
152
|
-
), (e, i) => (
|
|
151
|
+
), (e, i) => (u(), l("div", {
|
|
153
152
|
id: `root-${d.value}`,
|
|
154
153
|
ref_key: "root",
|
|
155
154
|
ref: L,
|
|
156
|
-
class:
|
|
155
|
+
class: p(["swiper-carousel-root", e.$attrs["root-classes"]])
|
|
157
156
|
}, [
|
|
158
157
|
v("div", {
|
|
159
158
|
id: d.value,
|
|
160
159
|
"data-cy": e.$attrs["data-cy"],
|
|
161
|
-
class:
|
|
160
|
+
class: p(["swiper", e.$attrs["swiper-classes"]])
|
|
162
161
|
}, [
|
|
163
162
|
v("div", {
|
|
164
163
|
ref_key: "swiperWrapper",
|
|
165
164
|
ref: S,
|
|
166
|
-
class:
|
|
165
|
+
class: p(["swiper-wrapper", [
|
|
167
166
|
e.$attrs["swiper-wrapper-classes"],
|
|
168
167
|
q.value === "none" && "no-transition"
|
|
169
168
|
]]),
|
|
170
169
|
onClick: i[0] || (i[0] = (t) => $("click"))
|
|
171
170
|
}, [
|
|
172
171
|
E(e.$slots, "default", {}, () => [
|
|
173
|
-
(
|
|
172
|
+
(u(!0), l(P, null, F(e.images, (t, a) => (u(), l("div", {
|
|
174
173
|
key: `swiper_${d.value}_${a}`,
|
|
175
|
-
class:
|
|
174
|
+
class: p(["swiper-slide", e.$attrs["swiper-slide-classes"]])
|
|
176
175
|
}, [
|
|
177
176
|
v("div", {
|
|
178
|
-
class:
|
|
177
|
+
class: p(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
|
|
179
178
|
}, [
|
|
180
|
-
e.backgroundImage ? y("", !0) : (
|
|
179
|
+
e.backgroundImage ? y("", !0) : (u(), l("img", T({
|
|
181
180
|
key: 0,
|
|
182
181
|
ref_for: !0,
|
|
183
182
|
ref: (o) => {
|
|
@@ -197,13 +196,13 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
|
|
|
197
196
|
E(e.$slots, "last_slide", {}, void 0, !0)
|
|
198
197
|
], !0)
|
|
199
198
|
], 2),
|
|
200
|
-
I.value ? (
|
|
199
|
+
I.value ? (u(), l("div", {
|
|
201
200
|
key: 0,
|
|
202
|
-
class:
|
|
201
|
+
class: p([e.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
|
|
203
202
|
onClick: i[1] || (i[1] = O(() => {
|
|
204
203
|
}, ["stop"]))
|
|
205
204
|
}, null, 2)) : y("", !0),
|
|
206
|
-
C.value ? (
|
|
205
|
+
C.value ? (u(), l(P, { key: 1 }, [
|
|
207
206
|
v("div", {
|
|
208
207
|
class: "swiper-button-prev",
|
|
209
208
|
"data-cy": "swiper-button-prev",
|
|
@@ -218,18 +217,18 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
|
|
|
218
217
|
})
|
|
219
218
|
], 64)) : y("", !0)
|
|
220
219
|
], 10, te),
|
|
221
|
-
e.thumbSwiperOptions ? (
|
|
220
|
+
e.thumbSwiperOptions ? (u(), l("div", {
|
|
222
221
|
key: 0,
|
|
223
222
|
id: `thumb_${d.value}`,
|
|
224
223
|
thumbsSlider: "",
|
|
225
|
-
class:
|
|
224
|
+
class: p(["swiper", e.$attrs["thumb-swiper-classes"]])
|
|
226
225
|
}, [
|
|
227
226
|
v("div", {
|
|
228
|
-
class:
|
|
227
|
+
class: p(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
|
|
229
228
|
}, [
|
|
230
|
-
(
|
|
229
|
+
(u(!0), l(P, null, F(e.images, (t, a) => (u(), l("div", {
|
|
231
230
|
key: `thumb_${d.value}_${a}`,
|
|
232
|
-
class:
|
|
231
|
+
class: p(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
|
|
233
232
|
}, [
|
|
234
233
|
v("img", T({
|
|
235
234
|
class: e.$attrs["thumb-img-classes"],
|
|
@@ -244,5 +243,5 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
|
|
|
244
243
|
}
|
|
245
244
|
});
|
|
246
245
|
export {
|
|
247
|
-
|
|
246
|
+
me as default
|
|
248
247
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -46,34 +46,38 @@
|
|
|
46
46
|
"chartjs-adapter-date-fns": "^3.0.0",
|
|
47
47
|
"date-fns": "^4.1.0",
|
|
48
48
|
"swiper": "^11.2.6",
|
|
49
|
-
"vue
|
|
49
|
+
"vue": "^3.5.13",
|
|
50
|
+
"vue-chartjs": "^5.3.2",
|
|
51
|
+
"vue-router": "^4.5.0"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
54
|
"@babel/eslint-parser": "^7.27.0",
|
|
53
55
|
"@histoire/plugin-vue": "^1.0.0-alpha.2",
|
|
54
56
|
"@types/node": "^22.14.1",
|
|
57
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
55
58
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
56
59
|
"@vue/eslint-config-typescript": "^14.5.0",
|
|
57
|
-
"@wikicasa-dev/svg-icons": "1.2.
|
|
58
|
-
"@wikicasa-dev/tailwind-plugins": "0.0.
|
|
59
|
-
"@wikicasa-dev/types": "2.1.
|
|
60
|
-
"@wikicasa-dev/utilities": "1.1.
|
|
61
|
-
"@wikicasa-dev/vue-composables": "0.0.
|
|
60
|
+
"@wikicasa-dev/svg-icons": "1.2.11",
|
|
61
|
+
"@wikicasa-dev/tailwind-plugins": "^0.0.3",
|
|
62
|
+
"@wikicasa-dev/types": "2.1.2",
|
|
63
|
+
"@wikicasa-dev/utilities": "1.1.21",
|
|
64
|
+
"@wikicasa-dev/vue-composables": "0.0.23",
|
|
62
65
|
"ajv": "^8.17.1",
|
|
63
66
|
"autoprefixer": "^10.4.21",
|
|
64
67
|
"eslint": "^9.25",
|
|
65
68
|
"eslint-plugin-vue": "^10.0.0",
|
|
69
|
+
"glob": "^11.0.1",
|
|
66
70
|
"histoire": "^1.0.0-alpha.2",
|
|
67
71
|
"postcss": "^8.5.3",
|
|
68
72
|
"prettier": "^3.5.3",
|
|
69
73
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
70
74
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
71
75
|
"tailwindcss": "^3.4.15",
|
|
76
|
+
"typescript": "^5.8.3",
|
|
77
|
+
"vite": "^6.3.2",
|
|
78
|
+
"vite-plugin-dts": "^4.5.3",
|
|
72
79
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
73
|
-
"vue": "^
|
|
74
|
-
},
|
|
75
|
-
"peerDependencies": {
|
|
76
|
-
"vue": "^3.5.13"
|
|
80
|
+
"vue-tsc": "^2.2.8"
|
|
77
81
|
},
|
|
78
82
|
"readme": "ERROR: No README data found!",
|
|
79
83
|
"scripts": {
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
function a(t, i = !1) {
|
|
2
|
-
return t == null ? "" : n(i ? Math.round(t) : Math.floor(t), 0);
|
|
3
|
-
}
|
|
4
|
-
function n(t, i) {
|
|
5
|
-
return !t && t !== 0 ? "" : t.toLocaleString(
|
|
6
|
-
"it-IT",
|
|
7
|
-
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
8
|
-
{
|
|
9
|
-
minimumFractionDigits: i,
|
|
10
|
-
maximumFractionDigits: i,
|
|
11
|
-
useGrouping: "always"
|
|
12
|
-
}
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
a as formatInteger,
|
|
17
|
-
n as formatNumber
|
|
18
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|