@wikicasa-dev/components 2.1.4-alpha.10 → 2.1.4-alpha.13

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 (208) 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 +2 -2
  7. package/dist/UIKit/BaseAutocomplete.d.ts +9 -13
  8. package/dist/UIKit/BaseAutocomplete.js +3 -2
  9. package/dist/UIKit/BaseBadge.js +2 -2
  10. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +1 -1
  11. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +1 -1
  12. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +1 -1
  13. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +1 -1
  14. package/dist/UIKit/BaseBanner.js +1 -1
  15. package/dist/UIKit/BaseBreadcrumb.js +2 -2
  16. package/dist/UIKit/BaseButton.js +1 -1
  17. package/dist/UIKit/BaseCard.js +2 -2
  18. package/dist/UIKit/BaseChip.js +1 -1
  19. package/dist/UIKit/BaseCollapse.js +2 -2
  20. package/dist/UIKit/BaseComplexToggle.js +2 -2
  21. package/dist/UIKit/BaseDropDown.d.ts +8 -13
  22. package/dist/UIKit/BaseDropDown.js +1 -1
  23. package/dist/UIKit/BaseFloatingLabel.js +2 -2
  24. package/dist/UIKit/BaseIcon.js +2 -2
  25. package/dist/UIKit/BaseInput.d.ts +3 -3
  26. package/dist/UIKit/BaseInput.js +2 -2
  27. package/dist/UIKit/BaseModal.js +2 -2
  28. package/dist/UIKit/BaseNotificationBadge.js +1 -1
  29. package/dist/UIKit/BasePagination.d.ts +7 -1
  30. package/dist/UIKit/BasePagination.js +1 -1
  31. package/dist/UIKit/BasePaper.js +2 -2
  32. package/dist/UIKit/BasePin.js +2 -2
  33. package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
  34. package/dist/UIKit/BaseSelect.js +2 -2
  35. package/dist/UIKit/BaseSlider.js +1 -1
  36. package/dist/UIKit/BaseSnackbar.js +2 -2
  37. package/dist/UIKit/BaseTextarea.js +2 -2
  38. package/dist/UIKit/BaseToggle.js +1 -1
  39. package/dist/UIKit/BaseTooltip.js +2 -2
  40. package/dist/UIKit/BaseUploadFile.js +1 -1
  41. package/dist/UIKit/Checkbox/CheckboxBtn.js +1 -1
  42. package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
  43. package/dist/UIKit/DatePicker.js +2 -2
  44. package/dist/UIKit/InputDropdown.js +1 -1
  45. package/dist/UIKit/Navigation/NavigationBar.js +2 -2
  46. package/dist/UIKit/Navigation/NavigationBarItem.js +1 -1
  47. package/dist/UIKit/Radio/RadioButton.js +1 -1
  48. package/dist/UIKit/Radio/RadioGroup.js +1 -1
  49. package/dist/UIKit/SegmentedControl/SegmentedControl.js +1 -1
  50. package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +1 -1
  51. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +2 -2
  52. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
  53. package/dist/UIKit/StaticSpinner.js +2 -2
  54. package/dist/UIKit/Tab/BaseTab.js +1 -1
  55. package/dist/UIKit/Tab/BaseTabItem.js +1 -1
  56. package/dist/UIKit/Tab/BaseTabList.js +1 -1
  57. package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
  58. package/dist/UIKit/Tab/BaseTabView.js +1 -1
  59. package/dist/UIKit/types.d.ts +5 -2
  60. package/dist/_virtual/polyline.js +1 -1
  61. package/dist/assets/lib/UIKit/BaseAutocomplete.css +1 -0
  62. package/dist/assets/lib/UIKit/BaseInput.css +1 -0
  63. package/dist/assets/src/tailwind.css +1 -0
  64. package/dist/chart/DoughnutChart.js +1 -1
  65. package/dist/chart/LineChart.js +1 -1
  66. package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
  67. package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
  68. package/dist/components/carousel/SwiperCarousel.js +3 -3
  69. package/dist/index.js +102 -101
  70. package/dist/lazyModules/Swiper/autoplay.js +5 -0
  71. package/dist/lazyModules/Swiper/controller.js +5 -0
  72. package/dist/lazyModules/Swiper/free-mode.js +5 -0
  73. package/dist/lazyModules/Swiper/keyboard.js +5 -0
  74. package/dist/lazyModules/Swiper/navigation.js +5 -0
  75. package/dist/lazyModules/Swiper/pagination.js +5 -0
  76. package/dist/lazyModules/Swiper/thumbs.js +5 -0
  77. package/dist/{packages/components/lib → lib}/UIKit/AccessibleSelect.vue.js +4 -4
  78. package/dist/lib/UIKit/Accordion/BaseAccordion.vue.js +34 -0
  79. package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  80. package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
  81. package/dist/{packages/components/lib → lib}/UIKit/BaseAlert.vue.js +2 -2
  82. package/dist/lib/UIKit/BaseAutocomplete.vue.js +155 -0
  83. package/dist/{packages/components/lib → lib}/UIKit/BaseBanner.vue.js +8 -8
  84. package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +1 -1
  85. package/dist/{packages/components/lib → lib}/UIKit/BaseChip.vue.js +2 -2
  86. package/dist/{packages/components/lib → lib}/UIKit/BaseCollapse.vue.js +2 -2
  87. package/dist/lib/UIKit/BaseDropDown.vue.js +128 -0
  88. package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +48 -49
  89. package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +2 -2
  90. package/dist/lib/UIKit/BasePagination.vue.js +130 -0
  91. package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +1 -1
  92. package/dist/{packages/components/lib → lib}/UIKit/BaseSnackbar.vue.js +2 -2
  93. package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +2 -2
  94. package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +2 -2
  95. package/dist/{packages/components/lib → lib}/UIKit/DatePicker.vue.js +4 -4
  96. package/dist/{packages/components/lib → lib}/UIKit/InputDropdown.vue.js +1 -1
  97. package/dist/{packages/components/lib → lib}/UIKit/Navigation/NavigationBarItem.vue.js +18 -18
  98. package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +1 -1
  99. package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabItem.vue.js +3 -3
  100. package/dist/{packages/components/lib → lib}/chart/DoughnutChart.vue.js +1 -1
  101. package/dist/{packages/components/lib → lib}/chart/LineChart.vue.js +1 -1
  102. package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +9 -8
  103. package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/keyboard.js +13 -13
  104. package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/shared/classes-to-selector.js +1 -1
  105. package/package.json +18 -33
  106. package/dist/assets/packages/components/lib/UIKit/BaseInput.css +0 -1
  107. package/dist/assets/packages/components/src/tailwind.css +0 -1
  108. package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
  109. package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
  110. package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
  111. package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
  112. package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
  113. package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
  114. package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
  115. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +0 -33
  116. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +0 -193
  117. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +0 -140
  118. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +0 -107
  119. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
  120. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +0 -0
  121. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBreadcrumb.css +0 -0
  122. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseCard.css +0 -0
  123. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseCollapse.css +0 -0
  124. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseComplexToggle.css +0 -0
  125. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
  126. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
  127. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseModal.css +0 -0
  128. /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
  129. /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePin.css +0 -0
  130. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSelect.css +0 -0
  131. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSnackbar.css +0 -0
  132. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
  133. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
  134. /package/dist/assets/{packages/components/lib → lib}/UIKit/DatePicker.css +0 -0
  135. /package/dist/assets/{packages/components/lib → lib}/UIKit/Navigation/NavigationBar.css +0 -0
  136. /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
  137. /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
  138. /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
  139. /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
  140. /package/dist/assets/node_modules/{.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic → @vuepic}/vue-datepicker/dist/main.css +0 -0
  141. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/free-mode.css +0 -0
  142. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/navigation.css +0 -0
  143. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/pagination.css +0 -0
  144. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/zoom.css +0 -0
  145. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/swiper.css +0 -0
  146. /package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +0 -0
  147. /package/dist/{packages/components/lib → lib}/UIKit/BaseBadge.vue.js +0 -0
  148. /package/dist/{packages/components/lib → lib}/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -0
  149. /package/dist/{packages/components/lib → lib}/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -0
  150. /package/dist/{packages/components/lib → lib}/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -0
  151. /package/dist/{packages/components/lib → lib}/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -0
  152. /package/dist/{packages/components/lib → lib}/UIKit/BaseBreadcrumb.vue.js +0 -0
  153. /package/dist/{packages/components/lib → lib}/UIKit/BaseCard.vue.js +0 -0
  154. /package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +0 -0
  155. /package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +0 -0
  156. /package/dist/{packages/components/lib → lib}/UIKit/BaseIcon.vue.js +0 -0
  157. /package/dist/{packages/components/lib → lib}/UIKit/BaseNotificationBadge.vue.js +0 -0
  158. /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
  159. /package/dist/{packages/components/lib → lib}/UIKit/BasePin.vue.js +0 -0
  160. /package/dist/{packages/components/lib → lib}/UIKit/BaseSelect/SelectItem.vue.js +0 -0
  161. /package/dist/{packages/components/lib → lib}/UIKit/BaseSelect.vue.js +0 -0
  162. /package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +0 -0
  163. /package/dist/{packages/components/lib → lib}/UIKit/BaseTooltip.vue.js +0 -0
  164. /package/dist/{packages/components/lib → lib}/UIKit/BaseUploadFile.vue.js +0 -0
  165. /package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxGroup.vue.js +0 -0
  166. /package/dist/{packages/components/lib → lib}/UIKit/Navigation/NavigationBar.vue.js +0 -0
  167. /package/dist/{packages/components/lib → lib}/UIKit/Radio/RadioButton.vue.js +0 -0
  168. /package/dist/{packages/components/lib → lib}/UIKit/Radio/RadioGroup.vue.js +0 -0
  169. /package/dist/{packages/components/lib → lib}/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -0
  170. /package/dist/{packages/components/lib → lib}/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -0
  171. /package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -0
  172. /package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +0 -0
  173. /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
  174. /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabList.vue.js +0 -0
  175. /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabPanel.vue.js +0 -0
  176. /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabView.vue.js +0 -0
  177. /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObservable.vue.js +0 -0
  178. /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
  179. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/ArrowFilledIcon.js +0 -0
  180. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/ArrowIcon.js +0 -0
  181. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/CheckIcon.js +0 -0
  182. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/CloseIcon.js +0 -0
  183. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  184. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/PharmacyIcon.js +0 -0
  185. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/WarningIconRounded.js +0 -0
  186. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/svgIconFactory-BpnFimFz.js +0 -0
  187. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/FunctionUtils.js +0 -0
  188. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ObjectUtils.js +0 -0
  189. /package/dist/node_modules/{.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/vue-composables/dist/useBreakpoints.js +0 -0
  190. /package/dist/node_modules/{.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/vue-composables/dist/useKeyboardController.js +0 -0
  191. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/decode.js +0 -0
  192. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/encode.js +0 -0
  193. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/polyline.js +0 -0
  194. /package/dist/node_modules/{.pnpm/js-cookie@3.0.5/node_modules/js-cookie → js-cookie}/dist/js.cookie.js +0 -0
  195. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/autoplay.css.js +0 -0
  196. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/autoplay.js +0 -0
  197. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/controller.css.js +0 -0
  198. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/controller.js +0 -0
  199. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/free-mode.js +0 -0
  200. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/keyboard.css.js +0 -0
  201. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/navigation.js +0 -0
  202. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/pagination.js +0 -0
  203. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/thumbs.css.js +0 -0
  204. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/thumbs.js +0 -0
  205. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/modules/zoom.js +0 -0
  206. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/shared/create-element-if-not-defined.js +0 -0
  207. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/shared/ssr-window.esm.js +0 -0
  208. /package/dist/node_modules/{.pnpm/swiper@11.2.8/node_modules/swiper → swiper}/shared/utils.js +0 -0
@@ -0,0 +1,155 @@
1
+ import { defineComponent as P, mergeModels as y, useModel as A, ref as c, computed as g, onBeforeMount as L, watch as m, createBlock as C, openBlock as v, normalizeClass as z, withCtx as p, createElementBlock as G, Fragment as H, renderList as K, unref as $, createCommentVNode as N, createElementVNode as B, resolveDynamicComponent as F, createVNode as T, createSlots as j, withDirectives as W, vShow as X, renderSlot as q } from "vue";
2
+ import J from "./BaseInput.vue.js";
3
+ import '../../assets/lib/UIKit/BaseInput.css';/* empty css */
4
+ import Q from "./BaseDropDown.vue.js";
5
+ import { debounce as R } from "../../node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
6
+ import Y from "./BaseSelect/SelectItem.vue.js";
7
+ import { useKeyboardController as Z } from "../../node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
8
+ const x = ["onClick"], _ = ["innerHTML"], ue = /* @__PURE__ */ P({
9
+ __name: "BaseAutocomplete",
10
+ props: /* @__PURE__ */ y({
11
+ isValid: { default: null },
12
+ disableCb: { type: Boolean, default: !1 },
13
+ onInputChangeCb: { type: Function },
14
+ onOptionSelectedCb: { default: null },
15
+ keepState: { default: null },
16
+ cleanupOnClose: { type: Boolean, default: !0 },
17
+ dropdownClasses: { default: "" },
18
+ closeDropdownOnBodyPressed: { type: Boolean, default: !0 },
19
+ inputClasses: {},
20
+ fieldsetClasses: {},
21
+ placeholder: { default: "" },
22
+ dataCy: { default: "" }
23
+ }, {
24
+ modelValue: {
25
+ default() {
26
+ return { id: "", label: "" };
27
+ }
28
+ },
29
+ modelModifiers: {}
30
+ }),
31
+ emits: /* @__PURE__ */ y(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
32
+ setup(o, { expose: D, emit: S }) {
33
+ const u = A(o, "modelValue"), s = S, i = c(""), a = c([]), d = c(null), n = c(!1), b = c(null), V = g(() => a.value.length);
34
+ L(() => {
35
+ d.value = R({ delay: 300 }, o.onInputChangeCb);
36
+ });
37
+ const { activeIdx: k, selectedIdx: r } = Z({
38
+ optionsLength: V,
39
+ isDropdownOpen: n,
40
+ disableSpaceHandler: !0
41
+ }), h = g(() => r.value !== -1), I = async (e) => {
42
+ if (i.value !== e && (s("changedValue", e), i.value = e, !!o.onInputChangeCb)) {
43
+ if (!e || h.value) {
44
+ a.value = [], r.value = -1, k.value = -1, u.value && (u.value.label = ""), n.value = !1, await d.value?.("");
45
+ return;
46
+ }
47
+ o.disableCb || !d.value || (a.value = await d.value(e), console.log("DEBUG:options", {
48
+ disableCb: o.disableCb,
49
+ cb: d.value,
50
+ length: a.value.length,
51
+ open: !!a.value.length
52
+ }), n.value = !!a.value.length);
53
+ }
54
+ }, w = (e, t) => {
55
+ o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (a.value = []), i.value = e.label, u.value = e, n.value = !1, r.value = t;
56
+ }, O = () => {
57
+ a.value.length && o.keepState !== "closed" && (n.value = !0);
58
+ };
59
+ m(
60
+ u,
61
+ (e, t) => {
62
+ e === t || e?.label === i.value || (i.value = e?.label || "");
63
+ },
64
+ { immediate: !0 }
65
+ ), m(r, (e) => {
66
+ if (e === -1 || !a.value.length) return;
67
+ const t = a.value[e];
68
+ h.value && t.label === u.value?.label || w(t, e);
69
+ }), m(
70
+ n,
71
+ (e) => {
72
+ console.log("DEBUG:BaseAutocomplete => openDropdown watcher", e), s("update:dropdownState", e);
73
+ },
74
+ { immediate: !0 }
75
+ );
76
+ const E = () => {
77
+ b.value?.select();
78
+ }, M = () => {
79
+ s("click"), O(), console.log("DEBUG:BaseAutocomplete => handleDropDownClick", {
80
+ "options.value.length": a.value.length
81
+ }), a.value.length && (n.value = !0);
82
+ };
83
+ return D({
84
+ select: E
85
+ }), (e, t) => (v(), C(Q, {
86
+ open: n.value,
87
+ "onUpdate:open": t[3] || (t[3] = (l) => n.value = l),
88
+ class: z(e.$attrs["root-classes"]),
89
+ "data-cy": e.dataCy ? e.dataCy : `ac_${e.$attrs.id}`,
90
+ "dropdown-element": "ul",
91
+ "dropdown-classes": ["!uikit-max-h-[210px] uikit-z-30", e.dropdownClasses],
92
+ "close-when-clicked-outside": e.closeDropdownOnBodyPressed,
93
+ "activate-keyboard-controller": !1,
94
+ "onUpdate:dropdownState": t[4] || (t[4] = (l) => n.value = l),
95
+ onClick: M
96
+ }, {
97
+ btn_slot: p(() => [
98
+ T(J, {
99
+ id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
100
+ ref_key: "baseInput",
101
+ ref: b,
102
+ "data-cy": e.dataCy ? `ac_input_${e.dataCy}` : `ac_input_${e.$attrs.id}`,
103
+ "model-value": i.value,
104
+ "is-valid": e.isValid,
105
+ disabled: e.$attrs.disabled,
106
+ placeholder: e.placeholder,
107
+ "input-class": [e.inputClasses, "!uikit-text"],
108
+ "fieldset-classes": [e.fieldsetClasses],
109
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => I(l === void 0 ? "" : `${l}`)),
110
+ onKeydown: t[1] || (t[1] = (l) => s("keydown", l)),
111
+ onKeydownEnterPressed: t[2] || (t[2] = () => s("keydownEnterPressed"))
112
+ }, j({
113
+ rightIcon: p(({ handleClean: l }) => [
114
+ W(B("span", {
115
+ class: "text-input-icon right uikit-flex uikit-size-md uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-lightgray uikit-text uikit-font-semibold uikit-text-white",
116
+ onClick: l
117
+ }, "X", 8, x), [
118
+ [X, $(r) !== -1]
119
+ ])
120
+ ]),
121
+ _: 2
122
+ }, [
123
+ e.$slots.leftIcon ? {
124
+ name: "leftIcon",
125
+ fn: p(() => [
126
+ q(e.$slots, "leftIcon")
127
+ ]),
128
+ key: "0"
129
+ } : void 0
130
+ ]), 1032, ["id", "data-cy", "model-value", "is-valid", "disabled", "placeholder", "input-class", "fieldset-classes"])
131
+ ]),
132
+ default: p(() => [
133
+ (v(!0), G(H, null, K(a.value, (l, f) => (v(), C(Y, {
134
+ key: f,
135
+ active: $(k) === f,
136
+ class: "uikit-relative uikit-flex uikit-gap-x-xs uikit-rounded-[5px] uikit-p-md uikit-py-xs uikit-text after:uikit-absolute after:uikit-bottom-0 after:uikit-left-1/2 after:uikit-h-[1px] after:uikit-w-[95%] after:-uikit-translate-x-1/2 after:uikit-bg-w-lightgray after:uikit-content-[''] after:last:uikit-hidden hover:uikit-cursor-pointer",
137
+ onClick: (U) => w(l, f),
138
+ onMouseover: (U) => k.value = f
139
+ }, {
140
+ default: p(() => [
141
+ l.icon ? (v(), C(F(l.icon), { key: 0 })) : N("", !0),
142
+ B("span", {
143
+ innerHTML: l.label
144
+ }, null, 8, _)
145
+ ]),
146
+ _: 2
147
+ }, 1032, ["active", "onClick", "onMouseover"]))), 128))
148
+ ]),
149
+ _: 3
150
+ }, 8, ["open", "class", "data-cy", "dropdown-classes", "close-when-clicked-outside"]));
151
+ }
152
+ });
153
+ export {
154
+ ue as default
155
+ };
@@ -1,4 +1,4 @@
1
- import { defineComponent as d, createElementBlock as k, openBlock as e, normalizeClass as m, createElementVNode as a, renderSlot as o, createVNode as t, createBlock as s, resolveDynamicComponent as r, withCtx as l, createTextVNode as u, toDisplayString as n } from "vue";
1
+ import { defineComponent as d, createElementBlock as k, openBlock as e, normalizeClass as m, createElementVNode as s, renderSlot as o, createVNode as t, createBlock as n, resolveDynamicComponent as r, withCtx as l, createTextVNode as u, toDisplayString as a } from "vue";
2
2
  import c from "./BaseBanner/Background/BaseBannerBgElement1.vue.js";
3
3
  import b from "./BaseBanner/Background/BaseBannerBgElement2.vue.js";
4
4
  import h from "./BaseBanner/Background/BaseBannerBgElement3.vue.js";
@@ -10,7 +10,7 @@ const f = ["aria-label"], g = { class: "uikit-relative uikit-z-[2]" }, v = { cla
10
10
  headerTag: {},
11
11
  title: {},
12
12
  description: {},
13
- ctaComponent: { type: [Object, Function] },
13
+ ctaComponent: {},
14
14
  ctaLabel: {},
15
15
  bannerClass: {}
16
16
  },
@@ -22,23 +22,23 @@ const f = ["aria-label"], g = { class: "uikit-relative uikit-z-[2]" }, v = { cla
22
22
  i.bannerClass === "secondary" ? "uikit-bg-w-blue" : "uikit-bg-w-pink"
23
23
  ])
24
24
  }, [
25
- a("div", g, [
25
+ s("div", g, [
26
26
  o(i.$slots, "title", {}, () => [
27
- (e(), s(r(i.headerTag || "h2"), { class: "uikit-m-0 uikit-text-20 max-sm:uikit-mb-xs" }, {
27
+ (e(), n(r(i.headerTag || "h2"), { class: "uikit-m-0 uikit-text-20 max-sm:uikit-mb-xs" }, {
28
28
  default: l(() => [
29
- u(n(i.title), 1)
29
+ u(a(i.title), 1)
30
30
  ]),
31
31
  _: 1
32
32
  }))
33
33
  ]),
34
34
  o(i.$slots, "description", {}, () => [
35
- a("p", v, n(i.description), 1)
35
+ s("p", v, a(i.description), 1)
36
36
  ])
37
37
  ]),
38
38
  o(i.$slots, "cta", {}, () => [
39
- (e(), s(r(i.ctaComponent || "button"), { class: "uikit-btn uikit-btn-ternary uikit-relative uikit-z-[2]" }, {
39
+ (e(), n(r(i.ctaComponent || "button"), { class: "uikit-btn uikit-btn-ternary uikit-relative uikit-z-[2]" }, {
40
40
  default: l(() => [
41
- u(n(i.ctaLabel), 1)
41
+ u(a(i.ctaLabel), 1)
42
42
  ]),
43
43
  _: 1
44
44
  }))
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, ref as v, computed as s, createElementBlock as c, openBlock as g, withModifiers as l, normalizeStyle as B, normalizeClass as h, renderSlot as r, createVNode as C } from "vue";
2
- import w from "../../../../UIKit/StaticSpinner.js";
2
+ import w from "../../UIKit/StaticSpinner.js";
3
3
  const M = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ f({
4
4
  __name: "BaseButton",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as a, useModel as d, createBlock as s, openBlock as i, unref as o, withCtx as k, renderSlot as m, createElementBlock as n, createCommentVNode as f, createVNode as c } from "vue";
2
2
  import { Toggle as p } from "reka-ui";
3
- import { CloseIcon as x } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.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";
3
+ import { CloseIcon as x } from "../../node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
4
+ import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
5
5
  const b = {
6
6
  key: 0,
7
7
  class: "uikit-box-border uikit-flex uikit-size-sm uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-blue uikit-text-10 uikit-text-white"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, mergeModels as p, useModel as d, createBlock as f, openBlock as m, unref as t, withCtx as i, createVNode as n, renderSlot as l, normalizeClass as k } from "vue";
2
- import { ArrowFilledIcon as c } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.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 { ArrowFilledIcon as c } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js";
3
+ import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
4
  import { CollapsibleRoot as b, CollapsibleTrigger as g, CollapsibleContent as C } from "reka-ui";
5
5
  const M = /* @__PURE__ */ s({
6
6
  __name: "BaseCollapse",
@@ -0,0 +1,128 @@
1
+ import { defineComponent as A, mergeModels as b, useId as L, useModel as M, ref as h, computed as O, useTemplateRef as H, onBeforeMount as W, onMounted as $, onUnmounted as V, watch as y, createElementBlock as U, openBlock as u, withModifiers as C, normalizeClass as l, renderSlot as g, createBlock as B, createVNode as G, unref as i, withCtx as D, createElementVNode as K, createCommentVNode as N, resolveDynamicComponent as T } from "vue";
2
+ import q from "./BaseButton.vue.js";
3
+ import { ArrowIcon as x } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
4
+ import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
5
+ import { useKeyboardController as z } from "../../node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
6
+ const R = ["innerHTML"], Y = /* @__PURE__ */ A({
7
+ inheritAttrs: !1,
8
+ __name: "BaseDropDown",
9
+ props: /* @__PURE__ */ b({
10
+ dropdownClasses: { default: "" },
11
+ btnClasses: { default: "" },
12
+ withArrowIcon: { type: Boolean, default: !1 },
13
+ btnLabel: { default: "" },
14
+ labelClasses: { default: "" },
15
+ direction: { default: "down" },
16
+ arrowWidth: { default: 12 },
17
+ arrowStrokeColor: { default: void 0 },
18
+ isAbsolute: { type: Boolean, default: !0 },
19
+ closeWhenClickedOutside: { type: Boolean, default: !0 },
20
+ dropdownElement: { default: "div" },
21
+ keepState: { default: "" },
22
+ activateKeyboardController: { type: Boolean, default: !0 },
23
+ disableSpaceHandler: { type: Boolean, default: !1 },
24
+ dataCy: { default: "" }
25
+ }, {
26
+ open: {},
27
+ openModifiers: {}
28
+ }),
29
+ emits: /* @__PURE__ */ b(["click", "update:dropdownState", "update:selectedIdx"], ["update:open"]),
30
+ setup(c, { emit: I }) {
31
+ const a = c, p = L(), f = I, o = M(c, "open"), t = h(!1), d = h([]), E = O(() => d.value.length), k = H("dropdown"), { activeIdx: m, selectedIdx: s } = z({
32
+ optionsLength: E,
33
+ isDropdownOpen: t,
34
+ activate: a.activateKeyboardController,
35
+ disableSpaceHandler: a.disableSpaceHandler
36
+ }), v = () => {
37
+ t.value = !1, o.value !== void 0 && (console.log("DEBUG:BaseDropdown closing", { openValue: o.value }), o.value = !1);
38
+ }, r = () => {
39
+ o.value === void 0 && (console.log("DEBUG:BaseDropdown toggling", { openValue: o.value }), t.value = !t.value);
40
+ }, w = (e) => {
41
+ e != null && (m.value = e);
42
+ }, S = (e) => {
43
+ e != null && (s.value = e);
44
+ };
45
+ return W(() => {
46
+ a.closeWhenClickedOutside && document.body.addEventListener("click", v);
47
+ }), $(() => {
48
+ k.value && (d.value = k.value.children || []);
49
+ }), V(() => {
50
+ a.closeWhenClickedOutside && document.body.removeEventListener("click", v);
51
+ }), y(s, (e) => {
52
+ e !== -1 && (d.value[e].querySelector("a")?.click(), f("update:selectedIdx", e));
53
+ }), y(
54
+ o,
55
+ (e) => {
56
+ console.log("DEBUG:BaseDropdown", e), e !== void 0 && (t.value = e);
57
+ },
58
+ { immediate: !0 }
59
+ ), (e, n) => (u(), U("div", {
60
+ class: l(["uikit-relative uikit-block", e.$attrs.class]),
61
+ onClick: n[1] || (n[1] = C((j) => {
62
+ f("click"), r();
63
+ }, ["stop"]))
64
+ }, [
65
+ g(e.$slots, "btn_slot", {
66
+ toggleDropdown: r,
67
+ isOpen: t.value,
68
+ setActiveIdx: w
69
+ }, () => [
70
+ G(q, {
71
+ id: i(p),
72
+ type: "button",
73
+ "data-cy": e.dataCy,
74
+ class: l([
75
+ "!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
76
+ e.btnClasses
77
+ ]),
78
+ "aria-expanded": t.value,
79
+ "btn-class": "single-selection"
80
+ }, {
81
+ default: D(() => [
82
+ K("span", {
83
+ class: l(["uikit-mr-5px", e.labelClasses]),
84
+ innerHTML: e.btnLabel
85
+ }, null, 10, R),
86
+ e.withArrowIcon ? (u(), B(i(x), {
87
+ key: 0,
88
+ class: l(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
89
+ width: e.arrowWidth,
90
+ height: e.arrowWidth,
91
+ "stroke-color": e.arrowStrokeColor
92
+ }, null, 8, ["class", "width", "height", "stroke-color"])) : N("", !0)
93
+ ]),
94
+ _: 1
95
+ }, 8, ["id", "data-cy", "class", "aria-expanded"])
96
+ ]),
97
+ (u(), B(T(e.dropdownElement), {
98
+ id: "dropdown_" + i(p),
99
+ ref: "dropdown",
100
+ "data-cy": e.dataCy && `${e.dataCy}_dropdown`,
101
+ class: l(["uikit-border-w-lightgray uikit-m-0 uikit-mt-xs uikit-rounded-2xs uikit-max-h-[112px] uikit-w-full uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-no-scrollbar", [
102
+ e.dropdownClasses,
103
+ t.value ? "uikit-flex" : "uikit-hidden",
104
+ { "uikit-bottom-[55px]": e.direction === "up" },
105
+ { "uikit-absolute": e.isAbsolute }
106
+ ]]),
107
+ "aria-hidden": !t.value,
108
+ onClick: n[0] || (n[0] = C(() => {
109
+ }, ["stop"]))
110
+ }, {
111
+ default: D(() => [
112
+ g(e.$slots, "default", {
113
+ isOpen: t.value,
114
+ toggleDropdown: r,
115
+ activeIdx: i(m),
116
+ selectedIdx: i(s),
117
+ setActiveIdx: w,
118
+ setSelectedIdx: S
119
+ })
120
+ ]),
121
+ _: 3
122
+ }, 8, ["id", "data-cy", "class", "aria-hidden"]))
123
+ ], 2));
124
+ }
125
+ });
126
+ export {
127
+ Y as default
128
+ };
@@ -1,8 +1,8 @@
1
- import { defineComponent as A, mergeModels as L, useModel as N, ref as v, useAttrs as O, useId as j, computed as D, watch as p, createElementBlock as o, openBlock as s, normalizeClass as T, unref as k, renderSlot as m, createElementVNode as G, createBlock as J, createCommentVNode as h, withKeys as Q, withModifiers as g, Fragment as B, renderList as E } from "vue";
2
- import W from "./BaseFloatingLabel.vue.js";
3
- import '../../../../assets/packages/components/lib/UIKit/BaseFloatingLabel.css';/* empty css */
4
- import { useFloatingLabel as X } from "../../../../composables/useFloatingLabel.js";
5
- const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Z = ["innerHTML"], x = ["innerHTML"], U = {
1
+ import { defineComponent as A, mergeModels as L, useModel as N, ref as k, useAttrs as O, useId as j, computed as R, watch as p, createElementBlock as o, openBlock as s, normalizeClass as T, unref as m, renderSlot as v, createElementVNode as D, createBlock as G, createCommentVNode as g, withKeys as J, withModifiers as w, Fragment as B, renderList as E } from "vue";
2
+ import Q from "./BaseFloatingLabel.vue.js";
3
+ import '../../assets/lib/UIKit/BaseFloatingLabel.css';/* empty css */
4
+ import { useFloatingLabel as W } from "../../composables/useFloatingLabel.js";
5
+ const X = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Y = ["innerHTML"], Z = ["innerHTML"], U = {
6
6
  key: 1,
7
7
  class: "under-label uikit-absolute uikit-text-12"
8
8
  }, _ = "peer-data-[validation='invalid']:uikit-text-w-red peer-data-[validation='valid']:uikit-text-w-blue", ne = /* @__PURE__ */ A({
@@ -17,10 +17,8 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
17
17
  formatter: { default: null },
18
18
  labelClasses: {},
19
19
  labelTextClasses: {},
20
- withLeftIcon: { type: Boolean, default: () => {
21
- } },
22
- withRightIcon: { type: Boolean, default: () => {
23
- } },
20
+ withLeftIcon: { type: Boolean },
21
+ withRightIcon: { type: Boolean },
24
22
  dataCy: {}
25
23
  }, {
26
24
  modelValue: { default: "" },
@@ -28,33 +26,33 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
28
26
  }),
29
27
  emits: /* @__PURE__ */ L(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
30
28
  setup(l, { expose: M, emit: H }) {
31
- const u = N(l, "modelValue"), i = v(""), d = H, {
29
+ const u = N(l, "modelValue"), i = k(""), d = H, {
32
30
  labelState: c,
33
31
  handleFocusIn: P,
34
- handleFocusOut: w,
35
- setInlineLabel: $,
32
+ handleFocusOut: $,
33
+ setInlineLabel: h,
36
34
  setFloatingLabel: V
37
- } = X(), I = O(), q = j(), r = D(() => I.id || q), n = v("text"), f = v({}), b = v(null), K = () => {
35
+ } = W(), F = O(), q = j(), r = R(() => F.id || q), n = k("text"), f = k({}), b = k(null), K = () => {
38
36
  l.feedback && (f.value = l.feedback, l.feedback.valid && typeof l.feedback.valid == "string" && (f.value.valid = [l.feedback.valid]), l.feedback.invalid && typeof l.feedback.invalid == "string" && (f.value.invalid = [l.feedback.invalid]));
39
- }, F = (e, a) => {
37
+ }, C = (e, a) => {
40
38
  if (!l.formatter || !l.formatter.formatFn)
41
39
  return i.value = e, "";
42
40
  const t = e.length ? l.formatter.formatFn(e) : e;
43
41
  return a && (a.value = t), i.value = t, t;
44
- }, C = (e, a = !0) => {
42
+ }, I = (e, a = !0) => {
45
43
  if (a && (!l.formatter || !l.formatter.unFormatFn))
46
44
  return u.value = e, e;
47
45
  if (!a || !l.formatter || !l.formatter.unFormatFn) return;
48
46
  const t = l.formatter.unFormatFn(e);
49
47
  return u.value = t ?? "", t;
50
- }, R = ({ target: e }) => {
51
- const a = e, t = C(a.value);
52
- F(
48
+ }, S = ({ target: e }) => {
49
+ const a = e, t = I(a.value);
50
+ C(
53
51
  `${t}`,
54
52
  t === u.value ? a : void 0
55
53
  );
56
- }, S = () => {
57
- u.value = "", $();
54
+ }, x = () => {
55
+ u.value = "", h();
58
56
  }, z = () => {
59
57
  n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
60
58
  };
@@ -69,10 +67,10 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
69
67
  ), p(
70
68
  u,
71
69
  (e) => {
72
- F(
70
+ C(
73
71
  `${e}`,
74
- C(`${e}`, !1) === e ? b.value : void 0
75
- ), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value && $();
72
+ I(`${e}`, !1) === e ? b.value : void 0
73
+ ), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value && h();
76
74
  },
77
75
  {
78
76
  immediate: !0
@@ -80,9 +78,9 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
80
78
  ), p(
81
79
  () => l.keepFloatingLabel,
82
80
  (e) => {
83
- e ? V() : w(u.value);
81
+ e ? V() : $(u.value);
84
82
  }
85
- ), n.value = I.type || "text", M({
83
+ ), n.value = F.type || "text", M({
86
84
  select: () => {
87
85
  b.value?.select();
88
86
  }
@@ -90,32 +88,33 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
90
88
  class: T(["uikit-input-wrapper [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px uikit-relative uikit-inline-block uikit-w-full", [
91
89
  e.$attrs.class,
92
90
  { "floating-label": e.labelText },
93
- k(c) === "floating-label" ? "floating-state" : "inline-state",
91
+ m(c) === "floating-label" ? "floating-state" : "inline-state",
94
92
  {
95
- "has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
93
+ "has-right-icon": !!e.$slots.rightIcon
96
94
  },
97
95
  {
98
- "has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
96
+ "has-left-icon": !!e.$slots.leftIcon
99
97
  },
100
98
  { "is-invalid": e.isValid === !1, "is-valid": e.isValid }
101
99
  ]])
102
100
  }, [
103
- m(e.$slots, "leftIcon"),
104
- m(e.$slots, "righticon", {
105
- handleClean: S,
101
+ v(e.$slots, "leftIcon"),
102
+ v(e.$slots, "rightIcon", {
103
+ handleClean: x,
106
104
  handleShowPasswd: z,
107
105
  curType: n.value
108
106
  }),
109
- G("input", {
107
+ D("input", {
110
108
  id: r.value,
111
109
  ref_key: "baseInputEl",
112
110
  ref: b,
113
111
  "data-cy": e.dataCy,
114
112
  name: e.$attrs.name,
115
- class: T(["input-element disabled:uikit-text-w-secondary uikit-peer uikit-relative uikit-box-border uikit-block uikit-h-[56px] uikit-w-full uikit-appearance-none uikit-truncate uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-pb-0 uikit-pt-md uikit-text-16 uikit-outline-none focus-visible:uikit-border-w-blue disabled:uikit-bg-w-cultured data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue", [
113
+ class: T(["input-element disabled:uikit-text-w-secondary uikit-peer uikit-relative uikit-box-border uikit-block uikit-w-full uikit-appearance-none uikit-truncate uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-pb-0 uikit-text-16 uikit-outline-none focus-visible:uikit-border-w-blue disabled:uikit-bg-w-cultured data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue", [
116
114
  {
117
115
  "is-invalid": e.isValid === !1,
118
- "is-valid": e.isValid
116
+ "is-valid": e.isValid,
117
+ "uikit-pt-md": e.labelText
119
118
  },
120
119
  e.inputClass
121
120
  ]]),
@@ -133,50 +132,50 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
133
132
  placeholder: e.$attrs.placeholder,
134
133
  value: i.value,
135
134
  onClick: a[0] || (a[0] = (t) => d("click", t)),
136
- onFocusin: a[1] || (a[1] = g(
135
+ onFocusin: a[1] || (a[1] = w(
137
136
  (t) => {
138
- d("focusin", t), e.labelText && k(P)();
137
+ d("focusin", t), e.labelText && m(P)();
139
138
  },
140
139
  ["stop"]
141
140
  )),
142
- onFocusout: a[2] || (a[2] = g(
141
+ onFocusout: a[2] || (a[2] = w(
143
142
  (t) => {
144
- d("focusout", t), e.labelText && !e.keepFloatingLabel && k(w)(i.value);
143
+ d("focusout", t), e.labelText && !e.keepFloatingLabel && m($)(i.value);
145
144
  },
146
145
  ["stop"]
147
146
  )),
148
- onInput: g(R, ["stop"]),
147
+ onInput: w(S, ["stop"]),
149
148
  onKeydown: [
150
- a[3] || (a[3] = Q(() => d("keydownEnterPressed"), ["enter"])),
149
+ a[3] || (a[3] = J(() => d("keydownEnterPressed"), ["enter"])),
151
150
  a[4] || (a[4] = (t) => d("keydown", t))
152
151
  ],
153
152
  onKeyup: a[5] || (a[5] = (t) => d("keyup", t))
154
- }, null, 42, Y),
155
- e.labelText ? (s(), J(W, {
153
+ }, null, 42, X),
154
+ e.labelText ? (s(), G(Q, {
156
155
  key: 0,
157
156
  for: r.value,
158
157
  "label-text": e.labelText,
159
- "label-state": k(c),
158
+ "label-state": m(c),
160
159
  "is-valid": e.isValid,
161
160
  required: e.$attrs.required,
162
161
  disabled: e.$attrs.disabled,
163
162
  "label-classes": [e.labelClasses, _],
164
163
  "label-text-classes": e.labelTextClasses
165
- }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : h("", !0),
166
- m(e.$slots, "feedback", {}, () => [
164
+ }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : g("", !0),
165
+ v(e.$slots, "feedback", {}, () => [
167
166
  e.isValid === !1 ? (s(!0), o(B, { key: 0 }, E(f.value.invalid, (t, y) => (s(), o("div", {
168
167
  key: `${r.value}_invalid_${y}`,
169
168
  class: "uikit-mt-1 uikit-text-12 uikit-text-w-red",
170
169
  innerHTML: t
171
- }, null, 8, Z))), 128)) : e.isValid === !0 ? (s(!0), o(B, { key: 1 }, E(f.value.valid, (t, y) => (s(), o("div", {
170
+ }, null, 8, Y))), 128)) : e.isValid === !0 ? (s(!0), o(B, { key: 1 }, E(f.value.valid, (t, y) => (s(), o("div", {
172
171
  key: `${r.value}_valid_${y}`,
173
172
  class: "uikit-mt-1 uikit-text-12 uikit-text-w-blue",
174
173
  innerHTML: t
175
- }, null, 8, x))), 128)) : h("", !0)
174
+ }, null, 8, Z))), 128)) : g("", !0)
176
175
  ]),
177
176
  e.$slots["under-label"] ? (s(), o("div", U, [
178
- m(e.$slots, "under-label")
179
- ])) : h("", !0)
177
+ v(e.$slots, "under-label")
178
+ ])) : g("", !0)
180
179
  ], 2));
181
180
  }
182
181
  });
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as z, ref as d, useTemplateRef as D, useId as K, computed as N, onUnmounted as S, watch as V, createBlock as W, openBlock as f, Teleport as A, createElementVNode as l, normalizeClass as o, withModifiers as g, createElementBlock as w, createCommentVNode as h, renderSlot as r, createVNode as F, unref as P, nextTick as U } from "vue";
2
- import { CloseIcon as R } 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 R } from "../../node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
3
+ import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
4
  const j = ["id", "data-cy"], q = ["innerHTML"], X = /* @__PURE__ */ z({
5
5
  __name: "BaseModal",
6
6
  props: {