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