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