@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.
Files changed (27) hide show
  1. package/dist/UIKit/BasePagination.d.ts +7 -1
  2. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +4 -4
  3. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +9 -10
  4. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  5. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
  6. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +4 -5
  7. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +2 -2
  8. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +3 -3
  9. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +12 -13
  10. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +155 -94
  11. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
  12. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +4 -5
  13. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +20 -21
  14. package/package.json +15 -11
  15. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
  16. /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
  17. /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
  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/DefaultValues-CpabIgVz.js +0 -0
  19. /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
  20. /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
  21. /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
  22. /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
  23. /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
  24. /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
  25. /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
  26. /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
  27. /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.24-alpha.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.12-alpha.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.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
5
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
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 s, ref as u, provide as i, renderSlot as d } from "vue";
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.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
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 y = /* @__PURE__ */ s({
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
- ), c = (e, t) => {
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
- }, p = (e, t) => {
18
+ }, s = (e, t) => {
20
19
  t && (t[e].active = !(t[e].active ?? !1));
21
20
  }, r = (e, t) => {
22
- c(e.id, t ?? o.value), n.value = e, p(e.id, t ?? o.value);
21
+ i(e.id, t ?? o.value), n.value = e, s(e.id, t ?? o.value);
23
22
  };
24
- return i("handleClick", (e) => {
23
+ return c("handleClick", (e) => {
25
24
  l.autoUpdate && r(e);
26
- }), i("accordionItems", o), (e, t) => d(e.$slots, "default", {
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
- y as default
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.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
- import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
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.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
5
- import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
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 "date-fns";
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.24-alpha.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
10
- const R = ["innerHTML"], ae = /* @__PURE__ */ L({
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
- ae as default
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.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
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.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
4
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.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.24-alpha.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
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 "date-fns";
4
- import { isWindows as w } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js";
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.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
8
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
9
- const F = ["id", "data-cy"], U = ["innerHTML"], Q = /* @__PURE__ */ T({
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), p = ({ key: e }) => {
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", p);
36
- }, f = () => {
37
- document?.body.removeEventListener("keydown", p);
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, f(), 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(() => {
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
- f(), 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");
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
- Q as default
145
+ J as default
147
146
  };
@@ -1,31 +1,27 @@
1
- import { defineComponent as j, mergeModels as P, useModel as S, computed as s, createElementBlock as l, 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 "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
3
- import "date-fns";
4
- import { formatInteger as d } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js";
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
- }, B = ["data-cy"], O = {
10
+ }, A = ["data-cy"], E = {
15
11
  key: 0,
16
12
  class: "uikit-mx-10px uikit-select-none"
17
- }, A = {
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
- }, F = ["onClick"], V = ["onClick"], E = {
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
- }, z = ["data-cy"], q = {
19
+ }, G = ["data-cy"], H = {
24
20
  key: 0,
25
21
  class: "uikit-mx-10px uikit-select-none"
26
- }, U = /* @__PURE__ */ j({
22
+ }, X = /* @__PURE__ */ U({
27
23
  __name: "BasePagination",
28
- props: /* @__PURE__ */ P({
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(a) {
45
- const u = S(a, "pageNumber"), n = s(() => Math.ceil((a.count + a.additionalCount) / a.limit)), g = s(() => (u.value || 0) > a.siblings + 2), f = s(
46
- () => (u.value || 0) < n.value - a.siblings - 1
47
- ), b = s(() => {
48
- let e = u.value || 0, t = 0;
49
- for (; e > 2 && t < a.siblings; )
50
- e--, t++;
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
- }), w = s(() => {
53
- let e = u.value || 0, t = 0;
54
- for (; e < n.value - 1 && t < a.siblings; )
55
- e++, t++;
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
- }), N = s(() => {
58
- const i = b.value + /* Filling with the remaining right siblings */
59
- Math.abs(w.value - a.siblings) + /* If there is no suspension points on the right, let's fill it */
60
- new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
61
- new Number(u.value === n.value).valueOf();
62
- let e = Math.max((u.value || 0) - i, 2);
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 (e; e < (u.value || 0); e++) t.push(e);
65
+ for (i; i < (u.value || 0); i++) t.push(i);
65
66
  return t;
66
- }), M = s(() => {
67
- const i = w.value + /* Filling with the remaining left siblings */
68
- Math.abs(b.value - a.siblings) + /* If there is no suspension points on the left, let's fill it */
69
- new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
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 e = Math.min(u.value || 0, n.value - 1);
72
+ let i = Math.min(u.value || 0, l.value - 1);
72
73
  const t = [];
73
- for (e; e < Math.min((u.value || 0) + i, n.value - 1); e++)
74
- t.push(e + 1);
74
+ for (i; i < Math.min((u.value || 0) + e, l.value - 1); i++)
75
+ t.push(i + 1);
75
76
  return t;
76
- }), k = (i) => {
77
- let e = i;
78
- i < 1 ? e = 1 : i > n.value && (e = n.value), u.value = e;
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 (i, e) => (r(), l("nav", D, [
81
- i.count > 0 ? (r(), l("ul", $, [
82
- p("li", {
83
- 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", {
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": i.small && u.value !== 1,
86
- "uikit-rounded-xs": i.small && i.prevLabel
95
+ "hover:uikit-text-white": e.small && u.value !== 1,
96
+ "uikit-rounded-xs": e.small && e.prevLabel
87
97
  }]),
88
- "data-cy": i.prevDataCy,
89
- onClick: e[0] || (e[0] = (t) => k((u.value || 0) - 1))
98
+ "data-cy": e.prevDataCy,
99
+ onClick: i[0] || (i[0] = (t) => v((u.value || 0) - 1))
90
100
  }, [
91
- y(v(C), {
101
+ M(L(S), {
92
102
  width: 20,
93
103
  height: 11,
94
- "stroke-color": u.value === 1 ? "#8996A9" : i.arrowColor,
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
- i.small && i.prevLabel ? (r(), l("span", O, c(i.prevLabel), 1)) : o("", !0)
98
- ], 10, B),
99
- i.small ? o("", !0) : (r(), l(m, { key: 0 }, [
100
- (u.value || 0) > 1 ? (r(), l("li", {
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
- 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",
103
- onClick: e[1] || (e[1] = (t) => k(0))
104
- }, " 1 ")) : o("", !0),
105
- g.value ? (r(), l("li", A, " ... ")) : o("", !0),
106
- (r(!0), l(m, null, x(N.value, (t) => (r(), l("li", {
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
- 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",
109
- onClick: (L) => k(t)
110
- }, c(v(d)(t)), 9, F))), 128))
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
- p("li", {
113
- 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", {
114
- "uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
115
- }])
116
- }, c(u.value || 0), 3),
117
- i.small ? o("", !0) : (r(), l(m, { key: 1 }, [
118
- (r(!0), l(m, null, x(M.value, (t) => (r(), l("li", {
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
- 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",
121
- onClick: (L) => k(t)
122
- }, c(v(d)(t)), 9, V))), 128)),
123
- f.value ? (r(), l("li", E, " ... ")) : o("", !0),
124
- (u.value || 0) < n.value ? (r(), l("li", {
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
- 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",
127
- onClick: e[2] || (e[2] = (t) => k(n.value))
128
- }, c(v(d)(n.value)), 1)) : o("", !0)
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
- p("li", {
131
- 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", {
132
- "uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (u.value || 0) < n.value,
133
- "hover:uikit-text-white": i.small && (u.value || 0) < n.value,
134
- "uikit-rounded-xs": i.small && i.nextLabel
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": i.nextDataCy,
137
- onClick: e[3] || (e[3] = (t) => k((u.value || 0) + 1))
197
+ "data-cy": e.nextDataCy,
198
+ onClick: i[3] || (i[3] = (t) => v((u.value || 0) + 1))
138
199
  }, [
139
- i.small && i.nextLabel ? (r(), l("span", q, c(i.nextLabel), 1)) : o("", !0),
140
- y(v(C), {
141
- "stroke-color": (u.value || 0) === n.value ? "#8996A9" : i.arrowColor,
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, z)
147
- ])) : o("", !0)
207
+ ], 10, G)
208
+ ])) : s("", !0)
148
209
  ]));
149
210
  }
150
211
  });
151
212
  export {
152
- U as default
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.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
3
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
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.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js";
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 "date-fns";
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"], H = /* @__PURE__ */ y({
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
- H as default
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 p, normalizeClass as u, createElementVNode as v, createCommentVNode as y, renderSlot as E, Fragment as P, renderList as F, mergeProps as T, withModifiers as O } from "vue";
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.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
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"], we = /* @__PURE__ */ J({
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) => (p(), l("div", {
151
+ ), (e, i) => (u(), l("div", {
153
152
  id: `root-${d.value}`,
154
153
  ref_key: "root",
155
154
  ref: L,
156
- class: u(["swiper-carousel-root", e.$attrs["root-classes"]])
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: u(["swiper", e.$attrs["swiper-classes"]])
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: u(["swiper-wrapper", [
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
- (p(!0), l(P, null, F(e.images, (t, a) => (p(), l("div", {
172
+ (u(!0), l(P, null, F(e.images, (t, a) => (u(), l("div", {
174
173
  key: `swiper_${d.value}_${a}`,
175
- class: u(["swiper-slide", e.$attrs["swiper-slide-classes"]])
174
+ class: p(["swiper-slide", e.$attrs["swiper-slide-classes"]])
176
175
  }, [
177
176
  v("div", {
178
- class: u(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
177
+ class: p(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
179
178
  }, [
180
- e.backgroundImage ? y("", !0) : (p(), l("img", T({
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 ? (p(), l("div", {
199
+ I.value ? (u(), l("div", {
201
200
  key: 0,
202
- class: u([e.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
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 ? (p(), l(P, { key: 1 }, [
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 ? (p(), l("div", {
220
+ e.thumbSwiperOptions ? (u(), l("div", {
222
221
  key: 0,
223
222
  id: `thumb_${d.value}`,
224
223
  thumbsSlider: "",
225
- class: u(["swiper", e.$attrs["thumb-swiper-classes"]])
224
+ class: p(["swiper", e.$attrs["thumb-swiper-classes"]])
226
225
  }, [
227
226
  v("div", {
228
- class: u(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
227
+ class: p(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
229
228
  }, [
230
- (p(!0), l(P, null, F(e.images, (t, a) => (p(), l("div", {
229
+ (u(!0), l(P, null, F(e.images, (t, a) => (u(), l("div", {
231
230
  key: `thumb_${d.value}_${a}`,
232
- class: u(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
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
- we as default
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.5-alpha.4",
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-chartjs": "^5.3.2"
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.12-alpha.4",
58
- "@wikicasa-dev/tailwind-plugins": "0.0.4-alpha.2",
59
- "@wikicasa-dev/types": "2.1.8-alpha.2",
60
- "@wikicasa-dev/utilities": "1.1.22-alpha.2",
61
- "@wikicasa-dev/vue-composables": "0.0.24-alpha.4",
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": "^3.5.13"
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
- };