@wikicasa-dev/components 2.1.3 → 2.1.4-alpha.1

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 (167) hide show
  1. package/dist/UIKit/BaseAlert.d.ts +20 -9
  2. package/dist/UIKit/BaseBadge.d.ts +40 -5
  3. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
  4. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
  5. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
  6. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
  7. package/dist/UIKit/BaseBanner.js +4 -0
  8. package/dist/UIKit/BaseBreadcrumb.js +3 -2
  9. package/dist/UIKit/BaseButton.d.ts +9 -8
  10. package/dist/UIKit/BaseChip.js +4 -0
  11. package/dist/UIKit/BaseCollapse.js +7 -0
  12. package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
  13. package/dist/UIKit/BaseComplexToggle.js +2 -2
  14. package/dist/UIKit/BaseDropDown.d.ts +5 -0
  15. package/dist/UIKit/BaseFloatingLabel.js +1 -3
  16. package/dist/UIKit/BaseInput.d.ts +4 -5
  17. package/dist/UIKit/BaseInput.js +1 -3
  18. package/dist/UIKit/BaseNotificationBadge.js +4 -0
  19. package/dist/UIKit/BasePagination.d.ts +10 -3
  20. package/dist/UIKit/BasePin.js +5 -0
  21. package/dist/UIKit/BaseSlider.d.ts +14 -10
  22. package/dist/UIKit/BaseSlider.js +1 -4
  23. package/dist/UIKit/BaseSnackbar.js +4 -4
  24. package/dist/UIKit/BaseTextarea.d.ts +4 -4
  25. package/dist/UIKit/BaseTextarea.js +4 -4
  26. package/dist/UIKit/BaseToggle.d.ts +5 -8
  27. package/dist/UIKit/BaseToggle.js +1 -4
  28. package/dist/UIKit/BaseTooltip.d.ts +10 -20
  29. package/dist/UIKit/BaseTooltip.js +2 -2
  30. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
  31. package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -5
  32. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
  33. package/dist/UIKit/DatePicker.js +5 -0
  34. package/dist/UIKit/InputDropdown.js +4 -0
  35. package/dist/UIKit/NativeSelect.js +5 -0
  36. package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
  37. package/dist/UIKit/Navigation/NavigationBar.js +5 -0
  38. package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
  39. package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
  40. package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
  41. package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
  42. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +1 -3
  43. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
  44. package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
  45. package/dist/UIKit/Tab/BaseTabItem.js +4 -0
  46. package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
  47. package/dist/UIKit/types.d.ts +11 -6
  48. package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
  49. package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
  50. package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
  51. package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +1 -0
  52. package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
  53. package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
  54. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
  55. package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
  56. package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
  57. package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
  58. package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
  59. package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
  60. package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
  61. package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
  62. package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
  63. package/dist/assets/packages/components/lib/UIKit/NativeSelect.css +1 -0
  64. package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
  65. package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
  66. package/dist/assets/packages/components/src/tailwind.css +1 -1
  67. package/dist/composables/useFloatingLabel.d.ts +1 -1
  68. package/dist/composables/useFloatingLabel.js +20 -20
  69. package/dist/index.d.ts +3 -2
  70. package/dist/index.js +92 -85
  71. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +19 -0
  72. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +16 -0
  73. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +29 -0
  74. package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +33 -0
  75. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +1 -1
  76. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +1 -1
  77. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +9 -9
  78. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +17 -17
  79. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +1 -1
  80. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +13 -13
  81. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +32 -26
  82. package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
  83. package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
  84. package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
  85. package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
  86. package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
  87. package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
  88. package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
  89. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +15 -15
  90. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  91. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
  92. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +107 -13
  93. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +28 -27
  94. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +46 -11
  95. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
  96. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
  97. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
  98. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
  99. package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
  100. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +32 -35
  101. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +57 -37
  102. package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
  103. package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
  104. package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
  105. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +48 -45
  106. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +12 -15
  107. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +93 -119
  108. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +70 -66
  109. package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
  110. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +89 -134
  111. package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
  112. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +107 -178
  113. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
  114. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +55 -73
  115. package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +27 -31
  116. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +48 -33
  117. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +19 -40
  118. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +55 -52
  119. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +20 -24
  120. package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
  121. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
  122. package/dist/packages/components/lib/UIKit/NativeSelect.vue.js +65 -0
  123. package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
  124. package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
  125. package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
  126. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
  127. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
  128. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +10 -9
  129. package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +10 -9
  130. package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
  131. package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +30 -27
  132. package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +40 -36
  133. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +5 -6
  134. package/dist/utils.d.ts +1 -1
  135. package/dist/utils.js +5 -3
  136. package/package.json +21 -18
  137. package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
  138. package/dist/UIKit/Slider/SimpleSlider.js +0 -7
  139. package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +0 -1
  140. package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +0 -1
  141. package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +0 -1
  142. package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
  143. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
  144. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
  145. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
  146. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
  147. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
  148. package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
  149. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
  150. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
  151. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
  152. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
  153. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/swiper.css +0 -0
  154. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
  155. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
  156. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  157. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
  158. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
  159. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
  160. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
  161. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
  162. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
  163. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
  164. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
  165. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +0 -0
  166. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
  167. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
@@ -1,10 +1,6 @@
1
- import { defineComponent as y, ref as v, computed as h, watch as x, renderSlot as m, createElementVNode as D, normalizeClass as E, createElementBlock as $, createCommentVNode as B, openBlock as b, Fragment as A, renderList as I, createBlock as R, unref as K } from "vue";
2
- import { isArrNullOrEmpty as V } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js";
3
- import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
4
- import { stringToHyphened as L } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js";
5
- import "../../../../../_virtual/polyline.js";
6
- import G from "../../../../../UIKit/Checkbox/CheckboxBtn.js";
7
- const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
1
+ import { defineComponent as x, ref as D, computed as h, watch as E, renderSlot as m, createElementVNode as $, normalizeClass as B, createElementBlock as A, createCommentVNode as I, openBlock as b, Fragment as R, renderList as K, createBlock as L } from "vue";
2
+ import V from "./CheckboxBtn.vue.js";
3
+ const w = ["id", "data-cy"], F = /* @__PURE__ */ x({
8
4
  inheritAttrs: !1,
9
5
  __name: "CheckboxGroup",
10
6
  props: {
@@ -17,19 +13,19 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
17
13
  autoCheckResetAll: { type: Boolean, default: !1 },
18
14
  autoCheckResetEmpty: { type: Boolean, default: !1 },
19
15
  manualToggleResetButton: { type: Boolean, default: !1 },
20
- getKey: { default() {
21
- return (r) => typeof r == "string" || typeof r == "number" ? `${r}` : `${r.id}`;
16
+ getKey: { type: Function, default() {
17
+ return (n) => typeof n == "string" || typeof n == "number" ? `${n}` : `${n.id}`;
22
18
  } },
23
19
  groupId: { default: "" },
24
20
  dataCy: { default: "" }
25
21
  },
26
22
  emits: ["resetted", "update:modelValue", "checkedGroup"],
27
- setup(r, { emit: g }) {
28
- const o = r, n = g, c = v(/* @__PURE__ */ new Map()), s = h(() => {
23
+ setup(n, { emit: g }) {
24
+ const C = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase()), y = (e) => !e?.length, o = n, r = g, c = D(/* @__PURE__ */ new Map()), s = h(() => {
29
25
  for (const e of o.checkboxData)
30
26
  if (e.reset) return e;
31
27
  return null;
32
- }), C = h(() => o.checkboxData.length), f = h(() => {
28
+ }), v = h(() => o.checkboxData.length), f = h(() => {
33
29
  let e = 0;
34
30
  return c.value.forEach((t) => {
35
31
  t.checked && e++;
@@ -42,7 +38,7 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
42
38
  `${t.id}`,
43
39
  t
44
40
  ), t.checked && e.push(t);
45
- n("update:modelValue", e);
41
+ r("update:modelValue", e);
46
42
  })();
47
43
  const u = (e, t) => {
48
44
  const a = c.value.get(e);
@@ -58,19 +54,19 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
58
54
  e.checked = !1;
59
55
  });
60
56
  }, p = () => {
61
- k(), n("update:modelValue", []), n("resetted");
57
+ k(), r("update:modelValue", []), r("resetted");
62
58
  }, d = (e) => c.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
63
- if (V(o.checkboxData)) return;
59
+ if (y(o.checkboxData)) return;
64
60
  const t = c.value.get(e.id);
65
- t?.reset && e.checked ? k() : s.value && !t?.reset && u(o.getKey(s.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && s.value && f.value === C.value - 1 && c.value.forEach((l) => {
61
+ t?.reset && e.checked ? k() : s.value && !t?.reset && u(o.getKey(s.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && s.value && f.value === v.value - 1 && c.value.forEach((l) => {
66
62
  l.checked = !!l.reset;
67
63
  }), o.autoCheckResetEmpty && s.value && !f.value && (!o.manualToggleResetButton || !t?.reset) && u(o.getKey(s.value), { checked: !0 });
68
64
  const a = [];
69
65
  c.value.forEach((l) => {
70
66
  l.checked && a.push(l);
71
- }), n("update:modelValue", a), n("checkedGroup", o.groupId);
67
+ }), r("update:modelValue", a), r("checkedGroup", o.groupId);
72
68
  };
73
- return x(
69
+ return E(
74
70
  () => o.reset,
75
71
  (e) => {
76
72
  e && p();
@@ -80,9 +76,9 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
80
76
  handleChange: i,
81
77
  checkboxesData: e.checkboxData
82
78
  }, () => [
83
- D("div", {
79
+ $("div", {
84
80
  id: e.groupId,
85
- class: E(["checkbox-group-container", e.$attrs.class || ""]),
81
+ class: B(["checkbox-group-container", e.$attrs.class || ""]),
86
82
  "data-cy": e.dataCy
87
83
  }, [
88
84
  m(e.$slots, "checkbox_elements", {
@@ -91,10 +87,10 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
91
87
  checkboxesData: e.checkboxData,
92
88
  reset: p
93
89
  }, () => [
94
- e.checkboxData ? (b(!0), $(A, { key: 0 }, I(e.checkboxData, (a, l) => (b(), R(G, {
90
+ e.checkboxData ? (b(!0), A(R, { key: 0 }, K(e.checkboxData, (a, l) => (b(), L(V, {
95
91
  id: e.getKey(a),
96
92
  key: l,
97
- "data-cy": a.dataCy ?? `checkbox_${K(L)(`${a.label}`)}`,
93
+ "data-cy": a.dataCy ?? `checkbox_${C(`${a.label}`)}`,
98
94
  label: a.label,
99
95
  inline: e.formCheckInline,
100
96
  "model-value": d(a),
@@ -103,9 +99,9 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
103
99
  e.checkboxContainerClasses
104
100
  ],
105
101
  onChange: i
106
- }, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) : B("", !0)
102
+ }, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) : I("", !0)
107
103
  ])
108
- ], 10, N)
104
+ ], 10, w)
109
105
  ]);
110
106
  }
111
107
  });
@@ -0,0 +1,143 @@
1
+ import { defineComponent as N, ref as T, watch as V, computed as x, createBlock as A, openBlock as w, unref as m, withCtx as n, createElementBlock as M, createCommentVNode as S, renderSlot as E, createVNode as a, createTextVNode as O, toDisplayString as P, createElementVNode as r } from "vue";
2
+ import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
+ import j from "@vuepic/vue-datepicker";
5
+ import y from "./NativeSelect.vue.js";
6
+ import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';import '../../../../assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css';import '../../../../assets/packages/components/lib/UIKit/NativeSelect.css';/* empty css */
7
+ /* empty css */
8
+ import z from "./BaseButton.vue.js";
9
+ import R from "./BaseInput.vue.js";
10
+ /* empty css */
11
+ const q = { class: "uikit-flex uikit-w-full uikit-justify-between uikit-border-b uikit-border-solid uikit-border-w-lightgray uikit-px-sm uikit-py-md" }, F = ["onClick"], G = ["onClick"], H = {
12
+ key: 0,
13
+ class: "uikit-grow"
14
+ }, oe = /* @__PURE__ */ N({
15
+ __name: "DatePicker",
16
+ props: {
17
+ btnLabel: {},
18
+ range: { type: Boolean, default: !1 },
19
+ locale: { default: "it-IT" },
20
+ position: { default: "left" },
21
+ rangeConfig: {},
22
+ modelValue: {},
23
+ inputLabel: {}
24
+ },
25
+ emits: ["update:modelValue"],
26
+ setup(u, { emit: $ }) {
27
+ const B = $, o = T(null);
28
+ V(
29
+ () => u.modelValue,
30
+ (e) => {
31
+ Array.isArray(e) && !e.find((l) => l instanceof Date) || (o.value = e ?? null);
32
+ },
33
+ { immediate: !0 }
34
+ );
35
+ const c = x(() => u.range || !!u.rangeConfig), I = (e, l, t) => {
36
+ e(l, t, !1);
37
+ }, U = (e, l, t) => {
38
+ e(l, t, !1);
39
+ }, p = (e, l = []) => l.find((t) => t.value === e);
40
+ let s = [];
41
+ const f = (e = []) => (s.length || (s = e.map((l, t) => ({
42
+ id: `month-${t}`,
43
+ label: l.text,
44
+ value: l.value
45
+ }))), s);
46
+ let d = [];
47
+ const k = (e = []) => (d.length || (d = e.map((l, t) => ({
48
+ id: `year-${t}`,
49
+ label: l.text,
50
+ value: l.value
51
+ }))), d), D = (e) => {
52
+ !e || c.value || o.value.getTime() !== e.getTime() && (o.value = e);
53
+ }, L = (e) => {
54
+ e && (o.value = e);
55
+ };
56
+ return V(o, (e) => {
57
+ e && B("update:modelValue", e);
58
+ }), (e, l) => (w(), A(m(j), {
59
+ "model-value": o.value,
60
+ range: e.range,
61
+ "enable-time-picker": !1,
62
+ ui: { menu: e.range ? "dp__range-mode" : "dp__single_mode" },
63
+ locale: e.locale,
64
+ position: e.position,
65
+ onInternalModelChange: D,
66
+ "onUpdate:modelValue": L
67
+ }, {
68
+ "dp-input": n(({ value: t }) => [
69
+ a(R, {
70
+ "model-value": t,
71
+ "label-text": e.inputLabel
72
+ }, null, 8, ["model-value", "label-text"])
73
+ ]),
74
+ "month-year": n(({
75
+ month: t,
76
+ year: g,
77
+ months: v,
78
+ years: h,
79
+ updateMonthYear: b,
80
+ handleMonthYearChange: _
81
+ }) => [
82
+ r("div", q, [
83
+ r("span", {
84
+ class: "uikit-cursor-pointer",
85
+ onClick: (i) => _?.(!1)
86
+ }, [
87
+ a(m(C), {
88
+ class: "uikit-rotate-90",
89
+ width: 20,
90
+ height: 10,
91
+ "stroke-width": 1.5
92
+ })
93
+ ], 8, F),
94
+ r("div", null, [
95
+ a(y, {
96
+ "model-value": p(t, f(v)),
97
+ options: f(v),
98
+ border: !1,
99
+ "arrow-size": 12,
100
+ "onUpdate:modelValue": (i) => I(b, i?.value, g)
101
+ }, null, 8, ["model-value", "options", "onUpdate:modelValue"]),
102
+ a(y, {
103
+ "model-value": p(g, k(h)),
104
+ options: k(h),
105
+ border: !1,
106
+ "onUpdate:modelValue": (i) => U(b, t, i?.value)
107
+ }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
108
+ ]),
109
+ r("span", {
110
+ class: "uikit-cursor-pointer",
111
+ onClick: (i) => _?.(!1)
112
+ }, [
113
+ a(m(C), {
114
+ class: "-uikit-rotate-90",
115
+ width: 20,
116
+ height: 10,
117
+ "stroke-width": 1.5
118
+ })
119
+ ], 8, G)
120
+ ])
121
+ ]),
122
+ "action-row": n(({ selectDate: t }) => [
123
+ c.value ? (w(), M("div", H, [
124
+ E(e.$slots, "submitBtn", {}, () => [
125
+ a(z, {
126
+ class: "uikit-w-full",
127
+ onClick: t
128
+ }, {
129
+ default: n(() => [
130
+ O(P(e.btnLabel), 1)
131
+ ]),
132
+ _: 2
133
+ }, 1032, ["onClick"])
134
+ ])
135
+ ])) : S("", !0)
136
+ ]),
137
+ _: 3
138
+ }, 8, ["model-value", "range", "ui", "locale", "position"]));
139
+ }
140
+ });
141
+ export {
142
+ oe as default
143
+ };
@@ -0,0 +1,152 @@
1
+ import { defineComponent as E, mergeModels as C, useModel as O, ref as k, watch as y, createElementBlock as w, openBlock as r, createElementVNode as M, createVNode as p, withCtx as u, Fragment as h, renderList as D, createBlock as U, createTextVNode as x, toDisplayString as V, renderSlot as P } from "vue";
2
+ import R from "./BaseButton.vue.js";
3
+ import B from "./BaseInput.vue.js";
4
+ import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
5
+ import I from "./BaseDropDown.vue.js";
6
+ import L from "./BaseSelect/SelectItem.vue.js";
7
+ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330px] uikit-flex-col uikit-justify-between uikit-rounded-2xs uikit-bg-white uikit-pt-md" }, z = { class: "uikit-relative uikit-flex uikit-gap-x-md uikit-border-b uikit-border-solid uikit-border-w-lightgray uikit-px-md uikit-pb-xs" }, F = { class: "uikit-z-10 uikit-h-[55px] uikit-bg-w-cultured uikit-px-md uikit-py-xs" }, Q = /* @__PURE__ */ E({
8
+ __name: "InputDropdown",
9
+ props: /* @__PURE__ */ C({
10
+ leftSelectOptions: { default: () => [] },
11
+ rightSelectOptions: { default: () => [] },
12
+ submitBtnLabel: {}
13
+ }, {
14
+ leftValue: { default: () => ({ id: -1, label: "" }) },
15
+ leftValueModifiers: {},
16
+ rightValue: { default: () => ({ id: -1, label: "" }) },
17
+ rightValueModifiers: {}
18
+ }),
19
+ emits: /* @__PURE__ */ C(["submit"], ["update:leftValue", "update:rightValue"]),
20
+ setup(f, { emit: K }) {
21
+ const a = O(
22
+ f,
23
+ "leftValue"
24
+ ), d = O(
25
+ f,
26
+ "rightValue"
27
+ ), v = k(!1), m = k(!1), g = k(!1), b = k(!1), $ = (i) => ({
28
+ id: -1,
29
+ label: i ? `${i}` : ""
30
+ }), S = (i, e = []) => {
31
+ if (!i) return null;
32
+ const t = e.find(
33
+ (o) => o.id === i.id || o.label === i.label
34
+ );
35
+ return t || null;
36
+ }, N = K;
37
+ return y(
38
+ a,
39
+ (i) => {
40
+ const e = S(i, f.leftSelectOptions);
41
+ e && (a.value = e);
42
+ },
43
+ { immediate: !0, deep: !0 }
44
+ ), y(
45
+ d,
46
+ (i) => {
47
+ const e = S(i, f.rightSelectOptions);
48
+ e && (d.value = e);
49
+ },
50
+ { immediate: !0, deep: !0 }
51
+ ), (i, e) => (r(), w("div", j, [
52
+ M("div", z, [
53
+ p(I, {
54
+ "toggle-dropdown": m.value,
55
+ "onUpdate:toggleDropdown": e[1] || (e[1] = (t) => m.value = t),
56
+ class: "!uikit-static",
57
+ "dropdown-classes": "!uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none",
58
+ "disable-space-handler": "",
59
+ "onUpdate:selectedIdx": e[2] || (e[2] = (t) => a.value = i.leftSelectOptions[t]),
60
+ "onUpdate:dropdownState": e[3] || (e[3] = (t) => v.value = t)
61
+ }, {
62
+ btn_slot: u(({ toggleDropdown: t, setActiveIdx: o }) => [
63
+ p(B, {
64
+ "model-value": a.value.label,
65
+ "label-text": "Min",
66
+ onClick: (l) => {
67
+ l.stopPropagation(), v.value || t(), g.value && (b.value = !0);
68
+ },
69
+ onKeyup: (l) => o(-1),
70
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => {
71
+ a.value = $(l);
72
+ })
73
+ }, null, 8, ["model-value", "onClick", "onKeyup"])
74
+ ]),
75
+ default: u(({ activeIdx: t, toggleDropdown: o, setActiveIdx: l }) => [
76
+ (r(!0), w(h, null, D(i.leftSelectOptions, (s, n) => (r(), U(L, {
77
+ key: `left-option-${n}`,
78
+ class: "uikit-rounded-3xs uikit-p-xs uikit-text-16",
79
+ active: t === n,
80
+ onClick: (c) => {
81
+ a.value = s, o();
82
+ },
83
+ onMouseover: (c) => l(n)
84
+ }, {
85
+ default: u(() => [
86
+ x(V(s.label), 1)
87
+ ]),
88
+ _: 2
89
+ }, 1032, ["active", "onClick", "onMouseover"]))), 128))
90
+ ]),
91
+ _: 1
92
+ }, 8, ["toggle-dropdown"]),
93
+ p(I, {
94
+ "toggle-dropdown": b.value,
95
+ "onUpdate:toggleDropdown": e[5] || (e[5] = (t) => b.value = t),
96
+ "disable-space-handler": "",
97
+ class: "!uikit-static",
98
+ "dropdown-classes": "uikit-left-0 !uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none",
99
+ "onUpdate:selectedIdx": e[6] || (e[6] = (t) => d.value = i.rightSelectOptions[t]),
100
+ "onUpdate:dropdownState": e[7] || (e[7] = (t) => g.value = t)
101
+ }, {
102
+ btn_slot: u(({ toggleDropdown: t, setActiveIdx: o }) => [
103
+ p(B, {
104
+ "model-value": d.value.label,
105
+ "label-text": "Max",
106
+ onClick: (l) => {
107
+ l.stopPropagation(), g.value || t(), v.value && (m.value = !0);
108
+ },
109
+ onKeyup: (l) => o(-1),
110
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => {
111
+ d.value = $(l);
112
+ })
113
+ }, null, 8, ["model-value", "onClick", "onKeyup"])
114
+ ]),
115
+ default: u(({ activeIdx: t, toggleDropdown: o, setActiveIdx: l }) => [
116
+ (r(!0), w(h, null, D(i.rightSelectOptions, (s, n) => (r(), U(L, {
117
+ key: `left-option-${n}`,
118
+ class: "uikit-rounded-3xs uikit-p-xs uikit-text-16",
119
+ active: t === n,
120
+ onClick: (c) => {
121
+ d.value = s, o();
122
+ },
123
+ onMouseover: (c) => l(n)
124
+ }, {
125
+ default: u(() => [
126
+ x(V(s.label), 1)
127
+ ]),
128
+ _: 2
129
+ }, 1032, ["active", "onClick", "onMouseover"]))), 128))
130
+ ]),
131
+ _: 1
132
+ }, 8, ["toggle-dropdown"])
133
+ ]),
134
+ M("div", F, [
135
+ P(i.$slots, "submitBtn", {}, () => [
136
+ p(R, {
137
+ class: "uikit-w-full",
138
+ onClick: e[8] || (e[8] = (t) => N("submit", t))
139
+ }, {
140
+ default: u(() => [
141
+ x(V(i.submitBtnLabel), 1)
142
+ ]),
143
+ _: 1
144
+ })
145
+ ])
146
+ ])
147
+ ]));
148
+ }
149
+ });
150
+ export {
151
+ Q as default
152
+ };
@@ -0,0 +1,65 @@
1
+ import { defineComponent as x, mergeModels as u, useCssVars as C, computed as v, useModel as w, useId as y, watch as S, createElementBlock as a, openBlock as d, createCommentVNode as V, createElementVNode as O, normalizeClass as c, unref as m, toDisplayString as p, Fragment as z, renderList as E } from "vue";
2
+ const B = { class: "select-wrapper" }, D = ["for"], M = ["id"], N = ["data-idx", "selected"], I = /* @__PURE__ */ x({
3
+ __name: "NativeSelect",
4
+ props: /* @__PURE__ */ u({
5
+ labelText: { default: "" },
6
+ options: { default: () => [] },
7
+ border: { type: Boolean, default: !0 },
8
+ labelClasses: {},
9
+ arrowSize: { default: 16 }
10
+ }, {
11
+ modelValue: {
12
+ default: () => ({
13
+ id: -1,
14
+ label: ""
15
+ })
16
+ },
17
+ modelModifiers: {}
18
+ }),
19
+ emits: /* @__PURE__ */ u(["change"], ["update:modelValue"]),
20
+ setup(o, { emit: f }) {
21
+ C((e) => ({
22
+ f3734614: k.value
23
+ }));
24
+ const s = w(o, "modelValue"), b = f, n = y(), k = v(() => `${o.arrowSize}px`), g = ({ target: e }) => {
25
+ const i = (e.selectedOptions?.[0]).dataset.idx;
26
+ if (i === void 0) return;
27
+ const h = o.options[i];
28
+ s.value = h;
29
+ }, r = (e, t) => e.id === t?.id || e.label === t?.label;
30
+ return S(
31
+ s,
32
+ (e) => {
33
+ const t = o.options.find(
34
+ (l) => r(l, e)
35
+ );
36
+ t && (s.value = t);
37
+ },
38
+ { immediate: !0 }
39
+ ), (e, t) => (d(), a("div", B, [
40
+ e.labelText ? (d(), a("label", {
41
+ key: 0,
42
+ for: m(n),
43
+ class: c(["uikit-block", e.labelClasses])
44
+ }, p(e.labelText), 11, D)) : V("", !0),
45
+ O("select", {
46
+ id: m(n),
47
+ class: c(["uikit-cursor-pointer uikit-bg-white uikit-pr-xl uikit-text-16 uikit-font-regular", {
48
+ "uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-py-md uikit-pl-sm": e.border
49
+ }]),
50
+ onChange: t[0] || (t[0] = (l) => {
51
+ b("change", l), g(l);
52
+ })
53
+ }, [
54
+ (d(!0), a(z, null, E(e.options, (l, i) => (d(), a("option", {
55
+ key: `option-${i}`,
56
+ "data-idx": i,
57
+ selected: r(l, s.value)
58
+ }, p(l.label), 9, N))), 128))
59
+ ], 42, M)
60
+ ]));
61
+ }
62
+ });
63
+ export {
64
+ I as default
65
+ };
@@ -0,0 +1,21 @@
1
+ import { defineComponent as a, createBlock as o, openBlock as n, unref as t, withCtx as i, createVNode as u, renderSlot as r } from "vue";
2
+ import { NavigationMenuRoot as s, NavigationMenuList as l } from "reka-ui";
3
+ const x = /* @__PURE__ */ a({
4
+ __name: "NavigationBar",
5
+ setup(f) {
6
+ return (e, k) => (n(), o(t(s), null, {
7
+ default: i(() => [
8
+ u(t(l), { class: "uikit-navigation-bar-shadow uikit-mx-2xs uikit-flex uikit-w-fit uikit-list-none uikit-gap-x-xs uikit-p-xs uikit-text" }, {
9
+ default: i(() => [
10
+ r(e.$slots, "default")
11
+ ]),
12
+ _: 3
13
+ })
14
+ ]),
15
+ _: 3
16
+ }));
17
+ }
18
+ });
19
+ export {
20
+ x as default
21
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as l, createBlock as k, openBlock as p, unref as e, withCtx as a, createVNode as c, normalizeClass as o, renderSlot as u, withDirectives as m, createElementVNode as d, vShow as f } from "vue";
2
+ import { NavigationMenuItem as v, NavigationMenuLink as b } from "reka-ui";
3
+ const x = /* @__PURE__ */ l({
4
+ __name: "NavigationBarItem",
5
+ props: {
6
+ as: { type: [Object, Function, String], default: "a" },
7
+ activeBorderPosition: {},
8
+ active: { type: Boolean, default: !1 },
9
+ href: {},
10
+ value: {}
11
+ },
12
+ emits: ["select"],
13
+ setup(h, { emit: s }) {
14
+ const r = s;
15
+ return (t, i) => (p(), k(e(v), null, {
16
+ default: a(() => [
17
+ c(e(b), {
18
+ as: t.as,
19
+ class: o([
20
+ "uikit-relative uikit-flex uikit-min-w-[56px] uikit-flex-col uikit-items-center uikit-gap-y-2xs uikit-bg-transparent hover:uikit-cursor-pointer data-[active]:uikit-font-medium data-[active]:uikit-text-w-blue",
21
+ t.activeBorderPosition === "top" ? "uikit-pb-2xs uikit-pt-sm" : "uikit-pb-sm uikit-pt-2xs"
22
+ ]),
23
+ active: t.active,
24
+ href: t.href,
25
+ onSelect: i[0] || (i[0] = (n) => r("select", n))
26
+ }, {
27
+ default: a(() => [
28
+ u(t.$slots, "icon"),
29
+ u(t.$slots, "label"),
30
+ m(d("div", {
31
+ class: o([
32
+ "uikit-absolute uikit-left-1/2 uikit-h-2xs uikit-w-[56px] -uikit-translate-x-1/2 uikit-bg-w-blue",
33
+ t.activeBorderPosition === "top" ? "uikit-top-0 uikit-rounded-t-3xs" : "uikit-bottom-0 uikit-rounded-b-3xs"
34
+ ])
35
+ }, null, 2), [
36
+ [f, t.active]
37
+ ])
38
+ ]),
39
+ _: 3
40
+ }, 8, ["as", "class", "active", "href"])
41
+ ]),
42
+ _: 3
43
+ }));
44
+ }
45
+ });
46
+ export {
47
+ x as default
48
+ };
@@ -1,5 +1,5 @@
1
- import { defineComponent as k, useId as m, computed as c, createElementBlock as f, openBlock as p, withModifiers as l, createElementVNode as n, normalizeClass as s, createTextVNode as b, toDisplayString as h } from "vue";
2
- const C = ["id", "name", "checked"], V = ["for"], y = /* @__PURE__ */ k({
1
+ import { defineComponent as k, useId as m, computed as c, createElementBlock as b, openBlock as f, withModifiers as l, createElementVNode as n, normalizeClass as s, createTextVNode as p, toDisplayString as h } from "vue";
2
+ const C = ["id", "name", "checked"], g = ["for"], v = /* @__PURE__ */ k({
3
3
  __name: "RadioButton",
4
4
  props: {
5
5
  id: {},
@@ -20,7 +20,7 @@ const C = ["id", "name", "checked"], V = ["for"], y = /* @__PURE__ */ k({
20
20
  };
21
21
  o("change", e), o("update:modelValue", !i.modelValue);
22
22
  };
23
- return (e, t) => (p(), f("div", {
23
+ return (e, t) => (f(), b("div", {
24
24
  class: "uikit-inline-block",
25
25
  onClick: l(r, ["stop"])
26
26
  }, [
@@ -37,22 +37,22 @@ const C = ["id", "name", "checked"], V = ["for"], y = /* @__PURE__ */ k({
37
37
  }, ["prevent"]))
38
38
  }, null, 40, C),
39
39
  n("label", {
40
- class: s([e.labelClasses, "uikit-flex uikit-cursor-pointer uikit-items-center uikit-text-sm"]),
40
+ class: s([e.labelClasses, "uikit-inline-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-sm uikit-text-16"]),
41
41
  for: u.value
42
42
  }, [
43
43
  n("span", {
44
- class: s(["uikit-flex-no-shrink uikit-mr-2 uikit-inline-block uikit-h-4 uikit-w-4 uikit-transform uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-transition-colors uikit-duration-200", [
44
+ class: s(["uikit-flex-no-shrink uikit-inline-block uikit-size-[20px] uikit-transform uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-transition-colors uikit-duration-200", [
45
45
  {
46
- "checked uikit-border-w-primary uikit-bg-w-primary uikit-shadow-[0_0_0_2px_white_inset]": e.modelValue
46
+ "checked uikit-border-w-blue uikit-bg-w-blue uikit-shadow-[0_0_0_3px_white_inset]": e.modelValue
47
47
  },
48
48
  e.inputClasses
49
49
  ]])
50
50
  }, null, 2),
51
- b(" " + h(e.label), 1)
52
- ], 10, V)
51
+ p(" " + h(e.label), 1)
52
+ ], 10, g)
53
53
  ]));
54
54
  }
55
55
  });
56
56
  export {
57
- y as default
57
+ v as default
58
58
  };