@wikicasa-dev/components 2.1.5 → 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 (46) hide show
  1. package/dist/UIKit/BasePagination.d.ts +1 -0
  2. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.js +1 -1
  3. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.js +1 -1
  4. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.js +9 -9
  5. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.js +17 -17
  6. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.js +1 -1
  7. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.js +13 -13
  8. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/utils.js +26 -32
  9. package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
  10. package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
  11. package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
  12. package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
  13. package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
  14. package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
  15. package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
  16. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +3 -3
  17. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  18. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
  19. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +2 -2
  20. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +2 -2
  21. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +2 -2
  22. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +75 -73
  23. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +45 -45
  24. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
  25. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +9 -9
  26. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +6 -5
  27. package/package.json +1 -1
  28. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.css +0 -0
  29. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.css +0 -0
  30. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.css +0 -0
  31. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.css +0 -0
  32. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/swiper.css +0 -0
  33. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
  34. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
  35. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  36. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
  37. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
  38. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.css.js +0 -0
  39. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.js +0 -0
  40. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.css.js +0 -0
  41. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.css.js +0 -0
  42. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.js +0 -0
  43. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.css.js +0 -0
  44. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/classes-to-selector.js +0 -0
  45. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
  46. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
@@ -1,27 +1,27 @@
1
- import { defineComponent as B, mergeModels as U, useModel as F, computed as k, createElementBlock as a, openBlock as r, createCommentVNode as s, createElementVNode as b, normalizeClass as w, createVNode as M, unref as P, toDisplayString as c, Fragment as g, createBlock as h, resolveDynamicComponent as f, withCtx as d, createTextVNode as p, renderList as L } from "vue";
2
- import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
- const O = {
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 = {
5
5
  "aria-label": "Page navigation",
6
6
  class: "uikit-overflow-auto"
7
- }, T = {
7
+ }, V = {
8
8
  key: 0,
9
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"
10
- }, V = ["data-cy"], A = {
10
+ }, A = ["data-cy"], E = {
11
11
  key: 0,
12
12
  class: "uikit-mx-10px uikit-select-none"
13
- }, E = {
13
+ }, Q = {
14
14
  key: 1,
15
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"
16
- }, Q = ["onClick"], z = ["onClick"], R = {
16
+ }, z = ["onClick"], R = ["onClick"], q = {
17
17
  key: 0,
18
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"
19
- }, q = ["data-cy"], G = {
19
+ }, G = ["data-cy"], H = {
20
20
  key: 0,
21
21
  class: "uikit-mx-10px uikit-select-none"
22
- }, W = /* @__PURE__ */ B({
22
+ }, X = /* @__PURE__ */ U({
23
23
  __name: "BasePagination",
24
- props: /* @__PURE__ */ U({
24
+ props: /* @__PURE__ */ F({
25
25
  count: { default: 0 },
26
26
  limit: { default: 25 },
27
27
  siblings: { default: 3 },
@@ -32,7 +32,8 @@ const O = {
32
32
  nextLabel: { default: "" },
33
33
  prevDataCy: {},
34
34
  nextDataCy: {},
35
- linkTag: { type: [Object, Function, String], default: "a" },
35
+ linkProps: {},
36
+ linkTag: { default: "a" },
36
37
  baseUrl: {},
37
38
  pageQueryParameter: { default: "p" },
38
39
  formatter: { type: Function }
@@ -42,29 +43,29 @@ const O = {
42
43
  }),
43
44
  emits: ["update:pageNumber"],
44
45
  setup(n) {
45
- const u = F(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(
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(
46
47
  () => (u.value || 0) < l.value - n.siblings - 1
47
48
  ), C = k(() => {
48
49
  let i = u.value || 0, t = 0;
49
50
  for (; i > 2 && t < n.siblings; )
50
51
  i--, t++;
51
52
  return t;
52
- }), N = k(() => {
53
+ }), P = k(() => {
53
54
  let i = u.value || 0, t = 0;
54
55
  for (; i < l.value - 1 && t < n.siblings; )
55
56
  i++, t++;
56
57
  return t;
57
- }), S = k(() => {
58
+ }), D = k(() => {
58
59
  const e = C.value + /* Filling with the remaining right siblings */
59
- Math.abs(N.value - n.siblings) + /* If there is no suspension points on the right, let's fill it */
60
+ Math.abs(P.value - n.siblings) + /* If there is no suspension points on the right, let's fill it */
60
61
  new Number(!x.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
61
62
  new Number(u.value === l.value).valueOf();
62
63
  let i = Math.max((u.value || 0) - e, 2);
63
64
  const t = [];
64
65
  for (i; i < (u.value || 0); i++) t.push(i);
65
66
  return t;
66
- }), D = k(() => {
67
- const e = N.value + /* Filling with the remaining left siblings */
67
+ }), $ = k(() => {
68
+ const e = P.value + /* Filling with the remaining left siblings */
68
69
  Math.abs(C.value - n.siblings) + /* If there is no suspension points on the left, let's fill it */
69
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();
@@ -86,10 +87,10 @@ const O = {
86
87
  return;
87
88
  }
88
89
  };
89
- return (e, i) => (r(), a("nav", O, [
90
- e.count > 0 ? (r(), a("ul", T, [
91
- b("li", {
92
- class: w(["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", {
93
94
  "uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": u.value !== 1,
94
95
  "hover:uikit-text-white": e.small && u.value !== 1,
95
96
  "uikit-rounded-xs": e.small && e.prevLabel
@@ -97,97 +98,98 @@ const O = {
97
98
  "data-cy": e.prevDataCy,
98
99
  onClick: i[0] || (i[0] = (t) => v((u.value || 0) - 1))
99
100
  }, [
100
- M(P(j), {
101
+ M(L(S), {
101
102
  width: 20,
102
103
  height: 11,
103
104
  "stroke-color": u.value === 1 ? "#8996A9" : e.arrowColor,
104
105
  class: "uikit-inline-block uikit-rotate-90"
105
106
  }, null, 8, ["stroke-color"]),
106
- e.small && e.prevLabel ? (r(), a("span", A, c(e.prevLabel), 1)) : s("", !0)
107
- ], 10, V),
108
- e.small ? s("", !0) : (r(), a(g, { key: 0 }, [
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 }, [
109
110
  (u.value || 0) > 1 ? (r(), a("li", {
110
111
  key: 0,
111
112
  onClick: i[1] || (i[1] = (t) => v(0))
112
113
  }, [
113
- (r(), h(f(m.value), {
114
+ (r(), f(h(m.value), d({
114
115
  href: o(1),
115
116
  to: o(1),
116
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"
117
- }, {
118
- default: d(() => i[4] || (i[4] = [
119
- p(" 1 ")
118
+ }, e.linkProps), {
119
+ default: p(() => i[4] || (i[4] = [
120
+ g(" 1 ")
120
121
  ])),
121
- _: 1,
122
- __: [4]
123
- }, 8, ["href", "to"]))
122
+ _: 1
123
+ }, 16, ["href", "to"]))
124
124
  ])) : s("", !0),
125
- y.value ? (r(), a("li", E, " ... ")) : s("", !0),
126
- (r(!0), a(g, null, L(S.value, (t) => (r(), a("li", {
125
+ y.value ? (r(), a("li", Q, " ... ")) : s("", !0),
126
+ (r(!0), a(b, null, j(D.value, (t) => (r(), a("li", {
127
127
  key: t,
128
- onClick: ($) => v(t)
128
+ onClick: (B) => v(t)
129
129
  }, [
130
- (r(), h(f(m.value), {
130
+ (r(), f(h(m.value), d({
131
131
  href: o(t),
132
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
- }, {
135
- default: d(() => [
136
- p(c(e.formatter ? e.formatter(t) : t), 1)
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)
137
138
  ]),
138
139
  _: 2
139
- }, 1032, ["href", "to"]))
140
- ], 8, Q))), 128))
140
+ }, 1040, ["href", "to"]))
141
+ ], 8, z))), 128))
141
142
  ], 64)),
142
- b("li", null, [
143
- (r(), h(f(m.value), {
143
+ w("li", null, [
144
+ (r(), f(h(m.value), d({
144
145
  href: o(u.value),
145
146
  to: o(u.value),
146
- class: w(["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", {
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", {
147
148
  "uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !e.small
148
- }])
149
- }, {
150
- default: d(() => [
151
- p(c(e.formatter ? e.formatter(u.value) : u.value), 1)
149
+ }]
150
+ }, e.linkProps), {
151
+ default: p(() => [
152
+ g(c(e.formatter ? e.formatter(u.value) : u.value), 1)
152
153
  ]),
153
154
  _: 1
154
- }, 8, ["href", "to", "class"]))
155
+ }, 16, ["href", "to", "class"]))
155
156
  ]),
156
- e.small ? s("", !0) : (r(), a(g, { key: 1 }, [
157
- (r(!0), a(g, null, L(D.value, (t) => (r(), a("li", {
157
+ e.small ? s("", !0) : (r(), a(b, { key: 1 }, [
158
+ (r(!0), a(b, null, j($.value, (t) => (r(), a("li", {
158
159
  key: t,
159
- onClick: ($) => v(t)
160
+ onClick: (B) => v(t)
160
161
  }, [
161
- (r(), h(f(m.value), {
162
+ (r(), f(h(m.value), d({
162
163
  href: o(t),
163
164
  to: o(t),
164
- 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"
165
- }, {
166
- default: d(() => [
167
- p(c(e.formatter ? e.formatter(t) : t), 1)
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)
168
170
  ]),
169
171
  _: 2
170
- }, 1032, ["href", "to"]))
171
- ], 8, z))), 128)),
172
- x.value ? (r(), a("li", R, " ... ")) : s("", !0),
172
+ }, 1040, ["href", "to"]))
173
+ ], 8, R))), 128)),
174
+ x.value ? (r(), a("li", q, " ... ")) : s("", !0),
173
175
  (u.value || 0) < l.value ? (r(), a("li", {
174
176
  key: 1,
175
177
  onClick: i[2] || (i[2] = (t) => v(l.value))
176
178
  }, [
177
- (r(), h(f(m.value), {
179
+ (r(), f(h(m.value), d({
178
180
  href: o(l.value),
179
181
  to: o(l.value),
180
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"
181
- }, {
182
- default: d(() => [
183
- p(c(e.formatter ? e.formatter(l.value) : l.value), 1)
183
+ }, e.linkProps), {
184
+ default: p(() => [
185
+ g(c(e.formatter ? e.formatter(l.value) : l.value), 1)
184
186
  ]),
185
187
  _: 1
186
- }, 8, ["href", "to"]))
188
+ }, 16, ["href", "to"]))
187
189
  ])) : s("", !0)
188
190
  ], 64)),
189
- b("li", {
190
- class: w(["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", {
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", {
191
193
  "uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (u.value || 0) < l.value,
192
194
  "hover:uikit-text-white": e.small && (u.value || 0) < l.value,
193
195
  "uikit-rounded-xs": e.small && e.nextLabel
@@ -195,18 +197,18 @@ const O = {
195
197
  "data-cy": e.nextDataCy,
196
198
  onClick: i[3] || (i[3] = (t) => v((u.value || 0) + 1))
197
199
  }, [
198
- e.small && e.nextLabel ? (r(), a("span", G, c(e.nextLabel), 1)) : s("", !0),
199
- M(P(j), {
200
+ e.small && e.nextLabel ? (r(), a("span", H, c(e.nextLabel), 1)) : s("", !0),
201
+ M(L(S), {
200
202
  "stroke-color": (u.value || 0) === l.value ? "#8996A9" : e.arrowColor,
201
203
  width: 20,
202
204
  height: 11,
203
205
  class: "uikit-inline-block -uikit-rotate-90"
204
206
  }, null, 8, ["stroke-color"])
205
- ], 10, q)
207
+ ], 10, G)
206
208
  ])) : s("", !0)
207
209
  ]));
208
210
  }
209
211
  });
210
212
  export {
211
- W as default
213
+ X as default
212
214
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as R, mergeModels as _, useModel as w, ref as p, useTemplateRef as D, useAttrs as j, onMounted as q, createElementBlock as G, openBlock as H, createElementVNode as x, withModifiers as T, createVNode as k } from "vue";
2
- import C from "../../../../UIKit/BaseInput.js";
3
- const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["value", "min", "max", "step"], Q = ["value", "min", "max", "step"], W = { class: "form_control row" }, X = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, Y = { class: "col-sm-6 col-xl-4" }, ae = /* @__PURE__ */ R({
1
+ import { defineComponent as _, mergeModels as j, useModel as D, ref as p, useTemplateRef as T, useAttrs as q, onMounted as G, createElementBlock as H, openBlock as J, createElementVNode as x, withModifiers as k, unref as h, createVNode as C } from "vue";
2
+ import E from "../../../../UIKit/BaseInput.js";
3
+ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["value", "min", "max", "step"], W = ["value", "min", "max", "step"], X = { class: "form_control row" }, Y = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, Z = { class: "col-sm-6 col-xl-4" }, te = /* @__PURE__ */ _({
4
4
  __name: "BaseSlider",
5
- props: /* @__PURE__ */ _({
5
+ props: /* @__PURE__ */ j({
6
6
  type: { default: "linear" },
7
7
  min: { default: 0 },
8
8
  max: { default: 100 }
@@ -14,11 +14,11 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
14
14
  }),
15
15
  emits: ["update:minValue", "update:maxValue"],
16
16
  setup(m) {
17
- function B(e, l) {
17
+ function M(e, l) {
18
18
  const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
19
19
  return [a, t];
20
20
  }
21
- const E = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, L = (e) => Math.exp(
21
+ const L = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, z = (e) => Math.exp(
22
22
  (e.position - e.minPos) * e.scale + e.minlval
23
23
  );
24
24
  function V(e, l, a, t, v) {
@@ -32,39 +32,39 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
32
32
  ${a} ${$ / s * 100}%,
33
33
  ${a} 100%)`;
34
34
  }
35
- function h(e, l) {
35
+ function y(e, l) {
36
36
  e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
37
37
  }
38
- const r = w(m, "minValue"), o = w(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), M = p(0), y = p(0), g = D("fromSlider"), i = D("toSlider"), P = (e, l) => {
38
+ const r = D(m, "minValue"), o = D(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), P = p(0), B = p(0), g = T("fromSlider"), i = T("toSlider"), S = (e, l) => {
39
39
  if (!g.value || !i.value) return;
40
40
  l || (l = "0");
41
41
  const a = parseInt(l, 10);
42
42
  if (e == "min-input") {
43
43
  if (a >= o.value) return;
44
- r.value = a, z(i.value, a, o.value);
44
+ r.value = a, A(i.value, a, o.value);
45
45
  return;
46
46
  }
47
- a < r.value || (o.value = a, A(i.value, i.value, r.value, a));
47
+ a < r.value || (o.value = a, N(i.value, i.value, r.value, a));
48
48
  }, I = (e) => {
49
49
  if (m.type === "logarithmic")
50
50
  return e = e || 1, parseInt(
51
- E({
51
+ L({
52
52
  value: e,
53
53
  minPos: n.value,
54
54
  minlval: F.value,
55
- scale: y.value
55
+ scale: B.value
56
56
  }).toFixed(0),
57
57
  10
58
58
  );
59
59
  if (m.type === "linear")
60
60
  return e;
61
61
  throw new Error("The slider type has not been implemented");
62
- }, S = (e) => {
62
+ }, b = (e) => {
63
63
  if (m.type === "logarithmic")
64
64
  return e = e || 1, parseInt(
65
- L({
65
+ z({
66
66
  position: e,
67
- scale: y.value,
67
+ scale: B.value,
68
68
  minlval: F.value,
69
69
  minPos: n.value
70
70
  }).toFixed(0),
@@ -73,7 +73,7 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
73
73
  if (m.type === "linear")
74
74
  return e;
75
75
  throw new Error("The slider type has not been implemented");
76
- }, z = (e, l, a) => {
76
+ }, A = (e, l, a) => {
77
77
  const t = I(l), v = I(a);
78
78
  V(
79
79
  t,
@@ -88,7 +88,7 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
88
88
  );
89
89
  const s = t, f = o.value;
90
90
  s > f ? c.value = f : c.value = s;
91
- }, A = (e, l, a, t) => {
91
+ }, N = (e, l, a, t) => {
92
92
  const v = I(a), s = I(t);
93
93
  V(
94
94
  v,
@@ -102,10 +102,10 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
102
102
  l
103
103
  );
104
104
  const f = r.value, $ = s;
105
- h(o.value, e), f <= $ ? d.value = $ : d.value = f;
106
- }, N = (e, l) => {
105
+ y(o.value, e), f <= $ ? d.value = $ : d.value = f;
106
+ }, U = (e, l) => {
107
107
  if (!l.value) return;
108
- const [a, t] = B(e, l), v = S(a);
108
+ const [a, t] = M(e, l), v = b(a);
109
109
  V(
110
110
  a,
111
111
  {
@@ -117,9 +117,9 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
117
117
  "#2B5DFF",
118
118
  l
119
119
  ), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
120
- }, U = (e, l) => {
120
+ }, R = (e, l) => {
121
121
  if (!l.value) return;
122
- const [a, t] = B(e, l), v = S(t);
122
+ const [a, t] = M(e, l), v = b(t);
123
123
  V(
124
124
  c.value,
125
125
  {
@@ -130,11 +130,11 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
130
130
  "#B4C2F0",
131
131
  "#2B5DFF",
132
132
  l
133
- ), h(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
134
- }, b = j();
133
+ ), y(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
134
+ }, w = q();
135
135
  return (() => {
136
- n.value = parseInt(`${m.min || 0}`, 10), u.value = parseInt(`${m.max || 100}`, 10), c.value = n.value, d.value = u.value, r.value = parseInt(`${b.minValue || n.value}`, 10), o.value = parseInt(`${b.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), M.value = Math.log(o.value), y.value = (M.value - F.value) / (u.value - n.value);
137
- })(), q(() => {
136
+ n.value = parseInt(`${m.min || 0}`, 10), u.value = parseInt(`${m.max || 100}`, 10), c.value = n.value, d.value = u.value, r.value = parseInt(`${w.minValue || n.value}`, 10), o.value = parseInt(`${w.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), P.value = Math.log(o.value), B.value = (P.value - F.value) / (u.value - n.value);
137
+ })(), G(() => {
138
138
  !g.value || !i.value || (V(
139
139
  c.value,
140
140
  {
@@ -145,9 +145,9 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
145
145
  "#B4C2F0",
146
146
  "#2B5DFF",
147
147
  i.value
148
- ), h(d.value, i.value));
149
- }), (e, l) => (H(), G("div", J, [
150
- x("div", K, [
148
+ ), y(d.value, i.value));
149
+ }), (e, l) => (J(), H("div", K, [
150
+ x("div", O, [
151
151
  x("input", {
152
152
  ref_key: "fromSlider",
153
153
  ref: g,
@@ -157,11 +157,11 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
157
157
  min: n.value,
158
158
  max: u.value,
159
159
  step: e.$attrs.step,
160
- onInput: l[0] || (l[0] = T((a) => N(
161
- g.value,
162
- i.value
160
+ onInput: l[0] || (l[0] = k((a) => U(
161
+ h(g),
162
+ h(i)
163
163
  ), ["stop"]))
164
- }, null, 40, O),
164
+ }, null, 40, Q),
165
165
  x("input", {
166
166
  ref_key: "toSlider",
167
167
  ref: i,
@@ -171,31 +171,31 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
171
171
  min: n.value,
172
172
  max: u.value,
173
173
  step: e.$attrs.step,
174
- onInput: l[1] || (l[1] = T((a) => U(
175
- g.value,
176
- i.value
174
+ onInput: l[1] || (l[1] = k((a) => R(
175
+ h(g),
176
+ h(i)
177
177
  ), ["stop"]))
178
- }, null, 40, Q)
178
+ }, null, 40, W)
179
179
  ]),
180
- x("div", W, [
181
- x("div", X, [
182
- k(C, {
180
+ x("div", X, [
181
+ x("div", Y, [
182
+ C(E, {
183
183
  "label-text": "Min",
184
184
  type: "text",
185
185
  pattern: "[0-9]*",
186
186
  inputmode: "numeric",
187
187
  "model-value": r.value,
188
- "onUpdate:modelValue": l[2] || (l[2] = (a) => P("min-input", `${a || ""}`))
188
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => S("min-input", `${a || ""}`))
189
189
  }, null, 8, ["model-value"])
190
190
  ]),
191
- x("div", Y, [
192
- k(C, {
191
+ x("div", Z, [
192
+ C(E, {
193
193
  "label-text": "Max",
194
194
  type: "text",
195
195
  pattern: "[0-9]*",
196
196
  inputmode: "numeric",
197
197
  "model-value": o.value,
198
- "onUpdate:modelValue": l[3] || (l[3] = (a) => P("max-input", `${a || ""}`))
198
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => S("max-input", `${a || ""}`))
199
199
  }, null, 8, ["model-value"])
200
200
  ])
201
201
  ])
@@ -203,5 +203,5 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
203
203
  }
204
204
  });
205
205
  export {
206
- ae as default
206
+ te as default
207
207
  };
@@ -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_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
3
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.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"
@@ -4,7 +4,7 @@ import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie
4
4
  import { stringToHyphened as L } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js";
5
5
  import "../../../../../_virtual/polyline.js";
6
6
  import G from "../../../../../UIKit/Checkbox/CheckboxBtn.js";
7
- const N = ["id", "data-cy"], z = /* @__PURE__ */ y({
7
+ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
8
8
  inheritAttrs: !1,
9
9
  __name: "CheckboxGroup",
10
10
  props: {
@@ -17,15 +17,15 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ y({
17
17
  autoCheckResetAll: { type: Boolean, default: !1 },
18
18
  autoCheckResetEmpty: { type: Boolean, default: !1 },
19
19
  manualToggleResetButton: { type: Boolean, default: !1 },
20
- getKey: { type: Function, default() {
21
- return (n) => typeof n == "string" || typeof n == "number" ? `${n}` : `${n.id}`;
20
+ getKey: { default() {
21
+ return (r) => typeof r == "string" || typeof r == "number" ? `${r}` : `${r.id}`;
22
22
  } },
23
23
  groupId: { default: "" },
24
24
  dataCy: { default: "" }
25
25
  },
26
26
  emits: ["resetted", "update:modelValue", "checkedGroup"],
27
- setup(n, { emit: g }) {
28
- const o = n, r = g, c = v(/* @__PURE__ */ new Map()), s = h(() => {
27
+ setup(r, { emit: g }) {
28
+ const o = r, n = g, c = v(/* @__PURE__ */ new Map()), s = h(() => {
29
29
  for (const e of o.checkboxData)
30
30
  if (e.reset) return e;
31
31
  return null;
@@ -42,7 +42,7 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ y({
42
42
  `${t.id}`,
43
43
  t
44
44
  ), t.checked && e.push(t);
45
- r("update:modelValue", e);
45
+ n("update:modelValue", e);
46
46
  })();
47
47
  const u = (e, t) => {
48
48
  const a = c.value.get(e);
@@ -58,7 +58,7 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ y({
58
58
  e.checked = !1;
59
59
  });
60
60
  }, p = () => {
61
- k(), r("update:modelValue", []), r("resetted");
61
+ k(), n("update:modelValue", []), n("resetted");
62
62
  }, d = (e) => c.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
63
63
  if (V(o.checkboxData)) return;
64
64
  const t = c.value.get(e.id);
@@ -68,7 +68,7 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ y({
68
68
  const a = [];
69
69
  c.value.forEach((l) => {
70
70
  l.checked && a.push(l);
71
- }), r("update:modelValue", a), r("checkedGroup", o.groupId);
71
+ }), n("update:modelValue", a), n("checkedGroup", o.groupId);
72
72
  };
73
73
  return x(
74
74
  () => o.reset,
@@ -110,5 +110,5 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ y({
110
110
  }
111
111
  });
112
112
  export {
113
- z as default
113
+ F as default
114
114
  };
@@ -1,7 +1,7 @@
1
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
- import x from "../../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.js";
4
- import '../../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.css';import '../../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css';/* empty css */
3
+ import x from "../../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js";
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
7
  import { shallowCopyObjectTo as _ } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
@@ -184,7 +184,7 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
184
184
  },
185
185
  class: ["disable-select", [e.$attrs["slide-img-classes"] || t.classes]],
186
186
  "data-idx": `${d.value}-slide-img-${a}`
187
- }, { ref_for: !0 }, z(t, a), {
187
+ }, z(t, a), {
188
188
  alt: t.alt,
189
189
  itemprop: "image",
190
190
  width: t.width,
@@ -231,8 +231,9 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
231
231
  class: p(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
232
232
  }, [
233
233
  v("img", T({
234
- class: e.$attrs["thumb-img-classes"]
235
- }, { ref_for: !0 }, z(t, -1, !1), {
234
+ class: e.$attrs["thumb-img-classes"],
235
+ ref_for: !0
236
+ }, z(t, -1, !1), {
236
237
  alt: t.alt
237
238
  }), null, 16, ae)
238
239
  ], 2))), 128))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",