@wikicasa-dev/components 2.6.3 → 2.6.5-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 (78) hide show
  1. package/dist/UIKit/AccessibleSelect.vue.js +27 -27
  2. package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +2 -2
  3. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +2 -2
  4. package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +2 -2
  5. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +2 -2
  6. package/dist/UIKit/Accordion/BaseAccordion.vue.js +6 -6
  7. package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
  8. package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +8 -8
  9. package/dist/UIKit/BaseAlert.vue.js +2 -2
  10. package/dist/UIKit/BaseAutocomplete.vue.js +5 -5
  11. package/dist/UIKit/BaseBadge.vue.js +2 -2
  12. package/dist/UIKit/BaseBreadcrumb.vue.js +5 -5
  13. package/dist/UIKit/BaseButton.vue.js +2 -2
  14. package/dist/UIKit/BaseComplexToggle.vue.js +6 -6
  15. package/dist/UIKit/BaseDropDown.vue.js +10 -10
  16. package/dist/UIKit/BaseFloatingLabel.vue.js +3 -3
  17. package/dist/UIKit/BaseInput.vue.js +8 -8
  18. package/dist/UIKit/BaseModal.vue.js +11 -11
  19. package/dist/UIKit/BasePagination.vue.js +3 -3
  20. package/dist/UIKit/BaseSelect/SelectItem.vue.js +2 -2
  21. package/dist/UIKit/BaseSlider.vue.js +5 -5
  22. package/dist/UIKit/BaseSnackbar.vue.js +11 -11
  23. package/dist/UIKit/BaseTextarea.vue.js +8 -8
  24. package/dist/UIKit/BaseToggle.vue.js +7 -7
  25. package/dist/UIKit/BaseTooltip.vue.js +3 -3
  26. package/dist/UIKit/BaseUploadFile.vue.js +1 -1
  27. package/dist/UIKit/Card/BaseCard.vue.js +2 -2
  28. package/dist/UIKit/Card/CardDescriptionPrimitive.js +2 -2
  29. package/dist/UIKit/Card/CardImagePrimitive.vue.js +2 -2
  30. package/dist/UIKit/Card/CardRootPrimitive.vue.js +2 -2
  31. package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +14 -14
  32. package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +12 -12
  33. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +7 -7
  34. package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +2 -2
  35. package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +2 -2
  36. package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +2 -2
  37. package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +2 -2
  38. package/dist/UIKit/Radio/RadioButton.vue.js +2 -2
  39. package/dist/UIKit/Radio/RadioGroup.vue.js +11 -11
  40. package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +7 -7
  41. package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +8 -8
  42. package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +2 -2
  43. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +4 -4
  44. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +1 -1
  45. package/dist/UIKit/Slider/SimpleSlider.vue.js +8 -8
  46. package/dist/UIKit/StaticSpinner.vue.js +2 -2
  47. package/dist/UIKit/Tab/BaseTabList.vue.js +2 -2
  48. package/dist/UIKit/Tab/BaseTabPanel.vue.js +2 -2
  49. package/dist/UIKit/Tab/BaseTabView.vue.js +9 -9
  50. package/dist/UIKit/Tab/v2/BaseTabs.vue.js +2 -2
  51. package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +2 -2
  52. package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +2 -2
  53. package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +2 -2
  54. package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +2 -2
  55. package/dist/chart/DoughnutChart.vue.js +2 -2
  56. package/dist/chart/LineChart.vue.js +2 -2
  57. package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +2 -2
  58. package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +2 -2
  59. package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +2 -2
  60. package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +2 -2
  61. package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +2 -2
  62. package/dist/components/carousel/Primitive/SwiperPrimitive.d.ts +0 -2
  63. package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +12 -13
  64. package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +4 -4
  65. package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +2 -2
  66. package/dist/components/carousel/SwiperCarousel.vue.js +8 -8
  67. package/dist/components/carousel/SwiperSlide.js +2 -2
  68. package/dist/lazyModules/Swiper/Autoplay/index.js +3 -2
  69. package/dist/lazyModules/Swiper/Controller/index.js +3 -2
  70. package/dist/lazyModules/Swiper/FreeMode/index.js +3 -2
  71. package/dist/lazyModules/Swiper/Keyboard/index.js +3 -2
  72. package/dist/lazyModules/Swiper/Navigation/index.js +3 -2
  73. package/dist/lazyModules/Swiper/Pagination/index.js +3 -2
  74. package/dist/lazyModules/Swiper/Thumbs/index.js +3 -2
  75. package/dist/lazyModules/Swiper/Zoom/index.js +3 -2
  76. package/dist/lazyModules/VueChartJs/Doughnut/index.js +3 -2
  77. package/dist/lazyModules/VueChartJs/Line/index.js +3 -2
  78. package/package.json +29 -29
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, mergeModels as C, useModel as N, ref as m, useId as O, computed as j, watch as y, useAttrs as D, createElementBlock as r, openBlock as u, normalizeClass as v, unref as d, renderSlot as h, createElementVNode as g, createBlock as G, createCommentVNode as x, withKeys as J, withModifiers as Q, Fragment as T, renderList as B } from "vue";
1
+ import { defineComponent as A, useModel as N, ref as m, useId as O, computed as j, watch as y, useAttrs as D, openBlock as u, createElementBlock as r, normalizeClass as v, unref as d, renderSlot as h, createElementVNode as g, withKeys as G, withModifiers as J, createBlock as Q, createCommentVNode as x, Fragment as C, renderList as T, mergeModels as B } from "vue";
2
2
  import W from "./BaseFloatingLabel.js";
3
3
  import { useFloatingLabel as X } from "../composables/useFloatingLabel.js";
4
4
  const Y = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Z = { class: "uikit-invisible uikit-float-none uikit-mb-2 uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, U = ["innerHTML"], p = ["innerHTML"], _ = ["innerHTML"], ee = {
@@ -7,7 +7,7 @@ const Y = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
7
7
  }, ne = /* @__PURE__ */ A({
8
8
  inheritAttrs: !1,
9
9
  __name: "BaseInput",
10
- props: /* @__PURE__ */ C({
10
+ props: /* @__PURE__ */ B({
11
11
  id: {},
12
12
  inputClass: {},
13
13
  labelText: { default: "" },
@@ -27,7 +27,7 @@ const Y = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
27
27
  modelValue: { default: "" },
28
28
  modelModifiers: {}
29
29
  }),
30
- emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
30
+ emits: /* @__PURE__ */ B(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
31
31
  setup(e, { expose: M, emit: E }) {
32
32
  const o = N(e, "modelValue"), a = m(""), k = E, {
33
33
  labelState: s,
@@ -143,9 +143,9 @@ const Y = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
143
143
  onClick: i[0] || (i[0] = (l) => k("click", l)),
144
144
  onFocusin: i[1] || (i[1] = () => e.labelText && d(H)()),
145
145
  onFocusout: i[2] || (i[2] = (l) => e.labelText && !e.keepFloatingLabel && d($)(a.value)),
146
- onInput: Q(q, ["stop"]),
146
+ onInput: J(q, ["stop"]),
147
147
  onKeydown: [
148
- i[3] || (i[3] = J(() => k("keydownEnterPressed"), ["enter"])),
148
+ i[3] || (i[3] = G(() => k("keydownEnterPressed"), ["enter"])),
149
149
  i[4] || (i[4] = (l) => k("keydown", l))
150
150
  ],
151
151
  onKeyup: i[5] || (i[5] = (l) => k("keyup", l))
@@ -176,7 +176,7 @@ const Y = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
176
176
  }, null, 10, U)
177
177
  ])
178
178
  ], 2),
179
- e.labelText ? (u(), G(W, {
179
+ e.labelText ? (u(), Q(W, {
180
180
  key: 0,
181
181
  for: f.value,
182
182
  "label-text": e.labelText,
@@ -191,11 +191,11 @@ const Y = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
191
191
  "label-text-classes": e.labelTextClasses
192
192
  }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : x("", !0),
193
193
  h(t.$slots, "feedback", {}, () => [
194
- e.isValid === !1 ? (u(!0), r(T, { key: 0 }, B(b.value.invalid, (l, w) => (u(), r("div", {
194
+ e.isValid === !1 ? (u(!0), r(C, { key: 0 }, T(b.value.invalid, (l, w) => (u(), r("div", {
195
195
  key: `${f.value}_invalid_${w}`,
196
196
  class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
197
197
  innerHTML: l
198
- }, null, 8, p))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, B(b.value.valid, (l, w) => (u(), r("div", {
198
+ }, null, 8, p))), 128)) : e.isValid === !0 ? (u(!0), r(C, { key: 1 }, T(b.value.valid, (l, w) => (u(), r("div", {
199
199
  key: `${f.value}_valid_${w}`,
200
200
  class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
201
201
  innerHTML: l
@@ -1,8 +1,8 @@
1
- import { defineComponent as A, mergeModels as h, useModel as F, useTemplateRef as y, shallowRef as C, onUnmounted as K, createBlock as N, openBlock as k, Teleport as S, createVNode as w, Transition as V, unref as p, withCtx as P, withDirectives as R, createElementVNode as l, normalizeClass as i, createElementBlock as x, createCommentVNode as g, renderSlot as d, withModifiers as U, vShow as j } from "vue";
1
+ import { defineComponent as A, useModel as F, useTemplateRef as h, shallowRef as y, onUnmounted as K, openBlock as k, createBlock as N, Teleport as S, createVNode as C, Transition as V, unref as w, withCtx as P, withDirectives as R, createElementVNode as l, normalizeClass as i, createElementBlock as p, withModifiers as U, createCommentVNode as x, renderSlot as d, vShow as j, mergeModels as g } from "vue";
2
2
  import { CloseIcon as q } from "@wikicasa-dev/svg-icons";
3
3
  const G = ["id", "data-cy", "data-state"], J = ["innerHTML"], X = /* @__PURE__ */ A({
4
4
  __name: "BaseModal",
5
- props: /* @__PURE__ */ h({
5
+ props: /* @__PURE__ */ g({
6
6
  id: { default: "base-bt-modal" },
7
7
  size: { default: "modal-md" },
8
8
  customBackdropClasses: {},
@@ -24,9 +24,9 @@ const G = ["id", "data-cy", "data-state"], J = ["innerHTML"], X = /* @__PURE__ *
24
24
  showModal: { type: Boolean, default: !0 },
25
25
  showModalModifiers: {}
26
26
  }),
27
- emits: /* @__PURE__ */ h(["closed", "opened", "dialogClick"], ["update:showModal"]),
27
+ emits: /* @__PURE__ */ g(["closed", "opened", "dialogClick"], ["update:showModal"]),
28
28
  setup(e, { emit: M }) {
29
- const r = M, o = F(e, "showModal"), B = o.value, m = y("backdrop"), s = y("modalDialog"), u = C(!1), c = C(!1), f = ({ key: t }) => {
29
+ const r = M, o = F(e, "showModal"), B = o.value, m = h("backdrop"), s = h("modalDialog"), u = y(!1), c = y(!1), f = ({ key: t }) => {
30
30
  t === "Escape" && a();
31
31
  }, E = () => {
32
32
  document?.body.addEventListener("keydown", f);
@@ -76,8 +76,8 @@ const G = ["id", "data-cy", "data-state"], J = ["innerHTML"], X = /* @__PURE__ *
76
76
  s.value === t.target && t.stopPropagation();
77
77
  };
78
78
  return (t, n) => (k(), N(S, { to: "body" }, [
79
- w(V, {
80
- appear: p(B),
79
+ C(V, {
80
+ appear: w(B),
81
81
  name: "modal-transition",
82
82
  duration: { enter: 250, leave: 250 },
83
83
  onBeforeEnter: I,
@@ -121,7 +121,7 @@ const G = ["id", "data-cy", "data-state"], J = ["innerHTML"], X = /* @__PURE__ *
121
121
  l("div", {
122
122
  class: i(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-rounded-t uikit-border-0 uikit-bg-white uikit-px-4 uikit-pb-10px uikit-pt-20px sm:uikit-px-6", [e.customModalHeaderClasses]])
123
123
  }, [
124
- e.withCloseIcon ? (k(), x("button", {
124
+ e.withCloseIcon ? (k(), p("button", {
125
125
  key: 0,
126
126
  id: "close-icon-btn",
127
127
  "data-cy": "bbt-default-close-icon-btn",
@@ -130,12 +130,12 @@ const G = ["id", "data-cy", "data-state"], J = ["innerHTML"], X = /* @__PURE__ *
130
130
  "aria-label": "Close",
131
131
  onClick: n[0] || (n[0] = U((v) => o.value = !1, ["prevent", "stop"]))
132
132
  }, [
133
- w(p(q), {
133
+ C(w(q), {
134
134
  class: i(["bbt-close-icon uikit-box-border", e.closeIcon?.classes]),
135
135
  width: e.closeIcon?.size || 20,
136
136
  height: e.closeIcon?.size || 20
137
137
  }, null, 8, ["class", "width", "height"])
138
- ], 2)) : g("", !0),
138
+ ], 2)) : x("", !0),
139
139
  d(t.$slots, "header", { closeModal: a }, () => [
140
140
  l("span", {
141
141
  class: i(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
@@ -148,12 +148,12 @@ const G = ["id", "data-cy", "data-state"], J = ["innerHTML"], X = /* @__PURE__ *
148
148
  }, [
149
149
  d(t.$slots, "body", { closeModal: a })
150
150
  ], 2),
151
- t.$slots.footer ? (k(), x("div", {
151
+ t.$slots.footer ? (k(), p("div", {
152
152
  key: 0,
153
153
  class: i(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", e.customModalFooterClasses])
154
154
  }, [
155
155
  d(t.$slots, "footer", { closeModal: a })
156
- ], 2)) : g("", !0),
156
+ ], 2)) : x("", !0),
157
157
  d(t.$slots, "fixed-bottom")
158
158
  ], 42, G)
159
159
  ], 34), [
@@ -1,4 +1,4 @@
1
- import { defineComponent as O, mergeModels as V, useModel as A, computed as s, createElementBlock as o, openBlock as a, createCommentVNode as k, createElementVNode as P, createBlock as v, resolveDynamicComponent as m, mergeProps as h, withCtx as f, createVNode as $, unref as p, toDisplayString as g, Fragment as w, createTextVNode as x, renderList as j } from "vue";
1
+ import { defineComponent as O, useModel as V, computed as s, openBlock as a, createElementBlock as o, createElementVNode as P, createBlock as v, resolveDynamicComponent as m, mergeProps as h, withCtx as f, createVNode as $, unref as p, toDisplayString as g, createCommentVNode as k, Fragment as w, createTextVNode as x, renderList as j, mergeModels as A } from "vue";
2
2
  import { ArrowIcon as B } from "@wikicasa-dev/svg-icons";
3
3
  const Q = {
4
4
  "aria-label": "Page navigation",
@@ -20,7 +20,7 @@ const Q = {
20
20
  class: "uikit-mx-10px uikit-select-none"
21
21
  }, Z = /* @__PURE__ */ O({
22
22
  __name: "BasePagination",
23
- props: /* @__PURE__ */ V({
23
+ props: /* @__PURE__ */ A({
24
24
  count: { default: 0 },
25
25
  limit: { default: 25 },
26
26
  siblings: { default: 3 },
@@ -42,7 +42,7 @@ const Q = {
42
42
  }),
43
43
  emits: ["update:pageNumber"],
44
44
  setup(e) {
45
- const u = A(e, "pageNumber"), y = s(() => (u.value || 1) + 1), b = s(() => (u.value || 1) - 1), c = s(() => e.baseUrl ? e.linkTag : "span"), r = s(() => Math.ceil((e.count + e.additionalCount) / e.limit)), D = (l = 1) => l < 1, S = (l = 1) => l === r.value, C = s(() => (u.value || 0) > e.siblings + 2), N = s(
45
+ const u = V(e, "pageNumber"), y = s(() => (u.value || 1) + 1), b = s(() => (u.value || 1) - 1), c = s(() => e.baseUrl ? e.linkTag : "span"), r = s(() => Math.ceil((e.count + e.additionalCount) / e.limit)), D = (l = 1) => l < 1, S = (l = 1) => l === r.value, C = s(() => (u.value || 0) > e.siblings + 2), N = s(
46
46
  () => (u.value || 0) < r.value - e.siblings - 1
47
47
  ), L = s(() => {
48
48
  let t = u.value || 0, i = 0;
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, useTemplateRef as c, watch as d, nextTick as m, createElementBlock as r, openBlock as f, normalizeClass as v, renderSlot as k, createElementVNode as x } from "vue";
1
+ import { defineComponent as u, useTemplateRef as c, watch as d, nextTick as m, openBlock as r, createElementBlock as f, normalizeClass as v, renderSlot as k, createElementVNode as x } from "vue";
2
2
  const b = ["data-active", "tabindex"], p = ["innerHTML"], $ = /* @__PURE__ */ u({
3
3
  __name: "SelectItem",
4
4
  props: {
@@ -17,7 +17,7 @@ const b = ["data-active", "tabindex"], p = ["innerHTML"], $ = /* @__PURE__ */ u(
17
17
  });
18
18
  },
19
19
  { immediate: !0 }
20
- ), (e, l) => (f(), r("li", {
20
+ ), (e, l) => (r(), f("li", {
21
21
  ref: "liItem",
22
22
  class: v(["uikit-list-none uikit-text-w-black", [
23
23
  { "active uikit-bg-w-cultured": t.active },
@@ -1,8 +1,8 @@
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";
1
+ import { defineComponent as R, useModel as w, ref as p, useTemplateRef as D, useAttrs as _, onMounted as j, openBlock as q, createElementBlock as G, createElementVNode as x, withModifiers as T, createVNode as k, mergeModels as H } from "vue";
2
2
  import C from "./BaseInput.js";
3
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__ */ _({
5
+ props: /* @__PURE__ */ H({
6
6
  type: { default: "linear" },
7
7
  min: { default: 0 },
8
8
  max: { default: 100 }
@@ -131,8 +131,8 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
131
131
  "#2B5DFF",
132
132
  l
133
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
- return 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), q(() => {
134
+ }, b = _();
135
+ return 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), j(() => {
136
136
  !g.value || !i.value || (V(
137
137
  c.value,
138
138
  {
@@ -144,7 +144,7 @@ const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["
144
144
  "#2B5DFF",
145
145
  i.value
146
146
  ), h(d.value, i.value));
147
- }), (e, l) => (H(), G("div", J, [
147
+ }), (e, l) => (q(), G("div", J, [
148
148
  x("div", K, [
149
149
  x("input", {
150
150
  ref_key: "fromSlider",
@@ -1,10 +1,10 @@
1
- import { defineComponent as b, mergeModels as I, useModel as w, ref as $, watch as y, nextTick as x, createBlock as u, openBlock as r, unref as i, withCtx as a, renderSlot as d, createVNode as n, normalizeClass as k, createCommentVNode as p, normalizeStyle as B } from "vue";
1
+ import { defineComponent as b, useModel as w, ref as I, watch as y, nextTick as $, openBlock as u, createBlock as r, unref as i, withCtx as a, renderSlot as d, createVNode as n, normalizeClass as k, createCommentVNode as p, normalizeStyle as x, mergeModels as B } from "vue";
2
2
  import { CloseIcon as V } from "@wikicasa-dev/svg-icons";
3
3
  import { ToastProvider as D, ToastRoot as M, ToastTitle as P, ToastDescription as z, ToastClose as S, ToastAction as A, ProgressRoot as N, ProgressIndicator as R, ToastPortal as U, ToastViewport as h } from "reka-ui";
4
4
  const q = /* @__PURE__ */ b({
5
5
  inheritAttrs: !1,
6
6
  __name: "BaseSnackbar",
7
- props: /* @__PURE__ */ I({
7
+ props: /* @__PURE__ */ B({
8
8
  alertClass: { default: "primary" },
9
9
  duration: { default: 3e3 },
10
10
  swipeDirection: { default: "left" },
@@ -22,7 +22,7 @@ const q = /* @__PURE__ */ b({
22
22
  }),
23
23
  emits: ["update:open", "update:refresh"],
24
24
  setup(e) {
25
- const l = w(e, "open"), v = w(e, "refresh"), o = $(0);
25
+ const l = w(e, "open"), v = w(e, "refresh"), o = I(0);
26
26
  let c, m;
27
27
  const C = (t = 3e3) => {
28
28
  o.value = 0;
@@ -39,7 +39,7 @@ const q = /* @__PURE__ */ b({
39
39
  return y(
40
40
  l,
41
41
  (t) => {
42
- x(() => {
42
+ $(() => {
43
43
  if (t) {
44
44
  T();
45
45
  return;
@@ -52,7 +52,7 @@ const q = /* @__PURE__ */ b({
52
52
  t && (l.value = !1, setTimeout(() => {
53
53
  l.value = !0, v.value = !1;
54
54
  }));
55
- }), (t, s) => (r(), u(i(D), { "swipe-direction": e.swipeDirection }, {
55
+ }), (t, s) => (u(), r(i(D), { "swipe-direction": e.swipeDirection }, {
56
56
  default: a(() => [
57
57
  d(t.$slots, "trigger", {
58
58
  open: () => l.value = !0
@@ -66,7 +66,7 @@ const q = /* @__PURE__ */ b({
66
66
  type: e.type
67
67
  }, {
68
68
  default: a(() => [
69
- t.$slots.title ? (r(), u(i(P), {
69
+ t.$slots.title ? (u(), r(i(P), {
70
70
  key: 0,
71
71
  "as-child": ""
72
72
  }, {
@@ -81,7 +81,7 @@ const q = /* @__PURE__ */ b({
81
81
  ]),
82
82
  _: 3
83
83
  }),
84
- e.withCloseIcon ? (r(), u(i(S), {
84
+ e.withCloseIcon ? (u(), r(i(S), {
85
85
  key: 1,
86
86
  class: k(["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]", e.closeClasses]),
87
87
  "data-cy": "base-snackbar-close-btn"
@@ -97,7 +97,7 @@ const q = /* @__PURE__ */ b({
97
97
  ]),
98
98
  _: 3
99
99
  }, 8, ["class"])) : p("", !0),
100
- t.$slots["toast-action"] ? (r(), u(i(A), {
100
+ t.$slots["toast-action"] ? (u(), r(i(A), {
101
101
  key: 2,
102
102
  "as-child": "",
103
103
  "alt-text": "Goto schedule to undo"
@@ -115,7 +115,7 @@ const q = /* @__PURE__ */ b({
115
115
  default: a(() => [
116
116
  n(i(R), {
117
117
  class: "uikit-alert-progress-indicator uikit-relative uikit-block uikit-size-full uikit-transition-transform uikit-duration-75 uikit-will-change-transform",
118
- style: B(`transform: translateX(-${100 - o.value}%)`)
118
+ style: x(`transform: translateX(-${100 - o.value}%)`)
119
119
  }, null, 8, ["style"])
120
120
  ]),
121
121
  _: 1
@@ -123,7 +123,7 @@ const q = /* @__PURE__ */ b({
123
123
  ]),
124
124
  _: 3
125
125
  }, 8, ["open", "duration", "class", "data-cy", "type"]),
126
- e.to ? (r(), u(i(U), {
126
+ e.to ? (u(), r(i(U), {
127
127
  key: 0,
128
128
  to: e.to
129
129
  }, {
@@ -133,7 +133,7 @@ const q = /* @__PURE__ */ b({
133
133
  }, null, 8, ["class"])
134
134
  ]),
135
135
  _: 1
136
- }, 8, ["to"])) : (r(), u(i(h), {
136
+ }, 8, ["to"])) : (u(), r(i(h), {
137
137
  key: 1,
138
138
  class: k(["uikit-alert-viewport uikit-m-0 uikit-w-full uikit-list-none uikit-gap-[8px]", e.viewportClasses])
139
139
  }, null, 8, ["class"]))
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as T, useModel as h, ref as $, watch as L, openBlock as b, createElementBlock as f, normalizeClass as s, createElementVNode as r, unref as u, withModifiers as o, createCommentVNode as c, createVNode as M, mergeModels as v, nextTick as C } from "vue";
2
2
  import F from "./BaseFloatingLabel.js";
3
3
  import { useFloatingLabel as B } from "../composables/useFloatingLabel.js";
4
4
  const z = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], E = {
@@ -7,7 +7,7 @@ const z = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "
7
7
  }, H = ["innerHTML"], q = ["innerHTML"], S = /* @__PURE__ */ T({
8
8
  inheritAttrs: !1,
9
9
  __name: "BaseTextarea",
10
- props: /* @__PURE__ */ c({
10
+ props: /* @__PURE__ */ v({
11
11
  labelText: { default: "" },
12
12
  feedback: {},
13
13
  isValid: { type: [Boolean, null], default: null },
@@ -17,7 +17,7 @@ const z = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "
17
17
  modelValue: { default: "" },
18
18
  modelModifiers: {}
19
19
  }),
20
- emits: /* @__PURE__ */ c(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
20
+ emits: /* @__PURE__ */ v(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
21
21
  setup(e, { expose: m, emit: x }) {
22
22
  const n = h(e, "modelValue"), k = x, {
23
23
  labelState: a,
@@ -48,7 +48,7 @@ const z = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "
48
48
  t.value && t.value.focus();
49
49
  }));
50
50
  }
51
- }), (i, l) => (f(), b("div", {
51
+ }), (i, l) => (b(), f("div", {
52
52
  class: s(i.$attrs["wrapper-classes"])
53
53
  }, [
54
54
  r("div", {
@@ -86,7 +86,7 @@ const z = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "
86
86
  { "uikit-border-w-secondary": e.isValid === null }
87
87
  ]])
88
88
  }, [
89
- e.labelText ? (f(), b("legend", E, [
89
+ e.labelText ? (b(), f("legend", E, [
90
90
  r("span", {
91
91
  class: s(["uikit-px-5px uikit-opacity-0", [
92
92
  {
@@ -98,7 +98,7 @@ const z = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "
98
98
  ]]),
99
99
  innerHTML: e.labelText
100
100
  }, null, 10, H)
101
- ])) : v("", !0)
101
+ ])) : c("", !0)
102
102
  ], 2),
103
103
  M(F, {
104
104
  for: i.$attrs.id,
@@ -112,13 +112,13 @@ const z = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "
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 ? (f(), b("div", {
115
+ (e.isValid || e.isValid === !1) && e.feedback ? (b(), f("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)) : v("", !0)
121
+ }, null, 10, q)) : c("", !0)
122
122
  ], 2));
123
123
  }
124
124
  });
@@ -1,8 +1,8 @@
1
- import { defineComponent as d, mergeModels as s, useModel as n, createElementBlock as k, openBlock as c, renderSlot as a, createVNode as u, createCommentVNode as m, unref as o, withCtx as f, createElementVNode as p } from "vue";
1
+ import { defineComponent as d, useModel as s, openBlock as n, createElementBlock as k, renderSlot as a, createVNode as u, unref as o, withCtx as c, createElementVNode as m, createCommentVNode as f, mergeModels as p } from "vue";
2
2
  import { SwitchRoot as b, SwitchThumb as h } from "reka-ui";
3
3
  const g = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, w = ["innerHTML"], V = /* @__PURE__ */ d({
4
4
  __name: "BaseToggle",
5
- props: /* @__PURE__ */ s({
5
+ props: /* @__PURE__ */ p({
6
6
  label: {},
7
7
  dataCy: {}
8
8
  }, {
@@ -11,8 +11,8 @@ const g = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, w = ["inne
11
11
  }),
12
12
  emits: ["update:modelValue"],
13
13
  setup(e) {
14
- const i = n(e, "modelValue");
15
- return (t, l) => (c(), k("div", g, [
14
+ const i = s(e, "modelValue");
15
+ return (t, l) => (n(), k("div", g, [
16
16
  a(t.$slots, "leftLabel"),
17
17
  u(o(b), {
18
18
  modelValue: i.value,
@@ -20,13 +20,13 @@ const g = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, w = ["inne
20
20
  "data-cy": e.dataCy,
21
21
  class: "uikit-flex uikit-h-[20px] uikit-w-[40px] uikit-cursor-pointer uikit-rounded-full uikit-p-0 uikit-transition-[background] uikit-will-change-[background] focus-visible:uikit-outline-w-primary data-[state=checked]:uikit-bg-w-primary data-[state=unchecked]:uikit-bg-w-cultured"
22
22
  }, {
23
- default: f(() => [
23
+ default: c(() => [
24
24
  u(o(h), { class: "uikit-box-border uikit-flex uikit-size-[20px] uikit-translate-x-0 uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-shadow-xl uikit-transition-transform uikit-will-change-transform data-[state=checked]:uikit-translate-x-full" })
25
25
  ]),
26
26
  _: 1
27
27
  }, 8, ["modelValue", "data-cy"]),
28
- t.$slots.leftLabel ? m("", !0) : a(t.$slots, "rightLabel", { key: 0 }, () => [
29
- p("span", {
28
+ t.$slots.leftLabel ? f("", !0) : a(t.$slots, "rightLabel", { key: 0 }, () => [
29
+ m("span", {
30
30
  class: "uikit-ml-[10px]",
31
31
  innerHTML: e.label
32
32
  }, null, 8, w)
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as n, openBlock as o, createElementBlock as l, renderSlot as s, createElementVNode as i, normalizeClass as a, createCommentVNode as r } from "vue";
2
2
  const c = { class: "base-tooltip" }, m = /* @__PURE__ */ n({
3
3
  __name: "BaseTooltip",
4
4
  props: {
@@ -12,7 +12,7 @@ const c = { class: "base-tooltip" }, m = /* @__PURE__ */ n({
12
12
  tooltipContentClasses: { default: "" }
13
13
  },
14
14
  setup(t) {
15
- return (e, u) => (l(), o("div", c, [
15
+ return (e, u) => (o(), l("div", c, [
16
16
  s(e.$slots, "trigger", {}, void 0, !0),
17
17
  i("div", {
18
18
  class: a(["bg-transparent", [
@@ -20,7 +20,7 @@ const c = { class: "base-tooltip" }, m = /* @__PURE__ */ n({
20
20
  `${t.customTooltipClass ? t.customTooltipClass : "tooltip-content-wrapper"}`
21
21
  ]])
22
22
  }, [
23
- t.showTooltipContentManually ? (l(), o("div", {
23
+ t.showTooltipContentManually ? (o(), l("div", {
24
24
  key: 0,
25
25
  class: a(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", [
26
26
  "base-tooltip-arrow",
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, ref as m, watch as p, createElementBlock as o, openBlock as u, normalizeClass as l, createElementVNode as a, createBlock as x, createCommentVNode as d, renderSlot as h } from "vue";
1
+ import { defineComponent as b, ref as m, watch as p, openBlock as u, createElementBlock as o, normalizeClass as l, createElementVNode as a, createCommentVNode as d, createBlock as x, renderSlot as h } from "vue";
2
2
  import v from "./BaseFloatingLabel.js";
3
3
  const w = ["innerHTML"], C = ["for"], g = ["id", "multiple", "accept"], B = /* @__PURE__ */ b({
4
4
  inheritAttrs: !1,
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, computed as c, createBlock as u, openBlock as y, resolveDynamicComponent as f, normalizeClass as a, withCtx as g, createElementVNode as d, renderSlot as l } from "vue";
1
+ import { defineComponent as C, computed as c, openBlock as u, createBlock as y, resolveDynamicComponent as f, normalizeClass as a, withCtx as g, createElementVNode as d, renderSlot as l } from "vue";
2
2
  const p = /* @__PURE__ */ C({
3
3
  __name: "BaseCard",
4
4
  props: {
@@ -12,7 +12,7 @@ const p = /* @__PURE__ */ C({
12
12
  const n = o, r = c(
13
13
  () => e.type === "news" ? "news-card" : e.type
14
14
  ), i = c(() => e.type ? `${e.type}-img` : "");
15
- return (s, t) => (y(), u(f(e.rootComponent), {
15
+ return (s, t) => (u(), y(f(e.rootComponent), {
16
16
  class: a(["uikit-card", [r.value]]),
17
17
  onClick: t[0] || (t[0] = (m) => n("click", m))
18
18
  }, {
@@ -1,8 +1,8 @@
1
- import { createElementBlock as r, openBlock as o, renderSlot as t } from "vue";
1
+ import { openBlock as r, createElementBlock as o, renderSlot as t } from "vue";
2
2
  import c from "../../_virtual/_plugin-vue_export-helper.js";
3
3
  const n = {}, s = { class: "card-body" };
4
4
  function i(e, d) {
5
- return o(), r("div", s, [
5
+ return r(), o("div", s, [
6
6
  t(e.$slots, "default")
7
7
  ]);
8
8
  }
@@ -1,10 +1,10 @@
1
- import { defineComponent as t, inject as a, computed as c, createElementBlock as m, openBlock as n, normalizeClass as s, renderSlot as i } from "vue";
1
+ import { defineComponent as t, inject as a, computed as c, openBlock as m, createElementBlock as n, normalizeClass as s, renderSlot as i } from "vue";
2
2
  import { CardTypeKey as d } from "./type.js";
3
3
  const f = /* @__PURE__ */ t({
4
4
  __name: "CardImagePrimitive",
5
5
  setup(l) {
6
6
  const e = a(d, void 0), r = c(() => e ? `${e}-img` : "");
7
- return (o, p) => (n(), m("div", {
7
+ return (o, p) => (m(), n("div", {
8
8
  class: s(["card-img", [r.value]])
9
9
  }, [
10
10
  i(o.$slots, "default")
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, computed as r, provide as c, createBlock as d, openBlock as m, resolveDynamicComponent as p, normalizeClass as u, withCtx as f, renderSlot as y } from "vue";
1
+ import { defineComponent as n, computed as r, provide as c, openBlock as d, createBlock as m, resolveDynamicComponent as p, normalizeClass as u, withCtx as f, renderSlot as y } from "vue";
2
2
  import { CardTypeKey as C } from "./type.js";
3
3
  const w = /* @__PURE__ */ n({
4
4
  __name: "CardRootPrimitive",
@@ -11,7 +11,7 @@ const w = /* @__PURE__ */ n({
11
11
  const o = a, s = r(
12
12
  () => e.type === "news" ? "news-card" : e.type
13
13
  );
14
- return c(C, e.type), (i, t) => (m(), d(p(e.as), {
14
+ return c(C, e.type), (i, t) => (d(), m(p(e.as), {
15
15
  class: u(["uikit-card", s.value]),
16
16
  onClick: t[0] || (t[0] = (l) => o("click", l))
17
17
  }, {
@@ -1,9 +1,9 @@
1
- import { defineComponent as y, mergeModels as c, useId as p, useTemplateRef as u, useModel as B, watch as I, inject as n, onMounted as V, onUnmounted as R, createElementBlock as w, openBlock as r, createVNode as s, renderSlot as E, unref as l, normalizeClass as M, withCtx as k, createBlock as N, createCommentVNode as j, createTextVNode as z, toDisplayString as S } from "vue";
1
+ import { defineComponent as y, useId as p, useTemplateRef as c, useModel as B, watch as I, inject as u, onMounted as V, onUnmounted as R, openBlock as n, createElementBlock as w, createVNode as r, unref as l, normalizeClass as E, withCtx as s, createBlock as M, createCommentVNode as N, renderSlot as j, createTextVNode as z, toDisplayString as S, mergeModels as k } from "vue";
2
2
  import { CheckIcon as T } from "@wikicasa-dev/svg-icons";
3
3
  import { CheckboxRoot as U, CheckboxIndicator as $ } from "reka-ui";
4
4
  const F = /* @__PURE__ */ y({
5
5
  __name: "CheckboxBtn",
6
- props: /* @__PURE__ */ c({
6
+ props: /* @__PURE__ */ k({
7
7
  id: {},
8
8
  dataCy: {},
9
9
  disabled: { type: Boolean },
@@ -17,9 +17,9 @@ const F = /* @__PURE__ */ y({
17
17
  modelValue: { type: Boolean, default: !1 },
18
18
  modelModifiers: {}
19
19
  }),
20
- emits: /* @__PURE__ */ c(["click", "change"], ["update:modelValue"]),
20
+ emits: /* @__PURE__ */ k(["click", "change"], ["update:modelValue"]),
21
21
  setup(e, { expose: m, emit: f }) {
22
- const h = p(), o = u("root"), b = u("checkboxRoot"), a = B(e, "modelValue"), i = f;
22
+ const h = p(), o = c("root"), b = c("checkboxRoot"), a = B(e, "modelValue"), i = f;
23
23
  I(
24
24
  () => e.checked,
25
25
  (t) => {
@@ -32,7 +32,7 @@ const F = /* @__PURE__ */ y({
32
32
  label: e.label,
33
33
  checked: t
34
34
  }), a.value = t);
35
- }, v = n("addItem", void 0), C = n(
35
+ }, v = u("addItem", void 0), C = u(
36
36
  "removeItem",
37
37
  void 0
38
38
  );
@@ -43,35 +43,35 @@ const F = /* @__PURE__ */ y({
43
43
  }), m({
44
44
  getRootElement: () => o.value,
45
45
  getCheckboxElement: () => b.value?.$el
46
- }), (t, d) => (r(), w("label", {
46
+ }), (t, d) => (n(), w("label", {
47
47
  ref: "root",
48
48
  class: "uikit-checkbox-btn uikit-flex uikit-items-center uikit-gap-[12px]",
49
49
  onClick: d[0] || (d[0] = (g) => i("click", g))
50
50
  }, [
51
- s(l(U), {
51
+ r(l(U), {
52
52
  ref: "checkboxRoot",
53
53
  "model-value": a.value,
54
54
  "data-cy": e.dataCy,
55
55
  disabled: e.disabled,
56
- class: M(["uikit-inline-flex uikit-size-[20px] uikit-shrink-0 uikit-items-center uikit-justify-center uikit-rounded-[4px] uikit-p-0 data-[state='unchecked']:uikit-border data-[state='unchecked']:uikit-border-solid data-[state='unchecked']:uikit-border-w-lightgray data-[state='checked']:uikit-bg-w-primary data-[state='unchecked']:uikit-bg-white", e.inputClass]),
56
+ class: E(["uikit-inline-flex uikit-size-[20px] uikit-shrink-0 uikit-items-center uikit-justify-center uikit-rounded-[4px] uikit-p-0 data-[state='unchecked']:uikit-border data-[state='unchecked']:uikit-border-solid data-[state='unchecked']:uikit-border-w-lightgray data-[state='checked']:uikit-bg-w-primary data-[state='unchecked']:uikit-bg-white", e.inputClass]),
57
57
  "onUpdate:modelValue": x
58
58
  }, {
59
- default: k(() => [
60
- s(l($), { class: "uikit-flex" }, {
61
- default: k(() => [
62
- a.value === !0 ? (r(), N(l(T), {
59
+ default: s(() => [
60
+ r(l($), { class: "uikit-flex" }, {
61
+ default: s(() => [
62
+ a.value === !0 ? (n(), M(l(T), {
63
63
  key: 0,
64
64
  "fill-color": "#fff",
65
65
  width: 12,
66
66
  height: 14
67
- })) : j("", !0)
67
+ })) : N("", !0)
68
68
  ]),
69
69
  _: 1
70
70
  })
71
71
  ]),
72
72
  _: 1
73
73
  }, 8, ["model-value", "data-cy", "disabled", "class"]),
74
- E(t.$slots, "label", {}, () => [
74
+ j(t.$slots, "label", {}, () => [
75
75
  z(S(e.label), 1)
76
76
  ])
77
77
  ], 512));