@robuust-digital/vue-components 2.2.1 → 2.3.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 (31) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/_shared/{ButtonBase.vue_vue_type_script_setup_true_lang-DeflHqux.js → ButtonBase.vue_vue_type_script_setup_true_lang-BLm8QzEC.js} +23 -23
  3. package/dist/_shared/{ChevronDownIcon-DaaXfD3C.js → ChevronDownIcon-CcE_K1lg.js} +12 -12
  4. package/dist/_shared/Combobox.vue_vue_type_script_setup_true_lang-CxRv55TC.js +256 -0
  5. package/dist/_shared/{Drawer.vue_vue_type_script_setup_true_lang-CD5914Fk.js → Drawer.vue_vue_type_script_setup_true_lang-XMND_Yzl.js} +62 -62
  6. package/dist/_shared/Dropdown.vue_vue_type_script_setup_true_lang-BtkiBqxy.js +115 -0
  7. package/dist/_shared/FormInput.vue_vue_type_script_setup_true_lang-C_1WSzbH.js +74 -0
  8. package/dist/_shared/{Modal.vue_vue_type_script_setup_true_lang-CoHkAJj3.js → Modal.vue_vue_type_script_setup_true_lang-2AljJgxw.js} +68 -71
  9. package/dist/_shared/{RichTextEditor.vue_vue_type_script_setup_true_lang-CIVhqJtE.js → RichTextEditor.vue_vue_type_script_setup_true_lang-BLs_S_-D.js} +102 -133
  10. package/dist/_shared/Tabs.vue_vue_type_script_setup_true_lang-DMUJ5Emt.js +670 -0
  11. package/dist/_shared/Toast.vue_vue_type_script_setup_true_lang-BfMkJm5T.js +78 -0
  12. package/dist/_shared/Tooltip.vue_vue_type_script_setup_true_lang-CKp1wzE2.js +95 -0
  13. package/dist/combobox/index.js +1 -1
  14. package/dist/core/checkbox.css +10 -5
  15. package/dist/core/index.js +4 -4
  16. package/dist/core/radio.css +11 -6
  17. package/dist/core.d.ts +2 -2
  18. package/dist/dialogs/index.js +2 -2
  19. package/dist/dropdown/index.js +1 -1
  20. package/dist/index/index.js +11 -11
  21. package/dist/index.d.ts +2 -2
  22. package/dist/rich-text-editor/index.js +1 -1
  23. package/dist/toast/index.js +1 -1
  24. package/dist/tooltip/index.js +1 -1
  25. package/package.json +19 -19
  26. package/dist/_shared/Combobox.vue_vue_type_script_setup_true_lang-CP3x2DUA.js +0 -266
  27. package/dist/_shared/Dropdown.vue_vue_type_script_setup_true_lang-CmYj-7WQ.js +0 -115
  28. package/dist/_shared/FormInput.vue_vue_type_script_setup_true_lang-BhJpG-Fw.js +0 -75
  29. package/dist/_shared/Tabs.vue_vue_type_script_setup_true_lang-DnzOq9GZ.js +0 -679
  30. package/dist/_shared/Toast.vue_vue_type_script_setup_true_lang-Be3i_0zE.js +0 -78
  31. package/dist/_shared/Tooltip.vue_vue_type_script_setup_true_lang-CoydN9sS.js +0 -96
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 2.3.0 (31-10-2025)
2
+
3
+ ### Changed
4
+
5
+ * Refactor `Checkbox` and `Radio` input structure and styles
6
+ * Improved accessibility for `Checkbox` and `Radio` components
7
+ * Improve `Checkbox` and `Radio` input layout styles
8
+ * Update `Checkbox` and `Radio` prop documentation
9
+
10
+ ### Deprecated
11
+
12
+ * `Checkbox` and `Radio` `<slot name="input">` slot
13
+
1
14
  ## 2.2.1 (15-10-2025)
2
15
 
3
16
  ### Changed
@@ -1,9 +1,9 @@
1
- import { defineComponent as b, watchEffect as p, createBlock as l, openBlock as e, resolveDynamicComponent as s, mergeProps as c, withCtx as d, createElementBlock as f, renderSlot as o, createCommentVNode as a, createTextVNode as t, toDisplayString as r, unref as y } from "vue";
2
- import { S as m } from "./icon-spinner-CP0VP_YM.js";
3
- const v = {
1
+ import { defineComponent as b, watchEffect as r, createBlock as a, openBlock as l, resolveDynamicComponent as c, mergeProps as d, withCtx as f, createElementBlock as y, renderSlot as t, createCommentVNode as i, createTextVNode as u, toDisplayString as s, unref as m } from "vue";
2
+ import { S as v } from "./icon-spinner-CP0VP_YM.js";
3
+ const g = {
4
4
  key: 0,
5
5
  class: "rvc-button-label"
6
- }, O = /* @__PURE__ */ b({
6
+ }, k = /* @__PURE__ */ b({
7
7
  __name: "ButtonBase",
8
8
  props: {
9
9
  as: { default: "button" },
@@ -16,39 +16,39 @@ const v = {
16
16
  spinning: { type: Boolean, default: !1 },
17
17
  color: { default: "primary" }
18
18
  },
19
- setup(u) {
20
- const i = u;
21
- return p(() => {
22
- i.iconOnly && !i.icon && console.warn("[ButtonBase] Using iconOnly prop without providing an icon may result in an empty button.");
23
- }), (n, g) => (e(), l(s(n.as), c(n.bindAs ? { as: n.bindAs } : {}, {
19
+ setup(n) {
20
+ const o = n;
21
+ return r(() => {
22
+ o.iconOnly && !o.icon && console.warn("[ButtonBase] Using iconOnly prop without providing an icon may result in an empty button.");
23
+ }), (e, B) => (l(), a(c(n.as), d(n.bindAs ? { as: n.bindAs } : {}, {
24
24
  class: ["rvc-button", `rvc-button-${n.color}`, `rvc-button-${n.size}`, { "rvc-button-reverse": n.iconLeft }, { "rvc-button-icon-only": n.iconOnly }],
25
25
  "aria-label": n.iconOnly ? n.label : null,
26
26
  "aria-busy": n.spinning
27
27
  }), {
28
- default: d(() => [
29
- n.iconOnly && n.label ? (e(), f("span", v, [
30
- o(n.$slots, "default", { label: n.label }, () => [
31
- t(r(n.label), 1)
28
+ default: f(() => [
29
+ n.iconOnly && n.label ? (l(), y("span", g, [
30
+ t(e.$slots, "default", { label: n.label }, () => [
31
+ u(s(n.label), 1)
32
32
  ])
33
- ])) : n.label ? o(n.$slots, "default", {
33
+ ])) : n.label ? t(e.$slots, "default", {
34
34
  key: 1,
35
35
  label: n.label
36
36
  }, () => [
37
- t(r(n.label), 1)
38
- ]) : a("", !0),
39
- o(n.$slots, "icon", { icon: n.icon }, () => [
40
- n.icon && !n.spinning ? (e(), l(s(n.icon), {
37
+ u(s(n.label), 1)
38
+ ]) : i("", !0),
39
+ t(e.$slots, "icon", { icon: n.icon }, () => [
40
+ n.icon && !n.spinning ? (l(), a(c(n.icon), {
41
41
  key: 0,
42
42
  class: "rvc-button-icon",
43
43
  "aria-hidden": !n.iconOnly
44
- }, null, 8, ["aria-hidden"])) : a("", !0)
44
+ }, null, 8, ["aria-hidden"])) : i("", !0)
45
45
  ]),
46
- o(n.$slots, "spinner", { spinning: n.spinning }, () => [
47
- n.spinning ? (e(), l(y(m), {
46
+ t(e.$slots, "spinner", { spinning: n.spinning }, () => [
47
+ n.spinning ? (l(), a(m(v), {
48
48
  key: 0,
49
49
  class: "rvc-button-icon rvc-button-icon-loading",
50
50
  "aria-hidden": "true"
51
- })) : a("", !0)
51
+ })) : i("", !0)
52
52
  ])
53
53
  ]),
54
54
  _: 3
@@ -56,5 +56,5 @@ const v = {
56
56
  }
57
57
  });
58
58
  export {
59
- O as _
59
+ k as _
60
60
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as r, createBlock as o, openBlock as a, resolveDynamicComponent as t, normalizeClass as n, withCtx as s, renderSlot as d, createTextVNode as c, toDisplayString as i, createElementBlock as u, createElementVNode as p } from "vue";
2
- const v = /* @__PURE__ */ r({
1
+ import { defineComponent as t, createBlock as r, openBlock as l, resolveDynamicComponent as o, normalizeClass as n, withCtx as c, renderSlot as d, createTextVNode as s, toDisplayString as i, createElementBlock as u, createElementVNode as f } from "vue";
2
+ const b = /* @__PURE__ */ t({
3
3
  __name: "Badge",
4
4
  props: {
5
5
  as: { default: "span" },
@@ -7,28 +7,28 @@ const v = /* @__PURE__ */ r({
7
7
  size: { default: "base" },
8
8
  color: { default: "default" }
9
9
  },
10
- setup(l) {
11
- return (e, f) => (a(), o(t(e.as), {
10
+ setup(e) {
11
+ return (a, m) => (l(), r(o(e.as), {
12
12
  class: n(["rvc-badge", `rvc-badge-${e.color}`, `rvc-badge-${e.size}`])
13
13
  }, {
14
- default: s(() => [
15
- d(e.$slots, "default", { label: e.label }, () => [
16
- c(i(e.label), 1)
14
+ default: c(() => [
15
+ d(a.$slots, "default", { label: e.label }, () => [
16
+ s(i(e.label), 1)
17
17
  ])
18
18
  ]),
19
19
  _: 3
20
20
  }, 8, ["class"]));
21
21
  }
22
22
  });
23
- function b(l, e) {
24
- return a(), u("svg", {
23
+ function g(e, a) {
24
+ return l(), u("svg", {
25
25
  xmlns: "http://www.w3.org/2000/svg",
26
26
  viewBox: "0 0 20 20",
27
27
  fill: "currentColor",
28
28
  "aria-hidden": "true",
29
29
  "data-slot": "icon"
30
30
  }, [
31
- p("path", {
31
+ f("path", {
32
32
  "fill-rule": "evenodd",
33
33
  d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
34
34
  "clip-rule": "evenodd"
@@ -36,6 +36,6 @@ function b(l, e) {
36
36
  ]);
37
37
  }
38
38
  export {
39
- v as _,
40
- b as r
39
+ b as _,
40
+ g as r
41
41
  };
@@ -0,0 +1,256 @@
1
+ import { createElementBlock as c, openBlock as n, createElementVNode as i, defineComponent as j, ref as h, computed as D, createBlock as x, unref as r, mergeProps as F, withCtx as g, createCommentVNode as p, renderSlot as m, createVNode as b, resolveDynamicComponent as O, withModifiers as P, Fragment as q, renderList as z, createTextVNode as U, toDisplayString as w, normalizeClass as G } from "vue";
2
+ import { useDebounceFn as H } from "@vueuse/core";
3
+ import { Combobox as J, ComboboxInput as Q, ComboboxButton as W, ComboboxOptions as X, ComboboxOption as Y } from "@headlessui/vue";
4
+ import { r as _, _ as ee } from "./ChevronDownIcon-CcE_K1lg.js";
5
+ import { S as te } from "./icon-spinner-CP0VP_YM.js";
6
+ function le(e, V) {
7
+ return n(), c("svg", {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor",
11
+ "aria-hidden": "true",
12
+ "data-slot": "icon"
13
+ }, [
14
+ i("path", {
15
+ "fill-rule": "evenodd",
16
+ d: "M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm2.78-4.22a.75.75 0 0 1-1.06 0L8 9.06l-1.72 1.72a.75.75 0 1 1-1.06-1.06L6.94 8 5.22 6.28a.75.75 0 0 1 1.06-1.06L8 6.94l1.72-1.72a.75.75 0 1 1 1.06 1.06L9.06 8l1.72 1.72a.75.75 0 0 1 0 1.06Z",
17
+ "clip-rule": "evenodd"
18
+ })
19
+ ]);
20
+ }
21
+ function oe(e, V) {
22
+ return n(), c("svg", {
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ viewBox: "0 0 20 20",
25
+ fill: "currentColor",
26
+ "aria-hidden": "true",
27
+ "data-slot": "icon"
28
+ }, [
29
+ i("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
30
+ ]);
31
+ }
32
+ const ae = { class: "rvc-combobox-container" }, ne = { class: "rvc-combobox-wrapper" }, ie = { class: "rvc-combobox-field" }, ue = {
33
+ key: 0,
34
+ class: "rvc-combobox-chips"
35
+ }, se = ["onClick"], re = {
36
+ key: 0,
37
+ class: "rvc-combobox-content"
38
+ }, ce = {
39
+ key: 1,
40
+ class: "rvc-combobox-content"
41
+ }, de = { class: "rvc-combobox-option-text" }, he = /* @__PURE__ */ j({
42
+ inheritAttrs: !1,
43
+ __name: "Combobox",
44
+ props: {
45
+ id: {},
46
+ rootClass: { default: "" },
47
+ modelValue: { default: null },
48
+ endpoint: { default: void 0 },
49
+ requestParams: { default: () => ({}) },
50
+ manualInput: { type: Boolean, default: !1 },
51
+ responseData: { type: Function, default: (e) => e },
52
+ displayValue: { type: Function, default: (e) => e?.name || null },
53
+ optionText: { type: Function, default: (e) => e?.name || null },
54
+ disabled: { type: Boolean, default: !1 },
55
+ minLength: { default: 2 },
56
+ itemKey: { default: "id" },
57
+ clearable: { type: Boolean, default: !1 },
58
+ rootAttrs: { default: () => ({}) },
59
+ multiple: { type: Boolean, default: !1 },
60
+ onSearch: { type: Function, default: () => Promise.resolve({ data: [] }) },
61
+ searchOnly: { type: Boolean, default: !1 },
62
+ icon: { type: [Function, Object, null], default: null },
63
+ prefixIcon: { type: [Function, Object, null], default: null },
64
+ size: { default: "base" },
65
+ debounce: { default: 150 },
66
+ minLoadingTime: { default: 0 },
67
+ onCancel: { type: Function, default: void 0 }
68
+ },
69
+ emits: ["update:modelValue", "update:requestParams", "combobox:noResults", "combobox:error"],
70
+ setup(e, { emit: V }) {
71
+ const a = e, d = V, u = h([]), v = h(!1), f = h(null), L = h(!0), k = h(null), s = D({
72
+ get: () => a.multiple ? a.modelValue || [] : a.modelValue,
73
+ set: (t) => d("update:modelValue", t)
74
+ }), T = D({
75
+ get: () => a.requestParams,
76
+ set: (t) => d("update:requestParams", t)
77
+ }), N = (t) => a.displayValue(t) || "", M = (t) => new Promise((o) => {
78
+ setTimeout(o, t);
79
+ }), A = (t, o) => {
80
+ u.value = [], d("combobox:error", t), d("combobox:noResults", o);
81
+ }, B = async (t) => {
82
+ if (!a.onSearch) return;
83
+ if (a.searchOnly && !t) {
84
+ u.value = [];
85
+ return;
86
+ }
87
+ if (t && t.length < a.minLength) {
88
+ u.value = [];
89
+ return;
90
+ }
91
+ k.value && a.onCancel && a.onCancel(k.value), v.value = !0;
92
+ const o = Date.now();
93
+ try {
94
+ const { data: l, error: y, cancel: Z } = await a.onSearch(t, T.value, a.endpoint);
95
+ k.value = Z || null;
96
+ const $ = a.responseData(l), K = Date.now() - o;
97
+ !$.length && y && A(y, t), K < a.minLoadingTime && await M(a.minLoadingTime - K), $?.length ? u.value = $ : (u.value = [], d("combobox:noResults", t));
98
+ } catch (l) {
99
+ l?.cancelled || A(l, t);
100
+ } finally {
101
+ v.value = !1;
102
+ }
103
+ }, R = H(B, a.debounce), I = (t) => {
104
+ L.value ? (L.value = !1, B(t)) : R(t);
105
+ }, E = (t) => {
106
+ t.target.value?.length === 0 && (u.value = [], d("update:modelValue", null)), a.manualInput && d("update:modelValue", T.value.query);
107
+ }, C = (t) => a.multiple ? s.value.some((o) => o[a.itemKey] === t) : s.value?.[a.itemKey] === t, S = (t) => {
108
+ s.value = s.value.filter((o) => o[a.itemKey] !== t[a.itemKey]);
109
+ };
110
+ return (t, o) => (n(), x(r(J), F({
111
+ modelValue: s.value,
112
+ "onUpdate:modelValue": o[4] || (o[4] = (l) => s.value = l),
113
+ as: "div"
114
+ }, e.rootAttrs, {
115
+ multiple: e.multiple,
116
+ class: [
117
+ "rvc-combobox",
118
+ `rvc-combobox-${e.size}`,
119
+ e.rootClass
120
+ ]
121
+ }), {
122
+ default: g(() => [
123
+ i("div", ae, [
124
+ i("div", ne, [
125
+ i("div", ie, [
126
+ e.prefixIcon ? m(t.$slots, "prefixIcon", {
127
+ key: 0,
128
+ icon: e.prefixIcon
129
+ }, () => [
130
+ (n(), x(O(e.prefixIcon), { "aria-hidden": "true" }))
131
+ ]) : p("", !0),
132
+ b(r(Q), F(t.$attrs, {
133
+ id: e.id,
134
+ "display-value": N,
135
+ disabled: e.disabled,
136
+ autocomplete: "off",
137
+ onChange: o[0] || (o[0] = (l) => I(l.target.value)),
138
+ onSearch: E,
139
+ onInput: o[1] || (o[1] = (l) => f.value = l.target.value)
140
+ }), null, 16, ["id", "disabled"]),
141
+ b(r(W), {
142
+ disabled: e.disabled,
143
+ class: "rvc-combobox-button",
144
+ onClick: o[2] || (o[2] = (l) => I(f.value || null))
145
+ }, {
146
+ default: g(() => [
147
+ v.value ? m(t.$slots, "spinner", {
148
+ key: 0,
149
+ spinning: v.value
150
+ }, () => [
151
+ b(r(te), { class: "rvc-combobox-spinner" })
152
+ ]) : (!e.searchOnly || u.value?.length) && !v.value ? m(t.$slots, "icon", {
153
+ key: 1,
154
+ icon: e.icon
155
+ }, () => [
156
+ (n(), x(O(e.icon ?? r(_)), { "aria-hidden": "true" }))
157
+ ]) : p("", !0)
158
+ ]),
159
+ _: 3
160
+ }, 8, ["disabled"])
161
+ ]),
162
+ e.clearable && (Array.isArray(e.modelValue) ? e.modelValue?.length : e.modelValue?.id) ? (n(), c("button", {
163
+ key: 0,
164
+ type: "button",
165
+ "aria-label": "Clear selection",
166
+ class: "rvc-combobox-clear",
167
+ onClick: o[3] || (o[3] = P((l) => d("update:modelValue", e.multiple ? [] : null), ["prevent"]))
168
+ }, [
169
+ m(t.$slots, "clear", {}, () => [
170
+ b(r(oe))
171
+ ])
172
+ ])) : p("", !0)
173
+ ]),
174
+ e.multiple && Array.isArray(s.value) && s.value?.length ? (n(), c("ul", ue, [
175
+ (n(!0), c(q, null, z(s.value, (l) => (n(), c("li", {
176
+ key: `${e.id}-selected-option-${l[e.itemKey]}`
177
+ }, [
178
+ m(t.$slots, "chip", {
179
+ optionText: e.optionText(l),
180
+ option: l,
181
+ removeOption: S
182
+ }, () => [
183
+ b(ee, {
184
+ color: "gray",
185
+ class: "rvc-combobox-chip",
186
+ size: e.size
187
+ }, {
188
+ default: g(() => [
189
+ U(w(e.optionText(l)) + " ", 1),
190
+ i("button", {
191
+ type: "button",
192
+ "aria-label": "Remove option",
193
+ onClick: P((y) => S(l), ["prevent"])
194
+ }, [
195
+ b(r(le))
196
+ ], 8, se)
197
+ ]),
198
+ _: 2
199
+ }, 1032, ["size"])
200
+ ])
201
+ ]))), 128))
202
+ ])) : p("", !0),
203
+ (!e.searchOnly || f.value?.length) && (!v.value || u.value.length) ? (n(), x(r(X), {
204
+ key: 1,
205
+ class: "rvc-combobox-options"
206
+ }, {
207
+ default: g(() => [
208
+ f.value && f.value.length < e.minLength ? (n(), c("div", re, [
209
+ i("div", null, [
210
+ i("em", null, "Minimal " + w(e.minLength) + " characters.", 1)
211
+ ])
212
+ ])) : !v.value && !u.value.length ? (n(), c("div", ce, [...o[5] || (o[5] = [
213
+ i("div", null, " No results found. ", -1)
214
+ ])])) : (n(!0), c(q, { key: 2 }, z(u.value, (l) => (n(), x(r(Y), {
215
+ key: `option-${l[e.itemKey]}`,
216
+ value: l,
217
+ as: "template"
218
+ }, {
219
+ default: g(({ active: y }) => [
220
+ i("li", {
221
+ class: G([
222
+ "rvc-combobox-option",
223
+ { "rvc-combobox-option-hover": y },
224
+ { "rvc-combobox-option-active": C(l[e.itemKey]) }
225
+ ])
226
+ }, [
227
+ m(t.$slots, "option", {
228
+ option: l,
229
+ isActive: C
230
+ }, () => [
231
+ m(t.$slots, "optionPrefix", {
232
+ option: l[e.itemKey],
233
+ isActive: C
234
+ }),
235
+ i("span", de, w(e.optionText(l)), 1),
236
+ m(t.$slots, "optionSuffix", {
237
+ option: l[e.itemKey],
238
+ isActive: C
239
+ })
240
+ ])
241
+ ], 2)
242
+ ]),
243
+ _: 2
244
+ }, 1032, ["value"]))), 128))
245
+ ]),
246
+ _: 3
247
+ })) : p("", !0)
248
+ ])
249
+ ]),
250
+ _: 3
251
+ }, 16, ["modelValue", "multiple", "class"]));
252
+ }
253
+ });
254
+ export {
255
+ he as _
256
+ };
@@ -1,8 +1,8 @@
1
- import { defineComponent as S, createBlock as w, openBlock as d, unref as a, withCtx as i, createVNode as s, withModifiers as L, createElementVNode as t, normalizeClass as c, createElementBlock as u, renderSlot as n, createCommentVNode as m, createTextVNode as T, toDisplayString as F } from "vue";
2
- import { TransitionRoot as N, Dialog as V, TransitionChild as b, DialogPanel as R, DialogTitle as y } from "@headlessui/vue";
3
- import { _ as k } from "./ButtonBase.vue_vue_type_script_setup_true_lang-DeflHqux.js";
4
- import { u as A } from "./Modal.vue_vue_type_script_setup_true_lang-CoHkAJj3.js";
5
- import { r as C } from "./XMarkIcon-90mcPzBs.js";
1
+ import { defineComponent as S, createBlock as m, openBlock as c, unref as t, withCtx as d, createVNode as s, withModifiers as L, createElementVNode as a, normalizeClass as w, createElementBlock as b, renderSlot as i, createCommentVNode as y, createTextVNode as T, toDisplayString as F } from "vue";
2
+ import { TransitionRoot as N, Dialog as V, TransitionChild as k, DialogPanel as R, DialogTitle as p } from "@headlessui/vue";
3
+ import { _ as C } from "./ButtonBase.vue_vue_type_script_setup_true_lang-BLm8QzEC.js";
4
+ import { u as A } from "./Modal.vue_vue_type_script_setup_true_lang-2AljJgxw.js";
5
+ import { r as g } from "./XMarkIcon-90mcPzBs.js";
6
6
  const H = {
7
7
  class: "rvc-drawer-presentation",
8
8
  role: "presentation"
@@ -26,30 +26,30 @@ const H = {
26
26
  resetFooter: { type: Boolean, default: !1 }
27
27
  },
28
28
  emits: ["drawer:open", "drawer:opened", "drawer:close", "drawer:save", "drawer:closed"],
29
- setup(g, { emit: $ }) {
30
- const B = g, o = $, {
29
+ setup(e, { emit: $ }) {
30
+ const B = e, l = $, {
31
31
  contentRef: h,
32
32
  ready: v,
33
33
  isForm: D,
34
34
  titleId: f,
35
- descriptionId: p,
35
+ descriptionId: u,
36
36
  initialFocusElement: E
37
37
  } = A(B);
38
- return (e, r) => (d(), w(a(N), { as: "template" }, {
39
- default: i(() => [
40
- s(a(V), {
38
+ return (n, r) => (c(), m(t(N), { as: "template" }, {
39
+ default: d(() => [
40
+ s(t(V), {
41
41
  as: e.as,
42
42
  class: "rvc-drawer",
43
43
  static: "",
44
44
  "aria-modal": "true",
45
45
  role: "dialog",
46
- "initial-focus": a(E),
47
- "aria-labelledby": a(f),
48
- onClose: r[6] || (r[6] = (l) => o("drawer:close")),
49
- onSubmit: r[7] || (r[7] = L((l) => o("drawer:save", l), ["prevent"]))
46
+ "initial-focus": t(E),
47
+ "aria-labelledby": t(f),
48
+ onClose: r[6] || (r[6] = (o) => l("drawer:close")),
49
+ onSubmit: r[7] || (r[7] = L((o) => l("drawer:save", o), ["prevent"]))
50
50
  }, {
51
- default: i(() => [
52
- s(a(b), {
51
+ default: d(() => [
52
+ s(t(k), {
53
53
  as: "template",
54
54
  enter: "rvc-drawer-backdrop-transition-enter",
55
55
  "enter-from": "rvc-drawer-backdrop-transition-enter-from",
@@ -57,21 +57,21 @@ const H = {
57
57
  leave: "rvc-drawer-backdrop-transition-leave",
58
58
  "leave-from": "rvc-drawer-backdrop-transition-leave-from",
59
59
  "leave-to": "rvc-drawer-backdrop-transition-leave-to",
60
- onBeforeEnter: r[0] || (r[0] = (l) => o("drawer:open")),
61
- onAfterEnter: r[1] || (r[1] = (l) => o("drawer:opened"))
60
+ onBeforeEnter: r[0] || (r[0] = (o) => l("drawer:open")),
61
+ onAfterEnter: r[1] || (r[1] = (o) => l("drawer:opened"))
62
62
  }, {
63
- default: i(() => [...r[8] || (r[8] = [
64
- t("div", {
63
+ default: d(() => [...r[8] || (r[8] = [
64
+ a("div", {
65
65
  class: "rvc-drawer-backdrop",
66
66
  "aria-hidden": "true"
67
67
  }, null, -1)
68
68
  ])]),
69
69
  _: 1
70
70
  }),
71
- t("div", H, [
72
- t("div", I, [
73
- t("div", z, [
74
- s(a(b), {
71
+ a("div", H, [
72
+ a("div", I, [
73
+ a("div", z, [
74
+ s(t(k), {
75
75
  as: "template",
76
76
  enter: "rvc-drawer-transition-enter",
77
77
  "enter-from": "rvc-drawer-transition-enter-from",
@@ -79,87 +79,87 @@ const H = {
79
79
  leave: "rvc-drawer-transition-leave",
80
80
  "leave-from": "rvc-drawer-transition-leave-from",
81
81
  "leave-to": "rvc-drawer-transition-leave-to",
82
- onBeforeEnter: r[4] || (r[4] = (l) => v.value = !0),
83
- onAfterLeave: r[5] || (r[5] = (l) => (v.value = !1, o("drawer:closed")))
82
+ onBeforeEnter: r[4] || (r[4] = (o) => v.value = !0),
83
+ onAfterLeave: r[5] || (r[5] = (o) => (v.value = !1, l("drawer:closed")))
84
84
  }, {
85
- default: i(() => [
86
- s(a(R), {
87
- class: c(["rvc-drawer-panel", e.panelClass]),
85
+ default: d(() => [
86
+ s(t(R), {
87
+ class: w(["rvc-drawer-panel", e.panelClass]),
88
88
  "aria-busy": e.spinning,
89
- "aria-describedby": a(p)
89
+ "aria-describedby": t(u)
90
90
  }, {
91
- default: i(() => [
92
- t("div", M, [
93
- e.resetHeader ? n(e.$slots, "header", { key: 1 }) : (d(), u("header", {
91
+ default: d(() => [
92
+ a("div", M, [
93
+ e.resetHeader ? i(n.$slots, "header", { key: 1 }) : (c(), b("header", {
94
94
  key: 0,
95
- class: c([{ "rvc-drawer-header-sticky": e.headerSticky }, "rvc-drawer-header"])
95
+ class: w([{ "rvc-drawer-header-sticky": e.headerSticky }, "rvc-drawer-header"])
96
96
  }, [
97
- n(e.$slots, "header", {
97
+ i(n.$slots, "header", {
98
98
  title: e.title,
99
99
  showClose: e.showClose
100
100
  }, () => [
101
- t("div", P, [
102
- n(e.$slots, "title", {
103
- id: a(f),
104
- dialogTitle: a(y),
101
+ a("div", P, [
102
+ i(n.$slots, "title", {
103
+ id: t(f),
104
+ dialogTitle: t(p),
105
105
  title: e.title
106
106
  }, () => [
107
- s(a(y), {
108
- id: a(f),
107
+ s(t(p), {
108
+ id: t(f),
109
109
  class: "rvc-drawer-title"
110
110
  }, {
111
- default: i(() => [
111
+ default: d(() => [
112
112
  T(F(e.title), 1)
113
113
  ]),
114
114
  _: 1
115
115
  }, 8, ["id"])
116
116
  ]),
117
- e.showClose ? n(e.$slots, "close", {
117
+ e.showClose ? i(n.$slots, "close", {
118
118
  key: 0,
119
- icon: a(C),
120
- emitClose: () => o("drawer:close")
119
+ icon: t(g),
120
+ emitClose: () => l("drawer:close")
121
121
  }, () => [
122
- t("div", j, [
123
- t("button", {
122
+ a("div", j, [
123
+ a("button", {
124
124
  type: "button",
125
125
  class: "rvc-drawer-close",
126
126
  "aria-label": "Close panel",
127
- onClick: r[2] || (r[2] = (l) => o("drawer:close"))
127
+ onClick: r[2] || (r[2] = (o) => l("drawer:close"))
128
128
  }, [
129
- s(a(C), { "aria-hidden": "true" })
129
+ s(t(g), { "aria-hidden": "true" })
130
130
  ])
131
131
  ])
132
- ]) : m("", !0)
132
+ ]) : y("", !0)
133
133
  ])
134
134
  ])
135
135
  ], 2)),
136
- t("div", {
137
- class: c([{ "rvc-drawer-scroll-reverse": e.scrolledDown }, "rvc-drawer-scroll"])
136
+ a("div", {
137
+ class: w([{ "rvc-drawer-scroll-reverse": e.scrolledDown }, "rvc-drawer-scroll"])
138
138
  }, [
139
- t("div", {
140
- id: a(p),
139
+ a("div", {
140
+ id: t(u),
141
141
  ref_key: "contentRef",
142
142
  ref: h,
143
143
  class: "rvc-drawer-content"
144
144
  }, [
145
- n(e.$slots, "default", { ready: a(v) })
145
+ i(n.$slots, "default", { ready: t(v) })
146
146
  ], 8, q)
147
147
  ], 2),
148
- e.resetFooter ? n(e.$slots, "footer", { key: 3 }) : (d(), u("footer", G, [
149
- n(e.$slots, "footer", { loading: e.spinning }, () => [
150
- s(k, {
148
+ e.resetFooter ? i(n.$slots, "footer", { key: 3 }) : (c(), b("footer", G, [
149
+ i(n.$slots, "footer", { loading: e.spinning }, () => [
150
+ s(C, {
151
151
  type: "button",
152
152
  label: e.cancelLabel,
153
153
  color: "light",
154
- onClick: r[3] || (r[3] = (l) => o("drawer:close"))
154
+ onClick: r[3] || (r[3] = (o) => l("drawer:close"))
155
155
  }, null, 8, ["label"]),
156
- a(D) ? (d(), w(k, {
156
+ t(D) ? (c(), m(C, {
157
157
  key: 0,
158
158
  type: "submit",
159
159
  label: e.submitLabel,
160
160
  spinning: e.spinning,
161
161
  disabled: e.spinning
162
- }, null, 8, ["label", "spinning", "disabled"])) : m("", !0)
162
+ }, null, 8, ["label", "spinning", "disabled"])) : y("", !0)
163
163
  ])
164
164
  ]))
165
165
  ])