@wikicasa-dev/components 2.1.23 → 2.1.24-alpha.0

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 (203) 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.js +1 -1
  8. package/dist/UIKit/BaseBadge.js +2 -2
  9. package/dist/UIKit/BaseBreadcrumb.js +1 -1
  10. package/dist/UIKit/BaseButton.js +1 -1
  11. package/dist/UIKit/BaseCard.js +2 -2
  12. package/dist/UIKit/BaseComplexToggle.js +2 -2
  13. package/dist/UIKit/BaseDropDown.js +1 -1
  14. package/dist/UIKit/BaseFloatingLabel.js +2 -2
  15. package/dist/UIKit/BaseIcon.js +2 -2
  16. package/dist/UIKit/BaseInput.js +2 -2
  17. package/dist/UIKit/BaseModal.js +2 -2
  18. package/dist/UIKit/BasePagination.js +1 -1
  19. package/dist/UIKit/BasePaper.js +2 -2
  20. package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
  21. package/dist/UIKit/BaseSlider.js +2 -2
  22. package/dist/UIKit/BaseSnackbar.d.ts +39 -20
  23. package/dist/UIKit/BaseSnackbar.js +3 -5
  24. package/dist/UIKit/BaseTextarea.js +2 -2
  25. package/dist/UIKit/BaseToggle.js +2 -2
  26. package/dist/UIKit/BaseTooltip.js +2 -2
  27. package/dist/UIKit/BaseUploadFile.js +1 -1
  28. package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -2
  29. package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
  30. package/dist/UIKit/Radio/RadioButton.js +1 -1
  31. package/dist/UIKit/Radio/RadioGroup.js +1 -1
  32. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +2 -2
  33. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
  34. package/dist/UIKit/Slider/SimpleSlider.js +2 -2
  35. package/dist/UIKit/StaticSpinner.js +2 -2
  36. package/dist/UIKit/Tab/BaseTab.js +1 -1
  37. package/dist/UIKit/Tab/BaseTabList.js +1 -1
  38. package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
  39. package/dist/UIKit/Tab/BaseTabView.js +1 -1
  40. package/dist/_virtual/polyline.js +1 -1
  41. package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +1 -1
  42. package/dist/assets/lib/UIKit/BaseCard.css +1 -0
  43. package/dist/assets/lib/UIKit/BaseComplexToggle.css +1 -0
  44. package/dist/assets/lib/UIKit/BaseModal.css +1 -0
  45. package/dist/assets/lib/UIKit/BaseSnackbar.css +1 -0
  46. package/dist/assets/lib/UIKit/Slider/SimpleSlider.css +1 -0
  47. package/dist/assets/node_modules/swiper/modules/keyboard.css +0 -0
  48. package/dist/assets/node_modules/swiper/modules/navigation.css +1 -0
  49. package/dist/assets/node_modules/swiper/swiper.css +1 -0
  50. package/dist/assets/src/tailwind.css +1 -0
  51. package/dist/chart/DoughnutChart.js +1 -1
  52. package/dist/chart/LineChart.js +1 -1
  53. package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
  54. package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
  55. package/dist/components/carousel/SwiperCarousel.d.ts +11 -4
  56. package/dist/components/carousel/SwiperCarousel.js +3 -3
  57. package/dist/index.js +89 -88
  58. package/dist/lazyModules/Swiper/autoplay.js +5 -0
  59. package/dist/lazyModules/Swiper/controller.js +5 -0
  60. package/dist/lazyModules/Swiper/free-mode.js +5 -0
  61. package/dist/lazyModules/Swiper/keyboard.js +5 -0
  62. package/dist/lazyModules/Swiper/navigation.js +5 -0
  63. package/dist/lazyModules/Swiper/pagination.js +5 -0
  64. package/dist/lazyModules/Swiper/thumbs.js +5 -0
  65. package/dist/lib/UIKit/AccessibleSelect.vue.js +211 -0
  66. package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordion.vue.js +3 -3
  67. package/dist/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +60 -0
  68. package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +10 -10
  69. package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +54 -54
  70. package/dist/lib/UIKit/BaseAlert.vue.js +19 -0
  71. package/dist/lib/UIKit/BaseAutocomplete.vue.js +192 -0
  72. package/dist/lib/UIKit/BaseBadge.vue.js +19 -0
  73. package/dist/lib/UIKit/BaseBreadcrumb.vue.js +58 -0
  74. package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +18 -18
  75. package/dist/lib/UIKit/BaseCard.vue.js +37 -0
  76. package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +29 -29
  77. package/dist/lib/UIKit/BaseDropDown.vue.js +135 -0
  78. package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +14 -14
  79. package/dist/lib/UIKit/BaseIcon.vue.js +27 -0
  80. package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +86 -86
  81. package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +61 -61
  82. package/dist/{packages/components/lib → lib}/UIKit/BasePagination.vue.js +93 -95
  83. package/dist/lib/UIKit/BaseSelect/SelectItem.vue.js +41 -0
  84. package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +45 -45
  85. package/dist/lib/UIKit/BaseSnackbar.vue.js +119 -0
  86. package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +57 -57
  87. package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +15 -15
  88. package/dist/lib/UIKit/BaseTooltip.vue.js +41 -0
  89. package/dist/lib/UIKit/BaseUploadFile.vue.js +71 -0
  90. package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +26 -26
  91. package/dist/lib/UIKit/Checkbox/CheckboxGroup.vue.js +112 -0
  92. package/dist/lib/UIKit/Radio/RadioButton.vue.js +58 -0
  93. package/dist/lib/UIKit/Radio/RadioGroup.vue.js +60 -0
  94. package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +7 -7
  95. package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +8 -8
  96. package/dist/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.vue.js +7 -7
  97. package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +3 -3
  98. package/dist/lib/UIKit/Tab/BaseTabList.vue.js +45 -0
  99. package/dist/lib/UIKit/Tab/BaseTabPanel.vue.js +25 -0
  100. package/dist/lib/UIKit/Tab/BaseTabView.vue.js +107 -0
  101. package/dist/lib/chart/DoughnutChart.vue.js +27 -0
  102. package/dist/lib/chart/LineChart.vue.js +42 -0
  103. package/dist/lib/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
  104. package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +26 -27
  105. package/dist/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
  106. package/dist/node_modules/{.pnpm/js-cookie@3.0.5/node_modules/js-cookie → js-cookie}/dist/js.cookie.js +0 -1
  107. package/dist/node_modules/swiper/modules/autoplay.js +128 -0
  108. package/dist/node_modules/swiper/modules/controller.js +100 -0
  109. package/dist/node_modules/swiper/modules/free-mode.js +123 -0
  110. package/dist/node_modules/swiper/modules/keyboard.js +66 -0
  111. package/dist/node_modules/swiper/modules/navigation.js +136 -0
  112. package/dist/node_modules/swiper/modules/pagination.js +226 -0
  113. package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/thumbs.js +33 -34
  114. package/dist/node_modules/swiper/modules/zoom.js +309 -0
  115. package/dist/node_modules/swiper/shared/classes-to-selector.js +6 -0
  116. package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/ssr-window.esm.js +9 -10
  117. package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/utils.js +42 -39
  118. package/package.json +34 -30
  119. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
  120. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
  121. package/dist/assets/packages/components/lib/UIKit/BaseCard.css +0 -1
  122. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +0 -1
  123. package/dist/assets/packages/components/lib/UIKit/BaseModal.css +0 -1
  124. package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +0 -1
  125. package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
  126. package/dist/assets/packages/components/src/tailwind.css +0 -1
  127. 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 +0 -41
  128. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
  129. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
  130. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
  131. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
  132. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
  133. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
  134. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
  135. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
  136. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
  137. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
  138. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
  139. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
  140. package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
  141. package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
  142. package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
  143. package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
  144. package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
  145. package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
  146. package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
  147. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
  148. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +0 -60
  149. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +0 -19
  150. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +0 -192
  151. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
  152. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +0 -58
  153. package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
  154. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +0 -137
  155. package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
  156. package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +0 -41
  157. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
  158. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
  159. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +0 -71
  160. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
  161. package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +0 -58
  162. package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +0 -62
  163. package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +0 -45
  164. package/dist/packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js +0 -25
  165. package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +0 -107
  166. package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
  167. package/dist/packages/components/lib/chart/LineChart.vue.js +0 -42
  168. package/dist/packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js +0 -24
  169. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
  170. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
  171. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
  172. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseInput.css +0 -0
  173. /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
  174. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSlider.css +0 -0
  175. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
  176. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseToggle.css +0 -0
  177. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
  178. /package/dist/assets/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.css +0 -0
  179. /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
  180. /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
  181. /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
  182. /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
  183. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/free-mode.css +0 -0
  184. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/pagination.css +0 -0
  185. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/zoom.css +0 -0
  186. /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
  187. /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
  188. /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
  189. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/ArrowIcon.js +0 -0
  190. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/CloseIcon.js +0 -0
  191. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  192. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/PharmacyIcon.js +0 -0
  193. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/WarningIconRounded.js +0 -0
  194. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ArrayUtils.js +0 -0
  195. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
  196. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/FunctionUtils.js +0 -0
  197. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/GenericUtils.js +0 -0
  198. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ObjectUtils.js +0 -0
  199. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/StringUtils.js +0 -0
  200. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/decode.js +0 -0
  201. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/encode.js +0 -0
  202. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/polyline.js +0 -0
  203. /package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/create-element-if-not-defined.js +0 -0
@@ -1,5 +1,5 @@
1
- import { defineComponent as n, createElementBlock as a, openBlock as s, normalizeClass as o, renderSlot as e, createElementVNode as r } from "vue";
2
- const t = ["id", "aria-labelledby"], p = /* @__PURE__ */ n({
1
+ import { defineComponent as n, createElementBlock as a, openBlock as c, normalizeClass as o, renderSlot as t, createElementVNode as d } from "vue";
2
+ const s = ["id", "aria-labelledby"], u = /* @__PURE__ */ n({
3
3
  __name: "BaseAccordionContent",
4
4
  props: {
5
5
  id: {},
@@ -8,27 +8,27 @@ const t = ["id", "aria-labelledby"], p = /* @__PURE__ */ n({
8
8
  accordionClosedClasses: {},
9
9
  accordionContentClasses: {}
10
10
  },
11
- setup(d) {
12
- return (i, c) => (s(), a("div", {
11
+ setup(i) {
12
+ return (e, r) => (c(), a("div", {
13
13
  id: `accordion-text-${i.id}`,
14
14
  role: "region",
15
15
  "aria-labelledby": `accordion-title-${i.id}`,
16
16
  class: o(["uikit-grid uikit-overflow-hidden uikit-px-5 uikit-text-sm uikit-text-w-black uikit-transition-[grid-template-rows,opacity,padding,margin] uikit-duration-300 uikit-ease-in-out", [
17
17
  i.accordionOpen ? i.accordionOpenClasses : i.accordionClosedClasses,
18
18
  i.accordionOpen ? "uikit-grid-rows-[1fr] uikit-opacity-100" : "uikit-grid-rows-[0fr] uikit-opacity-0",
19
- i.$attrs["accordion-classes"]
19
+ e.$attrs["accordion-classes"]
20
20
  ]])
21
21
  }, [
22
- e(i.$slots, "custom_accordion_content", { isOpen: i.accordionOpen }, () => [
23
- r("div", {
22
+ t(e.$slots, "custom_accordion_content", { isOpen: i.accordionOpen }, () => [
23
+ d("div", {
24
24
  class: o(["uikit-overflow-hidden", i.accordionContentClasses])
25
25
  }, [
26
- e(i.$slots, "default", { isOpen: i.accordionOpen })
26
+ t(e.$slots, "default", { isOpen: i.accordionOpen })
27
27
  ], 2)
28
28
  ])
29
- ], 10, t));
29
+ ], 10, s));
30
30
  }
31
31
  });
32
32
  export {
33
- p as default
33
+ u as default
34
34
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as h, ref as $, inject as p, 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
- import A from "./BaseAccordionBtn.vue.js";
3
- import B from "./BaseAccordionContent.vue.js";
4
- import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
5
- import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
6
- const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
1
+ import { defineComponent as $, ref as y, inject as v, watch as r, unref as d, createElementBlock as f, openBlock as u, normalizeClass as m, createBlock as g, createCommentVNode as O, renderSlot as a, createElementVNode as k, withModifiers as A, createVNode as w, withCtx as n } from "vue";
2
+ import B from "./BaseAccordionBtn.vue.js";
3
+ import E from "./BaseAccordionContent.vue.js";
4
+ import { ArrowIcon as W } from "../../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
5
+ import "../../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
6
+ const x = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ $({
7
7
  inheritAttrs: !1,
8
8
  __name: "BaseAccordionItem",
9
9
  props: {
@@ -25,112 +25,112 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
25
25
  accordionClasses: {}
26
26
  },
27
27
  emits: ["click", "accordionOpened", "accordionClosed", "update:accordionState"],
28
- setup(i, { emit: w }) {
29
- const a = w, o = $(!1), r = p(
28
+ setup(e, { emit: b }) {
29
+ const s = b, i = y(!1), l = v(
30
30
  "accordionItems",
31
31
  () => {
32
32
  },
33
33
  !0
34
- ), b = p(
34
+ ), h = v(
35
35
  "handleClick",
36
36
  () => {
37
37
  },
38
38
  !0
39
- ), C = (e, t = !1) => {
40
- a(t ? "accordionOpened" : "accordionClosed", e), a("update:accordionState", t);
39
+ ), C = (t, o = !1) => {
40
+ s(o ? "accordionOpened" : "accordionClosed", t), s("update:accordionState", o);
41
41
  };
42
- r && (r.value[i.id] = { id: i.id, title: i.title, active: i.active }), l(
43
- () => d(r),
44
- (e) => {
45
- const t = e?.[i.id];
46
- !t || o.value === t.active || (o.value = t.active ?? !1, C(
47
- { id: i.id, title: i.title, active: t.active },
48
- t.active
42
+ l && (l.value[e.id] = { id: e.id, title: e.title, active: e.active }), r(
43
+ () => d(l),
44
+ (t) => {
45
+ const o = t?.[e.id];
46
+ !o || i.value === o.active || (i.value = o.active ?? !1, C(
47
+ { id: e.id, title: e.title, active: o.active },
48
+ o.active
49
49
  ));
50
50
  },
51
51
  { deep: !0, immediate: !0 }
52
- ), l(o, (e) => {
53
- o.value = e, C({ id: i.id, title: i.title, active: o.value }, e);
54
- }), l(
55
- () => i.active,
56
- (e) => {
57
- o.value = e;
52
+ ), r(i, (t) => {
53
+ i.value = t, C({ id: e.id, title: e.title, active: i.value }, t);
54
+ }), r(
55
+ () => e.active,
56
+ (t) => {
57
+ i.value = t;
58
58
  },
59
59
  { immediate: !0 }
60
60
  );
61
- const n = () => {
62
- o.value = !o.value;
61
+ const c = () => {
62
+ i.value = !i.value;
63
63
  };
64
- return (e, t) => (u(), v("div", {
64
+ return (t, o) => (u(), f("div", {
65
65
  class: m(e.rootClasses)
66
66
  }, [
67
- !e.$slots.custom_content && !e.$slots.custom_btn && !e.$slots.custom_accordion ? (u(), v("div", W, [
68
- f("button", {
67
+ !t.$slots.custom_content && !t.$slots.custom_btn && !t.$slots.custom_accordion ? (u(), f("div", x, [
68
+ k("button", {
69
69
  id: `accordion-title-${e.id}`,
70
70
  type: "button",
71
71
  class: m(["uikit-flex uikit-w-full uikit-items-center uikit-justify-between uikit-border-0 uikit-bg-white uikit-px-5 uikit-py-4 uikit-text-left uikit-font-semibold uikit-transition-colors active:max-sm:uikit-bg-w-cultured hover:sm:uikit-bg-w-cultured", e.btnClasses]),
72
72
  "data-cy": e.dataCy,
73
- "aria-expanded": o.value,
73
+ "aria-expanded": i.value,
74
74
  "aria-controls": `accordion-text-${e.id}`,
75
- onClick: t[0] || (t[0] = O((N) => {
76
- n(), d(b)?.({ id: e.id, title: e.title, active: o.value }), a("click");
75
+ onClick: o[0] || (o[0] = A((N) => {
76
+ c(), d(h)?.({ id: e.id, title: e.title, active: i.value }), s("click");
77
77
  }, ["prevent", "stop"]))
78
78
  }, [
79
- f("span", {
79
+ k("span", {
80
80
  itemprop: e.itemProp,
81
81
  innerHTML: e.title
82
82
  }, null, 8, M),
83
- k(d(E), {
83
+ w(d(W), {
84
84
  class: m([
85
85
  "uikit-flex-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none",
86
- [o.value ? "uikit-rotate-180" : "", e.arrowClasses]
86
+ [i.value ? "uikit-rotate-180" : "", e.arrowClasses]
87
87
  ]),
88
88
  "arrow-classes": e.arrowClasses,
89
89
  width: e.arrowWidth,
90
90
  height: e.arrowWidth
91
91
  }, null, 8, ["class", "arrow-classes", "width", "height"])
92
92
  ], 10, I)
93
- ])) : (e.$slots.custom_content || e.$slots.custom_btn) && !e.$slots.custom_accordion ? (u(), y(A, {
93
+ ])) : (t.$slots.custom_content || t.$slots.custom_btn) && !t.$slots.custom_accordion ? (u(), g(B, {
94
94
  key: 1,
95
95
  id: e.id,
96
96
  "btn-wrapper-classes": e.btnWrapperClasses,
97
97
  "btn-classes": e.btnClasses,
98
98
  "arrow-color": e.arrowColor,
99
99
  "arrow-classes": e.arrowClasses,
100
- "toggle-accordion": n,
100
+ "toggle-accordion": c,
101
101
  "on-container-click-expand": e.onContainerClickExpand,
102
- "accordion-open": o.value
102
+ "accordion-open": i.value
103
103
  }, {
104
- custom_content: c(() => [
105
- s(e.$slots, "custom_content")
104
+ custom_content: n(() => [
105
+ a(t.$slots, "custom_content")
106
106
  ]),
107
- custom_btn: c(() => [
108
- s(e.$slots, "custom_btn", {
107
+ custom_btn: n(() => [
108
+ a(t.$slots, "custom_btn", {
109
109
  btnId: `btn-${e.id}`,
110
- isOpen: o.value,
111
- toggleAccordion: n
110
+ isOpen: i.value,
111
+ toggleAccordion: c
112
112
  })
113
113
  ]),
114
114
  _: 3
115
- }, 8, ["id", "btn-wrapper-classes", "btn-classes", "arrow-color", "arrow-classes", "on-container-click-expand", "accordion-open"])) : g("", !0),
116
- s(e.$slots, "custom_accordion", {
115
+ }, 8, ["id", "btn-wrapper-classes", "btn-classes", "arrow-color", "arrow-classes", "on-container-click-expand", "accordion-open"])) : O("", !0),
116
+ a(t.$slots, "custom_accordion", {
117
117
  id: e.id,
118
- isOpen: o.value,
119
- toggleAccordion: n
118
+ isOpen: i.value,
119
+ toggleAccordion: c
120
120
  }, () => [
121
- k(B, {
121
+ w(E, {
122
122
  id: e.id,
123
- "accordion-open": o.value,
123
+ "accordion-open": i.value,
124
124
  "accordion-open-classes": e.accordionOpenClasses,
125
125
  "accordion-close-classes": e.accordionCloseClasses,
126
126
  "accordion-content-classes": e.accordionContentClasses,
127
127
  "accordion-classes": e.accordionClasses
128
128
  }, {
129
- custom_accordion_content: c(() => [
130
- s(e.$slots, "custom_accordion_content", { isOpen: o.value })
129
+ custom_accordion_content: n(() => [
130
+ a(t.$slots, "custom_accordion_content", { isOpen: i.value })
131
131
  ]),
132
- default: c(() => [
133
- s(e.$slots, "default", { isOpen: o.value })
132
+ default: n(() => [
133
+ a(t.$slots, "default", { isOpen: i.value })
134
134
  ]),
135
135
  _: 3
136
136
  }, 8, ["id", "accordion-open", "accordion-open-classes", "accordion-close-classes", "accordion-content-classes", "accordion-classes"])
@@ -0,0 +1,19 @@
1
+ import { defineComponent as a, createElementBlock as l, openBlock as r, normalizeClass as s, renderSlot as o } from "vue";
2
+ const n = ["id"], c = /* @__PURE__ */ a({
3
+ __name: "BaseAlert",
4
+ props: {
5
+ alertClass: { default: "" }
6
+ },
7
+ setup(t) {
8
+ return (e, i) => (r(), l("div", {
9
+ id: e.$attrs.id,
10
+ class: s(["uikit-alert", t.alertClass]),
11
+ role: "alert"
12
+ }, [
13
+ o(e.$slots, "default")
14
+ ], 10, n));
15
+ }
16
+ });
17
+ export {
18
+ c as default
19
+ };
@@ -0,0 +1,192 @@
1
+ import { defineComponent as P, mergeModels as y, useModel as F, ref as d, computed as k, onBeforeMount as L, watch as f, createBlock as g, openBlock as w, normalizeClass as H, withCtx as s, createElementBlock as K, Fragment as T, renderList as z, unref as A, createElementVNode as N, createVNode as U, renderSlot as $ } from "vue";
2
+ import W from "../../UIKit/BaseInput.js";
3
+ import j from "./BaseDropDown.vue.js";
4
+ import "../../node_modules/js-cookie/dist/js.cookie.js";
5
+ import { debounce as q } from "../../node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
6
+ import "../../_virtual/polyline.js";
7
+ import G from "./BaseSelect/SelectItem.vue.js";
8
+ import { useKeyboardController as J } from "../../node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
9
+ const Q = ["innerHTML"], ae = /* @__PURE__ */ P({
10
+ __name: "BaseAutocomplete",
11
+ props: /* @__PURE__ */ y({
12
+ isValid: { type: [Boolean, null], default: null },
13
+ theme: { default: "" },
14
+ label: { default: "" },
15
+ disableCb: { type: Boolean, default: !1 },
16
+ onInputChangeCb: { type: Function },
17
+ onOptionSelectedCb: { type: [Function, null], default: null },
18
+ keepState: { default: null },
19
+ cleanupOnClose: { type: Boolean, default: !0 },
20
+ dropdownClasses: { default: "" },
21
+ closeDropdownOnBodyPressed: { type: Boolean, default: !0 },
22
+ inputClasses: {},
23
+ fieldsetClasses: {},
24
+ dataCy: { default: "" }
25
+ }, {
26
+ modelValue: {
27
+ default() {
28
+ return { id: "", label: "" };
29
+ }
30
+ },
31
+ modelModifiers: {}
32
+ }),
33
+ emits: /* @__PURE__ */ y(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
34
+ setup(t, { expose: S, emit: V }) {
35
+ const u = F(
36
+ t,
37
+ "modelValue"
38
+ ), r = V, i = d(""), a = d([]), v = d(null), c = d(!1), n = d(!1), p = d(null), B = k(() => a.value.length);
39
+ L(() => {
40
+ v.value = q({ delay: 300 }, t.onInputChangeCb);
41
+ });
42
+ const { activeIdx: m, selectedIdx: h } = J({
43
+ optionsLength: B,
44
+ isDropdownOpen: n,
45
+ disableSpaceHandler: !0
46
+ }), O = k(() => {
47
+ switch (t.theme) {
48
+ case "bordered":
49
+ return "";
50
+ case "all-bordered":
51
+ return "!uikit-rounded " + (n.value && "!uikit-rounded-b-none");
52
+ case "all-bordered-thick":
53
+ return "!uikit-rounded-xl !uikit-h-[52px] " + (n.value && "!uikit-rounded-b-none");
54
+ default:
55
+ return "";
56
+ }
57
+ }), x = k(() => {
58
+ switch (t.theme) {
59
+ case "bordered":
60
+ return "";
61
+ case "all-bordered":
62
+ return "uikit-border uikit-border-w-lavender uikit-border-solid !uikit-rounded !uikit-border-w-lavender !uikit-border " + (n.value ? "!uikit-border-b-0 !uikit-rounded-b-none" : "");
63
+ case "all-bordered-thick":
64
+ return "!uikit-rounded-xl !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (n.value ? "!uikit-rounded-b-none" : "");
65
+ default:
66
+ return "";
67
+ }
68
+ }), I = k(() => {
69
+ 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";
70
+ switch (t.theme) {
71
+ case "bordered":
72
+ 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";
73
+ case "all-bordered":
74
+ return e;
75
+ case "all-bordered-thick":
76
+ return e + " !uikit-border-0";
77
+ default:
78
+ return "";
79
+ }
80
+ }), M = async (e) => {
81
+ if (i.value !== e && (r("changedValue", e), i.value = e, !!t.onInputChangeCb)) {
82
+ if (!e || c.value) {
83
+ a.value = [], c.value = !1, h.value = -1, m.value = -1, u.value && (u.value.label = ""), n.value = !1, await v.value(null);
84
+ return;
85
+ }
86
+ t.disableCb || (a.value = await v.value(e), n.value = !!a.value.length);
87
+ }
88
+ }, C = (e, l) => {
89
+ t.onOptionSelectedCb && t.onOptionSelectedCb(e), t.cleanupOnClose && (a.value = []), c.value = !0, i.value = e.label, u.value = e, n.value = !1, h.value = l;
90
+ }, D = () => {
91
+ a.value.length && t.keepState !== "closed" && (n.value = !0);
92
+ };
93
+ return f(
94
+ u,
95
+ (e, l) => {
96
+ e === l || e?.label === i.value || (i.value = e?.label || "");
97
+ },
98
+ { immediate: !0 }
99
+ ), f(h, (e) => {
100
+ if (e === -1 || !a.value.length) return;
101
+ const l = a.value[e];
102
+ c.value && l.label === u.value?.label || C(l, e);
103
+ }), f(
104
+ () => t.keepState,
105
+ (e) => {
106
+ e === "closed" ? (n.value = !1, t.cleanupOnClose && (a.value = [])) : e === "open" && a.value.length && (n.value = !0);
107
+ }
108
+ ), f(n, (e) => {
109
+ r("update:dropdownState", e);
110
+ }), S({
111
+ select: () => {
112
+ p.value?.select();
113
+ }
114
+ }), (e, l) => (w(), g(j, {
115
+ class: H(e.$attrs["root-classes"]),
116
+ "data-cy": t.dataCy ? t.dataCy : `ac_${e.$attrs.id}`,
117
+ "dropdown-element": "ul",
118
+ "dropdown-classes": [
119
+ { "bordered-dropdown": t.theme === "bordered" },
120
+ { "all-bordered-dropdown": t.theme === "all-bordered" },
121
+ { "all-bordered-dropdown thick": t.theme === "all-bordered-thick" },
122
+ {
123
+ "uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !t.theme
124
+ },
125
+ I.value,
126
+ "!uikit-max-h-[210px] uikit-z-30",
127
+ t.dropdownClasses
128
+ ],
129
+ "open-dropdown": n.value,
130
+ "keep-state": !a.value.length || t.keepState === "closed" ? "closed" : "opened",
131
+ "close-when-clicked-outside": t.closeDropdownOnBodyPressed,
132
+ "activate-keyboard-controller": !1,
133
+ "onUpdate:dropdownState": l[3] || (l[3] = (o) => n.value = o),
134
+ onClick: l[4] || (l[4] = (o) => {
135
+ r("click"), D();
136
+ })
137
+ }, {
138
+ btn_slot: s(() => [
139
+ U(W, {
140
+ id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
141
+ ref_key: "baseInput",
142
+ ref: p,
143
+ "data-cy": t.dataCy ? `ac_input_${t.dataCy}` : `ac_input_${e.$attrs.id}`,
144
+ "label-text": t.label,
145
+ "model-value": i.value,
146
+ "is-valid": t.isValid,
147
+ disabled: e.$attrs.disabled,
148
+ placeholder: e.$attrs.placeholder,
149
+ "with-left-icon": !!e.$slots.lefticon,
150
+ "with-right-icon": !!e.$slots.righticon,
151
+ "input-class": [
152
+ O.value,
153
+ t.inputClasses,
154
+ "!uikit-ml-0 !uikit-w-full"
155
+ ],
156
+ "fieldset-classes": [x.value, t.fieldsetClasses],
157
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => M(o === void 0 ? "" : `${o}`)),
158
+ onKeydown: l[1] || (l[1] = (o) => r("keydown", o)),
159
+ onKeydownEnterPressed: l[2] || (l[2] = () => r("keydownEnterPressed"))
160
+ }, {
161
+ leftIcon: s(() => [
162
+ $(e.$slots, "lefticon")
163
+ ]),
164
+ righticon: s(({ handleClean: o }) => [
165
+ $(e.$slots, "righticon", { handleClean: o })
166
+ ]),
167
+ _: 3
168
+ }, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
169
+ ]),
170
+ default: s(() => [
171
+ (w(!0), K(T, null, z(a.value, (o, b) => (w(), g(G, {
172
+ key: b,
173
+ active: A(m) === b,
174
+ class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
175
+ onClick: (E) => C(o, b),
176
+ onMouseover: (E) => m.value = b
177
+ }, {
178
+ default: s(() => [
179
+ N("span", {
180
+ innerHTML: o.label
181
+ }, null, 8, Q)
182
+ ]),
183
+ _: 2
184
+ }, 1032, ["active", "onClick", "onMouseover"]))), 128))
185
+ ]),
186
+ _: 3
187
+ }, 8, ["class", "data-cy", "dropdown-classes", "open-dropdown", "keep-state", "close-when-clicked-outside"]));
188
+ }
189
+ });
190
+ export {
191
+ ae as default
192
+ };
@@ -0,0 +1,19 @@
1
+ import { defineComponent as a, createElementBlock as t, openBlock as r, normalizeClass as i, renderSlot as o } from "vue";
2
+ const d = ["id"], m = /* @__PURE__ */ a({
3
+ inheritAttrs: !1,
4
+ __name: "BaseBadge",
5
+ props: {
6
+ badgeClass: { default: "uikit-badge-w-primary-sm" }
7
+ },
8
+ setup(s) {
9
+ return (e, l) => (r(), t("span", {
10
+ id: e.$attrs.id,
11
+ class: i(["uikit-badge uikit-shadow-sm", s.badgeClass, e.$attrs.class])
12
+ }, [
13
+ o(e.$slots, "default")
14
+ ], 10, d));
15
+ }
16
+ });
17
+ export {
18
+ m as default
19
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as d, computed as k, createElementBlock as i, openBlock as l, createElementVNode as n, normalizeClass as r, Fragment as u, renderList as h, renderSlot as c, toDisplayString as b, createVNode as p, unref as f } from "vue";
2
+ import { ArrowIcon as C } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
+ import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
+ const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], $ = /* @__PURE__ */ d({
5
+ __name: "BaseBreadcrumb",
6
+ props: {
7
+ items: {},
8
+ listClasses: {},
9
+ listItemClasses: {}
10
+ },
11
+ setup(t) {
12
+ const m = k(() => {
13
+ let e = 0;
14
+ const a = [];
15
+ for (; e < t.items.length; )
16
+ a.push({ ...t.items[e], idx: e }), e < t.items.length - 1 && a.push({ arrowIcon: !0 }), e++;
17
+ return a;
18
+ });
19
+ return (e, a) => (l(), i("nav", g, [
20
+ n("ol", {
21
+ class: r(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", t.listClasses])
22
+ }, [
23
+ (l(!0), i(u, null, h(m.value, (s, o) => (l(), i(u, null, [
24
+ s?.label ? (l(), i("li", {
25
+ key: `breadcrumb-li-${o}`,
26
+ class: r(["uikit-list-none", t.listItemClasses]),
27
+ "data-tooltip": s.dataTooltip
28
+ }, [
29
+ c(e.$slots, "item", {
30
+ item: s
31
+ }, () => [
32
+ n("a", {
33
+ class: r(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": s.active }]),
34
+ href: s.link
35
+ }, b(s.label), 11, I)
36
+ ])
37
+ ], 10, w)) : (l(), i("li", {
38
+ key: `breadcrumb-li-no-label-${o}`,
39
+ class: r(["uikit-list-none", t.listItemClasses]),
40
+ "aria-hidden": "true"
41
+ }, [
42
+ c(e.$slots, "separator", {}, () => [
43
+ p(f(C), {
44
+ class: "-uikit-rotate-90",
45
+ "stroke-color": "#222",
46
+ width: 10,
47
+ height: 10
48
+ })
49
+ ])
50
+ ], 2))
51
+ ], 64))), 256))
52
+ ], 2)
53
+ ]));
54
+ }
55
+ });
56
+ export {
57
+ $ as default
58
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as y, ref as b, computed as l, createElementBlock as f, openBlock as v, withModifiers as s, normalizeStyle as B, normalizeClass as C, renderSlot as u, createVNode as c } from "vue";
2
- import M from "../../../../UIKit/StaticSpinner.js";
3
- const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ y({
1
+ import { defineComponent as c, ref as b, computed as l, createElementBlock as f, openBlock as v, withModifiers as s, normalizeStyle as B, normalizeClass as C, renderSlot as u, createVNode as M } from "vue";
2
+ import z from "../../UIKit/StaticSpinner.js";
3
+ const L = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], $ = /* @__PURE__ */ c({
4
4
  __name: "BaseButton",
5
5
  props: {
6
6
  btnClass: { default: "uikit-btn-w-primary" },
@@ -16,14 +16,14 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
16
16
  type: {}
17
17
  },
18
18
  emits: ["mouseover", "mouseout", "click"],
19
- setup(o, { emit: r }) {
20
- const a = r, n = b(!1), d = l(() => o.size ? `uikit-btn-${o.size}` : ""), m = l(() => o.outlined ? "uikit-btn-outline" : ""), p = () => {
19
+ setup(e, { emit: d }) {
20
+ const o = d, n = b(!1), r = l(() => e.size ? `uikit-btn-${e.size}` : ""), m = l(() => e.outlined ? "uikit-btn-outline" : ""), k = () => {
21
21
  n.value = !0;
22
- }, k = () => {
22
+ }, y = () => {
23
23
  n.value = !1;
24
24
  };
25
- return (e, t) => (v(), f("button", {
26
- id: e.$attrs.id,
25
+ return (a, t) => (v(), f("button", {
26
+ id: a.$attrs.id,
27
27
  "data-cy": e.dataCy,
28
28
  type: e.type,
29
29
  class: C([
@@ -34,33 +34,33 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
34
34
  "uikit-flex uikit-items-center uikit-justify-center": e.isLoading
35
35
  },
36
36
  e.btnClass,
37
- d.value,
37
+ r.value,
38
38
  m.value
39
39
  ]),
40
- style: B(e.$attrs.style),
40
+ style: B(a.$attrs.style),
41
41
  "data-active": e.keepActive,
42
42
  disabled: e.isLoading || e.disabled,
43
43
  "aria-label": e.ariaLabel,
44
44
  title: e.title,
45
45
  onMouseover: t[0] || (t[0] = s((i) => {
46
- p(), a("mouseover", i);
46
+ k(), o("mouseover", i);
47
47
  }, ["stop"])),
48
48
  onMouseout: t[1] || (t[1] = s((i) => {
49
- k(), a("mouseout", i);
49
+ y(), o("mouseout", i);
50
50
  }, ["stop"])),
51
- onClick: t[2] || (t[2] = (i) => a("click", i))
51
+ onClick: t[2] || (t[2] = (i) => o("click", i))
52
52
  }, [
53
- e.isLoading ? u(e.$slots, "spinner", { key: 1 }, () => [
54
- c(M, {
53
+ e.isLoading ? u(a.$slots, "spinner", { key: 1 }, () => [
54
+ M(z, {
55
55
  "stroke-color": e.outlined ? "#ACB4C3" : "#fff"
56
56
  }, null, 8, ["stroke-color"])
57
- ]) : u(e.$slots, "default", {
57
+ ]) : u(a.$slots, "default", {
58
58
  key: 0,
59
59
  hover: n.value
60
60
  })
61
- ], 46, z));
61
+ ], 46, L));
62
62
  }
63
63
  });
64
64
  export {
65
- S as default
65
+ $ as default
66
66
  };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as m, computed as d, createBlock as u, openBlock as C, resolveDynamicComponent as y, normalizeClass as t, withCtx as f, createElementVNode as o, renderSlot as c } from "vue";
2
+ const p = /* @__PURE__ */ m({
3
+ __name: "BaseCard",
4
+ props: {
5
+ type: { default: "" },
6
+ rootComponent: { default: "div" },
7
+ cardImgClasses: { default: "" },
8
+ cardBodyClasses: { default: "" }
9
+ },
10
+ emits: ["click"],
11
+ setup(e, { emit: l }) {
12
+ const n = l, r = d(
13
+ () => e.type === "news" ? "news-card" : e.type
14
+ ), i = d(() => e.type ? `${e.type}-img` : "");
15
+ return (a, s) => (C(), u(y(e.rootComponent), {
16
+ class: t(["card", [r.value]]),
17
+ onClick: s[0] || (s[0] = (v) => n("click"))
18
+ }, {
19
+ default: f(() => [
20
+ o("div", {
21
+ class: t(["card-img", [i.value, e.cardImgClasses]])
22
+ }, [
23
+ c(a.$slots, "card-image", {}, void 0, !0)
24
+ ], 2),
25
+ o("div", {
26
+ class: t(["card-body", [e.cardBodyClasses]])
27
+ }, [
28
+ c(a.$slots, "card-description", {}, void 0, !0)
29
+ ], 2)
30
+ ]),
31
+ _: 3
32
+ }, 8, ["class"]));
33
+ }
34
+ });
35
+ export {
36
+ p as default
37
+ };