@wikicasa-dev/components 2.1.3 → 2.1.4-alpha.1

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 (167) hide show
  1. package/dist/UIKit/BaseAlert.d.ts +20 -9
  2. package/dist/UIKit/BaseBadge.d.ts +40 -5
  3. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
  4. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
  5. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
  6. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
  7. package/dist/UIKit/BaseBanner.js +4 -0
  8. package/dist/UIKit/BaseBreadcrumb.js +3 -2
  9. package/dist/UIKit/BaseButton.d.ts +9 -8
  10. package/dist/UIKit/BaseChip.js +4 -0
  11. package/dist/UIKit/BaseCollapse.js +7 -0
  12. package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
  13. package/dist/UIKit/BaseComplexToggle.js +2 -2
  14. package/dist/UIKit/BaseDropDown.d.ts +5 -0
  15. package/dist/UIKit/BaseFloatingLabel.js +1 -3
  16. package/dist/UIKit/BaseInput.d.ts +4 -5
  17. package/dist/UIKit/BaseInput.js +1 -3
  18. package/dist/UIKit/BaseNotificationBadge.js +4 -0
  19. package/dist/UIKit/BasePagination.d.ts +10 -3
  20. package/dist/UIKit/BasePin.js +5 -0
  21. package/dist/UIKit/BaseSlider.d.ts +14 -10
  22. package/dist/UIKit/BaseSlider.js +1 -4
  23. package/dist/UIKit/BaseSnackbar.js +4 -4
  24. package/dist/UIKit/BaseTextarea.d.ts +4 -4
  25. package/dist/UIKit/BaseTextarea.js +4 -4
  26. package/dist/UIKit/BaseToggle.d.ts +5 -8
  27. package/dist/UIKit/BaseToggle.js +1 -4
  28. package/dist/UIKit/BaseTooltip.d.ts +10 -20
  29. package/dist/UIKit/BaseTooltip.js +2 -2
  30. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
  31. package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -5
  32. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
  33. package/dist/UIKit/DatePicker.js +5 -0
  34. package/dist/UIKit/InputDropdown.js +4 -0
  35. package/dist/UIKit/NativeSelect.js +5 -0
  36. package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
  37. package/dist/UIKit/Navigation/NavigationBar.js +5 -0
  38. package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
  39. package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
  40. package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
  41. package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
  42. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +1 -3
  43. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
  44. package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
  45. package/dist/UIKit/Tab/BaseTabItem.js +4 -0
  46. package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
  47. package/dist/UIKit/types.d.ts +11 -6
  48. package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
  49. package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
  50. package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
  51. package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +1 -0
  52. package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
  53. package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
  54. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
  55. package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
  56. package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
  57. package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
  58. package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
  59. package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
  60. package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
  61. package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
  62. package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
  63. package/dist/assets/packages/components/lib/UIKit/NativeSelect.css +1 -0
  64. package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
  65. package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
  66. package/dist/assets/packages/components/src/tailwind.css +1 -1
  67. package/dist/composables/useFloatingLabel.d.ts +1 -1
  68. package/dist/composables/useFloatingLabel.js +20 -20
  69. package/dist/index.d.ts +3 -2
  70. package/dist/index.js +92 -85
  71. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +19 -0
  72. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +16 -0
  73. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +29 -0
  74. package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +33 -0
  75. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +1 -1
  76. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +1 -1
  77. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +9 -9
  78. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +17 -17
  79. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +1 -1
  80. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +13 -13
  81. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +32 -26
  82. package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
  83. package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
  84. package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
  85. package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
  86. package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
  87. package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
  88. package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
  89. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +15 -15
  90. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  91. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
  92. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +107 -13
  93. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +28 -27
  94. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +46 -11
  95. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
  96. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
  97. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
  98. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
  99. package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
  100. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +32 -35
  101. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +57 -37
  102. package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
  103. package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
  104. package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
  105. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +48 -45
  106. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +12 -15
  107. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +93 -119
  108. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +70 -66
  109. package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
  110. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +89 -134
  111. package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
  112. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +107 -178
  113. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
  114. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +55 -73
  115. package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +27 -31
  116. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +48 -33
  117. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +19 -40
  118. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +55 -52
  119. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +20 -24
  120. package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
  121. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
  122. package/dist/packages/components/lib/UIKit/NativeSelect.vue.js +65 -0
  123. package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
  124. package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
  125. package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
  126. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
  127. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
  128. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +10 -9
  129. package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +10 -9
  130. package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
  131. package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +30 -27
  132. package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +40 -36
  133. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +5 -6
  134. package/dist/utils.d.ts +1 -1
  135. package/dist/utils.js +5 -3
  136. package/package.json +21 -18
  137. package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
  138. package/dist/UIKit/Slider/SimpleSlider.js +0 -7
  139. package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +0 -1
  140. package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +0 -1
  141. package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +0 -1
  142. package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
  143. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
  144. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
  145. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
  146. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
  147. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
  148. package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
  149. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
  150. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
  151. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
  152. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
  153. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/swiper.css +0 -0
  154. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
  155. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
  156. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  157. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
  158. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
  159. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
  160. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
  161. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
  162. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
  163. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
  164. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
  165. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +0 -0
  166. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
  167. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
@@ -1,36 +1,15 @@
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 { formatInteger as d } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js";
4
- import "../../../../_virtual/polyline.js";
5
- 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";
6
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
7
- const D = {
8
- "aria-label": "Page navigation",
9
- class: "uikit-overflow-auto"
10
- }, $ = {
11
- key: 0,
12
- 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"
13
- }, B = ["data-cy"], O = {
14
- key: 0,
15
- class: "uikit-mx-10px uikit-select-none"
16
- }, A = {
17
- key: 1,
18
- 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"
19
- }, F = ["onClick"], V = ["onClick"], E = {
20
- key: 0,
21
- 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"
22
- }, z = ["data-cy"], q = {
23
- key: 0,
24
- class: "uikit-mx-10px uikit-select-none"
25
- }, T = /* @__PURE__ */ j({
1
+ import { defineComponent as v, mergeModels as P, useModel as C, computed as N, createBlock as n, openBlock as a, unref as i, withCtx as e, createVNode as l, createElementBlock as c, createElementVNode as p, toDisplayString as k, Fragment as b, renderList as L, createTextVNode as m } from "vue";
2
+ import { PaginationRoot as B, PaginationList as D, PaginationPrev as F, PaginationListItem as M, PaginationEllipsis as E, PaginationNext as V } from "reka-ui";
3
+ import { ArrowIcon as f } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
4
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
5
+ import { useBreakpoints as _ } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js";
6
+ const z = { class: "max-sm:uikit-hidden" }, I = { class: "max-sm:uikit-hidden" }, j = /* @__PURE__ */ v({
26
7
  __name: "BasePagination",
27
8
  props: /* @__PURE__ */ P({
28
9
  count: { default: 0 },
29
10
  limit: { default: 25 },
30
- siblings: { default: 3 },
31
- additionalCount: { default: 0 },
11
+ siblings: {},
32
12
  arrowColor: { default: "#2B5DFF" },
33
- small: { type: Boolean, default: !1 },
34
13
  prevLabel: { default: "" },
35
14
  nextLabel: { default: "" },
36
15
  prevDataCy: {},
@@ -40,113 +19,89 @@ const D = {
40
19
  pageNumberModifiers: {}
41
20
  }),
42
21
  emits: ["update:pageNumber"],
43
- setup(a) {
44
- 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(
45
- () => (u.value || 0) < n.value - a.siblings - 1
46
- ), b = s(() => {
47
- let e = u.value || 0, t = 0;
48
- for (; e > 2 && t < a.siblings; )
49
- e--, t++;
50
- return t;
51
- }), w = s(() => {
52
- let e = u.value || 0, t = 0;
53
- for (; e < n.value - 1 && t < a.siblings; )
54
- e++, t++;
55
- return t;
56
- }), N = s(() => {
57
- const i = b.value + /* Filling with the remaining right siblings */
58
- Math.abs(w.value - a.siblings) + /* If there is no suspension points on the right, let's fill it */
59
- new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
60
- new Number(u.value === n.value).valueOf();
61
- let e = Math.max((u.value || 0) - i, 2);
62
- const t = [];
63
- for (e; e < (u.value || 0); e++) t.push(e);
64
- return t;
65
- }), M = s(() => {
66
- const i = w.value + /* Filling with the remaining left siblings */
67
- Math.abs(b.value - a.siblings) + /* If there is no suspension points on the left, let's fill it */
68
- new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
69
- new Number(u.value === 1).valueOf();
70
- let e = Math.min(u.value || 0, n.value - 1);
71
- const t = [];
72
- for (e; e < Math.min((u.value || 0) + i, n.value - 1); e++)
73
- t.push(e + 1);
74
- return t;
75
- }), k = (i) => {
76
- let e = i;
77
- i < 1 ? e = 1 : i > n.value && (e = n.value), u.value = e;
78
- };
79
- return (i, e) => (r(), l("nav", D, [
80
- i.count > 0 ? (r(), l("ul", $, [
81
- p("li", {
82
- 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", {
83
- "uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": u.value !== 1,
84
- "hover:uikit-text-white": i.small && u.value !== 1,
85
- "uikit-rounded-xs": i.small && i.prevLabel
86
- }]),
87
- "data-cy": i.prevDataCy,
88
- onClick: e[0] || (e[0] = (t) => k((u.value || 0) - 1))
89
- }, [
90
- y(v(C), {
91
- width: 20,
92
- height: 11,
93
- "stroke-color": u.value === 1 ? "#8996A9" : i.arrowColor,
94
- class: "uikit-inline-block uikit-rotate-90"
95
- }, null, 8, ["stroke-color"]),
96
- i.small && i.prevLabel ? (r(), l("span", O, c(i.prevLabel), 1)) : o("", !0)
97
- ], 10, B),
98
- i.small ? o("", !0) : (r(), l(m, { key: 0 }, [
99
- (u.value || 0) > 1 ? (r(), l("li", {
100
- key: 0,
101
- 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",
102
- onClick: e[1] || (e[1] = (t) => k(0))
103
- }, " 1 ")) : o("", !0),
104
- g.value ? (r(), l("li", A, " ... ")) : o("", !0),
105
- (r(!0), l(m, null, x(N.value, (t) => (r(), l("li", {
106
- key: t,
107
- 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",
108
- onClick: (L) => k(t)
109
- }, c(v(d)(t)), 9, F))), 128))
110
- ], 64)),
111
- p("li", {
112
- 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", {
113
- "uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
114
- }])
115
- }, c(u.value || 0), 3),
116
- i.small ? o("", !0) : (r(), l(m, { key: 1 }, [
117
- (r(!0), l(m, null, x(M.value, (t) => (r(), l("li", {
118
- key: t,
119
- class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
120
- onClick: (L) => k(t)
121
- }, c(v(d)(t)), 9, V))), 128)),
122
- f.value ? (r(), l("li", E, " ... ")) : o("", !0),
123
- (u.value || 0) < n.value ? (r(), l("li", {
124
- key: 1,
125
- 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",
126
- onClick: e[2] || (e[2] = (t) => k(n.value))
127
- }, c(v(d)(n.value)), 1)) : o("", !0)
128
- ], 64)),
129
- p("li", {
130
- 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", {
131
- "uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (u.value || 0) < n.value,
132
- "hover:uikit-text-white": i.small && (u.value || 0) < n.value,
133
- "uikit-rounded-xs": i.small && i.nextLabel
134
- }]),
135
- "data-cy": i.nextDataCy,
136
- onClick: e[3] || (e[3] = (t) => k((u.value || 0) + 1))
137
- }, [
138
- i.small && i.nextLabel ? (r(), l("span", q, c(i.nextLabel), 1)) : o("", !0),
139
- y(v(C), {
140
- "stroke-color": (u.value || 0) === n.value ? "#8996A9" : i.arrowColor,
141
- width: 20,
142
- height: 11,
143
- class: "uikit-inline-block -uikit-rotate-90"
144
- }, null, 8, ["stroke-color"])
145
- ], 10, z)
146
- ])) : o("", !0)
147
- ]));
22
+ setup(s) {
23
+ const { isSmall: w } = _({
24
+ breakpoints: {
25
+ sm: 640,
26
+ md: 768,
27
+ lg: 1024,
28
+ xl: 1280
29
+ }
30
+ }), r = C(s, "pageNumber"), h = N(() => Math.ceil(s.count / s.limit)), x = (t = 1) => t === 1, y = (t = 1) => t === h.value;
31
+ return (t, u) => (a(), n(i(B), {
32
+ page: r.value,
33
+ "onUpdate:page": u[0] || (u[0] = (d) => r.value = d),
34
+ total: t.count,
35
+ "sibling-count": t.siblings ?? (i(w) ? 0 : 1),
36
+ "items-per-page": t.limit,
37
+ "show-edges": "",
38
+ class: "uikit-text-16"
39
+ }, {
40
+ default: e(() => [
41
+ l(i(D), { class: "uikit-flex uikit-gap-x-md" }, {
42
+ default: e(({ items: d }) => [
43
+ l(i(F), {
44
+ class: "uikit-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-xs uikit-bg-transparent uikit-text-w-blue disabled:uikit-cursor-default disabled:uikit-text-w-lightgray [&:disabled_path]:uikit-stroke-w-lightgray",
45
+ "data-cy": t.prevDataCy,
46
+ disabled: x(r.value)
47
+ }, {
48
+ default: e(() => [
49
+ l(i(f), {
50
+ width: 20,
51
+ height: 11,
52
+ "stroke-color": t.arrowColor,
53
+ class: "uikit-inline-block uikit-rotate-90"
54
+ }, null, 8, ["stroke-color"]),
55
+ p("span", z, k(t.prevLabel), 1)
56
+ ]),
57
+ _: 1
58
+ }, 8, ["data-cy", "disabled"]),
59
+ (a(!0), c(b, null, L(d, (o, g) => (a(), c(b, null, [
60
+ o.type === "page" ? (a(), n(i(M), {
61
+ key: g,
62
+ value: o.value,
63
+ class: "uikit-size-xl uikit-cursor-pointer uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-w-blue data-[selected]:uikit-border-w-blue data-[selected]:uikit-bg-w-cultured"
64
+ }, {
65
+ default: e(() => [
66
+ m(k(o.value), 1)
67
+ ]),
68
+ _: 2
69
+ }, 1032, ["value"])) : (a(), n(i(E), {
70
+ key: o.type,
71
+ class: "uikit-size-xl uikit-cursor-pointer uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-text-center uikit-text-w-lightgray",
72
+ index: g
73
+ }, {
74
+ default: e(() => u[1] || (u[1] = [
75
+ m(" ")
76
+ ])),
77
+ _: 2,
78
+ __: [1]
79
+ }, 1032, ["index"]))
80
+ ], 64))), 256)),
81
+ l(i(V), {
82
+ class: "uikit-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-xs uikit-bg-transparent uikit-text-w-blue disabled:uikit-cursor-default disabled:uikit-text-w-lightgray [&:disabled_path]:uikit-stroke-w-lightgray",
83
+ "data-cy": t.nextDataCy,
84
+ disabled: y(r.value)
85
+ }, {
86
+ default: e(() => [
87
+ p("span", I, k(t.nextLabel), 1),
88
+ l(i(f), {
89
+ "stroke-color": t.arrowColor,
90
+ width: 20,
91
+ height: 11,
92
+ class: "uikit-inline-block -uikit-rotate-90"
93
+ }, null, 8, ["stroke-color"])
94
+ ]),
95
+ _: 1
96
+ }, 8, ["data-cy", "disabled"])
97
+ ]),
98
+ _: 1
99
+ })
100
+ ]),
101
+ _: 1
102
+ }, 8, ["page", "total", "sibling-count", "items-per-page"]));
148
103
  }
149
104
  });
150
105
  export {
151
- T as default
106
+ j as default
152
107
  };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as u, createElementBlock as e, openBlock as t, normalizeClass as n, createElementVNode as l, createCommentVNode as s, renderSlot as o } from "vue";
2
+ const a = {
3
+ key: 0,
4
+ class: "uikit-pin-arrow"
5
+ }, k = /* @__PURE__ */ u({
6
+ __name: "BasePin",
7
+ props: {
8
+ type: { default: "default" },
9
+ pinClass: { default: "white" },
10
+ outlined: { type: Boolean, default: !1 }
11
+ },
12
+ setup(p) {
13
+ return (i, r) => (t(), e("span", {
14
+ class: n(["uikit-pin uikit-relative uikit-inline-block uikit-text", [
15
+ { "uikit-pin-outlined": i.outlined },
16
+ `uikit-pin-${i.pinClass}`,
17
+ `uikit-pin-${i.type}`
18
+ ]])
19
+ }, [
20
+ l("span", {
21
+ class: n(["uikit-pin-body uikit-box-border", [
22
+ {
23
+ "uikit-inline-flex uikit-min-w-xl uikit-rounded-3xs uikit-px-sm uikit-py-2xs": ["default", "large"].includes(i.type),
24
+ "uikit-px-xs": i.type === "large",
25
+ "uikit-inline-flex uikit-size-lg uikit-items-center uikit-justify-center uikit-rounded-full": i.type === "rounded"
26
+ }
27
+ ]])
28
+ }, [
29
+ o(i.$slots, "default")
30
+ ], 2),
31
+ i.type !== "rounded" ? (t(), e("div", a)) : s("", !0)
32
+ ], 2));
33
+ }
34
+ });
35
+ export {
36
+ k as default
37
+ };
@@ -1,207 +1,136 @@
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__ */ _({
1
+ import { defineComponent as E, mergeModels as T, useModel as p, ref as l, watch as g, createElementBlock as B, openBlock as L, createVNode as u, createElementVNode as U, unref as m, withCtx as w } from "vue";
2
+ import { SliderRoot as z, SliderTrack as N, SliderRange as R, SliderThumb as y } from "reka-ui";
3
+ import V from "./BaseInput.vue.js";
4
+ import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
5
+ const j = { class: "uikit-mt-[20px] uikit-flex uikit-justify-between uikit-gap-x-sm" }, J = /* @__PURE__ */ E({
4
6
  __name: "BaseSlider",
5
- props: /* @__PURE__ */ j({
7
+ props: /* @__PURE__ */ T({
6
8
  type: { default: "linear" },
7
9
  min: { default: 0 },
8
- max: { default: 100 }
10
+ max: { default: 100 },
11
+ step: {},
12
+ dataCy: {}
9
13
  }, {
10
- minValue: { default: 0 },
11
- minValueModifiers: {},
12
- maxValue: { default: 0 },
13
- maxValueModifiers: {}
14
+ rangeMin: { default: 0 },
15
+ rangeMinModifiers: {},
16
+ rangeMax: { default: 100 },
17
+ rangeMaxModifiers: {}
14
18
  }),
15
- emits: ["update:minValue", "update:maxValue"],
16
- setup(m) {
17
- function M(e, l) {
18
- const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
19
- return [a, t];
20
- }
21
- const L = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, z = (e) => Math.exp(
19
+ emits: ["update:rangeMin", "update:rangeMax"],
20
+ setup(a) {
21
+ const C = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, F = (e) => Math.exp(
22
22
  (e.position - e.minPos) * e.scale + e.minlval
23
- );
24
- function V(e, l, a, t, v) {
25
- const s = l.max - l.min, f = e - l.min, $ = l.value - l.min;
26
- v.style.background = `linear-gradient(
27
- to right,
28
- ${a} 0%,
29
- ${a} ${f / s * 100}%,
30
- ${t} ${f / s * 100}%,
31
- ${t} ${$ / s * 100}%,
32
- ${a} ${$ / s * 100}%,
33
- ${a} 100%)`;
34
- }
35
- function y(e, l) {
36
- e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
37
- }
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
- if (!g.value || !i.value) return;
40
- l || (l = "0");
41
- const a = parseInt(l, 10);
42
- if (e == "min-input") {
43
- if (a >= o.value) return;
44
- r.value = a, A(i.value, a, o.value);
45
- return;
46
- }
47
- a < r.value || (o.value = a, N(i.value, i.value, r.value, a));
48
- }, I = (e) => {
49
- if (m.type === "logarithmic")
23
+ ), o = p(a, "rangeMin"), s = p(a, "rangeMax"), n = l(0), f = l(100), S = l(10), $ = l(40), k = l(0), h = l(0), c = l(0), x = (e) => {
24
+ if (a.type === "logarithmic")
50
25
  return e = e || 1, parseInt(
51
- L({
26
+ C({
52
27
  value: e,
53
28
  minPos: n.value,
54
- minlval: F.value,
55
- scale: B.value
29
+ minlval: k.value,
30
+ scale: c.value
56
31
  }).toFixed(0),
57
32
  10
58
33
  );
59
- if (m.type === "linear")
34
+ if (a.type === "linear")
60
35
  return e;
61
36
  throw new Error("The slider type has not been implemented");
62
37
  }, b = (e) => {
63
- if (m.type === "logarithmic")
64
- return e = e || 1, parseInt(
65
- z({
38
+ if (!e) return 0;
39
+ if (a.type === "logarithmic")
40
+ return parseInt(
41
+ F({
66
42
  position: e,
67
- scale: B.value,
68
- minlval: F.value,
43
+ scale: c.value,
44
+ minlval: k.value,
69
45
  minPos: n.value
70
46
  }).toFixed(0),
71
47
  10
72
48
  );
73
- if (m.type === "linear")
49
+ if (a.type === "linear")
74
50
  return e;
75
51
  throw new Error("The slider type has not been implemented");
76
- }, A = (e, l, a) => {
77
- const t = I(l), v = I(a);
78
- V(
79
- t,
80
- {
81
- min: n.value,
82
- max: u.value,
83
- value: v
84
- },
85
- "#B4C2F0",
86
- "#2B5DFF",
87
- e
88
- );
89
- const s = t, f = o.value;
90
- s > f ? c.value = f : c.value = s;
91
- }, N = (e, l, a, t) => {
92
- const v = I(a), s = I(t);
93
- V(
94
- v,
95
- {
96
- min: n.value,
97
- max: u.value,
98
- value: s
99
- },
100
- "#B4C2F0",
101
- "#2B5DFF",
102
- l
103
- );
104
- const f = r.value, $ = s;
105
- y(o.value, e), f <= $ ? d.value = $ : d.value = f;
106
- }, U = (e, l) => {
107
- if (!l.value) return;
108
- const [a, t] = M(e, l), v = b(a);
109
- V(
110
- a,
111
- {
112
- min: n.value,
113
- max: u.value,
114
- value: t
115
- },
116
- "#B4C2F0",
117
- "#2B5DFF",
118
- l
119
- ), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
120
- }, R = (e, l) => {
121
- if (!l.value) return;
122
- const [a, t] = M(e, l), v = b(t);
123
- V(
124
- c.value,
125
- {
126
- min: n.value,
127
- max: u.value,
128
- value: t
129
- },
130
- "#B4C2F0",
131
- "#2B5DFF",
132
- l
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
- 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(`${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
- !g.value || !i.value || (V(
139
- c.value,
140
- {
141
- min: n.value,
142
- max: u.value,
143
- value: d.value
144
- },
145
- "#B4C2F0",
146
- "#2B5DFF",
147
- i.value
148
- ), y(d.value, i.value));
149
- }), (e, l) => (J(), H("div", K, [
150
- x("div", O, [
151
- x("input", {
152
- ref_key: "fromSlider",
153
- ref: g,
154
- class: "fromSlider",
155
- type: "range",
156
- value: c.value,
157
- min: n.value,
158
- max: u.value,
159
- step: e.$attrs.step,
160
- onInput: l[0] || (l[0] = k((a) => U(
161
- h(g),
162
- h(i)
163
- ), ["stop"]))
164
- }, null, 40, Q),
165
- x("input", {
166
- ref_key: "toSlider",
167
- ref: i,
168
- class: "toSlider",
169
- type: "range",
170
- value: d.value,
171
- min: n.value,
172
- max: u.value,
173
- step: e.$attrs.step,
174
- onInput: l[1] || (l[1] = k((a) => R(
175
- h(g),
176
- h(i)
177
- ), ["stop"]))
178
- }, null, 40, W)
179
- ]),
180
- x("div", X, [
181
- x("div", Y, [
182
- C(E, {
183
- "label-text": "Min",
184
- type: "text",
185
- pattern: "[0-9]*",
186
- inputmode: "numeric",
187
- "model-value": r.value,
188
- "onUpdate:modelValue": l[2] || (l[2] = (a) => S("min-input", `${a || ""}`))
189
- }, null, 8, ["model-value"])
52
+ }, r = l([]), d = l(!1), v = l(!1);
53
+ (() => {
54
+ n.value = parseInt(`${a.min || 0}`, 10), f.value = parseInt(`${a.max || 100}`, 10), S.value = n.value, $.value = f.value;
55
+ const e = n.value, t = f.value;
56
+ k.value = Math.log(e || 1), h.value = Math.log(t), c.value = (h.value - k.value) / (f.value - n.value), r.value = [
57
+ b(o.value),
58
+ b(s.value)
59
+ ];
60
+ })();
61
+ const I = (e = []) => {
62
+ r.value = e, v.value = !0;
63
+ }, M = {
64
+ formatFn: (e = "") => typeof e == "number" ? `${e}` : e.replace(/\D/g, ""),
65
+ unFormatFn: (e) => e ? parseInt(e) : 0
66
+ };
67
+ return g(
68
+ r,
69
+ ([e, t]) => {
70
+ const i = x(e), P = x(t);
71
+ a.type === "logarithmic" && d.value || (o.value = i, s.value = P);
72
+ },
73
+ { deep: !0 }
74
+ ), g(o, (e) => {
75
+ e === void 0 || v.value || (r.value[0] = b(e));
76
+ }), g(s, (e) => {
77
+ e === void 0 || v.value || (r.value[1] = b(e));
78
+ }), (e, t) => (L(), B("div", null, [
79
+ u(m(z), {
80
+ "model-value": r.value,
81
+ class: "uikit-relative uikit-flex uikit-h-5 uikit-touch-none uikit-select-none uikit-items-center",
82
+ min: e.min,
83
+ max: e.max,
84
+ step: e.step,
85
+ "onUpdate:modelValue": I
86
+ }, {
87
+ default: w(() => [
88
+ u(m(N), { class: "uikit-relative uikit-h-[2px] uikit-grow uikit-rounded-full uikit-bg-w-lightgray" }, {
89
+ default: w(() => [
90
+ u(m(R), { class: "uikit-absolute uikit-h-full uikit-rounded-full uikit-bg-w-blue" })
91
+ ]),
92
+ _: 1
93
+ }),
94
+ u(m(y), {
95
+ class: "uikit-block uikit-size-[20px] uikit-rounded-full uikit-border-2 uikit-border-solid uikit-border-w-blue uikit-bg-w-blue uikit-shadow-[0_0_0_2px_#fff_inset] hover:uikit-border-w-blue-hover hover:uikit-bg-w-blue-hover focus:uikit-border-w-blue-hover focus:uikit-bg-w-blue-hover focus:uikit-outline-none",
96
+ "aria-label": "Min Value",
97
+ "data-cy": e.dataCy?.thumbMin
98
+ }, null, 8, ["data-cy"]),
99
+ u(m(y), {
100
+ class: "uikit-block uikit-size-[20px] uikit-rounded-full uikit-border-2 uikit-border-solid uikit-border-w-blue uikit-bg-w-blue uikit-shadow-[0_0_0_2px_#fff_inset] hover:uikit-border-w-blue-hover hover:uikit-bg-w-blue-hover focus:uikit-border-w-blue-hover focus:uikit-bg-w-blue-hover focus:uikit-outline-none",
101
+ "aria-label": "Max Value",
102
+ "data-cy": e.dataCy?.thumbMax
103
+ }, null, 8, ["data-cy"])
190
104
  ]),
191
- x("div", Z, [
192
- C(E, {
193
- "label-text": "Max",
194
- type: "text",
195
- pattern: "[0-9]*",
196
- inputmode: "numeric",
197
- "model-value": o.value,
198
- "onUpdate:modelValue": l[3] || (l[3] = (a) => S("max-input", `${a || ""}`))
199
- }, null, 8, ["model-value"])
200
- ])
105
+ _: 1
106
+ }, 8, ["model-value", "min", "max", "step"]),
107
+ U("div", j, [
108
+ u(V, {
109
+ modelValue: o.value,
110
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => o.value = i),
111
+ "label-text": "Min",
112
+ "data-cy": e.dataCy?.rangeMinInput,
113
+ formatter: M,
114
+ onFocusin: t[1] || (t[1] = (i) => {
115
+ d.value = !0, v.value = !1;
116
+ }),
117
+ onFocusout: t[2] || (t[2] = (i) => d.value = !1)
118
+ }, null, 8, ["modelValue", "data-cy"]),
119
+ u(V, {
120
+ modelValue: s.value,
121
+ "onUpdate:modelValue": t[3] || (t[3] = (i) => s.value = i),
122
+ "label-text": "Max",
123
+ "data-cy": e.dataCy?.rangeMaxInput,
124
+ formatter: M,
125
+ onFocusin: t[4] || (t[4] = (i) => {
126
+ d.value = !0, v.value = !1;
127
+ }),
128
+ onFocusout: t[5] || (t[5] = (i) => d.value = !1)
129
+ }, null, 8, ["modelValue", "data-cy"])
201
130
  ])
202
131
  ]));
203
132
  }
204
133
  });
205
134
  export {
206
- te as default
135
+ J as default
207
136
  };
@@ -1,10 +1,10 @@
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.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";
1
+ import { defineComponent as p, 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";
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"
7
- }, M = { class: "snackbar-text uikit-px-4 uikit-py-0 uikit-text uikit-font-regular max-sm:uikit-max-w-[80%] max-sm:uikit-pr-0 sm:uikit-text-16" }, B = ["innerHTML"], H = ["innerHTML"], z = /* @__PURE__ */ b({
7
+ }, M = { class: "snackbar-text uikit-px-4 uikit-py-0 uikit-text uikit-font-regular max-sm:uikit-max-w-[80%] max-sm:uikit-pr-0 sm:uikit-text-16" }, B = ["innerHTML"], H = ["innerHTML"], z = /* @__PURE__ */ p({
8
8
  inheritAttrs: !1,
9
9
  __name: "BaseSnackbar",
10
10
  props: {
@@ -17,7 +17,7 @@ const g = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-
17
17
  },
18
18
  emits: ["snackbar-hidden"],
19
19
  setup(k, { emit: m }) {
20
- const n = k, d = m, o = u(null), r = u(null), p = () => {
20
+ const n = k, d = m, o = u(null), r = u(null), b = () => {
21
21
  o.value && o.value();
22
22
  }, c = () => {
23
23
  const t = r.value;
@@ -35,8 +35,8 @@ const g = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-
35
35
  ref_key: "snackbar",
36
36
  ref: r,
37
37
  "data-cy": t.$attrs["data-cy"],
38
- class: x(["snackbar snackbar-active uikit-flex uikit-items-center uikit-rounded-[5px] uikit-px-4 uikit-py-10px uikit-font-medium uikit-shadow hover:uikit-cursor-pointer max-sm:uikit-relative max-sm:uikit-mx-10px max-sm:uikit-my-0", t.type]),
39
- onClick: l(p, ["stop"])
38
+ class: x(["snackbar snackbar-active uikit-py-xs uikit-flex uikit-items-center uikit-rounded-[5px] uikit-px-4 uikit-font-medium uikit-shadow hover:uikit-cursor-pointer max-sm:uikit-relative max-sm:uikit-mx-10px max-sm:uikit-my-0", t.type]),
39
+ onClick: l(b, ["stop"])
40
40
  }, [
41
41
  t.icon ? (i(), a("img", {
42
42
  key: 0,