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

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 (170) 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.d.ts +22 -0
  21. package/dist/UIKit/BasePin.js +5 -0
  22. package/dist/UIKit/BaseSelect.d.ts +26 -0
  23. package/dist/UIKit/BaseSelect.js +5 -0
  24. package/dist/UIKit/BaseSlider.d.ts +14 -10
  25. package/dist/UIKit/BaseSlider.js +1 -4
  26. package/dist/UIKit/BaseSnackbar.js +4 -4
  27. package/dist/UIKit/BaseTextarea.d.ts +4 -4
  28. package/dist/UIKit/BaseTextarea.js +3 -3
  29. package/dist/UIKit/BaseToggle.d.ts +5 -8
  30. package/dist/UIKit/BaseToggle.js +1 -4
  31. package/dist/UIKit/BaseTooltip.d.ts +10 -20
  32. package/dist/UIKit/BaseTooltip.js +2 -2
  33. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
  34. package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -5
  35. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
  36. package/dist/UIKit/DatePicker.js +5 -0
  37. package/dist/UIKit/InputDropdown.js +4 -0
  38. package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
  39. package/dist/UIKit/Navigation/NavigationBar.js +5 -0
  40. package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
  41. package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
  42. package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
  43. package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
  44. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +1 -3
  45. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
  46. package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
  47. package/dist/UIKit/Tab/BaseTabItem.js +4 -0
  48. package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
  49. package/dist/UIKit/types.d.ts +11 -6
  50. 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
  51. package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
  52. package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
  53. package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +1 -0
  54. package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
  55. package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
  56. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
  57. package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
  58. package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
  59. package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
  60. package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
  61. package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +1 -0
  62. package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
  63. package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
  64. package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
  65. package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
  66. package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
  67. package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
  68. package/dist/assets/packages/components/src/tailwind.css +1 -1
  69. package/dist/composables/useFloatingLabel.d.ts +1 -1
  70. package/dist/composables/useFloatingLabel.js +20 -20
  71. package/dist/index.d.ts +5 -2
  72. package/dist/index.js +98 -85
  73. 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
  74. 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
  75. 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
  76. 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
  77. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +1 -1
  78. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +1 -1
  79. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +9 -9
  80. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +17 -17
  81. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +1 -1
  82. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +13 -13
  83. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +32 -26
  84. package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
  85. package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
  86. package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
  87. package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
  88. package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
  89. package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
  90. package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
  91. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +30 -30
  92. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  93. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
  94. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +107 -13
  95. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +28 -27
  96. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +46 -11
  97. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
  98. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
  99. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
  100. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
  101. package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
  102. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +32 -35
  103. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +56 -36
  104. package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
  105. package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
  106. package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
  107. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +48 -45
  108. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +14 -17
  109. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +93 -119
  110. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +70 -66
  111. package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
  112. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +89 -134
  113. package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
  114. package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +65 -0
  115. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +107 -178
  116. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
  117. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +55 -73
  118. package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +27 -31
  119. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +48 -33
  120. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +19 -40
  121. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +55 -52
  122. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +20 -26
  123. package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
  124. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
  125. package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
  126. package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
  127. package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
  128. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
  129. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
  130. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +10 -9
  131. package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +10 -9
  132. package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
  133. package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +30 -27
  134. package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +40 -36
  135. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +5 -6
  136. package/dist/utils.d.ts +1 -1
  137. package/dist/utils.js +5 -3
  138. package/package.json +26 -19
  139. package/plugins/buttonPlugin.ts +290 -0
  140. package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
  141. package/dist/UIKit/Slider/SimpleSlider.js +0 -7
  142. package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +0 -1
  143. package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +0 -1
  144. package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +0 -1
  145. package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
  146. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
  147. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
  148. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
  149. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
  150. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
  151. package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
  152. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
  153. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
  154. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
  155. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
  156. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/swiper.css +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/ArrowIcon.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/CloseIcon.js +0 -0
  159. /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
  160. /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
  161. /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
  162. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
  163. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
  164. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
  165. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
  166. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
  167. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
  168. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +0 -0
  169. /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
  170. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
@@ -1,41 +1,56 @@
1
- import { defineComponent as a, createElementBlock as e, openBlock as t, renderSlot as s, createElementVNode as n, normalizeClass as l, createCommentVNode as i } from "vue";
2
- const r = { class: "base-tooltip" }, m = /* @__PURE__ */ a({
1
+ import { defineComponent as s, createBlock as n, openBlock as u, unref as e, withCtx as i, createVNode as o, normalizeClass as a, renderSlot as r, createElementVNode as d } from "vue";
2
+ import { TooltipProvider as p, TooltipRoot as f, TooltipTrigger as k, TooltipPortal as c, TooltipContent as g, TooltipArrow as m } from "reka-ui";
3
+ const _ = /* @__PURE__ */ s({
3
4
  __name: "BaseTooltip",
4
5
  props: {
5
- theme: { default: () => ({
6
- color: "blue",
7
- size: "sm"
8
- }) },
9
6
  direction: { default: "top" },
10
- customTooltipClass: { default: "" },
11
- showTooltipContentManually: { type: Boolean, default: !0 },
12
- tooltipContentClasses: { default: "" }
7
+ tooltipContentClasses: { default: "" },
8
+ triggerClasses: { default: "" },
9
+ delayDuration: { default: 0 }
13
10
  },
14
- setup(p) {
15
- return (o, u) => (t(), e("div", r, [
16
- s(o.$slots, "trigger", {}, void 0, !0),
17
- n("div", {
18
- class: l(["bg-transparent", [
19
- o.theme.size,
20
- `${o.customTooltipClass ? o.customTooltipClass : "tooltip-content-wrapper"}`
21
- ]])
22
- }, [
23
- o.showTooltipContentManually ? (t(), e("div", {
24
- key: 0,
25
- class: l(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", [
26
- "base-tooltip-arrow",
27
- o.direction,
28
- o.theme.color,
29
- o.theme.size,
30
- o.tooltipContentClasses
31
- ]])
32
- }, [
33
- s(o.$slots, "content", {}, void 0, !0)
34
- ], 2)) : i("", !0)
35
- ], 2)
36
- ]));
11
+ setup(C) {
12
+ return (t, l) => (u(), n(e(p), { "delay-duration": t.delayDuration }, {
13
+ default: i(() => [
14
+ o(e(f), null, {
15
+ default: i(() => [
16
+ o(e(k), {
17
+ class: a(["uikit-inline-flex uikit-w-fit uikit-appearance-none uikit-bg-transparent uikit-p-0", t.triggerClasses])
18
+ }, {
19
+ default: i(() => [
20
+ r(t.$slots, "trigger", {}, void 0, !0)
21
+ ]),
22
+ _: 3
23
+ }, 8, ["class"]),
24
+ o(e(c), null, {
25
+ default: i(() => [
26
+ o(e(g), {
27
+ class: a(["will-change-[transform,opacity] uikit-shadow-surface uikit-max-w-[250px] uikit-rounded-2xs uikit-bg-white uikit-p-xs uikit-text uikit-text-w-black", t.tooltipContentClasses]),
28
+ "side-offset": 8,
29
+ side: t.direction
30
+ }, {
31
+ default: i(() => [
32
+ r(t.$slots, "content", {}, void 0, !0),
33
+ o(e(m), { "as-child": "" }, {
34
+ default: i(() => l[0] || (l[0] = [
35
+ d("span", { class: "uikit-pin-arrow" }, null, -1)
36
+ ])),
37
+ _: 1,
38
+ __: [0]
39
+ })
40
+ ]),
41
+ _: 3
42
+ }, 8, ["class", "side"])
43
+ ]),
44
+ _: 3
45
+ })
46
+ ]),
47
+ _: 3
48
+ })
49
+ ]),
50
+ _: 3
51
+ }, 8, ["delay-duration"]));
37
52
  }
38
53
  });
39
54
  export {
40
- m as default
55
+ _ as default
41
56
  };
@@ -1,6 +1,5 @@
1
- import { defineComponent as c, ref as b, watch as m, createElementBlock as o, openBlock as s, normalizeClass as t, createElementVNode as l, createBlock as h, createCommentVNode as n, renderSlot as v } from "vue";
2
- import w from "../../../../UIKit/BaseFloatingLabel.js";
3
- const C = ["innerHTML"], g = ["for"], y = ["id", "multiple", "accept"], B = /* @__PURE__ */ c({
1
+ import { defineComponent as p, ref as f, watch as c, createElementBlock as m, openBlock as b, normalizeClass as s, createElementVNode as i, renderSlot as C } from "vue";
2
+ const h = ["for"], k = ["id", "multiple", "accept"], B = /* @__PURE__ */ p({
4
3
  inheritAttrs: !1,
5
4
  __name: "BaseUploadFile",
6
5
  props: {
@@ -13,56 +12,36 @@ const C = ["innerHTML"], g = ["for"], y = ["id", "multiple", "accept"], B = /* @
13
12
  legendClasses: { default: "" }
14
13
  },
15
14
  emits: ["cleared", "uploaded"],
16
- setup(r, { emit: d }) {
17
- const k = r, u = d, a = b("");
18
- m(
19
- () => k.clear,
15
+ setup(n, { emit: r }) {
16
+ const o = n, a = r, t = f("");
17
+ c(
18
+ () => o.clear,
20
19
  (e) => {
21
- e && (a.value = "", u("cleared"));
20
+ e && (t.value = "", a("cleared"));
22
21
  }
23
22
  );
24
- const p = ({ target: e }) => {
23
+ const d = ({ target: e }) => {
25
24
  if (!e) return;
26
- const i = e.files;
27
- i?.length && (a.value = i[0].name, u("uploaded", i[0]));
25
+ const l = e.files;
26
+ l?.length && (t.value = l[0].name, a("uploaded", l[0]));
28
27
  };
29
- return (e, i) => (s(), o("div", {
30
- class: t(["base-upload-file-wrapper uikit-relative", [e.$attrs.class]])
28
+ return (e, l) => (b(), m("div", {
29
+ class: s(["base-upload-file-wrapper uikit-relative", [e.$attrs.class]])
31
30
  }, [
32
- l("fieldset", {
33
- class: t(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-dashed uikit-border-w-secondary uikit-bg-w-lavender uikit-px-2 uikit-py-0 uikit-text-start", e.fieldsetClasses])
34
- }, [
35
- e.labelText ? (s(), o("legend", {
36
- key: 0,
37
- class: t(["uikit-invisible 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", e.legendClasses])
38
- }, [
39
- l("span", {
40
- class: "uikit-visible uikit-inline-block uikit-px-5px uikit-opacity-0",
41
- innerHTML: e.labelText
42
- }, null, 8, C)
43
- ], 2)) : n("", !0)
44
- ], 2),
45
- e.labelText ? (s(), h(w, {
46
- key: 0,
47
- class: t(e.floatingLabelClasses),
48
- "label-text": e.labelText,
49
- "label-state": "floating-label",
50
- "label-classes": "!-uikit-top-1"
51
- }, null, 8, ["class", "label-text"])) : n("", !0),
52
- l("label", {
53
- class: t(["upload-file-input uikit-relative uikit-z-10 uikit-flex uikit-h-12 uikit-w-full uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-xs uikit-text-sm", e.labelClasses]),
31
+ i("label", {
32
+ class: s(["uikit-btn uikit-btn-ternary", e.labelClasses]),
54
33
  for: e.id
55
34
  }, [
56
- l("input", {
35
+ i("input", {
57
36
  id: e.id,
58
37
  multiple: e.$attrs.multiple,
59
38
  type: "file",
60
39
  class: "uikit-hidden",
61
40
  accept: e.$attrs.accept,
62
- onInput: i[0] || (i[0] = (f) => p(f))
63
- }, null, 40, y),
64
- v(e.$slots, "label", { filename: a.value })
65
- ], 10, g)
41
+ onInput: l[0] || (l[0] = (u) => d(u))
42
+ }, null, 40, k),
43
+ C(e.$slots, "label", { filename: t.value })
44
+ ], 10, h)
66
45
  ], 2));
67
46
  }
68
47
  });
@@ -1,5 +1,8 @@
1
- import { defineComponent as b, useId as f, computed as h, createElementBlock as r, openBlock as s, withModifiers as d, normalizeClass as l, createElementVNode as u, renderSlot as m, createCommentVNode as C, toDisplayString as g } from "vue";
2
- const y = ["id"], V = ["id", "data-cy", "checked", "disabled"], v = ["for"], w = /* @__PURE__ */ b({
1
+ import { defineComponent as m, useId as f, computed as h, watch as b, createElementBlock as p, openBlock as u, createVNode as n, renderSlot as C, unref as l, normalizeClass as y, withCtx as s, createBlock as V, createCommentVNode as g, createTextVNode as B, toDisplayString as w } from "vue";
2
+ import { CheckIcon as I } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.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 { CheckboxRoot as v, CheckboxIndicator as x } from "reka-ui";
5
+ const N = ["for"], q = /* @__PURE__ */ m({
3
6
  __name: "CheckboxBtn",
4
7
  props: {
5
8
  id: {},
@@ -9,67 +12,67 @@ const y = ["id"], V = ["id", "data-cy", "checked", "disabled"], v = ["for"], w =
9
12
  } },
10
13
  required: { type: Boolean },
11
14
  inputClass: {},
12
- inline: { type: Boolean, default: !1 },
13
15
  label: { default: "" },
14
16
  labelClass: {},
15
- isValid: { default: null },
16
17
  containerId: {},
17
- handleLabelClick: { type: Boolean, default: !0 },
18
18
  modelValue: { type: Boolean, default: !1 }
19
19
  },
20
20
  emits: ["click", "change", "update:modelValue"],
21
- setup(i, { emit: c }) {
22
- const a = c, n = f(), o = h(() => `${i.id ?? n}`), k = () => {
23
- const e = i.checked ?? i.modelValue;
24
- a("change", {
25
- id: i.id ?? n,
26
- label: i.label,
27
- checked: !e
28
- }), a("update:modelValue", !e);
29
- }, p = () => {
30
- k(), i.handleLabelClick && a("click");
21
+ setup(t, { emit: r }) {
22
+ const i = f(), d = h(() => `${t.id ?? i}`), a = r;
23
+ b(
24
+ () => t.checked,
25
+ (e) => {
26
+ e !== void 0 && a("update:modelValue", e);
27
+ }
28
+ );
29
+ const c = (e) => {
30
+ e !== "indeterminate" && (a("change", {
31
+ id: t.id ?? i,
32
+ label: t.label,
33
+ checked: e
34
+ }), a("update:modelValue", e));
31
35
  };
32
- return (e, t) => (s(), r("div", {
33
- id: e.containerId,
34
- class: l(["uikit-group uikit-relative uikit-items-center uikit-pl-30px hover:uikit-cursor-pointer", [
35
- { "uikit-inline-flex": e.inline },
36
- { "uikit-flex": !e.inline },
37
- e.$attrs["wrapper-classes"]
38
- ]]),
39
- onClick: d(p, ["stop"])
36
+ return (e, o) => (u(), p("label", {
37
+ class: "uikit-flex uikit-items-center uikit-gap-sm uikit-text-16",
38
+ for: d.value,
39
+ onClick: o[0] || (o[0] = (k) => a("click", k))
40
40
  }, [
41
- u("input", {
42
- id: o.value,
43
- ref: "checkbox",
41
+ n(l(v), {
42
+ id: d.value,
43
+ "model-value": e.modelValue,
44
44
  "data-cy": e.dataCy,
45
- class: l(["uikit-pointer-events-none uikit-absolute uikit-left-0 uikit-size-4 uikit-appearance-none uikit-rounded-3xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white checked:uikit-bg-center checked:uikit-bg-no-repeat group-hover:uikit-cursor-pointer", [
46
- { "!uikit-border-w-danger": e.isValid === !1 },
47
- e.inputClass,
48
- e.isValid === !1 ? "checked-bg-invalid" : "checked-bg"
49
- ]]),
50
- type: "checkbox",
51
- checked: e.checked ?? e.modelValue,
52
45
  disabled: e.disabled,
53
- onChange: t[0] || (t[0] = d(() => {
54
- }, ["prevent", "stop"])),
55
- onClick: t[1] || (t[1] = d(() => {
56
- }, ["prevent", "stop"]))
57
- }, null, 42, V),
58
- m(e.$slots, "label", {}, () => [
59
- u("label", {
60
- class: l(["uikit-text-sm group-hover:uikit-cursor-pointer", [e.labelClass, { "uikit-text-w-danger": e.isValid === !1 }]]),
61
- for: o.value
62
- }, g(e.label), 11, v),
63
- e.required ? (s(), r("span", {
64
- key: 0,
65
- class: l(["required after:uikit-content-['*']", [
66
- e.isValid !== !1 ? "after:uikit-text-w-primary" : "after:uikit-text-w-danger"
67
- ]])
68
- }, null, 2)) : C("", !0)
69
- ], !0)
70
- ], 10, y));
46
+ class: y(["uikit-inline-flex uikit-size-[20px] uikit-items-center uikit-justify-center uikit-rounded-3xs uikit-p-0 data-[state='unchecked']:uikit-border data-[state='unchecked']:uikit-border-solid data-[state='unchecked']:uikit-border-w-lightgray", [
47
+ {
48
+ "uikit-bg-white": !e.modelValue,
49
+ "uikit-bg-w-blue": e.modelValue
50
+ },
51
+ e.inputClass
52
+ ]]),
53
+ "onUpdate:modelValue": c
54
+ }, {
55
+ default: s(() => [
56
+ n(l(x), { class: "uikit-flex" }, {
57
+ default: s(() => [
58
+ e.modelValue === !0 ? (u(), V(l(I), {
59
+ key: 0,
60
+ "fill-color": "#fff",
61
+ width: 12,
62
+ height: 14
63
+ })) : g("", !0)
64
+ ]),
65
+ _: 1
66
+ })
67
+ ]),
68
+ _: 1
69
+ }, 8, ["id", "model-value", "data-cy", "disabled", "class"]),
70
+ C(e.$slots, "label", {}, () => [
71
+ B(w(e.label), 1)
72
+ ])
73
+ ], 8, N));
71
74
  }
72
75
  });
73
76
  export {
74
- w as default
77
+ q as default
75
78
  };
@@ -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,17 @@ 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}`;
22
- } },
16
+ getKey: { type: Function, default: (n) => typeof n == "string" || typeof n == "number" ? `${n}` : `${n.id}` },
23
17
  groupId: { default: "" },
24
18
  dataCy: { default: "" }
25
19
  },
26
20
  emits: ["resetted", "update:modelValue", "checkedGroup"],
27
- setup(r, { emit: g }) {
28
- const o = r, n = g, c = v(/* @__PURE__ */ new Map()), s = h(() => {
21
+ setup(n, { emit: g }) {
22
+ const C = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase()), y = (e) => !e?.length, o = n, s = g, c = D(/* @__PURE__ */ new Map()), r = h(() => {
29
23
  for (const e of o.checkboxData)
30
24
  if (e.reset) return e;
31
25
  return null;
32
- }), C = h(() => o.checkboxData.length), f = h(() => {
26
+ }), v = h(() => o.checkboxData.length), f = h(() => {
33
27
  let e = 0;
34
28
  return c.value.forEach((t) => {
35
29
  t.checked && e++;
@@ -42,7 +36,7 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
42
36
  `${t.id}`,
43
37
  t
44
38
  ), t.checked && e.push(t);
45
- n("update:modelValue", e);
39
+ s("update:modelValue", e);
46
40
  })();
47
41
  const u = (e, t) => {
48
42
  const a = c.value.get(e);
@@ -58,19 +52,19 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
58
52
  e.checked = !1;
59
53
  });
60
54
  }, p = () => {
61
- k(), n("update:modelValue", []), n("resetted");
55
+ k(), s("update:modelValue", []), s("resetted");
62
56
  }, d = (e) => c.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
63
- if (V(o.checkboxData)) return;
57
+ if (y(o.checkboxData)) return;
64
58
  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) => {
59
+ t?.reset && e.checked ? k() : r.value && !t?.reset && u(o.getKey(r.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && r.value && f.value === v.value - 1 && c.value.forEach((l) => {
66
60
  l.checked = !!l.reset;
67
- }), o.autoCheckResetEmpty && s.value && !f.value && (!o.manualToggleResetButton || !t?.reset) && u(o.getKey(s.value), { checked: !0 });
61
+ }), o.autoCheckResetEmpty && r.value && !f.value && (!o.manualToggleResetButton || !t?.reset) && u(o.getKey(r.value), { checked: !0 });
68
62
  const a = [];
69
63
  c.value.forEach((l) => {
70
64
  l.checked && a.push(l);
71
- }), n("update:modelValue", a), n("checkedGroup", o.groupId);
65
+ }), s("update:modelValue", a), s("checkedGroup", o.groupId);
72
66
  };
73
- return x(
67
+ return E(
74
68
  () => o.reset,
75
69
  (e) => {
76
70
  e && p();
@@ -80,9 +74,9 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
80
74
  handleChange: i,
81
75
  checkboxesData: e.checkboxData
82
76
  }, () => [
83
- D("div", {
77
+ $("div", {
84
78
  id: e.groupId,
85
- class: E(["checkbox-group-container", e.$attrs.class || ""]),
79
+ class: B(["checkbox-group-container", e.$attrs.class || ""]),
86
80
  "data-cy": e.dataCy
87
81
  }, [
88
82
  m(e.$slots, "checkbox_elements", {
@@ -91,10 +85,10 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
91
85
  checkboxesData: e.checkboxData,
92
86
  reset: p
93
87
  }, () => [
94
- e.checkboxData ? (b(!0), $(A, { key: 0 }, I(e.checkboxData, (a, l) => (b(), R(G, {
88
+ e.checkboxData ? (b(!0), A(R, { key: 0 }, K(e.checkboxData, (a, l) => (b(), L(V, {
95
89
  id: e.getKey(a),
96
90
  key: l,
97
- "data-cy": a.dataCy ?? `checkbox_${K(L)(`${a.label}`)}`,
91
+ "data-cy": a.dataCy ?? `checkbox_${C(`${a.label}`)}`,
98
92
  label: a.label,
99
93
  inline: e.formCheckInline,
100
94
  "model-value": d(a),
@@ -103,9 +97,9 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
103
97
  e.checkboxContainerClasses
104
98
  ],
105
99
  onChange: i
106
- }, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) : B("", !0)
100
+ }, null, 8, ["id", "data-cy", "label", "inline", "model-value", "container-class"]))), 128)) : I("", !0)
107
101
  ])
108
- ], 10, N)
102
+ ], 10, w)
109
103
  ]);
110
104
  }
111
105
  });
@@ -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 "./BaseSelect.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/BaseSelect.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
+ };