@wikicasa-dev/components 2.1.22 → 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,8 +1,8 @@
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__ */ _({
1
+ import { defineComponent as R, mergeModels as _, useModel as w, ref as p, useTemplateRef as D, useAttrs as j, onMounted as q, createElementBlock as G, openBlock as H, createElementVNode as x, withModifiers as T, createVNode as k } from "vue";
2
+ import C from "../../UIKit/BaseInput.js";
3
+ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["value", "min", "max", "step"], Q = ["value", "min", "max", "step"], W = { class: "form_control row" }, X = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, Y = { class: "col-sm-6 col-xl-4" }, ae = /* @__PURE__ */ R({
4
4
  __name: "BaseSlider",
5
- props: /* @__PURE__ */ j({
5
+ props: /* @__PURE__ */ _({
6
6
  type: { default: "linear" },
7
7
  min: { default: 0 },
8
8
  max: { default: 100 }
@@ -14,11 +14,11 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
14
14
  }),
15
15
  emits: ["update:minValue", "update:maxValue"],
16
16
  setup(m) {
17
- function M(e, l) {
17
+ function B(e, l) {
18
18
  const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
19
19
  return [a, t];
20
20
  }
21
- const L = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, z = (e) => Math.exp(
21
+ const E = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, L = (e) => Math.exp(
22
22
  (e.position - e.minPos) * e.scale + e.minlval
23
23
  );
24
24
  function V(e, l, a, t, v) {
@@ -32,39 +32,39 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
32
32
  ${a} ${$ / s * 100}%,
33
33
  ${a} 100%)`;
34
34
  }
35
- function y(e, l) {
35
+ function h(e, l) {
36
36
  e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
37
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) => {
38
+ const r = w(m, "minValue"), o = w(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), M = p(0), y = p(0), g = D("fromSlider"), i = D("toSlider"), P = (e, l) => {
39
39
  if (!g.value || !i.value) return;
40
40
  l || (l = "0");
41
41
  const a = parseInt(l, 10);
42
42
  if (e == "min-input") {
43
43
  if (a >= o.value) return;
44
- r.value = a, A(i.value, a, o.value);
44
+ r.value = a, z(i.value, a, o.value);
45
45
  return;
46
46
  }
47
- a < r.value || (o.value = a, N(i.value, i.value, r.value, a));
47
+ a < r.value || (o.value = a, A(i.value, i.value, r.value, a));
48
48
  }, I = (e) => {
49
49
  if (m.type === "logarithmic")
50
50
  return e = e || 1, parseInt(
51
- L({
51
+ E({
52
52
  value: e,
53
53
  minPos: n.value,
54
54
  minlval: F.value,
55
- scale: B.value
55
+ scale: y.value
56
56
  }).toFixed(0),
57
57
  10
58
58
  );
59
59
  if (m.type === "linear")
60
60
  return e;
61
61
  throw new Error("The slider type has not been implemented");
62
- }, b = (e) => {
62
+ }, S = (e) => {
63
63
  if (m.type === "logarithmic")
64
64
  return e = e || 1, parseInt(
65
- z({
65
+ L({
66
66
  position: e,
67
- scale: B.value,
67
+ scale: y.value,
68
68
  minlval: F.value,
69
69
  minPos: n.value
70
70
  }).toFixed(0),
@@ -73,7 +73,7 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
73
73
  if (m.type === "linear")
74
74
  return e;
75
75
  throw new Error("The slider type has not been implemented");
76
- }, A = (e, l, a) => {
76
+ }, z = (e, l, a) => {
77
77
  const t = I(l), v = I(a);
78
78
  V(
79
79
  t,
@@ -88,7 +88,7 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
88
88
  );
89
89
  const s = t, f = o.value;
90
90
  s > f ? c.value = f : c.value = s;
91
- }, N = (e, l, a, t) => {
91
+ }, A = (e, l, a, t) => {
92
92
  const v = I(a), s = I(t);
93
93
  V(
94
94
  v,
@@ -102,10 +102,10 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
102
102
  l
103
103
  );
104
104
  const f = r.value, $ = s;
105
- y(o.value, e), f <= $ ? d.value = $ : d.value = f;
106
- }, U = (e, l) => {
105
+ h(o.value, e), f <= $ ? d.value = $ : d.value = f;
106
+ }, N = (e, l) => {
107
107
  if (!l.value) return;
108
- const [a, t] = M(e, l), v = b(a);
108
+ const [a, t] = B(e, l), v = S(a);
109
109
  V(
110
110
  a,
111
111
  {
@@ -117,9 +117,9 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
117
117
  "#2B5DFF",
118
118
  l
119
119
  ), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
120
- }, R = (e, l) => {
120
+ }, U = (e, l) => {
121
121
  if (!l.value) return;
122
- const [a, t] = M(e, l), v = b(t);
122
+ const [a, t] = B(e, l), v = S(t);
123
123
  V(
124
124
  c.value,
125
125
  {
@@ -130,11 +130,11 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
130
130
  "#B4C2F0",
131
131
  "#2B5DFF",
132
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();
133
+ ), h(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
134
+ }, b = j();
135
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(() => {
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(`${b.minValue || n.value}`, 10), o.value = parseInt(`${b.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), M.value = Math.log(o.value), y.value = (M.value - F.value) / (u.value - n.value);
137
+ })(), q(() => {
138
138
  !g.value || !i.value || (V(
139
139
  c.value,
140
140
  {
@@ -145,9 +145,9 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
145
145
  "#B4C2F0",
146
146
  "#2B5DFF",
147
147
  i.value
148
- ), y(d.value, i.value));
149
- }), (e, l) => (J(), H("div", K, [
150
- x("div", O, [
148
+ ), h(d.value, i.value));
149
+ }), (e, l) => (H(), G("div", J, [
150
+ x("div", K, [
151
151
  x("input", {
152
152
  ref_key: "fromSlider",
153
153
  ref: g,
@@ -157,11 +157,11 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
157
157
  min: n.value,
158
158
  max: u.value,
159
159
  step: e.$attrs.step,
160
- onInput: l[0] || (l[0] = k((a) => U(
161
- h(g),
162
- h(i)
160
+ onInput: l[0] || (l[0] = T((a) => N(
161
+ g.value,
162
+ i.value
163
163
  ), ["stop"]))
164
- }, null, 40, Q),
164
+ }, null, 40, O),
165
165
  x("input", {
166
166
  ref_key: "toSlider",
167
167
  ref: i,
@@ -171,31 +171,31 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
171
171
  min: n.value,
172
172
  max: u.value,
173
173
  step: e.$attrs.step,
174
- onInput: l[1] || (l[1] = k((a) => R(
175
- h(g),
176
- h(i)
174
+ onInput: l[1] || (l[1] = T((a) => U(
175
+ g.value,
176
+ i.value
177
177
  ), ["stop"]))
178
- }, null, 40, W)
178
+ }, null, 40, Q)
179
179
  ]),
180
- x("div", X, [
181
- x("div", Y, [
182
- C(E, {
180
+ x("div", W, [
181
+ x("div", X, [
182
+ k(C, {
183
183
  "label-text": "Min",
184
184
  type: "text",
185
185
  pattern: "[0-9]*",
186
186
  inputmode: "numeric",
187
187
  "model-value": r.value,
188
- "onUpdate:modelValue": l[2] || (l[2] = (a) => S("min-input", `${a || ""}`))
188
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => P("min-input", `${a || ""}`))
189
189
  }, null, 8, ["model-value"])
190
190
  ]),
191
- x("div", Z, [
192
- C(E, {
191
+ x("div", Y, [
192
+ k(C, {
193
193
  "label-text": "Max",
194
194
  type: "text",
195
195
  pattern: "[0-9]*",
196
196
  inputmode: "numeric",
197
197
  "model-value": o.value,
198
- "onUpdate:modelValue": l[3] || (l[3] = (a) => S("max-input", `${a || ""}`))
198
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => P("max-input", `${a || ""}`))
199
199
  }, null, 8, ["model-value"])
200
200
  ])
201
201
  ])
@@ -203,5 +203,5 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
203
203
  }
204
204
  });
205
205
  export {
206
- te as default
206
+ ae as default
207
207
  };
@@ -0,0 +1,119 @@
1
+ import { defineComponent as T, mergeModels as g, useModel as w, ref as x, watch as h, nextTick as C, createBlock as f, openBlock as m, unref as t, withCtx as o, renderSlot as n, createVNode as i, normalizeClass as b, createCommentVNode as y, normalizeStyle as I } from "vue";
2
+ import { CloseIcon as V } from "../../node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
3
+ import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
+ import { ToastProvider as $, ToastRoot as P, ToastTitle as z, ToastDescription as B, ToastClose as D, ToastAction as M, ProgressRoot as S, ProgressIndicator as j, ToastPortal as N, ToastViewport as R } from "reka-ui";
5
+ const q = /* @__PURE__ */ T({
6
+ __name: "BaseSnackbar",
7
+ props: /* @__PURE__ */ g({
8
+ alertClass: { default: "primary" },
9
+ duration: { default: 3e3 },
10
+ to: { default: "body" }
11
+ }, {
12
+ open: { type: Boolean, default: !1 },
13
+ openModifiers: {}
14
+ }),
15
+ emits: ["update:open"],
16
+ setup(l) {
17
+ const r = w(l, "open"), a = x(0);
18
+ let d, k;
19
+ const c = (e = 3e3) => {
20
+ a.value = 0;
21
+ const u = Date.now();
22
+ k = setInterval(() => {
23
+ const v = Date.now() - u;
24
+ a.value = Math.min(100, v / e * 100), a.value >= 100 && clearInterval(k);
25
+ }, 30);
26
+ }, p = () => {
27
+ clearTimeout(d), d = setTimeout(() => {
28
+ r.value = !1;
29
+ }, l.duration), c(l.duration);
30
+ };
31
+ return h(
32
+ r,
33
+ (e) => {
34
+ C(() => {
35
+ if (e) {
36
+ p();
37
+ return;
38
+ }
39
+ clearInterval(k), clearTimeout(d), a.value = 0;
40
+ });
41
+ },
42
+ { immediate: !0 }
43
+ ), (e, u) => (m(), f(t($), null, {
44
+ default: o(() => [
45
+ n(e.$slots, "trigger", {
46
+ open: () => r.value = !0
47
+ }),
48
+ i(t(P), {
49
+ open: r.value,
50
+ "onUpdate:open": u[1] || (u[1] = (s) => r.value = s),
51
+ duration: l.duration,
52
+ class: b(["toast-root uikit-shadow-surface uikit-relative uikit-flex uikit-gap-[8px] uikit-overflow-hidden uikit-rounded-[4px] uikit-p-[16px] uikit-text-16 uikit-font-medium sm:uikit-max-w-[460px]", ["uikit-alert", `uikit-alert-w-${l.alertClass}`]])
53
+ }, {
54
+ default: o(() => [
55
+ e.$slots.title ? (m(), f(t(z), {
56
+ key: 0,
57
+ "as-child": ""
58
+ }, {
59
+ default: o(() => [
60
+ n(e.$slots, "title")
61
+ ]),
62
+ _: 3
63
+ })) : y("", !0),
64
+ i(t(B), { "as-child": "" }, {
65
+ default: o(() => [
66
+ n(e.$slots, "default"),
67
+ i(t(D), { class: "uikit-ml-[16px] uikit-flex uikit-size-[24px] uikit-shrink-0 uikit-cursor-pointer uikit-appearance-none uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-[#C1C8D5]" }, {
68
+ default: o(() => [
69
+ i(t(V), {
70
+ width: 12,
71
+ height: 12,
72
+ "stroke-color": "#fff"
73
+ })
74
+ ]),
75
+ _: 1
76
+ })
77
+ ]),
78
+ _: 3
79
+ }),
80
+ i(t(M), {
81
+ class: "[grid-area:_action]",
82
+ "as-child": "",
83
+ "alt-text": "Goto schedule to undo"
84
+ }, {
85
+ default: o(() => [
86
+ n(e.$slots, "toast-action")
87
+ ]),
88
+ _: 3
89
+ }),
90
+ i(t(S), {
91
+ modelValue: a.value,
92
+ "onUpdate:modelValue": u[0] || (u[0] = (s) => a.value = s),
93
+ class: "uikit-absolute uikit-bottom-0 uikit-left-0 uikit-h-[4px] uikit-w-full uikit-overflow-hidden"
94
+ }, {
95
+ default: o(() => [
96
+ i(t(j), {
97
+ class: "uikit-relative uikit-block uikit-size-full uikit-bg-[#2b5dff] uikit-transition-transform uikit-duration-75 uikit-will-change-transform",
98
+ style: I(`transform: translateX(-${100 - a.value}%)`)
99
+ }, null, 8, ["style"])
100
+ ]),
101
+ _: 1
102
+ }, 8, ["modelValue"])
103
+ ]),
104
+ _: 3
105
+ }, 8, ["open", "duration", "class"]),
106
+ i(t(N), { to: l.to }, {
107
+ default: o(() => [
108
+ i(t(R), { class: "uikit-alert-viewport uikit-fixed uikit-bottom-0 uikit-right-0 uikit-m-0 uikit-flex uikit-w-full uikit-list-none uikit-flex-col uikit-items-end uikit-justify-end uikit-gap-[8px] uikit-p-0" })
109
+ ]),
110
+ _: 1
111
+ }, 8, ["to"])
112
+ ]),
113
+ _: 3
114
+ }));
115
+ }
116
+ });
117
+ export {
118
+ q as default
119
+ };
@@ -1,84 +1,84 @@
1
- import { defineComponent as h, mergeModels as f, useModel as $, ref as x, watch as L, createElementBlock as k, openBlock as b, normalizeClass as s, createElementVNode as o, createCommentVNode as p, unref as a, createVNode as M, withModifiers as d, nextTick as C } from "vue";
2
- import F from "../../../../UIKit/BaseFloatingLabel.js";
3
- import { useFloatingLabel as z } from "../../../../composables/useFloatingLabel.js";
4
- const B = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], E = {
1
+ import { defineComponent as T, mergeModels as c, useModel as h, ref as $, watch as L, createElementBlock as b, openBlock as f, normalizeClass as s, createElementVNode as r, createCommentVNode as v, unref as u, createVNode as M, withModifiers as o, nextTick as C } from "vue";
2
+ import F from "../../UIKit/BaseFloatingLabel.js";
3
+ import { useFloatingLabel as B } from "../../composables/useFloatingLabel.js";
4
+ const z = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], E = {
5
5
  key: 0,
6
6
  class: "uikit-visible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-duration-[50s] uikit-ease-out"
7
- }, H = ["innerHTML"], q = ["innerHTML"], S = /* @__PURE__ */ h({
7
+ }, H = ["innerHTML"], q = ["innerHTML"], S = /* @__PURE__ */ T({
8
8
  inheritAttrs: !1,
9
9
  __name: "BaseTextarea",
10
- props: /* @__PURE__ */ f({
10
+ props: /* @__PURE__ */ c({
11
11
  labelText: { default: "" },
12
12
  feedback: {},
13
- isValid: { default: null },
13
+ isValid: { type: [Boolean, null], default: null },
14
14
  resize: { type: Boolean, default: !1 },
15
15
  labelClasses: {}
16
16
  }, {
17
17
  modelValue: { default: "" },
18
18
  modelModifiers: {}
19
19
  }),
20
- emits: /* @__PURE__ */ f(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
21
- setup(v, { expose: m, emit: w }) {
22
- const r = $(v, "modelValue"), n = w, {
23
- labelState: l,
24
- handleFocusIn: c,
25
- handleFocusOut: g,
26
- setFloatingLabel: y,
27
- setInlineLabel: V
28
- } = z(n), i = x(null);
20
+ emits: /* @__PURE__ */ c(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
21
+ setup(e, { expose: m, emit: x }) {
22
+ const n = h(e, "modelValue"), k = x, {
23
+ labelState: a,
24
+ handleFocusIn: w,
25
+ handleFocusOut: y,
26
+ setFloatingLabel: g,
27
+ setInlineLabel: p
28
+ } = B(k), t = $(null);
29
29
  L(
30
- r,
31
- (e) => {
32
- `${e}`.length && l.value !== "floating-label" ? y() : !e?.length && l.value !== "inline-label" && document.activeElement !== i.value && V();
30
+ n,
31
+ (i) => {
32
+ `${i}`.length && a.value !== "floating-label" ? g() : !i?.length && a.value !== "inline-label" && document.activeElement !== t.value && p();
33
33
  },
34
34
  { immediate: !0 }
35
35
  );
36
- const T = ({ target: e }) => {
37
- r.value = e.value;
36
+ const V = ({ target: i }) => {
37
+ n.value = i.value;
38
38
  };
39
39
  return m({
40
40
  disableTextarea: () => {
41
- i.value && (i.value.setAttribute("readonly", "readonly"), i.value.classList.add("disabled"));
41
+ t.value && (t.value.setAttribute("readonly", "readonly"), t.value.classList.add("disabled"));
42
42
  },
43
43
  clearTextareaElem: () => {
44
- i.value && (i.value.value = "");
44
+ t.value && (t.value.value = "");
45
45
  },
46
46
  focusDisabledTextarea: () => {
47
- i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"), C(() => {
48
- i.value && i.value.focus();
47
+ t.value && (t.value.removeAttribute("readonly"), t.value.classList.remove("disabled"), C(() => {
48
+ t.value && t.value.focus();
49
49
  }));
50
50
  }
51
- }), (e, t) => (b(), k("div", {
52
- class: s(e.$attrs["wrapper-classes"])
51
+ }), (i, l) => (f(), b("div", {
52
+ class: s(i.$attrs["wrapper-classes"])
53
53
  }, [
54
- o("div", {
54
+ r("div", {
55
55
  class: s(["input-wrapper uikit-relative uikit-rounded-xs uikit-px-0", [
56
- a(l) === "floating-label" ? "floating-state" : "inline-state"
56
+ u(a) === "floating-label" ? "floating-state" : "inline-state"
57
57
  ]])
58
58
  }, [
59
- o("textarea", {
60
- id: e.$attrs.id,
59
+ r("textarea", {
60
+ id: i.$attrs.id,
61
61
  ref_key: "textarea",
62
- ref: i,
63
- "data-cy": e.$attrs["data-cy"],
62
+ ref: t,
63
+ "data-cy": i.$attrs["data-cy"],
64
64
  class: s(["textarea-scrollbar uikit-peer/fieldset uikit-relative uikit-z-20 uikit-mb-10px uikit-mt-15px uikit-w-[calc(100%-1px)] uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-xs uikit-border-0 uikit-bg-transparent uikit-bg-no-repeat uikit-px-15px uikit-pb-[8px] uikit-outline-none", [
65
65
  { "is-invalid invalid-bg !uikit-pr-10": e.isValid === !1 },
66
66
  { "is-valid valid-bg !uikit-pr-10": e.isValid },
67
67
  { "uikit-resize-none": !e.resize },
68
- e.$attrs.class
68
+ i.$attrs.class
69
69
  ]]),
70
- rows: e.$attrs.rows,
71
- disabled: e.$attrs.disabled,
72
- "aria-labelledby": e.$attrs.id,
73
- readonly: e.$attrs.readonly,
74
- onFocusin: t[0] || (t[0] = d((u) => a(c)(), ["stop"])),
75
- onFocusout: t[1] || (t[1] = d((u) => a(g)(`${r.value}`.trim()), ["stop"])),
76
- onInput: d(T, ["stop"]),
77
- onKeydown: t[2] || (t[2] = d((u) => n("keydown", u), ["stop"])),
78
- onClick: t[3] || (t[3] = (u) => n("click", u)),
79
- value: r.value
80
- }, null, 42, B),
81
- o("fieldset", {
70
+ rows: i.$attrs.rows,
71
+ disabled: i.$attrs.disabled,
72
+ "aria-labelledby": i.$attrs.id,
73
+ readonly: i.$attrs.readonly,
74
+ onFocusin: l[0] || (l[0] = o((d) => u(w)(), ["stop"])),
75
+ onFocusout: l[1] || (l[1] = o((d) => u(y)(`${n.value}`.trim()), ["stop"])),
76
+ onInput: o(V, ["stop"]),
77
+ onKeydown: l[2] || (l[2] = o((d) => k("keydown", d), ["stop"])),
78
+ onClick: l[3] || (l[3] = (d) => k("click", d)),
79
+ value: n.value
80
+ }, null, 42, z),
81
+ r("fieldset", {
82
82
  class: s(["uikit-pointer-events-none uikit-absolute -uikit-top-0 uikit-bottom-[3px] uikit-left-0 uikit-right-0 uikit-m-0 uikit-min-w-0 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-bg-white uikit-p-0 uikit-px-2 uikit-text-start uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus/fieldset:uikit-border-2 peer-focus/fieldset:uikit-border-w-primary peer-disabled/fieldset:uikit-bg-w-cultured peer-[&.disabled]/fieldset:uikit-bg-w-cultured peer-focus/fieldset:[&.is-invalid]:uikit-border-w-danger", [
83
83
  { "is-invalid": e.isValid === !1, "is-valid": e.isValid },
84
84
  { "uikit-border-w-danger": e.isValid === !1 },
@@ -86,39 +86,39 @@ const B = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "
86
86
  { "uikit-border-w-secondary": e.isValid === null }
87
87
  ]])
88
88
  }, [
89
- e.labelText ? (b(), k("legend", E, [
90
- o("span", {
89
+ e.labelText ? (f(), b("legend", E, [
90
+ r("span", {
91
91
  class: s(["uikit-px-5px uikit-opacity-0", [
92
92
  {
93
- "uikit-visible uikit-inline-block": a(l) === "floating-label"
93
+ "uikit-visible uikit-inline-block": u(a) === "floating-label"
94
94
  },
95
95
  {
96
- "uikit-invisible uikit-hidden": a(l) === "inline-label"
96
+ "uikit-invisible uikit-hidden": u(a) === "inline-label"
97
97
  }
98
98
  ]]),
99
99
  innerHTML: e.labelText
100
100
  }, null, 10, H)
101
- ])) : p("", !0)
101
+ ])) : v("", !0)
102
102
  ], 2),
103
103
  M(F, {
104
- for: e.$attrs.id,
104
+ for: i.$attrs.id,
105
105
  "label-text": e.labelText,
106
- "label-state": a(l),
107
- required: e.$attrs.required,
106
+ "label-state": u(a),
107
+ required: i.$attrs.required,
108
108
  "is-valid": e.isValid,
109
109
  "label-classes": [
110
- a(l) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
110
+ u(a) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
111
111
  e.labelClasses
112
112
  ]
113
113
  }, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "label-classes"])
114
114
  ], 2),
115
- (e.isValid || e.isValid === !1) && e.feedback ? (b(), k("div", {
115
+ (e.isValid || e.isValid === !1) && e.feedback ? (f(), b("div", {
116
116
  key: 0,
117
117
  class: s(
118
118
  e.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"
119
119
  ),
120
120
  innerHTML: e.isValid === !1 ? e.feedback.invalid : e.feedback.valid
121
- }, null, 10, q)) : p("", !0)
121
+ }, null, 10, q)) : v("", !0)
122
122
  ], 2));
123
123
  }
124
124
  });
@@ -1,5 +1,5 @@
1
- import { defineComponent as a, mergeModels as n, useModel as d, createElementBlock as k, openBlock as b, normalizeClass as c, renderSlot as l, createElementVNode as t, createCommentVNode as f, withModifiers as p } from "vue";
2
- const m = { class: "switch uikit-relative uikit-inline-block uikit-min-w-[40px] uikit-text-sm" }, h = ["data-cy", "checked"], g = ["innerHTML"], y = /* @__PURE__ */ a({
1
+ import { defineComponent as s, mergeModels as n, useModel as d, createElementBlock as k, openBlock as b, normalizeClass as c, renderSlot as r, createElementVNode as i, createCommentVNode as f, withModifiers as m } from "vue";
2
+ const p = { class: "switch uikit-relative uikit-inline-block uikit-min-w-[40px] uikit-text-sm" }, h = ["data-cy", "checked"], g = ["innerHTML"], y = /* @__PURE__ */ s({
3
3
  inheritAttrs: !1,
4
4
  __name: "BaseToggle",
5
5
  props: /* @__PURE__ */ n({
@@ -10,28 +10,28 @@ const m = { class: "switch uikit-relative uikit-inline-block uikit-min-w-[40px]
10
10
  modelModifiers: {}
11
11
  }),
12
12
  emits: ["update:modelValue"],
13
- setup(r) {
14
- const o = d(r, "modelValue"), u = ({ target: e }) => {
15
- o.value = e.checked;
13
+ setup(o) {
14
+ const l = d(o, "modelValue"), u = ({ target: e }) => {
15
+ l.value = e.checked;
16
16
  };
17
- return (e, i) => (b(), k("div", {
17
+ return (e, t) => (b(), k("div", {
18
18
  class: c(["switch-container uikit-inline-block uikit-items-center", e.$attrs.class])
19
19
  }, [
20
- l(e.$slots, "leftLabel", {}, void 0, !0),
21
- t("label", m, [
22
- t("input", {
20
+ r(e.$slots, "leftLabel", {}, void 0, !0),
21
+ i("label", p, [
22
+ i("input", {
23
23
  "data-cy": e.$attrs["data-cy"] ?? "",
24
24
  class: "uikit-peer/toggle uikit-h-0 uikit-w-0 uikit-opacity-0",
25
25
  type: "checkbox",
26
- checked: o.value,
27
- onInput: i[0] || (i[0] = p((s) => u(s), ["stop"]))
26
+ checked: l.value,
27
+ onInput: t[0] || (t[0] = m((a) => u(a), ["stop"]))
28
28
  }, null, 40, h),
29
- i[1] || (i[1] = t("span", { class: "slider round uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-cursor-pointer uikit-bg-w-lavender uikit-duration-300 before:uikit-absolute before:uikit-bottom-0 before:uikit-left-0 before:uikit-top-0 before:uikit-box-border before:uikit-h-[22px] before:uikit-w-[22px] before:uikit-rounded-circle before:uikit-border before:uikit-border-solid before:uikit-border-w-secondary before:uikit-bg-white before:uikit-shadow-sm before:uikit-duration-300 before:uikit-content-[''] peer-checked/toggle:uikit-bg-w-primary" }, null, -1))
29
+ t[1] || (t[1] = i("span", { class: "slider round uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-cursor-pointer uikit-bg-w-lavender uikit-duration-300 before:uikit-absolute before:uikit-bottom-0 before:uikit-left-0 before:uikit-top-0 before:uikit-box-border before:uikit-h-[22px] before:uikit-w-[22px] before:uikit-rounded-circle before:uikit-border before:uikit-border-solid before:uikit-border-w-secondary before:uikit-bg-white before:uikit-shadow-sm before:uikit-duration-300 before:uikit-content-[''] peer-checked/toggle:uikit-bg-w-primary" }, null, -1))
30
30
  ]),
31
- e.withRightLabel ? l(e.$slots, "rightLabel", { key: 0 }, () => [
32
- t("span", {
31
+ o.withRightLabel ? r(e.$slots, "rightLabel", { key: 0 }, () => [
32
+ i("span", {
33
33
  class: "uikit-ml-10px",
34
- innerHTML: e.label
34
+ innerHTML: o.label
35
35
  }, null, 8, g)
36
36
  ], !0) : f("", !0)
37
37
  ], 2));
@@ -0,0 +1,41 @@
1
+ import { defineComponent as n, createElementBlock as o, openBlock as l, renderSlot as s, createElementVNode as i, normalizeClass as a, createCommentVNode as r } from "vue";
2
+ const c = { class: "base-tooltip" }, m = /* @__PURE__ */ n({
3
+ __name: "BaseTooltip",
4
+ props: {
5
+ theme: { default: () => ({
6
+ color: "blue",
7
+ size: "sm"
8
+ }) },
9
+ direction: { default: "top" },
10
+ customTooltipClass: { default: "" },
11
+ showTooltipContentManually: { type: Boolean, default: !0 },
12
+ tooltipContentClasses: { default: "" }
13
+ },
14
+ setup(t) {
15
+ return (e, u) => (l(), o("div", c, [
16
+ s(e.$slots, "trigger", {}, void 0, !0),
17
+ i("div", {
18
+ class: a(["bg-transparent", [
19
+ t.theme.size,
20
+ `${t.customTooltipClass ? t.customTooltipClass : "tooltip-content-wrapper"}`
21
+ ]])
22
+ }, [
23
+ t.showTooltipContentManually ? (l(), o("div", {
24
+ key: 0,
25
+ class: a(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", [
26
+ "base-tooltip-arrow",
27
+ t.direction,
28
+ t.theme.color,
29
+ t.theme.size,
30
+ t.tooltipContentClasses
31
+ ]])
32
+ }, [
33
+ s(e.$slots, "content", {}, void 0, !0)
34
+ ], 2)) : r("", !0)
35
+ ], 2)
36
+ ]));
37
+ }
38
+ });
39
+ export {
40
+ m as default
41
+ };