@defaultusr/dai-ui 1.0.7 → 1.0.8
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 +397 -382
- package/dist/types/components/btn.vue.d.ts +1 -1
- package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
- package/dist/types/components/combobox/comboboxInput.vue.d.ts +1 -1
- package/dist/types/components/combobox/comboboxOption.vue.d.ts +1 -1
- package/dist/types/components/combobox/comboboxOptions.vue.d.ts +1 -1
- package/dist/types/components/form/checkbox.vue.d.ts +4 -2
- package/dist/types/components/form/formControl/btn.vue.d.ts +1 -1
- package/dist/types/components/form/formControl/formControl.vue.d.ts +1 -1
- package/dist/types/components/form/formControl/hint.vue.d.ts +1 -1
- package/dist/types/components/form/formControl/inputGroup.vue.d.ts +1 -1
- package/dist/types/components/form/formControl/label.vue.d.ts +1 -1
- package/dist/types/components/form/input.vue.d.ts +1 -1
- package/dist/types/components/form/radio.vue.d.ts +1 -1
- package/dist/types/components/form/select.vue.d.ts +1 -1
- package/dist/types/components/form/textarea.vue.d.ts +1 -1
- package/dist/types/components/formControl.vue.d.ts +1 -1
- package/dist/types/components/menu/menuItem.vue.d.ts +1 -1
- package/dist/types/components/menu/menuItems.vue.d.ts +1 -1
- package/dist/types/components/modal.vue.d.ts +1 -1
- package/dist/types/components/notifications/notification.vue.d.ts +1 -1
- package/dist/types/components/notifications/notificationQueue.vue.d.ts +1 -1
- package/dist/types/components/offcanvas.vue.d.ts +1 -1
- package/dist/types/components/popoverDialog.vue.d.ts +1 -1
- package/dist/types/components/progressbar.vue.d.ts +1 -1
- package/dist/types/components/switch.vue.d.ts +13 -1
- package/dist/types/components/tabs/tab.vue.d.ts +1 -1
- package/dist/types/components/tabs/tabList.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useFormControl as
|
|
2
|
-
import { Menu as
|
|
3
|
-
import { reactive as de, watch as
|
|
4
|
-
import './assets/main.css';function
|
|
1
|
+
import { useFormControl as S, PopoverDialog as ee, Combobox as oe, ComboboxInput as te, ComboboxOptions as ae, ComboboxOption as le, MenuItems as ne, MenuItem as ie, Tab as se, TabList as re } from "vue-composable-ui";
|
|
2
|
+
import { Menu as Oo, Popover as No, TabContainer as Uo, TabPanel as Xo } from "vue-composable-ui";
|
|
3
|
+
import { reactive as de, watch as T, onUnmounted as F, defineComponent as p, createElementBlock as u, openBlock as n, renderSlot as b, createTextVNode as L, toDisplayString as _, normalizeClass as k, createBlock as h, createCommentVNode as m, createElementVNode as r, useId as z, computed as B, unref as c, createVNode as M, withCtx as f, Transition as A, mergeModels as I, useModel as w, useTemplateRef as q, ref as U, onMounted as j, mergeProps as C, withDirectives as P, vModelText as ue, Fragment as Y, renderList as R, vModelSelect as ce, vModelCheckbox as me, vModelRadio as fe, resolveDynamicComponent as pe, nextTick as ve, normalizeStyle as N, Teleport as G, TransitionGroup as he, withModifiers as be } from "vue";
|
|
4
|
+
import './assets/main.css';function ye(s, ...e) {
|
|
5
5
|
let a = [];
|
|
6
6
|
const t = de(e);
|
|
7
7
|
function o() {
|
|
8
|
-
t.length && (
|
|
8
|
+
t.length && (s.classList.add(...t), a = [...t]);
|
|
9
9
|
}
|
|
10
10
|
function l() {
|
|
11
|
-
|
|
11
|
+
s.classList.remove(...a);
|
|
12
12
|
}
|
|
13
|
-
return
|
|
13
|
+
return T(
|
|
14
14
|
t,
|
|
15
15
|
() => {
|
|
16
16
|
l(), o();
|
|
@@ -20,27 +20,27 @@ import './assets/main.css';function _e(i, ...e) {
|
|
|
20
20
|
classList: t
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const ge = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
24
24
|
__name: "label",
|
|
25
25
|
props: {
|
|
26
26
|
text: {}
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
return (e, a) => (n(),
|
|
28
|
+
setup(s) {
|
|
29
|
+
return (e, a) => (n(), u("label", ge, [
|
|
30
30
|
b(e.$slots, "default", {}, () => [
|
|
31
|
-
|
|
31
|
+
L(_(e.text), 1)
|
|
32
32
|
])
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), _e = { class: "dai-hint" }, X = /* @__PURE__ */ p({
|
|
36
36
|
__name: "hint",
|
|
37
37
|
props: {
|
|
38
38
|
text: {}
|
|
39
39
|
},
|
|
40
|
-
setup(
|
|
41
|
-
return (e, a) => (n(),
|
|
40
|
+
setup(s) {
|
|
41
|
+
return (e, a) => (n(), u("div", _e, [
|
|
42
42
|
b(e.$slots, "default", {}, () => [
|
|
43
|
-
|
|
43
|
+
L(_(e.text), 1)
|
|
44
44
|
])
|
|
45
45
|
]));
|
|
46
46
|
}
|
|
@@ -57,9 +57,9 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
|
57
57
|
lg: { type: Boolean },
|
|
58
58
|
sm: { type: Boolean }
|
|
59
59
|
},
|
|
60
|
-
setup(
|
|
61
|
-
return (e, a) => (n(),
|
|
62
|
-
class:
|
|
60
|
+
setup(s) {
|
|
61
|
+
return (e, a) => (n(), u("div", {
|
|
62
|
+
class: k(["dai-form-control__input-group", {
|
|
63
63
|
"dai-form-control__input-group--labeled": !!e.label,
|
|
64
64
|
"dai-form-control__input-group--outlined": e.outlined,
|
|
65
65
|
"dai-form-control__input-group--muted": e.muted,
|
|
@@ -76,7 +76,7 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
|
76
76
|
for: e.labelFor,
|
|
77
77
|
class: "dai-form-control__input-group__label"
|
|
78
78
|
}, null, 8, ["text", "for"])) : m("", !0),
|
|
79
|
-
|
|
79
|
+
r("div", ke, [
|
|
80
80
|
b(e.$slots, "default")
|
|
81
81
|
])
|
|
82
82
|
], 2));
|
|
@@ -104,10 +104,10 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
|
104
104
|
sm: { type: Boolean },
|
|
105
105
|
autocomplete: { type: [String, Boolean], default: "off" }
|
|
106
106
|
},
|
|
107
|
-
setup(
|
|
108
|
-
const e =
|
|
109
|
-
return (o, l) => (n(),
|
|
110
|
-
class:
|
|
107
|
+
setup(s) {
|
|
108
|
+
const e = s, a = e.id || z(), t = B(() => typeof e.autocomplete == "string" ? e.autocomplete : e.autocomplete ? "on" : "off");
|
|
109
|
+
return (o, l) => (n(), u("div", {
|
|
110
|
+
class: k(["dai-form-control", {
|
|
111
111
|
[o.$attrs.class]: o.$attrs.class,
|
|
112
112
|
"dai-form-control--label-inline": o.labelInline,
|
|
113
113
|
"dai-form-control--invalid": o.invalid,
|
|
@@ -119,8 +119,8 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
|
119
119
|
for: c(a),
|
|
120
120
|
text: o.label
|
|
121
121
|
}, null, 8, ["for", "text"])) : m("", !0),
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
r("div", $e, [
|
|
123
|
+
M(we, {
|
|
124
124
|
label: o.labelInside ? o.label : void 0,
|
|
125
125
|
"label-for": c(a),
|
|
126
126
|
outlined: o.outlined,
|
|
@@ -131,7 +131,7 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
|
131
131
|
disabled: o.disabled,
|
|
132
132
|
invalid: o.invalid
|
|
133
133
|
}, {
|
|
134
|
-
default:
|
|
134
|
+
default: f(() => [
|
|
135
135
|
b(o.$slots, "default", {
|
|
136
136
|
attrs: { id: c(a), disabled: o.disabled, autocomplete: t.value, ...o.$attrs, class: "" }
|
|
137
137
|
})
|
|
@@ -142,20 +142,20 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
|
142
142
|
key: 0,
|
|
143
143
|
text: o.hint
|
|
144
144
|
}, null, 8, ["text"])) : m("", !0),
|
|
145
|
-
|
|
146
|
-
default:
|
|
147
|
-
o.validationMessage ? (n(),
|
|
148
|
-
l[0] || (l[0] =
|
|
145
|
+
M(A, { name: "dai-form-control__validation-message-transition" }, {
|
|
146
|
+
default: f(() => [
|
|
147
|
+
o.validationMessage ? (n(), u("div", Be, [
|
|
148
|
+
l[0] || (l[0] = r("svg", {
|
|
149
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
150
|
viewBox: "0 0 256 256",
|
|
151
151
|
class: ""
|
|
152
152
|
}, [
|
|
153
|
-
|
|
153
|
+
r("path", {
|
|
154
154
|
fill: "currentColor",
|
|
155
155
|
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"
|
|
156
156
|
})
|
|
157
157
|
], -1)),
|
|
158
|
-
|
|
158
|
+
L(" " + _(o.validationMessage), 1)
|
|
159
159
|
])) : m("", !0)
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
@@ -163,8 +163,8 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
|
163
163
|
])
|
|
164
164
|
], 2));
|
|
165
165
|
}
|
|
166
|
-
}), Ve = (
|
|
167
|
-
const a =
|
|
166
|
+
}), Ve = (s, e) => {
|
|
167
|
+
const a = s.__vccOpts || s;
|
|
168
168
|
for (const [t, o] of e)
|
|
169
169
|
a[t] = o;
|
|
170
170
|
return a;
|
|
@@ -174,9 +174,9 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
|
|
|
174
174
|
tabindex: "-1",
|
|
175
175
|
"aria-hidden": "true"
|
|
176
176
|
};
|
|
177
|
-
function Ie(
|
|
178
|
-
return n(),
|
|
179
|
-
b(
|
|
177
|
+
function Ie(s, e) {
|
|
178
|
+
return n(), u("button", Ce, [
|
|
179
|
+
b(s.$slots, "default")
|
|
180
180
|
]);
|
|
181
181
|
}
|
|
182
182
|
const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "title", "value"], Le = {
|
|
@@ -191,7 +191,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
191
191
|
fill: "none",
|
|
192
192
|
viewBox: "0 0 24 24",
|
|
193
193
|
stroke: "currentColor"
|
|
194
|
-
},
|
|
194
|
+
}, ho = /* @__PURE__ */ p({
|
|
195
195
|
__name: "input",
|
|
196
196
|
props: /* @__PURE__ */ I({
|
|
197
197
|
type: { default: "text" },
|
|
@@ -222,60 +222,60 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
222
222
|
filesModifiers: {}
|
|
223
223
|
}),
|
|
224
224
|
emits: ["update:modelValue", "update:files"],
|
|
225
|
-
setup(
|
|
226
|
-
const e =
|
|
225
|
+
setup(s) {
|
|
226
|
+
const e = s, a = w(s, "modelValue"), t = w(s, "files", {
|
|
227
227
|
set($) {
|
|
228
228
|
return o.value && (o.value.files = $), $;
|
|
229
229
|
}
|
|
230
|
-
}), o =
|
|
230
|
+
}), o = q("formElement"), { isValid: l, validationMessage: i, validate: v } = S(
|
|
231
231
|
o,
|
|
232
232
|
e.validators,
|
|
233
233
|
e.showValidationError
|
|
234
|
-
),
|
|
235
|
-
|
|
234
|
+
), d = U(!1);
|
|
235
|
+
T(a, () => {
|
|
236
236
|
t.value = o.value?.files || null;
|
|
237
237
|
});
|
|
238
|
-
let
|
|
239
|
-
const
|
|
238
|
+
let g;
|
|
239
|
+
const y = B(() => e.type === "password" ? d.value ? "text" : "password" : e.type), E = B(() => e.mask ? e.mask : e.type === "tel" ? {
|
|
240
240
|
mask: "{+7} (000) 000-00-00"
|
|
241
241
|
} : e.mask), K = B(() => e.pattern ? e.pattern : e.type === "tel" ? "^\\+7 \\(9\\d{2}\\) \\d{3}-\\d{2}-\\d{2}" : e.pattern), Q = B(() => e.title ? e.title : e.type === "tel" ? "+7 (999) 888-77-66" : e.title);
|
|
242
242
|
function W() {
|
|
243
|
-
|
|
243
|
+
d.value = !d.value;
|
|
244
244
|
}
|
|
245
245
|
function J() {
|
|
246
246
|
a.value = "";
|
|
247
247
|
}
|
|
248
248
|
function x($) {
|
|
249
|
-
if (
|
|
249
|
+
if (g)
|
|
250
250
|
return;
|
|
251
|
-
const { value:
|
|
252
|
-
a.value =
|
|
251
|
+
const { value: V } = $.target;
|
|
252
|
+
a.value = V;
|
|
253
253
|
}
|
|
254
254
|
return j(() => {
|
|
255
255
|
E.value && import("./chunks/index.W-qQIppj.js").then(($) => {
|
|
256
|
-
|
|
256
|
+
g = $.default(
|
|
257
257
|
o.value,
|
|
258
258
|
E.value
|
|
259
|
-
),
|
|
260
|
-
a.value =
|
|
259
|
+
), g.on("accept", () => {
|
|
260
|
+
a.value = g.value;
|
|
261
261
|
});
|
|
262
262
|
});
|
|
263
|
-
}), ($,
|
|
264
|
-
"validation-message": $.showValidationError ? "" : c(
|
|
263
|
+
}), ($, V) => (n(), h(Z, C(e, {
|
|
264
|
+
"validation-message": $.showValidationError ? "" : c(i),
|
|
265
265
|
invalid: !c(l)
|
|
266
266
|
}), {
|
|
267
|
-
default:
|
|
267
|
+
default: f(({ attrs: D }) => [
|
|
268
268
|
b($.$slots, "prepend"),
|
|
269
|
-
|
|
269
|
+
r("input", C({
|
|
270
270
|
ref_key: "formElement",
|
|
271
271
|
ref: o
|
|
272
272
|
}, D, {
|
|
273
|
-
type:
|
|
273
|
+
type: y.value,
|
|
274
274
|
pattern: K.value,
|
|
275
275
|
title: Q.value,
|
|
276
276
|
value: a.value,
|
|
277
277
|
onInputPassive: x,
|
|
278
|
-
onKeyupPassive:
|
|
278
|
+
onKeyupPassive: V[0] || (V[0] = (fo) => !c(l) && c(v)()),
|
|
279
279
|
class: "dai-form-control__input"
|
|
280
280
|
}), null, 16, Ee),
|
|
281
281
|
b($.$slots, "append"),
|
|
@@ -283,28 +283,28 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
283
283
|
key: 0,
|
|
284
284
|
onClick: W
|
|
285
285
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
default: f(() => [
|
|
287
|
+
d.value ? (n(), u("svg", qe, [...V[2] || (V[2] = [
|
|
288
|
+
r("path", {
|
|
289
289
|
"stroke-linecap": "round",
|
|
290
290
|
"stroke-linejoin": "round",
|
|
291
291
|
"stroke-width": "2",
|
|
292
292
|
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"
|
|
293
293
|
}, null, -1)
|
|
294
|
-
]))) : (n(),
|
|
295
|
-
|
|
294
|
+
])])) : (n(), u("svg", Le, [...V[1] || (V[1] = [
|
|
295
|
+
r("path", {
|
|
296
296
|
"stroke-linecap": "round",
|
|
297
297
|
"stroke-linejoin": "round",
|
|
298
298
|
"stroke-width": "2",
|
|
299
299
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
300
300
|
}, null, -1),
|
|
301
|
-
|
|
301
|
+
r("path", {
|
|
302
302
|
"stroke-linecap": "round",
|
|
303
303
|
"stroke-linejoin": "round",
|
|
304
304
|
"stroke-width": "2",
|
|
305
305
|
d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
|
|
306
306
|
}, null, -1)
|
|
307
|
-
])))
|
|
307
|
+
])]))
|
|
308
308
|
]),
|
|
309
309
|
_: 1
|
|
310
310
|
})) : m("", !0),
|
|
@@ -312,29 +312,28 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
312
312
|
key: 1,
|
|
313
313
|
onClick: J
|
|
314
314
|
}, {
|
|
315
|
-
default:
|
|
316
|
-
|
|
315
|
+
default: f(() => [...V[3] || (V[3] = [
|
|
316
|
+
r("svg", {
|
|
317
317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
318
318
|
fill: "none",
|
|
319
319
|
viewBox: "0 0 24 24",
|
|
320
320
|
stroke: "currentColor"
|
|
321
321
|
}, [
|
|
322
|
-
|
|
322
|
+
r("path", {
|
|
323
323
|
"stroke-linecap": "round",
|
|
324
324
|
"stroke-linejoin": "round",
|
|
325
325
|
"stroke-width": "2",
|
|
326
326
|
d: "M6 18L18 6M6 6l12 12"
|
|
327
327
|
})
|
|
328
328
|
], -1)
|
|
329
|
-
])),
|
|
330
|
-
_: 1
|
|
331
|
-
__: [3]
|
|
329
|
+
])]),
|
|
330
|
+
_: 1
|
|
332
331
|
})) : m("", !0)
|
|
333
332
|
]),
|
|
334
333
|
_: 3
|
|
335
334
|
}, 16, ["validation-message", "invalid"]));
|
|
336
335
|
}
|
|
337
|
-
}),
|
|
336
|
+
}), bo = /* @__PURE__ */ p({
|
|
338
337
|
__name: "textarea",
|
|
339
338
|
props: /* @__PURE__ */ I({
|
|
340
339
|
autosize: { type: Boolean },
|
|
@@ -345,31 +344,31 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
345
344
|
modelModifiers: {}
|
|
346
345
|
}),
|
|
347
346
|
emits: ["update:modelValue"],
|
|
348
|
-
setup(
|
|
349
|
-
const e =
|
|
347
|
+
setup(s) {
|
|
348
|
+
const e = s, a = w(s, "modelValue"), t = q("formElement"), { isValid: o, validationMessage: l, validate: i } = S(
|
|
350
349
|
t,
|
|
351
350
|
e.validators,
|
|
352
351
|
e.showValidationError
|
|
353
352
|
);
|
|
354
|
-
function
|
|
353
|
+
function v() {
|
|
355
354
|
if (!e.autosize) return;
|
|
356
|
-
const
|
|
357
|
-
|
|
355
|
+
const d = t.value, g = d.offsetHeight - d.clientHeight;
|
|
356
|
+
d.style.height = "auto", d.style.height = `${d.scrollHeight + g}px`;
|
|
358
357
|
}
|
|
359
|
-
return j(
|
|
360
|
-
"validation-message":
|
|
358
|
+
return j(v), (d, g) => (n(), h(Z, {
|
|
359
|
+
"validation-message": d.showValidationError ? "" : c(l),
|
|
361
360
|
invalid: !c(o)
|
|
362
361
|
}, {
|
|
363
|
-
default:
|
|
364
|
-
P(
|
|
362
|
+
default: f(({ attrs: y }) => [
|
|
363
|
+
P(r("textarea", C({
|
|
365
364
|
ref_key: "formElement",
|
|
366
365
|
ref: t
|
|
367
|
-
}, { ...
|
|
368
|
-
"onUpdate:modelValue":
|
|
369
|
-
onKeyupPassive:
|
|
370
|
-
onInputPassive:
|
|
366
|
+
}, { ...y }, {
|
|
367
|
+
"onUpdate:modelValue": g[0] || (g[0] = (E) => a.value = E),
|
|
368
|
+
onKeyupPassive: g[1] || (g[1] = (E) => !c(o) && c(i)()),
|
|
369
|
+
onInputPassive: v,
|
|
371
370
|
class: ["form-control__textarea", {
|
|
372
|
-
"form-control__textarea--autosize":
|
|
371
|
+
"form-control__textarea--autosize": d.autosize
|
|
373
372
|
}]
|
|
374
373
|
}), null, 16), [
|
|
375
374
|
[ue, a.value]
|
|
@@ -378,7 +377,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
378
377
|
_: 1
|
|
379
378
|
}, 8, ["validation-message", "invalid"]));
|
|
380
379
|
}
|
|
381
|
-
}), ze = ["value"],
|
|
380
|
+
}), ze = ["value"], yo = /* @__PURE__ */ p({
|
|
382
381
|
__name: "select",
|
|
383
382
|
props: /* @__PURE__ */ I({
|
|
384
383
|
options: {},
|
|
@@ -391,39 +390,39 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
391
390
|
modelModifiers: {}
|
|
392
391
|
}),
|
|
393
392
|
emits: ["update:modelValue"],
|
|
394
|
-
setup(
|
|
395
|
-
const e =
|
|
393
|
+
setup(s) {
|
|
394
|
+
const e = s, a = w(s, "modelValue"), t = q("formElement"), { isValid: o, validationMessage: l, validate: i } = S(
|
|
396
395
|
t,
|
|
397
396
|
e.validators,
|
|
398
397
|
e.showValidationError
|
|
399
398
|
);
|
|
400
|
-
return (
|
|
401
|
-
"validation-message":
|
|
399
|
+
return (v, d) => (n(), h(Z, {
|
|
400
|
+
"validation-message": v.showValidationError ? "" : c(l),
|
|
402
401
|
invalid: !c(o)
|
|
403
402
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
P(
|
|
403
|
+
default: f(({ attrs: g }) => [
|
|
404
|
+
P(r("select", C({
|
|
406
405
|
class: "dai-select",
|
|
407
406
|
ref_key: "formElement",
|
|
408
407
|
ref: t
|
|
409
|
-
}, { ...
|
|
410
|
-
"onUpdate:modelValue":
|
|
408
|
+
}, { ...g }, {
|
|
409
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => a.value = y)
|
|
411
410
|
}), [
|
|
412
|
-
b(
|
|
413
|
-
(n(!0),
|
|
414
|
-
value:
|
|
415
|
-
key:
|
|
416
|
-
},
|
|
411
|
+
b(v.$slots, "default", {}, () => [
|
|
412
|
+
(n(!0), u(Y, null, R(v.options, (y) => (n(), u("option", {
|
|
413
|
+
value: y[v.optionValue],
|
|
414
|
+
key: y[v.optionValue]
|
|
415
|
+
}, _(y[v.optionText]), 9, ze))), 128))
|
|
417
416
|
])
|
|
418
417
|
], 16), [
|
|
419
418
|
[ce, a.value]
|
|
420
419
|
]),
|
|
421
|
-
|
|
420
|
+
d[1] || (d[1] = r("svg", {
|
|
422
421
|
class: "dai-select__btn",
|
|
423
422
|
xmlns: "http://www.w3.org/2000/svg",
|
|
424
423
|
viewBox: "0 0 16 16"
|
|
425
424
|
}, [
|
|
426
|
-
|
|
425
|
+
r("path", {
|
|
427
426
|
fill: "currentColor",
|
|
428
427
|
"fill-rule": "evenodd",
|
|
429
428
|
d: "M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06",
|
|
@@ -431,14 +430,10 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
431
430
|
})
|
|
432
431
|
], -1))
|
|
433
432
|
]),
|
|
434
|
-
_: 3
|
|
435
|
-
__: [1]
|
|
433
|
+
_: 3
|
|
436
434
|
}, 8, ["validation-message", "invalid"]));
|
|
437
435
|
}
|
|
438
|
-
}), Te = ["id"],
|
|
439
|
-
key: 0,
|
|
440
|
-
class: "dai-checkbox-control__label"
|
|
441
|
-
}, ko = /* @__PURE__ */ p({
|
|
436
|
+
}), Te = ["id"], go = /* @__PURE__ */ p({
|
|
442
437
|
inheritAttrs: !1,
|
|
443
438
|
__name: "checkbox",
|
|
444
439
|
props: /* @__PURE__ */ I({
|
|
@@ -452,52 +447,60 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
452
447
|
modelModifiers: {}
|
|
453
448
|
}),
|
|
454
449
|
emits: ["update:modelValue"],
|
|
455
|
-
setup(
|
|
456
|
-
const e =
|
|
450
|
+
setup(s) {
|
|
451
|
+
const e = s, a = w(s, "modelValue"), t = z(), o = q("formElement"), { isValid: l } = S(
|
|
457
452
|
o,
|
|
458
453
|
e.validators,
|
|
459
454
|
e.showValidationError
|
|
460
455
|
);
|
|
461
|
-
return (
|
|
462
|
-
class:
|
|
456
|
+
return (i, v) => (n(), u("div", {
|
|
457
|
+
class: k(["dai-checkbox-control", i.$attrs.class])
|
|
463
458
|
}, [
|
|
464
|
-
P(
|
|
459
|
+
P(r("input", C({
|
|
465
460
|
ref_key: "formElement",
|
|
466
461
|
ref: o,
|
|
467
|
-
"onUpdate:modelValue":
|
|
468
|
-
}, { ...
|
|
462
|
+
"onUpdate:modelValue": v[0] || (v[0] = (d) => a.value = d)
|
|
463
|
+
}, { ...i.$attrs, class: "" }, {
|
|
469
464
|
id: c(t),
|
|
470
465
|
type: "checkbox",
|
|
471
466
|
class: ["dai-checkbox", {
|
|
472
|
-
[`dai-checkbox--${
|
|
467
|
+
[`dai-checkbox--${i.color}`]: i.color,
|
|
473
468
|
"dai-checkbox--invalid": !c(l)
|
|
474
469
|
}]
|
|
475
470
|
}), null, 16, Te), [
|
|
476
471
|
[me, a.value]
|
|
477
472
|
]),
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
473
|
+
i.label || i.$slots.default ? (n(), h(O, {
|
|
474
|
+
key: 0,
|
|
475
|
+
for: c(t)
|
|
476
|
+
}, {
|
|
477
|
+
default: f(() => [
|
|
478
|
+
b(i.$slots, "default", {}, () => [
|
|
479
|
+
L(_(i.label), 1)
|
|
480
|
+
])
|
|
481
|
+
]),
|
|
482
|
+
_: 3
|
|
483
|
+
}, 8, ["for"])) : m("", !0),
|
|
484
|
+
i.hint || i.$slots.hint ? (n(), h(X, {
|
|
485
|
+
key: 1,
|
|
486
|
+
class: "dai-checkbox-control__hint"
|
|
487
|
+
}, {
|
|
488
|
+
default: f(() => [
|
|
489
|
+
b(i.$slots, "hint", {}, () => [
|
|
490
|
+
L(_(i.hint), 1)
|
|
491
|
+
])
|
|
492
|
+
]),
|
|
493
|
+
_: 3
|
|
494
|
+
})) : m("", !0)
|
|
492
495
|
], 2));
|
|
493
496
|
}
|
|
494
|
-
}),
|
|
497
|
+
}), Ae = { class: "flex items-center h-5" }, Se = ["value", "id"], je = {
|
|
495
498
|
key: 0,
|
|
496
499
|
class: "text-sm"
|
|
497
|
-
},
|
|
500
|
+
}, Pe = ["for"], Oe = {
|
|
498
501
|
key: 0,
|
|
499
502
|
class: "text-secondary-500 dark:text-secondary-400"
|
|
500
|
-
},
|
|
503
|
+
}, _o = /* @__PURE__ */ p({
|
|
501
504
|
inheritAttrs: !1,
|
|
502
505
|
__name: "radio",
|
|
503
506
|
props: /* @__PURE__ */ I({
|
|
@@ -512,45 +515,45 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
512
515
|
modelModifiers: {}
|
|
513
516
|
}),
|
|
514
517
|
emits: ["update:modelValue"],
|
|
515
|
-
setup(
|
|
516
|
-
const e =
|
|
518
|
+
setup(s) {
|
|
519
|
+
const e = s, a = w(s, "modelValue"), t = z(), o = q("formElement"), { isValid: l } = S(
|
|
517
520
|
o,
|
|
518
521
|
e.validators,
|
|
519
522
|
e.showValidationError
|
|
520
523
|
);
|
|
521
|
-
return (
|
|
522
|
-
class:
|
|
524
|
+
return (i, v) => (n(), u("div", {
|
|
525
|
+
class: k(["flex items-start gap-3", i.$attrs.class])
|
|
523
526
|
}, [
|
|
524
|
-
|
|
525
|
-
P(
|
|
527
|
+
r("div", Ae, [
|
|
528
|
+
P(r("input", C({
|
|
526
529
|
type: "radio",
|
|
527
530
|
ref_key: "formElement",
|
|
528
531
|
ref: o,
|
|
529
|
-
"onUpdate:modelValue":
|
|
530
|
-
}, { ...
|
|
531
|
-
value:
|
|
532
|
+
"onUpdate:modelValue": v[0] || (v[0] = (d) => a.value = d)
|
|
533
|
+
}, { ...i.$attrs, class: "" }, {
|
|
534
|
+
value: i.value,
|
|
532
535
|
id: c(t),
|
|
533
536
|
class: ["radio", {
|
|
534
|
-
[`radio--${
|
|
537
|
+
[`radio--${i.color}`]: i.color,
|
|
535
538
|
"radio--invalid": !c(l)
|
|
536
539
|
}]
|
|
537
|
-
}), null, 16,
|
|
538
|
-
[
|
|
540
|
+
}), null, 16, Se), [
|
|
541
|
+
[fe, a.value]
|
|
539
542
|
])
|
|
540
543
|
]),
|
|
541
|
-
|
|
542
|
-
|
|
544
|
+
i.label ? (n(), u("div", je, [
|
|
545
|
+
r("label", {
|
|
543
546
|
for: c(t),
|
|
544
547
|
class: "font-medium select-none cursor-pointer"
|
|
545
|
-
},
|
|
546
|
-
|
|
548
|
+
}, _(i.label), 9, Pe),
|
|
549
|
+
i.hint ? (n(), u("p", Oe, _(i.hint), 1)) : m("", !0)
|
|
547
550
|
])) : m("", !0)
|
|
548
551
|
], 2));
|
|
549
552
|
}
|
|
550
|
-
}),
|
|
553
|
+
}), Ne = {
|
|
551
554
|
key: 0,
|
|
552
555
|
class: "dai-btn__spinner"
|
|
553
|
-
},
|
|
556
|
+
}, Ue = { class: "dai-btn__caption" }, ko = /* @__PURE__ */ p({
|
|
554
557
|
__name: "btn",
|
|
555
558
|
props: {
|
|
556
559
|
submit: { type: [Boolean, String] },
|
|
@@ -571,13 +574,13 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
571
574
|
rounded: { type: Boolean },
|
|
572
575
|
condensed: { type: Boolean }
|
|
573
576
|
},
|
|
574
|
-
setup(
|
|
575
|
-
const e =
|
|
576
|
-
return (l,
|
|
577
|
+
setup(s) {
|
|
578
|
+
const e = s, a = B(() => e.submit ? "submit" : e.reset ? "reset" : "button"), t = B(() => e.variant ? e.variant : e.plain ? "plain" : e.muted ? "muted" : e.outlined ? "outlined" : "flat"), o = B(() => e.size ? e.size : e.sm ? "small" : e.lg ? "large" : "medium");
|
|
579
|
+
return (l, i) => (n(), h(pe(l.href ? "a" : "button"), {
|
|
577
580
|
type: l.href ? void 0 : a.value,
|
|
578
581
|
form: typeof l.submit == "string" ? l.submit : void 0,
|
|
579
582
|
href: l.href,
|
|
580
|
-
class:
|
|
583
|
+
class: k(["dai-btn", {
|
|
581
584
|
[`dai-btn--${l.color}`]: l.color,
|
|
582
585
|
"dai-btn--flat": t.value === "flat",
|
|
583
586
|
"dai-btn--plain": t.value === "plain",
|
|
@@ -591,14 +594,14 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
591
594
|
"dai-btn--condensed": l.condensed
|
|
592
595
|
}])
|
|
593
596
|
}, {
|
|
594
|
-
default:
|
|
595
|
-
l.loading ? (n(),
|
|
596
|
-
|
|
597
|
+
default: f(() => [
|
|
598
|
+
l.loading ? (n(), u("span", Ne, [...i[0] || (i[0] = [
|
|
599
|
+
r("svg", {
|
|
597
600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
598
601
|
fill: "none",
|
|
599
602
|
viewBox: "0 0 24 24"
|
|
600
603
|
}, [
|
|
601
|
-
|
|
604
|
+
r("circle", {
|
|
602
605
|
opacity: "0.25",
|
|
603
606
|
cx: "12",
|
|
604
607
|
cy: "12",
|
|
@@ -606,29 +609,29 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
606
609
|
stroke: "currentColor",
|
|
607
610
|
"stroke-width": "4"
|
|
608
611
|
}),
|
|
609
|
-
|
|
612
|
+
r("path", {
|
|
610
613
|
opacity: "0.75",
|
|
611
614
|
fill: "currentColor",
|
|
612
615
|
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"
|
|
613
616
|
})
|
|
614
617
|
], -1)
|
|
615
|
-
]))) : m("", !0),
|
|
616
|
-
|
|
617
|
-
l.icon ? (n(),
|
|
618
|
+
])])) : m("", !0),
|
|
619
|
+
r("span", Ue, [
|
|
620
|
+
l.icon ? (n(), u("div", {
|
|
618
621
|
key: 0,
|
|
619
|
-
class:
|
|
622
|
+
class: k([l.icon, "dai-btn__icon"])
|
|
620
623
|
}, null, 2)) : m("", !0),
|
|
621
624
|
b(l.$slots, "default"),
|
|
622
|
-
l.iconAfter ? (n(),
|
|
625
|
+
l.iconAfter ? (n(), u("div", {
|
|
623
626
|
key: 1,
|
|
624
|
-
class:
|
|
627
|
+
class: k([l.iconAfter, "dai-btn__icon"])
|
|
625
628
|
}, null, 2)) : m("", !0)
|
|
626
629
|
])
|
|
627
630
|
]),
|
|
628
631
|
_: 3
|
|
629
632
|
}, 8, ["type", "form", "href", "class"]));
|
|
630
633
|
}
|
|
631
|
-
}),
|
|
634
|
+
}), Xe = { class: "dai-switch-control" }, Ze = ["id", "aria-checked"], wo = /* @__PURE__ */ p({
|
|
632
635
|
__name: "switch",
|
|
633
636
|
props: /* @__PURE__ */ I({
|
|
634
637
|
label: {},
|
|
@@ -638,45 +641,57 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
638
641
|
modelModifiers: {}
|
|
639
642
|
}),
|
|
640
643
|
emits: ["update:modelValue"],
|
|
641
|
-
setup(
|
|
642
|
-
const e = w(
|
|
643
|
-
return (t, o) => (n(),
|
|
644
|
-
|
|
644
|
+
setup(s) {
|
|
645
|
+
const e = w(s, "modelValue"), a = z();
|
|
646
|
+
return (t, o) => (n(), u("div", Xe, [
|
|
647
|
+
r("button", {
|
|
645
648
|
onClick: o[0] || (o[0] = (l) => e.value = !e.value),
|
|
646
649
|
id: c(a),
|
|
647
650
|
"aria-checked": e.value,
|
|
648
651
|
role: "switch",
|
|
649
652
|
type: "button",
|
|
650
653
|
tabindex: "0",
|
|
651
|
-
class:
|
|
652
|
-
}, o[1] || (o[1] = [
|
|
653
|
-
|
|
654
|
+
class: k(["dai-switch", [e.value ? "dai-switch--on" : "dai-switch--off"]])
|
|
655
|
+
}, [...o[1] || (o[1] = [
|
|
656
|
+
r("div", {
|
|
654
657
|
"aria-hidden": "true",
|
|
655
658
|
class: "dai-switch__thumb"
|
|
656
659
|
}, null, -1)
|
|
657
|
-
]), 10,
|
|
658
|
-
t.label ? (n(),
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
660
|
+
])], 10, Ze),
|
|
661
|
+
t.label || t.$slots.default ? (n(), h(O, {
|
|
662
|
+
key: 0,
|
|
663
|
+
for: c(a)
|
|
664
|
+
}, {
|
|
665
|
+
default: f(() => [
|
|
666
|
+
b(t.$slots, "default", {}, () => [
|
|
667
|
+
L(_(t.label), 1)
|
|
668
|
+
])
|
|
669
|
+
]),
|
|
670
|
+
_: 3
|
|
671
|
+
}, 8, ["for"])) : m("", !0),
|
|
672
|
+
t.hint || t.$slots.hint ? (n(), h(X, {
|
|
673
|
+
key: 1,
|
|
674
|
+
class: "dai-switch-control__hint"
|
|
675
|
+
}, {
|
|
676
|
+
default: f(() => [
|
|
677
|
+
b(t.$slots, "hint", {}, () => [
|
|
678
|
+
L(_(t.hint), 1)
|
|
679
|
+
])
|
|
680
|
+
]),
|
|
681
|
+
_: 3
|
|
682
|
+
})) : m("", !0)
|
|
668
683
|
]));
|
|
669
684
|
}
|
|
670
|
-
}),
|
|
685
|
+
}), $o = /* @__PURE__ */ p({
|
|
671
686
|
__name: "popoverDialog",
|
|
672
|
-
setup(
|
|
673
|
-
return (e, a) => (n(), h(
|
|
687
|
+
setup(s) {
|
|
688
|
+
return (e, a) => (n(), h(A, {
|
|
674
689
|
"enter-from-class": "dai-popover-dialog--anim",
|
|
675
690
|
"leave-to-class": "dai-popover-dialog--anim"
|
|
676
691
|
}, {
|
|
677
|
-
default:
|
|
678
|
-
|
|
679
|
-
default:
|
|
692
|
+
default: f(() => [
|
|
693
|
+
M(c(ee), { class: "dai-popover-dialog" }, {
|
|
694
|
+
default: f(() => [
|
|
680
695
|
b(e.$slots, "default")
|
|
681
696
|
]),
|
|
682
697
|
_: 3
|
|
@@ -685,14 +700,14 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
685
700
|
_: 3
|
|
686
701
|
}));
|
|
687
702
|
}
|
|
688
|
-
}),
|
|
703
|
+
}), De = ["id"], He = ["for"], Fe = { class: "form-control__container" }, Ye = { class: "form-control__input-group" }, Re = ["for"], Ge = {
|
|
689
704
|
key: 0,
|
|
690
705
|
class: "form-control__hint"
|
|
691
|
-
},
|
|
706
|
+
}, Ke = {
|
|
692
707
|
key: 1,
|
|
693
708
|
class: "form-control__validation-message",
|
|
694
709
|
role: "alert"
|
|
695
|
-
},
|
|
710
|
+
}, Qe = /* @__PURE__ */ p({
|
|
696
711
|
inheritAttrs: !1,
|
|
697
712
|
__name: "formControl",
|
|
698
713
|
props: {
|
|
@@ -712,11 +727,11 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
712
727
|
sm: { type: Boolean },
|
|
713
728
|
autocomplete: { type: [String, Boolean], default: "off" }
|
|
714
729
|
},
|
|
715
|
-
setup(
|
|
716
|
-
const e =
|
|
717
|
-
return (o, l) => (n(),
|
|
730
|
+
setup(s) {
|
|
731
|
+
const e = s, a = e.id || z(), t = B(() => typeof e.autocomplete == "string" ? e.autocomplete : e.autocomplete ? "on" : "off");
|
|
732
|
+
return (o, l) => (n(), u("div", {
|
|
718
733
|
id: o.containerId,
|
|
719
|
-
class:
|
|
734
|
+
class: k(["form-control", {
|
|
720
735
|
[o.$attrs.class]: o.$attrs.class,
|
|
721
736
|
"form-control--label-inline": o.labelInline,
|
|
722
737
|
"form-control--label-inside": o.labelInside,
|
|
@@ -729,71 +744,71 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
729
744
|
"form-control--sm": o.sm
|
|
730
745
|
}])
|
|
731
746
|
}, [
|
|
732
|
-
o.label && !o.labelInside ? (n(),
|
|
747
|
+
o.label && !o.labelInside ? (n(), u("label", {
|
|
733
748
|
key: 0,
|
|
734
749
|
for: c(a)
|
|
735
|
-
},
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
o.label && o.labelInside ? (n(),
|
|
750
|
+
}, _(o.label), 9, He)) : m("", !0),
|
|
751
|
+
r("div", Fe, [
|
|
752
|
+
r("div", Ye, [
|
|
753
|
+
o.label && o.labelInside ? (n(), u("label", {
|
|
739
754
|
key: 0,
|
|
740
755
|
for: c(a)
|
|
741
|
-
},
|
|
756
|
+
}, _(o.label), 9, Re)) : m("", !0),
|
|
742
757
|
b(o.$slots, "default", {
|
|
743
758
|
attrs: { id: c(a), disabled: o.disabled, autocomplete: t.value, ...o.$attrs, class: "" }
|
|
744
759
|
})
|
|
745
760
|
]),
|
|
746
|
-
o.hint ? (n(),
|
|
747
|
-
o.validationMessage ? (n(),
|
|
748
|
-
l[0] || (l[0] =
|
|
761
|
+
o.hint ? (n(), u("div", Ge, _(o.hint), 1)) : m("", !0),
|
|
762
|
+
o.validationMessage ? (n(), u("div", Ke, [
|
|
763
|
+
l[0] || (l[0] = r("svg", {
|
|
749
764
|
xmlns: "http://www.w3.org/2000/svg",
|
|
750
765
|
viewBox: "0 0 256 256",
|
|
751
766
|
class: ""
|
|
752
767
|
}, [
|
|
753
|
-
|
|
768
|
+
r("path", {
|
|
754
769
|
fill: "currentColor",
|
|
755
770
|
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"
|
|
756
771
|
})
|
|
757
772
|
], -1)),
|
|
758
|
-
|
|
773
|
+
L(" " + _(o.validationMessage), 1)
|
|
759
774
|
])) : m("", !0)
|
|
760
775
|
])
|
|
761
|
-
], 10,
|
|
776
|
+
], 10, De));
|
|
762
777
|
}
|
|
763
|
-
}),
|
|
778
|
+
}), Bo = /* @__PURE__ */ p({
|
|
764
779
|
__name: "combobox",
|
|
765
780
|
props: {
|
|
766
781
|
modelValue: {},
|
|
767
782
|
modelModifiers: {}
|
|
768
783
|
},
|
|
769
784
|
emits: ["update:modelValue"],
|
|
770
|
-
setup(
|
|
771
|
-
const e =
|
|
772
|
-
return (o, l) => (n(), h(
|
|
773
|
-
default:
|
|
774
|
-
|
|
785
|
+
setup(s) {
|
|
786
|
+
const e = s, a = w(s, "modelValue"), t = z();
|
|
787
|
+
return (o, l) => (n(), h(Qe, C(e, { containerId: c(t) }), {
|
|
788
|
+
default: f(({ attrs: i }) => [
|
|
789
|
+
M(c(oe), C({ ...i }, {
|
|
775
790
|
activatorId: c(t),
|
|
776
791
|
modelValue: a.value,
|
|
777
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
792
|
+
"onUpdate:modelValue": l[0] || (l[0] = (v) => a.value = v)
|
|
778
793
|
}), {
|
|
779
|
-
default:
|
|
794
|
+
default: f(() => [
|
|
780
795
|
b(o.$slots, "default")
|
|
781
796
|
]),
|
|
782
|
-
_:
|
|
783
|
-
},
|
|
797
|
+
_: 3
|
|
798
|
+
}, 16, ["activatorId", "modelValue"])
|
|
784
799
|
]),
|
|
785
800
|
_: 3
|
|
786
801
|
}, 16, ["containerId"]));
|
|
787
802
|
}
|
|
788
|
-
}),
|
|
803
|
+
}), Vo = /* @__PURE__ */ p({
|
|
789
804
|
__name: "comboboxInput",
|
|
790
|
-
setup(
|
|
805
|
+
setup(s) {
|
|
791
806
|
return (e, a) => (n(), h(c(te), { class: "form-control__input" }));
|
|
792
807
|
}
|
|
793
|
-
}),
|
|
808
|
+
}), Mo = /* @__PURE__ */ p({
|
|
794
809
|
__name: "comboboxOptions",
|
|
795
|
-
setup(
|
|
796
|
-
return (e, a) => (n(), h(
|
|
810
|
+
setup(s) {
|
|
811
|
+
return (e, a) => (n(), h(A, {
|
|
797
812
|
"enter-from-class": "opacity-0 scale-95",
|
|
798
813
|
"enter-to-class": "opacity-100 scale-100",
|
|
799
814
|
"enter-active-class": "transform transition ease-out duration-100",
|
|
@@ -801,12 +816,12 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
801
816
|
"leave-to-class": "opacity-0 scale-95",
|
|
802
817
|
"leave-active-class": "transform transition ease-in duration-75"
|
|
803
818
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
|
|
819
|
+
default: f(() => [
|
|
820
|
+
M(c(ae), {
|
|
806
821
|
class: "z-50 my-2 p-1 space-y-1 rounded-md overflow-hidden shadow-xl bg-white ring-1 ring-black ring-opacity-10 focus:outline-none",
|
|
807
822
|
"un-dark": "bg-dark-700 ring-dark-600"
|
|
808
823
|
}, {
|
|
809
|
-
default:
|
|
824
|
+
default: f(() => [
|
|
810
825
|
b(e.$slots, "default")
|
|
811
826
|
]),
|
|
812
827
|
_: 3
|
|
@@ -815,12 +830,12 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
815
830
|
_: 3
|
|
816
831
|
}));
|
|
817
832
|
}
|
|
818
|
-
}),
|
|
833
|
+
}), Co = /* @__PURE__ */ p({
|
|
819
834
|
__name: "comboboxOption",
|
|
820
835
|
props: {
|
|
821
836
|
value: {}
|
|
822
837
|
},
|
|
823
|
-
setup(
|
|
838
|
+
setup(s) {
|
|
824
839
|
return (e, a) => (n(), h(c(le), {
|
|
825
840
|
value: e.value,
|
|
826
841
|
class: "flex items-center px-3 py-2 cursor-pointer transition-colors text-sm rounded flex items-center gap-4 select-none outline-none",
|
|
@@ -828,7 +843,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
828
843
|
"un-aria-checked": "bg-primary-50 text-primary-500 dark:bg-dark-500 dark:text-white",
|
|
829
844
|
"un-aria-disabled": "pointer-events-none text-secondary-500 dark:text-secondary-400"
|
|
830
845
|
}, {
|
|
831
|
-
default:
|
|
846
|
+
default: f(({ isActive: t, isSelected: o }) => [
|
|
832
847
|
b(e.$slots, "default", {
|
|
833
848
|
isActive: t,
|
|
834
849
|
isSelected: o
|
|
@@ -837,16 +852,16 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
837
852
|
_: 3
|
|
838
853
|
}, 8, ["value"]));
|
|
839
854
|
}
|
|
840
|
-
}),
|
|
855
|
+
}), Io = /* @__PURE__ */ p({
|
|
841
856
|
__name: "menuItems",
|
|
842
|
-
setup(
|
|
843
|
-
return (e, a) => (n(), h(
|
|
857
|
+
setup(s) {
|
|
858
|
+
return (e, a) => (n(), h(A, {
|
|
844
859
|
"enter-from-class": "dai-menu-items--anim",
|
|
845
860
|
"leave-to-class": "dai-menu-items--anim"
|
|
846
861
|
}, {
|
|
847
|
-
default:
|
|
848
|
-
|
|
849
|
-
default:
|
|
862
|
+
default: f(() => [
|
|
863
|
+
M(c(ne), { class: "dai-menu-items" }, {
|
|
864
|
+
default: f(() => [
|
|
850
865
|
b(e.$slots, "default")
|
|
851
866
|
]),
|
|
852
867
|
_: 3
|
|
@@ -855,20 +870,20 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
855
870
|
_: 3
|
|
856
871
|
}));
|
|
857
872
|
}
|
|
858
|
-
}),
|
|
873
|
+
}), We = {
|
|
859
874
|
key: 0,
|
|
860
875
|
class: "text-secondary-400 flex-shrink-0"
|
|
861
|
-
},
|
|
876
|
+
}, Eo = /* @__PURE__ */ p({
|
|
862
877
|
__name: "menuItem",
|
|
863
878
|
props: {
|
|
864
879
|
icon: {}
|
|
865
880
|
},
|
|
866
|
-
setup(
|
|
881
|
+
setup(s) {
|
|
867
882
|
return (e, a) => (n(), h(c(ie), { class: "dai-menu-item" }, {
|
|
868
|
-
default:
|
|
869
|
-
e.icon ? (n(),
|
|
870
|
-
|
|
871
|
-
class:
|
|
883
|
+
default: f(({ isActive: t, isSelected: o }) => [
|
|
884
|
+
e.icon ? (n(), u("div", We, [
|
|
885
|
+
r("div", {
|
|
886
|
+
class: k(["h-5 w-5", e.icon])
|
|
872
887
|
}, null, 2)
|
|
873
888
|
])) : m("", !0),
|
|
874
889
|
b(e.$slots, "default", {
|
|
@@ -879,49 +894,49 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
879
894
|
_: 3
|
|
880
895
|
}));
|
|
881
896
|
}
|
|
882
|
-
}),
|
|
897
|
+
}), Lo = /* @__PURE__ */ p({
|
|
883
898
|
__name: "tab",
|
|
884
899
|
props: {
|
|
885
900
|
id: {},
|
|
886
901
|
ariaControls: {},
|
|
887
902
|
value: {}
|
|
888
903
|
},
|
|
889
|
-
setup(
|
|
904
|
+
setup(s) {
|
|
890
905
|
return (e, a) => (n(), h(c(se), {
|
|
891
906
|
id: e.id,
|
|
892
907
|
"aria-controls": e.ariaControls,
|
|
893
908
|
value: e.value,
|
|
894
909
|
class: "dai-tab"
|
|
895
910
|
}, {
|
|
896
|
-
default:
|
|
911
|
+
default: f(() => [
|
|
897
912
|
b(e.$slots, "default")
|
|
898
913
|
]),
|
|
899
914
|
_: 3
|
|
900
915
|
}, 8, ["id", "aria-controls", "value"]));
|
|
901
916
|
}
|
|
902
|
-
}),
|
|
917
|
+
}), qo = /* @__PURE__ */ p({
|
|
903
918
|
__name: "tabList",
|
|
904
|
-
setup(
|
|
905
|
-
const e =
|
|
919
|
+
setup(s) {
|
|
920
|
+
const e = q("tablist"), a = q("slider"), t = U({});
|
|
906
921
|
function o() {
|
|
907
922
|
if (!a.value) return;
|
|
908
923
|
const l = e.value?.$el;
|
|
909
924
|
if (!l) return;
|
|
910
|
-
const
|
|
911
|
-
|
|
912
|
-
left: `${
|
|
913
|
-
right: `${l.offsetWidth -
|
|
914
|
-
transition: a.value.offsetLeft >
|
|
925
|
+
const i = l.querySelector("[aria-selected=true]");
|
|
926
|
+
i && (t.value = {
|
|
927
|
+
left: `${i.offsetLeft}px`,
|
|
928
|
+
right: `${l.offsetWidth - i.offsetLeft - i.offsetWidth}px`,
|
|
929
|
+
transition: a.value.offsetLeft > i.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
|
|
915
930
|
});
|
|
916
931
|
}
|
|
917
|
-
return j(() => ve(o)), (l,
|
|
932
|
+
return j(() => ve(o)), (l, i) => (n(), h(c(re), {
|
|
918
933
|
ref_key: "tablist",
|
|
919
934
|
ref: e,
|
|
920
935
|
onClickPassive: o,
|
|
921
936
|
class: "dai-tab-list"
|
|
922
937
|
}, {
|
|
923
|
-
default:
|
|
924
|
-
|
|
938
|
+
default: f(() => [
|
|
939
|
+
r("div", {
|
|
925
940
|
ref_key: "slider",
|
|
926
941
|
ref: a,
|
|
927
942
|
class: "dai-tab-list__slider",
|
|
@@ -932,7 +947,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
932
947
|
_: 3
|
|
933
948
|
}, 512));
|
|
934
949
|
}
|
|
935
|
-
}),
|
|
950
|
+
}), Je = ["id"], zo = /* @__PURE__ */ p({
|
|
936
951
|
inheritAttrs: !1,
|
|
937
952
|
__name: "offcanvas",
|
|
938
953
|
props: /* @__PURE__ */ I({
|
|
@@ -947,23 +962,23 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
947
962
|
modelModifiers: {}
|
|
948
963
|
}),
|
|
949
964
|
emits: ["update:modelValue"],
|
|
950
|
-
setup(
|
|
951
|
-
const e =
|
|
952
|
-
|
|
965
|
+
setup(s) {
|
|
966
|
+
const e = s, a = w(s, "modelValue"), t = e.id ?? z(), { classList: o } = ye(document.body, "nui-body-push");
|
|
967
|
+
T(a, () => {
|
|
953
968
|
if (!e.push || (o.splice(1), !a.value))
|
|
954
969
|
return;
|
|
955
|
-
let
|
|
956
|
-
e.lg && (
|
|
970
|
+
let i = "nui-body-push--" + e.position;
|
|
971
|
+
e.lg && (i += "--lg"), e.xl && (i += "--xl"), o.push(i);
|
|
957
972
|
});
|
|
958
|
-
function l(
|
|
959
|
-
|
|
973
|
+
function l(i) {
|
|
974
|
+
i.target.closest(`#${t}`) || e.closeOnOutsideClick && (a.value = !1);
|
|
960
975
|
}
|
|
961
976
|
return j(() => {
|
|
962
977
|
window.addEventListener("click", l, { passive: !0 });
|
|
963
978
|
}), F(() => {
|
|
964
979
|
window.removeEventListener("click", l);
|
|
965
|
-
}), (
|
|
966
|
-
|
|
980
|
+
}), (i, v) => (n(), h(G, { to: "body" }, [
|
|
981
|
+
M(A, {
|
|
967
982
|
appear: "",
|
|
968
983
|
"enter-from-class": "nui-offcanvas--animate-hidden",
|
|
969
984
|
"enter-to-class": "nui-offcanvas--animate-shown",
|
|
@@ -972,61 +987,61 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
972
987
|
"leave-to-class": "nui-offcanvas--animate-hidden",
|
|
973
988
|
"leave-active-class": "ease-in-out"
|
|
974
989
|
}, {
|
|
975
|
-
default:
|
|
976
|
-
a.value ? (n(),
|
|
990
|
+
default: f(() => [
|
|
991
|
+
a.value ? (n(), u("div", C({
|
|
977
992
|
key: 0,
|
|
978
993
|
id: c(t)
|
|
979
|
-
},
|
|
994
|
+
}, i.$attrs, {
|
|
980
995
|
class: ["nui-offcanvas", {
|
|
981
|
-
[`nui-offcanvas--${
|
|
982
|
-
"nui-offcanvas--shadow": !
|
|
983
|
-
"nui-offcanvas--lg":
|
|
984
|
-
"nui-offcanvas--xl":
|
|
996
|
+
[`nui-offcanvas--${i.position}`]: !0,
|
|
997
|
+
"nui-offcanvas--shadow": !i.push,
|
|
998
|
+
"nui-offcanvas--lg": i.lg,
|
|
999
|
+
"nui-offcanvas--xl": i.xl
|
|
985
1000
|
}]
|
|
986
1001
|
}), [
|
|
987
|
-
b(
|
|
988
|
-
], 16,
|
|
1002
|
+
b(i.$slots, "default")
|
|
1003
|
+
], 16, Je)) : m("", !0)
|
|
989
1004
|
]),
|
|
990
1005
|
_: 3
|
|
991
1006
|
})
|
|
992
1007
|
]));
|
|
993
1008
|
}
|
|
994
|
-
}),
|
|
1009
|
+
}), xe = {
|
|
995
1010
|
key: 0,
|
|
996
1011
|
role: "alert"
|
|
997
|
-
},
|
|
1012
|
+
}, eo = {
|
|
998
1013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
999
1014
|
fill: "none",
|
|
1000
1015
|
viewBox: "0 0 24 24",
|
|
1001
1016
|
stroke: "currentColor"
|
|
1002
|
-
},
|
|
1017
|
+
}, oo = {
|
|
1003
1018
|
key: 0,
|
|
1004
1019
|
"stroke-linecap": "round",
|
|
1005
1020
|
"stroke-linejoin": "round",
|
|
1006
1021
|
"stroke-width": "2",
|
|
1007
1022
|
d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1008
|
-
},
|
|
1023
|
+
}, to = {
|
|
1009
1024
|
key: 1,
|
|
1010
1025
|
"stroke-linecap": "round",
|
|
1011
1026
|
"stroke-linejoin": "round",
|
|
1012
1027
|
"stroke-width": "2",
|
|
1013
1028
|
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1014
|
-
},
|
|
1029
|
+
}, ao = {
|
|
1015
1030
|
key: 2,
|
|
1016
1031
|
"stroke-linecap": "round",
|
|
1017
1032
|
"stroke-linejoin": "round",
|
|
1018
1033
|
"stroke-width": "2",
|
|
1019
1034
|
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"
|
|
1020
|
-
},
|
|
1035
|
+
}, lo = {
|
|
1021
1036
|
key: 3,
|
|
1022
1037
|
"stroke-linecap": "round",
|
|
1023
1038
|
"stroke-linejoin": "round",
|
|
1024
1039
|
"stroke-width": "2",
|
|
1025
1040
|
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1026
|
-
},
|
|
1041
|
+
}, no = { class: "dai-notification__content" }, io = {
|
|
1027
1042
|
key: 0,
|
|
1028
1043
|
class: "dai-notification__content__detail"
|
|
1029
|
-
},
|
|
1044
|
+
}, so = /* @__PURE__ */ p({
|
|
1030
1045
|
__name: "notification",
|
|
1031
1046
|
props: /* @__PURE__ */ I({
|
|
1032
1047
|
color: {},
|
|
@@ -1040,55 +1055,55 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
1040
1055
|
modelModifiers: {}
|
|
1041
1056
|
}),
|
|
1042
1057
|
emits: ["update:modelValue"],
|
|
1043
|
-
setup(
|
|
1044
|
-
const e =
|
|
1058
|
+
setup(s) {
|
|
1059
|
+
const e = s, a = w(s, "modelValue");
|
|
1045
1060
|
let t;
|
|
1046
1061
|
function o() {
|
|
1047
1062
|
clearTimeout(t), a.value && e.timeout && (t = setTimeout(() => a.value = !1, e.timeout));
|
|
1048
1063
|
}
|
|
1049
|
-
return
|
|
1050
|
-
|
|
1051
|
-
class:
|
|
1064
|
+
return T(a, o, { immediate: !0 }), (l, i) => a.value ? (n(), u("div", xe, [
|
|
1065
|
+
r("div", {
|
|
1066
|
+
class: k(["dai-notification", [`dai-notification--${l.color || "secondary"}`]])
|
|
1052
1067
|
}, [
|
|
1053
|
-
l.icon ? (n(),
|
|
1068
|
+
l.icon ? (n(), u("div", {
|
|
1054
1069
|
key: 0,
|
|
1055
|
-
class:
|
|
1070
|
+
class: k(["dai-notification__icon", [`dai-notification__icon--${l.icon}`]])
|
|
1056
1071
|
}, [
|
|
1057
|
-
(n(),
|
|
1058
|
-
l.icon == "success" ? (n(),
|
|
1072
|
+
(n(), u("svg", eo, [
|
|
1073
|
+
l.icon == "success" ? (n(), u("path", oo)) : l.icon == "info" ? (n(), u("path", to)) : l.icon == "warning" ? (n(), u("path", ao)) : l.icon == "danger" ? (n(), u("path", lo)) : m("", !0)
|
|
1059
1074
|
]))
|
|
1060
1075
|
], 2)) : m("", !0),
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
class:
|
|
1076
|
+
r("div", no, [
|
|
1077
|
+
r("div", {
|
|
1078
|
+
class: k(["dai-notification__content__message", {
|
|
1064
1079
|
"dai-notification__content__message--bold": l.detail
|
|
1065
1080
|
}])
|
|
1066
|
-
},
|
|
1067
|
-
l.detail ? (n(),
|
|
1081
|
+
}, _(l.message), 3),
|
|
1082
|
+
l.detail ? (n(), u("div", io, _(l.detail), 1)) : m("", !0)
|
|
1068
1083
|
]),
|
|
1069
|
-
l.dismissible ? (n(),
|
|
1084
|
+
l.dismissible ? (n(), u("div", {
|
|
1070
1085
|
key: 1,
|
|
1071
|
-
onClick:
|
|
1086
|
+
onClick: i[0] || (i[0] = (v) => a.value = !1),
|
|
1072
1087
|
class: "dai-notification__dismiss"
|
|
1073
|
-
},
|
|
1074
|
-
|
|
1088
|
+
}, [...i[1] || (i[1] = [
|
|
1089
|
+
r("svg", {
|
|
1075
1090
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1076
1091
|
fill: "none",
|
|
1077
1092
|
viewBox: "0 0 24 24",
|
|
1078
1093
|
stroke: "currentColor"
|
|
1079
1094
|
}, [
|
|
1080
|
-
|
|
1095
|
+
r("path", {
|
|
1081
1096
|
"stroke-linecap": "round",
|
|
1082
1097
|
"stroke-linejoin": "round",
|
|
1083
1098
|
"stroke-width": "2",
|
|
1084
1099
|
d: "M6 18L18 6M6 6l12 12"
|
|
1085
1100
|
})
|
|
1086
1101
|
], -1)
|
|
1087
|
-
]))) : m("", !0)
|
|
1102
|
+
])])) : m("", !0)
|
|
1088
1103
|
], 2)
|
|
1089
1104
|
])) : m("", !0);
|
|
1090
1105
|
}
|
|
1091
|
-
}),
|
|
1106
|
+
}), To = /* @__PURE__ */ p({
|
|
1092
1107
|
__name: "notificationQueue",
|
|
1093
1108
|
props: /* @__PURE__ */ I({
|
|
1094
1109
|
length: { default: 3 },
|
|
@@ -1101,52 +1116,52 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
1101
1116
|
queueModifiers: {}
|
|
1102
1117
|
}),
|
|
1103
1118
|
emits: ["update:queue"],
|
|
1104
|
-
setup(
|
|
1105
|
-
const e =
|
|
1119
|
+
setup(s) {
|
|
1120
|
+
const e = s, a = w(s, "queue"), t = U([]);
|
|
1106
1121
|
let o = 0;
|
|
1107
1122
|
function l() {
|
|
1108
1123
|
a.value.length === 0 || t.value.length >= e.length || (t.value.push({ ...a.value[0], id: o++, show: !0 }), a.value.shift());
|
|
1109
1124
|
}
|
|
1110
|
-
function
|
|
1125
|
+
function i(d) {
|
|
1111
1126
|
setTimeout(() => {
|
|
1112
1127
|
t.value = t.value.filter(
|
|
1113
|
-
(
|
|
1128
|
+
(g) => g.id !== d
|
|
1114
1129
|
), l();
|
|
1115
1130
|
}, 200);
|
|
1116
1131
|
}
|
|
1117
|
-
|
|
1118
|
-
const
|
|
1119
|
-
const
|
|
1120
|
-
return e.positionX === "right" ?
|
|
1132
|
+
T(a, l, { immediate: !0, deep: !0 });
|
|
1133
|
+
const v = B(() => {
|
|
1134
|
+
const d = ["dai-notification-queue__item--anim"];
|
|
1135
|
+
return e.positionX === "right" ? d.push("dai-notification-queue__item--anim-x-right") : e.positionX === "left" ? d.push("dai-notification-queue__item--anim-x-left") : e.positionX === "center" && e.positionY === "top" ? d.push("dai-notification-queue__item--anim-y-top") : e.positionX === "center" && e.positionY === "bottom" && d.push("dai-notification-queue__item--anim-y-bottom"), d.join(" ");
|
|
1121
1136
|
});
|
|
1122
|
-
return (
|
|
1123
|
-
class:
|
|
1124
|
-
"dai-notification-queue--fixed":
|
|
1125
|
-
"dai-notification-queue--absolute":
|
|
1126
|
-
"dai-notification-queue--y-top":
|
|
1127
|
-
"dai-notification-queue--y-bottom":
|
|
1128
|
-
"dai-notification-queue--x-left":
|
|
1129
|
-
"dai-notification-queue--x-center":
|
|
1130
|
-
"dai-notification-queue--x-right":
|
|
1137
|
+
return (d, g) => (n(), u("div", {
|
|
1138
|
+
class: k(["dai-notification-queue", {
|
|
1139
|
+
"dai-notification-queue--fixed": d.position == "fixed",
|
|
1140
|
+
"dai-notification-queue--absolute": d.position == "absolute",
|
|
1141
|
+
"dai-notification-queue--y-top": d.positionY == "top",
|
|
1142
|
+
"dai-notification-queue--y-bottom": d.positionY == "bottom",
|
|
1143
|
+
"dai-notification-queue--x-left": d.positionX == "left",
|
|
1144
|
+
"dai-notification-queue--x-center": d.positionX == "center",
|
|
1145
|
+
"dai-notification-queue--x-right": d.positionX == "right"
|
|
1131
1146
|
}])
|
|
1132
1147
|
}, [
|
|
1133
|
-
|
|
1148
|
+
M(he, {
|
|
1134
1149
|
appear: "",
|
|
1135
|
-
"enter-from-class":
|
|
1150
|
+
"enter-from-class": v.value,
|
|
1136
1151
|
"enter-active-class": "dai-notification-queue__item--anim-in",
|
|
1137
|
-
"leave-to-class":
|
|
1152
|
+
"leave-to-class": v.value,
|
|
1138
1153
|
"leave-active-class": "dai-notification-queue__item--anim-out"
|
|
1139
1154
|
}, {
|
|
1140
|
-
default:
|
|
1141
|
-
(n(!0),
|
|
1142
|
-
key:
|
|
1143
|
-
color:
|
|
1144
|
-
icon:
|
|
1145
|
-
message:
|
|
1146
|
-
detail:
|
|
1147
|
-
timeout:
|
|
1148
|
-
modelValue:
|
|
1149
|
-
"onUpdate:modelValue": [(E) =>
|
|
1155
|
+
default: f(() => [
|
|
1156
|
+
(n(!0), u(Y, null, R(t.value, (y) => (n(), h(so, {
|
|
1157
|
+
key: y.id,
|
|
1158
|
+
color: y.color,
|
|
1159
|
+
icon: y.type,
|
|
1160
|
+
message: y.message,
|
|
1161
|
+
detail: y.detail,
|
|
1162
|
+
timeout: y.timeout ?? d.timeout,
|
|
1163
|
+
modelValue: y.show,
|
|
1164
|
+
"onUpdate:modelValue": [(E) => y.show = E, (E) => i(y.id)],
|
|
1150
1165
|
class: "dai-notification-queue__item"
|
|
1151
1166
|
}, null, 8, ["color", "icon", "message", "detail", "timeout", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
1152
1167
|
]),
|
|
@@ -1154,7 +1169,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
1154
1169
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1155
1170
|
], 2));
|
|
1156
1171
|
}
|
|
1157
|
-
}),
|
|
1172
|
+
}), ro = ["aria-valuenow"], Ao = /* @__PURE__ */ p({
|
|
1158
1173
|
__name: "progressbar",
|
|
1159
1174
|
props: {
|
|
1160
1175
|
value: {},
|
|
@@ -1162,10 +1177,10 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
1162
1177
|
height: { default: 5 },
|
|
1163
1178
|
rounded: { type: Boolean, default: !0 }
|
|
1164
1179
|
},
|
|
1165
|
-
setup(
|
|
1166
|
-
const e =
|
|
1167
|
-
return (t, o) => (n(),
|
|
1168
|
-
class:
|
|
1180
|
+
setup(s) {
|
|
1181
|
+
const e = s, a = B(() => e.value === void 0);
|
|
1182
|
+
return (t, o) => (n(), u("div", {
|
|
1183
|
+
class: k(["overflow-hidden text-xs w-full flex-1", {
|
|
1169
1184
|
rounded: t.rounded,
|
|
1170
1185
|
"bg-primary-200": t.color == "primary",
|
|
1171
1186
|
"bg-success-200": t.color == "success",
|
|
@@ -1179,9 +1194,9 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
1179
1194
|
"aria-valuemax": "100",
|
|
1180
1195
|
"aria-valuenow": t.value
|
|
1181
1196
|
}, [
|
|
1182
|
-
|
|
1197
|
+
r("div", {
|
|
1183
1198
|
style: N(`width:${t.value}%`),
|
|
1184
|
-
class:
|
|
1199
|
+
class: k([{
|
|
1185
1200
|
"bg-primary-500": t.color == "primary",
|
|
1186
1201
|
"bg-success-500": t.color == "success",
|
|
1187
1202
|
"bg-info-500": t.color == "info",
|
|
@@ -1190,12 +1205,12 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
1190
1205
|
"progress-infinite": a.value
|
|
1191
1206
|
}, "h-full shadow-none relative text-center whitespace-nowrap text-white justify-center"])
|
|
1192
1207
|
}, null, 6)
|
|
1193
|
-
], 14,
|
|
1208
|
+
], 14, ro));
|
|
1194
1209
|
}
|
|
1195
|
-
}),
|
|
1210
|
+
}), uo = {
|
|
1196
1211
|
key: 0,
|
|
1197
1212
|
class: "z-50"
|
|
1198
|
-
},
|
|
1213
|
+
}, co = { class: "fixed inset-0 overflow-y-auto" }, mo = { class: "modal__dialog" }, So = /* @__PURE__ */ p({
|
|
1199
1214
|
inheritAttrs: !1,
|
|
1200
1215
|
__name: "modal",
|
|
1201
1216
|
props: {
|
|
@@ -1203,31 +1218,31 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
1203
1218
|
modelModifiers: {}
|
|
1204
1219
|
},
|
|
1205
1220
|
emits: ["update:modelValue"],
|
|
1206
|
-
setup(
|
|
1207
|
-
const e = w(
|
|
1221
|
+
setup(s) {
|
|
1222
|
+
const e = w(s, "modelValue");
|
|
1208
1223
|
function a() {
|
|
1209
1224
|
e.value = !1;
|
|
1210
1225
|
}
|
|
1211
|
-
return
|
|
1226
|
+
return T(e, (t) => {
|
|
1212
1227
|
t ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
|
|
1213
1228
|
}), (t, o) => (n(), h(G, { to: "body" }, [
|
|
1214
|
-
|
|
1229
|
+
M(A, {
|
|
1215
1230
|
appear: "",
|
|
1216
1231
|
name: "modal",
|
|
1217
1232
|
duration: { enter: 300, leave: 200 }
|
|
1218
1233
|
}, {
|
|
1219
|
-
default:
|
|
1220
|
-
e.value ? (n(),
|
|
1221
|
-
o[0] || (o[0] =
|
|
1234
|
+
default: f(() => [
|
|
1235
|
+
e.value ? (n(), u("div", uo, [
|
|
1236
|
+
o[0] || (o[0] = r("div", {
|
|
1222
1237
|
class: "modal__backdrop fixed inset-0 bg-primary-50/60 backdrop-blur-sm",
|
|
1223
1238
|
"aria-hidden": "true"
|
|
1224
1239
|
}, null, -1)),
|
|
1225
|
-
|
|
1226
|
-
|
|
1240
|
+
r("div", co, [
|
|
1241
|
+
r("div", {
|
|
1227
1242
|
onClick: be(a, ["self"]),
|
|
1228
1243
|
class: "min-h-full flex items-center justify-center p-4 sm:p-6"
|
|
1229
1244
|
}, [
|
|
1230
|
-
|
|
1245
|
+
r("div", mo, [
|
|
1231
1246
|
b(t.$slots, "default", { close: a })
|
|
1232
1247
|
])
|
|
1233
1248
|
])
|
|
@@ -1240,30 +1255,30 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
|
|
|
1240
1255
|
}
|
|
1241
1256
|
});
|
|
1242
1257
|
export {
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1258
|
+
ko as Btn,
|
|
1259
|
+
go as Checkbox,
|
|
1260
|
+
Bo as Combobox,
|
|
1261
|
+
Vo as ComboboxInput,
|
|
1262
|
+
Co as ComboboxOption,
|
|
1263
|
+
Mo as ComboboxOptions,
|
|
1264
|
+
ho as Input,
|
|
1265
|
+
Oo as Menu,
|
|
1266
|
+
Eo as MenuItem,
|
|
1267
|
+
Io as MenuItems,
|
|
1268
|
+
So as Modal,
|
|
1269
|
+
so as Notification,
|
|
1270
|
+
To as NotificationQueue,
|
|
1271
|
+
zo as Offcanvas,
|
|
1272
|
+
No as Popover,
|
|
1273
|
+
$o as PopoverDialog,
|
|
1274
|
+
Ao as Progressbar,
|
|
1275
|
+
_o as Radio,
|
|
1276
|
+
yo as Select,
|
|
1277
|
+
wo as Switch,
|
|
1278
|
+
Lo as Tab,
|
|
1279
|
+
Uo as TabContainer,
|
|
1280
|
+
qo as TabList,
|
|
1281
|
+
Xo as TabPanel,
|
|
1282
|
+
bo as Textarea,
|
|
1283
|
+
ye as useClassList
|
|
1269
1284
|
};
|