@wikicasa-dev/components 2.2.9-alpha.49 → 2.2.9-alpha.5

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 (38) hide show
  1. package/dist/Swiper/autoplay.js +1 -1
  2. package/dist/Swiper/controller.js +1 -1
  3. package/dist/Swiper/keyboard.js +1 -1
  4. package/dist/Swiper/thumbs.js +1 -1
  5. package/dist/UIKit/AccessibleSelect.d.ts +4 -4
  6. package/dist/UIKit/AccessibleSelect.js +2 -3
  7. package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +3 -9
  8. package/dist/UIKit/BaseAutocomplete.d.ts +4 -4
  9. package/dist/UIKit/BaseButton.d.ts +8 -14
  10. package/dist/UIKit/BaseCard.js +3 -1
  11. package/dist/UIKit/BaseDropDown.d.ts +11 -17
  12. package/dist/UIKit/BaseFloatingLabel.js +4 -4
  13. package/dist/UIKit/BaseInput.d.ts +2 -3
  14. package/dist/UIKit/BaseInput.js +1 -1
  15. package/dist/UIKit/BaseTextarea.d.ts +2 -2
  16. package/dist/assets/BaseCard.css +1 -1
  17. package/dist/assets/BaseDropDown.css +1 -1
  18. package/dist/assets/BaseFloatingLabel.css +1 -1
  19. package/dist/assets/BaseInput.css +1 -1
  20. package/dist/assets/tailwind.css +1 -1
  21. package/dist/index.js +83 -85
  22. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +157 -151
  23. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +6 -4
  24. package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +103 -124
  25. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +36 -36
  26. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +24 -28
  27. package/dist/packages/components/lib/UIKit/BaseCard.vue.js +13 -13
  28. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +105 -102
  29. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +8 -8
  30. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +73 -74
  31. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +36 -42
  32. package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +17 -18
  33. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +24 -22
  34. package/package.json +5 -6
  35. package/dist/assets/AccessibleSelect.css +0 -1
  36. package/dist/composables/mock.d.ts +0 -25
  37. package/dist/composables/mock.js +0 -49
  38. /package/dist/assets/{swiper-thumbs.css → swiper-controller.css} +0 -0
@@ -1,192 +1,171 @@
1
- import { defineComponent as j, mergeModels as U, useModel as S, useId as q, useTemplateRef as d, shallowRef as c, onBeforeMount as G, onMounted as J, onUnmounted as Q, watch as E, nextTick as Y, createBlock as z, openBlock as M, withCtx as W, createElementBlock as Z, Fragment as _, renderList as ee, renderSlot as m, createElementVNode as s, normalizeClass as f, withDirectives as I, unref as te, vModelText as le, toDisplayString as ne, withModifiers as oe, normalizeStyle as ae, createTextVNode as ie, vShow as ue } from "vue";
2
- import se from "../BaseDropDown.vue.js";
1
+ import { defineComponent as L, mergeModels as M, useModel as V, useTemplateRef as m, shallowRef as p, onBeforeMount as W, watch as b, nextTick as I, createBlock as F, openBlock as C, withCtx as y, createElementBlock as N, Fragment as A, renderList as H, renderSlot as f, createElementVNode as u, normalizeClass as v, withDirectives as $, vModelText as G, toDisplayString as P, withModifiers as X, normalizeStyle as j, createTextVNode as q, vShow as J } from "vue";
2
+ import Q from "../BaseDropDown.vue.js";
3
3
  import '../../../../../assets/BaseDropDown.css';/* empty css */
4
- import re from "../BaseSelect/SelectItem.vue.js";
5
- import { debounce as de } from "@wikicasa-dev/utilities";
6
- const ce = ["id", "data-cy", "placeholder"], fe = ["innerHTML"], ye = /* @__PURE__ */ j({
4
+ import Y from "../BaseSelect/SelectItem.vue.js";
5
+ import { debounce as Z } from "@wikicasa-dev/utilities";
6
+ const _ = ["readonly", "placeholder"], ee = ["innerHTML"], ue = /* @__PURE__ */ L({
7
7
  __name: "ClearableAutocomplete",
8
- props: /* @__PURE__ */ U({
8
+ props: /* @__PURE__ */ M({
9
9
  dataCy: {},
10
10
  placeholder: {},
11
11
  enableKeyboardController: { type: Boolean, default: !0 },
12
12
  triggerWrapperClasses: {},
13
13
  inputWrapperClasses: {},
14
14
  inputClasses: {},
15
- hiddenTextClasses: {},
16
15
  dropdownClasses: {},
17
16
  clearButton: {},
18
17
  keepState: {},
19
- disableCb: { type: Boolean, default: !1 },
20
18
  onInputChangeCb: { type: Function },
21
19
  onOptionSelectedCb: { type: [Function, null] }
22
20
  }, {
23
21
  open: { type: Boolean, default: !1 },
24
22
  openModifiers: {},
25
23
  modelValue: { default: null },
26
- modelModifiers: {},
27
- inputValue: {
28
- default: ""
29
- },
30
- inputValueModifiers: {}
24
+ modelModifiers: {}
31
25
  }),
32
- emits: /* @__PURE__ */ U(["input", "click", "inputClick", "keydown"], ["update:open", "update:modelValue", "update:inputValue"]),
33
- setup(t, { expose: L, emit: D }) {
34
- const r = S(t, "open"), u = S(t, "modelValue"), o = S(t, "inputValue");
35
- o.value = o.value ?? u.value?.label ?? "";
36
- const p = D, K = q(), C = d("inputRef"), v = c(0), y = c(!1), k = c(!!u.value?.label), x = c(null), a = c([]), O = d("dropdownRef"), h = d("hiddenSpan"), w = d("inputWrapperRef"), R = d("clearButtonRef"), N = () => {
37
- o.value = "", u.value = null, k.value = !1;
38
- }, A = async (l) => {
39
- if (!l) {
40
- a.value = [], r.value = !1;
26
+ emits: /* @__PURE__ */ M(["click", "inputClick", "update:inputValue", "keydown"], ["update:open", "update:modelValue"]),
27
+ setup(o, { expose: E, emit: O }) {
28
+ const s = V(o, "open"), a = V(o, "modelValue"), r = O, w = m("inputRef"), n = p(a.value?.label || ""), c = p(0), k = p(!1), g = p(null), i = p([]), h = m("dropdownRef"), S = m("hiddenSpan"), R = () => {
29
+ n.value = "", a.value = null, r("update:inputValue", "");
30
+ }, U = async (t) => {
31
+ if (r("update:inputValue", t), !t) {
32
+ i.value = [], s.value = !1;
41
33
  return;
42
34
  }
43
- t.disableCb || (a.value = await x.value?.(l) || [], y.value = !0, r.value = !!a.value.length);
44
- }, F = (l = -1) => {
45
- const e = a.value[l];
46
- !e || e.id === u.value?.id || (t.onOptionSelectedCb?.(e), o.value = e.label, r.value = !1, u.value = e, k.value = !0, a.value = []);
47
- }, P = () => {
48
- C.value?.select();
49
- }, H = () => {
50
- C.value?.focus();
35
+ i.value = await g.value?.(t) || [], k.value = !0, s.value = !!i.value.length;
36
+ }, T = (t = -1) => {
37
+ const e = i.value[t];
38
+ !e || e.id === a.value?.id || (o.onOptionSelectedCb?.(e), n.value = e.label, s.value = !1, a.value = e, i.value = []);
39
+ }, x = () => {
40
+ w.value?.select();
41
+ }, z = () => {
42
+ w.value?.focus();
51
43
  };
52
- let B = null;
53
- const $ = () => {
54
- const l = h.value, e = w.value, n = R.value;
55
- if (!l || !e) return;
56
- const T = l.offsetWidth, b = e.offsetWidth, i = t.clearButton?.offset || 0, g = t.clearButton?.width || n?.offsetWidth || 0, X = b - i - g, V = Math.min(T, X);
57
- V !== v.value && (v.value = V);
58
- };
59
- return G(() => {
60
- x.value = de({ delay: 300 }, t.onInputChangeCb);
61
- }), J(() => {
62
- w.value && (B = new ResizeObserver(() => {
63
- $();
64
- }), B.observe(w.value));
65
- }), Q(() => {
66
- B?.disconnect();
67
- }), E([o, h, R], () => {
68
- Y($);
69
- }), E(
70
- () => O.value?.selectedIdx,
71
- (l) => {
72
- const e = l ?? -1;
73
- e !== -1 && F(e);
44
+ return W(() => {
45
+ g.value = Z({ delay: 300 }, o.onInputChangeCb);
46
+ }), b(
47
+ [n, () => S.value],
48
+ ([t, e]) => {
49
+ e && I(() => {
50
+ if (!e) return;
51
+ const l = e.offsetWidth;
52
+ l !== c.value && (console.log("DEBUG:updating icon positioning", {
53
+ curInputValue: t
54
+ }), c.value = l);
55
+ });
56
+ },
57
+ { immediate: !0 }
58
+ ), b(
59
+ () => h.value?.selectedIdx,
60
+ (t) => {
61
+ const e = t ?? -1;
62
+ e !== -1 && T(e);
74
63
  }
75
- ), E(
76
- u,
77
- (l, e) => {
78
- l === e || l?.label === o.value || (o.value = l?.label || "");
64
+ ), b(
65
+ a,
66
+ (t, e) => {
67
+ t === e || t?.label === n.value || (n.value = t?.label || "");
79
68
  },
80
69
  { immediate: !0 }
81
- ), L({
82
- getRootElement: () => O.value?.getRootElement(),
83
- select: P,
84
- focus: H
85
- }), (l, e) => (M(), z(se, {
70
+ ), E({
71
+ getRootElement: () => h.value?.getRootElement(),
72
+ select: x,
73
+ focus: z
74
+ }), (t, e) => (C(), F(Q, {
86
75
  ref: "dropdownRef",
87
76
  class: "uikit-clearable-autocomplete",
88
- "data-cy": t.dataCy,
77
+ "data-cy": o.dataCy,
89
78
  "dropdown-element": "ul",
90
- "dropdown-classes": ["uikit-z-30", t.dropdownClasses],
91
- "keep-state": !a.value.length || t.keepState === "closed" ? "closed" : "opened",
92
- "activate-keyboard-controller": t.enableKeyboardController,
93
- "reset-keyboard-controller": y.value,
94
- "onUpdate:resetKeyboardController": e[5] || (e[5] = (n) => y.value = n),
95
- open: r.value,
96
- "onUpdate:open": e[6] || (e[6] = (n) => r.value = n)
79
+ "dropdown-classes": ["uikit-z-30", o.dropdownClasses],
80
+ "open-dropdown": s.value,
81
+ "keep-state": !i.value.length || o.keepState === "closed" ? "closed" : "opened",
82
+ "activate-keyboard-controller": o.enableKeyboardController,
83
+ "reset-keyboard-controller": k.value,
84
+ "onUpdate:resetKeyboardController": e[4] || (e[4] = (l) => k.value = l),
85
+ "onUpdate:dropdownState": e[5] || (e[5] = (l) => s.value = l)
97
86
  }, {
98
- btn_slot: W(() => [
99
- s("div", {
100
- class: f(["uikit-text-16", t.triggerWrapperClasses]),
101
- onClick: e[4] || (e[4] = (n) => p("click", n))
87
+ btn_slot: y(() => [
88
+ u("div", {
89
+ class: v(["uikit-text-16", o.triggerWrapperClasses]),
90
+ onClick: e[3] || (e[3] = (l) => r("click", l))
102
91
  }, [
103
- m(l.$slots, "left-icon"),
104
- s("div", {
105
- ref: "inputWrapperRef",
106
- class: f(["uikit-relative", t.inputWrapperClasses])
92
+ f(t.$slots, "left-icon"),
93
+ u("div", {
94
+ class: v(["uikit-relative", o.inputWrapperClasses])
107
95
  }, [
108
- I(s("input", {
96
+ $(u("input", {
109
97
  ref: "inputRef",
110
98
  "onUpdate:modelValue": [
111
- e[0] || (e[0] = (n) => o.value = n),
112
- A
99
+ e[0] || (e[0] = (l) => n.value = l),
100
+ U
113
101
  ],
114
- id: te(K),
115
- "data-cy": t.dataCy ? `ac_input_${t.dataCy}` : "",
102
+ readonly: !!a.value?.label,
116
103
  type: "text",
117
104
  autocomplete: "off",
118
- class: f(["uikit-w-full uikit-border-none focus-visible:uikit-outline-none", t.inputClasses]),
105
+ class: v(["uikit-w-full uikit-border-none focus-visible:uikit-outline-none", o.inputClasses]),
119
106
  style: {
120
107
  font: "inherit",
121
108
  fontSize: "inherit"
122
109
  },
123
- placeholder: t.placeholder,
124
- onKeydown: e[1] || (e[1] = (n) => p("keydown", n)),
125
- onInput: e[2] || (e[2] = (n) => {
126
- p("input", n), k.value = !1;
127
- }),
128
- onClick: e[3] || (e[3] = (n) => {
129
- p("inputClick", n), C.value?.select();
130
- })
131
- }, null, 42, ce), [
132
- [le, o.value]
110
+ placeholder: o.placeholder,
111
+ onKeydown: e[1] || (e[1] = (l) => r("keydown", l)),
112
+ onClick: e[2] || (e[2] = (l) => r("inputClick", l))
113
+ }, null, 42, _), [
114
+ [G, n.value]
133
115
  ]),
134
- s("span", {
116
+ u("span", {
135
117
  ref_key: "hiddenSpan",
136
- ref: h,
137
- class: f(["uikit-invisible uikit-absolute uikit-left-0 uikit-top-0 uikit-whitespace-pre", t.hiddenTextClasses]),
118
+ ref: S,
119
+ class: "uikit-invisible uikit-absolute uikit-left-0 uikit-top-0 uikit-whitespace-pre",
138
120
  style: {
139
121
  font: "inherit",
140
122
  fontSize: "inherit"
141
123
  }
142
- }, ne(o.value), 3),
143
- I(s("button", {
144
- ref: "clearButtonRef",
124
+ }, P(n.value), 513),
125
+ $(u("button", {
145
126
  type: "button",
146
- class: f(["uikit-clear-btn uikit-absolute uikit-top-1/2 -uikit-translate-y-1/2 uikit-appearance-none", t.clearButton?.classes]),
127
+ class: v(["uikit-clear-btn uikit-absolute uikit-top-1/2 -uikit-translate-y-1/2 uikit-appearance-none", o.clearButton?.classes]),
147
128
  "aria-label": "Clear input",
148
- style: ae({
149
- left: `${v.value + (t.clearButton?.offset || 0)}px`,
150
- width: t.clearButton?.width ? `${t.clearButton.width}px` : "auto",
151
- height: t.clearButton?.height ? `${t.clearButton.height}px` : "auto"
129
+ style: j({
130
+ left: `${c.value + (o.clearButton?.offset || 10)}px`
152
131
  }),
153
- onClick: oe(N, ["stop"])
132
+ onClick: X(R, ["stop"])
154
133
  }, [
155
- m(l.$slots, "clear-icon", {}, () => [
156
- e[7] || (e[7] = ie("X", -1))
134
+ f(t.$slots, "clear-icon", {}, () => [
135
+ e[6] || (e[6] = q("X", -1))
157
136
  ])
158
137
  ], 6), [
159
- [ue, k.value && v.value]
138
+ [J, a.value?.label && c.value]
160
139
  ])
161
140
  ], 2),
162
- m(l.$slots, "right-icon")
141
+ f(t.$slots, "right-icon")
163
142
  ], 2)
164
143
  ]),
165
- default: W(({ activeIdx: n, setActiveIdx: T }) => [
166
- (M(!0), Z(_, null, ee(a.value, (b, i) => (M(), z(re, {
167
- key: i,
168
- active: n === i,
144
+ default: y(({ activeIdx: l, setActiveIdx: D }) => [
145
+ (C(!0), N(A, null, H(i.value, (B, d) => (C(), F(Y, {
146
+ key: d,
147
+ active: l === d,
169
148
  class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
170
- onClick: (g) => F(i),
171
- onMouseover: (g) => T(i)
149
+ onClick: (K) => T(d),
150
+ onMouseover: (K) => D(d)
172
151
  }, {
173
- default: W(() => [
174
- m(l.$slots, "option-content", {
175
- option: b,
176
- idx: i
152
+ default: y(() => [
153
+ f(t.$slots, "option-content", {
154
+ option: B,
155
+ idx: d
177
156
  }, () => [
178
- s("span", {
179
- innerHTML: b.label
180
- }, null, 8, fe)
157
+ u("span", {
158
+ innerHTML: B.label
159
+ }, null, 8, ee)
181
160
  ])
182
161
  ]),
183
162
  _: 2
184
163
  }, 1032, ["active", "onClick", "onMouseover"]))), 128))
185
164
  ]),
186
165
  _: 3
187
- }, 8, ["data-cy", "dropdown-classes", "keep-state", "activate-keyboard-controller", "reset-keyboard-controller", "open"]));
166
+ }, 8, ["data-cy", "dropdown-classes", "open-dropdown", "keep-state", "activate-keyboard-controller", "reset-keyboard-controller"]));
188
167
  }
189
168
  });
190
169
  export {
191
- ye as default
170
+ ue as default
192
171
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as x, mergeModels as $, useModel as F, shallowRef as d, computed as k, onBeforeMount as L, watch as f, createBlock as g, openBlock as w, normalizeClass as H, withCtx as c, createElementBlock as K, Fragment as T, renderList as z, unref as N, renderSlot as p, createElementVNode as U, createVNode as A } from "vue";
2
- import R from "../../../../UIKit/BaseInput.js";
3
- import W from "./BaseDropDown.vue.js";
1
+ import { defineComponent as x, mergeModels as $, useModel as F, ref as d, computed as k, onBeforeMount as L, watch as f, createBlock as g, openBlock as w, normalizeClass as H, withCtx as c, createElementBlock as K, Fragment as T, renderList as z, unref as N, renderSlot as p, createElementVNode as U, createVNode as A } from "vue";
2
+ import W from "../../../../UIKit/BaseInput.js";
3
+ import j from "./BaseDropDown.vue.js";
4
4
  import '../../../../assets/BaseDropDown.css';/* empty css */
5
- import { debounce as j } from "@wikicasa-dev/utilities";
6
- import q from "./BaseSelect/SelectItem.vue.js";
7
- import { useKeyboardController as G } from "@wikicasa-dev/vue-composables";
8
- const J = ["innerHTML"], ne = /* @__PURE__ */ x({
5
+ import { debounce as q } from "@wikicasa-dev/utilities";
6
+ import G from "./BaseSelect/SelectItem.vue.js";
7
+ import { useKeyboardController as J } from "@wikicasa-dev/vue-composables";
8
+ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
9
9
  __name: "BaseAutocomplete",
10
10
  props: /* @__PURE__ */ $({
11
11
  isValid: { type: [Boolean, null], default: null },
@@ -30,13 +30,13 @@ const J = ["innerHTML"], ne = /* @__PURE__ */ x({
30
30
  modelModifiers: {}
31
31
  }),
32
32
  emits: /* @__PURE__ */ $(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
33
- setup(t, { expose: V, emit: B }) {
34
- const u = F(t, "modelValue"), r = B, i = d(""), o = d([]), v = d(null), b = d(!1), n = d(!1), C = d(null), S = k(() => o.value.length);
33
+ setup(t, { expose: S, emit: V }) {
34
+ const u = F(t, "modelValue"), r = V, i = d(""), a = d([]), v = d(null), b = d(!1), n = d(!1), C = d(null), B = k(() => a.value.length);
35
35
  L(() => {
36
- v.value = j({ delay: 300 }, t.onInputChangeCb);
36
+ v.value = q({ delay: 300 }, t.onInputChangeCb);
37
37
  });
38
- const { activeIdx: m, selectedIdx: h } = G({
39
- optionsLength: S,
38
+ const { activeIdx: m, selectedIdx: h } = J({
39
+ optionsLength: B,
40
40
  isDropdownOpen: n,
41
41
  disableSpaceHandler: !0
42
42
  }), O = k(() => {
@@ -76,15 +76,15 @@ const J = ["innerHTML"], ne = /* @__PURE__ */ x({
76
76
  }), D = async (e) => {
77
77
  if (i.value !== e && (r("changedValue", e), i.value = e, !!t.onInputChangeCb)) {
78
78
  if (!e || b.value) {
79
- o.value = [], b.value = !1, h.value = -1, m.value = -1, u.value && (u.value.label = ""), n.value = !1, await v.value?.(null);
79
+ a.value = [], b.value = !1, h.value = -1, m.value = -1, u.value && (u.value.label = ""), n.value = !1, await v.value(null);
80
80
  return;
81
81
  }
82
- t.disableCb || (o.value = await v.value?.(e) || [], n.value = !!o.value.length);
82
+ t.disableCb || (a.value = await v.value(e), n.value = !!a.value.length);
83
83
  }
84
84
  }, y = (e, l) => {
85
- t.onOptionSelectedCb && t.onOptionSelectedCb(e), t.cleanupOnClose && (o.value = []), b.value = !0, i.value = e.label, u.value = e, n.value = !1, h.value = l;
85
+ t.onOptionSelectedCb && t.onOptionSelectedCb(e), t.cleanupOnClose && (a.value = []), b.value = !0, i.value = e.label, u.value = e, n.value = !1, h.value = l;
86
86
  }, E = () => {
87
- o.value.length && t.keepState !== "closed" && (n.value = !0);
87
+ a.value.length && t.keepState !== "closed" && (n.value = !0);
88
88
  };
89
89
  return f(
90
90
  u,
@@ -93,21 +93,21 @@ const J = ["innerHTML"], ne = /* @__PURE__ */ x({
93
93
  },
94
94
  { immediate: !0 }
95
95
  ), f(h, (e) => {
96
- if (e === -1 || !o.value.length) return;
97
- const l = o.value[e];
96
+ if (e === -1 || !a.value.length) return;
97
+ const l = a.value[e];
98
98
  b.value && l.label === u.value?.label || y(l, e);
99
99
  }), f(
100
100
  () => t.keepState,
101
101
  (e) => {
102
- e === "closed" ? (n.value = !1, t.cleanupOnClose && (o.value = [])) : e === "open" && o.value.length && (n.value = !0);
102
+ e === "closed" ? (n.value = !1, t.cleanupOnClose && (a.value = [])) : e === "open" && a.value.length && (n.value = !0);
103
103
  }
104
104
  ), f(n, (e) => {
105
105
  r("update:dropdownState", e);
106
- }), V({
106
+ }), S({
107
107
  select: () => {
108
108
  C.value?.select();
109
109
  }
110
- }), (e, l) => (w(), g(W, {
110
+ }), (e, l) => (w(), g(j, {
111
111
  class: H(["uikit-autocomplete", e.$attrs["root-classes"]]),
112
112
  "data-cy": t.dataCy ? t.dataCy : `ac_${e.$attrs.id}`,
113
113
  "dropdown-element": "ul",
@@ -122,17 +122,17 @@ const J = ["innerHTML"], ne = /* @__PURE__ */ x({
122
122
  "uikit-z-30",
123
123
  t.dropdownClasses
124
124
  ],
125
- open: n.value,
126
- "keep-state": !o.value.length || t.keepState === "closed" ? "closed" : "opened",
125
+ "open-dropdown": n.value,
126
+ "keep-state": !a.value.length || t.keepState === "closed" ? "closed" : "opened",
127
127
  "close-when-clicked-outside": t.closeDropdownOnBodyPressed,
128
128
  "activate-keyboard-controller": !1,
129
- "onUpdate:open": l[3] || (l[3] = (a) => n.value = a),
130
- onClick: l[4] || (l[4] = (a) => {
129
+ "onUpdate:dropdownState": l[3] || (l[3] = (o) => n.value = o),
130
+ onClick: l[4] || (l[4] = (o) => {
131
131
  r("click"), E();
132
132
  })
133
133
  }, {
134
134
  btn_slot: c(() => [
135
- A(R, {
135
+ A(W, {
136
136
  id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
137
137
  ref_key: "baseInput",
138
138
  ref: C,
@@ -150,42 +150,42 @@ const J = ["innerHTML"], ne = /* @__PURE__ */ x({
150
150
  "!uikit-ml-0 !uikit-w-full"
151
151
  ],
152
152
  "fieldset-classes": [I.value, t.fieldsetClasses],
153
- "onUpdate:modelValue": l[0] || (l[0] = (a) => D(a === void 0 ? "" : `${a}`)),
154
- onKeydown: l[1] || (l[1] = (a) => r("keydown", a)),
153
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => D(o === void 0 ? "" : `${o}`)),
154
+ onKeydown: l[1] || (l[1] = (o) => r("keydown", o)),
155
155
  onKeydownEnterPressed: l[2] || (l[2] = () => r("keydownEnterPressed"))
156
156
  }, {
157
157
  leftIcon: c(() => [
158
158
  p(e.$slots, "lefticon")
159
159
  ]),
160
- righticon: c(({ handleClean: a }) => [
161
- p(e.$slots, "righticon", { handleClean: a })
160
+ righticon: c(({ handleClean: o }) => [
161
+ p(e.$slots, "righticon", { handleClean: o })
162
162
  ]),
163
163
  _: 3
164
164
  }, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
165
165
  ]),
166
166
  default: c(() => [
167
- (w(!0), K(T, null, z(o.value, (a, s) => (w(), g(q, {
167
+ (w(!0), K(T, null, z(a.value, (o, s) => (w(), g(G, {
168
168
  key: s,
169
169
  active: N(m) === s,
170
170
  class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
171
- onClick: (P) => y(a, s),
171
+ onClick: (P) => y(o, s),
172
172
  onMouseover: (P) => m.value = s
173
173
  }, {
174
174
  default: c(() => [
175
175
  p(e.$slots, "option-content", {
176
- option: a,
176
+ option: o,
177
177
  idx: s
178
178
  }, () => [
179
179
  U("span", {
180
- innerHTML: a.label
181
- }, null, 8, J)
180
+ innerHTML: o.label
181
+ }, null, 8, Q)
182
182
  ])
183
183
  ]),
184
184
  _: 2
185
185
  }, 1032, ["active", "onClick", "onMouseover"]))), 128))
186
186
  ]),
187
187
  _: 3
188
- }, 8, ["class", "data-cy", "dropdown-classes", "open", "keep-state", "close-when-clicked-outside"]));
188
+ }, 8, ["class", "data-cy", "dropdown-classes", "open-dropdown", "keep-state", "close-when-clicked-outside"]));
189
189
  }
190
190
  });
191
191
  export {
@@ -1,6 +1,6 @@
1
- import { defineComponent as v, useTemplateRef as c, shallowRef as B, computed as l, createElementBlock as C, openBlock as w, withModifiers as s, normalizeStyle as M, normalizeClass as z, renderSlot as u, createVNode as L } from "vue";
2
- import g from "../../../../UIKit/StaticSpinner.js";
3
- const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], A = /* @__PURE__ */ v({
1
+ import { defineComponent as c, ref as b, computed as l, createElementBlock as f, openBlock as v, withModifiers as s, normalizeStyle as B, normalizeClass as C, renderSlot as u, createVNode as M } from "vue";
2
+ import z from "../../../../UIKit/StaticSpinner.js";
3
+ const L = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], $ = /* @__PURE__ */ c({
4
4
  __name: "BaseButton",
5
5
  props: {
6
6
  btnClass: { default: "uikit-btn-w-primary" },
@@ -15,21 +15,18 @@ const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
15
15
  dataCy: {},
16
16
  type: {}
17
17
  },
18
- emits: ["mouseover", "mouseout", "click", "keydown"],
19
- setup(e, { expose: d, emit: r }) {
20
- const o = r, m = c("buttonEl"), a = B(!1), y = l(() => e.size ? `uikit-btn-${e.size}` : ""), k = l(() => e.outlined ? "uikit-btn-outline" : ""), b = () => {
21
- a.value = !0;
22
- }, f = () => {
23
- a.value = !1;
18
+ emits: ["mouseover", "mouseout", "click"],
19
+ setup(e, { emit: d }) {
20
+ const o = d, n = b(!1), r = l(() => e.size ? `uikit-btn-${e.size}` : ""), m = l(() => e.outlined ? "uikit-btn-outline" : ""), k = () => {
21
+ n.value = !0;
22
+ }, y = () => {
23
+ n.value = !1;
24
24
  };
25
- return d({
26
- getRootElement: () => m.value
27
- }), (n, t) => (w(), C("button", {
28
- ref: "buttonEl",
29
- id: n.$attrs.id,
25
+ return (a, t) => (v(), f("button", {
26
+ id: a.$attrs.id,
30
27
  "data-cy": e.dataCy,
31
28
  type: e.type,
32
- class: z([
29
+ class: C([
33
30
  "uikit-btn",
34
31
  {
35
32
  "uikit-btn-empty": !e.withMinWidth,
@@ -37,34 +34,33 @@ const S = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
37
34
  "uikit-flex uikit-items-center uikit-justify-center": e.isLoading
38
35
  },
39
36
  e.btnClass,
40
- y.value,
41
- k.value
37
+ r.value,
38
+ m.value
42
39
  ]),
43
- style: M(n.$attrs.style),
40
+ style: B(a.$attrs.style),
44
41
  "data-active": e.keepActive,
45
42
  disabled: e.isLoading || e.disabled,
46
43
  "aria-label": e.ariaLabel,
47
44
  title: e.title,
48
45
  onMouseover: t[0] || (t[0] = s((i) => {
49
- b(), o("mouseover", i);
46
+ k(), o("mouseover", i);
50
47
  }, ["stop"])),
51
48
  onMouseout: t[1] || (t[1] = s((i) => {
52
- f(), o("mouseout", i);
49
+ y(), o("mouseout", i);
53
50
  }, ["stop"])),
54
- onClick: t[2] || (t[2] = (i) => o("click", i)),
55
- onKeydown: t[3] || (t[3] = (i) => o("keydown", i))
51
+ onClick: t[2] || (t[2] = (i) => o("click", i))
56
52
  }, [
57
- e.isLoading ? u(n.$slots, "spinner", { key: 1 }, () => [
58
- L(g, {
53
+ e.isLoading ? u(a.$slots, "spinner", { key: 1 }, () => [
54
+ M(z, {
59
55
  "stroke-color": e.outlined ? "#ACB4C3" : "#fff"
60
56
  }, null, 8, ["stroke-color"])
61
- ]) : u(n.$slots, "default", {
57
+ ]) : u(a.$slots, "default", {
62
58
  key: 0,
63
- hover: a.value
59
+ hover: n.value
64
60
  })
65
- ], 46, S));
61
+ ], 46, L));
66
62
  }
67
63
  });
68
64
  export {
69
- A as default
65
+ $ as default
70
66
  };
@@ -1,5 +1,5 @@
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";
2
- const p = /* @__PURE__ */ C({
1
+ import { defineComponent as u, computed as d, createBlock as C, openBlock as y, resolveDynamicComponent as f, normalizeClass as a, withCtx as v, createElementVNode as o, renderSlot as c } from "vue";
2
+ const p = /* @__PURE__ */ u({
3
3
  __name: "BaseCard",
4
4
  props: {
5
5
  type: { default: "" },
@@ -8,24 +8,24 @@ const p = /* @__PURE__ */ C({
8
8
  cardBodyClasses: { default: "" }
9
9
  },
10
10
  emits: ["click"],
11
- setup(e, { emit: o }) {
12
- const n = o, r = c(
11
+ setup(e, { emit: l }) {
12
+ const n = l, r = d(
13
13
  () => e.type === "news" ? "news-card" : e.type
14
- ), i = c(() => e.type ? `${e.type}-img` : "");
15
- return (s, t) => (y(), u(f(e.rootComponent), {
16
- class: a(["uikit-card", [r.value]]),
17
- onClick: t[0] || (t[0] = (m) => n("click", m))
14
+ ), i = d(() => e.type ? `${e.type}-img` : "");
15
+ return (t, s) => (y(), C(f(e.rootComponent), {
16
+ class: a(["card", [r.value]]),
17
+ onClick: s[0] || (s[0] = (m) => n("click", m))
18
18
  }, {
19
- default: g(() => [
20
- d("div", {
19
+ default: v(() => [
20
+ o("div", {
21
21
  class: a(["card-img", [i.value, e.cardImgClasses]])
22
22
  }, [
23
- l(s.$slots, "card-image")
23
+ c(t.$slots, "card-image", {}, void 0, !0)
24
24
  ], 2),
25
- d("div", {
25
+ o("div", {
26
26
  class: a(["card-body", [e.cardBodyClasses]])
27
27
  }, [
28
- l(s.$slots, "card-description")
28
+ c(t.$slots, "card-description", {}, void 0, !0)
29
29
  ], 2)
30
30
  ]),
31
31
  _: 3