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