@defaultusr/dai-ui 1.1.11 → 1.1.13
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.
- package/dist/assets/main.css +1 -1
- package/dist/main.js +360 -345
- package/dist/types/components/input_controls/checkbox.vue.d.ts +1 -1
- package/dist/types/components/input_controls/combobox/combobox.stories.d.ts +36 -12
- package/dist/types/components/input_controls/combobox/combobox.vue.d.ts +6 -1
- package/dist/types/components/input_controls/input/input.stories.d.ts +3 -3
- package/dist/types/components/input_controls/input/input.vue.d.ts +1 -1
- package/dist/types/components/input_controls/radio.vue.d.ts +1 -1
- package/dist/types/components/input_controls/selectbox/selectbox.stories.d.ts +6 -0
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Combobox as te, ComboboxInput as oe, injectCombobox as ae, ComboboxOptions as le, ComboboxOption as ie,
|
|
2
|
-
import { Menu as
|
|
3
|
-
import { reactive as ce, watch as
|
|
1
|
+
import { useFormControl as T, Combobox as te, ComboboxInput as oe, injectCombobox as ae, ComboboxOptions as le, ComboboxOption as ie, PopoverDialog as ne, MenuItems as se, MenuItem as re, Tab as de, TabList as ue } from "vue-composable-ui";
|
|
2
|
+
import { Menu as Ut, Popover as Nt, TabContainer as Xt, TabPanel as Dt } from "vue-composable-ui";
|
|
3
|
+
import { reactive as ce, watch as P, onUnmounted as K, defineComponent as v, createElementBlock as u, openBlock as a, renderSlot as p, createTextVNode as z, toDisplayString as k, normalizeClass as w, createBlock as m, createCommentVNode as b, createElementVNode as d, computed as _, createVNode as V, normalizeProps as fe, guardReactiveProps as me, withCtx as c, Transition as A, mergeModels as M, useModel as x, useId as q, useTemplateRef as L, mergeProps as $, unref as s, inject as ve, Fragment as j, ref as N, onMounted as I, withDirectives as O, renderList as X, vModelSelect as pe, vModelText as he, vModelCheckbox as be, vModelRadio as ye, resolveDynamicComponent as ge, nextTick as we, normalizeStyle as U, Teleport as R, TransitionGroup as ke, withModifiers as $e } from "vue";
|
|
4
4
|
import './assets/main.css';function xe(e, ...t) {
|
|
5
5
|
let o = [];
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
|
|
6
|
+
const l = ce(t);
|
|
7
|
+
function i() {
|
|
8
|
+
l.length && (e.classList.add(...l), o = [...l]);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function r() {
|
|
11
11
|
e.classList.remove(...o);
|
|
12
12
|
}
|
|
13
|
-
return
|
|
14
|
-
|
|
13
|
+
return P(
|
|
14
|
+
l,
|
|
15
15
|
() => {
|
|
16
|
-
|
|
16
|
+
r(), i();
|
|
17
17
|
},
|
|
18
18
|
{ immediate: !0 }
|
|
19
|
-
),
|
|
20
|
-
classList:
|
|
19
|
+
), K(r), {
|
|
20
|
+
classList: l
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
@@ -26,21 +26,21 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
26
26
|
text: {}
|
|
27
27
|
},
|
|
28
28
|
setup(e) {
|
|
29
|
-
return (t, o) => (
|
|
29
|
+
return (t, o) => (a(), u("label", _e, [
|
|
30
30
|
p(t.$slots, "default", {}, () => [
|
|
31
|
-
|
|
31
|
+
z(k(e.text), 1)
|
|
32
32
|
])
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
}), Be = { class: "dai-hint" },
|
|
35
|
+
}), Be = { class: "dai-hint" }, D = /* @__PURE__ */ v({
|
|
36
36
|
__name: "hint",
|
|
37
37
|
props: {
|
|
38
38
|
text: {}
|
|
39
39
|
},
|
|
40
40
|
setup(e) {
|
|
41
|
-
return (t, o) => (
|
|
41
|
+
return (t, o) => (a(), u("div", Be, [
|
|
42
42
|
p(t.$slots, "default", {}, () => [
|
|
43
|
-
|
|
43
|
+
z(k(e.text), 1)
|
|
44
44
|
])
|
|
45
45
|
]));
|
|
46
46
|
}
|
|
@@ -57,7 +57,7 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
57
57
|
invalid: { type: Boolean }
|
|
58
58
|
},
|
|
59
59
|
setup(e) {
|
|
60
|
-
return (t, o) => (
|
|
60
|
+
return (t, o) => (a(), u("div", {
|
|
61
61
|
class: w(["dai-form-control__input-group", {
|
|
62
62
|
"dai-form-control__input-group--labeled": !!e.label,
|
|
63
63
|
"dai-form-control__input-group--outlined": e.variant === "outlined",
|
|
@@ -69,18 +69,18 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
69
69
|
"dai-form-control__input-group--invalid": e.invalid
|
|
70
70
|
}])
|
|
71
71
|
}, [
|
|
72
|
-
e.label ? (
|
|
72
|
+
e.label ? (a(), m(F, {
|
|
73
73
|
key: 0,
|
|
74
74
|
text: e.label,
|
|
75
75
|
for: e.labelFor,
|
|
76
76
|
class: "dai-form-control__input-group__label"
|
|
77
|
-
}, null, 8, ["text", "for"])) :
|
|
77
|
+
}, null, 8, ["text", "for"])) : b("", !0),
|
|
78
78
|
d("div", Ve, [
|
|
79
79
|
p(t.$slots, "default")
|
|
80
80
|
])
|
|
81
81
|
], 2));
|
|
82
82
|
}
|
|
83
|
-
}), Ce = { class: "dai-form-control__container" },
|
|
83
|
+
}), Ce = { class: "dai-form-control__container" }, Ee = {
|
|
84
84
|
key: 0,
|
|
85
85
|
class: "dai-form-control__validation-message",
|
|
86
86
|
role: "alert"
|
|
@@ -104,40 +104,40 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
104
104
|
invalid: { type: Boolean }
|
|
105
105
|
},
|
|
106
106
|
setup(e) {
|
|
107
|
-
const t = e, o = _(() => t.variant ? t.variant : t.muted ? "muted" : t.outlined ? "outlined" : "flat"),
|
|
108
|
-
return (
|
|
107
|
+
const t = e, o = _(() => t.variant ? t.variant : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), l = _(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
|
|
108
|
+
return (i, r) => (a(), u("div", {
|
|
109
109
|
class: w(["dai-form-control", {
|
|
110
110
|
"dai-form-control--label-inline": e.labelPosition === "inline",
|
|
111
111
|
"dai-form-control--invalid": e.invalid,
|
|
112
|
-
"dai-form-control--lg":
|
|
112
|
+
"dai-form-control--lg": l.value === "large"
|
|
113
113
|
}])
|
|
114
114
|
}, [
|
|
115
|
-
e.label && e.labelPosition !== "inside" ? (
|
|
115
|
+
e.label && e.labelPosition !== "inside" ? (a(), m(F, {
|
|
116
116
|
key: 0,
|
|
117
117
|
for: e.labelFor,
|
|
118
118
|
text: e.label
|
|
119
|
-
}, null, 8, ["for", "text"])) :
|
|
119
|
+
}, null, 8, ["for", "text"])) : b("", !0),
|
|
120
120
|
d("div", Ce, [
|
|
121
121
|
V(Me, fe(me({
|
|
122
122
|
...t,
|
|
123
123
|
label: e.labelPosition === "inside" ? e.label : void 0,
|
|
124
124
|
variant: o.value,
|
|
125
|
-
size:
|
|
125
|
+
size: l.value
|
|
126
126
|
})), {
|
|
127
127
|
default: c(() => [
|
|
128
|
-
p(
|
|
128
|
+
p(i.$slots, "default")
|
|
129
129
|
]),
|
|
130
130
|
_: 3
|
|
131
131
|
}, 16),
|
|
132
|
-
e.hint ? (
|
|
132
|
+
e.hint ? (a(), m(D, {
|
|
133
133
|
key: 0,
|
|
134
134
|
text: e.hint,
|
|
135
135
|
class: "dai-form-control__hint"
|
|
136
|
-
}, null, 8, ["text"])) :
|
|
137
|
-
V(
|
|
136
|
+
}, null, 8, ["text"])) : b("", !0),
|
|
137
|
+
V(A, { name: "dai-form-control__validation-message-transition" }, {
|
|
138
138
|
default: c(() => [
|
|
139
|
-
e.validationMessage ? (
|
|
140
|
-
|
|
139
|
+
e.validationMessage ? (a(), u("div", Ee, [
|
|
140
|
+
r[0] || (r[0] = d("svg", {
|
|
141
141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
142
142
|
viewBox: "0 0 256 256",
|
|
143
143
|
class: ""
|
|
@@ -147,19 +147,21 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
147
147
|
d: "M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71Zm-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73ZM116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0Zm28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16Z"
|
|
148
148
|
})
|
|
149
149
|
], -1)),
|
|
150
|
-
|
|
151
|
-
])) :
|
|
150
|
+
z(" " + k(e.validationMessage), 1)
|
|
151
|
+
])) : b("", !0)
|
|
152
152
|
]),
|
|
153
153
|
_: 1
|
|
154
154
|
})
|
|
155
155
|
])
|
|
156
156
|
], 2));
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
158
|
+
}), ze = ["value"], Le = /* @__PURE__ */ v({
|
|
159
159
|
inheritAttrs: !1,
|
|
160
160
|
__name: "combobox",
|
|
161
161
|
props: /* @__PURE__ */ M({
|
|
162
162
|
id: {},
|
|
163
|
+
validators: { default: () => [] },
|
|
164
|
+
showValidationError: { type: Boolean },
|
|
163
165
|
labelPosition: {},
|
|
164
166
|
hint: {},
|
|
165
167
|
validationMessage: {},
|
|
@@ -180,40 +182,52 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
180
182
|
}),
|
|
181
183
|
emits: ["update:modelValue"],
|
|
182
184
|
setup(e) {
|
|
183
|
-
const t = e, o =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
const t = e, o = x(e, "modelValue"), l = t.id || q(), i = L("formElement"), { isValid: r, validationMessage: n } = T(
|
|
186
|
+
i,
|
|
187
|
+
t.validators,
|
|
188
|
+
t.showValidationError
|
|
189
|
+
);
|
|
190
|
+
return (y, h) => (a(), m(S, $(t, {
|
|
191
|
+
labelFor: s(l),
|
|
192
|
+
validationMessage: e.showValidationError ? "" : s(n),
|
|
193
|
+
invalid: s(r),
|
|
194
|
+
class: y.$attrs.class
|
|
187
195
|
}), {
|
|
188
196
|
default: c(() => [
|
|
189
|
-
V(
|
|
190
|
-
id:
|
|
197
|
+
V(s(te), $({ ...y.$attrs, class: void 0, required: void 0 }, {
|
|
198
|
+
id: s(l),
|
|
191
199
|
modelValue: o.value,
|
|
192
|
-
"onUpdate:modelValue":
|
|
200
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => o.value = g)
|
|
193
201
|
}), {
|
|
194
202
|
default: c(() => [
|
|
195
|
-
|
|
203
|
+
d("input", $({
|
|
204
|
+
ref_key: "formElement",
|
|
205
|
+
ref: i,
|
|
206
|
+
type: "text",
|
|
207
|
+
value: o.value
|
|
208
|
+
}, { required: y.$attrs.required }, { class: "dai-combobox__stab-input" }), null, 16, ze),
|
|
209
|
+
p(y.$slots, "default")
|
|
196
210
|
]),
|
|
197
211
|
_: 3
|
|
198
212
|
}, 16, ["id", "modelValue"])
|
|
199
213
|
]),
|
|
200
214
|
_: 3
|
|
201
|
-
}, 16, ["labelFor", "class"]));
|
|
215
|
+
}, 16, ["labelFor", "validationMessage", "invalid", "class"]));
|
|
202
216
|
}
|
|
203
|
-
}),
|
|
217
|
+
}), kt = /* @__PURE__ */ v({
|
|
204
218
|
__name: "comboboxInput",
|
|
205
219
|
setup(e) {
|
|
206
|
-
return (t, o) => (
|
|
220
|
+
return (t, o) => (a(), m(s(oe), { class: "dai-form-control__input-group__control" }, {
|
|
207
221
|
default: c(() => [
|
|
208
222
|
p(t.$slots, "default")
|
|
209
223
|
]),
|
|
210
224
|
_: 3
|
|
211
225
|
}));
|
|
212
226
|
}
|
|
213
|
-
}),
|
|
227
|
+
}), qe = {
|
|
214
228
|
key: 0,
|
|
215
229
|
class: "dai-form-control__input-group__control__placeholder"
|
|
216
|
-
},
|
|
230
|
+
}, Te = /* @__PURE__ */ v({
|
|
217
231
|
__name: "comboboxButton",
|
|
218
232
|
props: {
|
|
219
233
|
placeholder: {}
|
|
@@ -225,18 +239,17 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
225
239
|
function o() {
|
|
226
240
|
t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 });
|
|
227
241
|
}
|
|
228
|
-
return (
|
|
229
|
-
onKeydown:
|
|
230
|
-
(...s) => r(t).activatorOnKeyDown && r(t).activatorOnKeyDown(...s)),
|
|
242
|
+
return (l, i) => (a(), u("button", $(s(t).activatorAttrs.value, {
|
|
243
|
+
onKeydown: i[0] || (i[0] = (r) => s(t).activatorOnKeyDown(r)),
|
|
231
244
|
onClick: o,
|
|
232
245
|
type: "button",
|
|
233
246
|
class: "dai-form-control__input-group__control dai-combobox-btn"
|
|
234
247
|
}), [
|
|
235
|
-
p(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
], 64)) : (
|
|
239
|
-
|
|
248
|
+
p(l.$slots, "default", {}, () => [
|
|
249
|
+
s(t).displayValue.value ? (a(), u(j, { key: 1 }, [
|
|
250
|
+
z(k(s(t).displayValue), 1)
|
|
251
|
+
], 64)) : (a(), u("span", qe, k(e.placeholder || "Select..."), 1)),
|
|
252
|
+
i[1] || (i[1] = d("svg", {
|
|
240
253
|
class: "dai-combobox-btn__chevron",
|
|
241
254
|
role: "presentation",
|
|
242
255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -252,15 +265,15 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
252
265
|
])
|
|
253
266
|
], 16));
|
|
254
267
|
}
|
|
255
|
-
}),
|
|
268
|
+
}), Pe = /* @__PURE__ */ v({
|
|
256
269
|
__name: "comboboxOptions",
|
|
257
270
|
setup(e) {
|
|
258
|
-
return (t, o) => (
|
|
271
|
+
return (t, o) => (a(), m(A, {
|
|
259
272
|
"enter-from-class": "dai-combobox-options--anim",
|
|
260
273
|
"leave-to-class": "dai-combobox-options--anim"
|
|
261
274
|
}, {
|
|
262
275
|
default: c(() => [
|
|
263
|
-
V(
|
|
276
|
+
V(s(le), { class: "dai-combobox-options" }, {
|
|
264
277
|
default: c(() => [
|
|
265
278
|
p(t.$slots, "default")
|
|
266
279
|
]),
|
|
@@ -270,67 +283,67 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
|
270
283
|
_: 3
|
|
271
284
|
}));
|
|
272
285
|
}
|
|
273
|
-
}),
|
|
286
|
+
}), Ae = {
|
|
274
287
|
key: 0,
|
|
275
288
|
class: "dai-combobox-option__check",
|
|
276
289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
277
290
|
viewBox: "0 0 16 16"
|
|
278
|
-
},
|
|
291
|
+
}, je = /* @__PURE__ */ v({
|
|
279
292
|
__name: "comboboxOption",
|
|
280
293
|
props: {
|
|
281
294
|
value: {}
|
|
282
295
|
},
|
|
283
296
|
setup(e) {
|
|
284
|
-
return (t, o) => (
|
|
297
|
+
return (t, o) => (a(), m(s(ie), {
|
|
285
298
|
value: e.value,
|
|
286
299
|
class: "dai-combobox-option"
|
|
287
300
|
}, {
|
|
288
|
-
default: c(({ isActive:
|
|
301
|
+
default: c(({ isActive: l, isSelected: i }) => [
|
|
289
302
|
p(t.$slots, "default", {
|
|
290
|
-
isActive:
|
|
291
|
-
isSelected:
|
|
303
|
+
isActive: l,
|
|
304
|
+
isSelected: i
|
|
292
305
|
}),
|
|
293
|
-
|
|
306
|
+
i ? (a(), u("svg", Ae, [...o[0] || (o[0] = [
|
|
294
307
|
d("path", {
|
|
295
308
|
fill: "currentColor",
|
|
296
309
|
"fill-rule": "evenodd",
|
|
297
310
|
d: "M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353l4.493-6.74a.75.75 0 0 1 1.04-.207",
|
|
298
311
|
"clip-rule": "evenodd"
|
|
299
312
|
}, null, -1)
|
|
300
|
-
])])) :
|
|
313
|
+
])])) : b("", !0)
|
|
301
314
|
]),
|
|
302
315
|
_: 3
|
|
303
316
|
}, 8, ["value"]));
|
|
304
317
|
}
|
|
305
318
|
}), Ie = (e, t) => {
|
|
306
319
|
const o = e.__vccOpts || e;
|
|
307
|
-
for (const [
|
|
308
|
-
o[
|
|
320
|
+
for (const [l, i] of t)
|
|
321
|
+
o[l] = i;
|
|
309
322
|
return o;
|
|
310
|
-
},
|
|
323
|
+
}, Oe = {}, Fe = {
|
|
311
324
|
type: "button",
|
|
312
325
|
class: "dai-form-control__input-group__addon dai-form-control__input-group__addon--btn",
|
|
313
326
|
tabindex: "-1",
|
|
314
327
|
"aria-hidden": "true"
|
|
315
328
|
};
|
|
316
|
-
function
|
|
317
|
-
return
|
|
329
|
+
function Se(e, t) {
|
|
330
|
+
return a(), u("button", Fe, [
|
|
318
331
|
p(e.$slots, "default")
|
|
319
332
|
]);
|
|
320
333
|
}
|
|
321
|
-
const
|
|
334
|
+
const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern", "title", "autocomplete", "value"], Ne = {
|
|
322
335
|
key: 0,
|
|
323
336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
324
337
|
fill: "none",
|
|
325
338
|
viewBox: "0 0 24 24",
|
|
326
339
|
stroke: "currentColor"
|
|
327
|
-
},
|
|
340
|
+
}, Xe = {
|
|
328
341
|
key: 1,
|
|
329
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
330
343
|
fill: "none",
|
|
331
344
|
viewBox: "0 0 24 24",
|
|
332
345
|
stroke: "currentColor"
|
|
333
|
-
},
|
|
346
|
+
}, $t = /* @__PURE__ */ v({
|
|
334
347
|
inheritAttrs: !1,
|
|
335
348
|
__name: "input",
|
|
336
349
|
props: /* @__PURE__ */ M({
|
|
@@ -365,17 +378,17 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
365
378
|
}),
|
|
366
379
|
emits: ["update:modelValue", "update:files"],
|
|
367
380
|
setup(e) {
|
|
368
|
-
const t = e, o = t.id ||
|
|
381
|
+
const t = e, o = t.id || q(), l = _(() => typeof t.autocomplete == "string" ? t.autocomplete : t.autocomplete ? "on" : "off"), i = x(e, "modelValue"), r = x(e, "files", {
|
|
369
382
|
set(B) {
|
|
370
383
|
return n.value && (n.value.files = B), B;
|
|
371
384
|
}
|
|
372
|
-
}), n =
|
|
385
|
+
}), n = L("formElement"), { isValid: y, validationMessage: h, validate: g } = T(
|
|
373
386
|
n,
|
|
374
387
|
t.validators,
|
|
375
388
|
t.showValidationError
|
|
376
|
-
), f =
|
|
377
|
-
|
|
378
|
-
|
|
389
|
+
), f = N(!1);
|
|
390
|
+
P(i, () => {
|
|
391
|
+
r.value = n.value?.files || null;
|
|
379
392
|
});
|
|
380
393
|
let C;
|
|
381
394
|
const Z = _(() => t.type === "password" ? f.value ? "text" : "password" : t.type), H = _(() => t.mask ? t.mask : t.type === "tel" ? {
|
|
@@ -385,59 +398,59 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
385
398
|
f.value = !f.value;
|
|
386
399
|
}
|
|
387
400
|
function J() {
|
|
388
|
-
|
|
401
|
+
i.value = "";
|
|
389
402
|
}
|
|
390
403
|
function ee(B) {
|
|
391
404
|
if (C)
|
|
392
405
|
return;
|
|
393
|
-
const { value:
|
|
394
|
-
|
|
406
|
+
const { value: E } = B.target;
|
|
407
|
+
i.value = E;
|
|
395
408
|
}
|
|
396
|
-
return
|
|
409
|
+
return I(() => {
|
|
397
410
|
H.value && import("imask").then((B) => {
|
|
398
411
|
C = B.default(
|
|
399
412
|
n.value,
|
|
400
413
|
H.value
|
|
401
414
|
), C.on("accept", () => {
|
|
402
|
-
|
|
415
|
+
i.value = C.value;
|
|
403
416
|
});
|
|
404
417
|
});
|
|
405
|
-
}), (B,
|
|
406
|
-
"label-for":
|
|
407
|
-
"validation-message": e.showValidationError ? "" :
|
|
408
|
-
invalid: t.invalid || !
|
|
418
|
+
}), (B, E) => (a(), m(S, $(t, {
|
|
419
|
+
"label-for": s(o),
|
|
420
|
+
"validation-message": e.showValidationError ? "" : s(h),
|
|
421
|
+
invalid: t.invalid || !s(y),
|
|
409
422
|
class: B.$attrs.class
|
|
410
423
|
}), {
|
|
411
424
|
default: c(() => [
|
|
412
425
|
p(B.$slots, "prepend"),
|
|
413
|
-
d("input",
|
|
426
|
+
d("input", $({
|
|
414
427
|
ref_key: "formElement",
|
|
415
428
|
ref: n
|
|
416
429
|
}, { ...B.$attrs, class: void 0 }, {
|
|
417
|
-
id:
|
|
430
|
+
id: s(o),
|
|
418
431
|
type: Z.value,
|
|
419
432
|
pattern: G.value,
|
|
420
433
|
title: Q.value,
|
|
421
|
-
autocomplete:
|
|
422
|
-
value:
|
|
434
|
+
autocomplete: l.value,
|
|
435
|
+
value: i.value,
|
|
423
436
|
onInputPassive: ee,
|
|
424
|
-
onKeyupPassive:
|
|
437
|
+
onKeyupPassive: E[0] || (E[0] = (yt) => !s(y) && s(g)()),
|
|
425
438
|
class: "dai-form-control__input-group__control dai-form-control__input"
|
|
426
|
-
}), null, 16,
|
|
439
|
+
}), null, 16, Ue),
|
|
427
440
|
p(B.$slots, "append"),
|
|
428
|
-
t.type === "password" &&
|
|
441
|
+
t.type === "password" && i.value ? (a(), m(Y, {
|
|
429
442
|
key: 0,
|
|
430
443
|
onClick: W
|
|
431
444
|
}, {
|
|
432
445
|
default: c(() => [
|
|
433
|
-
f.value ? (
|
|
446
|
+
f.value ? (a(), u("svg", Xe, [...E[2] || (E[2] = [
|
|
434
447
|
d("path", {
|
|
435
448
|
"stroke-linecap": "round",
|
|
436
449
|
"stroke-linejoin": "round",
|
|
437
450
|
"stroke-width": "2",
|
|
438
451
|
d: "M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"
|
|
439
452
|
}, null, -1)
|
|
440
|
-
])])) : (
|
|
453
|
+
])])) : (a(), u("svg", Ne, [...E[1] || (E[1] = [
|
|
441
454
|
d("path", {
|
|
442
455
|
"stroke-linecap": "round",
|
|
443
456
|
"stroke-linejoin": "round",
|
|
@@ -453,12 +466,12 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
453
466
|
])]))
|
|
454
467
|
]),
|
|
455
468
|
_: 1
|
|
456
|
-
})) :
|
|
457
|
-
e.clearable &&
|
|
469
|
+
})) : b("", !0),
|
|
470
|
+
e.clearable && i.value && !t.disabled ? (a(), m(Y, {
|
|
458
471
|
key: 1,
|
|
459
472
|
onClick: J
|
|
460
473
|
}, {
|
|
461
|
-
default: c(() => [...
|
|
474
|
+
default: c(() => [...E[3] || (E[3] = [
|
|
462
475
|
d("svg", {
|
|
463
476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
464
477
|
fill: "none",
|
|
@@ -474,12 +487,12 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
474
487
|
], -1)
|
|
475
488
|
])]),
|
|
476
489
|
_: 1
|
|
477
|
-
})) :
|
|
490
|
+
})) : b("", !0)
|
|
478
491
|
]),
|
|
479
492
|
_: 3
|
|
480
493
|
}, 16, ["label-for", "validation-message", "invalid", "class"]));
|
|
481
494
|
}
|
|
482
|
-
}),
|
|
495
|
+
}), De = ["id"], He = ["value"], xt = /* @__PURE__ */ v({
|
|
483
496
|
inheritAttrs: !1,
|
|
484
497
|
__name: "select",
|
|
485
498
|
props: /* @__PURE__ */ M({
|
|
@@ -509,36 +522,36 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
509
522
|
}),
|
|
510
523
|
emits: ["update:modelValue"],
|
|
511
524
|
setup(e) {
|
|
512
|
-
const t = e, o = t.id ||
|
|
513
|
-
|
|
525
|
+
const t = e, o = t.id || q(), l = x(e, "modelValue"), i = L("formElement"), { isValid: r, validationMessage: n, validate: y } = T(
|
|
526
|
+
i,
|
|
514
527
|
t.validators,
|
|
515
528
|
t.showValidationError
|
|
516
529
|
);
|
|
517
|
-
return (
|
|
518
|
-
"label-for":
|
|
519
|
-
"validation-message": e.showValidationError ? "" :
|
|
520
|
-
invalid: t.invalid || !r
|
|
521
|
-
class:
|
|
530
|
+
return (h, g) => (a(), m(S, $(t, {
|
|
531
|
+
"label-for": s(o),
|
|
532
|
+
"validation-message": e.showValidationError ? "" : s(n),
|
|
533
|
+
invalid: t.invalid || !s(r),
|
|
534
|
+
class: h.$attrs.class
|
|
522
535
|
}), {
|
|
523
536
|
default: c(() => [
|
|
524
|
-
O(d("select",
|
|
537
|
+
O(d("select", $({
|
|
525
538
|
ref_key: "formElement",
|
|
526
|
-
ref:
|
|
527
|
-
}, { ...
|
|
528
|
-
id:
|
|
529
|
-
"onUpdate:modelValue":
|
|
539
|
+
ref: i
|
|
540
|
+
}, { ...h.$attrs, class: void 0 }, {
|
|
541
|
+
id: s(o),
|
|
542
|
+
"onUpdate:modelValue": g[0] || (g[0] = (f) => l.value = f),
|
|
530
543
|
class: "dai-form-control__input-group__control dai-select"
|
|
531
544
|
}), [
|
|
532
|
-
p(
|
|
533
|
-
(
|
|
545
|
+
p(h.$slots, "default", {}, () => [
|
|
546
|
+
(a(!0), u(j, null, X(e.options, (f) => (a(), u("option", {
|
|
534
547
|
value: f[e.optionValue],
|
|
535
548
|
key: f[e.optionValue]
|
|
536
|
-
}, k(f[e.optionText]), 9,
|
|
549
|
+
}, k(f[e.optionText]), 9, He))), 128))
|
|
537
550
|
])
|
|
538
|
-
], 16,
|
|
539
|
-
[pe,
|
|
551
|
+
], 16, De), [
|
|
552
|
+
[pe, l.value]
|
|
540
553
|
]),
|
|
541
|
-
|
|
554
|
+
g[1] || (g[1] = d("svg", {
|
|
542
555
|
class: "dai-select__chevron",
|
|
543
556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
544
557
|
viewBox: "0 0 16 16"
|
|
@@ -554,7 +567,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
554
567
|
_: 3
|
|
555
568
|
}, 16, ["label-for", "validation-message", "invalid", "class"]));
|
|
556
569
|
}
|
|
557
|
-
}),
|
|
570
|
+
}), _t = /* @__PURE__ */ v({
|
|
558
571
|
__name: "selectbox",
|
|
559
572
|
props: /* @__PURE__ */ M({
|
|
560
573
|
options: {},
|
|
@@ -562,6 +575,8 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
562
575
|
optionValue: { default: "value" },
|
|
563
576
|
placeholder: {},
|
|
564
577
|
id: {},
|
|
578
|
+
validators: {},
|
|
579
|
+
showValidationError: { type: Boolean },
|
|
565
580
|
labelPosition: {},
|
|
566
581
|
hint: {},
|
|
567
582
|
validationMessage: {},
|
|
@@ -582,22 +597,22 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
582
597
|
}),
|
|
583
598
|
emits: ["update:modelValue"],
|
|
584
599
|
setup(e) {
|
|
585
|
-
const t = e, o =
|
|
586
|
-
return (
|
|
587
|
-
displayValue: (
|
|
600
|
+
const t = e, o = x(e, "modelValue");
|
|
601
|
+
return (l, i) => (a(), m(s(Le), $(t, {
|
|
602
|
+
displayValue: (r) => e.options.find((n) => n[e.optionValue] === r)?.[e.optionText] || "",
|
|
588
603
|
modelValue: o.value,
|
|
589
|
-
"onUpdate:modelValue":
|
|
604
|
+
"onUpdate:modelValue": i[0] || (i[0] = (r) => o.value = r)
|
|
590
605
|
}), {
|
|
591
606
|
default: c(() => [
|
|
592
|
-
V(
|
|
593
|
-
V(
|
|
607
|
+
V(s(Te), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
608
|
+
V(s(Pe), null, {
|
|
594
609
|
default: c(() => [
|
|
595
|
-
(
|
|
596
|
-
key:
|
|
597
|
-
value:
|
|
610
|
+
(a(!0), u(j, null, X(e.options, (r) => (a(), m(s(je), {
|
|
611
|
+
key: r[e.optionValue],
|
|
612
|
+
value: r[e.optionValue]
|
|
598
613
|
}, {
|
|
599
614
|
default: c(() => [
|
|
600
|
-
|
|
615
|
+
z(k(r[e.optionText]), 1)
|
|
601
616
|
]),
|
|
602
617
|
_: 2
|
|
603
618
|
}, 1032, ["value"]))), 128))
|
|
@@ -608,7 +623,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
608
623
|
_: 1
|
|
609
624
|
}, 16, ["displayValue", "modelValue"]));
|
|
610
625
|
}
|
|
611
|
-
}),
|
|
626
|
+
}), Ye = ["id"], Bt = /* @__PURE__ */ v({
|
|
612
627
|
inheritAttrs: !1,
|
|
613
628
|
__name: "textarea",
|
|
614
629
|
props: /* @__PURE__ */ M({
|
|
@@ -622,42 +637,42 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
622
637
|
}),
|
|
623
638
|
emits: ["update:modelValue"],
|
|
624
639
|
setup(e) {
|
|
625
|
-
const t = e, o = t.id ||
|
|
626
|
-
|
|
640
|
+
const t = e, o = t.id || q(), l = x(e, "modelValue"), i = L("formElement"), { isValid: r, validationMessage: n, validate: y } = T(
|
|
641
|
+
i,
|
|
627
642
|
t.validators,
|
|
628
643
|
t.showValidationError
|
|
629
644
|
);
|
|
630
|
-
function
|
|
645
|
+
function h() {
|
|
631
646
|
if (!t.autosize) return;
|
|
632
|
-
const
|
|
633
|
-
|
|
647
|
+
const g = i.value, f = g.offsetHeight - g.clientHeight;
|
|
648
|
+
g.style.height = "auto", g.style.height = `${g.scrollHeight + f}px`;
|
|
634
649
|
}
|
|
635
|
-
return
|
|
636
|
-
"label-for":
|
|
637
|
-
"validation-message": e.showValidationError ? "" :
|
|
638
|
-
invalid: !r
|
|
639
|
-
class:
|
|
650
|
+
return I(h), (g, f) => (a(), m(S, $(t, {
|
|
651
|
+
"label-for": s(o),
|
|
652
|
+
"validation-message": e.showValidationError ? "" : s(n),
|
|
653
|
+
invalid: !s(r),
|
|
654
|
+
class: g.$attrs.class
|
|
640
655
|
}), {
|
|
641
656
|
default: c(() => [
|
|
642
|
-
O(d("textarea",
|
|
657
|
+
O(d("textarea", $({
|
|
643
658
|
ref_key: "formElement",
|
|
644
|
-
ref:
|
|
645
|
-
}, { ...
|
|
646
|
-
id:
|
|
647
|
-
"onUpdate:modelValue": f[0] || (f[0] = (C) =>
|
|
648
|
-
onKeyupPassive: f[1] || (f[1] = (C) => !r
|
|
649
|
-
onInputPassive:
|
|
659
|
+
ref: i
|
|
660
|
+
}, { ...g.$attrs, class: void 0 }, {
|
|
661
|
+
id: s(o),
|
|
662
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => l.value = C),
|
|
663
|
+
onKeyupPassive: f[1] || (f[1] = (C) => !s(r) && s(y)()),
|
|
664
|
+
onInputPassive: h,
|
|
650
665
|
class: ["form-control__textarea", {
|
|
651
666
|
"form-control__textarea--autosize": e.autosize
|
|
652
667
|
}]
|
|
653
|
-
}), null, 16,
|
|
654
|
-
[he,
|
|
668
|
+
}), null, 16, Ye), [
|
|
669
|
+
[he, l.value]
|
|
655
670
|
])
|
|
656
671
|
]),
|
|
657
672
|
_: 1
|
|
658
673
|
}, 16, ["label-for", "validation-message", "invalid", "class"]));
|
|
659
674
|
}
|
|
660
|
-
}), Ke = ["id"],
|
|
675
|
+
}), Ke = ["id"], Vt = /* @__PURE__ */ v({
|
|
661
676
|
inheritAttrs: !1,
|
|
662
677
|
__name: "checkbox",
|
|
663
678
|
props: /* @__PURE__ */ M({
|
|
@@ -672,59 +687,59 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
672
687
|
}),
|
|
673
688
|
emits: ["update:modelValue"],
|
|
674
689
|
setup(e) {
|
|
675
|
-
const t = e, o =
|
|
676
|
-
|
|
690
|
+
const t = e, o = x(e, "modelValue"), l = q(), i = L("formElement"), { isValid: r } = T(
|
|
691
|
+
i,
|
|
677
692
|
t.validators,
|
|
678
693
|
t.showValidationError
|
|
679
694
|
);
|
|
680
|
-
return (n,
|
|
695
|
+
return (n, y) => (a(), u("div", {
|
|
681
696
|
class: w(["dai-checkbox-control", n.$attrs.class])
|
|
682
697
|
}, [
|
|
683
|
-
O(d("input",
|
|
698
|
+
O(d("input", $({
|
|
684
699
|
ref_key: "formElement",
|
|
685
|
-
ref:
|
|
686
|
-
"onUpdate:modelValue":
|
|
700
|
+
ref: i,
|
|
701
|
+
"onUpdate:modelValue": y[0] || (y[0] = (h) => o.value = h)
|
|
687
702
|
}, { ...n.$attrs, class: "" }, {
|
|
688
|
-
id:
|
|
703
|
+
id: s(l),
|
|
689
704
|
type: "checkbox",
|
|
690
705
|
class: ["dai-checkbox", {
|
|
691
706
|
[`dai-checkbox--${e.color}`]: e.color,
|
|
692
|
-
"dai-checkbox--invalid": !r
|
|
707
|
+
"dai-checkbox--invalid": !s(r)
|
|
693
708
|
}]
|
|
694
709
|
}), null, 16, Ke), [
|
|
695
710
|
[be, o.value]
|
|
696
711
|
]),
|
|
697
|
-
e.label || n.$slots.default ? (
|
|
712
|
+
e.label || n.$slots.default ? (a(), m(F, {
|
|
698
713
|
key: 0,
|
|
699
|
-
for:
|
|
714
|
+
for: s(l)
|
|
700
715
|
}, {
|
|
701
716
|
default: c(() => [
|
|
702
717
|
p(n.$slots, "default", {}, () => [
|
|
703
|
-
|
|
718
|
+
z(k(e.label), 1)
|
|
704
719
|
])
|
|
705
720
|
]),
|
|
706
721
|
_: 3
|
|
707
|
-
}, 8, ["for"])) :
|
|
708
|
-
e.hint || n.$slots.hint ? (
|
|
722
|
+
}, 8, ["for"])) : b("", !0),
|
|
723
|
+
e.hint || n.$slots.hint ? (a(), m(D, {
|
|
709
724
|
key: 1,
|
|
710
725
|
class: "dai-checkbox-control__hint"
|
|
711
726
|
}, {
|
|
712
727
|
default: c(() => [
|
|
713
728
|
p(n.$slots, "hint", {}, () => [
|
|
714
|
-
|
|
729
|
+
z(k(e.hint), 1)
|
|
715
730
|
])
|
|
716
731
|
]),
|
|
717
732
|
_: 3
|
|
718
|
-
})) :
|
|
733
|
+
})) : b("", !0)
|
|
719
734
|
], 2));
|
|
720
735
|
}
|
|
721
|
-
}),
|
|
736
|
+
}), Re = { class: "flex items-center h-5" }, Ze = ["value", "id"], Ge = {
|
|
722
737
|
key: 0,
|
|
723
738
|
class: "text-sm"
|
|
724
|
-
},
|
|
739
|
+
}, Qe = ["for"], We = {
|
|
725
740
|
key: 0,
|
|
726
741
|
class: "text-secondary-500 dark:text-secondary-400"
|
|
727
|
-
},
|
|
742
|
+
}, Mt = /* @__PURE__ */ v({
|
|
728
743
|
inheritAttrs: !1,
|
|
729
744
|
__name: "radio",
|
|
730
745
|
props: /* @__PURE__ */ M({
|
|
@@ -740,41 +755,41 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
740
755
|
}),
|
|
741
756
|
emits: ["update:modelValue"],
|
|
742
757
|
setup(e) {
|
|
743
|
-
const t = e, o =
|
|
744
|
-
|
|
758
|
+
const t = e, o = x(e, "modelValue"), l = q(), i = L("formElement"), { isValid: r } = T(
|
|
759
|
+
i,
|
|
745
760
|
t.validators,
|
|
746
761
|
t.showValidationError
|
|
747
762
|
);
|
|
748
|
-
return (n,
|
|
763
|
+
return (n, y) => (a(), u("div", {
|
|
749
764
|
class: w(["flex items-start gap-3", n.$attrs.class])
|
|
750
765
|
}, [
|
|
751
|
-
d("div",
|
|
752
|
-
O(d("input",
|
|
766
|
+
d("div", Re, [
|
|
767
|
+
O(d("input", $({
|
|
753
768
|
type: "radio",
|
|
754
769
|
ref_key: "formElement",
|
|
755
|
-
ref:
|
|
756
|
-
"onUpdate:modelValue":
|
|
770
|
+
ref: i,
|
|
771
|
+
"onUpdate:modelValue": y[0] || (y[0] = (h) => o.value = h)
|
|
757
772
|
}, { ...n.$attrs, class: "" }, {
|
|
758
773
|
value: e.value,
|
|
759
|
-
id:
|
|
774
|
+
id: s(l),
|
|
760
775
|
class: ["radio", {
|
|
761
776
|
[`radio--${e.color}`]: e.color,
|
|
762
|
-
"radio--invalid": !r
|
|
777
|
+
"radio--invalid": !s(r)
|
|
763
778
|
}]
|
|
764
|
-
}), null, 16,
|
|
779
|
+
}), null, 16, Ze), [
|
|
765
780
|
[ye, o.value]
|
|
766
781
|
])
|
|
767
782
|
]),
|
|
768
|
-
e.label ? (
|
|
783
|
+
e.label ? (a(), u("div", Ge, [
|
|
769
784
|
d("label", {
|
|
770
|
-
for:
|
|
785
|
+
for: s(l),
|
|
771
786
|
class: "font-medium select-none cursor-pointer"
|
|
772
|
-
}, k(e.label), 9,
|
|
773
|
-
e.hint ? (
|
|
774
|
-
])) :
|
|
787
|
+
}, k(e.label), 9, Qe),
|
|
788
|
+
e.hint ? (a(), u("p", We, k(e.hint), 1)) : b("", !0)
|
|
789
|
+
])) : b("", !0)
|
|
775
790
|
], 2));
|
|
776
791
|
}
|
|
777
|
-
}),
|
|
792
|
+
}), Je = { class: "dai-switch-control" }, et = ["id", "aria-checked"], Ct = /* @__PURE__ */ v({
|
|
778
793
|
__name: "switch",
|
|
779
794
|
props: /* @__PURE__ */ M({
|
|
780
795
|
label: {},
|
|
@@ -785,50 +800,50 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
785
800
|
}),
|
|
786
801
|
emits: ["update:modelValue"],
|
|
787
802
|
setup(e) {
|
|
788
|
-
const t =
|
|
789
|
-
return (
|
|
803
|
+
const t = x(e, "modelValue"), o = q();
|
|
804
|
+
return (l, i) => (a(), u("div", Je, [
|
|
790
805
|
d("button", {
|
|
791
|
-
onClick:
|
|
792
|
-
id:
|
|
806
|
+
onClick: i[0] || (i[0] = (r) => t.value = !t.value),
|
|
807
|
+
id: s(o),
|
|
793
808
|
"aria-checked": t.value,
|
|
794
809
|
role: "switch",
|
|
795
810
|
type: "button",
|
|
796
811
|
tabindex: "0",
|
|
797
812
|
class: w(["dai-switch", [t.value ? "dai-switch--on" : "dai-switch--off"]])
|
|
798
|
-
}, [...
|
|
813
|
+
}, [...i[1] || (i[1] = [
|
|
799
814
|
d("div", {
|
|
800
815
|
"aria-hidden": "true",
|
|
801
816
|
class: "dai-switch__thumb"
|
|
802
817
|
}, null, -1)
|
|
803
|
-
])], 10,
|
|
804
|
-
e.label ||
|
|
818
|
+
])], 10, et),
|
|
819
|
+
e.label || l.$slots.default ? (a(), m(F, {
|
|
805
820
|
key: 0,
|
|
806
|
-
for:
|
|
821
|
+
for: s(o)
|
|
807
822
|
}, {
|
|
808
823
|
default: c(() => [
|
|
809
|
-
p(
|
|
810
|
-
|
|
824
|
+
p(l.$slots, "default", {}, () => [
|
|
825
|
+
z(k(e.label), 1)
|
|
811
826
|
])
|
|
812
827
|
]),
|
|
813
828
|
_: 3
|
|
814
|
-
}, 8, ["for"])) :
|
|
815
|
-
e.hint ||
|
|
829
|
+
}, 8, ["for"])) : b("", !0),
|
|
830
|
+
e.hint || l.$slots.hint ? (a(), m(D, {
|
|
816
831
|
key: 1,
|
|
817
832
|
class: "dai-switch-control__hint"
|
|
818
833
|
}, {
|
|
819
834
|
default: c(() => [
|
|
820
|
-
p(
|
|
821
|
-
|
|
835
|
+
p(l.$slots, "hint", {}, () => [
|
|
836
|
+
z(k(e.hint), 1)
|
|
822
837
|
])
|
|
823
838
|
]),
|
|
824
839
|
_: 3
|
|
825
|
-
})) :
|
|
840
|
+
})) : b("", !0)
|
|
826
841
|
]));
|
|
827
842
|
}
|
|
828
|
-
}),
|
|
843
|
+
}), tt = {
|
|
829
844
|
key: 0,
|
|
830
845
|
class: "dai-btn__spinner"
|
|
831
|
-
},
|
|
846
|
+
}, ot = { class: "dai-btn__caption" }, Et = /* @__PURE__ */ v({
|
|
832
847
|
__name: "btn",
|
|
833
848
|
props: {
|
|
834
849
|
submit: { type: [Boolean, String] },
|
|
@@ -850,19 +865,19 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
850
865
|
condensed: { type: Boolean }
|
|
851
866
|
},
|
|
852
867
|
setup(e) {
|
|
853
|
-
const t = e, o = _(() => t.submit ? "submit" : t.reset ? "reset" : "button"),
|
|
854
|
-
return (
|
|
868
|
+
const t = e, o = _(() => t.submit ? "submit" : t.reset ? "reset" : "button"), l = _(() => t.variant ? t.variant : t.plain ? "plain" : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), i = _(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
|
|
869
|
+
return (r, n) => (a(), m(ge(e.href ? "a" : "button"), {
|
|
855
870
|
type: e.href ? void 0 : o.value,
|
|
856
871
|
form: typeof e.submit == "string" ? e.submit : void 0,
|
|
857
872
|
href: e.href,
|
|
858
873
|
class: w(["dai-btn", {
|
|
859
874
|
[`dai-btn--${e.color}`]: e.color,
|
|
860
|
-
"dai-btn--flat":
|
|
861
|
-
"dai-btn--plain":
|
|
862
|
-
"dai-btn--muted":
|
|
863
|
-
"dai-btn--outlined":
|
|
864
|
-
"dai-btn--sm":
|
|
865
|
-
"dai-btn--lg":
|
|
875
|
+
"dai-btn--flat": l.value === "flat",
|
|
876
|
+
"dai-btn--plain": l.value === "plain",
|
|
877
|
+
"dai-btn--muted": l.value === "muted",
|
|
878
|
+
"dai-btn--outlined": l.value === "outlined",
|
|
879
|
+
"dai-btn--sm": i.value === "small",
|
|
880
|
+
"dai-btn--lg": i.value === "large",
|
|
866
881
|
"dai-btn--loading": e.loading,
|
|
867
882
|
"dai-btn--block": e.block,
|
|
868
883
|
"dai-btn--rounded": e.rounded,
|
|
@@ -870,7 +885,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
870
885
|
}])
|
|
871
886
|
}, {
|
|
872
887
|
default: c(() => [
|
|
873
|
-
e.loading ? (
|
|
888
|
+
e.loading ? (a(), u("span", tt, [...n[0] || (n[0] = [
|
|
874
889
|
d("svg", {
|
|
875
890
|
xmlns: "http://www.w3.org/2000/svg",
|
|
876
891
|
fill: "none",
|
|
@@ -890,17 +905,17 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
890
905
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
891
906
|
})
|
|
892
907
|
], -1)
|
|
893
|
-
])])) :
|
|
894
|
-
d("span",
|
|
895
|
-
e.icon ? (
|
|
908
|
+
])])) : b("", !0),
|
|
909
|
+
d("span", ot, [
|
|
910
|
+
e.icon ? (a(), u("div", {
|
|
896
911
|
key: 0,
|
|
897
912
|
class: w([e.icon, "dai-btn__icon"])
|
|
898
|
-
}, null, 2)) :
|
|
899
|
-
p(
|
|
900
|
-
e.iconAfter ? (
|
|
913
|
+
}, null, 2)) : b("", !0),
|
|
914
|
+
p(r.$slots, "default"),
|
|
915
|
+
e.iconAfter ? (a(), u("div", {
|
|
901
916
|
key: 1,
|
|
902
917
|
class: w([e.iconAfter, "dai-btn__icon"])
|
|
903
|
-
}, null, 2)) :
|
|
918
|
+
}, null, 2)) : b("", !0)
|
|
904
919
|
])
|
|
905
920
|
]),
|
|
906
921
|
_: 3
|
|
@@ -909,12 +924,12 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
909
924
|
}), zt = /* @__PURE__ */ v({
|
|
910
925
|
__name: "popoverDialog",
|
|
911
926
|
setup(e) {
|
|
912
|
-
return (t, o) => (
|
|
927
|
+
return (t, o) => (a(), m(A, {
|
|
913
928
|
"enter-from-class": "dai-popover-dialog--anim",
|
|
914
929
|
"leave-to-class": "dai-popover-dialog--anim"
|
|
915
930
|
}, {
|
|
916
931
|
default: c(() => [
|
|
917
|
-
V(
|
|
932
|
+
V(s(ne), { class: "dai-popover-dialog" }, {
|
|
918
933
|
default: c(() => [
|
|
919
934
|
p(t.$slots, "default")
|
|
920
935
|
]),
|
|
@@ -924,15 +939,15 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
924
939
|
_: 3
|
|
925
940
|
}));
|
|
926
941
|
}
|
|
927
|
-
}),
|
|
942
|
+
}), Lt = /* @__PURE__ */ v({
|
|
928
943
|
__name: "menuItems",
|
|
929
944
|
setup(e) {
|
|
930
|
-
return (t, o) => (
|
|
945
|
+
return (t, o) => (a(), m(A, {
|
|
931
946
|
"enter-from-class": "dai-menu-items--anim",
|
|
932
947
|
"leave-to-class": "dai-menu-items--anim"
|
|
933
948
|
}, {
|
|
934
949
|
default: c(() => [
|
|
935
|
-
V(
|
|
950
|
+
V(s(se), { class: "dai-menu-items" }, {
|
|
936
951
|
default: c(() => [
|
|
937
952
|
p(t.$slots, "default")
|
|
938
953
|
]),
|
|
@@ -942,31 +957,31 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
942
957
|
_: 3
|
|
943
958
|
}));
|
|
944
959
|
}
|
|
945
|
-
}),
|
|
960
|
+
}), at = {
|
|
946
961
|
key: 0,
|
|
947
962
|
class: "text-secondary-400 flex-shrink-0"
|
|
948
|
-
},
|
|
963
|
+
}, qt = /* @__PURE__ */ v({
|
|
949
964
|
__name: "menuItem",
|
|
950
965
|
props: {
|
|
951
966
|
icon: {}
|
|
952
967
|
},
|
|
953
968
|
setup(e) {
|
|
954
|
-
return (t, o) => (
|
|
955
|
-
default: c(({ isActive:
|
|
956
|
-
e.icon ? (
|
|
969
|
+
return (t, o) => (a(), m(s(re), { class: "dai-menu-item" }, {
|
|
970
|
+
default: c(({ isActive: l, isSelected: i }) => [
|
|
971
|
+
e.icon ? (a(), u("div", at, [
|
|
957
972
|
d("div", {
|
|
958
973
|
class: w(["h-5 w-5", e.icon])
|
|
959
974
|
}, null, 2)
|
|
960
|
-
])) :
|
|
975
|
+
])) : b("", !0),
|
|
961
976
|
p(t.$slots, "default", {
|
|
962
|
-
isActive:
|
|
963
|
-
isSelected:
|
|
977
|
+
isActive: l,
|
|
978
|
+
isSelected: i
|
|
964
979
|
})
|
|
965
980
|
]),
|
|
966
981
|
_: 3
|
|
967
982
|
}));
|
|
968
983
|
}
|
|
969
|
-
}),
|
|
984
|
+
}), Tt = /* @__PURE__ */ v({
|
|
970
985
|
__name: "tab",
|
|
971
986
|
props: {
|
|
972
987
|
id: {},
|
|
@@ -974,7 +989,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
974
989
|
value: {}
|
|
975
990
|
},
|
|
976
991
|
setup(e) {
|
|
977
|
-
return (t, o) => (
|
|
992
|
+
return (t, o) => (a(), m(s(de), {
|
|
978
993
|
id: e.id,
|
|
979
994
|
"aria-controls": e.ariaControls,
|
|
980
995
|
value: e.value,
|
|
@@ -986,25 +1001,25 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
986
1001
|
_: 3
|
|
987
1002
|
}, 8, ["id", "aria-controls", "value"]));
|
|
988
1003
|
}
|
|
989
|
-
}),
|
|
1004
|
+
}), Pt = /* @__PURE__ */ v({
|
|
990
1005
|
__name: "tabList",
|
|
991
1006
|
setup(e) {
|
|
992
|
-
const t =
|
|
993
|
-
function
|
|
1007
|
+
const t = L("tablist"), o = L("slider"), l = N({});
|
|
1008
|
+
function i() {
|
|
994
1009
|
if (!o.value) return;
|
|
995
|
-
const
|
|
996
|
-
if (!
|
|
997
|
-
const n =
|
|
998
|
-
n && (
|
|
1010
|
+
const r = t.value?.$el;
|
|
1011
|
+
if (!r) return;
|
|
1012
|
+
const n = r.querySelector("[aria-selected=true]");
|
|
1013
|
+
n && (l.value = {
|
|
999
1014
|
left: `${n.offsetLeft}px`,
|
|
1000
|
-
right: `${
|
|
1015
|
+
right: `${r.offsetWidth - n.offsetLeft - n.offsetWidth}px`,
|
|
1001
1016
|
transition: o.value.offsetLeft > n.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
|
|
1002
1017
|
});
|
|
1003
1018
|
}
|
|
1004
|
-
return
|
|
1019
|
+
return I(() => we(i)), (r, n) => (a(), m(s(ue), {
|
|
1005
1020
|
ref_key: "tablist",
|
|
1006
1021
|
ref: t,
|
|
1007
|
-
onClickPassive:
|
|
1022
|
+
onClickPassive: i,
|
|
1008
1023
|
class: "dai-tab-list"
|
|
1009
1024
|
}, {
|
|
1010
1025
|
default: c(() => [
|
|
@@ -1012,14 +1027,14 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1012
1027
|
ref_key: "slider",
|
|
1013
1028
|
ref: o,
|
|
1014
1029
|
class: "dai-tab-list__slider",
|
|
1015
|
-
style: U(
|
|
1030
|
+
style: U(l.value)
|
|
1016
1031
|
}, null, 4),
|
|
1017
|
-
p(
|
|
1032
|
+
p(r.$slots, "default")
|
|
1018
1033
|
]),
|
|
1019
1034
|
_: 3
|
|
1020
1035
|
}, 512));
|
|
1021
1036
|
}
|
|
1022
|
-
}),
|
|
1037
|
+
}), lt = ["id"], At = /* @__PURE__ */ v({
|
|
1023
1038
|
inheritAttrs: !1,
|
|
1024
1039
|
__name: "offcanvas",
|
|
1025
1040
|
props: /* @__PURE__ */ M({
|
|
@@ -1035,22 +1050,22 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1035
1050
|
}),
|
|
1036
1051
|
emits: ["update:modelValue"],
|
|
1037
1052
|
setup(e) {
|
|
1038
|
-
const t = e, o =
|
|
1039
|
-
|
|
1040
|
-
if (!t.push || (
|
|
1053
|
+
const t = e, o = x(e, "modelValue"), l = t.id ?? q(), { classList: i } = xe(document.body, "nui-body-push");
|
|
1054
|
+
P(o, () => {
|
|
1055
|
+
if (!t.push || (i.splice(1), !o.value))
|
|
1041
1056
|
return;
|
|
1042
1057
|
let n = "nui-body-push--" + t.position;
|
|
1043
|
-
t.lg && (n += "--lg"), t.xl && (n += "--xl"),
|
|
1058
|
+
t.lg && (n += "--lg"), t.xl && (n += "--xl"), i.push(n);
|
|
1044
1059
|
});
|
|
1045
|
-
function
|
|
1046
|
-
n.target.closest(`#${
|
|
1060
|
+
function r(n) {
|
|
1061
|
+
n.target.closest(`#${l}`) || t.closeOnOutsideClick && (o.value = !1);
|
|
1047
1062
|
}
|
|
1048
|
-
return
|
|
1049
|
-
window.addEventListener("click",
|
|
1050
|
-
}),
|
|
1051
|
-
window.removeEventListener("click",
|
|
1052
|
-
}), (n,
|
|
1053
|
-
V(
|
|
1063
|
+
return I(() => {
|
|
1064
|
+
window.addEventListener("click", r, { passive: !0 });
|
|
1065
|
+
}), K(() => {
|
|
1066
|
+
window.removeEventListener("click", r);
|
|
1067
|
+
}), (n, y) => (a(), m(R, { to: "body" }, [
|
|
1068
|
+
V(A, {
|
|
1054
1069
|
appear: "",
|
|
1055
1070
|
"enter-from-class": "nui-offcanvas--animate-hidden",
|
|
1056
1071
|
"enter-to-class": "nui-offcanvas--animate-shown",
|
|
@@ -1060,9 +1075,9 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1060
1075
|
"leave-active-class": "ease-in-out"
|
|
1061
1076
|
}, {
|
|
1062
1077
|
default: c(() => [
|
|
1063
|
-
o.value ? (
|
|
1078
|
+
o.value ? (a(), u("div", $({
|
|
1064
1079
|
key: 0,
|
|
1065
|
-
id:
|
|
1080
|
+
id: s(l)
|
|
1066
1081
|
}, n.$attrs, {
|
|
1067
1082
|
class: ["nui-offcanvas", {
|
|
1068
1083
|
[`nui-offcanvas--${e.position}`]: !0,
|
|
@@ -1072,48 +1087,48 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1072
1087
|
}]
|
|
1073
1088
|
}), [
|
|
1074
1089
|
p(n.$slots, "default")
|
|
1075
|
-
], 16,
|
|
1090
|
+
], 16, lt)) : b("", !0)
|
|
1076
1091
|
]),
|
|
1077
1092
|
_: 3
|
|
1078
1093
|
})
|
|
1079
1094
|
]));
|
|
1080
1095
|
}
|
|
1081
|
-
}),
|
|
1096
|
+
}), it = {
|
|
1082
1097
|
key: 0,
|
|
1083
1098
|
role: "alert"
|
|
1084
|
-
},
|
|
1099
|
+
}, nt = {
|
|
1085
1100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1086
1101
|
fill: "none",
|
|
1087
1102
|
viewBox: "0 0 24 24",
|
|
1088
1103
|
stroke: "currentColor"
|
|
1089
|
-
},
|
|
1104
|
+
}, st = {
|
|
1090
1105
|
key: 0,
|
|
1091
1106
|
"stroke-linecap": "round",
|
|
1092
1107
|
"stroke-linejoin": "round",
|
|
1093
1108
|
"stroke-width": "2",
|
|
1094
1109
|
d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1095
|
-
},
|
|
1110
|
+
}, rt = {
|
|
1096
1111
|
key: 1,
|
|
1097
1112
|
"stroke-linecap": "round",
|
|
1098
1113
|
"stroke-linejoin": "round",
|
|
1099
1114
|
"stroke-width": "2",
|
|
1100
1115
|
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1101
|
-
},
|
|
1116
|
+
}, dt = {
|
|
1102
1117
|
key: 2,
|
|
1103
1118
|
"stroke-linecap": "round",
|
|
1104
1119
|
"stroke-linejoin": "round",
|
|
1105
1120
|
"stroke-width": "2",
|
|
1106
1121
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
1107
|
-
},
|
|
1122
|
+
}, ut = {
|
|
1108
1123
|
key: 3,
|
|
1109
1124
|
"stroke-linecap": "round",
|
|
1110
1125
|
"stroke-linejoin": "round",
|
|
1111
1126
|
"stroke-width": "2",
|
|
1112
1127
|
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1113
|
-
},
|
|
1128
|
+
}, ct = { class: "dai-notification__content" }, ft = {
|
|
1114
1129
|
key: 0,
|
|
1115
1130
|
class: "dai-notification__content__detail"
|
|
1116
|
-
},
|
|
1131
|
+
}, mt = /* @__PURE__ */ v({
|
|
1117
1132
|
__name: "notification",
|
|
1118
1133
|
props: /* @__PURE__ */ M({
|
|
1119
1134
|
color: {},
|
|
@@ -1128,34 +1143,34 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1128
1143
|
}),
|
|
1129
1144
|
emits: ["update:modelValue"],
|
|
1130
1145
|
setup(e) {
|
|
1131
|
-
const t = e, o =
|
|
1132
|
-
let
|
|
1133
|
-
function
|
|
1134
|
-
clearTimeout(
|
|
1146
|
+
const t = e, o = x(e, "modelValue");
|
|
1147
|
+
let l;
|
|
1148
|
+
function i() {
|
|
1149
|
+
clearTimeout(l), o.value && t.timeout && (l = setTimeout(() => o.value = !1, t.timeout));
|
|
1135
1150
|
}
|
|
1136
|
-
return
|
|
1151
|
+
return P(o, i, { immediate: !0 }), (r, n) => o.value ? (a(), u("div", it, [
|
|
1137
1152
|
d("div", {
|
|
1138
1153
|
class: w(["dai-notification", [`dai-notification--${e.color || "secondary"}`]])
|
|
1139
1154
|
}, [
|
|
1140
|
-
e.icon ? (
|
|
1155
|
+
e.icon ? (a(), u("div", {
|
|
1141
1156
|
key: 0,
|
|
1142
1157
|
class: w(["dai-notification__icon", [`dai-notification__icon--${e.icon}`]])
|
|
1143
1158
|
}, [
|
|
1144
|
-
(
|
|
1145
|
-
e.icon == "success" ? (
|
|
1159
|
+
(a(), u("svg", nt, [
|
|
1160
|
+
e.icon == "success" ? (a(), u("path", st)) : e.icon == "info" ? (a(), u("path", rt)) : e.icon == "warning" ? (a(), u("path", dt)) : e.icon == "danger" ? (a(), u("path", ut)) : b("", !0)
|
|
1146
1161
|
]))
|
|
1147
|
-
], 2)) :
|
|
1148
|
-
d("div",
|
|
1162
|
+
], 2)) : b("", !0),
|
|
1163
|
+
d("div", ct, [
|
|
1149
1164
|
d("div", {
|
|
1150
1165
|
class: w(["dai-notification__content__message", {
|
|
1151
1166
|
"dai-notification__content__message--bold": e.detail
|
|
1152
1167
|
}])
|
|
1153
1168
|
}, k(e.message), 3),
|
|
1154
|
-
e.detail ? (
|
|
1169
|
+
e.detail ? (a(), u("div", ft, k(e.detail), 1)) : b("", !0)
|
|
1155
1170
|
]),
|
|
1156
|
-
e.dismissible ? (
|
|
1171
|
+
e.dismissible ? (a(), u("div", {
|
|
1157
1172
|
key: 1,
|
|
1158
|
-
onClick: n[0] || (n[0] = (
|
|
1173
|
+
onClick: n[0] || (n[0] = (y) => o.value = !1),
|
|
1159
1174
|
class: "dai-notification__dismiss"
|
|
1160
1175
|
}, [...n[1] || (n[1] = [
|
|
1161
1176
|
d("svg", {
|
|
@@ -1171,11 +1186,11 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1171
1186
|
d: "M6 18L18 6M6 6l12 12"
|
|
1172
1187
|
})
|
|
1173
1188
|
], -1)
|
|
1174
|
-
])])) :
|
|
1189
|
+
])])) : b("", !0)
|
|
1175
1190
|
], 2)
|
|
1176
|
-
])) :
|
|
1191
|
+
])) : b("", !0);
|
|
1177
1192
|
}
|
|
1178
|
-
}),
|
|
1193
|
+
}), jt = /* @__PURE__ */ v({
|
|
1179
1194
|
__name: "notificationQueue",
|
|
1180
1195
|
props: /* @__PURE__ */ M({
|
|
1181
1196
|
length: { default: 3 },
|
|
@@ -1189,24 +1204,24 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1189
1204
|
}),
|
|
1190
1205
|
emits: ["update:queue"],
|
|
1191
1206
|
setup(e) {
|
|
1192
|
-
const t = e, o =
|
|
1193
|
-
let
|
|
1194
|
-
function
|
|
1195
|
-
o.value.length === 0 ||
|
|
1207
|
+
const t = e, o = x(e, "queue"), l = N([]);
|
|
1208
|
+
let i = 0;
|
|
1209
|
+
function r() {
|
|
1210
|
+
o.value.length === 0 || l.value.length >= t.length || (l.value.push({ ...o.value[0], id: i++, show: !0 }), o.value.shift());
|
|
1196
1211
|
}
|
|
1197
|
-
function n(
|
|
1212
|
+
function n(h) {
|
|
1198
1213
|
setTimeout(() => {
|
|
1199
|
-
|
|
1200
|
-
(
|
|
1201
|
-
),
|
|
1214
|
+
l.value = l.value.filter(
|
|
1215
|
+
(g) => g.id !== h
|
|
1216
|
+
), r();
|
|
1202
1217
|
}, 200);
|
|
1203
1218
|
}
|
|
1204
|
-
|
|
1205
|
-
const
|
|
1206
|
-
const
|
|
1207
|
-
return t.positionX === "right" ?
|
|
1219
|
+
P(o, r, { immediate: !0, deep: !0 });
|
|
1220
|
+
const y = _(() => {
|
|
1221
|
+
const h = ["dai-notification-queue__item--anim"];
|
|
1222
|
+
return t.positionX === "right" ? h.push("dai-notification-queue__item--anim-x-right") : t.positionX === "left" ? h.push("dai-notification-queue__item--anim-x-left") : t.positionX === "center" && t.positionY === "top" ? h.push("dai-notification-queue__item--anim-y-top") : t.positionX === "center" && t.positionY === "bottom" && h.push("dai-notification-queue__item--anim-y-bottom"), h.join(" ");
|
|
1208
1223
|
});
|
|
1209
|
-
return (
|
|
1224
|
+
return (h, g) => (a(), u("div", {
|
|
1210
1225
|
class: w(["dai-notification-queue", {
|
|
1211
1226
|
"dai-notification-queue--fixed": e.position == "fixed",
|
|
1212
1227
|
"dai-notification-queue--absolute": e.position == "absolute",
|
|
@@ -1219,13 +1234,13 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1219
1234
|
}, [
|
|
1220
1235
|
V(ke, {
|
|
1221
1236
|
appear: "",
|
|
1222
|
-
"enter-from-class":
|
|
1237
|
+
"enter-from-class": y.value,
|
|
1223
1238
|
"enter-active-class": "dai-notification-queue__item--anim-in",
|
|
1224
|
-
"leave-to-class":
|
|
1239
|
+
"leave-to-class": y.value,
|
|
1225
1240
|
"leave-active-class": "dai-notification-queue__item--anim-out"
|
|
1226
1241
|
}, {
|
|
1227
1242
|
default: c(() => [
|
|
1228
|
-
(
|
|
1243
|
+
(a(!0), u(j, null, X(l.value, (f) => (a(), m(mt, {
|
|
1229
1244
|
key: f.id,
|
|
1230
1245
|
color: f.color,
|
|
1231
1246
|
icon: f.type,
|
|
@@ -1241,7 +1256,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1241
1256
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1242
1257
|
], 2));
|
|
1243
1258
|
}
|
|
1244
|
-
}),
|
|
1259
|
+
}), vt = ["aria-valuenow"], It = /* @__PURE__ */ v({
|
|
1245
1260
|
__name: "progressbar",
|
|
1246
1261
|
props: {
|
|
1247
1262
|
value: {},
|
|
@@ -1251,7 +1266,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1251
1266
|
},
|
|
1252
1267
|
setup(e) {
|
|
1253
1268
|
const t = e, o = _(() => t.value === void 0);
|
|
1254
|
-
return (
|
|
1269
|
+
return (l, i) => (a(), u("div", {
|
|
1255
1270
|
class: w(["overflow-hidden text-xs w-full flex-1", {
|
|
1256
1271
|
rounded: e.rounded,
|
|
1257
1272
|
"bg-primary-200": e.color == "primary",
|
|
@@ -1277,12 +1292,12 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1277
1292
|
"progress-infinite": o.value
|
|
1278
1293
|
}, "h-full shadow-none relative text-center whitespace-nowrap text-white justify-center"])
|
|
1279
1294
|
}, null, 6)
|
|
1280
|
-
], 14,
|
|
1295
|
+
], 14, vt));
|
|
1281
1296
|
}
|
|
1282
|
-
}),
|
|
1297
|
+
}), pt = {
|
|
1283
1298
|
key: 0,
|
|
1284
1299
|
class: "z-50"
|
|
1285
|
-
},
|
|
1300
|
+
}, ht = { class: "fixed inset-0 overflow-y-auto" }, bt = { class: "modal__dialog" }, Ot = /* @__PURE__ */ v({
|
|
1286
1301
|
inheritAttrs: !1,
|
|
1287
1302
|
__name: "modal",
|
|
1288
1303
|
props: {
|
|
@@ -1291,35 +1306,35 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1291
1306
|
},
|
|
1292
1307
|
emits: ["update:modelValue"],
|
|
1293
1308
|
setup(e) {
|
|
1294
|
-
const t =
|
|
1309
|
+
const t = x(e, "modelValue");
|
|
1295
1310
|
function o() {
|
|
1296
1311
|
t.value = !1;
|
|
1297
1312
|
}
|
|
1298
|
-
return
|
|
1299
|
-
|
|
1300
|
-
}), (
|
|
1301
|
-
V(
|
|
1313
|
+
return P(t, (l) => {
|
|
1314
|
+
l ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
|
|
1315
|
+
}), (l, i) => (a(), m(R, { to: "body" }, [
|
|
1316
|
+
V(A, {
|
|
1302
1317
|
appear: "",
|
|
1303
1318
|
name: "modal",
|
|
1304
1319
|
duration: { enter: 300, leave: 200 }
|
|
1305
1320
|
}, {
|
|
1306
1321
|
default: c(() => [
|
|
1307
|
-
t.value ? (
|
|
1308
|
-
|
|
1322
|
+
t.value ? (a(), u("div", pt, [
|
|
1323
|
+
i[0] || (i[0] = d("div", {
|
|
1309
1324
|
class: "modal__backdrop fixed inset-0 bg-primary-50/60 backdrop-blur-sm",
|
|
1310
1325
|
"aria-hidden": "true"
|
|
1311
1326
|
}, null, -1)),
|
|
1312
|
-
d("div",
|
|
1327
|
+
d("div", ht, [
|
|
1313
1328
|
d("div", {
|
|
1314
1329
|
onClick: $e(o, ["self"]),
|
|
1315
1330
|
class: "min-h-full flex items-center justify-center p-4 sm:p-6"
|
|
1316
1331
|
}, [
|
|
1317
|
-
d("div",
|
|
1318
|
-
p(
|
|
1332
|
+
d("div", bt, [
|
|
1333
|
+
p(l.$slots, "default", { close: o })
|
|
1319
1334
|
])
|
|
1320
1335
|
])
|
|
1321
1336
|
])
|
|
1322
|
-
])) :
|
|
1337
|
+
])) : b("", !0)
|
|
1323
1338
|
]),
|
|
1324
1339
|
_: 3
|
|
1325
1340
|
})
|
|
@@ -1327,32 +1342,32 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
|
|
|
1327
1342
|
}
|
|
1328
1343
|
});
|
|
1329
1344
|
export {
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1345
|
+
Et as Btn,
|
|
1346
|
+
Vt as Checkbox,
|
|
1347
|
+
Le as Combobox,
|
|
1348
|
+
Te as ComboboxButton,
|
|
1349
|
+
kt as ComboboxInput,
|
|
1350
|
+
je as ComboboxOption,
|
|
1351
|
+
Pe as ComboboxOptions,
|
|
1352
|
+
$t as Input,
|
|
1353
|
+
Ut as Menu,
|
|
1354
|
+
qt as MenuItem,
|
|
1355
|
+
Lt as MenuItems,
|
|
1356
|
+
Ot as Modal,
|
|
1357
|
+
mt as Notification,
|
|
1358
|
+
jt as NotificationQueue,
|
|
1359
|
+
At as Offcanvas,
|
|
1360
|
+
Nt as Popover,
|
|
1346
1361
|
zt as PopoverDialog,
|
|
1347
1362
|
It as Progressbar,
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1363
|
+
Mt as Radio,
|
|
1364
|
+
xt as Select,
|
|
1365
|
+
_t as Selectbox,
|
|
1366
|
+
Ct as Switch,
|
|
1367
|
+
Tt as Tab,
|
|
1368
|
+
Xt as TabContainer,
|
|
1369
|
+
Pt as TabList,
|
|
1370
|
+
Dt as TabPanel,
|
|
1371
|
+
Bt as Textarea,
|
|
1357
1372
|
xe as useClassList
|
|
1358
1373
|
};
|