@wikicasa-dev/components 2.1.4-alpha.2 → 2.1.4-alpha.20

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 (110) hide show
  1. package/dist/UIKit/BaseAutocomplete.d.ts +14 -12
  2. package/dist/UIKit/BaseAutocomplete.js +3 -2
  3. package/dist/UIKit/BaseBadge.d.ts +2 -38
  4. package/dist/UIKit/BaseDropDown.d.ts +8 -13
  5. package/dist/UIKit/BaseInput.d.ts +4 -5
  6. package/dist/UIKit/BasePagination.d.ts +7 -1
  7. package/dist/UIKit/BasePin.d.ts +22 -0
  8. package/dist/UIKit/BaseSelect.d.ts +26 -0
  9. package/dist/UIKit/BaseSelect.js +5 -0
  10. package/dist/UIKit/BaseTextarea.js +2 -2
  11. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -3
  12. package/dist/UIKit/types.d.ts +7 -3
  13. package/dist/_virtual/_commonjsHelpers.js +6 -0
  14. package/dist/_virtual/cloneDeep.js +4 -0
  15. package/dist/_virtual/create-plugin.js +4 -0
  16. package/dist/_virtual/createPlugin.js +4 -0
  17. package/dist/_virtual/default-theme.js +4 -0
  18. package/dist/_virtual/defaultTheme.js +7 -0
  19. package/dist/_virtual/plugin.js +7 -0
  20. package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
  21. package/dist/assets/packages/components/lib/UIKit/BaseAutocomplete.css +1 -0
  22. package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
  23. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
  24. package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
  25. package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -1
  26. package/dist/assets/packages/components/lib/UIKit/{NativeSelect.css → BaseSelect.css} +1 -1
  27. package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
  28. package/dist/assets/packages/components/src/tailwind.css +1 -1
  29. package/dist/index.d.ts +3 -1
  30. package/dist/index.js +94 -87
  31. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.js +13 -13
  32. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/classes-to-selector.js +1 -1
  33. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/defaultTheme.js +11 -0
  34. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/public/create-plugin.js +25 -0
  35. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/public/default-theme.js +26 -0
  36. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/util/cloneDeep.js +23 -0
  37. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/util/createPlugin.js +34 -0
  38. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/plugin.js +11 -0
  39. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/stubs/config.full.js +1068 -0
  40. package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
  41. package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
  42. package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
  43. package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
  44. package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
  45. package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
  46. package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
  47. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +24 -24
  48. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +10 -9
  49. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  50. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
  51. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +2 -2
  52. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +106 -141
  53. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +16 -45
  54. package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +9 -9
  55. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +15 -15
  56. package/dist/packages/components/lib/UIKit/BaseChip.vue.js +2 -2
  57. package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +2 -2
  58. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +53 -65
  59. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +4 -4
  60. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +52 -51
  61. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +2 -2
  62. package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +1 -1
  63. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +63 -40
  64. package/dist/packages/components/lib/UIKit/BasePin.vue.js +1 -1
  65. package/dist/packages/components/lib/UIKit/{NativeSelect.vue.js → BaseSelect.vue.js} +12 -12
  66. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
  67. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +8 -8
  68. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +1 -1
  69. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +4 -4
  70. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +7 -9
  71. package/dist/packages/components/lib/UIKit/DatePicker.vue.js +4 -4
  72. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +30 -30
  73. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +1 -1
  74. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +7 -6
  75. package/dist/packages/components/plugins/buttonPlugin.js +232 -0
  76. package/dist/tailwind.config.js +147 -0
  77. package/package.json +24 -31
  78. package/plugins/buttonPlugin.ts +290 -0
  79. package/dist/UIKit/NativeSelect.js +0 -5
  80. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.css +0 -0
  81. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/navigation.css +0 -0
  82. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/pagination.css +0 -0
  83. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/zoom.css +0 -0
  84. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/swiper.css +0 -0
  85. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +0 -0
  86. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
  87. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +0 -0
  88. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
  89. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  90. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
  91. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
  92. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +0 -0
  93. /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
  94. /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
  95. /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +0 -0
  96. /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
  97. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.css.js +0 -0
  98. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.js +0 -0
  99. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/controller.css.js +0 -0
  100. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/controller.js +0 -0
  101. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.js +0 -0
  102. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.css.js +0 -0
  103. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/navigation.js +0 -0
  104. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/pagination.js +0 -0
  105. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.css.js +0 -0
  106. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.js +0 -0
  107. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/zoom.js +0 -0
  108. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
  109. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
  110. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/utils.js +0 -0
@@ -1,5 +1,5 @@
1
- import { default as p } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.js";
2
- import "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.css.js";
1
+ import { default as p } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/autoplay.js";
2
+ import "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/autoplay.css.js";
3
3
  export {
4
4
  p as Autoplay
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.js";
2
- import "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.css.js";
1
+ import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/controller.js";
2
+ import "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/controller.css.js";
3
3
  export {
4
4
  e as Controller
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.js";
2
- import '../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.css';/* empty css */
1
+ import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/free-mode.js";
2
+ import '../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/free-mode.css';/* empty css */
3
3
  export {
4
4
  t as FreeMode
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.js";
2
- import "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.css.js";
1
+ import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/keyboard.js";
2
+ import "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/keyboard.css.js";
3
3
  export {
4
4
  e as Keyboard
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.js";
2
- import '../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.css';/* empty css */
1
+ import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.js";
2
+ import '../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css';/* empty css */
3
3
  export {
4
4
  i as Navigation
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.js";
2
- import '../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.css';/* empty css */
1
+ import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.js";
2
+ import '../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css';/* empty css */
3
3
  export {
4
4
  i as Pagination
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.js";
2
- import "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.css.js";
1
+ import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/thumbs.js";
2
+ import "../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/thumbs.css.js";
3
3
  export {
4
4
  t as Thumbs
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as F, mergeModels as $, useModel as M, useId as A, computed as V, ref as L, watch as w, onMounted as E, onUnmounted as P, createElementBlock as s, openBlock as a, normalizeClass as l, createElementVNode as o, createCommentVNode as d, withModifiers as p, renderSlot as z, unref as b, createBlock as N, createVNode as O, Fragment as T, renderList as S } from "vue";
2
- import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
3
- import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
4
- import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
5
- 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 { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
3
+ import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
4
+ import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
5
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
6
6
  const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], W = ["innerHTML"], G = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, J = ["innerHTML"], Q = ["data-cy"], X = ["id", "aria-selected", "onClick", "onMouseover"], Y = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Z = ["name", "checked", "onInput"], x = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], se = /* @__PURE__ */ F({
7
7
  inheritAttrs: !1,
8
8
  __name: "AccessibleSelect",
@@ -36,27 +36,27 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
36
36
  toggleDropdownModifiers: {}
37
37
  }),
38
38
  emits: /* @__PURE__ */ $(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
39
- setup(u, { emit: B }) {
40
- const h = B, k = M(u, "modelValue"), y = M(u, "toggleDropdown"), H = A(), t = V(() => u.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: v, selectedIdx: D } = q({
41
- optionsLength: u.options.length,
39
+ setup(r, { emit: B }) {
40
+ const h = B, k = M(r, "modelValue"), g = M(r, "toggleDropdown"), H = A(), t = V(() => r.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: v, selectedIdx: D } = q({
41
+ optionsLength: r.options.length,
42
42
  isDropdownOpen: i
43
43
  }), m = (e) => {
44
44
  i.value = !1, k.value = e;
45
45
  };
46
46
  w(D, (e) => {
47
- m(u.options[e]), i.value = !1;
48
- }), w(y, (e) => {
49
- e && (i.value = !i.value, y.value = !1);
47
+ m(r.options[e]), i.value = !1;
48
+ }), w(g, (e) => {
49
+ e && (i.value = !i.value, g.value = !1);
50
50
  }), w(i, (e) => {
51
51
  h("update:dropdownState", e);
52
52
  });
53
- const g = ({ target: e }) => {
53
+ const y = ({ target: e }) => {
54
54
  `${t.value}_btn` !== e.id && (i.value = !1);
55
55
  };
56
56
  return E(() => {
57
- u.closeOnBodyPressed && document.addEventListener("click", g);
57
+ r.closeOnBodyPressed && document.addEventListener("click", y);
58
58
  }), P(() => {
59
- u.closeOnBodyPressed && document.removeEventListener("click", g);
59
+ r.closeOnBodyPressed && document.removeEventListener("click", y);
60
60
  }), (e, n) => (a(), s("div", {
61
61
  class: l(e.$attrs.class)
62
62
  }, [
@@ -77,7 +77,7 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
77
77
  e.$slots.lefticon ? (a(), s("span", {
78
78
  key: 1,
79
79
  class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
80
- onClick: n[0] || (n[0] = p((r) => i.value = !i.value, ["stop"]))
80
+ onClick: n[0] || (n[0] = p((u) => i.value = !i.value, ["stop"]))
81
81
  }, [
82
82
  z(e.$slots, "lefticon")
83
83
  ])) : d("", !0),
@@ -97,8 +97,8 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
97
97
  "aria-activedescendant": b(v) >= 0 && i.value ? `${t.value}_element_${e.options[b(v)].label}` : "",
98
98
  "aria-invalid": e.isValid === !1,
99
99
  "aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
100
- onClick: n[1] || (n[1] = (r) => {
101
- i.value = !i.value, h("click", r);
100
+ onClick: n[1] || (n[1] = (u) => {
101
+ i.value = !i.value, h("click", u);
102
102
  })
103
103
  }, [
104
104
  o("span", {
@@ -128,9 +128,9 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
128
128
  "aria-hidden": "true",
129
129
  class: l(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
130
130
  e.fieldsetClasses,
131
- e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-lightgray",
131
+ e.isValid ? "uikit-border-w-pink" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-lightgray",
132
132
  {
133
- "peer-aria-invalid:uikit-border-w-danger uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary": e.border
133
+ "peer-aria-invalid:uikit-border-w-danger uikit-border uikit-border-solid peer-focus:uikit-border-w-pink peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-pink": e.border
134
134
  },
135
135
  { "uikit-border-0 peer-focus:uikit-border-0": !e.border }
136
136
  ]])
@@ -162,13 +162,13 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
162
162
  onClick: n[3] || (n[3] = p(() => {
163
163
  }, ["stop"]))
164
164
  }, [
165
- (a(!0), s(T, null, S(e.options, (r, c) => (a(), s("li", {
165
+ (a(!0), s(T, null, S(e.options, (u, c) => (a(), s("li", {
166
166
  id: `${t.value}_element_${e.options[c].label}`,
167
- key: `${r.label}_${c}`,
167
+ key: `${u.label}_${c}`,
168
168
  role: "option",
169
169
  "aria-selected": b(v) === c,
170
170
  class: l(["uikit-px-20px uikit-m-1 uikit-cursor-pointer uikit-py-xs uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
171
- onClick: p((C) => m(r), ["stop"]),
171
+ onClick: p((C) => m(u), ["stop"]),
172
172
  onMouseover: p((C) => v.value = c, ["stop"]),
173
173
  onBlur: n[2] || (n[2] = p(() => {
174
174
  }, ["stop"]))
@@ -179,11 +179,11 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
179
179
  class: "uikit-m-0 uikit-appearance-none",
180
180
  name: `${t.value}_radio`,
181
181
  type: "radio",
182
- checked: r.label === k.value.label,
183
- onInput: p((C) => m(r), ["stop"])
182
+ checked: u.label === k.value.label,
183
+ onInput: p((C) => m(u), ["stop"])
184
184
  }, null, 40, Z),
185
185
  o("span", {
186
- innerHTML: r.label
186
+ innerHTML: u.label
187
187
  }, null, 8, x)
188
188
  ])
189
189
  ], 42, X))), 128))
@@ -1,8 +1,9 @@
1
- import { defineComponent as p, ref as u, provide as c, renderSlot as d } from "vue";
1
+ import { defineComponent as s, ref as u, provide as i, renderSlot as d } from "vue";
2
2
  import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
3
- import { isEmptyObject as f } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
3
+ import { isEmptyObject as f } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
4
+ import "date-fns";
4
5
  import "../../../../../_virtual/polyline.js";
5
- const k = /* @__PURE__ */ p({
6
+ const y = /* @__PURE__ */ s({
6
7
  __name: "BaseAccordion",
7
8
  props: {
8
9
  autoClose: { type: Boolean, default: !0 },
@@ -11,23 +12,23 @@ const k = /* @__PURE__ */ p({
11
12
  setup(l) {
12
13
  const n = u(null), o = u(
13
14
  {}
14
- ), i = (e, t) => {
15
+ ), c = (e, t) => {
15
16
  if (l.autoClose && t && !f(t))
16
17
  for (const a in t)
17
18
  a !== `${e}` && (t[a].active = !1);
18
- }, s = (e, t) => {
19
+ }, p = (e, t) => {
19
20
  t && (t[e].active = !(t[e].active ?? !1));
20
21
  }, r = (e, t) => {
21
- i(e.id, t ?? o.value), n.value = e, s(e.id, t ?? o.value);
22
+ c(e.id, t ?? o.value), n.value = e, p(e.id, t ?? o.value);
22
23
  };
23
- return c("handleClick", (e) => {
24
+ return i("handleClick", (e) => {
24
25
  l.autoUpdate && r(e);
25
- }), c("accordionItems", o), (e, t) => d(e.$slots, "default", {
26
+ }), i("accordionItems", o), (e, t) => d(e.$slots, "default", {
26
27
  updatePrev: r,
27
28
  prev: n.value
28
29
  });
29
30
  }
30
31
  });
31
32
  export {
32
- k as default
33
+ y as default
33
34
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as n, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
2
- import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
- import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
2
+ import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
+ import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
4
  const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
5
5
  inheritAttrs: !1,
6
6
  __name: "BaseAccordionBtn",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as h, ref as $, inject as C, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as s, createElementVNode as f, withModifiers as O, createVNode as k, withCtx as c } from "vue";
2
2
  import A from "./BaseAccordionBtn.vue.js";
3
3
  import B from "./BaseAccordionContent.vue.js";
4
- import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
5
- 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
+ import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
5
+ import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
6
6
  const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
7
7
  inheritAttrs: !1,
8
8
  __name: "BaseAccordionItem",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, mergeModels as T, useModel as h, ref as w, watch as x, nextTick as y, createBlock as f, openBlock as m, unref as e, withCtx as l, renderSlot as r, createVNode as i, normalizeClass as C, createCommentVNode as I, normalizeStyle as b } from "vue";
2
- import { CloseIcon as V } 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 V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
3
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
4
  import { ToastProvider as $, ToastRoot as z, ToastTitle as M, ToastDescription as P, ToastClose as B, ToastAction as D, ProgressRoot as j, ProgressIndicator as A, ToastViewport as N } from "reka-ui";
5
5
  const X = /* @__PURE__ */ g({
6
6
  __name: "BaseAlert",
@@ -1,18 +1,14 @@
1
- import { defineComponent as L, mergeModels as y, useModel as F, ref as d, computed as k, onBeforeMount as H, watch as f, createBlock as g, openBlock as h, normalizeClass as K, withCtx as s, createElementBlock as T, Fragment as z, renderList as A, unref as N, createElementVNode as U, createVNode as W, renderSlot as $ } from "vue";
2
- import j from "./BaseInput.vue.js";
1
+ import { defineComponent as H, mergeModels as g, useModel as K, ref as r, computed as $, onBeforeMount as N, watch as C, createBlock as w, openBlock as v, normalizeClass as U, withCtx as f, renderSlot as B, createElementBlock as A, Fragment as F, renderList as T, unref as S, createCommentVNode as j, createElementVNode as V, resolveDynamicComponent as W, createVNode as X, createSlots as q, withDirectives as G, vShow as J } from "vue";
2
+ import Q from "./BaseInput.vue.js";
3
3
  import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
4
- import q from "./BaseDropDown.vue.js";
5
- import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
6
- import { debounce as G } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
7
- import "../../../../_virtual/polyline.js";
8
- import J from "./BaseSelect/SelectItem.vue.js";
9
- import { useKeyboardController as Q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
10
- const R = ["innerHTML"], ne = /* @__PURE__ */ L({
4
+ import R from "./BaseDropDown.vue.js";
5
+ import { debounce as Y } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
6
+ import Z from "./BaseSelect/SelectItem.vue.js";
7
+ import { useKeyboardController as x } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
8
+ const _ = ["onClick"], ee = ["innerHTML"], se = /* @__PURE__ */ H({
11
9
  __name: "BaseAutocomplete",
12
- props: /* @__PURE__ */ y({
10
+ props: /* @__PURE__ */ g({
13
11
  isValid: { default: null },
14
- theme: { default: "" },
15
- label: { default: "" },
16
12
  disableCb: { type: Boolean, default: !1 },
17
13
  onInputChangeCb: { type: Function },
18
14
  onOptionSelectedCb: { default: null },
@@ -22,7 +18,10 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
22
18
  closeDropdownOnBodyPressed: { type: Boolean, default: !0 },
23
19
  inputClasses: {},
24
20
  fieldsetClasses: {},
25
- dataCy: { default: "" }
21
+ placeholder: { default: "" },
22
+ dataCy: { default: "" },
23
+ withBorder: { type: Boolean, default: !0 },
24
+ withCleanBtn: { type: Boolean, default: !0 }
26
25
  }, {
27
26
  modelValue: {
28
27
  default() {
@@ -31,163 +30,129 @@ const R = ["innerHTML"], ne = /* @__PURE__ */ L({
31
30
  },
32
31
  modelModifiers: {}
33
32
  }),
34
- emits: /* @__PURE__ */ y(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
35
- setup(o, { expose: S, emit: V }) {
36
- const r = F(
37
- o,
38
- "modelValue"
39
- ), u = V, i = d(""), a = d([]), p = d(null), b = d(!1), l = d(!1), w = d(null), B = k(() => a.value.length);
40
- H(() => {
41
- p.value = G({ delay: 300 }, o.onInputChangeCb);
33
+ emits: /* @__PURE__ */ g(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
34
+ setup(o, { expose: D, emit: I }) {
35
+ const u = K(o, "modelValue"), s = I, i = r(""), a = r([]), c = r(null), n = r(!1), b = r(null), O = $(() => a.value.length);
36
+ N(() => {
37
+ c.value = Y({ delay: 300 }, o.onInputChangeCb);
42
38
  });
43
- const { activeIdx: v, selectedIdx: m } = Q({
44
- optionsLength: B,
45
- isDropdownOpen: l,
39
+ const { activeIdx: m, selectedIdx: d } = x({
40
+ optionsLength: O,
41
+ isDropdownOpen: n,
46
42
  disableSpaceHandler: !0
47
- }), O = k(() => {
48
- switch (o.theme) {
49
- case "bordered":
50
- return "";
51
- case "all-bordered":
52
- return "!uikit-rounded " + (l.value && "!uikit-rounded-b-none");
53
- case "all-bordered-thick":
54
- return "!uikit-rounded-[30px] !uikit-h-[52px] " + (l.value && "!uikit-rounded-b-none");
55
- default:
56
- return "";
57
- }
58
- }), M = k(() => {
59
- switch (o.theme) {
60
- case "bordered":
61
- return "";
62
- case "all-bordered":
63
- return "uikit-border uikit-border-w-lavender uikit-border-solid !uikit-rounded !uikit-border-w-lavender !uikit-border " + (l.value ? "!uikit-border-b-0 !uikit-rounded-b-none" : "");
64
- case "all-bordered-thick":
65
- return "!uikit-rounded-[30px] !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (l.value ? "!uikit-rounded-b-none" : "");
66
- default:
67
- return "";
68
- }
69
- }), I = k(() => {
70
- const e = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
71
- switch (o.theme) {
72
- case "bordered":
73
- return "before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";
74
- case "all-bordered":
75
- return e;
76
- case "all-bordered-thick":
77
- return e + " !uikit-border-0";
78
- default:
79
- return "";
80
- }
81
- }), D = async (e) => {
82
- if (i.value !== e && (u("changedValue", e), i.value = e, !!o.onInputChangeCb)) {
83
- if (!e || b.value) {
84
- a.value = [], b.value = !1, m.value = -1, v.value = -1, r.value && (r.value.label = ""), l.value = !1, await p.value(null);
43
+ }), y = $(() => d.value !== -1), M = async (e) => {
44
+ if (i.value !== e && (s("changedValue", e), i.value = e, !!o.onInputChangeCb)) {
45
+ if (!e || y.value) {
46
+ a.value = [], d.value = -1, m.value = -1, u.value && (u.value.label = ""), n.value = !1, await c.value?.("");
85
47
  return;
86
48
  }
87
- o.disableCb || (a.value = await p.value(e), l.value = !!a.value.length);
49
+ o.disableCb || !c.value || (a.value = await c.value(e), n.value = !!a.value.length);
88
50
  }
89
- }, C = (e, t) => {
90
- o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (a.value = []), b.value = !0, i.value = e.label, r.value = e, l.value = !1, m.value = t;
51
+ }, h = (e, t) => {
52
+ o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (a.value = []), i.value = e.label, u.value = e, n.value = !1, d.value = t;
91
53
  }, E = () => {
92
- a.value.length && o.keepState !== "closed" && (l.value = !0);
54
+ a.value.length && o.keepState !== "closed" && (n.value = !0);
93
55
  };
94
- return f(
95
- r,
56
+ C(
57
+ u,
96
58
  (e, t) => {
97
59
  e === t || e?.label === i.value || (i.value = e?.label || "");
98
60
  },
99
61
  { immediate: !0 }
100
- ), f(m, (e) => {
62
+ ), C(d, (e) => {
101
63
  if (e === -1 || !a.value.length) return;
102
64
  const t = a.value[e];
103
- b.value && t.label === r.value?.label || C(t, e);
104
- }), f(
105
- () => o.keepState,
65
+ y.value && t.label === u.value?.label || h(t, e);
66
+ }), C(
67
+ n,
106
68
  (e) => {
107
- e === "closed" ? (l.value = !1, o.cleanupOnClose && (a.value = [])) : e === "open" && a.value.length && (l.value = !0);
108
- }
109
- ), f(l, (e) => {
110
- u("update:dropdownState", e);
111
- }), S({
112
- select: () => {
113
- w.value?.select();
114
- }
115
- }), (e, t) => (h(), g(q, {
116
- class: K(e.$attrs["root-classes"]),
69
+ s("update:dropdownState", e);
70
+ },
71
+ { immediate: !0 }
72
+ );
73
+ const P = () => {
74
+ b.value?.select();
75
+ }, L = () => {
76
+ s("click"), E(), a.value.length && (n.value = !0);
77
+ };
78
+ return D({
79
+ select: P
80
+ }), (e, t) => (v(), w(R, {
81
+ open: n.value,
82
+ "onUpdate:open": t[3] || (t[3] = (l) => n.value = l),
83
+ class: U(e.$attrs["root-classes"]),
117
84
  "data-cy": e.dataCy ? e.dataCy : `ac_${e.$attrs.id}`,
118
85
  "dropdown-element": "ul",
119
- "dropdown-classes": [
120
- { "bordered-dropdown": e.theme === "bordered" },
121
- { "all-bordered-dropdown": e.theme === "all-bordered" },
122
- { "all-bordered-dropdown thick": e.theme === "all-bordered-thick" },
123
- {
124
- "uikit-mt-10px !uikit-border !uikit-border-w-lightgray !uikit-rounded-xs": !e.theme
125
- },
126
- I.value,
127
- "!uikit-max-h-[210px] uikit-z-30",
128
- e.dropdownClasses
129
- ],
130
- "open-dropdown": l.value,
131
- "keep-state": !a.value.length || e.keepState === "closed" ? "closed" : "opened",
86
+ "dropdown-classes": ["!uikit-max-h-[210px] uikit-z-30", e.dropdownClasses],
132
87
  "close-when-clicked-outside": e.closeDropdownOnBodyPressed,
133
88
  "activate-keyboard-controller": !1,
134
- "onUpdate:dropdownState": t[3] || (t[3] = (n) => l.value = n),
135
- onClick: t[4] || (t[4] = (n) => {
136
- u("click"), E();
137
- })
89
+ "onUpdate:dropdownState": t[4] || (t[4] = (l) => n.value = l),
90
+ onClick: L
138
91
  }, {
139
- btn_slot: s(() => [
140
- W(j, {
92
+ btn_slot: f(() => [
93
+ X(Q, {
141
94
  id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
142
95
  ref_key: "baseInput",
143
- ref: w,
96
+ ref: b,
144
97
  "data-cy": e.dataCy ? `ac_input_${e.dataCy}` : `ac_input_${e.$attrs.id}`,
145
- "label-text": e.label,
146
98
  "model-value": i.value,
147
99
  "is-valid": e.isValid,
148
100
  disabled: e.$attrs.disabled,
149
- placeholder: e.$attrs.placeholder,
150
- "with-left-icon": !!e.$slots.lefticon,
151
- "with-right-icon": !!e.$slots.righticon,
152
- "input-class": [
153
- O.value,
154
- e.inputClasses,
155
- "!uikit-ml-0 !uikit-w-full"
156
- ],
157
- "fieldset-classes": [M.value, e.fieldsetClasses],
158
- "onUpdate:modelValue": t[0] || (t[0] = (n) => D(n === void 0 ? "" : `${n}`)),
159
- onKeydown: t[1] || (t[1] = (n) => u("keydown", n)),
160
- onKeydownEnterPressed: t[2] || (t[2] = () => u("keydownEnterPressed"))
161
- }, {
162
- leftIcon: s(() => [
163
- $(e.$slots, "lefticon")
164
- ]),
165
- righticon: s(({ handleClean: n }) => [
166
- $(e.$slots, "righticon", { handleClean: n })
167
- ]),
168
- _: 3
169
- }, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
101
+ placeholder: e.placeholder,
102
+ "input-class": [e.inputClasses, "base-autocomplete-input !uikit-text"],
103
+ "fieldset-classes": [e.fieldsetClasses],
104
+ "with-border": e.withBorder,
105
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => M(l === void 0 ? "" : `${l}`)),
106
+ onKeydown: t[1] || (t[1] = (l) => s("keydown", l)),
107
+ onKeydownEnterPressed: t[2] || (t[2] = () => s("keydownEnterPressed"))
108
+ }, q({ _: 2 }, [
109
+ e.$slots.leftIcon ? {
110
+ name: "leftIcon",
111
+ fn: f(() => [
112
+ B(e.$slots, "leftIcon")
113
+ ]),
114
+ key: "0"
115
+ } : void 0,
116
+ e.withCleanBtn ? {
117
+ name: "rightIcon",
118
+ fn: f(({ handleClean: l }) => [
119
+ G(V("span", {
120
+ 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",
121
+ onClick: l
122
+ }, "X", 8, _), [
123
+ [J, S(d) !== -1]
124
+ ])
125
+ ]),
126
+ key: "1"
127
+ } : void 0
128
+ ]), 1032, ["id", "data-cy", "model-value", "is-valid", "disabled", "placeholder", "input-class", "fieldset-classes", "with-border"])
170
129
  ]),
171
- default: s(() => [
172
- (h(!0), T(z, null, A(a.value, (n, c) => (h(), g(J, {
173
- key: c,
174
- active: N(v) === c,
175
- class: "uikit-py-xs uikit-m-1 uikit-rounded-[5px] uikit-px-5 hover:uikit-cursor-pointer",
176
- onClick: (P) => C(n, c),
177
- onMouseover: (P) => v.value = c
178
- }, {
179
- default: s(() => [
180
- U("span", {
181
- innerHTML: n.label
182
- }, null, 8, R)
183
- ]),
184
- _: 2
185
- }, 1032, ["active", "onClick", "onMouseover"]))), 128))
130
+ default: f(({ toggleDropdown: l }) => [
131
+ B(e.$slots, "dropdown", {
132
+ options: a.value,
133
+ toggleDropdown: l
134
+ }, () => [
135
+ (v(!0), A(F, null, T(a.value, (p, k) => (v(), w(Z, {
136
+ key: k,
137
+ active: S(m) === k,
138
+ 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",
139
+ onClick: (z) => h(p, k),
140
+ onMouseover: (z) => m.value = k
141
+ }, {
142
+ default: f(() => [
143
+ p.icon ? (v(), w(W(p.icon), { key: 0 })) : j("", !0),
144
+ V("span", {
145
+ innerHTML: p.label
146
+ }, null, 8, ee)
147
+ ]),
148
+ _: 2
149
+ }, 1032, ["active", "onClick", "onMouseover"]))), 128))
150
+ ])
186
151
  ]),
187
152
  _: 3
188
- }, 8, ["class", "data-cy", "dropdown-classes", "open-dropdown", "keep-state", "close-when-clicked-outside"]));
153
+ }, 8, ["open", "class", "data-cy", "dropdown-classes", "close-when-clicked-outside"]));
189
154
  }
190
155
  });
191
156
  export {
192
- ne as default
157
+ se as default
193
158
  };