@wikicasa-dev/components 2.1.2 → 2.1.3

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 (168) hide show
  1. package/dist/UIKit/AccessibleSelect.js +1 -1
  2. package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
  3. package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
  4. package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
  5. package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
  6. package/dist/UIKit/BaseAlert.js +3 -2
  7. package/dist/UIKit/BaseAutocomplete.js +1 -1
  8. package/dist/UIKit/BaseBadge.js +3 -2
  9. package/dist/UIKit/BaseBreadcrumb.js +1 -1
  10. package/dist/UIKit/BaseButton.js +1 -1
  11. package/dist/UIKit/BaseCard.js +5 -36
  12. package/dist/UIKit/BaseComplexToggle.js +5 -105
  13. package/dist/UIKit/BaseDropDown.js +1 -1
  14. package/dist/UIKit/BaseFloatingLabel.js +5 -39
  15. package/dist/UIKit/BaseIcon.js +4 -25
  16. package/dist/UIKit/BaseInput.js +5 -210
  17. package/dist/UIKit/BaseModal.js +3 -2
  18. package/dist/UIKit/BasePagination.js +1 -1
  19. package/dist/UIKit/BasePaper.js +9 -9
  20. package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
  21. package/dist/UIKit/BaseSlider.js +5 -206
  22. package/dist/UIKit/BaseSnackbar.js +5 -80
  23. package/dist/UIKit/BaseTextarea.js +5 -126
  24. package/dist/UIKit/BaseToggle.js +5 -41
  25. package/dist/UIKit/BaseTooltip.js +5 -40
  26. package/dist/UIKit/BaseUploadFile.js +1 -1
  27. package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -74
  28. package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
  29. package/dist/UIKit/Radio/RadioButton.js +1 -1
  30. package/dist/UIKit/Radio/RadioGroup.js +1 -1
  31. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +5 -20
  32. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
  33. package/dist/UIKit/Slider/SimpleSlider.js +5 -81
  34. package/dist/UIKit/StaticSpinner.js +5 -26
  35. package/dist/UIKit/Tab/BaseTab.js +1 -1
  36. package/dist/UIKit/Tab/BaseTabList.js +1 -1
  37. package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
  38. package/dist/UIKit/Tab/BaseTabView.js +1 -1
  39. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  40. package/dist/_virtual/polyline.js +2 -0
  41. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css +1 -0
  42. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +1 -0
  43. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css +1 -0
  44. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css +1 -0
  45. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +1 -0
  46. package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +1 -0
  47. package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +1 -0
  48. package/dist/chart/DoughnutChart.js +1 -1
  49. package/dist/chart/LineChart.js +1 -1
  50. package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
  51. package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
  52. package/dist/components/carousel/SwiperCarousel.js +6 -1593
  53. package/dist/components/carousel/SwiperSlide.js +1 -1
  54. package/dist/index.js +89 -85
  55. package/dist/{chunks/ArrowIcon.Bq6Xr3uH.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js} +3 -3
  56. package/dist/{chunks/CloseIcon.BZ4U3aiI.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js} +11 -11
  57. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +9 -0
  58. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +2 -0
  59. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +40 -0
  60. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
  61. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -0
  62. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +15 -0
  63. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +12 -0
  64. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -0
  65. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +10 -0
  66. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -0
  67. package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
  68. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +22 -0
  69. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +34 -0
  70. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +12 -0
  71. package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +71 -0
  72. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +1 -0
  73. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +129 -0
  74. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +1 -0
  75. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +101 -0
  76. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +125 -0
  77. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +1 -0
  78. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +67 -0
  79. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +127 -0
  80. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +227 -0
  81. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +1 -0
  82. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js +121 -0
  83. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +310 -0
  84. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +6 -0
  85. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/create-element-if-not-defined.js +12 -0
  86. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/ssr-window.esm.js +135 -0
  87. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/utils.js +85 -0
  88. package/dist/packages/components/lazyModules/Swiper/autoplay.js +5 -0
  89. package/dist/packages/components/lazyModules/Swiper/controller.js +5 -0
  90. package/dist/packages/components/lazyModules/Swiper/free-mode.js +5 -0
  91. package/dist/packages/components/lazyModules/Swiper/keyboard.js +5 -0
  92. package/dist/packages/components/lazyModules/Swiper/navigation.js +5 -0
  93. package/dist/packages/components/lazyModules/Swiper/pagination.js +5 -0
  94. package/dist/packages/components/lazyModules/Swiper/thumbs.js +5 -0
  95. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +213 -0
  96. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +33 -0
  97. package/dist/{chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js → packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js} +8 -8
  98. package/dist/{chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js → packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js} +1 -1
  99. package/dist/{chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js → packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js} +21 -21
  100. package/dist/{chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js → packages/components/lib/UIKit/BaseAlert.vue.js} +2 -2
  101. package/dist/{chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js → packages/components/lib/UIKit/BaseAutocomplete.vue.js} +64 -74
  102. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +19 -0
  103. package/dist/{chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js → packages/components/lib/UIKit/BaseBreadcrumb.vue.js} +5 -5
  104. package/dist/{chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js → packages/components/lib/UIKit/BaseButton.vue.js} +6 -6
  105. package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
  106. package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
  107. package/dist/{chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js → packages/components/lib/UIKit/BaseDropDown.vue.js} +25 -25
  108. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +40 -0
  109. package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +27 -0
  110. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +211 -0
  111. package/dist/{chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js → packages/components/lib/UIKit/BaseModal.vue.js} +56 -61
  112. package/dist/{chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js → packages/components/lib/UIKit/BasePagination.vue.js} +71 -83
  113. package/dist/packages/components/lib/UIKit/BasePaper.vue.js +7 -0
  114. package/dist/{chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js → packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js} +1 -1
  115. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +207 -0
  116. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +81 -0
  117. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +127 -0
  118. package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +42 -0
  119. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +41 -0
  120. package/dist/{chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js → packages/components/lib/UIKit/BaseUploadFile.vue.js} +2 -2
  121. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +75 -0
  122. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +114 -0
  123. package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +9 -9
  124. package/dist/{chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js → packages/components/lib/UIKit/Radio/RadioGroup.vue.js} +6 -6
  125. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +21 -0
  126. package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +8 -8
  127. package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
  128. package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +27 -0
  129. package/dist/{chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js → packages/components/lib/UIKit/Tab/BaseTab.vue.js} +3 -3
  130. package/dist/{chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js → packages/components/lib/UIKit/Tab/BaseTabList.vue.js} +1 -1
  131. package/dist/{chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js → packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js} +1 -1
  132. package/dist/{chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js → packages/components/lib/UIKit/Tab/BaseTabView.vue.js} +17 -17
  133. package/dist/packages/components/lib/chart/DoughnutChart.vue.js +27 -0
  134. package/dist/{chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js → packages/components/lib/chart/LineChart.vue.js} +2 -2
  135. package/dist/{chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js → packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js} +5 -5
  136. package/dist/{chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js → packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js} +4 -4
  137. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +247 -0
  138. package/package.json +1 -1
  139. package/dist/assets/SwiperCarousel.css +0 -1
  140. package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +0 -246
  141. package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +0 -32
  142. package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +0 -19
  143. package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +0 -111
  144. package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +0 -27
  145. package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
  146. package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
  147. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  148. package/dist/chunks/polyline.tNTK3v2u.js +0 -129
  149. package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +0 -41
  150. /package/dist/assets/{BaseAlert.css → packages/components/lib/UIKit/BaseAlert.css} +0 -0
  151. /package/dist/assets/{BaseBadge.css → packages/components/lib/UIKit/BaseBadge.css} +0 -0
  152. /package/dist/assets/{BaseCard.css → packages/components/lib/UIKit/BaseCard.css} +0 -0
  153. /package/dist/assets/{BaseComplexToggle.css → packages/components/lib/UIKit/BaseComplexToggle.css} +0 -0
  154. /package/dist/assets/{BaseFloatingLabel.css → packages/components/lib/UIKit/BaseFloatingLabel.css} +0 -0
  155. /package/dist/assets/{BaseIcon.css → packages/components/lib/UIKit/BaseIcon.css} +0 -0
  156. /package/dist/assets/{BaseInput.css → packages/components/lib/UIKit/BaseInput.css} +0 -0
  157. /package/dist/assets/{BaseModal.css → packages/components/lib/UIKit/BaseModal.css} +0 -0
  158. /package/dist/assets/{BasePaper.css → packages/components/lib/UIKit/BasePaper.css} +0 -0
  159. /package/dist/assets/{BaseSlider.css → packages/components/lib/UIKit/BaseSlider.css} +0 -0
  160. /package/dist/assets/{BaseSnackbar.css → packages/components/lib/UIKit/BaseSnackbar.css} +0 -0
  161. /package/dist/assets/{BaseTextarea.css → packages/components/lib/UIKit/BaseTextarea.css} +0 -0
  162. /package/dist/assets/{BaseToggle.css → packages/components/lib/UIKit/BaseToggle.css} +0 -0
  163. /package/dist/assets/{BaseTooltip.css → packages/components/lib/UIKit/BaseTooltip.css} +0 -0
  164. /package/dist/assets/{CheckboxBtn.css → packages/components/lib/UIKit/Checkbox/CheckboxBtn.css} +0 -0
  165. /package/dist/assets/{BaseShimmerLoader.css → packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css} +0 -0
  166. /package/dist/assets/{SimpleSlider.css → packages/components/lib/UIKit/Slider/SimpleSlider.css} +0 -0
  167. /package/dist/assets/{StaticSpinner.css → packages/components/lib/UIKit/StaticSpinner.css} +0 -0
  168. /package/dist/assets/{index.css → packages/components/src/tailwind.css} +0 -0
@@ -1,40 +1,28 @@
1
- import { defineComponent as j, mergeModels as P, useModel as D, computed as s, createElementBlock as n, openBlock as r, createCommentVNode as o, createElementVNode as p, normalizeClass as h, createVNode as y, unref as v, toDisplayString as c, Fragment as m, renderList as x } from "vue";
2
- import "./polyline.tNTK3v2u.js";
3
- import { a as C } from "./ArrowIcon.Bq6Xr3uH.js";
4
- import "./PharmacyIcon.DEQ8mOEJ.js";
5
- function d(l, t = !1) {
6
- return l == null ? "" : S(t ? Math.round(l) : Math.floor(l), 0);
7
- }
8
- function S(l, t) {
9
- return !l && l !== 0 ? "" : l.toLocaleString(
10
- "it-IT",
11
- // usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
12
- {
13
- minimumFractionDigits: t,
14
- maximumFractionDigits: t,
15
- useGrouping: "always"
16
- }
17
- );
18
- }
19
- const $ = {
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 = {
20
8
  "aria-label": "Page navigation",
21
9
  class: "uikit-overflow-auto"
22
- }, B = {
10
+ }, $ = {
23
11
  key: 0,
24
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"
25
- }, F = ["data-cy"], O = {
13
+ }, B = ["data-cy"], O = {
26
14
  key: 0,
27
15
  class: "uikit-mx-10px uikit-select-none"
28
- }, V = {
16
+ }, A = {
29
17
  key: 1,
30
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"
31
- }, A = ["onClick"], E = ["onClick"], z = {
19
+ }, F = ["onClick"], V = ["onClick"], E = {
32
20
  key: 0,
33
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"
34
- }, G = ["data-cy"], T = {
22
+ }, z = ["data-cy"], q = {
35
23
  key: 0,
36
24
  class: "uikit-mx-10px uikit-select-none"
37
- }, Q = /* @__PURE__ */ j({
25
+ }, T = /* @__PURE__ */ j({
38
26
  __name: "BasePagination",
39
27
  props: /* @__PURE__ */ P({
40
28
  count: { default: 0 },
@@ -52,113 +40,113 @@ const $ = {
52
40
  pageNumberModifiers: {}
53
41
  }),
54
42
  emits: ["update:pageNumber"],
55
- setup(l) {
56
- const t = D(l, "pageNumber"), a = s(() => Math.ceil((l.count + l.additionalCount) / l.limit)), g = s(() => (t.value || 0) > l.siblings + 2), f = s(
57
- () => (t.value || 0) < a.value - l.siblings - 1
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
58
46
  ), b = s(() => {
59
- let e = t.value || 0, u = 0;
60
- for (; e > 2 && u < l.siblings; )
61
- e--, u++;
62
- return u;
47
+ let e = u.value || 0, t = 0;
48
+ for (; e > 2 && t < a.siblings; )
49
+ e--, t++;
50
+ return t;
63
51
  }), w = s(() => {
64
- let e = t.value || 0, u = 0;
65
- for (; e < a.value - 1 && u < l.siblings; )
66
- e++, u++;
67
- return u;
52
+ let e = u.value || 0, t = 0;
53
+ for (; e < n.value - 1 && t < a.siblings; )
54
+ e++, t++;
55
+ return t;
68
56
  }), N = s(() => {
69
57
  const i = b.value + /* Filling with the remaining right siblings */
70
- Math.abs(w.value - l.siblings) + /* If there is no suspension points on the right, let's fill it */
58
+ Math.abs(w.value - a.siblings) + /* If there is no suspension points on the right, let's fill it */
71
59
  new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
72
- new Number(t.value === a.value).valueOf();
73
- let e = Math.max((t.value || 0) - i, 2);
74
- const u = [];
75
- for (e; e < (t.value || 0); e++) u.push(e);
76
- return u;
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;
77
65
  }), M = s(() => {
78
66
  const i = w.value + /* Filling with the remaining left siblings */
79
- Math.abs(b.value - l.siblings) + /* If there is no suspension points on the left, let's fill it */
67
+ Math.abs(b.value - a.siblings) + /* If there is no suspension points on the left, let's fill it */
80
68
  new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
81
- new Number(t.value === 1).valueOf();
82
- let e = Math.min(t.value || 0, a.value - 1);
83
- const u = [];
84
- for (e; e < Math.min((t.value || 0) + i, a.value - 1); e++)
85
- u.push(e + 1);
86
- return u;
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;
87
75
  }), k = (i) => {
88
76
  let e = i;
89
- i < 1 ? e = 1 : i > a.value && (e = a.value), t.value = e;
77
+ i < 1 ? e = 1 : i > n.value && (e = n.value), u.value = e;
90
78
  };
91
- return (i, e) => (r(), n("nav", $, [
92
- i.count > 0 ? (r(), n("ul", B, [
79
+ return (i, e) => (r(), l("nav", D, [
80
+ i.count > 0 ? (r(), l("ul", $, [
93
81
  p("li", {
94
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", {
95
- "uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": t.value !== 1,
96
- "hover:uikit-text-white": i.small && t.value !== 1,
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,
97
85
  "uikit-rounded-xs": i.small && i.prevLabel
98
86
  }]),
99
87
  "data-cy": i.prevDataCy,
100
- onClick: e[0] || (e[0] = (u) => k((t.value || 0) - 1))
88
+ onClick: e[0] || (e[0] = (t) => k((u.value || 0) - 1))
101
89
  }, [
102
90
  y(v(C), {
103
91
  width: 20,
104
92
  height: 11,
105
- "stroke-color": t.value === 1 ? "#8996A9" : i.arrowColor,
93
+ "stroke-color": u.value === 1 ? "#8996A9" : i.arrowColor,
106
94
  class: "uikit-inline-block uikit-rotate-90"
107
95
  }, null, 8, ["stroke-color"]),
108
- i.small && i.prevLabel ? (r(), n("span", O, c(i.prevLabel), 1)) : o("", !0)
109
- ], 10, F),
110
- i.small ? o("", !0) : (r(), n(m, { key: 0 }, [
111
- (t.value || 0) > 1 ? (r(), n("li", {
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", {
112
100
  key: 0,
113
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",
114
- onClick: e[1] || (e[1] = (u) => k(0))
102
+ onClick: e[1] || (e[1] = (t) => k(0))
115
103
  }, " 1 ")) : o("", !0),
116
- g.value ? (r(), n("li", V, " ... ")) : o("", !0),
117
- (r(!0), n(m, null, x(N.value, (u) => (r(), n("li", {
118
- key: u,
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,
119
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",
120
- onClick: (L) => k(u)
121
- }, c(v(d)(u)), 9, A))), 128))
108
+ onClick: (L) => k(t)
109
+ }, c(v(d)(t)), 9, F))), 128))
122
110
  ], 64)),
123
111
  p("li", {
124
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", {
125
113
  "uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
126
114
  }])
127
- }, c(t.value || 0), 3),
128
- i.small ? o("", !0) : (r(), n(m, { key: 1 }, [
129
- (r(!0), n(m, null, x(M.value, (u) => (r(), n("li", {
130
- key: u,
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,
131
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",
132
- onClick: (L) => k(u)
133
- }, c(v(d)(u)), 9, E))), 128)),
134
- f.value ? (r(), n("li", z, " ... ")) : o("", !0),
135
- (t.value || 0) < a.value ? (r(), n("li", {
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", {
136
124
  key: 1,
137
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",
138
- onClick: e[2] || (e[2] = (u) => k(a.value))
139
- }, c(v(d)(a.value)), 1)) : o("", !0)
126
+ onClick: e[2] || (e[2] = (t) => k(n.value))
127
+ }, c(v(d)(n.value)), 1)) : o("", !0)
140
128
  ], 64)),
141
129
  p("li", {
142
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", {
143
- "uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (t.value || 0) < a.value,
144
- "hover:uikit-text-white": i.small && (t.value || 0) < a.value,
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,
145
133
  "uikit-rounded-xs": i.small && i.nextLabel
146
134
  }]),
147
135
  "data-cy": i.nextDataCy,
148
- onClick: e[3] || (e[3] = (u) => k((t.value || 0) + 1))
136
+ onClick: e[3] || (e[3] = (t) => k((u.value || 0) + 1))
149
137
  }, [
150
- i.small && i.nextLabel ? (r(), n("span", T, c(i.nextLabel), 1)) : o("", !0),
138
+ i.small && i.nextLabel ? (r(), l("span", q, c(i.nextLabel), 1)) : o("", !0),
151
139
  y(v(C), {
152
- "stroke-color": (t.value || 0) === a.value ? "#8996A9" : i.arrowColor,
140
+ "stroke-color": (u.value || 0) === n.value ? "#8996A9" : i.arrowColor,
153
141
  width: 20,
154
142
  height: 11,
155
143
  class: "uikit-inline-block -uikit-rotate-90"
156
144
  }, null, 8, ["stroke-color"])
157
- ], 10, G)
145
+ ], 10, z)
158
146
  ])) : o("", !0)
159
147
  ]));
160
148
  }
161
149
  });
162
150
  export {
163
- Q as _
151
+ T as default
164
152
  };
@@ -0,0 +1,7 @@
1
+ import { defineComponent as e } from "vue";
2
+ const n = e({
3
+ name: "BasePaper"
4
+ });
5
+ export {
6
+ n as default
7
+ };
@@ -37,5 +37,5 @@ const b = ["tabindex"], x = ["innerHTML"], $ = /* @__PURE__ */ r({
37
37
  }
38
38
  });
39
39
  export {
40
- $ as _
40
+ $ as default
41
41
  };
@@ -0,0 +1,207 @@
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
+ __name: "BaseSlider",
5
+ props: /* @__PURE__ */ j({
6
+ type: { default: "linear" },
7
+ min: { default: 0 },
8
+ max: { default: 100 }
9
+ }, {
10
+ minValue: { default: 0 },
11
+ minValueModifiers: {},
12
+ maxValue: { default: 0 },
13
+ maxValueModifiers: {}
14
+ }),
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(
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")
50
+ return e = e || 1, parseInt(
51
+ L({
52
+ value: e,
53
+ minPos: n.value,
54
+ minlval: F.value,
55
+ scale: B.value
56
+ }).toFixed(0),
57
+ 10
58
+ );
59
+ if (m.type === "linear")
60
+ return e;
61
+ throw new Error("The slider type has not been implemented");
62
+ }, b = (e) => {
63
+ if (m.type === "logarithmic")
64
+ return e = e || 1, parseInt(
65
+ z({
66
+ position: e,
67
+ scale: B.value,
68
+ minlval: F.value,
69
+ minPos: n.value
70
+ }).toFixed(0),
71
+ 10
72
+ );
73
+ if (m.type === "linear")
74
+ return e;
75
+ 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"])
190
+ ]),
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
+ ])
201
+ ])
202
+ ]));
203
+ }
204
+ });
205
+ export {
206
+ te as default
207
+ };
@@ -0,0 +1,81 @@
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";
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
+ key: 1,
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({
8
+ inheritAttrs: !1,
9
+ __name: "BaseSnackbar",
10
+ props: {
11
+ type: { default: "" },
12
+ title: {},
13
+ body: {},
14
+ icon: {},
15
+ timeout: { default: 55e4 },
16
+ cb: { default: null }
17
+ },
18
+ emits: ["snackbar-hidden"],
19
+ setup(k, { emit: m }) {
20
+ const n = k, d = m, o = u(null), r = u(null), p = () => {
21
+ o.value && o.value();
22
+ }, c = () => {
23
+ const t = r.value;
24
+ t && (t.classList.remove("snackbar-active"), t.classList.add("snackbar-hidden"), setTimeout(() => {
25
+ d("snackbar-hidden");
26
+ }, 300));
27
+ };
28
+ return f(() => {
29
+ n.cb && (o.value = n.cb), setTimeout(() => {
30
+ c();
31
+ }, n.timeout);
32
+ }), (t, S) => (i(), h(y, { to: "body" }, [
33
+ e("div", g, [
34
+ e("div", {
35
+ ref_key: "snackbar",
36
+ ref: r,
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"])
40
+ }, [
41
+ t.icon ? (i(), a("img", {
42
+ key: 0,
43
+ src: t.icon.src,
44
+ alt: `${t.icon.alt}`,
45
+ width: "20",
46
+ height: "20"
47
+ }, null, 8, w)) : s("", !0),
48
+ t.type && !t.icon ? (i(), a("span", L)) : s("", !0),
49
+ e("div", M, [
50
+ t.title ? (i(), a("p", {
51
+ key: 0,
52
+ class: "uikit-m-0",
53
+ innerHTML: t.title
54
+ }, null, 8, B)) : s("", !0),
55
+ t.body ? (i(), a("p", {
56
+ key: 1,
57
+ class: "uikit-m-0",
58
+ innerHTML: t.body
59
+ }, null, 8, H)) : s("", !0)
60
+ ]),
61
+ e("button", {
62
+ type: "button",
63
+ "data-cy": "base-snackbar-close-btn",
64
+ class: "uikit-bg-transparent max-sm:uikit-absolute max-sm:uikit-right-5",
65
+ onClick: l(c, ["stop"])
66
+ }, [
67
+ v(_(C), {
68
+ class: "snackbar-close-icon",
69
+ width: 20,
70
+ height: 20,
71
+ "stroke-color": "#000"
72
+ })
73
+ ])
74
+ ], 10, T)
75
+ ])
76
+ ]));
77
+ }
78
+ });
79
+ export {
80
+ z as default
81
+ };
@@ -0,0 +1,127 @@
1
+ import { defineComponent as h, mergeModels as f, useModel as $, ref as x, watch as L, createElementBlock as k, openBlock as b, normalizeClass as s, createElementVNode as o, createCommentVNode as p, unref as a, createVNode as M, withModifiers as d, nextTick as C } from "vue";
2
+ import F from "../../../../UIKit/BaseFloatingLabel.js";
3
+ import { useFloatingLabel as z } from "../../../../composables/useFloatingLabel.js";
4
+ const B = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], E = {
5
+ key: 0,
6
+ class: "uikit-visible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-duration-[50s] uikit-ease-out"
7
+ }, H = ["innerHTML"], q = ["innerHTML"], S = /* @__PURE__ */ h({
8
+ inheritAttrs: !1,
9
+ __name: "BaseTextarea",
10
+ props: /* @__PURE__ */ f({
11
+ labelText: { default: "" },
12
+ feedback: {},
13
+ isValid: { default: null },
14
+ resize: { type: Boolean, default: !1 },
15
+ labelClasses: {}
16
+ }, {
17
+ modelValue: { default: "" },
18
+ modelModifiers: {}
19
+ }),
20
+ emits: /* @__PURE__ */ f(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
21
+ setup(v, { expose: m, emit: w }) {
22
+ const r = $(v, "modelValue"), n = w, {
23
+ labelState: l,
24
+ handleFocusIn: c,
25
+ handleFocusOut: g,
26
+ setFloatingLabel: y,
27
+ setInlineLabel: V
28
+ } = z(n), i = x(null);
29
+ L(
30
+ r,
31
+ (e) => {
32
+ `${e}`.length && l.value !== "floating-label" ? y() : !e?.length && l.value !== "inline-label" && document.activeElement !== i.value && V();
33
+ },
34
+ { immediate: !0 }
35
+ );
36
+ const T = ({ target: e }) => {
37
+ r.value = e.value;
38
+ };
39
+ return m({
40
+ disableTextarea: () => {
41
+ i.value && (i.value.setAttribute("readonly", "readonly"), i.value.classList.add("disabled"));
42
+ },
43
+ clearTextareaElem: () => {
44
+ i.value && (i.value.value = "");
45
+ },
46
+ focusDisabledTextarea: () => {
47
+ i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"), C(() => {
48
+ i.value && i.value.focus();
49
+ }));
50
+ }
51
+ }), (e, t) => (b(), k("div", {
52
+ class: s(e.$attrs["wrapper-classes"])
53
+ }, [
54
+ o("div", {
55
+ class: s(["input-wrapper uikit-relative uikit-rounded-xs uikit-px-0", [
56
+ a(l) === "floating-label" ? "floating-state" : "inline-state"
57
+ ]])
58
+ }, [
59
+ o("textarea", {
60
+ id: e.$attrs.id,
61
+ ref_key: "textarea",
62
+ ref: i,
63
+ "data-cy": e.$attrs["data-cy"],
64
+ class: s(["textarea-scrollbar uikit-peer/fieldset uikit-relative uikit-z-20 uikit-mb-10px uikit-mt-15px uikit-w-[calc(100%-1px)] uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-xs uikit-border-0 uikit-bg-transparent uikit-bg-no-repeat uikit-px-15px uikit-pb-[8px] uikit-outline-none", [
65
+ { "is-invalid invalid-bg !uikit-pr-10": e.isValid === !1 },
66
+ { "is-valid valid-bg !uikit-pr-10": e.isValid },
67
+ { "uikit-resize-none": !e.resize },
68
+ e.$attrs.class
69
+ ]]),
70
+ rows: e.$attrs.rows,
71
+ disabled: e.$attrs.disabled,
72
+ "aria-labelledby": e.$attrs.id,
73
+ readonly: e.$attrs.readonly,
74
+ onFocusin: t[0] || (t[0] = d((u) => a(c)(), ["stop"])),
75
+ onFocusout: t[1] || (t[1] = d((u) => a(g)(`${r.value}`.trim()), ["stop"])),
76
+ onInput: d(T, ["stop"]),
77
+ onKeydown: t[2] || (t[2] = d((u) => n("keydown", u), ["stop"])),
78
+ onClick: t[3] || (t[3] = (u) => n("click", u)),
79
+ value: r.value
80
+ }, null, 42, B),
81
+ o("fieldset", {
82
+ class: s(["uikit-pointer-events-none uikit-absolute -uikit-top-0 uikit-bottom-[3px] uikit-left-0 uikit-right-0 uikit-m-0 uikit-min-w-0 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-bg-white uikit-p-0 uikit-px-2 uikit-text-start uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus/fieldset:uikit-border-2 peer-focus/fieldset:uikit-border-w-primary peer-disabled/fieldset:uikit-bg-w-cultured peer-[&.disabled]/fieldset:uikit-bg-w-cultured peer-focus/fieldset:[&.is-invalid]:uikit-border-w-danger", [
83
+ { "is-invalid": e.isValid === !1, "is-valid": e.isValid },
84
+ { "uikit-border-w-danger": e.isValid === !1 },
85
+ { "uikit-border-w-primary": e.isValid },
86
+ { "uikit-border-w-secondary": e.isValid === null }
87
+ ]])
88
+ }, [
89
+ e.labelText ? (b(), k("legend", E, [
90
+ o("span", {
91
+ class: s(["uikit-px-5px uikit-opacity-0", [
92
+ {
93
+ "uikit-visible uikit-inline-block": a(l) === "floating-label"
94
+ },
95
+ {
96
+ "uikit-invisible uikit-hidden": a(l) === "inline-label"
97
+ }
98
+ ]]),
99
+ innerHTML: e.labelText
100
+ }, null, 10, H)
101
+ ])) : p("", !0)
102
+ ], 2),
103
+ M(F, {
104
+ for: e.$attrs.id,
105
+ "label-text": e.labelText,
106
+ "label-state": a(l),
107
+ required: e.$attrs.required,
108
+ "is-valid": e.isValid,
109
+ "label-classes": [
110
+ a(l) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
111
+ e.labelClasses
112
+ ]
113
+ }, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "label-classes"])
114
+ ], 2),
115
+ (e.isValid || e.isValid === !1) && e.feedback ? (b(), k("div", {
116
+ key: 0,
117
+ class: s(
118
+ e.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"
119
+ ),
120
+ innerHTML: e.isValid === !1 ? e.feedback.invalid : e.feedback.valid
121
+ }, null, 10, q)) : p("", !0)
122
+ ], 2));
123
+ }
124
+ });
125
+ export {
126
+ S as default
127
+ };