@wikicasa-dev/components 2.1.2-alpha.4 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/UIKit/AccessibleSelect.js +1 -1
  2. package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
  3. package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
  4. package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
  5. package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
  6. package/dist/UIKit/BaseAlert.js +2 -3
  7. package/dist/UIKit/BaseAutocomplete.js +1 -1
  8. package/dist/UIKit/BaseBadge.js +2 -3
  9. package/dist/UIKit/BaseBreadcrumb.js +1 -1
  10. package/dist/UIKit/BaseButton.js +1 -1
  11. package/dist/UIKit/BaseCard.js +36 -5
  12. package/dist/UIKit/BaseComplexToggle.js +105 -5
  13. package/dist/UIKit/BaseDropDown.js +1 -1
  14. package/dist/UIKit/BaseFloatingLabel.js +39 -5
  15. package/dist/UIKit/BaseIcon.js +25 -4
  16. package/dist/UIKit/BaseInput.js +210 -5
  17. package/dist/UIKit/BaseModal.js +2 -3
  18. package/dist/UIKit/BasePagination.js +1 -1
  19. package/dist/UIKit/BasePaper.js +9 -9
  20. package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
  21. package/dist/UIKit/BaseSlider.js +206 -5
  22. package/dist/UIKit/BaseSnackbar.js +80 -5
  23. package/dist/UIKit/BaseTextarea.js +126 -5
  24. package/dist/UIKit/BaseToggle.js +41 -5
  25. package/dist/UIKit/BaseTooltip.js +40 -5
  26. package/dist/UIKit/BaseUploadFile.js +1 -1
  27. package/dist/UIKit/Checkbox/CheckboxBtn.js +74 -5
  28. package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
  29. package/dist/UIKit/Radio/RadioButton.js +1 -1
  30. package/dist/UIKit/Radio/RadioGroup.js +1 -1
  31. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +20 -5
  32. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
  33. package/dist/UIKit/Slider/SimpleSlider.js +81 -5
  34. package/dist/UIKit/StaticSpinner.js +26 -5
  35. package/dist/UIKit/Tab/BaseTab.js +1 -1
  36. package/dist/UIKit/Tab/BaseTabList.js +1 -1
  37. package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
  38. package/dist/UIKit/Tab/BaseTabView.js +1 -1
  39. package/dist/assets/SwiperCarousel.css +1 -0
  40. package/dist/chart/DoughnutChart.js +1 -1
  41. package/dist/chart/LineChart.js +1 -1
  42. package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +246 -0
  43. package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js → chunks/ArrowIcon.Bq6Xr3uH.js} +3 -3
  44. package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +32 -0
  45. package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js → chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +8 -8
  46. package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js → chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +1 -1
  47. package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js → chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +21 -21
  48. package/dist/{packages/components/lib/UIKit/BaseAlert.vue.js → chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
  49. package/dist/{packages/components/lib/UIKit/BaseAutocomplete.vue.js → chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js} +74 -64
  50. package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +19 -0
  51. package/dist/{packages/components/lib/UIKit/BaseBreadcrumb.vue.js → chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +5 -5
  52. package/dist/{packages/components/lib/UIKit/BaseButton.vue.js → chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js} +6 -6
  53. package/dist/{packages/components/lib/UIKit/BaseDropDown.vue.js → chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js} +25 -25
  54. package/dist/{packages/components/lib/UIKit/BaseModal.vue.js → chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +61 -56
  55. package/dist/{packages/components/lib/UIKit/BasePagination.vue.js → chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +83 -71
  56. package/dist/{packages/components/lib/UIKit/Tab/BaseTab.vue.js → chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js} +3 -3
  57. package/dist/{packages/components/lib/UIKit/Tab/BaseTabList.vue.js → chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +1 -1
  58. package/dist/{packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js → chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +1 -1
  59. package/dist/{packages/components/lib/UIKit/Tab/BaseTabView.vue.js → chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +17 -17
  60. package/dist/{packages/components/lib/UIKit/BaseUploadFile.vue.js → chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js} +2 -2
  61. package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +111 -0
  62. package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js → chunks/CloseIcon.BZ4U3aiI.js} +11 -11
  63. package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +27 -0
  64. package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js → chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +5 -5
  65. package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js → chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +4 -4
  66. package/dist/{packages/components/lib/chart/LineChart.vue.js → chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js} +2 -2
  67. package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
  68. package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
  69. package/dist/{packages/components/lib/UIKit/Radio/RadioButton.vue.js → chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +9 -9
  70. package/dist/{packages/components/lib/UIKit/Radio/RadioGroup.vue.js → chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +6 -6
  71. package/dist/{packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js → chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +1 -1
  72. package/dist/{packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js → chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js} +8 -8
  73. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
  74. package/dist/chunks/polyline.tNTK3v2u.js +129 -0
  75. package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
  76. package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
  77. package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
  78. package/dist/components/carousel/SwiperCarousel.js +1593 -6
  79. package/dist/components/carousel/SwiperSlide.js +1 -1
  80. package/dist/index.js +85 -89
  81. package/package.json +1 -1
  82. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  83. package/dist/_virtual/polyline.js +0 -2
  84. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css +0 -1
  85. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
  86. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css +0 -1
  87. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.css +0 -1
  88. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
  89. package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +0 -1
  90. package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +0 -1
  91. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -9
  92. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -2
  93. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -40
  94. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
  95. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
  96. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -15
  97. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
  98. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
  99. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -10
  100. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
  101. 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
  102. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +0 -22
  103. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +0 -34
  104. package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +0 -12
  105. package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +0 -71
  106. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
  107. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
  108. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
  109. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
  110. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
  111. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
  112. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
  113. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
  114. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
  115. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
  116. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js +0 -121
  117. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
  118. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
  119. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/create-element-if-not-defined.js +0 -12
  120. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/ssr-window.esm.js +0 -135
  121. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/utils.js +0 -85
  122. package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
  123. package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
  124. package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
  125. package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
  126. package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
  127. package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
  128. package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
  129. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
  130. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +0 -33
  131. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
  132. package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
  133. package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +0 -106
  134. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +0 -40
  135. package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
  136. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +0 -211
  137. package/dist/packages/components/lib/UIKit/BasePaper.vue.js +0 -7
  138. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +0 -207
  139. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
  140. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +0 -127
  141. package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +0 -42
  142. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
  143. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +0 -75
  144. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
  145. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -21
  146. package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
  147. package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +0 -27
  148. package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
  149. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +0 -247
  150. /package/dist/assets/{packages/components/lib/UIKit/BaseAlert.css → BaseAlert.css} +0 -0
  151. /package/dist/assets/{packages/components/lib/UIKit/BaseBadge.css → BaseBadge.css} +0 -0
  152. /package/dist/assets/{packages/components/lib/UIKit/BaseCard.css → BaseCard.css} +0 -0
  153. /package/dist/assets/{packages/components/lib/UIKit/BaseComplexToggle.css → BaseComplexToggle.css} +0 -0
  154. /package/dist/assets/{packages/components/lib/UIKit/BaseFloatingLabel.css → BaseFloatingLabel.css} +0 -0
  155. /package/dist/assets/{packages/components/lib/UIKit/BaseIcon.css → BaseIcon.css} +0 -0
  156. /package/dist/assets/{packages/components/lib/UIKit/BaseInput.css → BaseInput.css} +0 -0
  157. /package/dist/assets/{packages/components/lib/UIKit/BaseModal.css → BaseModal.css} +0 -0
  158. /package/dist/assets/{packages/components/lib/UIKit/BasePaper.css → BasePaper.css} +0 -0
  159. /package/dist/assets/{packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css → BaseShimmerLoader.css} +0 -0
  160. /package/dist/assets/{packages/components/lib/UIKit/BaseSlider.css → BaseSlider.css} +0 -0
  161. /package/dist/assets/{packages/components/lib/UIKit/BaseSnackbar.css → BaseSnackbar.css} +0 -0
  162. /package/dist/assets/{packages/components/lib/UIKit/BaseTextarea.css → BaseTextarea.css} +0 -0
  163. /package/dist/assets/{packages/components/lib/UIKit/BaseToggle.css → BaseToggle.css} +0 -0
  164. /package/dist/assets/{packages/components/lib/UIKit/BaseTooltip.css → BaseTooltip.css} +0 -0
  165. /package/dist/assets/{packages/components/lib/UIKit/Checkbox/CheckboxBtn.css → CheckboxBtn.css} +0 -0
  166. /package/dist/assets/{packages/components/lib/UIKit/Slider/SimpleSlider.css → SimpleSlider.css} +0 -0
  167. /package/dist/assets/{packages/components/lib/UIKit/StaticSpinner.css → StaticSpinner.css} +0 -0
  168. /package/dist/assets/{packages/components/src/tailwind.css → index.css} +0 -0
@@ -1,106 +0,0 @@
1
- import { defineComponent as v, mergeModels as T, useModel as C, computed as c, createElementBlock as n, openBlock as r, normalizeClass as o, createElementVNode as t, withModifiers as f, renderSlot as m, createCommentVNode as k } from "vue";
2
- const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "alt"], M = ["innerHTML"], z = ["data-btn-bg-color", "data-cy"], B = ["src", "alt"], V = ["innerHTML"], j = /* @__PURE__ */ v({
3
- __name: "BaseComplexToggle",
4
- props: /* @__PURE__ */ T({
5
- labels: {},
6
- type: { default: "full" },
7
- mode: { default: "" },
8
- btnBgColor: { default: "uikit-bg-w-lavender" },
9
- btnClasses: {},
10
- borderContainerColor: { default: "uikit-border-w-secondary" },
11
- size: { default: "" }
12
- }, {
13
- modelValue: {
14
- default: null
15
- },
16
- modelModifiers: {}
17
- }),
18
- emits: ["update:modelValue"],
19
- setup(g) {
20
- const l = g, a = C(g, "modelValue"), s = () => {
21
- a.value = l.labels.leftToggle;
22
- }, u = () => {
23
- a.value = l.labels.rightToggle;
24
- };
25
- (() => {
26
- if (l.labels.leftToggle.checked) {
27
- s();
28
- return;
29
- }
30
- if (l.labels.rightToggle.checked) {
31
- u();
32
- return;
33
- }
34
- s();
35
- })();
36
- const b = (e) => a.value?.label === e.label, d = c(() => b(l.labels.leftToggle)), p = c(() => b(l.labels.rightToggle));
37
- return (e, i) => (r(), n("div", {
38
- id: e.$attrs.id || "",
39
- "data-cy": e.$attrs["data-cy"] || "",
40
- class: o(["base-complex-toggle uikit-relative uikit-flex uikit-justify-center uikit-p-0", [e.mode, e.borderContainerColor, e.size]])
41
- }, [
42
- t("div", {
43
- "data-btn-bg-color": e.btnBgColor,
44
- "data-cy": `bct-left-btn${e.labels.leftToggle.label ? `-${e.labels.leftToggle.label}` : ""}`,
45
- class: o(["left-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer", [
46
- {
47
- "base-complex-toggle-active": d.value
48
- }
49
- ]]),
50
- onClick: i[0] || (i[0] = f((h) => s(), ["stop"]))
51
- }, [
52
- m(e.$slots, "left_icon", {}, () => [
53
- e.labels.leftToggle.icon ? (r(), n("img", {
54
- key: 0,
55
- class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
56
- src: e.labels.leftToggle.icon.src,
57
- alt: e.labels.leftToggle.icon.alt,
58
- width: "15",
59
- height: "15"
60
- }, null, 8, L)) : k("", !0)
61
- ], !0),
62
- t("span", {
63
- class: "base-complex-toggle-label uikit-relative uikit-z-10",
64
- innerHTML: e.labels.leftToggle.label
65
- }, null, 8, M)
66
- ], 10, $),
67
- t("div", {
68
- "data-btn-bg-color": e.btnBgColor,
69
- "data-cy": `bct-right-btn${e.labels.rightToggle.label ? `-${e.labels.rightToggle.label}` : ""}`,
70
- class: o(["right-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer", [
71
- {
72
- "base-complex-toggle-active": p.value
73
- }
74
- ]]),
75
- onClick: i[1] || (i[1] = f((h) => u(), ["stop"]))
76
- }, [
77
- m(e.$slots, "right_icon", {}, () => [
78
- e.labels.rightToggle.icon ? (r(), n("img", {
79
- key: 0,
80
- class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
81
- src: e.labels.rightToggle.icon.src,
82
- alt: e.labels.rightToggle.icon.alt,
83
- width: "15",
84
- height: "15"
85
- }, null, 8, B)) : k("", !0)
86
- ], !0),
87
- t("span", {
88
- class: "base-complex-toggle-label uikit-relative uikit-z-10",
89
- innerHTML: e.labels.rightToggle.label
90
- }, null, 8, V)
91
- ], 10, z),
92
- t("div", {
93
- class: o(["uikit-absolute uikit-transition-all uikit-duration-200 uikit-ease-out", [
94
- e.type === "full" ? "base-complex-toggle-active-bg" : "base-complex-toggle-active-padded-bg",
95
- e.btnBgColor,
96
- e.mode,
97
- d.value ? "translateX-left" : "translateX-right",
98
- e.btnClasses
99
- ]])
100
- }, null, 2)
101
- ], 10, y));
102
- }
103
- });
104
- export {
105
- j as default
106
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as o, createElementBlock as l, openBlock as s, withModifiers as r, normalizeClass as t, createElementVNode as u, createCommentVNode as d } from "vue";
2
- const k = ["for"], b = ["innerHTML"], c = /* @__PURE__ */ o({
3
- __name: "BaseFloatingLabel",
4
- props: {
5
- labelState: { default: "inline-label" },
6
- isValid: { default: null },
7
- labelText: {},
8
- disabled: { type: [String, Boolean], default: !1 },
9
- labelClasses: {},
10
- labelTextClasses: {}
11
- },
12
- emits: ["click"],
13
- setup(m, { emit: a }) {
14
- const n = a;
15
- return (e, i) => (s(), l("label", {
16
- for: e.$attrs.for,
17
- class: t(["uikit-pointer-events-none uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
18
- onClick: i[0] || (i[0] = r((p) => n("click"), ["stop"]))
19
- }, [
20
- u("span", {
21
- class: t(["uikit-text uikit-font-medium", [
22
- e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
23
- e.labelTextClasses
24
- ]]),
25
- innerHTML: e.labelText
26
- }, null, 10, b),
27
- e.$attrs.required ? (s(), l("sup", {
28
- key: 0,
29
- class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text", [
30
- { "uikit-text-w-secondary": e.disabled },
31
- { "uikit-text-w-danger": e.isValid === !1 },
32
- { "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
33
- ]])
34
- }, " *", 2)) : d("", !0)
35
- ], 10, k));
36
- }
37
- });
38
- export {
39
- c as default
40
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as e, createElementBlock as i, openBlock as a, normalizeStyle as l, normalizeClass as o } from "vue";
2
- const s = ["id", "alt", "src", "width", "height", "loading"], h = /* @__PURE__ */ e({
3
- __name: "BaseIcon",
4
- props: {
5
- lazyLoading: { type: Boolean },
6
- altAttribute: {},
7
- iconType: { default: "icon-md" },
8
- iconClass: { default: "uikit-mr-5px" },
9
- width: {},
10
- height: {}
11
- },
12
- setup(n) {
13
- return (t, r) => (a(), i("img", {
14
- id: t.$attrs.id,
15
- class: o(["uikit-inline-block", t.iconType, t.iconClass]),
16
- alt: t.altAttribute || t.$attrs.alt,
17
- style: l(t.$attrs.style),
18
- src: t.$attrs.src ? t.$attrs.src : "",
19
- width: t.width,
20
- height: t.height,
21
- loading: t.lazyLoading ? "lazy" : "eager"
22
- }, null, 14, s));
23
- }
24
- });
25
- export {
26
- h as default
27
- };
@@ -1,211 +0,0 @@
1
- import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as g, useAttrs as N, createElementBlock as r, openBlock as u, normalizeClass as v, unref as s, renderSlot as p, createElementVNode as h, createBlock as O, createCommentVNode as w, withKeys as j, withModifiers as y, Fragment as T, renderList as M } from "vue";
2
- import D from "../../../../UIKit/BaseFloatingLabel.js";
3
- import { useFloatingLabel as G } from "../../../../composables/useFloatingLabel.js";
4
- const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Q = { class: "uikit-invisible uikit-float-none uikit-mb-2 uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, W = ["innerHTML"], X = ["innerHTML"], Y = ["innerHTML"], Z = {
5
- key: 1,
6
- class: "under-label uikit-absolute uikit-text-12"
7
- }, ie = /* @__PURE__ */ z({
8
- inheritAttrs: !1,
9
- __name: "BaseInput",
10
- props: /* @__PURE__ */ C({
11
- inputClass: {},
12
- labelText: { default: "" },
13
- feedback: {},
14
- isValid: { default: null },
15
- keepFloatingLabel: { type: Boolean, default: !1 },
16
- formatter: { default: null },
17
- labelClasses: {},
18
- fieldsetClasses: {},
19
- labelTextClasses: {},
20
- withLeftIcon: { type: Boolean, default: () => {
21
- } },
22
- withRightIcon: { type: Boolean, default: () => {
23
- } },
24
- dataCy: {}
25
- }, {
26
- modelValue: { default: "" },
27
- modelModifiers: {}
28
- }),
29
- emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
30
- setup(l, { expose: B, emit: E }) {
31
- const o = A(l, "modelValue"), a = m(""), k = E, {
32
- labelState: d,
33
- handleFocusIn: H,
34
- handleFocusOut: $,
35
- setInlineLabel: V,
36
- setFloatingLabel: I
37
- } = G(k), n = m("text"), f = m({}), b = m(null), R = () => {
38
- 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
- }, L = (e, i) => {
40
- if (!l.formatter || !l.formatter.formatFn)
41
- return a.value = e, "";
42
- const t = e.length ? l.formatter.formatFn(e) : e;
43
- return i && (i.value = t), a.value = t, t;
44
- }, F = (e, i = !0) => {
45
- if (i && (!l.formatter || !l.formatter.unFormatFn))
46
- return o.value = e, e;
47
- if (!i || !l.formatter || !l.formatter.unFormatFn) return;
48
- const t = l.formatter.unFormatFn(e);
49
- return o.value = t ?? "", t;
50
- }, P = ({ target: e }) => {
51
- const i = e, t = F(i.value);
52
- L(
53
- `${t}`,
54
- t === o.value ? i : void 0
55
- );
56
- }, q = () => {
57
- o.value = "", V();
58
- }, K = () => {
59
- n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
60
- };
61
- g(
62
- () => l.feedback,
63
- () => {
64
- R();
65
- },
66
- {
67
- immediate: !0
68
- }
69
- ), g(
70
- o,
71
- (e) => {
72
- L(
73
- `${e}`,
74
- F(`${e}`, !1) === e ? b.value : void 0
75
- ), a.value != null && a.value.length > 0 && d.value !== "floating-label" ? I() : !a.value && document && document.activeElement !== b.value && V();
76
- },
77
- {
78
- immediate: !0
79
- }
80
- ), g(
81
- () => l.keepFloatingLabel,
82
- (e) => {
83
- e ? I() : $(o.value);
84
- }
85
- );
86
- const S = N();
87
- return n.value = S.type || "text", B({
88
- select: () => {
89
- b.value?.select();
90
- }
91
- }), (e, i) => (u(), r("div", {
92
- class: v(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
93
- e.$attrs.class,
94
- { "floating-label": e.labelText },
95
- s(d) === "floating-label" ? "floating-state" : "inline-state",
96
- {
97
- "has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
98
- },
99
- {
100
- "has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
101
- },
102
- { "is-invalid": e.isValid === !1, "is-valid": e.isValid }
103
- ]])
104
- }, [
105
- p(e.$slots, "leftIcon", {}, void 0, !0),
106
- p(e.$slots, "righticon", {
107
- handleClean: q,
108
- handleShowPasswd: K,
109
- curType: n.value
110
- }, void 0, !0),
111
- h("input", {
112
- id: e.$attrs.id,
113
- ref_key: "baseInputEl",
114
- ref: b,
115
- "data-cy": e.dataCy,
116
- name: e.$attrs.name,
117
- class: v(["input-element uikit-peer uikit-relative uikit-ml-[1px] uikit-mt-[6px] uikit-box-border uikit-block uikit-h-[42px] uikit-w-[calc(100%-2px)] uikit-appearance-none uikit-truncate uikit-rounded-[11px] !uikit-border-none uikit-bg-white uikit-bg-no-repeat uikit-px-4 uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none disabled:uikit-bg-w-cultured disabled:uikit-text-w-secondary", [
118
- {
119
- "is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
120
- "is-valid valid-bg !uikit-pr-9": e.isValid
121
- },
122
- {
123
- "uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
124
- },
125
- {
126
- "uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
127
- },
128
- e.inputClass
129
- ]]),
130
- autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
131
- disabled: e.$attrs.disabled,
132
- "aria-labelledby": e.$attrs.id,
133
- readonly: e.$attrs.readonly,
134
- type: n.value,
135
- pattern: e.$attrs.pattern,
136
- min: e.$attrs.min,
137
- max: e.$attrs.max,
138
- maxlength: e.$attrs.maxlength,
139
- inputmode: e.$attrs.inputmode,
140
- placeholder: e.$attrs.placeholder,
141
- value: a.value,
142
- onClick: i[0] || (i[0] = (t) => k("click", t)),
143
- onFocusin: i[1] || (i[1] = y(() => e.labelText && s(H)(), ["stop"])),
144
- onFocusout: i[2] || (i[2] = y((t) => e.labelText && !e.keepFloatingLabel && s($)(a.value), ["stop"])),
145
- onInput: y(P, ["stop"]),
146
- onKeydown: [
147
- i[3] || (i[3] = j(() => k("keydownEnterPressed"), ["enter"])),
148
- i[4] || (i[4] = (t) => k("keydown", t))
149
- ],
150
- onKeyup: i[5] || (i[5] = (t) => k("keyup", t))
151
- }, null, 42, J),
152
- h("fieldset", {
153
- class: v(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
154
- {
155
- "is-invalid uikit-border-w-danger": e.isValid === !1,
156
- "is-valid uikit-border-w-primary": e.isValid,
157
- "uikit-border-w-secondary": e.isValid === null
158
- },
159
- { "uikit-top-0": !e.labelText },
160
- e.fieldsetClasses
161
- ]])
162
- }, [
163
- h("legend", Q, [
164
- h("span", {
165
- class: v(["visible-label uikit-opacity-0", [
166
- { "uikit-mx-5px": e.labelText },
167
- {
168
- "uikit-visible uikit-inline-block": s(d) === "floating-label"
169
- },
170
- {
171
- "uikit-invisible uikit-hidden": s(d) === "inline-label"
172
- }
173
- ]]),
174
- innerHTML: e.labelText
175
- }, null, 10, W)
176
- ])
177
- ], 2),
178
- e.labelText ? (u(), O(D, {
179
- key: 0,
180
- for: e.$attrs.id,
181
- "label-text": e.labelText,
182
- "label-state": s(d),
183
- "is-valid": e.isValid,
184
- required: e.$attrs.required,
185
- disabled: e.$attrs.disabled,
186
- "label-classes": [
187
- s(d) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
188
- e.labelClasses
189
- ],
190
- "label-text-classes": e.labelTextClasses
191
- }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : w("", !0),
192
- p(e.$slots, "feedback", {}, () => [
193
- e.isValid === !1 ? (u(!0), r(T, { key: 0 }, M(f.value.invalid, (t, c) => (u(), r("div", {
194
- key: `${e.$attrs.id}_invalid_${c}`,
195
- class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
196
- innerHTML: t
197
- }, null, 8, X))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, M(f.value.valid, (t, c) => (u(), r("div", {
198
- key: `${e.$attrs.id}_valid_${c}`,
199
- class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
200
- innerHTML: t
201
- }, null, 8, Y))), 128)) : w("", !0)
202
- ], !0),
203
- e.$slots["under-label"] ? (u(), r("div", Z, [
204
- p(e.$slots, "under-label", {}, void 0, !0)
205
- ])) : w("", !0)
206
- ], 2));
207
- }
208
- });
209
- export {
210
- ie as default
211
- };
@@ -1,7 +0,0 @@
1
- import { defineComponent as e } from "vue";
2
- const n = e({
3
- name: "BasePaper"
4
- });
5
- export {
6
- n as default
7
- };
@@ -1,207 +0,0 @@
1
- import { defineComponent as _, mergeModels as j, useModel as D, ref as p, useTemplateRef as T, useAttrs as q, onMounted as G, createElementBlock as H, openBlock as J, createElementVNode as x, withModifiers as k, unref as h, createVNode as C } from "vue";
2
- import E from "../../../../UIKit/BaseInput.js";
3
- const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["value", "min", "max", "step"], W = ["value", "min", "max", "step"], X = { class: "form_control row" }, Y = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, Z = { class: "col-sm-6 col-xl-4" }, te = /* @__PURE__ */ _({
4
- __name: "BaseSlider",
5
- props: /* @__PURE__ */ j({
6
- type: { default: "linear" },
7
- min: { default: 0 },
8
- max: { default: 100 }
9
- }, {
10
- minValue: { default: 0 },
11
- minValueModifiers: {},
12
- maxValue: { default: 0 },
13
- maxValueModifiers: {}
14
- }),
15
- emits: ["update:minValue", "update:maxValue"],
16
- setup(m) {
17
- function M(e, l) {
18
- const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
19
- return [a, t];
20
- }
21
- const L = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, z = (e) => Math.exp(
22
- (e.position - e.minPos) * e.scale + e.minlval
23
- );
24
- function V(e, l, a, t, v) {
25
- const s = l.max - l.min, f = e - l.min, $ = l.value - l.min;
26
- v.style.background = `linear-gradient(
27
- to right,
28
- ${a} 0%,
29
- ${a} ${f / s * 100}%,
30
- ${t} ${f / s * 100}%,
31
- ${t} ${$ / s * 100}%,
32
- ${a} ${$ / s * 100}%,
33
- ${a} 100%)`;
34
- }
35
- function y(e, l) {
36
- e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
37
- }
38
- const r = D(m, "minValue"), o = D(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), P = p(0), B = p(0), g = T("fromSlider"), i = T("toSlider"), S = (e, l) => {
39
- if (!g.value || !i.value) return;
40
- l || (l = "0");
41
- const a = parseInt(l, 10);
42
- if (e == "min-input") {
43
- if (a >= o.value) return;
44
- r.value = a, A(i.value, a, o.value);
45
- return;
46
- }
47
- a < r.value || (o.value = a, N(i.value, i.value, r.value, a));
48
- }, I = (e) => {
49
- if (m.type === "logarithmic")
50
- return e = e || 1, parseInt(
51
- L({
52
- value: e,
53
- minPos: n.value,
54
- minlval: F.value,
55
- scale: B.value
56
- }).toFixed(0),
57
- 10
58
- );
59
- if (m.type === "linear")
60
- return e;
61
- throw new Error("The slider type has not been implemented");
62
- }, b = (e) => {
63
- if (m.type === "logarithmic")
64
- return e = e || 1, parseInt(
65
- z({
66
- position: e,
67
- scale: B.value,
68
- minlval: F.value,
69
- minPos: n.value
70
- }).toFixed(0),
71
- 10
72
- );
73
- if (m.type === "linear")
74
- return e;
75
- throw new Error("The slider type has not been implemented");
76
- }, A = (e, l, a) => {
77
- const t = I(l), v = I(a);
78
- V(
79
- t,
80
- {
81
- min: n.value,
82
- max: u.value,
83
- value: v
84
- },
85
- "#B4C2F0",
86
- "#2B5DFF",
87
- e
88
- );
89
- const s = t, f = o.value;
90
- s > f ? c.value = f : c.value = s;
91
- }, N = (e, l, a, t) => {
92
- const v = I(a), s = I(t);
93
- V(
94
- v,
95
- {
96
- min: n.value,
97
- max: u.value,
98
- value: s
99
- },
100
- "#B4C2F0",
101
- "#2B5DFF",
102
- l
103
- );
104
- const f = r.value, $ = s;
105
- y(o.value, e), f <= $ ? d.value = $ : d.value = f;
106
- }, U = (e, l) => {
107
- if (!l.value) return;
108
- const [a, t] = M(e, l), v = b(a);
109
- V(
110
- a,
111
- {
112
- min: n.value,
113
- max: u.value,
114
- value: t
115
- },
116
- "#B4C2F0",
117
- "#2B5DFF",
118
- l
119
- ), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
120
- }, R = (e, l) => {
121
- if (!l.value) return;
122
- const [a, t] = M(e, l), v = b(t);
123
- V(
124
- c.value,
125
- {
126
- min: n.value,
127
- max: u.value,
128
- value: t
129
- },
130
- "#B4C2F0",
131
- "#2B5DFF",
132
- l
133
- ), y(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
134
- }, w = q();
135
- return (() => {
136
- n.value = parseInt(`${m.min || 0}`, 10), u.value = parseInt(`${m.max || 100}`, 10), c.value = n.value, d.value = u.value, r.value = parseInt(`${w.minValue || n.value}`, 10), o.value = parseInt(`${w.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), P.value = Math.log(o.value), B.value = (P.value - F.value) / (u.value - n.value);
137
- })(), G(() => {
138
- !g.value || !i.value || (V(
139
- c.value,
140
- {
141
- min: n.value,
142
- max: u.value,
143
- value: d.value
144
- },
145
- "#B4C2F0",
146
- "#2B5DFF",
147
- i.value
148
- ), y(d.value, i.value));
149
- }), (e, l) => (J(), H("div", K, [
150
- x("div", O, [
151
- x("input", {
152
- ref_key: "fromSlider",
153
- ref: g,
154
- class: "fromSlider",
155
- type: "range",
156
- value: c.value,
157
- min: n.value,
158
- max: u.value,
159
- step: e.$attrs.step,
160
- onInput: l[0] || (l[0] = k((a) => U(
161
- h(g),
162
- h(i)
163
- ), ["stop"]))
164
- }, null, 40, Q),
165
- x("input", {
166
- ref_key: "toSlider",
167
- ref: i,
168
- class: "toSlider",
169
- type: "range",
170
- value: d.value,
171
- min: n.value,
172
- max: u.value,
173
- step: e.$attrs.step,
174
- onInput: l[1] || (l[1] = k((a) => R(
175
- h(g),
176
- h(i)
177
- ), ["stop"]))
178
- }, null, 40, W)
179
- ]),
180
- x("div", X, [
181
- x("div", Y, [
182
- C(E, {
183
- "label-text": "Min",
184
- type: "text",
185
- pattern: "[0-9]*",
186
- inputmode: "numeric",
187
- "model-value": r.value,
188
- "onUpdate:modelValue": l[2] || (l[2] = (a) => S("min-input", `${a || ""}`))
189
- }, null, 8, ["model-value"])
190
- ]),
191
- x("div", Z, [
192
- C(E, {
193
- "label-text": "Max",
194
- type: "text",
195
- pattern: "[0-9]*",
196
- inputmode: "numeric",
197
- "model-value": o.value,
198
- "onUpdate:modelValue": l[3] || (l[3] = (a) => S("max-input", `${a || ""}`))
199
- }, null, 8, ["model-value"])
200
- ])
201
- ])
202
- ]));
203
- }
204
- });
205
- export {
206
- te as default
207
- };
@@ -1,81 +0,0 @@
1
- import { defineComponent as b, ref as u, onBeforeMount as f, createBlock as h, openBlock as i, Teleport as y, createElementVNode as e, withModifiers as l, normalizeClass as x, createElementBlock as a, createCommentVNode as s, createVNode as v, unref as _ } from "vue";
2
- import { CloseIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
3
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
- const g = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, T = ["data-cy"], w = ["src", "alt"], L = {
5
- key: 1,
6
- class: "snackbar-type-icon uikit-bg-contain uikit-bg-no-repeat"
7
- }, M = { class: "snackbar-text uikit-px-4 uikit-py-0 uikit-text uikit-font-regular max-sm:uikit-max-w-[80%] max-sm:uikit-pr-0 sm:uikit-text-16" }, B = ["innerHTML"], H = ["innerHTML"], z = /* @__PURE__ */ b({
8
- inheritAttrs: !1,
9
- __name: "BaseSnackbar",
10
- props: {
11
- type: { default: "" },
12
- title: {},
13
- body: {},
14
- icon: {},
15
- timeout: { default: 55e4 },
16
- cb: { default: null }
17
- },
18
- emits: ["snackbar-hidden"],
19
- setup(k, { emit: m }) {
20
- const n = k, d = m, o = u(null), r = u(null), p = () => {
21
- o.value && o.value();
22
- }, c = () => {
23
- const t = r.value;
24
- t && (t.classList.remove("snackbar-active"), t.classList.add("snackbar-hidden"), setTimeout(() => {
25
- d("snackbar-hidden");
26
- }, 300));
27
- };
28
- return f(() => {
29
- n.cb && (o.value = n.cb), setTimeout(() => {
30
- c();
31
- }, n.timeout);
32
- }), (t, S) => (i(), h(y, { to: "body" }, [
33
- e("div", g, [
34
- e("div", {
35
- ref_key: "snackbar",
36
- ref: r,
37
- "data-cy": t.$attrs["data-cy"],
38
- class: x(["snackbar snackbar-active uikit-flex uikit-items-center uikit-rounded-[5px] uikit-px-4 uikit-py-10px uikit-font-medium uikit-shadow hover:uikit-cursor-pointer max-sm:uikit-relative max-sm:uikit-mx-10px max-sm:uikit-my-0", t.type]),
39
- onClick: l(p, ["stop"])
40
- }, [
41
- t.icon ? (i(), a("img", {
42
- key: 0,
43
- src: t.icon.src,
44
- alt: `${t.icon.alt}`,
45
- width: "20",
46
- height: "20"
47
- }, null, 8, w)) : s("", !0),
48
- t.type && !t.icon ? (i(), a("span", L)) : s("", !0),
49
- e("div", M, [
50
- t.title ? (i(), a("p", {
51
- key: 0,
52
- class: "uikit-m-0",
53
- innerHTML: t.title
54
- }, null, 8, B)) : s("", !0),
55
- t.body ? (i(), a("p", {
56
- key: 1,
57
- class: "uikit-m-0",
58
- innerHTML: t.body
59
- }, null, 8, H)) : s("", !0)
60
- ]),
61
- e("button", {
62
- type: "button",
63
- "data-cy": "base-snackbar-close-btn",
64
- class: "uikit-bg-transparent max-sm:uikit-absolute max-sm:uikit-right-5",
65
- onClick: l(c, ["stop"])
66
- }, [
67
- v(_(C), {
68
- class: "snackbar-close-icon",
69
- width: 20,
70
- height: 20,
71
- "stroke-color": "#000"
72
- })
73
- ])
74
- ], 10, T)
75
- ])
76
- ]));
77
- }
78
- });
79
- export {
80
- z as default
81
- };