@db-ux/v-core-components 4.4.0 → 4.4.1-floating-components-066d296
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/CHANGELOG.md +8 -0
- package/dist/db-ux.es.js +1355 -1340
- package/dist/db-ux.umd.js +1 -1
- package/package.json +4 -4
package/dist/db-ux.es.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as G, ref as o, onMounted as Q, watch as C, createElementBlock as
|
|
2
|
-
const Ee = "OVERWRITE_DEFAULT_ID", ke = "LABEL SHOULD BE SET",
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
const
|
|
7
|
-
var
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as G, ref as o, onMounted as Q, watch as C, createElementBlock as b, openBlock as h, normalizeClass as q, unref as n, createElementVNode as E, createCommentVNode as z, renderSlot as F, Fragment as W, createTextVNode as D, toDisplayString as L, renderList as ge, createBlock as J, onUnmounted as me, createVNode as ie, withCtx as U } from "vue";
|
|
2
|
+
const Ee = "OVERWRITE_DEFAULT_ID", ke = "LABEL SHOULD BE SET", tt = " ", xt = "MESSAGE SHOULD BE SET", Je = "-label", Qe = "-select", re = "-message", ve = "-valid-message", fe = "-invalid-message", Fe = "-placeholder", Ze = "-datalist", ue = "TODO: Add a validMessage", ae = "TODO: Add an invalidMessage", at = "Remove", Tt = "Back", $t = "Selected", Ct = "BurgerMenu", Et = "brand", At = 4, Ue = "Close", _i = "density", el = "color";
|
|
3
|
+
var it = /* @__PURE__ */ ((e) => (e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e))(it || {});
|
|
4
|
+
const tl = Object.entries(it).map(([, e]) => e);
|
|
5
|
+
var lt = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e))(lt || {}), nt = /* @__PURE__ */ ((e) => (e.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", e.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", e.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", e.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", e.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", e.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", e.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", e.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", e.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", e.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", e.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", e.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", e.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", e.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", e.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", e.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", e.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", e.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", e.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", e.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", e.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", e.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", e.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", e.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", e.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", e.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", e.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", e.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", e.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", e.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", e))(nt || {});
|
|
6
|
+
const al = Object.entries(nt).map(([, e]) => e), il = Object.entries(lt).map(([, e]) => e);
|
|
7
|
+
var ot = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.INFORMATIONAL = "informational", e.WARNING = "warning", e.SUCCESSFUL = "successful", e))(ot || {});
|
|
8
|
+
const ll = Object.entries(ot).map(([, e]) => e), Dt = {
|
|
9
9
|
width: 390,
|
|
10
10
|
height: 884
|
|
11
|
-
},
|
|
11
|
+
}, Mt = {
|
|
12
12
|
width: 1920,
|
|
13
13
|
height: 1280
|
|
14
|
-
},
|
|
14
|
+
}, nl = [{
|
|
15
15
|
name: "desktop",
|
|
16
|
-
...
|
|
16
|
+
...Mt
|
|
17
17
|
}, {
|
|
18
18
|
name: "tablet",
|
|
19
19
|
width: 768,
|
|
20
20
|
height: 1024
|
|
21
21
|
}, {
|
|
22
22
|
name: "mobile",
|
|
23
|
-
...
|
|
24
|
-
}],
|
|
23
|
+
...Dt
|
|
24
|
+
}], ol = "db-ux-framework", dl = "db-ux-mode", te = () => {
|
|
25
25
|
if (typeof window < "u") {
|
|
26
26
|
if (window.crypto?.randomUUID)
|
|
27
27
|
return window.crypto.randomUUID();
|
|
@@ -29,50 +29,50 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
29
29
|
return window.crypto.getRandomValues(new Uint32Array(3)).join("-");
|
|
30
30
|
}
|
|
31
31
|
return Math.random().toString().substring(2);
|
|
32
|
-
},
|
|
32
|
+
}, dt = (e, a) => {
|
|
33
33
|
const l = e.children;
|
|
34
|
-
Object.values(l).forEach((
|
|
35
|
-
|
|
34
|
+
Object.values(l).forEach((t) => {
|
|
35
|
+
t.setAttribute(a.key, a.value), t.children.length > 0 && dt(t, a);
|
|
36
36
|
});
|
|
37
37
|
}, O = (...e) => {
|
|
38
|
-
let
|
|
38
|
+
let a = "";
|
|
39
39
|
for (const l of e)
|
|
40
40
|
if (l)
|
|
41
41
|
if (typeof l == "string")
|
|
42
|
-
|
|
42
|
+
a += `${l} `;
|
|
43
43
|
else
|
|
44
|
-
for (const
|
|
45
|
-
l[
|
|
46
|
-
return
|
|
47
|
-
},
|
|
44
|
+
for (const t in l)
|
|
45
|
+
l[t] && (a += `${t} `);
|
|
46
|
+
return a.trim();
|
|
47
|
+
}, Ft = (e) => Array.isArray(e) && e.every((a) => typeof a == "string"), Nt = ["Mac", "iPhone", "iPad", "iPod"], ce = () => typeof window < "u" && Nt.some((e) => window.navigator.userAgent.includes(e)), Rt = () => {
|
|
48
48
|
if (typeof window > "u" || typeof navigator > "u") return !1;
|
|
49
|
-
const e = navigator.userAgent,
|
|
50
|
-
return
|
|
51
|
-
}, Y = (e,
|
|
49
|
+
const e = navigator.userAgent, a = /iP(ad|hone|od)/.test(e), l = !!e.match(/Safari/) && !e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);
|
|
50
|
+
return a && l;
|
|
51
|
+
}, Y = (e, a) => new Promise(() => setTimeout(e, a)), R = (e) => {
|
|
52
52
|
if (e != null)
|
|
53
53
|
return String(typeof e == "string" ? !!e : e);
|
|
54
|
-
}, V = (e,
|
|
54
|
+
}, V = (e, a) => {
|
|
55
55
|
if (e != null)
|
|
56
|
-
return typeof e == "string" &&
|
|
57
|
-
}, Le = (e,
|
|
58
|
-
if (!(e == null &&
|
|
59
|
-
return Number(e ??
|
|
60
|
-
},
|
|
56
|
+
return typeof e == "string" && a ? !!(a === e || e) : !!e;
|
|
57
|
+
}, Le = (e, a) => {
|
|
58
|
+
if (!(e == null && a == null))
|
|
59
|
+
return Number(e ?? a);
|
|
60
|
+
}, zt = (e) => {
|
|
61
61
|
if (e != null)
|
|
62
62
|
return e === "any" ? "any" : Number(e);
|
|
63
|
-
},
|
|
63
|
+
}, _e = (e, a) => a && ["number", "range"].includes(a) ? Le(e) : e, oe = (e) => {
|
|
64
64
|
if (e != null)
|
|
65
65
|
return R(!e);
|
|
66
|
-
}, ee = (e,
|
|
67
|
-
const l = e.id ?? e.value ??
|
|
68
|
-
return `${
|
|
69
|
-
},
|
|
66
|
+
}, ee = (e, a) => (a === void 0 || !!a) && !!e, et = (e) => e.querySelector('input[type="search"]'), sl = (e, a) => {
|
|
67
|
+
const l = e.id ?? e.value ?? te();
|
|
68
|
+
return `${a}${l}`;
|
|
69
|
+
}, Pt = (e) => e.key !== void 0, Vt = ({
|
|
70
70
|
semantic: e,
|
|
71
|
-
role:
|
|
71
|
+
role: a,
|
|
72
72
|
ariaLive: l
|
|
73
73
|
}) => {
|
|
74
|
-
if (
|
|
75
|
-
return
|
|
74
|
+
if (a)
|
|
75
|
+
return a;
|
|
76
76
|
if (l)
|
|
77
77
|
return "article";
|
|
78
78
|
switch (e) {
|
|
@@ -85,7 +85,7 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
85
85
|
default:
|
|
86
86
|
return "article";
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, qt = ["id"], Ot = ["aria-disabled", "name", "open"], Ut = /* @__PURE__ */ G({
|
|
89
89
|
name: "DBAccordionItem",
|
|
90
90
|
__name: "accordion-item",
|
|
91
91
|
props: {
|
|
@@ -104,9 +104,9 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
104
104
|
name: { default: void 0 }
|
|
105
105
|
},
|
|
106
106
|
setup(e) {
|
|
107
|
-
const
|
|
107
|
+
const a = e, l = o(Ee), t = o(!1), i = o(void 0), c = o(!1), u = o(null);
|
|
108
108
|
Q(() => {
|
|
109
|
-
l.value =
|
|
109
|
+
l.value = a.id || "accordion-item-" + te(), a.defaultOpen && (t.value = a.defaultOpen), c.value = !0;
|
|
110
110
|
}), C(
|
|
111
111
|
() => [u.value, c.value],
|
|
112
112
|
() => {
|
|
@@ -117,48 +117,48 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
117
117
|
flush: "post"
|
|
118
118
|
}
|
|
119
119
|
), C(
|
|
120
|
-
() => [
|
|
120
|
+
() => [a.name],
|
|
121
121
|
() => {
|
|
122
|
-
|
|
122
|
+
a.name && (i.value = a.name);
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
immediate: !0,
|
|
126
126
|
flush: "post"
|
|
127
127
|
}
|
|
128
128
|
);
|
|
129
|
-
function
|
|
129
|
+
function v(m) {
|
|
130
130
|
m?.preventDefault();
|
|
131
|
-
const
|
|
132
|
-
|
|
131
|
+
const f = !t.value;
|
|
132
|
+
a.onToggle && a.onToggle(f), t.value = f;
|
|
133
133
|
}
|
|
134
|
-
return (m,
|
|
134
|
+
return (m, f) => (h(), b("li", {
|
|
135
135
|
id: l.value,
|
|
136
|
-
class: q(n(O)("db-accordion-item",
|
|
136
|
+
class: q(n(O)("db-accordion-item", a.class))
|
|
137
137
|
}, [
|
|
138
138
|
E("details", {
|
|
139
139
|
"aria-disabled": n(R)(e.disabled),
|
|
140
140
|
ref_key: "_ref",
|
|
141
141
|
ref: u,
|
|
142
142
|
name: i.value,
|
|
143
|
-
open:
|
|
143
|
+
open: t.value
|
|
144
144
|
}, [
|
|
145
145
|
E("summary", {
|
|
146
|
-
onClick:
|
|
146
|
+
onClick: f[0] || (f[0] = async (k) => v(k))
|
|
147
147
|
}, [
|
|
148
|
-
e.headlinePlain ? (
|
|
149
|
-
D(
|
|
148
|
+
e.headlinePlain ? (h(), b(W, { key: 0 }, [
|
|
149
|
+
D(L(e.headlinePlain), 1)
|
|
150
150
|
], 64)) : z("", !0),
|
|
151
|
-
e.headlinePlain ? z("", !0) :
|
|
151
|
+
e.headlinePlain ? z("", !0) : F(m.$slots, "headline", { key: 1 })
|
|
152
152
|
]),
|
|
153
153
|
E("div", null, [
|
|
154
|
-
e.text ? (
|
|
155
|
-
D(
|
|
156
|
-
], 64)) :
|
|
154
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
155
|
+
D(L(e.text), 1)
|
|
156
|
+
], 64)) : F(m.$slots, "default", { key: 1 })
|
|
157
157
|
])
|
|
158
|
-
], 8,
|
|
159
|
-
], 10,
|
|
158
|
+
], 8, Ot)
|
|
159
|
+
], 10, qt));
|
|
160
160
|
}
|
|
161
|
-
}),
|
|
161
|
+
}), Gt = ["id", "data-variant"], ul = /* @__PURE__ */ G({
|
|
162
162
|
name: "DBAccordion",
|
|
163
163
|
__name: "accordion",
|
|
164
164
|
props: {
|
|
@@ -175,26 +175,26 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
175
175
|
autofocus: { type: [Boolean, String] }
|
|
176
176
|
},
|
|
177
177
|
setup(e) {
|
|
178
|
-
const
|
|
178
|
+
const a = e, l = o(Ee), t = o(""), i = o(!1), c = o(!1), u = o(null);
|
|
179
179
|
Q(() => {
|
|
180
|
-
l.value =
|
|
180
|
+
l.value = a.id || "accordion-" + te(), i.value = !0, c.value = !0;
|
|
181
181
|
}), C(
|
|
182
|
-
() => [i.value,
|
|
182
|
+
() => [i.value, a.name, a.behavior, l.value],
|
|
183
183
|
() => {
|
|
184
|
-
i.value && (
|
|
184
|
+
i.value && (a.behavior === "single" ? a.name ? t.value !== a.name && (t.value = a.name) : t.value !== l.value && l.value && (t.value = l.value) : t.value = "");
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
immediate: !0,
|
|
188
188
|
flush: "post"
|
|
189
189
|
}
|
|
190
190
|
), C(
|
|
191
|
-
() => [u.value,
|
|
191
|
+
() => [u.value, t.value],
|
|
192
192
|
() => {
|
|
193
193
|
if (u.value) {
|
|
194
194
|
const m = u.value.getElementsByTagName("details");
|
|
195
195
|
if (m)
|
|
196
|
-
for (const
|
|
197
|
-
|
|
196
|
+
for (const f of Array.from(m))
|
|
197
|
+
t.value === "" ? f.removeAttribute("name") : f.name = t.value ?? "";
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
{
|
|
@@ -202,16 +202,16 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
202
202
|
flush: "post"
|
|
203
203
|
}
|
|
204
204
|
), C(
|
|
205
|
-
() => [u.value, c.value,
|
|
205
|
+
() => [u.value, c.value, a.initOpenIndex],
|
|
206
206
|
() => {
|
|
207
207
|
if (u.value && c.value) {
|
|
208
|
-
if (
|
|
208
|
+
if (a.initOpenIndex && a.initOpenIndex.length > 0) {
|
|
209
209
|
const m = u.value.getElementsByTagName("details");
|
|
210
210
|
if (m) {
|
|
211
|
-
const
|
|
211
|
+
const f = a.behavior === "single" && a.initOpenIndex.length > 1 ? [a.initOpenIndex[0]] : a.initOpenIndex;
|
|
212
212
|
Array.from(m).forEach(
|
|
213
213
|
(k, $) => {
|
|
214
|
-
|
|
214
|
+
f?.includes($) && (k.open = !0);
|
|
215
215
|
}
|
|
216
216
|
);
|
|
217
217
|
}
|
|
@@ -224,31 +224,31 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
224
224
|
flush: "post"
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
|
-
function
|
|
227
|
+
function v() {
|
|
228
228
|
try {
|
|
229
|
-
return typeof
|
|
229
|
+
return typeof a.items == "string" ? JSON.parse(a.items) : a.items;
|
|
230
230
|
} catch (m) {
|
|
231
231
|
console.error(m);
|
|
232
232
|
}
|
|
233
233
|
return [];
|
|
234
234
|
}
|
|
235
|
-
return (m,
|
|
235
|
+
return (m, f) => (h(), b("ul", {
|
|
236
236
|
ref_key: "_ref",
|
|
237
237
|
ref: u,
|
|
238
238
|
id: l.value,
|
|
239
|
-
class: q(n(O)("db-accordion",
|
|
239
|
+
class: q(n(O)("db-accordion", a.class)),
|
|
240
240
|
"data-variant": e.variant
|
|
241
241
|
}, [
|
|
242
|
-
e.items ? z("", !0) :
|
|
243
|
-
e.items ? (
|
|
242
|
+
e.items ? z("", !0) : F(m.$slots, "default", { key: 0 }),
|
|
243
|
+
e.items ? (h(!0), b(W, { key: 1 }, ge(v(), (k, $) => (h(), J(Ut, {
|
|
244
244
|
key: `accordion-item-${$}`,
|
|
245
245
|
headlinePlain: k.headlinePlain,
|
|
246
246
|
disabled: k.disabled,
|
|
247
247
|
text: k.text
|
|
248
248
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : z("", !0)
|
|
249
|
-
], 10,
|
|
249
|
+
], 10, Gt));
|
|
250
250
|
}
|
|
251
|
-
}),
|
|
251
|
+
}), cl = ["divider", "card"], rl = ["multiple", "single"], Wt = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], vl = /* @__PURE__ */ G({
|
|
252
252
|
name: "DBBadge",
|
|
253
253
|
__name: "badge",
|
|
254
254
|
props: {
|
|
@@ -265,14 +265,14 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
265
265
|
text: { default: void 0 }
|
|
266
266
|
},
|
|
267
267
|
setup(e) {
|
|
268
|
-
const
|
|
268
|
+
const a = e, l = o(!1), t = o(null);
|
|
269
269
|
return Q(() => {
|
|
270
270
|
l.value = !0;
|
|
271
271
|
}), C(
|
|
272
|
-
() => [
|
|
272
|
+
() => [t.value, l.value],
|
|
273
273
|
() => {
|
|
274
|
-
if (
|
|
275
|
-
let i =
|
|
274
|
+
if (t.value && l.value && a.placement?.startsWith("corner")) {
|
|
275
|
+
let i = t.value.parentElement;
|
|
276
276
|
i && i.localName.includes("badge") && (i = i.parentElement), i && (i.dataset.hasBadge = "true");
|
|
277
277
|
}
|
|
278
278
|
},
|
|
@@ -280,23 +280,23 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
280
280
|
immediate: !0,
|
|
281
281
|
flush: "post"
|
|
282
282
|
}
|
|
283
|
-
), (i, c) => (
|
|
283
|
+
), (i, c) => (h(), b("span", {
|
|
284
284
|
ref_key: "_ref",
|
|
285
|
-
ref:
|
|
285
|
+
ref: t,
|
|
286
286
|
id: e.id,
|
|
287
|
-
class: q(n(O)("db-badge",
|
|
287
|
+
class: q(n(O)("db-badge", a.class)),
|
|
288
288
|
"data-semantic": e.semantic,
|
|
289
289
|
"data-size": e.size,
|
|
290
290
|
"data-emphasis": e.emphasis,
|
|
291
291
|
"data-placement": e.placement,
|
|
292
292
|
"data-label": e.placement?.startsWith("corner") && (e.label ?? n(ke))
|
|
293
293
|
}, [
|
|
294
|
-
e.text ? (
|
|
295
|
-
D(
|
|
296
|
-
], 64)) :
|
|
297
|
-
], 10,
|
|
294
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
295
|
+
D(L(e.text), 1)
|
|
296
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
297
|
+
], 10, Wt));
|
|
298
298
|
}
|
|
299
|
-
}),
|
|
299
|
+
}), fl = ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"], Ht = ["data-icon", "data-show-icon", "id"], hl = /* @__PURE__ */ G({
|
|
300
300
|
name: "DBBrand",
|
|
301
301
|
__name: "brand",
|
|
302
302
|
props: {
|
|
@@ -311,21 +311,21 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
311
311
|
text: { default: void 0 }
|
|
312
312
|
},
|
|
313
313
|
setup(e) {
|
|
314
|
-
const
|
|
315
|
-
return (
|
|
314
|
+
const a = e, l = o(null);
|
|
315
|
+
return (t, i) => (h(), b("div", {
|
|
316
316
|
ref_key: "_ref",
|
|
317
317
|
ref: l,
|
|
318
|
-
"data-icon": e.hideLogo ? "none" : e.icon ?? n(
|
|
318
|
+
"data-icon": e.hideLogo ? "none" : e.icon ?? n(Et),
|
|
319
319
|
"data-show-icon": n(R)(e.showIcon),
|
|
320
320
|
id: e.id,
|
|
321
|
-
class: q(n(O)("db-brand",
|
|
321
|
+
class: q(n(O)("db-brand", a.class))
|
|
322
322
|
}, [
|
|
323
|
-
e.text ? (
|
|
324
|
-
D(
|
|
325
|
-
], 64)) :
|
|
326
|
-
], 10,
|
|
323
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
324
|
+
D(L(e.text), 1)
|
|
325
|
+
], 64)) : F(t.$slots, "default", { key: 1 })
|
|
326
|
+
], 10, Ht));
|
|
327
327
|
}
|
|
328
|
-
}),
|
|
328
|
+
}), Xt = ["id", "type", "disabled", "data-icon", "data-show-icon", "data-icon-trailing", "data-show-icon-trailing", "data-size", "data-width", "data-variant", "data-no-text", "name", "form", "value"], we = /* @__PURE__ */ G({
|
|
329
329
|
name: "DBButton",
|
|
330
330
|
__name: "button",
|
|
331
331
|
props: {
|
|
@@ -354,19 +354,19 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
354
354
|
iconTrailing: { default: void 0 }
|
|
355
355
|
},
|
|
356
356
|
setup(e) {
|
|
357
|
-
const
|
|
358
|
-
function
|
|
359
|
-
return
|
|
357
|
+
const a = e, l = o(null);
|
|
358
|
+
function t() {
|
|
359
|
+
return a.type ? a.type : a.onClick ? "button" : "submit";
|
|
360
360
|
}
|
|
361
361
|
function i(c) {
|
|
362
|
-
|
|
362
|
+
a.onClick && a.onClick(c);
|
|
363
363
|
}
|
|
364
|
-
return (c, u) => (
|
|
364
|
+
return (c, u) => (h(), b("button", {
|
|
365
365
|
ref_key: "_ref",
|
|
366
366
|
ref: l,
|
|
367
367
|
id: e.id,
|
|
368
|
-
class: q(n(O)("db-button",
|
|
369
|
-
type:
|
|
368
|
+
class: q(n(O)("db-button", a.class)),
|
|
369
|
+
type: t(),
|
|
370
370
|
disabled: n(V)(e.disabled, "disabled"),
|
|
371
371
|
"data-icon": e.iconLeading ?? e.icon,
|
|
372
372
|
"data-show-icon": n(R)(e.showIconLeading ?? e.showIcon),
|
|
@@ -379,14 +379,14 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
379
379
|
name: e.name,
|
|
380
380
|
form: e.form,
|
|
381
381
|
value: e.value,
|
|
382
|
-
onClick: u[0] || (u[0] = async (
|
|
382
|
+
onClick: u[0] || (u[0] = async (v) => i(v))
|
|
383
383
|
}, [
|
|
384
|
-
e.text ? (
|
|
385
|
-
D(
|
|
386
|
-
], 64)) :
|
|
387
|
-
], 10,
|
|
384
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
385
|
+
D(L(e.text), 1)
|
|
386
|
+
], 64)) : F(c.$slots, "default", { key: 1 })
|
|
387
|
+
], 10, Xt));
|
|
388
388
|
}
|
|
389
|
-
}),
|
|
389
|
+
}), ml = ["outlined", "brand", "filled", "ghost"], gl = ["button", "reset", "submit"], jt = ["id", "data-behavior", "data-elevation-level", "data-spacing"], bl = /* @__PURE__ */ G({
|
|
390
390
|
name: "DBCard",
|
|
391
391
|
__name: "card",
|
|
392
392
|
props: {
|
|
@@ -402,35 +402,35 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
402
402
|
spacing: { default: void 0 }
|
|
403
403
|
},
|
|
404
404
|
setup(e) {
|
|
405
|
-
const
|
|
406
|
-
function
|
|
407
|
-
|
|
405
|
+
const a = e, l = o(null);
|
|
406
|
+
function t(i) {
|
|
407
|
+
a.onClick && a.onClick(i);
|
|
408
408
|
}
|
|
409
|
-
return (i, c) => (
|
|
409
|
+
return (i, c) => (h(), b("div", {
|
|
410
410
|
ref_key: "_ref",
|
|
411
411
|
ref: l,
|
|
412
412
|
id: e.id,
|
|
413
|
-
class: q(n(O)("db-card",
|
|
413
|
+
class: q(n(O)("db-card", a.class)),
|
|
414
414
|
"data-behavior": e.behavior,
|
|
415
415
|
"data-elevation-level": e.elevationLevel,
|
|
416
416
|
"data-spacing": e.spacing,
|
|
417
|
-
onClick: c[0] || (c[0] = async (u) =>
|
|
417
|
+
onClick: c[0] || (c[0] = async (u) => t(u))
|
|
418
418
|
}, [
|
|
419
|
-
|
|
420
|
-
], 10,
|
|
419
|
+
F(i.$slots, "default")
|
|
420
|
+
], 10, jt));
|
|
421
421
|
}
|
|
422
|
-
}),
|
|
423
|
-
e(`update:${l}`,
|
|
424
|
-
},
|
|
425
|
-
e.form && !e._dbFormResetListenerAdded && (e.form.addEventListener("reset", (
|
|
426
|
-
t
|
|
422
|
+
}), yl = ["static", "interactive"], kl = ["1", "2", "3"], se = (e, a, l = "value") => {
|
|
423
|
+
e(`update:${l}`, a.target[l]);
|
|
424
|
+
}, Ne = (e, a, l) => {
|
|
425
|
+
e.form && !e._dbFormResetListenerAdded && (e.form.addEventListener("reset", (t) => {
|
|
426
|
+
a(t);
|
|
427
427
|
}, {
|
|
428
428
|
signal: l
|
|
429
429
|
}), e._dbFormResetListenerAdded = !0);
|
|
430
|
-
},
|
|
431
|
-
|
|
430
|
+
}, st = (e, a, l, t) => {
|
|
431
|
+
Ne(e, (i) => {
|
|
432
432
|
Y(() => {
|
|
433
|
-
const c =
|
|
433
|
+
const c = a.checked ? a.checked : a.defaultChecked ? a.defaultChecked : e.checked, u = {
|
|
434
434
|
...i,
|
|
435
435
|
target: {
|
|
436
436
|
...i.target,
|
|
@@ -439,11 +439,11 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
439
439
|
};
|
|
440
440
|
l(u);
|
|
441
441
|
}, 1);
|
|
442
|
-
},
|
|
443
|
-
},
|
|
444
|
-
|
|
442
|
+
}, t);
|
|
443
|
+
}, Ge = (e, a, l, t) => {
|
|
444
|
+
Ne(e, (i) => {
|
|
445
445
|
Y(() => {
|
|
446
|
-
const c =
|
|
446
|
+
const c = a.value ? a.value : a.defaultValue ? a.defaultValue : e.value, u = {
|
|
447
447
|
...i,
|
|
448
448
|
target: {
|
|
449
449
|
...i.target,
|
|
@@ -452,8 +452,8 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
452
452
|
};
|
|
453
453
|
l(u);
|
|
454
454
|
}, 1);
|
|
455
|
-
},
|
|
456
|
-
},
|
|
455
|
+
}, t);
|
|
456
|
+
}, Kt = ["id", "data-icon", "data-semantic", "data-size", "data-show-icon-leading"], _ = /* @__PURE__ */ G({
|
|
457
457
|
name: "DBInfotext",
|
|
458
458
|
__name: "infotext",
|
|
459
459
|
props: {
|
|
@@ -469,26 +469,26 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
469
469
|
text: { default: void 0 }
|
|
470
470
|
},
|
|
471
471
|
setup(e) {
|
|
472
|
-
const
|
|
473
|
-
return (
|
|
472
|
+
const a = e, l = o(null);
|
|
473
|
+
return (t, i) => (h(), b("span", {
|
|
474
474
|
ref_key: "_ref",
|
|
475
475
|
ref: l,
|
|
476
476
|
id: e.id,
|
|
477
|
-
class: q(n(O)("db-infotext",
|
|
477
|
+
class: q(n(O)("db-infotext", a.class)),
|
|
478
478
|
"data-icon": e.icon,
|
|
479
479
|
"data-semantic": e.semantic,
|
|
480
480
|
"data-size": e.size,
|
|
481
481
|
"data-show-icon-leading": n(R)(e.showIcon ?? !0)
|
|
482
482
|
}, [
|
|
483
|
-
e.text ? (
|
|
484
|
-
D(
|
|
485
|
-
], 64)) :
|
|
486
|
-
], 10,
|
|
483
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
484
|
+
D(L(e.text), 1)
|
|
485
|
+
], 64)) : F(t.$slots, "default", { key: 1 })
|
|
486
|
+
], 10, Kt));
|
|
487
487
|
}
|
|
488
|
-
}),
|
|
488
|
+
}), Yt = ["data-size", "data-hide-asterisk", "data-hide-label"], Jt = ["for"], Qt = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Zt = {
|
|
489
489
|
"data-visually-hidden": "true",
|
|
490
490
|
role: "status"
|
|
491
|
-
},
|
|
491
|
+
}, wl = /* @__PURE__ */ G({
|
|
492
492
|
name: "DBCheckbox",
|
|
493
493
|
__name: "checkbox",
|
|
494
494
|
props: {
|
|
@@ -526,18 +526,18 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
526
526
|
size: { default: void 0 }
|
|
527
527
|
},
|
|
528
528
|
emits: ["update:checked"],
|
|
529
|
-
setup(e, { emit:
|
|
530
|
-
const l =
|
|
529
|
+
setup(e, { emit: a }) {
|
|
530
|
+
const l = a, t = e, i = o(!1), c = o(void 0), u = o(void 0), v = o(void 0), m = o(void 0), f = o(void 0), k = o(void 0), $ = o(""), w = o(void 0), s = o(null);
|
|
531
531
|
Q(() => {
|
|
532
532
|
i.value = !0;
|
|
533
|
-
const
|
|
534
|
-
c.value =
|
|
533
|
+
const g = t.id ?? `checkbox-${te()}`;
|
|
534
|
+
c.value = g, u.value = g + re, v.value = g + ve, m.value = g + fe, f.value = t.invalidMessage || ae;
|
|
535
535
|
}), me(() => {
|
|
536
|
-
|
|
536
|
+
w.value?.abort();
|
|
537
537
|
}), C(
|
|
538
|
-
() => [s.value,
|
|
538
|
+
() => [s.value, t.invalidMessage],
|
|
539
539
|
() => {
|
|
540
|
-
|
|
540
|
+
f.value = t.invalidMessage || s.value?.validationMessage || ae;
|
|
541
541
|
},
|
|
542
542
|
{
|
|
543
543
|
immediate: !0,
|
|
@@ -547,8 +547,8 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
547
547
|
() => [c.value],
|
|
548
548
|
() => {
|
|
549
549
|
if (c.value) {
|
|
550
|
-
const
|
|
551
|
-
u.value =
|
|
550
|
+
const g = c.value + re;
|
|
551
|
+
u.value = g, v.value = c.value + ve, m.value = c.value + fe, ee(t.message, t.showMessage) && (k.value = g), S();
|
|
552
552
|
}
|
|
553
553
|
},
|
|
554
554
|
{
|
|
@@ -556,18 +556,18 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
556
556
|
flush: "post"
|
|
557
557
|
}
|
|
558
558
|
), C(
|
|
559
|
-
() => [i.value, s.value,
|
|
559
|
+
() => [i.value, s.value, t.indeterminate],
|
|
560
560
|
() => {
|
|
561
|
-
s.value &&
|
|
561
|
+
s.value && t.indeterminate !== void 0 && (s.value.indeterminate = !!V(t.indeterminate));
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
564
|
immediate: !0,
|
|
565
565
|
flush: "post"
|
|
566
566
|
}
|
|
567
567
|
), C(
|
|
568
|
-
() => [i.value, s.value,
|
|
568
|
+
() => [i.value, s.value, t.checked],
|
|
569
569
|
() => {
|
|
570
|
-
i.value && s.value && (
|
|
570
|
+
i.value && s.value && (t.checked != null && (s.value.checked = !!V(t.checked)), i.value = !1);
|
|
571
571
|
},
|
|
572
572
|
{
|
|
573
573
|
immediate: !0,
|
|
@@ -577,17 +577,17 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
577
577
|
() => [s.value],
|
|
578
578
|
() => {
|
|
579
579
|
if (s.value) {
|
|
580
|
-
let
|
|
581
|
-
|
|
580
|
+
let p = w.value;
|
|
581
|
+
p || (p = new AbortController(), w.value = p), st(
|
|
582
582
|
s.value,
|
|
583
583
|
{
|
|
584
|
-
checked:
|
|
584
|
+
checked: t.checked,
|
|
585
585
|
defaultChecked: void 0
|
|
586
586
|
},
|
|
587
587
|
(N) => {
|
|
588
|
-
|
|
588
|
+
y(N);
|
|
589
589
|
},
|
|
590
|
-
|
|
590
|
+
p.signal
|
|
591
591
|
);
|
|
592
592
|
}
|
|
593
593
|
},
|
|
@@ -597,22 +597,22 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
597
597
|
}
|
|
598
598
|
);
|
|
599
599
|
function d() {
|
|
600
|
-
return !!(
|
|
600
|
+
return !!(t.validMessage ?? t.validation === "valid");
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
!s.value?.validity.valid ||
|
|
602
|
+
function S() {
|
|
603
|
+
!s.value?.validity.valid || t.validation === "invalid" ? (k.value = m.value, f.value = t.invalidMessage || s.value?.validationMessage || ae, ce() && ($.value = f.value, Y(() => $.value = "", 1e3))) : d() && s.value?.validity.valid && t.required ? (k.value = v.value, ce() && ($.value = t.validMessage ?? ue, Y(() => $.value = "", 1e3))) : ee(t.message, t.showMessage) ? k.value = u.value : k.value = void 0;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
|
|
605
|
+
function y(g, p) {
|
|
606
|
+
t.onChange && t.onChange(g), se(l, g, "checked"), S();
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
|
|
608
|
+
function x(g) {
|
|
609
|
+
t.onBlur && t.onBlur(g);
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
|
|
611
|
+
function B(g) {
|
|
612
|
+
t.onFocus && t.onFocus(g);
|
|
613
613
|
}
|
|
614
|
-
return (
|
|
615
|
-
class: q(n(O)("db-checkbox",
|
|
614
|
+
return (g, p) => (h(), b("div", {
|
|
615
|
+
class: q(n(O)("db-checkbox", t.class)),
|
|
616
616
|
"data-size": e.size,
|
|
617
617
|
"data-hide-asterisk": n(oe)(e.showRequiredAsterisk),
|
|
618
618
|
"data-hide-label": n(oe)(e.showLabel)
|
|
@@ -630,34 +630,34 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
630
630
|
disabled: n(V)(e.disabled, "disabled"),
|
|
631
631
|
value: e.value,
|
|
632
632
|
required: n(V)(e.required, "required"),
|
|
633
|
-
onChange:
|
|
634
|
-
onBlur:
|
|
635
|
-
onFocus:
|
|
633
|
+
onChange: p[0] || (p[0] = async (N) => y(N)),
|
|
634
|
+
onBlur: p[1] || (p[1] = async (N) => x(N)),
|
|
635
|
+
onFocus: p[2] || (p[2] = async (N) => B(N)),
|
|
636
636
|
"aria-describedby": e.ariaDescribedBy ?? k.value
|
|
637
|
-
}, null, 40,
|
|
638
|
-
e.label ? (
|
|
639
|
-
D(
|
|
640
|
-
], 64)) :
|
|
641
|
-
], 8,
|
|
642
|
-
n(ee)(e.message, e.showMessage) ? (
|
|
637
|
+
}, null, 40, Qt),
|
|
638
|
+
e.label ? (h(), b(W, { key: 0 }, [
|
|
639
|
+
D(L(e.label), 1)
|
|
640
|
+
], 64)) : F(g.$slots, "default", { key: 1 })
|
|
641
|
+
], 8, Jt),
|
|
642
|
+
n(ee)(e.message, e.showMessage) ? (h(), J(_, {
|
|
643
643
|
key: 0,
|
|
644
644
|
size: "small",
|
|
645
645
|
icon: e.messageIcon,
|
|
646
646
|
id: u.value
|
|
647
647
|
}, {
|
|
648
648
|
default: U(() => [
|
|
649
|
-
D(
|
|
649
|
+
D(L(e.message), 1)
|
|
650
650
|
]),
|
|
651
651
|
_: 1
|
|
652
652
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
653
|
-
d() ? (
|
|
653
|
+
d() ? (h(), J(_, {
|
|
654
654
|
key: 1,
|
|
655
655
|
size: "small",
|
|
656
656
|
semantic: "successful",
|
|
657
|
-
id:
|
|
657
|
+
id: v.value
|
|
658
658
|
}, {
|
|
659
659
|
default: U(() => [
|
|
660
|
-
D(
|
|
660
|
+
D(L(e.validMessage || n(ue)), 1)
|
|
661
661
|
]),
|
|
662
662
|
_: 1
|
|
663
663
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -667,106 +667,106 @@ const al = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
667
667
|
id: m.value
|
|
668
668
|
}, {
|
|
669
669
|
default: U(() => [
|
|
670
|
-
D(
|
|
670
|
+
D(L(f.value), 1)
|
|
671
671
|
]),
|
|
672
672
|
_: 1
|
|
673
673
|
}, 8, ["id"]),
|
|
674
|
-
E("span",
|
|
675
|
-
], 10,
|
|
674
|
+
E("span", Zt, L($.value), 1)
|
|
675
|
+
], 10, Yt));
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
678
|
class he {
|
|
679
679
|
static callbacks = {};
|
|
680
680
|
static _instance = null;
|
|
681
|
-
static runCallbacks(
|
|
681
|
+
static runCallbacks(a) {
|
|
682
682
|
for (const l of Object.values(he.callbacks))
|
|
683
|
-
typeof l == "function" && l(
|
|
683
|
+
typeof l == "function" && l(a);
|
|
684
684
|
}
|
|
685
685
|
constructor() {
|
|
686
686
|
if (he._instance)
|
|
687
687
|
return he._instance;
|
|
688
|
-
he._instance = this, self.document && self.document.addEventListener("click", (
|
|
688
|
+
he._instance = this, self.document && self.document.addEventListener("click", (a) => he.runCallbacks(a));
|
|
689
689
|
}
|
|
690
|
-
addCallback(
|
|
691
|
-
const l =
|
|
692
|
-
return he.callbacks[l] =
|
|
690
|
+
addCallback(a) {
|
|
691
|
+
const l = te();
|
|
692
|
+
return he.callbacks[l] = a, l;
|
|
693
693
|
}
|
|
694
|
-
removeCallback(
|
|
695
|
-
delete he.callbacks[
|
|
694
|
+
removeCallback(a) {
|
|
695
|
+
delete he.callbacks[a];
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
class de {
|
|
699
699
|
static callbacks = {};
|
|
700
700
|
static _instance = null;
|
|
701
|
-
static runCallbacks(
|
|
701
|
+
static runCallbacks(a) {
|
|
702
702
|
for (const l of Object.values(de.callbacks))
|
|
703
|
-
typeof l == "function" && l(
|
|
703
|
+
typeof l == "function" && l(a);
|
|
704
704
|
}
|
|
705
705
|
ticking = !1;
|
|
706
706
|
constructor() {
|
|
707
707
|
if (de._instance)
|
|
708
708
|
return de._instance;
|
|
709
|
-
de._instance = this, self.document && self.document.addEventListener("scroll", (
|
|
709
|
+
de._instance = this, self.document && self.document.addEventListener("scroll", (a) => {
|
|
710
710
|
this.ticking || (window.requestAnimationFrame(() => {
|
|
711
|
-
de.runCallbacks(
|
|
711
|
+
de.runCallbacks(a), this.ticking = !1;
|
|
712
712
|
}), this.ticking = !0);
|
|
713
713
|
}, !0);
|
|
714
714
|
}
|
|
715
|
-
addCallback(
|
|
716
|
-
const l =
|
|
717
|
-
return de.callbacks[l] =
|
|
715
|
+
addCallback(a) {
|
|
716
|
+
const l = te();
|
|
717
|
+
return de.callbacks[l] = a, l;
|
|
718
718
|
}
|
|
719
|
-
removeCallback(
|
|
720
|
-
delete de.callbacks[
|
|
719
|
+
removeCallback(a) {
|
|
720
|
+
delete de.callbacks[a];
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
const
|
|
723
|
+
const _t = (e) => {
|
|
724
724
|
const {
|
|
725
|
-
top:
|
|
725
|
+
top: a,
|
|
726
726
|
bottom: l,
|
|
727
|
-
left:
|
|
727
|
+
left: t,
|
|
728
728
|
right: i
|
|
729
729
|
} = e.getBoundingClientRect(), {
|
|
730
730
|
innerHeight: c,
|
|
731
731
|
innerWidth: u
|
|
732
732
|
} = window;
|
|
733
|
-
let
|
|
734
|
-
const $ = e.dataset.outsideVy,
|
|
735
|
-
return s && ($ && (e.dataset.outsideVy === "top" ?
|
|
736
|
-
outTop:
|
|
733
|
+
let v = a < 0, m = l > c, f = t < 0, k = i > u;
|
|
734
|
+
const $ = e.dataset.outsideVy, w = e.dataset.outsideVx, s = e?.parentElement?.getBoundingClientRect();
|
|
735
|
+
return s && ($ && (e.dataset.outsideVy === "top" ? v = s.top - (l - s.bottom) < 0 : m = s.bottom + (s.top - a) > c), w && (e.dataset.outsideVx === "left" ? f = s.left - (i - s.right) < 0 : k = s.right + (s.left - t) > u)), {
|
|
736
|
+
outTop: v,
|
|
737
737
|
outBottom: m,
|
|
738
|
-
outLeft:
|
|
738
|
+
outLeft: f,
|
|
739
739
|
outRight: k
|
|
740
740
|
};
|
|
741
|
-
},
|
|
741
|
+
}, ea = (e) => {
|
|
742
742
|
const {
|
|
743
|
-
outTop:
|
|
743
|
+
outTop: a,
|
|
744
744
|
outBottom: l,
|
|
745
|
-
outLeft:
|
|
745
|
+
outLeft: t,
|
|
746
746
|
outRight: i
|
|
747
|
-
} =
|
|
747
|
+
} = _t(e);
|
|
748
748
|
let c = {};
|
|
749
|
-
return
|
|
750
|
-
vy:
|
|
751
|
-
}, e.dataset.outsideVy = c.vy) : delete e.dataset.outsideVy,
|
|
749
|
+
return a || l ? (c = {
|
|
750
|
+
vy: a ? "top" : "bottom"
|
|
751
|
+
}, e.dataset.outsideVy = c.vy) : delete e.dataset.outsideVy, t || i ? (c = {
|
|
752
752
|
...c,
|
|
753
753
|
vx: i ? "right" : "left"
|
|
754
754
|
}, e.dataset.outsideVx = c.vx) : delete e.dataset.outsideVx, c;
|
|
755
|
-
},
|
|
755
|
+
}, ta = (e, a, l) => {
|
|
756
756
|
if (getComputedStyle(e).zIndex === "9999") return;
|
|
757
757
|
const {
|
|
758
|
-
top:
|
|
758
|
+
top: t,
|
|
759
759
|
bottom: i,
|
|
760
760
|
childHeight: c,
|
|
761
761
|
childWidth: u,
|
|
762
|
-
width:
|
|
762
|
+
width: v,
|
|
763
763
|
right: m,
|
|
764
|
-
left:
|
|
764
|
+
left: f,
|
|
765
765
|
correctedPlacement: k
|
|
766
|
-
} =
|
|
767
|
-
e.dataset.width === "full" && (e.style.inlineSize = `${
|
|
768
|
-
},
|
|
769
|
-
if (!e || !
|
|
766
|
+
} = ut(e, a, l);
|
|
767
|
+
e.dataset.width === "full" && (e.style.inlineSize = `${v}px`), k === "top" || k === "bottom" || k === "top-start" || k === "bottom-start" ? e.style.insetInlineStart = `${f}px` : (k === "top-end" || k === "bottom-end") && (e.style.insetInlineStart = `${m - u}px`), k?.startsWith("top") ? e.style.insetBlockStart = `${t - c}px` : k?.startsWith("bottom") && (e.style.insetBlockStart = `${i}px`), e.style.position = "fixed";
|
|
768
|
+
}, ut = (e, a, l) => {
|
|
769
|
+
if (!e || !a)
|
|
770
770
|
return {
|
|
771
771
|
top: 0,
|
|
772
772
|
bottom: 0,
|
|
@@ -780,88 +780,103 @@ const Za = (e) => {
|
|
|
780
780
|
innerWidth: window.innerWidth,
|
|
781
781
|
innerHeight: window.innerHeight
|
|
782
782
|
};
|
|
783
|
-
const
|
|
783
|
+
const t = e.getBoundingClientRect(), {
|
|
784
784
|
top: i,
|
|
785
785
|
height: c,
|
|
786
786
|
bottom: u,
|
|
787
|
-
right:
|
|
787
|
+
right: v,
|
|
788
788
|
left: m,
|
|
789
|
-
width:
|
|
790
|
-
} =
|
|
789
|
+
width: f
|
|
790
|
+
} = a.getBoundingClientRect(), {
|
|
791
791
|
innerHeight: k,
|
|
792
792
|
innerWidth: $
|
|
793
793
|
} = window;
|
|
794
|
-
let
|
|
795
|
-
(l === "bottom" || l === "top") && (s = s / 2), (l === "left" || l === "right") && (
|
|
796
|
-
const d = u +
|
|
797
|
-
let
|
|
798
|
-
return l.startsWith("bottom") ? d ? (
|
|
794
|
+
let w = t.height, s = t.width;
|
|
795
|
+
(l === "bottom" || l === "top") && (s = s / 2), (l === "left" || l === "right") && (w = w / 2);
|
|
796
|
+
const d = u + w > k, S = i - w < 0, y = m - s < 0, x = v + s > $;
|
|
797
|
+
let B = l;
|
|
798
|
+
return l.startsWith("bottom") ? d ? (B = l?.replace("bottom", "top"), y && x ? B = "top" : y ? B = "top-start" : x && (B = "top-end")) : y && x ? B = "bottom" : y ? B = "bottom-start" : x && (B = "bottom-end") : l.startsWith("top") ? S ? (B = l?.replace("top", "bottom"), y && x ? B = "bottom" : y ? B = "bottom-start" : x && (B = "bottom-end")) : y && x ? B = "top" : y ? B = "top-start" : x && (B = "top-end") : l.startsWith("left") ? y ? (B = l?.replace("left", "right"), d && S ? B = "right" : d ? B = "right-end" : S && (B = "right-start")) : d && S ? B = "left" : d ? B = "left-end" : S && (B = "left-start") : B.startsWith("right") && (x ? (B = l?.replace("right", "left"), d && S ? B = "left" : d ? B = "left-end" : S && (B = "left-start")) : d && S ? B = "right" : d ? B = "right-end" : S && (B = "right-start")), {
|
|
799
799
|
top: i,
|
|
800
800
|
bottom: u,
|
|
801
|
-
right:
|
|
801
|
+
right: v,
|
|
802
802
|
height: c,
|
|
803
|
-
width:
|
|
803
|
+
width: f,
|
|
804
804
|
left: m,
|
|
805
|
-
childHeight:
|
|
806
|
-
childWidth:
|
|
807
|
-
correctedPlacement:
|
|
805
|
+
childHeight: t.height,
|
|
806
|
+
childWidth: t.width,
|
|
807
|
+
correctedPlacement: B,
|
|
808
808
|
innerWidth: $,
|
|
809
809
|
innerHeight: k
|
|
810
810
|
};
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
left: k,
|
|
820
|
-
bottom: $,
|
|
821
|
-
correctedPlacement: g,
|
|
822
|
-
innerWidth: s,
|
|
823
|
-
innerHeight: d
|
|
824
|
-
} = sa(e, t, l);
|
|
825
|
-
if (m > u && (g.startsWith("bottom") || g.startsWith("top"))) {
|
|
826
|
-
const b = u / 2 / m * 100;
|
|
827
|
-
g.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-inline-start", `${b}%`) : g.endsWith("end") && e.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - b}%`);
|
|
811
|
+
}, aa = 10, Me = /* @__PURE__ */ new WeakMap(), ia = (e) => {
|
|
812
|
+
if (Me.has(e))
|
|
813
|
+
return Me.get(e);
|
|
814
|
+
let a = e.parentElement, l = 0;
|
|
815
|
+
for (; a && l < aa; ) {
|
|
816
|
+
if (a.dataset.correctedPlacement)
|
|
817
|
+
return Me.set(e, a), a;
|
|
818
|
+
a = a.parentElement, l += 1;
|
|
828
819
|
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
820
|
+
return Me.set(e, null), null;
|
|
821
|
+
}, ct = (e, a, l) => {
|
|
822
|
+
const t = getComputedStyle(a), i = ["absolute", "fixed"].includes(t.position), c = ia(e), u = !c && !i, v = getComputedStyle(e)?.getPropertyValue("--db-popover-distance") ?? "0px";
|
|
823
|
+
let {
|
|
824
|
+
top: m,
|
|
825
|
+
height: f,
|
|
826
|
+
width: k,
|
|
827
|
+
childHeight: $,
|
|
828
|
+
childWidth: w,
|
|
829
|
+
right: s,
|
|
830
|
+
left: d,
|
|
831
|
+
bottom: S,
|
|
832
|
+
correctedPlacement: y,
|
|
833
|
+
innerWidth: x,
|
|
834
|
+
innerHeight: B
|
|
835
|
+
} = ut(e, a, l);
|
|
836
|
+
if (c) {
|
|
837
|
+
const g = c.getBoundingClientRect();
|
|
838
|
+
d = Math.abs(d - g.left), s = (k + Math.abs(s - g.right)) * 1.5, m = Math.abs(m - g.top), S = (f + Math.abs(S - g.bottom)) * 1.5;
|
|
832
839
|
}
|
|
833
|
-
if (
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
const b = i + f;
|
|
837
|
-
e.style.insetBlockStart = `${i}px`, e.style.insetBlockEnd = `${b > d ? d : b}px`;
|
|
838
|
-
} else if (g === "right-end" || g === "left-end") {
|
|
839
|
-
const b = $ - f;
|
|
840
|
-
e.style.insetBlockStart = `${b < 0 ? 0 : b}px`, e.style.insetBlockEnd = `${$}px`;
|
|
841
|
-
} else if (g === "top" || g === "bottom")
|
|
842
|
-
e.style.insetInlineStart = `${k + u / 2}px`;
|
|
843
|
-
else if (g === "top-start" || g === "bottom-start") {
|
|
844
|
-
const b = k + m;
|
|
845
|
-
e.style.insetInlineStart = `${k}px`, e.style.insetInlineEnd = `${b > s ? s : b}px`;
|
|
846
|
-
} else if (g === "top-end" || g === "bottom-end") {
|
|
847
|
-
const b = k - m;
|
|
848
|
-
e.style.insetInlineStart = `${h - m}px`, e.style.insetInlineEnd = `${b < 0 ? 0 : b}px`;
|
|
840
|
+
if (i && (d = 0, s = k, m = 0, S = f, ["auto", "inherit", "0"].includes(t.zIndex) && (a.style.zIndex = "1")), w > k && (y.startsWith("bottom") || y.startsWith("top"))) {
|
|
841
|
+
const g = k / 2 / w * 100;
|
|
842
|
+
y.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-inline-start", `${g}%`) : y.endsWith("end") ? e.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - g}%`) : e.style.setProperty("--db-tooltip-arrow-inline-start", "50%");
|
|
849
843
|
}
|
|
850
|
-
if (
|
|
851
|
-
const
|
|
852
|
-
e.style.
|
|
853
|
-
} else if (g?.startsWith("left")) {
|
|
854
|
-
const b = k - m;
|
|
855
|
-
e.style.insetInlineStart = `calc(${b < 0 ? 0 : b}px - ${a})`, e.style.insetInlineEnd = `calc(${h}px - ${a})`;
|
|
856
|
-
} else if (g?.startsWith("top")) {
|
|
857
|
-
const b = i - f;
|
|
858
|
-
e.style.insetBlockStart = `calc(${b < 0 ? 0 : b}px - ${a})`, e.style.insetBlockEnd = `calc(${$}px - ${a})`;
|
|
859
|
-
} else if (g?.startsWith("bottom")) {
|
|
860
|
-
const b = $ + f;
|
|
861
|
-
e.style.insetBlockStart = `calc(${$}px + ${a})`, e.style.insetBlockEnd = `calc(${b > d ? d : b}px + ${a})`;
|
|
844
|
+
if ($ > f && (y.startsWith("left") || y.startsWith("bottom"))) {
|
|
845
|
+
const g = f / 2 / $ * 100;
|
|
846
|
+
y.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-block-start", `${g}%`) : y.endsWith("end") ? e.style.setProperty("--db-tooltip-arrow-block-start", `${100 - g}%`) : e.style.setProperty("--db-tooltip-arrow-block-start", "50%");
|
|
862
847
|
}
|
|
863
|
-
|
|
864
|
-
|
|
848
|
+
if (y === "right" || y === "left")
|
|
849
|
+
e.style.insetBlockStart = `${m + f / 2}px`;
|
|
850
|
+
else if (y === "right-start" || y === "left-start") {
|
|
851
|
+
const g = m + $;
|
|
852
|
+
e.style.insetBlockStart = `${m}px`, e.style.insetBlockEnd = `${!i && g > B ? B : g}px`;
|
|
853
|
+
} else if (y === "right-end" || y === "left-end") {
|
|
854
|
+
const g = S - $;
|
|
855
|
+
e.style.insetBlockStart = `${!i && g < 0 ? 0 : g}px`, e.style.insetBlockEnd = `${S}px`;
|
|
856
|
+
} else if (y === "top" || y === "bottom")
|
|
857
|
+
e.style.insetInlineStart = `${d + k / 2}px`;
|
|
858
|
+
else if (y === "top-start" || y === "bottom-start") {
|
|
859
|
+
const g = d + w;
|
|
860
|
+
e.style.insetInlineStart = `${d}px`, e.style.insetInlineEnd = `${!i && g > x ? x : g}px`;
|
|
861
|
+
} else if (y === "top-end" || y === "bottom-end") {
|
|
862
|
+
const g = s - w;
|
|
863
|
+
e.style.insetInlineStart = `${!i && g < 0 ? 0 : g}px`, e.style.insetInlineEnd = `${s}px`;
|
|
864
|
+
}
|
|
865
|
+
if (y?.startsWith("right")) {
|
|
866
|
+
const g = s + w;
|
|
867
|
+
e.style.insetInlineStart = `calc(${s}px + ${v})`, e.style.insetInlineEnd = `calc(${u && g > x ? x : g}px + ${v})`;
|
|
868
|
+
} else if (y?.startsWith("left")) {
|
|
869
|
+
const g = d - w;
|
|
870
|
+
e.style.insetInlineStart = `calc(${u && g < 0 ? 0 : g}px - ${v})`, e.style.insetInlineEnd = `calc(${s}px - ${v})`;
|
|
871
|
+
} else if (y?.startsWith("top")) {
|
|
872
|
+
const g = m - $;
|
|
873
|
+
e.style.insetBlockStart = `calc(${u && g < 0 ? 0 : g}px - ${v})`, e.style.insetBlockEnd = `calc(${i ? g : S}px - ${v})`;
|
|
874
|
+
} else if (y?.startsWith("bottom")) {
|
|
875
|
+
const g = S + $;
|
|
876
|
+
e.style.insetBlockStart = `calc(${i ? g : S}px + ${v})`, e.style.insetBlockEnd = `calc(${u && g > B ? B : g}px + ${v})`;
|
|
877
|
+
}
|
|
878
|
+
e.style.position = "fixed", e.dataset.correctedPlacement = y;
|
|
879
|
+
}, la = ["id", "data-width"], na = /* @__PURE__ */ G({
|
|
865
880
|
name: "DBCustomSelectDropdown",
|
|
866
881
|
__name: "custom-select-dropdown",
|
|
867
882
|
props: {
|
|
@@ -873,19 +888,19 @@ const Za = (e) => {
|
|
|
873
888
|
autofocus: { type: [Boolean, String] }
|
|
874
889
|
},
|
|
875
890
|
setup(e) {
|
|
876
|
-
const
|
|
877
|
-
return (
|
|
891
|
+
const a = e, l = o(null);
|
|
892
|
+
return (t, i) => (h(), b("article", {
|
|
878
893
|
"data-spacing": "none",
|
|
879
894
|
ref_key: "_ref",
|
|
880
895
|
ref: l,
|
|
881
896
|
id: e.id,
|
|
882
|
-
class: q(n(O)("db-custom-select-dropdown db-card",
|
|
897
|
+
class: q(n(O)("db-custom-select-dropdown db-card", a.class)),
|
|
883
898
|
"data-width": e.width
|
|
884
899
|
}, [
|
|
885
|
-
|
|
886
|
-
], 10,
|
|
900
|
+
F(t.$slots, "default")
|
|
901
|
+
], 10, la));
|
|
887
902
|
}
|
|
888
|
-
}),
|
|
903
|
+
}), oa = ["id", "data-divider"], da = ["data-icon", "data-show-icon", "data-icon-trailing"], sa = ["type", "name", "form", "checked", "disabled", "value"], ua = { key: 1 }, ca = /* @__PURE__ */ G({
|
|
889
904
|
name: "DBCustomSelectListItem",
|
|
890
905
|
__name: "custom-select-list-item",
|
|
891
906
|
props: {
|
|
@@ -909,40 +924,40 @@ const Za = (e) => {
|
|
|
909
924
|
showIcon: { type: [Boolean, String], default: void 0 }
|
|
910
925
|
},
|
|
911
926
|
emits: ["update:checked"],
|
|
912
|
-
setup(e, { emit:
|
|
913
|
-
const l =
|
|
927
|
+
setup(e, { emit: a }) {
|
|
928
|
+
const l = a, t = e, i = o(void 0), c = o(!1), u = o(null);
|
|
914
929
|
Q(() => {
|
|
915
|
-
i.value =
|
|
930
|
+
i.value = t.id ?? `custom-select-list-item-${te()}`;
|
|
916
931
|
}), C(
|
|
917
|
-
() => [
|
|
932
|
+
() => [t.isGroupTitle, t.showDivider],
|
|
918
933
|
() => {
|
|
919
|
-
c.value = !!(
|
|
934
|
+
c.value = !!(t.isGroupTitle || t.showDivider);
|
|
920
935
|
},
|
|
921
936
|
{
|
|
922
937
|
immediate: !0,
|
|
923
938
|
flush: "post"
|
|
924
939
|
}
|
|
925
940
|
);
|
|
926
|
-
function f
|
|
927
|
-
|
|
941
|
+
function v(f) {
|
|
942
|
+
f.stopPropagation(), t.onChange && t.onChange(f), se(l, f, "checked");
|
|
928
943
|
}
|
|
929
944
|
function m() {
|
|
930
|
-
if (!(
|
|
931
|
-
return V(
|
|
945
|
+
if (!(t.isGroupTitle || t.type === "checkbox"))
|
|
946
|
+
return V(t.checked, "checked") ? "check" : "x_placeholder";
|
|
932
947
|
}
|
|
933
|
-
return (
|
|
948
|
+
return (f, k) => (h(), b("li", {
|
|
934
949
|
ref_key: "_ref",
|
|
935
950
|
ref: u,
|
|
936
951
|
id: i.value,
|
|
937
952
|
class: q(
|
|
938
|
-
n(O)("db-custom-select-list-item",
|
|
953
|
+
n(O)("db-custom-select-list-item", t.class, {
|
|
939
954
|
"db-checkbox": e.type === "checkbox" && !e.isGroupTitle,
|
|
940
955
|
"db-radio": e.type !== "checkbox" && !e.isGroupTitle
|
|
941
956
|
})
|
|
942
957
|
),
|
|
943
958
|
"data-divider": n(R)(c.value)
|
|
944
959
|
}, [
|
|
945
|
-
e.isGroupTitle ? (
|
|
960
|
+
e.isGroupTitle ? (h(), b("span", ua, L(e.groupTitle), 1)) : (h(), b("label", {
|
|
946
961
|
key: 0,
|
|
947
962
|
"data-icon": e.type !== "checkbox" && e.icon ? e.icon : void 0,
|
|
948
963
|
"data-show-icon": n(R)(e.showIcon),
|
|
@@ -957,15 +972,15 @@ const Za = (e) => {
|
|
|
957
972
|
checked: n(V)(e.checked, "checked"),
|
|
958
973
|
disabled: n(V)(e.disabled, "disabled"),
|
|
959
974
|
value: e.value,
|
|
960
|
-
onChange: k[0] || (k[0] = async ($) =>
|
|
961
|
-
}, null, 40,
|
|
962
|
-
e.label ? (
|
|
963
|
-
D(
|
|
964
|
-
], 64)) :
|
|
965
|
-
], 8,
|
|
966
|
-
], 10,
|
|
975
|
+
onChange: k[0] || (k[0] = async ($) => v($))
|
|
976
|
+
}, null, 40, sa),
|
|
977
|
+
e.label ? (h(), b(W, { key: 0 }, [
|
|
978
|
+
D(L(e.label), 1)
|
|
979
|
+
], 64)) : F(f.$slots, "default", { key: 1 })
|
|
980
|
+
], 8, da))
|
|
981
|
+
], 10, oa));
|
|
967
982
|
}
|
|
968
|
-
}),
|
|
983
|
+
}), ra = ["role", "aria-label", "id"], va = /* @__PURE__ */ G({
|
|
969
984
|
name: "DBCustomSelectList",
|
|
970
985
|
__name: "custom-select-list",
|
|
971
986
|
props: {
|
|
@@ -978,24 +993,24 @@ const Za = (e) => {
|
|
|
978
993
|
autofocus: { type: [Boolean, String] }
|
|
979
994
|
},
|
|
980
995
|
setup(e) {
|
|
981
|
-
const
|
|
982
|
-
return (
|
|
996
|
+
const a = e, l = o(null);
|
|
997
|
+
return (t, i) => (h(), b("div", {
|
|
983
998
|
role: e.multiple ? "group" : "radiogroup",
|
|
984
999
|
"aria-label": e.label,
|
|
985
1000
|
ref_key: "_ref",
|
|
986
1001
|
ref: l,
|
|
987
1002
|
id: e.id,
|
|
988
|
-
class: q(n(O)("db-custom-select-list",
|
|
1003
|
+
class: q(n(O)("db-custom-select-list", a.class))
|
|
989
1004
|
}, [
|
|
990
1005
|
E("ul", null, [
|
|
991
|
-
|
|
1006
|
+
F(t.$slots, "default")
|
|
992
1007
|
])
|
|
993
|
-
], 10,
|
|
1008
|
+
], 10, ra));
|
|
994
1009
|
}
|
|
995
|
-
}),
|
|
1010
|
+
}), fa = ["data-variant", "data-hide-label", "data-show-icon", "data-icon", "data-icon-trailing", "data-hide-asterisk", "data-show-icon-trailing"], ha = ["for"], ma = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "name", "type", "multiple", "accept", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "enterKeyHint", "inputMode", "list", "aria-describedby", "role"], ga = ["id"], ba = ["value"], ya = {
|
|
996
1011
|
"data-visually-hidden": "true",
|
|
997
1012
|
role: "status"
|
|
998
|
-
},
|
|
1013
|
+
}, ka = /* @__PURE__ */ G({
|
|
999
1014
|
name: "DBInput",
|
|
1000
1015
|
__name: "input",
|
|
1001
1016
|
props: {
|
|
@@ -1060,17 +1075,17 @@ const Za = (e) => {
|
|
|
1060
1075
|
size: { default: void 0 }
|
|
1061
1076
|
},
|
|
1062
1077
|
emits: ["update:value"],
|
|
1063
|
-
setup(e, { emit:
|
|
1064
|
-
const l =
|
|
1078
|
+
setup(e, { emit: a }) {
|
|
1079
|
+
const l = a, t = e, i = o(void 0), c = o(void 0), u = o(void 0), v = o(void 0), m = o(void 0), f = o(void 0), k = o(void 0), $ = o(""), w = o(""), s = o(void 0), d = o(null);
|
|
1065
1080
|
Q(() => {
|
|
1066
|
-
const
|
|
1067
|
-
i.value =
|
|
1081
|
+
const M = t.id ?? `input-${te()}`;
|
|
1082
|
+
i.value = M, c.value = M + re, u.value = M + ve, v.value = M + fe, f.value = M + Ze, m.value = t.invalidMessage || ae;
|
|
1068
1083
|
}), me(() => {
|
|
1069
1084
|
s.value?.abort();
|
|
1070
1085
|
}), C(
|
|
1071
|
-
() => [d.value,
|
|
1086
|
+
() => [d.value, t.invalidMessage],
|
|
1072
1087
|
() => {
|
|
1073
|
-
m.value =
|
|
1088
|
+
m.value = t.invalidMessage || d.value?.validationMessage || ae;
|
|
1074
1089
|
},
|
|
1075
1090
|
{
|
|
1076
1091
|
immediate: !0,
|
|
@@ -1080,8 +1095,8 @@ const Za = (e) => {
|
|
|
1080
1095
|
() => [i.value],
|
|
1081
1096
|
() => {
|
|
1082
1097
|
if (i.value) {
|
|
1083
|
-
const
|
|
1084
|
-
c.value =
|
|
1098
|
+
const M = i.value + re;
|
|
1099
|
+
c.value = M, u.value = i.value + ve, v.value = i.value + fe, f.value = t.dataListId ?? i.value + Ze, ee(t.message, t.showMessage) && (k.value = M), y();
|
|
1085
1100
|
}
|
|
1086
1101
|
},
|
|
1087
1102
|
{
|
|
@@ -1089,9 +1104,9 @@ const Za = (e) => {
|
|
|
1089
1104
|
flush: "post"
|
|
1090
1105
|
}
|
|
1091
1106
|
), C(
|
|
1092
|
-
() => [
|
|
1107
|
+
() => [t.value],
|
|
1093
1108
|
() => {
|
|
1094
|
-
|
|
1109
|
+
t.value !== void 0 && ($.value = t.value);
|
|
1095
1110
|
},
|
|
1096
1111
|
{
|
|
1097
1112
|
immediate: !0,
|
|
@@ -1102,14 +1117,14 @@ const Za = (e) => {
|
|
|
1102
1117
|
() => {
|
|
1103
1118
|
if (d.value) {
|
|
1104
1119
|
let X = s.value;
|
|
1105
|
-
X || (X = new AbortController(), s.value = X),
|
|
1120
|
+
X || (X = new AbortController(), s.value = X), Ge(
|
|
1106
1121
|
d.value,
|
|
1107
1122
|
{
|
|
1108
|
-
value:
|
|
1123
|
+
value: t.value,
|
|
1109
1124
|
defaultValue: void 0
|
|
1110
1125
|
},
|
|
1111
1126
|
(A) => {
|
|
1112
|
-
|
|
1127
|
+
B(A), x(A);
|
|
1113
1128
|
},
|
|
1114
1129
|
X.signal
|
|
1115
1130
|
);
|
|
@@ -1120,35 +1135,35 @@ const Za = (e) => {
|
|
|
1120
1135
|
flush: "post"
|
|
1121
1136
|
}
|
|
1122
1137
|
);
|
|
1123
|
-
function
|
|
1124
|
-
return !!(
|
|
1138
|
+
function S() {
|
|
1139
|
+
return !!(t.validMessage ?? t.validation === "valid");
|
|
1125
1140
|
}
|
|
1126
|
-
function
|
|
1127
|
-
!d.value?.validity.valid ||
|
|
1141
|
+
function y() {
|
|
1142
|
+
!d.value?.validity.valid || t.validation === "invalid" ? (k.value = v.value, m.value = t.invalidMessage || d.value?.validationMessage || ae, ce() && (w.value = m.value, Y(() => w.value = "", 1e3))) : S() && d.value?.validity.valid && (t.required || t.minLength || t.maxLength || t.pattern) ? (k.value = u.value, ce() && (w.value = t.validMessage ?? ue, Y(() => w.value = "", 1e3))) : ee(t.message, t.showMessage) ? k.value = c.value : k.value = void 0;
|
|
1128
1143
|
}
|
|
1129
|
-
function
|
|
1130
|
-
|
|
1144
|
+
function x(M, H) {
|
|
1145
|
+
t.input && t.input(M), $.value = M.target.value, t.onInput && t.onInput(M), se(l, M), y();
|
|
1131
1146
|
}
|
|
1132
|
-
function
|
|
1133
|
-
|
|
1147
|
+
function B(M, H) {
|
|
1148
|
+
t.onChange && t.onChange(M), se(l, M), y();
|
|
1134
1149
|
}
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1150
|
+
function g(M) {
|
|
1151
|
+
t.onBlur && t.onBlur(M);
|
|
1137
1152
|
}
|
|
1138
|
-
function
|
|
1139
|
-
|
|
1153
|
+
function p(M) {
|
|
1154
|
+
t.onFocus && t.onFocus(M);
|
|
1140
1155
|
}
|
|
1141
1156
|
function N() {
|
|
1142
|
-
const
|
|
1157
|
+
const M = t.dataList;
|
|
1143
1158
|
return Array.from(
|
|
1144
|
-
(
|
|
1159
|
+
(Ft(M) ? M?.map((H) => ({
|
|
1145
1160
|
value: H,
|
|
1146
1161
|
label: void 0
|
|
1147
|
-
})) :
|
|
1162
|
+
})) : M) || []
|
|
1148
1163
|
);
|
|
1149
1164
|
}
|
|
1150
|
-
return (
|
|
1151
|
-
class: q(n(O)("db-input",
|
|
1165
|
+
return (M, H) => (h(), b("div", {
|
|
1166
|
+
class: q(n(O)("db-input", t.class)),
|
|
1152
1167
|
"data-variant": e.variant,
|
|
1153
1168
|
"data-hide-label": n(oe)(e.showLabel),
|
|
1154
1169
|
"data-show-icon": n(R)(e.showIconLeading ?? e.showIcon),
|
|
@@ -1157,7 +1172,7 @@ const Za = (e) => {
|
|
|
1157
1172
|
"data-hide-asterisk": n(oe)(e.showRequiredAsterisk),
|
|
1158
1173
|
"data-show-icon-trailing": n(R)(e.showIconTrailing)
|
|
1159
1174
|
}, [
|
|
1160
|
-
E("label", { for: i.value },
|
|
1175
|
+
E("label", { for: i.value }, L(e.label ?? n(ke)), 9, ha),
|
|
1161
1176
|
E("input", {
|
|
1162
1177
|
"aria-invalid": e.validation === "invalid",
|
|
1163
1178
|
"data-custom-validity": e.validation,
|
|
@@ -1169,15 +1184,15 @@ const Za = (e) => {
|
|
|
1169
1184
|
type: e.type || "text",
|
|
1170
1185
|
multiple: n(V)(e.multiple, "multiple"),
|
|
1171
1186
|
accept: e.accept,
|
|
1172
|
-
placeholder: e.placeholder ?? n(
|
|
1187
|
+
placeholder: e.placeholder ?? n(tt),
|
|
1173
1188
|
disabled: n(V)(e.disabled, "disabled"),
|
|
1174
1189
|
required: n(V)(e.required, "required"),
|
|
1175
|
-
step: n(
|
|
1190
|
+
step: n(zt)(e.step),
|
|
1176
1191
|
value: e.value ?? $.value,
|
|
1177
1192
|
maxLength: n(Le)(e.maxLength, e.maxlength),
|
|
1178
1193
|
minLength: n(Le)(e.minLength, e.minlength),
|
|
1179
|
-
max: n(
|
|
1180
|
-
min: n(
|
|
1194
|
+
max: n(_e)(e.max, e.type),
|
|
1195
|
+
min: n(_e)(e.min, e.type),
|
|
1181
1196
|
readOnly: n(V)(e.readOnly, "readOnly") || n(V)(e.readonly, "readonly"),
|
|
1182
1197
|
form: e.form,
|
|
1183
1198
|
pattern: e.pattern,
|
|
@@ -1186,62 +1201,62 @@ const Za = (e) => {
|
|
|
1186
1201
|
autoFocus: n(V)(e.autofocus, "autofocus"),
|
|
1187
1202
|
enterKeyHint: e.enterkeyhint,
|
|
1188
1203
|
inputMode: e.inputmode,
|
|
1189
|
-
onInput: H[0] || (H[0] = async (X) =>
|
|
1190
|
-
onChange: H[1] || (H[1] = async (X) =>
|
|
1191
|
-
onBlur: H[2] || (H[2] = async (X) =>
|
|
1192
|
-
onFocus: H[3] || (H[3] = async (X) =>
|
|
1193
|
-
list: e.dataList &&
|
|
1204
|
+
onInput: H[0] || (H[0] = async (X) => x(X)),
|
|
1205
|
+
onChange: H[1] || (H[1] = async (X) => B(X)),
|
|
1206
|
+
onBlur: H[2] || (H[2] = async (X) => g(X)),
|
|
1207
|
+
onFocus: H[3] || (H[3] = async (X) => p(X)),
|
|
1208
|
+
list: e.dataList && f.value,
|
|
1194
1209
|
"aria-describedby": e.ariaDescribedBy ?? k.value,
|
|
1195
1210
|
role: ["datetime-local", "date", "time", "week", "month", "color"].includes(
|
|
1196
1211
|
e.type ?? ""
|
|
1197
|
-
) && n(
|
|
1198
|
-
}, null, 40,
|
|
1199
|
-
e.dataList ? (
|
|
1212
|
+
) && n(Rt)() ? "textbox" : void 0
|
|
1213
|
+
}, null, 40, ma),
|
|
1214
|
+
e.dataList ? (h(), b("datalist", {
|
|
1200
1215
|
key: 0,
|
|
1201
|
-
id:
|
|
1216
|
+
id: f.value
|
|
1202
1217
|
}, [
|
|
1203
|
-
(
|
|
1204
|
-
key:
|
|
1218
|
+
(h(!0), b(W, null, ge(N(), (X) => (h(), b("option", {
|
|
1219
|
+
key: f.value + "-option-" + X.value,
|
|
1205
1220
|
value: X.value
|
|
1206
|
-
},
|
|
1207
|
-
], 8,
|
|
1208
|
-
M
|
|
1209
|
-
n(ee)(e.message, e.showMessage) ? (
|
|
1221
|
+
}, L(X.label), 9, ba))), 128))
|
|
1222
|
+
], 8, ga)) : z("", !0),
|
|
1223
|
+
F(M.$slots, "default"),
|
|
1224
|
+
n(ee)(e.message, e.showMessage) ? (h(), J(_, {
|
|
1210
1225
|
key: 1,
|
|
1211
1226
|
size: e.messageSize || "small",
|
|
1212
1227
|
icon: e.messageIcon,
|
|
1213
1228
|
id: c.value
|
|
1214
1229
|
}, {
|
|
1215
1230
|
default: U(() => [
|
|
1216
|
-
D(
|
|
1231
|
+
D(L(e.message), 1)
|
|
1217
1232
|
]),
|
|
1218
1233
|
_: 1
|
|
1219
1234
|
}, 8, ["size", "icon", "id"])) : z("", !0),
|
|
1220
|
-
|
|
1235
|
+
S() ? (h(), J(_, {
|
|
1221
1236
|
key: 2,
|
|
1222
1237
|
semantic: "successful",
|
|
1223
1238
|
id: u.value,
|
|
1224
1239
|
size: e.validMessageSize || "small"
|
|
1225
1240
|
}, {
|
|
1226
1241
|
default: U(() => [
|
|
1227
|
-
D(
|
|
1242
|
+
D(L(e.validMessage || n(ue)), 1)
|
|
1228
1243
|
]),
|
|
1229
1244
|
_: 1
|
|
1230
1245
|
}, 8, ["id", "size"])) : z("", !0),
|
|
1231
1246
|
ie(_, {
|
|
1232
1247
|
semantic: "critical",
|
|
1233
|
-
id:
|
|
1248
|
+
id: v.value,
|
|
1234
1249
|
size: e.invalidMessageSize || "small"
|
|
1235
1250
|
}, {
|
|
1236
1251
|
default: U(() => [
|
|
1237
|
-
D(
|
|
1252
|
+
D(L(m.value), 1)
|
|
1238
1253
|
]),
|
|
1239
1254
|
_: 1
|
|
1240
1255
|
}, 8, ["id", "size"]),
|
|
1241
|
-
E("span",
|
|
1242
|
-
], 10,
|
|
1256
|
+
E("span", ya, L(w.value), 1)
|
|
1257
|
+
], 10, fa));
|
|
1243
1258
|
}
|
|
1244
|
-
}),
|
|
1259
|
+
}), wa = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], rt = /* @__PURE__ */ G({
|
|
1245
1260
|
name: "DBTooltip",
|
|
1246
1261
|
__name: "tooltip",
|
|
1247
1262
|
props: {
|
|
@@ -1259,22 +1274,22 @@ const Za = (e) => {
|
|
|
1259
1274
|
width: { default: void 0 }
|
|
1260
1275
|
},
|
|
1261
1276
|
setup(e) {
|
|
1262
|
-
const
|
|
1277
|
+
const a = e, l = o(Ee), t = o(!1), i = o(void 0), c = o(void 0), u = o(null);
|
|
1263
1278
|
Q(() => {
|
|
1264
|
-
l.value =
|
|
1279
|
+
l.value = a.id || "tooltip-" + te(), t.value = !0;
|
|
1265
1280
|
}), C(
|
|
1266
|
-
() => [u.value,
|
|
1281
|
+
() => [u.value, t.value],
|
|
1267
1282
|
() => {
|
|
1268
|
-
if (u.value &&
|
|
1269
|
-
const d =
|
|
1270
|
-
d && (["mouseenter", "focusin"].forEach((
|
|
1271
|
-
d.addEventListener(
|
|
1272
|
-
}), d.addEventListener("keydown", (
|
|
1273
|
-
d.addEventListener(
|
|
1274
|
-
}), d.dataset.hasTooltip = "true",
|
|
1275
|
-
const
|
|
1276
|
-
|
|
1277
|
-
})),
|
|
1283
|
+
if (u.value && t.value && l.value) {
|
|
1284
|
+
const d = f();
|
|
1285
|
+
d && (k(d), ["mouseenter", "focusin"].forEach((S) => {
|
|
1286
|
+
d.addEventListener(S, () => s(d));
|
|
1287
|
+
}), d.addEventListener("keydown", (S) => m(S)), ["mouseleave", "focusout"].forEach((S) => {
|
|
1288
|
+
d.addEventListener(S, () => w());
|
|
1289
|
+
}), d.dataset.hasTooltip = "true", a.variant === "label" ? d.setAttribute("aria-labelledby", l.value) : d.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (c.value = new IntersectionObserver((S) => {
|
|
1290
|
+
const y = S.find(({ target: x }) => x === f());
|
|
1291
|
+
y && !y.isIntersecting && m(!1);
|
|
1292
|
+
})), t.value = !1;
|
|
1278
1293
|
}
|
|
1279
1294
|
},
|
|
1280
1295
|
{
|
|
@@ -1282,45 +1297,45 @@ const Za = (e) => {
|
|
|
1282
1297
|
flush: "post"
|
|
1283
1298
|
}
|
|
1284
1299
|
);
|
|
1285
|
-
function
|
|
1300
|
+
function v(d) {
|
|
1286
1301
|
d.stopPropagation();
|
|
1287
1302
|
}
|
|
1288
1303
|
function m(d) {
|
|
1289
|
-
(!d || d.key === "Escape") && u.value && getComputedStyle(u.value).visibility === "visible" &&
|
|
1304
|
+
(!d || d.key === "Escape") && u.value && getComputedStyle(u.value).visibility === "visible" && f().blur();
|
|
1290
1305
|
}
|
|
1291
|
-
function
|
|
1306
|
+
function f() {
|
|
1292
1307
|
let d = u.value.parentElement;
|
|
1293
1308
|
return d && d.localName.includes("tooltip") && (d = d.parentElement), d;
|
|
1294
1309
|
}
|
|
1295
1310
|
function k(d) {
|
|
1296
1311
|
d && u.value && Y(() => {
|
|
1297
|
-
u.value &&
|
|
1312
|
+
u.value && ct(
|
|
1298
1313
|
u.value,
|
|
1299
1314
|
d,
|
|
1300
|
-
|
|
1315
|
+
a.placement ?? "bottom"
|
|
1301
1316
|
);
|
|
1302
1317
|
}, 1);
|
|
1303
1318
|
}
|
|
1304
|
-
function $(d,
|
|
1305
|
-
d?.target?.contains && d?.target?.contains(u.value) && k(
|
|
1319
|
+
function $(d, S) {
|
|
1320
|
+
d?.target?.contains && d?.target?.contains(u.value) && k(S);
|
|
1306
1321
|
}
|
|
1307
|
-
function
|
|
1322
|
+
function w() {
|
|
1308
1323
|
i.value && new de().removeCallback(
|
|
1309
1324
|
i.value
|
|
1310
|
-
), c.value?.unobserve(
|
|
1325
|
+
), c.value?.unobserve(f());
|
|
1311
1326
|
}
|
|
1312
1327
|
function s(d) {
|
|
1313
1328
|
i.value = new de().addCallback(
|
|
1314
|
-
(
|
|
1315
|
-
), k(d), c.value?.observe(
|
|
1329
|
+
(S) => $(S, d)
|
|
1330
|
+
), k(d), c.value?.observe(f());
|
|
1316
1331
|
}
|
|
1317
|
-
return (d,
|
|
1332
|
+
return (d, S) => (h(), b("i", {
|
|
1318
1333
|
role: "tooltip",
|
|
1319
1334
|
"aria-hidden": "true",
|
|
1320
1335
|
"data-gap": "true",
|
|
1321
1336
|
ref_key: "_ref",
|
|
1322
1337
|
ref: u,
|
|
1323
|
-
class: q(n(O)("db-tooltip",
|
|
1338
|
+
class: q(n(O)("db-tooltip", a.class)),
|
|
1324
1339
|
id: l.value,
|
|
1325
1340
|
"data-emphasis": e.emphasis,
|
|
1326
1341
|
"data-animation": n(R)(e.animation ?? !0),
|
|
@@ -1328,12 +1343,12 @@ const Za = (e) => {
|
|
|
1328
1343
|
"data-width": e.width,
|
|
1329
1344
|
"data-show-arrow": n(R)(e.showArrow ?? !0),
|
|
1330
1345
|
"data-placement": e.placement,
|
|
1331
|
-
onClick:
|
|
1346
|
+
onClick: S[0] || (S[0] = async (y) => v(y))
|
|
1332
1347
|
}, [
|
|
1333
|
-
|
|
1334
|
-
], 10,
|
|
1348
|
+
F(d.$slots, "default")
|
|
1349
|
+
], 10, wa));
|
|
1335
1350
|
}
|
|
1336
|
-
}),
|
|
1351
|
+
}), Ba = ["id", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-show-icon", "data-no-text", "data-overflow"], Sa = /* @__PURE__ */ G({
|
|
1337
1352
|
name: "DBTag",
|
|
1338
1353
|
__name: "tag",
|
|
1339
1354
|
props: {
|
|
@@ -1358,18 +1373,18 @@ const Za = (e) => {
|
|
|
1358
1373
|
remove: {}
|
|
1359
1374
|
},
|
|
1360
1375
|
setup(e) {
|
|
1361
|
-
const
|
|
1362
|
-
function
|
|
1363
|
-
c && (c.stopPropagation(),
|
|
1376
|
+
const a = e, l = o(null);
|
|
1377
|
+
function t(c) {
|
|
1378
|
+
c && (c.stopPropagation(), a.onRemove && a.onRemove(c));
|
|
1364
1379
|
}
|
|
1365
1380
|
function i() {
|
|
1366
|
-
return
|
|
1381
|
+
return a.removeButton ? a.removeButton : at;
|
|
1367
1382
|
}
|
|
1368
|
-
return (c, u) => (
|
|
1383
|
+
return (c, u) => (h(), b("div", {
|
|
1369
1384
|
ref_key: "_ref",
|
|
1370
1385
|
ref: l,
|
|
1371
1386
|
id: e.id,
|
|
1372
|
-
class: q(n(O)("db-tag",
|
|
1387
|
+
class: q(n(O)("db-tag", a.class)),
|
|
1373
1388
|
"data-semantic": e.semantic,
|
|
1374
1389
|
"data-emphasis": e.emphasis,
|
|
1375
1390
|
"data-icon": e.icon,
|
|
@@ -1378,12 +1393,12 @@ const Za = (e) => {
|
|
|
1378
1393
|
"data-no-text": n(R)(e.noText),
|
|
1379
1394
|
"data-overflow": n(R)(e.overflow)
|
|
1380
1395
|
}, [
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
e.text ? (
|
|
1384
|
-
D(
|
|
1396
|
+
F(c.$slots, "content"),
|
|
1397
|
+
F(c.$slots, "default"),
|
|
1398
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
1399
|
+
D(L(e.text), 1)
|
|
1385
1400
|
], 64)) : z("", !0),
|
|
1386
|
-
e.behavior === "removable" ? (
|
|
1401
|
+
e.behavior === "removable" ? (h(), b("button", {
|
|
1387
1402
|
key: 1,
|
|
1388
1403
|
class: "db-button db-tab-remove-button",
|
|
1389
1404
|
"data-icon": "cross",
|
|
@@ -1391,24 +1406,24 @@ const Za = (e) => {
|
|
|
1391
1406
|
"data-no-text": "true",
|
|
1392
1407
|
"data-variant": "ghost",
|
|
1393
1408
|
type: "button",
|
|
1394
|
-
onClick: u[0] || (u[0] = async (
|
|
1409
|
+
onClick: u[0] || (u[0] = async (v) => t(v))
|
|
1395
1410
|
}, [
|
|
1396
|
-
ie(
|
|
1411
|
+
ie(rt, { variant: "label" }, {
|
|
1397
1412
|
default: U(() => [
|
|
1398
|
-
D(
|
|
1413
|
+
D(L(i()), 1)
|
|
1399
1414
|
]),
|
|
1400
1415
|
_: 1
|
|
1401
1416
|
})
|
|
1402
1417
|
])) : z("", !0)
|
|
1403
|
-
], 10,
|
|
1418
|
+
], 10, Ba));
|
|
1404
1419
|
}
|
|
1405
|
-
}),
|
|
1420
|
+
}), pa = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-hide-asterisk", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-show-icon"], La = ["id"], Ia = ["id", "form", "name", "multiple", "disabled", "required"], xa = ["disabled", "value"], Ta = ["open"], $a = ["id", "aria-disabled", "aria-labelledby"], Ca = ["data-visually-hidden", "id"], Ea = {
|
|
1406
1421
|
key: 0,
|
|
1407
1422
|
"data-visually-hidden": "true"
|
|
1408
|
-
},
|
|
1423
|
+
}, Aa = { key: 1 }, Da = { key: 0 }, Ma = { key: 0 }, Fa = { class: "db-checkbox db-custom-select-list-item" }, Na = ["form", "checked"], Ra = ["aria-hidden", "id"], za = {
|
|
1409
1424
|
"data-visually-hidden": "true",
|
|
1410
1425
|
role: "status"
|
|
1411
|
-
},
|
|
1426
|
+
}, Bl = /* @__PURE__ */ G({
|
|
1412
1427
|
name: "DBCustomSelect",
|
|
1413
1428
|
__name: "custom-select",
|
|
1414
1429
|
props: {
|
|
@@ -1474,24 +1489,24 @@ const Za = (e) => {
|
|
|
1474
1489
|
showLabel: { type: [Boolean, String], default: void 0 }
|
|
1475
1490
|
},
|
|
1476
1491
|
emits: ["update:values"],
|
|
1477
|
-
setup(e, { emit:
|
|
1478
|
-
const l =
|
|
1492
|
+
setup(e, { emit: a }) {
|
|
1493
|
+
const l = a, t = e, i = o(void 0), c = o(void 0), u = o(void 0), v = o(void 0), m = o(void 0), f = o(void 0), k = o(void 0), $ = o(void 0), w = o(void 0), s = o(void 0), d = o("no-validation"), S = o(!1), y = o(void 0), x = o(void 0), B = o(""), g = o(void 0), p = o(""), N = o([]), M = o(!1), H = o(!1), X = o(0), A = o([]), K = o([]), j = o(!1), be = o(void 0), Be = o(0), xe = o(void 0), Re = o(void 0), ze = o(void 0), Pe = o(!1), Te = o(!1), vt = o(null), P = o(null), ne = o(null), Ae = o(null), Ve = o(null);
|
|
1479
1494
|
Q(() => {
|
|
1480
|
-
const r =
|
|
1481
|
-
i.value = r, c.value = r + re, u.value = r + ve,
|
|
1495
|
+
const r = t.id ?? `custom-select-${te()}`;
|
|
1496
|
+
i.value = r, c.value = r + re, u.value = r + ve, v.value = r + fe, f.value = r + Qe, k.value = r + Je, $.value = r + "-summary", w.value = r + Fe, g.value = r + "-selected-labels", s.value = r + "-info", m.value = t.invalidMessage || ae, typeof window < "u" && "IntersectionObserver" in window && (Re.value = new IntersectionObserver((I) => {
|
|
1482
1497
|
if (P.value) {
|
|
1483
|
-
const
|
|
1484
|
-
|
|
1498
|
+
const T = I.find(({ target: Z }) => Z === P.value);
|
|
1499
|
+
T && !T.isIntersecting && P.value.open && (P.value.open = !1);
|
|
1485
1500
|
}
|
|
1486
1501
|
}));
|
|
1487
1502
|
}), me(() => {
|
|
1488
|
-
|
|
1503
|
+
y.value?.abort();
|
|
1489
1504
|
}), C(
|
|
1490
1505
|
() => [P.value],
|
|
1491
1506
|
() => {
|
|
1492
1507
|
P.value && P.value.addEventListener(
|
|
1493
1508
|
"focusout",
|
|
1494
|
-
(r) =>
|
|
1509
|
+
(r) => $e(r)
|
|
1495
1510
|
);
|
|
1496
1511
|
},
|
|
1497
1512
|
{
|
|
@@ -1503,7 +1518,7 @@ const Za = (e) => {
|
|
|
1503
1518
|
() => {
|
|
1504
1519
|
if (i.value) {
|
|
1505
1520
|
const r = i.value + re;
|
|
1506
|
-
k.value = i.value +
|
|
1521
|
+
k.value = i.value + Je, f.value = i.value + Qe, u.value = i.value + ve, v.value = i.value + fe, w.value = i.value + Fe, ee(t.message, t.showMessage) ? Ie(r) : Ie();
|
|
1507
1522
|
}
|
|
1508
1523
|
},
|
|
1509
1524
|
{
|
|
@@ -1511,13 +1526,13 @@ const Za = (e) => {
|
|
|
1511
1526
|
flush: "post"
|
|
1512
1527
|
}
|
|
1513
1528
|
), C(
|
|
1514
|
-
() => [P.value,
|
|
1529
|
+
() => [P.value, x.value],
|
|
1515
1530
|
() => {
|
|
1516
1531
|
if (P.value) {
|
|
1517
1532
|
const r = P.value.querySelector("summary");
|
|
1518
1533
|
r && r.setAttribute(
|
|
1519
1534
|
"aria-describedby",
|
|
1520
|
-
|
|
1535
|
+
t.ariaDescribedBy ?? (x.value || "")
|
|
1521
1536
|
);
|
|
1522
1537
|
}
|
|
1523
1538
|
},
|
|
@@ -1526,36 +1541,36 @@ const Za = (e) => {
|
|
|
1526
1541
|
flush: "post"
|
|
1527
1542
|
}
|
|
1528
1543
|
), C(
|
|
1529
|
-
() => [
|
|
1544
|
+
() => [t.showNoResults, t.showLoading, K.value],
|
|
1530
1545
|
() => {
|
|
1531
|
-
|
|
1546
|
+
t.showNoResults !== void 0 ? j.value = t.showNoResults : K.value && (j.value = K.value.length === 0);
|
|
1532
1547
|
},
|
|
1533
1548
|
{
|
|
1534
1549
|
immediate: !0,
|
|
1535
1550
|
flush: "post"
|
|
1536
1551
|
}
|
|
1537
1552
|
), C(
|
|
1538
|
-
() => [
|
|
1553
|
+
() => [t.showSelectAll, X.value, t.multiple],
|
|
1539
1554
|
() => {
|
|
1540
|
-
|
|
1555
|
+
M.value = !!(t.multiple && (t.showSelectAll ?? X.value > 5));
|
|
1541
1556
|
},
|
|
1542
1557
|
{
|
|
1543
1558
|
immediate: !0,
|
|
1544
1559
|
flush: "post"
|
|
1545
1560
|
}
|
|
1546
1561
|
), C(
|
|
1547
|
-
() => [
|
|
1562
|
+
() => [t.showSearch, X.value],
|
|
1548
1563
|
() => {
|
|
1549
|
-
H.value =
|
|
1564
|
+
H.value = t.showSearch ?? X.value > 9;
|
|
1550
1565
|
},
|
|
1551
1566
|
{
|
|
1552
1567
|
immediate: !0,
|
|
1553
1568
|
flush: "post"
|
|
1554
1569
|
}
|
|
1555
1570
|
), C(
|
|
1556
|
-
() => [
|
|
1571
|
+
() => [t.values],
|
|
1557
1572
|
() => {
|
|
1558
|
-
const r =
|
|
1573
|
+
const r = t.values;
|
|
1559
1574
|
Array.isArray(r) ? A.value !== r && (A.value = r) : r == null && A.value?.length !== 0 && (A.value = []);
|
|
1560
1575
|
},
|
|
1561
1576
|
{
|
|
@@ -1565,7 +1580,7 @@ const Za = (e) => {
|
|
|
1565
1580
|
), C(
|
|
1566
1581
|
() => [A.value, ne.value],
|
|
1567
1582
|
() => {
|
|
1568
|
-
ne.value &&
|
|
1583
|
+
ne.value && He();
|
|
1569
1584
|
},
|
|
1570
1585
|
{
|
|
1571
1586
|
immediate: !0,
|
|
@@ -1575,14 +1590,14 @@ const Za = (e) => {
|
|
|
1575
1590
|
() => [ne.value],
|
|
1576
1591
|
() => {
|
|
1577
1592
|
if (ne.value) {
|
|
1578
|
-
let r =
|
|
1579
|
-
r || (r = new AbortController(),
|
|
1580
|
-
const
|
|
1581
|
-
|
|
1593
|
+
let r = y.value;
|
|
1594
|
+
r || (r = new AbortController(), y.value = r);
|
|
1595
|
+
const I = t.values;
|
|
1596
|
+
Ne(
|
|
1582
1597
|
ne.value,
|
|
1583
1598
|
() => {
|
|
1584
|
-
const
|
|
1585
|
-
pe(
|
|
1599
|
+
const T = I || (ne.value.value ? [ne.value.value] : []);
|
|
1600
|
+
pe(T), He();
|
|
1586
1601
|
},
|
|
1587
1602
|
r.signal
|
|
1588
1603
|
);
|
|
@@ -1593,9 +1608,9 @@ const Za = (e) => {
|
|
|
1593
1608
|
flush: "post"
|
|
1594
1609
|
}
|
|
1595
1610
|
), C(
|
|
1596
|
-
() => [
|
|
1611
|
+
() => [t.validation],
|
|
1597
1612
|
() => {
|
|
1598
|
-
d.value =
|
|
1613
|
+
d.value = t.validation;
|
|
1599
1614
|
},
|
|
1600
1615
|
{
|
|
1601
1616
|
immediate: !0,
|
|
@@ -1604,27 +1619,27 @@ const Za = (e) => {
|
|
|
1604
1619
|
), C(
|
|
1605
1620
|
() => [A.value, X.value],
|
|
1606
1621
|
() => {
|
|
1607
|
-
A.value?.length === 0 ? (
|
|
1622
|
+
A.value?.length === 0 ? (Pe.value = !1, Te.value = !1) : A.value?.length === X.value ? (Te.value = !1, Pe.value = !0) : A.value && (Te.value = !0);
|
|
1608
1623
|
},
|
|
1609
1624
|
{
|
|
1610
1625
|
immediate: !0,
|
|
1611
1626
|
flush: "post"
|
|
1612
1627
|
}
|
|
1613
1628
|
), C(
|
|
1614
|
-
() => [
|
|
1629
|
+
() => [t.options],
|
|
1615
1630
|
() => {
|
|
1616
|
-
K.value =
|
|
1631
|
+
K.value = t.options, X.value = t.options?.filter((r) => !r.isGroupTitle).length ?? 0;
|
|
1617
1632
|
},
|
|
1618
1633
|
{
|
|
1619
1634
|
immediate: !0,
|
|
1620
1635
|
flush: "post"
|
|
1621
1636
|
}
|
|
1622
1637
|
), C(
|
|
1623
|
-
() => [
|
|
1638
|
+
() => [t.searchValue],
|
|
1624
1639
|
() => {
|
|
1625
|
-
if (
|
|
1626
|
-
const r =
|
|
1627
|
-
|
|
1640
|
+
if (ze.value = t.searchValue, t.searchValue) {
|
|
1641
|
+
const r = t.searchValue;
|
|
1642
|
+
je(r);
|
|
1628
1643
|
}
|
|
1629
1644
|
},
|
|
1630
1645
|
{
|
|
@@ -1632,9 +1647,9 @@ const Za = (e) => {
|
|
|
1632
1647
|
flush: "post"
|
|
1633
1648
|
}
|
|
1634
1649
|
), C(
|
|
1635
|
-
() => [
|
|
1650
|
+
() => [t.options, A.value],
|
|
1636
1651
|
() => {
|
|
1637
|
-
|
|
1652
|
+
t.options?.length && (N.value = t.options?.filter(
|
|
1638
1653
|
(r) => !r.value || !A.value?.includes ? !1 : !r.isGroupTitle && A.value?.includes(r.value)
|
|
1639
1654
|
));
|
|
1640
1655
|
},
|
|
@@ -1645,25 +1660,25 @@ const Za = (e) => {
|
|
|
1645
1660
|
), C(
|
|
1646
1661
|
() => [
|
|
1647
1662
|
N.value,
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1663
|
+
t.selectedType,
|
|
1664
|
+
t.amountText,
|
|
1665
|
+
t.selectedLabels,
|
|
1666
|
+
t.transformSelectedLabels
|
|
1652
1667
|
],
|
|
1653
1668
|
() => {
|
|
1654
|
-
if (
|
|
1655
|
-
|
|
1669
|
+
if (t.selectedLabels) {
|
|
1670
|
+
B.value = t.selectedLabels;
|
|
1656
1671
|
return;
|
|
1657
1672
|
}
|
|
1658
1673
|
if (N.value?.length) {
|
|
1659
|
-
if (
|
|
1660
|
-
const r = N.value,
|
|
1661
|
-
|
|
1674
|
+
if (t.transformSelectedLabels) {
|
|
1675
|
+
const r = N.value, I = t.transformSelectedLabels;
|
|
1676
|
+
B.value = I(r);
|
|
1662
1677
|
return;
|
|
1663
1678
|
}
|
|
1664
|
-
|
|
1679
|
+
t.selectedType === "amount" ? B.value = t.amountText ? t.amountText : `${N.value?.length} ${$t}` : B.value = N.value?.map((r) => Se(r)).join(", ");
|
|
1665
1680
|
} else
|
|
1666
|
-
|
|
1681
|
+
B.value = "";
|
|
1667
1682
|
},
|
|
1668
1683
|
{
|
|
1669
1684
|
immediate: !0,
|
|
@@ -1672,98 +1687,98 @@ const Za = (e) => {
|
|
|
1672
1687
|
), C(
|
|
1673
1688
|
() => [N.value],
|
|
1674
1689
|
() => {
|
|
1675
|
-
|
|
1690
|
+
t.onAmountChange && t.onAmountChange(N.value?.length ?? 0);
|
|
1676
1691
|
},
|
|
1677
1692
|
{
|
|
1678
1693
|
immediate: !0,
|
|
1679
1694
|
flush: "post"
|
|
1680
1695
|
}
|
|
1681
1696
|
), C(
|
|
1682
|
-
() => [
|
|
1697
|
+
() => [Te.value, Ae.value],
|
|
1683
1698
|
() => {
|
|
1684
|
-
Ae.value && (Ae.value.indeterminate =
|
|
1699
|
+
Ae.value && (Ae.value.indeterminate = !!Te.value);
|
|
1685
1700
|
},
|
|
1686
1701
|
{
|
|
1687
1702
|
immediate: !0,
|
|
1688
1703
|
flush: "post"
|
|
1689
1704
|
}
|
|
1690
1705
|
), C(
|
|
1691
|
-
() => [ne.value,
|
|
1706
|
+
() => [ne.value, t.invalidMessage],
|
|
1692
1707
|
() => {
|
|
1693
|
-
m.value =
|
|
1708
|
+
m.value = t.invalidMessage || ne.value?.validationMessage || ae;
|
|
1694
1709
|
},
|
|
1695
1710
|
{
|
|
1696
1711
|
immediate: !0,
|
|
1697
1712
|
flush: "post"
|
|
1698
1713
|
}
|
|
1699
1714
|
);
|
|
1700
|
-
function
|
|
1701
|
-
r?.target?.contains && r?.target?.contains(P.value) &&
|
|
1702
|
-
}
|
|
1703
|
-
function Ge() {
|
|
1704
|
-
return !!(a.validMessage ?? a.validation === "valid");
|
|
1715
|
+
function ft(r) {
|
|
1716
|
+
r?.target?.contains && r?.target?.contains(P.value) && qe();
|
|
1705
1717
|
}
|
|
1706
1718
|
function We() {
|
|
1707
|
-
|
|
1719
|
+
return !!(t.validMessage ?? t.validation === "valid");
|
|
1708
1720
|
}
|
|
1709
|
-
function
|
|
1710
|
-
|
|
1711
|
-
|
|
1721
|
+
function He() {
|
|
1722
|
+
ne.value && (ne.value.value = mt()), !ne.value?.validity.valid || t.validation === "invalid" ? (Ie(v.value), m.value = t.invalidMessage || ne.value?.validationMessage || ae, ce() && (p.value = m.value, Y(() => p.value = "", 1e3)), S.value && (d.value = t.validation ?? "invalid")) : We() && ne.value?.validity.valid && t.required ? (Ie(u.value), ce() && (p.value = t.validMessage ?? ue, Y(() => p.value = "", 1e3)), d.value = t.validation ?? "valid") : ee(t.message, t.showMessage) ? (Ie(c.value), d.value = t.validation ?? "no-validation") : (Ie(w.value), d.value = t.validation ?? "no-validation");
|
|
1723
|
+
}
|
|
1724
|
+
function ht(r) {
|
|
1725
|
+
t.onDropdownToggle && (r.stopPropagation(), t.onDropdownToggle(r)), r.target instanceof HTMLDetailsElement && r.target.open ? (be.value = new he().addCallback(
|
|
1726
|
+
(I) => St(I)
|
|
1712
1727
|
), xe.value = new de().addCallback(
|
|
1713
|
-
(
|
|
1714
|
-
),
|
|
1728
|
+
(I) => ft(I)
|
|
1729
|
+
), qe(), Re.value?.observe(P.value), r.target.dataset.test || Xe()) : (be.value && new he().removeCallback(
|
|
1715
1730
|
be.value
|
|
1716
1731
|
), xe.value && new de().removeCallback(
|
|
1717
1732
|
xe.value
|
|
1718
|
-
),
|
|
1733
|
+
), Re.value?.unobserve(P.value));
|
|
1719
1734
|
}
|
|
1720
|
-
function
|
|
1735
|
+
function mt() {
|
|
1721
1736
|
return A.value?.length ? A.value.at(0) ?? "" : "";
|
|
1722
1737
|
}
|
|
1723
1738
|
function Ie(r) {
|
|
1724
|
-
const
|
|
1725
|
-
r &&
|
|
1739
|
+
const I = [];
|
|
1740
|
+
r && I.push(r), g.value && B.value?.length && I.push(g.value), x.value = I.join(" ");
|
|
1726
1741
|
}
|
|
1727
|
-
function
|
|
1728
|
-
return
|
|
1742
|
+
function gt() {
|
|
1743
|
+
return t.selectAllLabel ?? ke;
|
|
1729
1744
|
}
|
|
1730
1745
|
function Se(r) {
|
|
1731
1746
|
return r.label ?? r.value?.toString() ?? "";
|
|
1732
1747
|
}
|
|
1733
|
-
function
|
|
1748
|
+
function bt(r) {
|
|
1734
1749
|
return r && A.value?.includes ? A.value?.includes(r) : !1;
|
|
1735
1750
|
}
|
|
1736
|
-
function
|
|
1737
|
-
const
|
|
1738
|
-
if (
|
|
1739
|
-
const Z =
|
|
1740
|
-
if (Z >= 0 && Z <
|
|
1741
|
-
return
|
|
1751
|
+
function yt(r) {
|
|
1752
|
+
const I = t.removeTagsTexts, T = t.options;
|
|
1753
|
+
if (I && T) {
|
|
1754
|
+
const Z = T.findIndex((le) => le.value === r.value);
|
|
1755
|
+
if (Z >= 0 && Z < I.length)
|
|
1756
|
+
return I[Z];
|
|
1742
1757
|
}
|
|
1743
|
-
return `${
|
|
1758
|
+
return `${at} ${Se(r)}`;
|
|
1744
1759
|
}
|
|
1745
|
-
function
|
|
1746
|
-
|
|
1760
|
+
function kt(r, I) {
|
|
1761
|
+
I && I.stopPropagation(), Oe(r.value), Ce();
|
|
1747
1762
|
}
|
|
1748
|
-
function
|
|
1763
|
+
function qe() {
|
|
1749
1764
|
if (P.value) {
|
|
1750
1765
|
const r = P.value.querySelector("article");
|
|
1751
1766
|
r && Y(() => {
|
|
1752
|
-
|
|
1767
|
+
ta(
|
|
1753
1768
|
r,
|
|
1754
1769
|
P.value,
|
|
1755
|
-
|
|
1770
|
+
t.placement ?? "bottom"
|
|
1756
1771
|
);
|
|
1757
1772
|
}, 1);
|
|
1758
1773
|
}
|
|
1759
1774
|
}
|
|
1760
|
-
function
|
|
1775
|
+
function wt(r) {
|
|
1761
1776
|
if (P.value?.open) {
|
|
1762
1777
|
if (self.document) {
|
|
1763
|
-
const
|
|
1764
|
-
if (
|
|
1765
|
-
if (
|
|
1766
|
-
const Z =
|
|
1778
|
+
const I = self.document.activeElement;
|
|
1779
|
+
if (I)
|
|
1780
|
+
if (I.getAttribute("type") === "checkbox" || I.getAttribute("type") === "radio") {
|
|
1781
|
+
const Z = I?.closest("li");
|
|
1767
1782
|
if (r.key === "ArrowDown" || r.key === "ArrowRight") {
|
|
1768
1783
|
let le = Z?.nextElementSibling;
|
|
1769
1784
|
for (; le; ) {
|
|
@@ -1774,7 +1789,7 @@ const Za = (e) => {
|
|
|
1774
1789
|
}
|
|
1775
1790
|
le = le.nextElementSibling;
|
|
1776
1791
|
}
|
|
1777
|
-
le || De(
|
|
1792
|
+
le || De(I);
|
|
1778
1793
|
} else {
|
|
1779
1794
|
let le = Z?.previousElementSibling;
|
|
1780
1795
|
for (; le; ) {
|
|
@@ -1789,66 +1804,66 @@ const Za = (e) => {
|
|
|
1789
1804
|
const ye = P.value.querySelector(
|
|
1790
1805
|
'input[type="checkbox"]'
|
|
1791
1806
|
);
|
|
1792
|
-
if (ye && ye !==
|
|
1793
|
-
De(
|
|
1807
|
+
if (ye && ye !== I)
|
|
1808
|
+
De(I);
|
|
1794
1809
|
else {
|
|
1795
|
-
const
|
|
1796
|
-
if (
|
|
1810
|
+
const Ke = et(P.value);
|
|
1811
|
+
if (Ke)
|
|
1797
1812
|
Y(() => {
|
|
1798
|
-
|
|
1813
|
+
Ke.focus();
|
|
1799
1814
|
}, 100);
|
|
1800
1815
|
else {
|
|
1801
|
-
const
|
|
1816
|
+
const Ye = Array.from(
|
|
1802
1817
|
P.value?.querySelectorAll(
|
|
1803
1818
|
'input[type="checkbox"],input[type="radio"]'
|
|
1804
1819
|
)
|
|
1805
1820
|
);
|
|
1806
|
-
|
|
1821
|
+
Ye.length && Ye.at(-1)?.focus();
|
|
1807
1822
|
}
|
|
1808
1823
|
}
|
|
1809
1824
|
}
|
|
1810
1825
|
}
|
|
1811
1826
|
} else
|
|
1812
|
-
|
|
1827
|
+
I.getAttribute("type") === "search" && (r.key === "ArrowUp" || r.key === "ArrowLeft") ? ($e(void 0, !0), Ce()) : De(I);
|
|
1813
1828
|
}
|
|
1814
|
-
} else (r.key === "ArrowDown" || r.key === "ArrowRight") && (
|
|
1829
|
+
} else (r.key === "ArrowDown" || r.key === "ArrowRight") && (qe(), P.value && (P.value.open = !0), Xe());
|
|
1815
1830
|
r.stopPropagation(), r.preventDefault();
|
|
1816
1831
|
}
|
|
1817
|
-
function
|
|
1832
|
+
function Bt(r) {
|
|
1818
1833
|
if (r.stopPropagation(), r.key === "Escape" && P.value?.open)
|
|
1819
|
-
|
|
1834
|
+
$e(void 0, !0), Ce();
|
|
1820
1835
|
else if (r.key === "Enter" && P.value?.open) {
|
|
1821
1836
|
if (self.document) {
|
|
1822
|
-
const
|
|
1823
|
-
if (["checkbox", "radio"].includes(
|
|
1824
|
-
|
|
1825
|
-
else if (
|
|
1826
|
-
const
|
|
1837
|
+
const I = self.document.activeElement;
|
|
1838
|
+
if (["checkbox", "radio"].includes(I.getAttribute("type") || ""))
|
|
1839
|
+
I.click(), r.preventDefault();
|
|
1840
|
+
else if (I.getAttribute("type") === "search") {
|
|
1841
|
+
const T = K.value?.find(
|
|
1827
1842
|
(Z) => !Z.isGroupTitle && !Z.disabled
|
|
1828
1843
|
);
|
|
1829
|
-
|
|
1844
|
+
T?.value && (Oe(T.value), r.preventDefault());
|
|
1830
1845
|
}
|
|
1831
1846
|
}
|
|
1832
|
-
} else (r.key === "ArrowDown" || r.key === "ArrowUp" || r.key === "ArrowLeft" || r.key === "ArrowRight") &&
|
|
1847
|
+
} else (r.key === "ArrowDown" || r.key === "ArrowUp" || r.key === "ArrowLeft" || r.key === "ArrowRight") && wt(r);
|
|
1833
1848
|
}
|
|
1834
|
-
function
|
|
1849
|
+
function $e(r, I) {
|
|
1835
1850
|
if (P.value) {
|
|
1836
|
-
if (
|
|
1851
|
+
if (I)
|
|
1837
1852
|
P.value.open = !1, Ce();
|
|
1838
1853
|
else if (P.value.open && r && r.relatedTarget) {
|
|
1839
|
-
const
|
|
1840
|
-
P.value.contains(
|
|
1854
|
+
const T = r.relatedTarget;
|
|
1855
|
+
P.value.contains(T) || Y(() => P.value.open = !1, 1);
|
|
1841
1856
|
}
|
|
1842
1857
|
}
|
|
1843
1858
|
}
|
|
1844
|
-
function
|
|
1859
|
+
function St(r) {
|
|
1845
1860
|
if (r) {
|
|
1846
|
-
const
|
|
1847
|
-
P.value?.open && !P.value.contains(
|
|
1861
|
+
const I = r.target;
|
|
1862
|
+
P.value?.open && !P.value.contains(I) && (P.value.open = !1);
|
|
1848
1863
|
}
|
|
1849
1864
|
}
|
|
1850
1865
|
function pe(r) {
|
|
1851
|
-
(/* @__PURE__ */ new Date()).getTime() - Be.value < 200 || (A.value = r,
|
|
1866
|
+
(/* @__PURE__ */ new Date()).getTime() - Be.value < 200 || (A.value = r, S.value = !0, t.onOptionSelected && t.onOptionSelected(r ?? []), se(
|
|
1852
1867
|
l,
|
|
1853
1868
|
{
|
|
1854
1869
|
target: {
|
|
@@ -1858,74 +1873,74 @@ const Za = (e) => {
|
|
|
1858
1873
|
"values"
|
|
1859
1874
|
), Be.value = (/* @__PURE__ */ new Date()).getTime());
|
|
1860
1875
|
}
|
|
1861
|
-
function
|
|
1862
|
-
r && (
|
|
1876
|
+
function Oe(r) {
|
|
1877
|
+
r && (t.multiple ? A.value?.includes(r) ? pe(A.value.filter((I) => I !== r)) : pe([...A.value || [], r]) : (pe([r]), $e(void 0, !0)));
|
|
1863
1878
|
}
|
|
1864
|
-
function
|
|
1879
|
+
function pt(r) {
|
|
1865
1880
|
if (r.stopPropagation(), A.value?.length === X.value)
|
|
1866
1881
|
pe([]);
|
|
1867
1882
|
else {
|
|
1868
|
-
const
|
|
1883
|
+
const I = H.value && Ve.value ? Ve.value.value : void 0;
|
|
1869
1884
|
pe(
|
|
1870
|
-
|
|
1871
|
-
(
|
|
1872
|
-
).map((
|
|
1885
|
+
t.options ? t.options.filter(
|
|
1886
|
+
(T) => !T.isGroupTitle && (!I || T.value?.toLowerCase().includes(I.toLowerCase()))
|
|
1887
|
+
).map((T) => T.value ?? "") : []
|
|
1873
1888
|
);
|
|
1874
1889
|
}
|
|
1875
1890
|
}
|
|
1876
1891
|
function De(r) {
|
|
1877
1892
|
if (P.value) {
|
|
1878
|
-
const
|
|
1893
|
+
const I = Array.from(
|
|
1879
1894
|
P.value.querySelectorAll(
|
|
1880
1895
|
'input[type="checkbox"],input[type="radio"]'
|
|
1881
1896
|
)
|
|
1882
1897
|
);
|
|
1883
|
-
if (
|
|
1884
|
-
const
|
|
1898
|
+
if (I.length) {
|
|
1899
|
+
const T = I.at(0), Z = T === r && I.length > 1 ? I.at(1) : T;
|
|
1885
1900
|
Z && Y(() => {
|
|
1886
1901
|
Z.focus();
|
|
1887
1902
|
}, 1);
|
|
1888
1903
|
}
|
|
1889
1904
|
}
|
|
1890
1905
|
}
|
|
1891
|
-
function
|
|
1906
|
+
function Xe() {
|
|
1892
1907
|
if (P.value) {
|
|
1893
|
-
const r =
|
|
1908
|
+
const r = et(P.value);
|
|
1894
1909
|
r ? Y(() => {
|
|
1895
1910
|
r.focus();
|
|
1896
1911
|
}, 1) : De();
|
|
1897
1912
|
}
|
|
1898
1913
|
}
|
|
1899
|
-
function
|
|
1914
|
+
function je(r) {
|
|
1900
1915
|
if (r === void 0)
|
|
1901
1916
|
return;
|
|
1902
|
-
let
|
|
1917
|
+
let I;
|
|
1903
1918
|
if (typeof r == "string")
|
|
1904
|
-
|
|
1919
|
+
I = r;
|
|
1905
1920
|
else {
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1921
|
+
const T = r;
|
|
1922
|
+
T.stopPropagation(), t.onSearch && t.onSearch(T), I = T.target.value, ze.value = I;
|
|
1908
1923
|
}
|
|
1909
|
-
!
|
|
1910
|
-
(
|
|
1911
|
-
) : K.value =
|
|
1912
|
-
(
|
|
1924
|
+
!t.options || !I || I.length === 0 ? K.value = t.options : t.searchFilter ? K.value = t.options.filter(
|
|
1925
|
+
(T) => t.searchFilter(T, I)
|
|
1926
|
+
) : K.value = t.options.filter(
|
|
1927
|
+
(T) => !T.isGroupTitle && Se(T).toLowerCase().includes(I.toLowerCase())
|
|
1913
1928
|
);
|
|
1914
1929
|
}
|
|
1915
|
-
function
|
|
1930
|
+
function Lt(r) {
|
|
1916
1931
|
r.stopPropagation(), pe([]), Ce();
|
|
1917
1932
|
}
|
|
1918
1933
|
function Ce() {
|
|
1919
1934
|
P.value && P.value.querySelector("summary")?.focus();
|
|
1920
1935
|
}
|
|
1921
|
-
function
|
|
1936
|
+
function It(r) {
|
|
1922
1937
|
r.stopPropagation();
|
|
1923
1938
|
}
|
|
1924
|
-
return (r,
|
|
1939
|
+
return (r, I) => (h(), b("div", {
|
|
1925
1940
|
id: i.value,
|
|
1926
1941
|
ref_key: "_ref",
|
|
1927
|
-
ref:
|
|
1928
|
-
class: q(n(O)("db-custom-select",
|
|
1942
|
+
ref: vt,
|
|
1943
|
+
class: q(n(O)("db-custom-select", t.class)),
|
|
1929
1944
|
"aria-invalid": d.value === "invalid",
|
|
1930
1945
|
"data-custom-validity": d.value,
|
|
1931
1946
|
"data-width": e.formFieldWidth,
|
|
@@ -1939,11 +1954,11 @@ const Za = (e) => {
|
|
|
1939
1954
|
"data-show-icon": n(R)(e.showIcon)
|
|
1940
1955
|
}, [
|
|
1941
1956
|
E("label", { id: k.value }, [
|
|
1942
|
-
D(
|
|
1957
|
+
D(L(e.label ?? n(ke)), 1),
|
|
1943
1958
|
E("select", {
|
|
1944
1959
|
role: "none",
|
|
1945
1960
|
hidden: !0,
|
|
1946
|
-
id:
|
|
1961
|
+
id: f.value,
|
|
1947
1962
|
tabIndex: -1,
|
|
1948
1963
|
ref_key: "selectRef",
|
|
1949
1964
|
ref: ne,
|
|
@@ -1952,83 +1967,83 @@ const Za = (e) => {
|
|
|
1952
1967
|
multiple: n(V)(e.multiple, "multiple"),
|
|
1953
1968
|
disabled: n(V)(e.disabled, "disabled"),
|
|
1954
1969
|
required: n(V)(e.required, "required"),
|
|
1955
|
-
onChange:
|
|
1970
|
+
onChange: I[0] || (I[0] = async (T) => It(T))
|
|
1956
1971
|
}, [
|
|
1957
|
-
e.options?.length ? (
|
|
1972
|
+
e.options?.length ? (h(!0), b(W, { key: 0 }, ge(e.options, (T, Z) => (h(), b("option", {
|
|
1958
1973
|
key: Z,
|
|
1959
|
-
disabled:
|
|
1960
|
-
value:
|
|
1961
|
-
},
|
|
1962
|
-
], 40,
|
|
1963
|
-
], 8,
|
|
1974
|
+
disabled: T.disabled,
|
|
1975
|
+
value: T.value
|
|
1976
|
+
}, L(Se(T)), 9, xa))), 128)) : z("", !0)
|
|
1977
|
+
], 40, Ia)
|
|
1978
|
+
], 8, La),
|
|
1964
1979
|
E("details", {
|
|
1965
1980
|
ref_key: "detailsRef",
|
|
1966
1981
|
ref: P,
|
|
1967
1982
|
open: e.open,
|
|
1968
|
-
onToggle:
|
|
1969
|
-
onKeydown:
|
|
1983
|
+
onToggle: I[2] || (I[2] = async (T) => ht(T)),
|
|
1984
|
+
onKeydown: I[3] || (I[3] = async (T) => Bt(T))
|
|
1970
1985
|
}, [
|
|
1971
|
-
|
|
1972
|
-
e.options ? (
|
|
1986
|
+
F(r.$slots, "default"),
|
|
1987
|
+
e.options ? (h(), b(W, { key: 0 }, [
|
|
1973
1988
|
E("summary", {
|
|
1974
1989
|
class: "db-custom-select-form-field",
|
|
1975
1990
|
id: $.value,
|
|
1976
1991
|
"aria-disabled": n(R)(e.disabled),
|
|
1977
1992
|
"aria-labelledby": k.value
|
|
1978
1993
|
}, [
|
|
1979
|
-
|
|
1994
|
+
B.value?.length ? (h(), b("span", {
|
|
1980
1995
|
key: 0,
|
|
1981
1996
|
"data-visually-hidden": n(R)(e.selectedType === "tag"),
|
|
1982
|
-
id:
|
|
1997
|
+
id: g.value
|
|
1983
1998
|
}, [
|
|
1984
|
-
e.selectedPrefix ? (
|
|
1985
|
-
D(" " +
|
|
1986
|
-
], 8,
|
|
1987
|
-
e.selectedType === "tag" ? (
|
|
1988
|
-
(
|
|
1999
|
+
e.selectedPrefix ? (h(), b("span", Ea, L(e.selectedPrefix), 1)) : z("", !0),
|
|
2000
|
+
D(" " + L(B.value), 1)
|
|
2001
|
+
], 8, Ca)) : z("", !0),
|
|
2002
|
+
e.selectedType === "tag" ? (h(), b("div", Aa, [
|
|
2003
|
+
(h(!0), b(W, null, ge(N.value, (T, Z) => (h(), J(Sa, {
|
|
1989
2004
|
key: Z,
|
|
1990
2005
|
emphasis: "strong",
|
|
1991
2006
|
behavior: "removable",
|
|
1992
|
-
removeButton:
|
|
1993
|
-
onRemove: (le) =>
|
|
2007
|
+
removeButton: yt(T),
|
|
2008
|
+
onRemove: (le) => kt(T, le)
|
|
1994
2009
|
}, {
|
|
1995
2010
|
default: U(() => [
|
|
1996
|
-
D(
|
|
2011
|
+
D(L(Se(T)), 1)
|
|
1997
2012
|
]),
|
|
1998
2013
|
_: 2
|
|
1999
2014
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
2000
2015
|
])) : z("", !0)
|
|
2001
|
-
], 8,
|
|
2002
|
-
ie(
|
|
2016
|
+
], 8, $a),
|
|
2017
|
+
ie(na, { width: e.dropdownWidth }, {
|
|
2003
2018
|
default: U(() => [
|
|
2004
|
-
H.value ? (
|
|
2005
|
-
ie(
|
|
2019
|
+
H.value ? (h(), b("div", Da, [
|
|
2020
|
+
ie(ka, {
|
|
2006
2021
|
type: "search",
|
|
2007
2022
|
ref_key: "searchInputRef",
|
|
2008
|
-
ref:
|
|
2023
|
+
ref: Ve,
|
|
2009
2024
|
name: i.value,
|
|
2010
2025
|
form: i.value,
|
|
2011
2026
|
showLabel: !1,
|
|
2012
|
-
value:
|
|
2027
|
+
value: ze.value,
|
|
2013
2028
|
label: e.searchLabel ?? n(ke),
|
|
2014
2029
|
placeholder: e.searchPlaceholder ?? e.searchLabel,
|
|
2015
2030
|
ariaDescribedBy: j.value || e.showLoading ? s.value : void 0,
|
|
2016
|
-
onInput: (
|
|
2031
|
+
onInput: (T) => je(T)
|
|
2017
2032
|
}, null, 8, ["name", "form", "value", "label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
2018
2033
|
])) : z("", !0),
|
|
2019
|
-
j.value || e.showLoading ? (
|
|
2034
|
+
j.value || e.showLoading ? (h(), J(_, {
|
|
2020
2035
|
key: 1,
|
|
2021
2036
|
id: s.value,
|
|
2022
2037
|
icon: e.showLoading ? "circular_arrows" : void 0,
|
|
2023
2038
|
semantic: e.showLoading ? "informational" : "warning"
|
|
2024
2039
|
}, {
|
|
2025
2040
|
default: U(() => [
|
|
2026
|
-
D(
|
|
2041
|
+
D(L((e.showLoading ? e.loadingText : e.noResultsText) ?? n(xt)), 1)
|
|
2027
2042
|
]),
|
|
2028
2043
|
_: 1
|
|
2029
|
-
}, 8, ["id", "icon", "semantic"])) : (
|
|
2030
|
-
|
|
2031
|
-
E("div",
|
|
2044
|
+
}, 8, ["id", "icon", "semantic"])) : (h(), b(W, { key: 2 }, [
|
|
2045
|
+
M.value ? (h(), b("div", Ma, [
|
|
2046
|
+
E("div", Fa, [
|
|
2032
2047
|
E("label", null, [
|
|
2033
2048
|
E("input", {
|
|
2034
2049
|
type: "checkbox",
|
|
@@ -2036,34 +2051,34 @@ const Za = (e) => {
|
|
|
2036
2051
|
ref_key: "selectAllRef",
|
|
2037
2052
|
ref: Ae,
|
|
2038
2053
|
form: i.value,
|
|
2039
|
-
checked:
|
|
2040
|
-
onChange:
|
|
2041
|
-
}, null, 40,
|
|
2042
|
-
D(
|
|
2054
|
+
checked: Pe.value,
|
|
2055
|
+
onChange: I[1] || (I[1] = async (T) => pt(T))
|
|
2056
|
+
}, null, 40, Na),
|
|
2057
|
+
D(L(gt()), 1)
|
|
2043
2058
|
])
|
|
2044
2059
|
])
|
|
2045
2060
|
])) : z("", !0),
|
|
2046
|
-
ie(
|
|
2061
|
+
ie(va, {
|
|
2047
2062
|
multiple: n(V)(e.multiple, "multiple"),
|
|
2048
2063
|
label: e.listLabel ?? e.label ?? n(ke)
|
|
2049
2064
|
}, {
|
|
2050
2065
|
default: U(() => [
|
|
2051
|
-
(
|
|
2066
|
+
(h(!0), b(W, null, ge(K.value, (T, Z) => (h(), J(ca, {
|
|
2052
2067
|
key: Z,
|
|
2053
2068
|
type: e.multiple ? "checkbox" : "radio",
|
|
2054
|
-
showDivider:
|
|
2055
|
-
icon:
|
|
2056
|
-
isGroupTitle:
|
|
2057
|
-
groupTitle: Se(
|
|
2069
|
+
showDivider: T.showDivider,
|
|
2070
|
+
icon: T.icon,
|
|
2071
|
+
isGroupTitle: T.isGroupTitle,
|
|
2072
|
+
groupTitle: Se(T),
|
|
2058
2073
|
name: i.value,
|
|
2059
|
-
checked:
|
|
2060
|
-
disabled:
|
|
2061
|
-
value:
|
|
2062
|
-
onChange: (le) =>
|
|
2074
|
+
checked: bt(T.value),
|
|
2075
|
+
disabled: T.disabled,
|
|
2076
|
+
value: T.value,
|
|
2077
|
+
onChange: (le) => Oe(T.value)
|
|
2063
2078
|
}, {
|
|
2064
2079
|
default: U(() => [
|
|
2065
|
-
|
|
2066
|
-
D(
|
|
2080
|
+
T.isGroupTitle ? z("", !0) : (h(), b(W, { key: 0 }, [
|
|
2081
|
+
D(L(Se(T)), 1)
|
|
2067
2082
|
], 64))
|
|
2068
2083
|
]),
|
|
2069
2084
|
_: 2
|
|
@@ -2080,10 +2095,10 @@ const Za = (e) => {
|
|
|
2080
2095
|
size: "small",
|
|
2081
2096
|
name: i.value,
|
|
2082
2097
|
form: i.value,
|
|
2083
|
-
onClick: (
|
|
2098
|
+
onClick: (T) => $e(void 0, !0)
|
|
2084
2099
|
}, {
|
|
2085
2100
|
default: U(() => [
|
|
2086
|
-
D(
|
|
2101
|
+
D(L(e.mobileCloseButtonText ?? n(Ue)), 1)
|
|
2087
2102
|
]),
|
|
2088
2103
|
_: 1
|
|
2089
2104
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -2092,8 +2107,8 @@ const Za = (e) => {
|
|
|
2092
2107
|
_: 1
|
|
2093
2108
|
}, 8, ["width"])
|
|
2094
2109
|
], 64)) : z("", !0)
|
|
2095
|
-
], 40,
|
|
2096
|
-
(e.showClearSelection ?? !0) && A.value?.length ? (
|
|
2110
|
+
], 40, Ta),
|
|
2111
|
+
(e.showClearSelection ?? !0) && A.value?.length ? (h(), J(we, {
|
|
2097
2112
|
key: 0,
|
|
2098
2113
|
icon: "cross",
|
|
2099
2114
|
variant: "ghost",
|
|
@@ -2101,13 +2116,13 @@ const Za = (e) => {
|
|
|
2101
2116
|
noText: !0,
|
|
2102
2117
|
name: i.value,
|
|
2103
2118
|
form: i.value,
|
|
2104
|
-
onClick: (
|
|
2119
|
+
onClick: (T) => Lt(T)
|
|
2105
2120
|
}, {
|
|
2106
2121
|
default: U(() => [
|
|
2107
|
-
D(
|
|
2108
|
-
ie(
|
|
2122
|
+
D(L(e.clearSelectionText), 1),
|
|
2123
|
+
ie(rt, { placement: "top" }, {
|
|
2109
2124
|
default: U(() => [
|
|
2110
|
-
D(
|
|
2125
|
+
D(L(e.clearSelectionText), 1)
|
|
2111
2126
|
]),
|
|
2112
2127
|
_: 1
|
|
2113
2128
|
})
|
|
@@ -2117,44 +2132,44 @@ const Za = (e) => {
|
|
|
2117
2132
|
E("span", {
|
|
2118
2133
|
class: "db-custom-select-placeholder",
|
|
2119
2134
|
"aria-hidden": n(R)(!0),
|
|
2120
|
-
id:
|
|
2121
|
-
},
|
|
2122
|
-
n(ee)(e.message, e.showMessage) ? (
|
|
2135
|
+
id: w.value
|
|
2136
|
+
}, L(e.placeholder ?? e.label), 9, Ra),
|
|
2137
|
+
n(ee)(e.message, e.showMessage) ? (h(), J(_, {
|
|
2123
2138
|
key: 1,
|
|
2124
2139
|
size: "small",
|
|
2125
2140
|
icon: e.messageIcon,
|
|
2126
2141
|
id: c.value
|
|
2127
2142
|
}, {
|
|
2128
2143
|
default: U(() => [
|
|
2129
|
-
D(
|
|
2144
|
+
D(L(e.message), 1)
|
|
2130
2145
|
]),
|
|
2131
2146
|
_: 1
|
|
2132
2147
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
2133
|
-
|
|
2148
|
+
We() ? (h(), J(_, {
|
|
2134
2149
|
key: 2,
|
|
2135
2150
|
size: "small",
|
|
2136
2151
|
semantic: "successful",
|
|
2137
2152
|
id: u.value
|
|
2138
2153
|
}, {
|
|
2139
2154
|
default: U(() => [
|
|
2140
|
-
D(
|
|
2155
|
+
D(L(e.validMessage || n(ue)), 1)
|
|
2141
2156
|
]),
|
|
2142
2157
|
_: 1
|
|
2143
2158
|
}, 8, ["id"])) : z("", !0),
|
|
2144
2159
|
ie(_, {
|
|
2145
2160
|
size: "small",
|
|
2146
2161
|
semantic: "critical",
|
|
2147
|
-
id:
|
|
2162
|
+
id: v.value
|
|
2148
2163
|
}, {
|
|
2149
2164
|
default: U(() => [
|
|
2150
|
-
D(
|
|
2165
|
+
D(L(m.value), 1)
|
|
2151
2166
|
]),
|
|
2152
2167
|
_: 1
|
|
2153
2168
|
}, 8, ["id"]),
|
|
2154
|
-
E("span",
|
|
2155
|
-
], 10,
|
|
2169
|
+
E("span", za, L(p.value), 1)
|
|
2170
|
+
], 10, pa));
|
|
2156
2171
|
}
|
|
2157
|
-
}),
|
|
2172
|
+
}), Sl = ["fixed", "auto", "full"], Pa = ["id"], pl = /* @__PURE__ */ G({
|
|
2158
2173
|
name: "DBCustomSelectFormField",
|
|
2159
2174
|
__name: "custom-select-form-field",
|
|
2160
2175
|
props: {
|
|
@@ -2165,17 +2180,17 @@ const Za = (e) => {
|
|
|
2165
2180
|
autofocus: { type: [Boolean, String] }
|
|
2166
2181
|
},
|
|
2167
2182
|
setup(e) {
|
|
2168
|
-
const
|
|
2169
|
-
return (
|
|
2183
|
+
const a = e, l = o(null);
|
|
2184
|
+
return (t, i) => (h(), b("summary", {
|
|
2170
2185
|
ref_key: "_ref",
|
|
2171
2186
|
ref: l,
|
|
2172
2187
|
id: e.id,
|
|
2173
|
-
class: q(n(O)("db-custom-select-form-field",
|
|
2188
|
+
class: q(n(O)("db-custom-select-form-field", a.class))
|
|
2174
2189
|
}, [
|
|
2175
|
-
|
|
2176
|
-
], 10,
|
|
2190
|
+
F(t.$slots, "default")
|
|
2191
|
+
], 10, Pa));
|
|
2177
2192
|
}
|
|
2178
|
-
}),
|
|
2193
|
+
}), Ll = ["checkbox", "radio"], Il = ["amount", "text", "tag"], Va = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], xl = /* @__PURE__ */ G({
|
|
2179
2194
|
name: "DBDivider",
|
|
2180
2195
|
__name: "divider",
|
|
2181
2196
|
props: {
|
|
@@ -2190,8 +2205,8 @@ const Za = (e) => {
|
|
|
2190
2205
|
width: { default: void 0 }
|
|
2191
2206
|
},
|
|
2192
2207
|
setup(e) {
|
|
2193
|
-
const
|
|
2194
|
-
return (
|
|
2208
|
+
const a = e, l = o(null);
|
|
2209
|
+
return (t, i) => (h(), b("div", {
|
|
2195
2210
|
ref_key: "_ref",
|
|
2196
2211
|
ref: l,
|
|
2197
2212
|
id: e.id,
|
|
@@ -2199,10 +2214,10 @@ const Za = (e) => {
|
|
|
2199
2214
|
"data-variant": e.variant,
|
|
2200
2215
|
"data-emphasis": e.emphasis,
|
|
2201
2216
|
"data-width": e.width,
|
|
2202
|
-
class: q(n(O)("db-divider",
|
|
2203
|
-
}, null, 10,
|
|
2217
|
+
class: q(n(O)("db-divider", a.class))
|
|
2218
|
+
}, null, 10, Va));
|
|
2204
2219
|
}
|
|
2205
|
-
}),
|
|
2220
|
+
}), Tl = ["none", "_"], $l = ["horizontal", "vertical"], qa = ["id", "data-position", "data-backdrop", "data-direction", "data-variant"], Oa = ["data-spacing", "data-width", "data-direction", "data-rounded"], Ua = { class: "db-drawer-header" }, Ga = { class: "db-drawer-header-text" }, Wa = { class: "db-drawer-content" }, Ha = /* @__PURE__ */ G({
|
|
2206
2221
|
name: "DBDrawer",
|
|
2207
2222
|
__name: "drawer",
|
|
2208
2223
|
props: {
|
|
@@ -2226,11 +2241,11 @@ const Za = (e) => {
|
|
|
2226
2241
|
spacing: { default: void 0 }
|
|
2227
2242
|
},
|
|
2228
2243
|
setup(e) {
|
|
2229
|
-
const
|
|
2244
|
+
const a = e, l = o(!1), t = o(null), i = o(null);
|
|
2230
2245
|
Q(() => {
|
|
2231
2246
|
u(), l.value = !0;
|
|
2232
2247
|
}), C(
|
|
2233
|
-
() => [
|
|
2248
|
+
() => [a.open],
|
|
2234
2249
|
() => {
|
|
2235
2250
|
u();
|
|
2236
2251
|
},
|
|
@@ -2239,10 +2254,10 @@ const Za = (e) => {
|
|
|
2239
2254
|
flush: "post"
|
|
2240
2255
|
}
|
|
2241
2256
|
), C(
|
|
2242
|
-
() => [
|
|
2257
|
+
() => [t.value, l.value, a.position],
|
|
2243
2258
|
() => {
|
|
2244
|
-
if (
|
|
2245
|
-
const m =
|
|
2259
|
+
if (t.value && l.value && a.position === "absolute") {
|
|
2260
|
+
const m = t.value.parentElement;
|
|
2246
2261
|
m && (m.style.position = "relative");
|
|
2247
2262
|
}
|
|
2248
2263
|
},
|
|
@@ -2251,28 +2266,28 @@ const Za = (e) => {
|
|
|
2251
2266
|
flush: "post"
|
|
2252
2267
|
}
|
|
2253
2268
|
);
|
|
2254
|
-
function c(
|
|
2255
|
-
|
|
2269
|
+
function c(v, m) {
|
|
2270
|
+
v && (Pt(v) ? v.key === "Escape" && (v.preventDefault(), a.onClose && a.onClose(v)) : (m && (v.stopPropagation(), a.onClose && a.onClose(v)), v.target?.nodeName === "DIALOG" && v.type === "click" && a.backdrop !== "none" && a.onClose && a.onClose(v)));
|
|
2256
2271
|
}
|
|
2257
2272
|
function u() {
|
|
2258
|
-
if (
|
|
2259
|
-
const
|
|
2260
|
-
|
|
2273
|
+
if (t.value) {
|
|
2274
|
+
const v = !!a.open;
|
|
2275
|
+
v && !t.value.open && (i.value && i.value.removeAttribute(
|
|
2261
2276
|
"data-transition"
|
|
2262
|
-
),
|
|
2277
|
+
), a.position === "absolute" || a.backdrop === "none" || a.variant === "inside" ? t.value.show() : t.value.showModal(), Y(() => {
|
|
2263
2278
|
i.value && (i.value.dataset.transition = "open");
|
|
2264
|
-
}, 1)), !
|
|
2265
|
-
|
|
2279
|
+
}, 1)), !v && t.value.open && (i.value && (i.value.dataset.transition = "close"), Y(() => {
|
|
2280
|
+
t.value?.close();
|
|
2266
2281
|
}, 401));
|
|
2267
2282
|
}
|
|
2268
2283
|
}
|
|
2269
|
-
return (
|
|
2284
|
+
return (v, m) => (h(), b("dialog", {
|
|
2270
2285
|
class: "db-drawer",
|
|
2271
2286
|
id: e.id,
|
|
2272
2287
|
ref_key: "_ref",
|
|
2273
|
-
ref:
|
|
2274
|
-
onClick: m[0] || (m[0] = async (
|
|
2275
|
-
onKeydown: m[1] || (m[1] = async (
|
|
2288
|
+
ref: t,
|
|
2289
|
+
onClick: m[0] || (m[0] = async (f) => c(f)),
|
|
2290
|
+
onKeydown: m[1] || (m[1] = async (f) => c(f)),
|
|
2276
2291
|
"data-position": e.position,
|
|
2277
2292
|
"data-backdrop": e.backdrop,
|
|
2278
2293
|
"data-direction": e.direction,
|
|
@@ -2281,15 +2296,15 @@ const Za = (e) => {
|
|
|
2281
2296
|
E("article", {
|
|
2282
2297
|
ref_key: "dialogContainerRef",
|
|
2283
2298
|
ref: i,
|
|
2284
|
-
class: q(n(O)("db-drawer-container",
|
|
2299
|
+
class: q(n(O)("db-drawer-container", a.class)),
|
|
2285
2300
|
"data-spacing": e.spacing,
|
|
2286
2301
|
"data-width": e.width,
|
|
2287
2302
|
"data-direction": e.direction,
|
|
2288
2303
|
"data-rounded": n(R)(e.rounded)
|
|
2289
2304
|
}, [
|
|
2290
|
-
E("header",
|
|
2291
|
-
E("div",
|
|
2292
|
-
|
|
2305
|
+
E("header", Ua, [
|
|
2306
|
+
E("div", Ga, [
|
|
2307
|
+
F(v.$slots, "drawer-header")
|
|
2293
2308
|
]),
|
|
2294
2309
|
ie(we, {
|
|
2295
2310
|
class: "button-close-drawer",
|
|
@@ -2297,27 +2312,27 @@ const Za = (e) => {
|
|
|
2297
2312
|
variant: "ghost",
|
|
2298
2313
|
id: e.closeButtonId,
|
|
2299
2314
|
noText: !0,
|
|
2300
|
-
onClick: (
|
|
2315
|
+
onClick: (f) => c(f, !0)
|
|
2301
2316
|
}, {
|
|
2302
2317
|
default: U(() => [
|
|
2303
|
-
D(
|
|
2318
|
+
D(L(e.closeButtonText ?? n(Ue)), 1)
|
|
2304
2319
|
]),
|
|
2305
2320
|
_: 1
|
|
2306
2321
|
}, 8, ["id", "onClick"])
|
|
2307
2322
|
]),
|
|
2308
|
-
E("div",
|
|
2309
|
-
|
|
2323
|
+
E("div", Wa, [
|
|
2324
|
+
F(v.$slots, "default")
|
|
2310
2325
|
])
|
|
2311
|
-
], 10,
|
|
2312
|
-
], 40,
|
|
2326
|
+
], 10, Oa)
|
|
2327
|
+
], 40, qa));
|
|
2313
2328
|
}
|
|
2314
|
-
}),
|
|
2329
|
+
}), Cl = ["none", "strong", "weak", "invisible"], El = ["left", "right", "up", "down"], Al = ["modal", "inside"], Dl = ["fixed", "absolute"], Xa = (e) => {
|
|
2315
2330
|
const {
|
|
2316
|
-
target:
|
|
2331
|
+
target: a
|
|
2317
2332
|
} = e;
|
|
2318
|
-
return !!(!
|
|
2333
|
+
return !!(!a?.classList?.contains("db-navigation-item-expand-button") && a?.parentElement?.classList.contains("db-navigation-item"));
|
|
2319
2334
|
};
|
|
2320
|
-
class
|
|
2335
|
+
class ja {
|
|
2321
2336
|
element;
|
|
2322
2337
|
subNavigation;
|
|
2323
2338
|
parentSubNavigation = null;
|
|
@@ -2325,24 +2340,24 @@ class Wt {
|
|
|
2325
2340
|
initialized = !1;
|
|
2326
2341
|
mouseX = 0;
|
|
2327
2342
|
mouseY = 0;
|
|
2328
|
-
constructor(
|
|
2329
|
-
this.element =
|
|
2343
|
+
constructor(a, l) {
|
|
2344
|
+
this.element = a, this.subNavigation = l, !(!this.element || !this.subNavigation) && (this.parentSubNavigation = this.element?.closest(".db-sub-navigation"), this.parentSubNavigation && !this.element.closest(".db-drawer") && this.init());
|
|
2330
2345
|
}
|
|
2331
2346
|
init() {
|
|
2332
|
-
const
|
|
2333
|
-
this.element?.style.setProperty("--db-navigation-item-inline-size", `${
|
|
2347
|
+
const a = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
|
|
2348
|
+
this.element?.style.setProperty("--db-navigation-item-inline-size", `${a}px`), this.initialized = !0;
|
|
2334
2349
|
}
|
|
2335
2350
|
enableFollow() {
|
|
2336
2351
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation)
|
|
2337
2352
|
return;
|
|
2338
|
-
const
|
|
2353
|
+
const a = ea(this.subNavigation), l = this.element.getBoundingClientRect(), t = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
|
|
2339
2354
|
this.triangleData = {
|
|
2340
2355
|
itemRect: l,
|
|
2341
|
-
parentElementWidth:
|
|
2356
|
+
parentElementWidth: t,
|
|
2342
2357
|
subNavigationHeight: this.subNavigation.getBoundingClientRect().height,
|
|
2343
|
-
padding: (
|
|
2344
|
-
outsideVX:
|
|
2345
|
-
outsideVY:
|
|
2358
|
+
padding: (t - l.width) / 2,
|
|
2359
|
+
outsideVX: a.vx,
|
|
2360
|
+
outsideVY: a.vy
|
|
2346
2361
|
};
|
|
2347
2362
|
}
|
|
2348
2363
|
disableFollow() {
|
|
@@ -2353,28 +2368,28 @@ class Wt {
|
|
|
2353
2368
|
}
|
|
2354
2369
|
getTriangleTipY() {
|
|
2355
2370
|
if (!this.triangleData) return 0;
|
|
2356
|
-
const
|
|
2357
|
-
return this.triangleData.outsideVY === "bottom" ?
|
|
2371
|
+
const a = Math.max(Math.min(this.mouseY, this.triangleData.itemRect.height), 0) + this.triangleData.padding;
|
|
2372
|
+
return this.triangleData.outsideVY === "bottom" ? a + (this.triangleData.subNavigationHeight - this.triangleData.padding * 2 - this.triangleData.itemRect.height) : a;
|
|
2358
2373
|
}
|
|
2359
2374
|
hasMouseEnteredSubNavigation() {
|
|
2360
2375
|
if (!this.triangleData)
|
|
2361
2376
|
return !1;
|
|
2362
|
-
const
|
|
2363
|
-
return !!(
|
|
2377
|
+
const a = this.triangleData.outsideVX === "right";
|
|
2378
|
+
return !!(a && this.mouseX < -1 * this.triangleData.padding || !a && this.mouseX > this.triangleData.parentElementWidth - this.triangleData.padding);
|
|
2364
2379
|
}
|
|
2365
|
-
getTriangleCoordinates(
|
|
2380
|
+
getTriangleCoordinates(a) {
|
|
2366
2381
|
if (!this.triangleData)
|
|
2367
2382
|
return;
|
|
2368
|
-
if (
|
|
2369
|
-
const u = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`,
|
|
2383
|
+
if (a === "fill-gap") {
|
|
2384
|
+
const u = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, v = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
2370
2385
|
return {
|
|
2371
|
-
lb: `${
|
|
2372
|
-
lt: `${
|
|
2386
|
+
lb: `${v} ${u}`,
|
|
2387
|
+
lt: `${v} 0`,
|
|
2373
2388
|
rt: "100% 0",
|
|
2374
2389
|
rb: `100% ${u}`
|
|
2375
2390
|
};
|
|
2376
2391
|
}
|
|
2377
|
-
const l = this.getTriangleTipX(),
|
|
2392
|
+
const l = this.getTriangleTipX(), t = this.getTriangleTipY(), i = `${l}px ${t}px`, c = `${l}px ${t}px`;
|
|
2378
2393
|
return {
|
|
2379
2394
|
lb: i,
|
|
2380
2395
|
lt: c,
|
|
@@ -2382,15 +2397,15 @@ class Wt {
|
|
|
2382
2397
|
rb: "100% 100%"
|
|
2383
2398
|
};
|
|
2384
2399
|
}
|
|
2385
|
-
followByMouseEvent(
|
|
2400
|
+
followByMouseEvent(a) {
|
|
2386
2401
|
if (!this.initialized || !this.triangleData || !this.element || !this.subNavigation)
|
|
2387
2402
|
return;
|
|
2388
|
-
this.mouseX =
|
|
2389
|
-
const l = this.hasMouseEnteredSubNavigation(),
|
|
2390
|
-
|
|
2403
|
+
this.mouseX = a.clientX - this.triangleData.itemRect.left, this.mouseY = a.clientY - this.triangleData.itemRect.top;
|
|
2404
|
+
const l = this.hasMouseEnteredSubNavigation(), t = this.getTriangleCoordinates(l ? "fill-gap" : "safe-triangle");
|
|
2405
|
+
t && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${t.lb}, ${t.lt}, ${t.rt}, ${t.rb})`), l && (this.triangleData = void 0));
|
|
2391
2406
|
}
|
|
2392
2407
|
}
|
|
2393
|
-
const
|
|
2408
|
+
const Ka = ["id", "data-width", "data-on-forcing-mobile"], Ya = { class: "db-header-drawer-navigation" }, Ja = { class: "db-header-meta-navigation" }, Qa = { class: "db-header-secondary-action" }, Za = { class: "db-header-meta-navigation" }, _a = { class: "db-header-navigation-bar" }, ei = { class: "db-header-brand-container" }, ti = { class: "db-header-navigation-container" }, ai = { class: "db-header-navigation" }, ii = { class: "db-header-primary-action" }, li = { class: "db-header-action-container" }, ni = { class: "db-header-burger-menu-container" }, oi = { class: "db-header-secondary-action" }, Ml = /* @__PURE__ */ G({
|
|
2394
2409
|
name: "DBHeader",
|
|
2395
2410
|
__name: "header",
|
|
2396
2411
|
props: {
|
|
@@ -2413,101 +2428,101 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2413
2428
|
width: { default: void 0 }
|
|
2414
2429
|
},
|
|
2415
2430
|
setup(e) {
|
|
2416
|
-
const
|
|
2431
|
+
const a = e, l = o(!1), t = o(!1), i = o(null);
|
|
2417
2432
|
Q(() => {
|
|
2418
2433
|
l.value = !0;
|
|
2419
2434
|
}), C(
|
|
2420
2435
|
() => [l.value, i.value],
|
|
2421
2436
|
() => {
|
|
2422
|
-
l.value && i.value &&
|
|
2437
|
+
l.value && i.value && a.forceMobile && (dt(i.value, {
|
|
2423
2438
|
key: "data-force-mobile",
|
|
2424
2439
|
value: "true"
|
|
2425
|
-
}),
|
|
2440
|
+
}), t.value = !0);
|
|
2426
2441
|
},
|
|
2427
2442
|
{
|
|
2428
2443
|
immediate: !0,
|
|
2429
2444
|
flush: "post"
|
|
2430
2445
|
}
|
|
2431
2446
|
);
|
|
2432
|
-
function c(
|
|
2433
|
-
const m = !V(
|
|
2434
|
-
|
|
2447
|
+
function c(v) {
|
|
2448
|
+
const m = !V(a.drawerOpen, "drawerOpen");
|
|
2449
|
+
a.onToggle && a.onToggle(m);
|
|
2435
2450
|
}
|
|
2436
|
-
function u(
|
|
2437
|
-
|
|
2451
|
+
function u(v) {
|
|
2452
|
+
Xa(v) && c();
|
|
2438
2453
|
}
|
|
2439
|
-
return (
|
|
2454
|
+
return (v, m) => (h(), b("header", {
|
|
2440
2455
|
ref_key: "_ref",
|
|
2441
2456
|
ref: i,
|
|
2442
|
-
class: q(n(O)("db-header",
|
|
2457
|
+
class: q(n(O)("db-header", a.class)),
|
|
2443
2458
|
id: e.id,
|
|
2444
2459
|
"data-width": e.width,
|
|
2445
|
-
"data-on-forcing-mobile": e.forceMobile && !
|
|
2460
|
+
"data-on-forcing-mobile": e.forceMobile && !t.value
|
|
2446
2461
|
}, [
|
|
2447
|
-
ie(
|
|
2462
|
+
ie(Ha, {
|
|
2448
2463
|
class: "db-header-drawer",
|
|
2449
2464
|
spacing: "small",
|
|
2450
2465
|
rounded: !0,
|
|
2451
2466
|
closeButtonId: e.closeButtonId,
|
|
2452
2467
|
closeButtonText: e.closeButtonText,
|
|
2453
2468
|
open: n(V)(e.drawerOpen),
|
|
2454
|
-
onClose: (
|
|
2469
|
+
onClose: (f) => c()
|
|
2455
2470
|
}, {
|
|
2456
2471
|
default: U(() => [
|
|
2457
|
-
E("div",
|
|
2472
|
+
E("div", Ya, [
|
|
2458
2473
|
E("div", {
|
|
2459
2474
|
class: "db-header-navigation",
|
|
2460
|
-
onClick: m[0] || (m[0] = async (
|
|
2475
|
+
onClick: m[0] || (m[0] = async (f) => u(f))
|
|
2461
2476
|
}, [
|
|
2462
|
-
|
|
2477
|
+
F(v.$slots, "default")
|
|
2463
2478
|
]),
|
|
2464
|
-
E("div",
|
|
2465
|
-
|
|
2479
|
+
E("div", Ja, [
|
|
2480
|
+
F(v.$slots, "meta-navigation")
|
|
2466
2481
|
])
|
|
2467
2482
|
]),
|
|
2468
|
-
E("div",
|
|
2469
|
-
|
|
2483
|
+
E("div", Qa, [
|
|
2484
|
+
F(v.$slots, "secondary-action")
|
|
2470
2485
|
])
|
|
2471
2486
|
]),
|
|
2472
2487
|
_: 3
|
|
2473
2488
|
}, 8, ["closeButtonId", "closeButtonText", "open", "onClose"]),
|
|
2474
|
-
E("div",
|
|
2475
|
-
|
|
2489
|
+
E("div", Za, [
|
|
2490
|
+
F(v.$slots, "meta-navigation")
|
|
2476
2491
|
]),
|
|
2477
|
-
E("div",
|
|
2478
|
-
E("div",
|
|
2479
|
-
|
|
2492
|
+
E("div", _a, [
|
|
2493
|
+
E("div", ei, [
|
|
2494
|
+
F(v.$slots, "brand")
|
|
2480
2495
|
]),
|
|
2481
|
-
E("div",
|
|
2482
|
-
E("div",
|
|
2483
|
-
|
|
2496
|
+
E("div", ti, [
|
|
2497
|
+
E("div", ai, [
|
|
2498
|
+
F(v.$slots, "default")
|
|
2484
2499
|
]),
|
|
2485
|
-
E("div",
|
|
2486
|
-
|
|
2500
|
+
E("div", ii, [
|
|
2501
|
+
F(v.$slots, "primary-action")
|
|
2487
2502
|
])
|
|
2488
2503
|
]),
|
|
2489
|
-
E("div",
|
|
2490
|
-
E("div",
|
|
2504
|
+
E("div", li, [
|
|
2505
|
+
E("div", ni, [
|
|
2491
2506
|
ie(we, {
|
|
2492
2507
|
icon: "menu",
|
|
2493
2508
|
variant: "ghost",
|
|
2494
2509
|
noText: !0,
|
|
2495
|
-
onClick: (
|
|
2510
|
+
onClick: (f) => c()
|
|
2496
2511
|
}, {
|
|
2497
2512
|
default: U(() => [
|
|
2498
|
-
D(
|
|
2513
|
+
D(L(e.burgerMenuLabel ?? n(Ct)), 1)
|
|
2499
2514
|
]),
|
|
2500
2515
|
_: 1
|
|
2501
2516
|
}, 8, ["onClick"])
|
|
2502
2517
|
]),
|
|
2503
|
-
E("div",
|
|
2504
|
-
|
|
2518
|
+
E("div", oi, [
|
|
2519
|
+
F(v.$slots, "secondary-action")
|
|
2505
2520
|
])
|
|
2506
2521
|
])
|
|
2507
2522
|
])
|
|
2508
|
-
], 10,
|
|
2523
|
+
], 10, Ka));
|
|
2509
2524
|
}
|
|
2510
|
-
}),
|
|
2525
|
+
}), di = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], Fl = /* @__PURE__ */ G({
|
|
2511
2526
|
name: "DBIcon",
|
|
2512
2527
|
__name: "icon",
|
|
2513
2528
|
props: {
|
|
@@ -2522,23 +2537,23 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2522
2537
|
text: { default: void 0 }
|
|
2523
2538
|
},
|
|
2524
2539
|
setup(e) {
|
|
2525
|
-
const
|
|
2526
|
-
return (
|
|
2540
|
+
const a = e, l = o(null);
|
|
2541
|
+
return (t, i) => (h(), b("span", {
|
|
2527
2542
|
"aria-hidden": "true",
|
|
2528
2543
|
ref_key: "_ref",
|
|
2529
2544
|
ref: l,
|
|
2530
2545
|
id: e.id,
|
|
2531
|
-
class: q(n(O)("db-icon",
|
|
2546
|
+
class: q(n(O)("db-icon", a.class)),
|
|
2532
2547
|
"data-icon": e.icon,
|
|
2533
2548
|
"data-icon-weight": e.weight,
|
|
2534
2549
|
"data-icon-variant": e.variant
|
|
2535
2550
|
}, [
|
|
2536
|
-
e.text ? (
|
|
2537
|
-
D(
|
|
2538
|
-
], 64)) :
|
|
2539
|
-
], 10,
|
|
2551
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
2552
|
+
D(L(e.text), 1)
|
|
2553
|
+
], 64)) : F(t.$slots, "default", { key: 1 })
|
|
2554
|
+
], 10, di));
|
|
2540
2555
|
}
|
|
2541
|
-
}),
|
|
2556
|
+
}), Nl = ["16", "20", "24", "32", "48", "64"], Rl = [
|
|
2542
2557
|
"color",
|
|
2543
2558
|
"date",
|
|
2544
2559
|
"datetime-local",
|
|
@@ -2557,7 +2572,7 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2557
2572
|
"time",
|
|
2558
2573
|
"url",
|
|
2559
2574
|
"week"
|
|
2560
|
-
],
|
|
2575
|
+
], si = ["id", "href", "target", "rel", "role", "referrerPolicy", "hrefLang", "aria-disabled", "tabIndex", "data-size", "data-show-icon-trailing", "data-variant", "data-content", "data-wrap"], zl = /* @__PURE__ */ G({
|
|
2561
2576
|
name: "DBLink",
|
|
2562
2577
|
__name: "link",
|
|
2563
2578
|
props: {
|
|
@@ -2584,15 +2599,15 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2584
2599
|
wrap: { type: [Boolean, String], default: void 0 }
|
|
2585
2600
|
},
|
|
2586
2601
|
setup(e) {
|
|
2587
|
-
const
|
|
2588
|
-
function
|
|
2589
|
-
|
|
2602
|
+
const a = e, l = o(null);
|
|
2603
|
+
function t(i) {
|
|
2604
|
+
a.onClick && a.onClick(i);
|
|
2590
2605
|
}
|
|
2591
|
-
return (i, c) => (
|
|
2606
|
+
return (i, c) => (h(), b("a", {
|
|
2592
2607
|
ref_key: "_ref",
|
|
2593
2608
|
ref: l,
|
|
2594
2609
|
id: e.id,
|
|
2595
|
-
class: q(n(O)("db-link",
|
|
2610
|
+
class: q(n(O)("db-link", a.class)),
|
|
2596
2611
|
href: e.href,
|
|
2597
2612
|
target: e.target,
|
|
2598
2613
|
rel: e.rel,
|
|
@@ -2606,14 +2621,14 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2606
2621
|
"data-variant": e.variant,
|
|
2607
2622
|
"data-content": e.content || "internal",
|
|
2608
2623
|
"data-wrap": n(R)(e.wrap),
|
|
2609
|
-
onClick: c[0] || (c[0] = async (u) =>
|
|
2624
|
+
onClick: c[0] || (c[0] = async (u) => t(u))
|
|
2610
2625
|
}, [
|
|
2611
|
-
e.text ? (
|
|
2612
|
-
D(
|
|
2613
|
-
], 64)) :
|
|
2614
|
-
], 10,
|
|
2626
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
2627
|
+
D(L(e.text), 1)
|
|
2628
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
2629
|
+
], 10, si));
|
|
2615
2630
|
}
|
|
2616
|
-
}),
|
|
2631
|
+
}), Pl = ["adaptive", "brand", "inline"], Vl = ["medium", "small"], ql = ["external", "internal"], ui = ["id"], Ol = /* @__PURE__ */ G({
|
|
2617
2632
|
name: "DBNavigation",
|
|
2618
2633
|
__name: "navigation",
|
|
2619
2634
|
props: {
|
|
@@ -2624,24 +2639,24 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2624
2639
|
autofocus: { type: [Boolean, String] }
|
|
2625
2640
|
},
|
|
2626
2641
|
setup(e) {
|
|
2627
|
-
const
|
|
2642
|
+
const a = e, l = o(Ee), t = o(null);
|
|
2628
2643
|
return Q(() => {
|
|
2629
|
-
l.value =
|
|
2630
|
-
}), (i, c) => (
|
|
2644
|
+
l.value = a.id || "navigation-" + te();
|
|
2645
|
+
}), (i, c) => (h(), b("nav", {
|
|
2631
2646
|
ref_key: "_ref",
|
|
2632
|
-
ref:
|
|
2647
|
+
ref: t,
|
|
2633
2648
|
id: l.value,
|
|
2634
|
-
class: q(n(O)("db-navigation",
|
|
2649
|
+
class: q(n(O)("db-navigation", a.class))
|
|
2635
2650
|
}, [
|
|
2636
2651
|
E("menu", null, [
|
|
2637
|
-
|
|
2652
|
+
F(i.$slots, "default")
|
|
2638
2653
|
])
|
|
2639
|
-
], 10,
|
|
2654
|
+
], 10, ui));
|
|
2640
2655
|
}
|
|
2641
|
-
}),
|
|
2656
|
+
}), ci = ["id", "data-width", "data-icon", "data-show-icon", "data-active", "data-wrap", "aria-disabled"], ri = ["aria-haspopup", "aria-expanded", "disabled"], vi = ["data-force-close", "id"], fi = {
|
|
2642
2657
|
key: 0,
|
|
2643
2658
|
class: "db-mobile-navigation-back"
|
|
2644
|
-
},
|
|
2659
|
+
}, Ul = /* @__PURE__ */ G({
|
|
2645
2660
|
name: "DBNavigationItem",
|
|
2646
2661
|
__name: "navigation-item",
|
|
2647
2662
|
props: {
|
|
@@ -2665,16 +2680,16 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2665
2680
|
text: { default: void 0 }
|
|
2666
2681
|
},
|
|
2667
2682
|
setup(e) {
|
|
2668
|
-
const
|
|
2669
|
-
"sub-navigation-" +
|
|
2670
|
-
), m = o(void 0),
|
|
2683
|
+
const a = e, l = o(!1), t = o(!1), i = o(!0), c = o(!1), u = o(!1), v = o(
|
|
2684
|
+
"sub-navigation-" + te()
|
|
2685
|
+
), m = o(void 0), f = o(null);
|
|
2671
2686
|
Q(() => {
|
|
2672
2687
|
l.value = !0;
|
|
2673
2688
|
}), C(
|
|
2674
|
-
() => [
|
|
2689
|
+
() => [a.subNavigationExpanded],
|
|
2675
2690
|
() => {
|
|
2676
|
-
|
|
2677
|
-
|
|
2691
|
+
a.subNavigationExpanded !== void 0 && (c.value = !!V(
|
|
2692
|
+
a.subNavigationExpanded,
|
|
2678
2693
|
"subNavigationExpanded"
|
|
2679
2694
|
));
|
|
2680
2695
|
},
|
|
@@ -2683,12 +2698,12 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2683
2698
|
flush: "post"
|
|
2684
2699
|
}
|
|
2685
2700
|
), C(
|
|
2686
|
-
() => [l.value,
|
|
2701
|
+
() => [l.value, f.value],
|
|
2687
2702
|
() => {
|
|
2688
|
-
if (l.value &&
|
|
2689
|
-
const s =
|
|
2690
|
-
s && (s.children?.length > 0 ? (
|
|
2691
|
-
|
|
2703
|
+
if (l.value && f.value) {
|
|
2704
|
+
const s = f.value.querySelector("menu");
|
|
2705
|
+
s && (s.children?.length > 0 ? (t.value = !0, m.value || (m.value = new ja(
|
|
2706
|
+
f.value,
|
|
2692
2707
|
s
|
|
2693
2708
|
))) : i.value = !1);
|
|
2694
2709
|
}
|
|
@@ -2704,19 +2719,19 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2704
2719
|
}, 1e3));
|
|
2705
2720
|
}
|
|
2706
2721
|
function $(s) {
|
|
2707
|
-
|
|
2722
|
+
a.onClick && (s.stopPropagation(), a.onClick(s)), t.value && (c.value = !0);
|
|
2708
2723
|
}
|
|
2709
|
-
function
|
|
2724
|
+
function w(s) {
|
|
2710
2725
|
s.stopPropagation(), c.value = !1;
|
|
2711
2726
|
}
|
|
2712
|
-
return (s, d) => (
|
|
2727
|
+
return (s, d) => (h(), b("li", {
|
|
2713
2728
|
ref_key: "_ref",
|
|
2714
|
-
ref:
|
|
2729
|
+
ref: f,
|
|
2715
2730
|
id: e.id,
|
|
2716
|
-
onMouseover: d[2] || (d[2] = async (
|
|
2717
|
-
onMouseleave: d[3] || (d[3] = async (
|
|
2718
|
-
onMousemove: d[4] || (d[4] = async (
|
|
2719
|
-
class: q(n(O)("db-navigation-item",
|
|
2731
|
+
onMouseover: d[2] || (d[2] = async (S) => m.value?.enableFollow()),
|
|
2732
|
+
onMouseleave: d[3] || (d[3] = async (S) => m.value?.disableFollow()),
|
|
2733
|
+
onMousemove: d[4] || (d[4] = async (S) => m.value?.followByMouseEvent(S)),
|
|
2734
|
+
class: q(n(O)("db-navigation-item", a.class)),
|
|
2720
2735
|
"data-width": e.width,
|
|
2721
2736
|
"data-icon": e.icon,
|
|
2722
2737
|
"data-show-icon": n(R)(e.showIcon),
|
|
@@ -2724,48 +2739,48 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2724
2739
|
"data-wrap": n(R)(e.wrap),
|
|
2725
2740
|
"aria-disabled": n(R)(e.disabled)
|
|
2726
2741
|
}, [
|
|
2727
|
-
i.value ? z("", !0) : (
|
|
2728
|
-
e.text ? (
|
|
2729
|
-
D(
|
|
2730
|
-
], 64)) :
|
|
2742
|
+
i.value ? z("", !0) : (h(), b(W, { key: 0 }, [
|
|
2743
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
2744
|
+
D(L(e.text), 1)
|
|
2745
|
+
], 64)) : F(s.$slots, "default", { key: 1 })
|
|
2731
2746
|
], 64)),
|
|
2732
|
-
i.value ? (
|
|
2747
|
+
i.value ? (h(), b(W, { key: 1 }, [
|
|
2733
2748
|
E("button", {
|
|
2734
2749
|
class: "db-navigation-item-expand-button",
|
|
2735
|
-
"aria-haspopup":
|
|
2750
|
+
"aria-haspopup": t.value,
|
|
2736
2751
|
"aria-expanded": c.value,
|
|
2737
2752
|
disabled: n(V)(e.disabled, "disabled"),
|
|
2738
|
-
onClick: d[0] || (d[0] = async (
|
|
2753
|
+
onClick: d[0] || (d[0] = async (S) => $(S))
|
|
2739
2754
|
}, [
|
|
2740
|
-
e.text ? (
|
|
2741
|
-
D(
|
|
2742
|
-
], 64)) :
|
|
2743
|
-
], 8,
|
|
2755
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
2756
|
+
D(L(e.text), 1)
|
|
2757
|
+
], 64)) : F(s.$slots, "default", { key: 1 })
|
|
2758
|
+
], 8, ri),
|
|
2744
2759
|
E("menu", {
|
|
2745
2760
|
class: "db-sub-navigation",
|
|
2746
2761
|
"data-force-close": u.value,
|
|
2747
|
-
id:
|
|
2748
|
-
onClick: d[1] || (d[1] = async (
|
|
2762
|
+
id: v.value,
|
|
2763
|
+
onClick: d[1] || (d[1] = async (S) => k(S))
|
|
2749
2764
|
}, [
|
|
2750
|
-
|
|
2765
|
+
t.value ? (h(), b("div", fi, [
|
|
2751
2766
|
ie(we, {
|
|
2752
2767
|
icon: "arrow_left",
|
|
2753
2768
|
variant: "ghost",
|
|
2754
2769
|
id: e.backButtonId,
|
|
2755
|
-
onClick: (
|
|
2770
|
+
onClick: (S) => w(S)
|
|
2756
2771
|
}, {
|
|
2757
2772
|
default: U(() => [
|
|
2758
|
-
D(
|
|
2773
|
+
D(L(e.backButtonText ?? n(Tt)), 1)
|
|
2759
2774
|
]),
|
|
2760
2775
|
_: 1
|
|
2761
2776
|
}, 8, ["id", "onClick"])
|
|
2762
2777
|
])) : z("", !0),
|
|
2763
|
-
|
|
2764
|
-
], 8,
|
|
2778
|
+
F(s.$slots, "sub-navigation")
|
|
2779
|
+
], 8, vi)
|
|
2765
2780
|
], 64)) : z("", !0)
|
|
2766
|
-
], 42,
|
|
2781
|
+
], 42, ci));
|
|
2767
2782
|
}
|
|
2768
|
-
}),
|
|
2783
|
+
}), hi = ["id", "role", "aria-live", "data-semantic", "data-variant", "data-icon", "data-show-icon", "data-link-variant"], mi = { key: 0 }, gi = { key: 1 }, Gl = /* @__PURE__ */ G({
|
|
2769
2784
|
name: "DBNotification",
|
|
2770
2785
|
__name: "notification",
|
|
2771
2786
|
props: {
|
|
@@ -2798,16 +2813,16 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2798
2813
|
text: { default: void 0 }
|
|
2799
2814
|
},
|
|
2800
2815
|
setup(e) {
|
|
2801
|
-
const
|
|
2802
|
-
function
|
|
2803
|
-
i && (i.stopPropagation(),
|
|
2816
|
+
const a = e, l = o(null);
|
|
2817
|
+
function t(i) {
|
|
2818
|
+
i && (i.stopPropagation(), a.onClose && a.onClose(i));
|
|
2804
2819
|
}
|
|
2805
|
-
return (i, c) => (
|
|
2820
|
+
return (i, c) => (h(), b("div", {
|
|
2806
2821
|
ref_key: "_ref",
|
|
2807
2822
|
ref: l,
|
|
2808
2823
|
id: e.id,
|
|
2809
|
-
class: q(n(O)("db-notification",
|
|
2810
|
-
role: n(
|
|
2824
|
+
class: q(n(O)("db-notification", a.class)),
|
|
2825
|
+
role: n(Vt)({
|
|
2811
2826
|
semantic: e.semantic,
|
|
2812
2827
|
role: e.role,
|
|
2813
2828
|
ariaLive: e.ariaLive
|
|
@@ -2819,32 +2834,32 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2819
2834
|
"data-show-icon": n(R)(e.showIcon),
|
|
2820
2835
|
"data-link-variant": e.linkVariant
|
|
2821
2836
|
}, [
|
|
2822
|
-
|
|
2823
|
-
n(ee)(e.headline, e.showHeadline) ? (
|
|
2837
|
+
F(i.$slots, "image"),
|
|
2838
|
+
n(ee)(e.headline, e.showHeadline) ? (h(), b("header", mi, L(e.headline), 1)) : z("", !0),
|
|
2824
2839
|
E("p", null, [
|
|
2825
|
-
e.text ? (
|
|
2826
|
-
D(
|
|
2827
|
-
], 64)) :
|
|
2840
|
+
e.text ? (h(), b(W, { key: 0 }, [
|
|
2841
|
+
D(L(e.text), 1)
|
|
2842
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
2828
2843
|
]),
|
|
2829
|
-
n(ee)(e.timestamp, e.showTimestamp) ? (
|
|
2830
|
-
|
|
2831
|
-
n(V)(e.closeable, "closeable") ? (
|
|
2844
|
+
n(ee)(e.timestamp, e.showTimestamp) ? (h(), b("span", gi, L(e.timestamp), 1)) : z("", !0),
|
|
2845
|
+
F(i.$slots, "link"),
|
|
2846
|
+
n(V)(e.closeable, "closeable") ? (h(), J(we, {
|
|
2832
2847
|
key: 2,
|
|
2833
2848
|
icon: "cross",
|
|
2834
2849
|
variant: "ghost",
|
|
2835
2850
|
size: "small",
|
|
2836
2851
|
id: e.closeButtonId,
|
|
2837
2852
|
noText: !0,
|
|
2838
|
-
onClick: (u) =>
|
|
2853
|
+
onClick: (u) => t(u)
|
|
2839
2854
|
}, {
|
|
2840
2855
|
default: U(() => [
|
|
2841
|
-
D(
|
|
2856
|
+
D(L(e.closeButtonText ?? n(Ue)), 1)
|
|
2842
2857
|
]),
|
|
2843
2858
|
_: 1
|
|
2844
2859
|
}, 8, ["id", "onClick"])) : z("", !0)
|
|
2845
|
-
], 10,
|
|
2860
|
+
], 10, hi));
|
|
2846
2861
|
}
|
|
2847
|
-
}),
|
|
2862
|
+
}), Wl = ["docked", "standalone", "overlay"], Hl = ["block", "inline"], Xl = ["assertive", "polite", "off"], bi = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], jl = /* @__PURE__ */ G({
|
|
2848
2863
|
name: "DBPage",
|
|
2849
2864
|
__name: "page",
|
|
2850
2865
|
props: {
|
|
@@ -2861,32 +2876,32 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2861
2876
|
autofocus: { type: [Boolean, String] }
|
|
2862
2877
|
},
|
|
2863
2878
|
setup(e) {
|
|
2864
|
-
const
|
|
2865
|
-
return typeof window < "u" && document && (
|
|
2866
|
-
l.value = !
|
|
2879
|
+
const a = e, l = o(!1), t = o(null);
|
|
2880
|
+
return typeof window < "u" && document && (a.documentOverflow === "hidden" || a.variant === "fixed" && a.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), Q(() => {
|
|
2881
|
+
l.value = !a.fadeIn, document && a.fadeIn ? document.fonts.ready.then(() => {
|
|
2867
2882
|
l.value = !0;
|
|
2868
2883
|
}) : l.value = !0;
|
|
2869
2884
|
}), me(() => {
|
|
2870
2885
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
2871
|
-
}), (i, c) => (
|
|
2886
|
+
}), (i, c) => (h(), b("div", {
|
|
2872
2887
|
ref_key: "_ref",
|
|
2873
|
-
ref:
|
|
2888
|
+
ref: t,
|
|
2874
2889
|
id: e.id,
|
|
2875
|
-
class: q(n(O)("db-page",
|
|
2890
|
+
class: q(n(O)("db-page", a.class)),
|
|
2876
2891
|
"data-variant": e.variant,
|
|
2877
2892
|
"data-fade-in": n(R)(e.fadeIn),
|
|
2878
2893
|
"data-fonts-loaded": n(R)(l.value)
|
|
2879
2894
|
}, [
|
|
2880
|
-
|
|
2895
|
+
F(i.$slots, "header"),
|
|
2881
2896
|
E("main", {
|
|
2882
2897
|
class: q(n(O)("db-main", e.mainClass))
|
|
2883
2898
|
}, [
|
|
2884
|
-
|
|
2899
|
+
F(i.$slots, "default")
|
|
2885
2900
|
], 2),
|
|
2886
|
-
|
|
2887
|
-
], 10,
|
|
2901
|
+
F(i.$slots, "footer")
|
|
2902
|
+
], 10, bi));
|
|
2888
2903
|
}
|
|
2889
|
-
}),
|
|
2904
|
+
}), Kl = ["auto", "fixed"], Yl = ["hidden", "auto"], yi = ["id"], ki = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Jl = /* @__PURE__ */ G({
|
|
2890
2905
|
name: "DBPopover",
|
|
2891
2906
|
__name: "popover",
|
|
2892
2907
|
props: {
|
|
@@ -2905,7 +2920,7 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2905
2920
|
width: { default: void 0 }
|
|
2906
2921
|
},
|
|
2907
2922
|
setup(e) {
|
|
2908
|
-
const
|
|
2923
|
+
const a = e, l = o(!1), t = o(!1), i = o(void 0), c = o(void 0), u = o(null);
|
|
2909
2924
|
Q(() => {
|
|
2910
2925
|
l.value = !0;
|
|
2911
2926
|
}), C(
|
|
@@ -2913,17 +2928,17 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2913
2928
|
() => {
|
|
2914
2929
|
if (u.value && l.value) {
|
|
2915
2930
|
l.value = !1;
|
|
2916
|
-
const s =
|
|
2931
|
+
const s = w();
|
|
2917
2932
|
s && (s.ariaHasPopup = "true"), m(), u.value.addEventListener(
|
|
2918
2933
|
"keydown",
|
|
2919
|
-
(d) =>
|
|
2934
|
+
(d) => v(d)
|
|
2920
2935
|
), ["mouseenter", "focusin"].forEach((d) => {
|
|
2921
2936
|
u.value.addEventListener(d, () => k());
|
|
2922
2937
|
}), ["mouseleave", "focusout"].forEach((d) => {
|
|
2923
2938
|
u.value.addEventListener(d, () => $());
|
|
2924
2939
|
}), typeof window < "u" && "IntersectionObserver" in window && (c.value = new IntersectionObserver((d) => {
|
|
2925
|
-
const
|
|
2926
|
-
|
|
2940
|
+
const S = d.find(({ target: y }) => y === w());
|
|
2941
|
+
S && !S.isIntersecting && v(!1);
|
|
2927
2942
|
}));
|
|
2928
2943
|
}
|
|
2929
2944
|
},
|
|
@@ -2932,11 +2947,11 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2932
2947
|
flush: "post"
|
|
2933
2948
|
}
|
|
2934
2949
|
), C(
|
|
2935
|
-
() => [u.value,
|
|
2950
|
+
() => [u.value, t.value],
|
|
2936
2951
|
() => {
|
|
2937
2952
|
if (u.value) {
|
|
2938
|
-
const s =
|
|
2939
|
-
s && (s.ariaExpanded = (!!
|
|
2953
|
+
const s = w();
|
|
2954
|
+
s && (s.ariaExpanded = (!!t.value).toString());
|
|
2940
2955
|
}
|
|
2941
2956
|
},
|
|
2942
2957
|
{
|
|
@@ -2944,7 +2959,7 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2944
2959
|
flush: "post"
|
|
2945
2960
|
}
|
|
2946
2961
|
);
|
|
2947
|
-
function
|
|
2962
|
+
function v(s) {
|
|
2948
2963
|
if (!s || s.key === "Escape")
|
|
2949
2964
|
for (const d of Array.from(u.value.children))
|
|
2950
2965
|
d.blur();
|
|
@@ -2953,33 +2968,33 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2953
2968
|
if (!u.value) return;
|
|
2954
2969
|
const s = u.value.querySelector("article");
|
|
2955
2970
|
s && Y(() => {
|
|
2956
|
-
|
|
2971
|
+
ct(
|
|
2957
2972
|
s,
|
|
2958
2973
|
u.value,
|
|
2959
|
-
|
|
2974
|
+
a.placement ?? "bottom"
|
|
2960
2975
|
);
|
|
2961
2976
|
}, 1);
|
|
2962
2977
|
}
|
|
2963
|
-
function
|
|
2978
|
+
function f(s) {
|
|
2964
2979
|
s?.target?.contains && s?.target?.contains(u.value) && m();
|
|
2965
2980
|
}
|
|
2966
2981
|
function k() {
|
|
2967
|
-
|
|
2968
|
-
(d) =>
|
|
2982
|
+
t.value = !0, i.value = new de().addCallback(
|
|
2983
|
+
(d) => f(d)
|
|
2969
2984
|
), m();
|
|
2970
|
-
const s =
|
|
2985
|
+
const s = w();
|
|
2971
2986
|
s && c.value?.observe(s);
|
|
2972
2987
|
}
|
|
2973
2988
|
function $(s) {
|
|
2974
2989
|
{
|
|
2975
|
-
|
|
2990
|
+
t.value = !1, i.value && new de().removeCallback(
|
|
2976
2991
|
i.value
|
|
2977
2992
|
);
|
|
2978
|
-
const d =
|
|
2993
|
+
const d = w();
|
|
2979
2994
|
d && c.value?.unobserve(d);
|
|
2980
2995
|
}
|
|
2981
2996
|
}
|
|
2982
|
-
function
|
|
2997
|
+
function w() {
|
|
2983
2998
|
if (u.value) {
|
|
2984
2999
|
const s = Array.from(u.value.children);
|
|
2985
3000
|
if (s.length >= 2) {
|
|
@@ -2989,13 +3004,13 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2989
3004
|
}
|
|
2990
3005
|
return null;
|
|
2991
3006
|
}
|
|
2992
|
-
return (s, d) => (
|
|
3007
|
+
return (s, d) => (h(), b("div", {
|
|
2993
3008
|
ref_key: "_ref",
|
|
2994
3009
|
ref: u,
|
|
2995
3010
|
id: e.id,
|
|
2996
|
-
class: q(n(O)("db-popover",
|
|
3011
|
+
class: q(n(O)("db-popover", a.class))
|
|
2997
3012
|
}, [
|
|
2998
|
-
|
|
3013
|
+
F(s.$slots, "trigger"),
|
|
2999
3014
|
E("article", {
|
|
3000
3015
|
class: "db-popover-content",
|
|
3001
3016
|
"data-spacing": e.spacing,
|
|
@@ -3006,11 +3021,11 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3006
3021
|
"data-width": e.width,
|
|
3007
3022
|
"data-placement": e.placement
|
|
3008
3023
|
}, [
|
|
3009
|
-
|
|
3010
|
-
], 8,
|
|
3011
|
-
], 10,
|
|
3024
|
+
F(s.$slots, "default")
|
|
3025
|
+
], 8, ki)
|
|
3026
|
+
], 10, yi));
|
|
3012
3027
|
}
|
|
3013
|
-
}),
|
|
3028
|
+
}), wi = ["data-size", "data-hide-label", "data-hide-asterisk", "for"], Bi = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required"], Ql = /* @__PURE__ */ G({
|
|
3014
3029
|
name: "DBRadio",
|
|
3015
3030
|
__name: "radio",
|
|
3016
3031
|
props: {
|
|
@@ -3041,31 +3056,31 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3041
3056
|
size: { default: void 0 }
|
|
3042
3057
|
},
|
|
3043
3058
|
emits: ["update:value"],
|
|
3044
|
-
setup(e, { emit:
|
|
3045
|
-
const l =
|
|
3059
|
+
setup(e, { emit: a }) {
|
|
3060
|
+
const l = a, t = e, i = o(!1), c = o(void 0), u = o(void 0), v = o(null);
|
|
3046
3061
|
Q(() => {
|
|
3047
|
-
i.value = !0, c.value =
|
|
3062
|
+
i.value = !0, c.value = t.id ?? `radio-${te()}`;
|
|
3048
3063
|
}), me(() => {
|
|
3049
3064
|
u.value?.abort();
|
|
3050
3065
|
}), C(
|
|
3051
|
-
() => [i.value,
|
|
3066
|
+
() => [i.value, v.value, t.checked],
|
|
3052
3067
|
() => {
|
|
3053
|
-
|
|
3068
|
+
t.checked && i.value && v.value && (v.value.checked = !0);
|
|
3054
3069
|
},
|
|
3055
3070
|
{
|
|
3056
3071
|
immediate: !0,
|
|
3057
3072
|
flush: "post"
|
|
3058
3073
|
}
|
|
3059
3074
|
), C(
|
|
3060
|
-
() => [
|
|
3075
|
+
() => [v.value],
|
|
3061
3076
|
() => {
|
|
3062
|
-
if (
|
|
3063
|
-
let
|
|
3064
|
-
|
|
3065
|
-
|
|
3077
|
+
if (v.value) {
|
|
3078
|
+
let w = u.value;
|
|
3079
|
+
w || (w = new AbortController(), u.value = w), Ne(
|
|
3080
|
+
v.value,
|
|
3066
3081
|
(s) => {
|
|
3067
3082
|
Y(() => {
|
|
3068
|
-
const d =
|
|
3083
|
+
const d = t.checked ? t.checked : v.value.checked, S = {
|
|
3069
3084
|
...s,
|
|
3070
3085
|
target: {
|
|
3071
3086
|
...s.target,
|
|
@@ -3073,10 +3088,10 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3073
3088
|
checked: d
|
|
3074
3089
|
}
|
|
3075
3090
|
};
|
|
3076
|
-
|
|
3091
|
+
f(S), m(S);
|
|
3077
3092
|
}, 1);
|
|
3078
3093
|
},
|
|
3079
|
-
|
|
3094
|
+
w.signal
|
|
3080
3095
|
);
|
|
3081
3096
|
}
|
|
3082
3097
|
},
|
|
@@ -3085,23 +3100,23 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3085
3100
|
flush: "post"
|
|
3086
3101
|
}
|
|
3087
3102
|
);
|
|
3088
|
-
function m(
|
|
3089
|
-
|
|
3103
|
+
function m(w, s) {
|
|
3104
|
+
t.input && t.input(w), t.onInput && t.onInput(w), se(l, w);
|
|
3090
3105
|
}
|
|
3091
|
-
function
|
|
3092
|
-
|
|
3106
|
+
function f(w, s) {
|
|
3107
|
+
t.onChange && t.onChange(w), se(l, w);
|
|
3093
3108
|
}
|
|
3094
|
-
function k(
|
|
3095
|
-
|
|
3109
|
+
function k(w) {
|
|
3110
|
+
t.onBlur && t.onBlur(w);
|
|
3096
3111
|
}
|
|
3097
|
-
function $(
|
|
3098
|
-
|
|
3112
|
+
function $(w) {
|
|
3113
|
+
t.onFocus && t.onFocus(w);
|
|
3099
3114
|
}
|
|
3100
|
-
return (
|
|
3115
|
+
return (w, s) => (h(), b("label", {
|
|
3101
3116
|
"data-size": e.size,
|
|
3102
3117
|
"data-hide-label": n(oe)(e.showLabel),
|
|
3103
3118
|
"data-hide-asterisk": n(oe)(e.showRequiredAsterisk),
|
|
3104
|
-
class: q(n(O)("db-radio",
|
|
3119
|
+
class: q(n(O)("db-radio", t.class)),
|
|
3105
3120
|
for: c.value
|
|
3106
3121
|
}, [
|
|
3107
3122
|
E("input", {
|
|
@@ -3109,7 +3124,7 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3109
3124
|
"aria-invalid": e.validation === "invalid",
|
|
3110
3125
|
"data-custom-validity": e.validation,
|
|
3111
3126
|
ref_key: "_ref",
|
|
3112
|
-
ref:
|
|
3127
|
+
ref: v,
|
|
3113
3128
|
id: c.value,
|
|
3114
3129
|
name: e.name,
|
|
3115
3130
|
checked: n(V)(e.checked, "checked"),
|
|
@@ -3117,16 +3132,16 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3117
3132
|
value: e.value,
|
|
3118
3133
|
required: n(V)(e.required, "required"),
|
|
3119
3134
|
onInput: s[0] || (s[0] = async (d) => m(d)),
|
|
3120
|
-
onChange: s[1] || (s[1] = async (d) =>
|
|
3135
|
+
onChange: s[1] || (s[1] = async (d) => f(d)),
|
|
3121
3136
|
onBlur: s[2] || (s[2] = async (d) => k(d)),
|
|
3122
3137
|
onFocus: s[3] || (s[3] = async (d) => $(d))
|
|
3123
|
-
}, null, 40,
|
|
3124
|
-
e.label ? (
|
|
3125
|
-
D(
|
|
3126
|
-
], 64)) :
|
|
3127
|
-
], 10,
|
|
3138
|
+
}, null, 40, Bi),
|
|
3139
|
+
e.label ? (h(), b(W, { key: 0 }, [
|
|
3140
|
+
D(L(e.label), 1)
|
|
3141
|
+
], 64)) : F(w.$slots, "default", { key: 1 })
|
|
3142
|
+
], 10, wi));
|
|
3128
3143
|
}
|
|
3129
|
-
}),
|
|
3144
|
+
}), Si = ["id", "data-spacing", "data-width"], Zl = /* @__PURE__ */ G({
|
|
3130
3145
|
name: "DBSection",
|
|
3131
3146
|
__name: "section",
|
|
3132
3147
|
props: {
|
|
@@ -3139,22 +3154,22 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3139
3154
|
width: { default: void 0 }
|
|
3140
3155
|
},
|
|
3141
3156
|
setup(e) {
|
|
3142
|
-
const
|
|
3143
|
-
return (
|
|
3157
|
+
const a = e, l = o(null);
|
|
3158
|
+
return (t, i) => (h(), b("section", {
|
|
3144
3159
|
ref_key: "_ref",
|
|
3145
3160
|
ref: l,
|
|
3146
3161
|
id: e.id,
|
|
3147
|
-
class: q(n(O)("db-section",
|
|
3162
|
+
class: q(n(O)("db-section", a.class)),
|
|
3148
3163
|
"data-spacing": e.spacing || "medium",
|
|
3149
3164
|
"data-width": e.width
|
|
3150
3165
|
}, [
|
|
3151
|
-
|
|
3152
|
-
], 10,
|
|
3166
|
+
F(t.$slots, "default")
|
|
3167
|
+
], 10, Si));
|
|
3153
3168
|
}
|
|
3154
|
-
}),
|
|
3169
|
+
}), pi = ["data-variant", "data-hide-label", "data-hide-asterisk", "data-icon", "data-show-icon"], Li = ["for"], Ii = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], xi = ["data-show-empty-option"], Ti = ["label"], $i = ["value", "selected", "disabled"], Ci = ["value", "disabled", "selected"], Ei = ["id"], Ai = {
|
|
3155
3170
|
"data-visually-hidden": "true",
|
|
3156
3171
|
role: "status"
|
|
3157
|
-
},
|
|
3172
|
+
}, _l = /* @__PURE__ */ G({
|
|
3158
3173
|
name: "DBSelect",
|
|
3159
3174
|
__name: "select",
|
|
3160
3175
|
props: {
|
|
@@ -3199,29 +3214,29 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3199
3214
|
size: { default: void 0 }
|
|
3200
3215
|
},
|
|
3201
3216
|
emits: ["update:value"],
|
|
3202
|
-
setup(e, { emit:
|
|
3203
|
-
const l =
|
|
3217
|
+
setup(e, { emit: a }) {
|
|
3218
|
+
const l = a, t = e, i = o(void 0), c = o(void 0), u = o(void 0), v = o(void 0), m = o(void 0), f = o(""), k = o(void 0), $ = o(""), w = o(!1), s = o(""), d = o(void 0), S = o(null);
|
|
3204
3219
|
Q(() => {
|
|
3205
|
-
|
|
3206
|
-
const A =
|
|
3207
|
-
i.value = A, c.value = A + re, u.value = A + ve,
|
|
3220
|
+
w.value = !0;
|
|
3221
|
+
const A = t.id ?? `select-${te()}`;
|
|
3222
|
+
i.value = A, c.value = A + re, u.value = A + ve, v.value = A + fe, f.value = A + Fe, m.value = t.invalidMessage || ae;
|
|
3208
3223
|
}), me(() => {
|
|
3209
3224
|
d.value?.abort();
|
|
3210
3225
|
}), C(
|
|
3211
|
-
() => [
|
|
3226
|
+
() => [S.value, t.invalidMessage],
|
|
3212
3227
|
() => {
|
|
3213
|
-
m.value =
|
|
3228
|
+
m.value = t.invalidMessage || S.value?.validationMessage || ae;
|
|
3214
3229
|
},
|
|
3215
3230
|
{
|
|
3216
3231
|
immediate: !0,
|
|
3217
3232
|
flush: "post"
|
|
3218
3233
|
}
|
|
3219
3234
|
), C(
|
|
3220
|
-
() => [i.value,
|
|
3235
|
+
() => [i.value, w.value],
|
|
3221
3236
|
() => {
|
|
3222
|
-
if (i.value &&
|
|
3237
|
+
if (i.value && w.value) {
|
|
3223
3238
|
const A = i.value + re, K = i.value + Fe;
|
|
3224
|
-
c.value = A, u.value = i.value + ve,
|
|
3239
|
+
c.value = A, u.value = i.value + ve, v.value = i.value + fe, f.value = K, ee(t.message, t.showMessage) ? k.value = A : t.placeholder ? k.value = K : k.value = void 0, x(), w.value = !1;
|
|
3225
3240
|
}
|
|
3226
3241
|
},
|
|
3227
3242
|
{
|
|
@@ -3229,27 +3244,27 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3229
3244
|
flush: "post"
|
|
3230
3245
|
}
|
|
3231
3246
|
), C(
|
|
3232
|
-
() => [
|
|
3247
|
+
() => [t.value],
|
|
3233
3248
|
() => {
|
|
3234
|
-
$.value =
|
|
3249
|
+
$.value = t.value;
|
|
3235
3250
|
},
|
|
3236
3251
|
{
|
|
3237
3252
|
immediate: !0,
|
|
3238
3253
|
flush: "post"
|
|
3239
3254
|
}
|
|
3240
3255
|
), C(
|
|
3241
|
-
() => [
|
|
3256
|
+
() => [S.value],
|
|
3242
3257
|
() => {
|
|
3243
|
-
if (
|
|
3258
|
+
if (S.value) {
|
|
3244
3259
|
let j = d.value;
|
|
3245
|
-
j || (j = new AbortController(), d.value = j),
|
|
3246
|
-
|
|
3260
|
+
j || (j = new AbortController(), d.value = j), Ge(
|
|
3261
|
+
S.value,
|
|
3247
3262
|
{
|
|
3248
|
-
value:
|
|
3263
|
+
value: t.value,
|
|
3249
3264
|
defaultValue: void 0
|
|
3250
3265
|
},
|
|
3251
3266
|
(be) => {
|
|
3252
|
-
|
|
3267
|
+
p(be), g(be);
|
|
3253
3268
|
},
|
|
3254
3269
|
j.signal
|
|
3255
3270
|
);
|
|
@@ -3260,47 +3275,47 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3260
3275
|
flush: "post"
|
|
3261
3276
|
}
|
|
3262
3277
|
);
|
|
3263
|
-
function
|
|
3264
|
-
return !!(
|
|
3278
|
+
function y() {
|
|
3279
|
+
return !!(t.validMessage ?? t.validation === "valid");
|
|
3265
3280
|
}
|
|
3266
|
-
function
|
|
3267
|
-
!
|
|
3281
|
+
function x() {
|
|
3282
|
+
!S.value?.validity.valid || t.validation === "invalid" ? (k.value = v.value, m.value = t.invalidMessage || S.value?.validationMessage || ae, ce() && (s.value = m.value, Y(() => s.value = "", 1e3))) : y() && S.value?.validity.valid && t.required ? (k.value = u.value, ce() && (s.value = t.validMessage ?? ue, Y(() => s.value = "", 1e3))) : ee(t.message, t.showMessage) ? k.value = c.value : t.placeholder ? k.value = f.value : k.value = void 0;
|
|
3268
3283
|
}
|
|
3269
|
-
function
|
|
3270
|
-
|
|
3284
|
+
function B(A) {
|
|
3285
|
+
t.onClick && t.onClick(A);
|
|
3271
3286
|
}
|
|
3272
|
-
function
|
|
3273
|
-
|
|
3287
|
+
function g(A, K) {
|
|
3288
|
+
t.input && t.input(A), $.value = A.target.value, t.onInput && t.onInput(A), se(l, A), x();
|
|
3274
3289
|
}
|
|
3275
|
-
function
|
|
3276
|
-
|
|
3290
|
+
function p(A, K) {
|
|
3291
|
+
t.onChange && t.onChange(A), se(l, A), x();
|
|
3277
3292
|
}
|
|
3278
3293
|
function N(A) {
|
|
3279
|
-
|
|
3294
|
+
t.onBlur && t.onBlur(A);
|
|
3280
3295
|
}
|
|
3281
|
-
function
|
|
3282
|
-
|
|
3296
|
+
function M(A) {
|
|
3297
|
+
t.onFocus && t.onFocus(A);
|
|
3283
3298
|
}
|
|
3284
3299
|
function H(A) {
|
|
3285
3300
|
return A.label ?? A.value?.toString();
|
|
3286
3301
|
}
|
|
3287
3302
|
function X() {
|
|
3288
|
-
return
|
|
3303
|
+
return t.variant === "floating" || !!t.placeholder ? t.showEmptyOption !== void 0 ? t.showEmptyOption : !t.required : !1;
|
|
3289
3304
|
}
|
|
3290
|
-
return (A, K) => (
|
|
3291
|
-
class: q(n(O)("db-select",
|
|
3305
|
+
return (A, K) => (h(), b("div", {
|
|
3306
|
+
class: q(n(O)("db-select", t.class)),
|
|
3292
3307
|
"data-variant": e.variant,
|
|
3293
3308
|
"data-hide-label": n(oe)(e.showLabel),
|
|
3294
3309
|
"data-hide-asterisk": n(oe)(e.showRequiredAsterisk),
|
|
3295
3310
|
"data-icon": e.icon,
|
|
3296
3311
|
"data-show-icon": n(R)(e.showIcon)
|
|
3297
3312
|
}, [
|
|
3298
|
-
E("label", { for: i.value },
|
|
3313
|
+
E("label", { for: i.value }, L(e.label ?? n(ke)), 9, Li),
|
|
3299
3314
|
E("select", {
|
|
3300
3315
|
"aria-invalid": e.validation === "invalid",
|
|
3301
3316
|
"data-custom-validity": e.validation,
|
|
3302
3317
|
ref_key: "_ref",
|
|
3303
|
-
ref:
|
|
3318
|
+
ref: S,
|
|
3304
3319
|
required: n(V)(e.required, "required"),
|
|
3305
3320
|
disabled: n(V)(e.disabled, "disabled"),
|
|
3306
3321
|
id: i.value,
|
|
@@ -3309,79 +3324,79 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3309
3324
|
value: e.value ?? $.value,
|
|
3310
3325
|
autocomplete: e.autocomplete,
|
|
3311
3326
|
multiple: e.multiple,
|
|
3312
|
-
onInput: K[0] || (K[0] = async (j) =>
|
|
3313
|
-
onClick: K[1] || (K[1] = async (j) =>
|
|
3314
|
-
onChange: K[2] || (K[2] = async (j) =>
|
|
3327
|
+
onInput: K[0] || (K[0] = async (j) => g(j)),
|
|
3328
|
+
onClick: K[1] || (K[1] = async (j) => B(j)),
|
|
3329
|
+
onChange: K[2] || (K[2] = async (j) => p(j)),
|
|
3315
3330
|
onBlur: K[3] || (K[3] = async (j) => N(j)),
|
|
3316
|
-
onFocus: K[4] || (K[4] = async (j) =>
|
|
3331
|
+
onFocus: K[4] || (K[4] = async (j) => M(j)),
|
|
3317
3332
|
"aria-describedby": e.ariaDescribedBy ?? k.value
|
|
3318
3333
|
}, [
|
|
3319
|
-
e.variant === "floating" || e.placeholder ? (
|
|
3334
|
+
e.variant === "floating" || e.placeholder ? (h(), b("option", {
|
|
3320
3335
|
key: 0,
|
|
3321
3336
|
class: "placeholder",
|
|
3322
3337
|
value: "",
|
|
3323
3338
|
"data-show-empty-option": n(R)(X())
|
|
3324
|
-
}, null, 8,
|
|
3325
|
-
e.options?.length ? (
|
|
3326
|
-
j.options ? (
|
|
3339
|
+
}, null, 8, xi)) : z("", !0),
|
|
3340
|
+
e.options?.length ? (h(!0), b(W, { key: 1 }, ge(e.options, (j, be) => (h(), b(W, { key: be }, [
|
|
3341
|
+
j.options ? (h(), b("optgroup", {
|
|
3327
3342
|
key: 0,
|
|
3328
3343
|
label: H(j)
|
|
3329
3344
|
}, [
|
|
3330
|
-
(
|
|
3345
|
+
(h(!0), b(W, null, ge(j.options, (Be, xe) => (h(), b("option", {
|
|
3331
3346
|
key: xe,
|
|
3332
3347
|
value: Be.value,
|
|
3333
3348
|
selected: Be.selected,
|
|
3334
3349
|
disabled: Be.disabled
|
|
3335
|
-
},
|
|
3336
|
-
], 8,
|
|
3350
|
+
}, L(H(Be)), 9, $i))), 128))
|
|
3351
|
+
], 8, Ti)) : (h(), b("option", {
|
|
3337
3352
|
key: 1,
|
|
3338
3353
|
value: j.value,
|
|
3339
3354
|
disabled: j.disabled,
|
|
3340
3355
|
selected: j.selected
|
|
3341
|
-
},
|
|
3342
|
-
], 64))), 128)) :
|
|
3343
|
-
], 40,
|
|
3344
|
-
e.placeholder ? (
|
|
3356
|
+
}, L(H(j)), 9, Ci))
|
|
3357
|
+
], 64))), 128)) : F(A.$slots, "default", { key: 2 })
|
|
3358
|
+
], 40, Ii),
|
|
3359
|
+
e.placeholder ? (h(), b("span", {
|
|
3345
3360
|
key: 0,
|
|
3346
3361
|
class: "db-select-placeholder",
|
|
3347
|
-
id:
|
|
3348
|
-
},
|
|
3349
|
-
n(ee)(e.message, e.showMessage) ? (
|
|
3362
|
+
id: f.value
|
|
3363
|
+
}, L(e.placeholder), 9, Ei)) : z("", !0),
|
|
3364
|
+
n(ee)(e.message, e.showMessage) ? (h(), J(_, {
|
|
3350
3365
|
key: 1,
|
|
3351
3366
|
size: "small",
|
|
3352
3367
|
icon: e.messageIcon,
|
|
3353
3368
|
id: c.value
|
|
3354
3369
|
}, {
|
|
3355
3370
|
default: U(() => [
|
|
3356
|
-
D(
|
|
3371
|
+
D(L(e.message), 1)
|
|
3357
3372
|
]),
|
|
3358
3373
|
_: 1
|
|
3359
3374
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
3360
|
-
|
|
3375
|
+
y() ? (h(), J(_, {
|
|
3361
3376
|
key: 2,
|
|
3362
3377
|
size: "small",
|
|
3363
3378
|
semantic: "successful",
|
|
3364
3379
|
id: u.value
|
|
3365
3380
|
}, {
|
|
3366
3381
|
default: U(() => [
|
|
3367
|
-
D(
|
|
3382
|
+
D(L(e.validMessage || n(ue)), 1)
|
|
3368
3383
|
]),
|
|
3369
3384
|
_: 1
|
|
3370
3385
|
}, 8, ["id"])) : z("", !0),
|
|
3371
3386
|
ie(_, {
|
|
3372
3387
|
size: "small",
|
|
3373
3388
|
semantic: "critical",
|
|
3374
|
-
id:
|
|
3389
|
+
id: v.value
|
|
3375
3390
|
}, {
|
|
3376
3391
|
default: U(() => [
|
|
3377
|
-
D(
|
|
3392
|
+
D(L(m.value), 1)
|
|
3378
3393
|
]),
|
|
3379
3394
|
_: 1
|
|
3380
3395
|
}, 8, ["id"]),
|
|
3381
|
-
E("span",
|
|
3382
|
-
], 10,
|
|
3396
|
+
E("span", Ai, L(s.value), 1)
|
|
3397
|
+
], 10, pi));
|
|
3383
3398
|
}
|
|
3384
|
-
}),
|
|
3399
|
+
}), Di = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], en = /* @__PURE__ */ G({
|
|
3385
3400
|
name: "DBStack",
|
|
3386
3401
|
__name: "stack",
|
|
3387
3402
|
props: {
|
|
@@ -3398,12 +3413,12 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3398
3413
|
gap: { default: void 0 }
|
|
3399
3414
|
},
|
|
3400
3415
|
setup(e) {
|
|
3401
|
-
const
|
|
3402
|
-
return (
|
|
3416
|
+
const a = e, l = o(null);
|
|
3417
|
+
return (t, i) => (h(), b("div", {
|
|
3403
3418
|
ref_key: "_ref",
|
|
3404
3419
|
ref: l,
|
|
3405
3420
|
id: e.id,
|
|
3406
|
-
class: q(n(O)("db-stack",
|
|
3421
|
+
class: q(n(O)("db-stack", a.class)),
|
|
3407
3422
|
"data-gap": e.gap,
|
|
3408
3423
|
"data-variant": e.variant,
|
|
3409
3424
|
"data-direction": e.direction,
|
|
@@ -3411,13 +3426,13 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3411
3426
|
"data-justify-content": e.justifyContent,
|
|
3412
3427
|
"data-wrap": n(R)(e.wrap)
|
|
3413
3428
|
}, [
|
|
3414
|
-
|
|
3415
|
-
], 10,
|
|
3429
|
+
F(t.$slots, "default")
|
|
3430
|
+
], 10, Di));
|
|
3416
3431
|
}
|
|
3417
|
-
}),
|
|
3432
|
+
}), tn = ["simple", "divider"], an = ["row", "column"], ln = ["stretch", "start", "end", "center"], nn = ["space-between", "start", "end", "center"], Mi = ["data-visual-aid", "data-size", "data-hide-label", "data-variant", "data-hide-asterisk", "data-custom-validity"], Fi = ["for"], Ni = ["id", "checked", "value", "disabled", "aria-invalid", "aria-describedby", "name", "required", "data-aid-icon", "data-aid-icon-trailing"], Ri = {
|
|
3418
3433
|
"data-visually-hidden": "true",
|
|
3419
3434
|
role: "status"
|
|
3420
|
-
},
|
|
3435
|
+
}, on = /* @__PURE__ */ G({
|
|
3421
3436
|
name: "DBSwitch",
|
|
3422
3437
|
__name: "switch",
|
|
3423
3438
|
props: {
|
|
@@ -3458,21 +3473,21 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3458
3473
|
visualAid: { type: [Boolean, String], default: void 0 }
|
|
3459
3474
|
},
|
|
3460
3475
|
emits: ["update:checked"],
|
|
3461
|
-
setup(e, { emit:
|
|
3462
|
-
const l =
|
|
3476
|
+
setup(e, { emit: a }) {
|
|
3477
|
+
const l = a, t = e, i = o(void 0), c = o(void 0), u = o(void 0), v = o(void 0), m = o(void 0), f = o(void 0), k = o(""), $ = o(void 0), w = o(null);
|
|
3463
3478
|
Q(() => {
|
|
3464
|
-
i.value =
|
|
3479
|
+
i.value = t.id ?? `switch-${te()}`, c.value = `${i.value}${re}`, u.value = `${i.value}${ve}`, v.value = `${i.value}${fe}`, d();
|
|
3465
3480
|
}), me(() => {
|
|
3466
3481
|
$.value?.abort();
|
|
3467
3482
|
}), C(
|
|
3468
3483
|
() => [
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3484
|
+
t.validation,
|
|
3485
|
+
t.required,
|
|
3486
|
+
t.message,
|
|
3487
|
+
t.showMessage,
|
|
3488
|
+
t.validMessage,
|
|
3489
|
+
t.invalidMessage,
|
|
3490
|
+
t.checked
|
|
3476
3491
|
],
|
|
3477
3492
|
() => {
|
|
3478
3493
|
d();
|
|
@@ -3482,20 +3497,20 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3482
3497
|
flush: "post"
|
|
3483
3498
|
}
|
|
3484
3499
|
), C(
|
|
3485
|
-
() => [
|
|
3500
|
+
() => [w.value],
|
|
3486
3501
|
() => {
|
|
3487
|
-
if (
|
|
3488
|
-
let
|
|
3489
|
-
|
|
3490
|
-
|
|
3502
|
+
if (w.value) {
|
|
3503
|
+
let p = $.value;
|
|
3504
|
+
p || (p = new AbortController(), $.value = p), st(
|
|
3505
|
+
w.value,
|
|
3491
3506
|
{
|
|
3492
|
-
checked:
|
|
3507
|
+
checked: t.checked,
|
|
3493
3508
|
defaultChecked: void 0
|
|
3494
3509
|
},
|
|
3495
3510
|
(N) => {
|
|
3496
|
-
|
|
3511
|
+
S(N);
|
|
3497
3512
|
},
|
|
3498
|
-
|
|
3513
|
+
p.signal
|
|
3499
3514
|
);
|
|
3500
3515
|
}
|
|
3501
3516
|
},
|
|
@@ -3505,47 +3520,47 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3505
3520
|
}
|
|
3506
3521
|
);
|
|
3507
3522
|
function s() {
|
|
3508
|
-
return !!(
|
|
3523
|
+
return !!(t.validMessage ?? t.validation === "valid");
|
|
3509
3524
|
}
|
|
3510
3525
|
function d() {
|
|
3511
|
-
if (!
|
|
3512
|
-
|
|
3526
|
+
if (!w.value?.validity?.valid || t.validation === "invalid") {
|
|
3527
|
+
f.value = v.value, m.value = t.invalidMessage || w.value?.validationMessage || ae, ce() && (k.value = m.value || ae, Y(() => {
|
|
3513
3528
|
k.value = "";
|
|
3514
3529
|
}, 1e3));
|
|
3515
3530
|
return;
|
|
3516
3531
|
}
|
|
3517
|
-
if (s() &&
|
|
3518
|
-
|
|
3532
|
+
if (s() && w.value?.validity?.valid && t.required) {
|
|
3533
|
+
f.value = u.value, ce() && (k.value = t.validMessage ?? ue, Y(() => {
|
|
3519
3534
|
k.value = "";
|
|
3520
3535
|
}, 1e3));
|
|
3521
3536
|
return;
|
|
3522
3537
|
}
|
|
3523
|
-
if (ee(
|
|
3524
|
-
|
|
3538
|
+
if (ee(t.message, t.showMessage)) {
|
|
3539
|
+
f.value = c.value;
|
|
3525
3540
|
return;
|
|
3526
3541
|
}
|
|
3527
|
-
|
|
3542
|
+
f.value = void 0;
|
|
3528
3543
|
}
|
|
3529
|
-
function
|
|
3530
|
-
|
|
3544
|
+
function S(g, p) {
|
|
3545
|
+
t.onChange && t.onChange(g), d(), se(l, g, "checked");
|
|
3531
3546
|
}
|
|
3532
|
-
function
|
|
3533
|
-
|
|
3547
|
+
function y(g) {
|
|
3548
|
+
t.onBlur && t.onBlur(g);
|
|
3534
3549
|
}
|
|
3535
|
-
function
|
|
3536
|
-
|
|
3550
|
+
function x(g) {
|
|
3551
|
+
t.onFocus && t.onFocus(g);
|
|
3537
3552
|
}
|
|
3538
|
-
function
|
|
3539
|
-
|
|
3553
|
+
function B(g) {
|
|
3554
|
+
g.key === "Enter" && (g.preventDefault(), t.disabled || w.value?.click());
|
|
3540
3555
|
}
|
|
3541
|
-
return (
|
|
3556
|
+
return (g, p) => (h(), b("div", {
|
|
3542
3557
|
"data-visual-aid": n(R)(e.visualAid),
|
|
3543
3558
|
"data-size": e.size,
|
|
3544
3559
|
"data-hide-label": n(oe)(e.showLabel),
|
|
3545
3560
|
"data-variant": e.variant,
|
|
3546
3561
|
"data-hide-asterisk": n(oe)(e.showRequiredAsterisk),
|
|
3547
3562
|
"data-custom-validity": e.validation,
|
|
3548
|
-
class: q(n(O)("db-switch",
|
|
3563
|
+
class: q(n(O)("db-switch", t.class))
|
|
3549
3564
|
}, [
|
|
3550
3565
|
E("label", { for: i.value }, [
|
|
3551
3566
|
E("input", {
|
|
@@ -3553,26 +3568,26 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3553
3568
|
role: "switch",
|
|
3554
3569
|
id: i.value,
|
|
3555
3570
|
ref_key: "_ref",
|
|
3556
|
-
ref:
|
|
3571
|
+
ref: w,
|
|
3557
3572
|
checked: n(V)(e.checked, "checked"),
|
|
3558
3573
|
value: e.value,
|
|
3559
3574
|
disabled: n(V)(e.disabled, "disabled"),
|
|
3560
3575
|
"aria-invalid": e.validation === "invalid" ? "true" : void 0,
|
|
3561
|
-
"aria-describedby":
|
|
3576
|
+
"aria-describedby": f.value,
|
|
3562
3577
|
name: e.name,
|
|
3563
3578
|
required: n(V)(e.required, "required"),
|
|
3564
3579
|
"data-aid-icon": e.iconLeading ?? e.icon,
|
|
3565
3580
|
"data-aid-icon-trailing": e.iconTrailing,
|
|
3566
|
-
onChange:
|
|
3567
|
-
onBlur:
|
|
3568
|
-
onFocus:
|
|
3569
|
-
onKeydown:
|
|
3570
|
-
}, null, 40,
|
|
3571
|
-
e.label ? (
|
|
3572
|
-
D(
|
|
3573
|
-
], 64)) :
|
|
3574
|
-
], 8,
|
|
3575
|
-
n(ee)(e.message, e.showMessage) ? (
|
|
3581
|
+
onChange: p[0] || (p[0] = async (N) => S(N)),
|
|
3582
|
+
onBlur: p[1] || (p[1] = async (N) => y(N)),
|
|
3583
|
+
onFocus: p[2] || (p[2] = async (N) => x(N)),
|
|
3584
|
+
onKeydown: p[3] || (p[3] = async (N) => B(N))
|
|
3585
|
+
}, null, 40, Ni),
|
|
3586
|
+
e.label ? (h(), b(W, { key: 0 }, [
|
|
3587
|
+
D(L(e.label), 1)
|
|
3588
|
+
], 64)) : F(g.$slots, "default", { key: 1 })
|
|
3589
|
+
], 8, Fi),
|
|
3590
|
+
n(ee)(e.message, e.showMessage) ? (h(), J(_, {
|
|
3576
3591
|
key: 0,
|
|
3577
3592
|
size: "small",
|
|
3578
3593
|
semantic: "adaptive",
|
|
@@ -3580,35 +3595,35 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3580
3595
|
icon: e.messageIcon
|
|
3581
3596
|
}, {
|
|
3582
3597
|
default: U(() => [
|
|
3583
|
-
D(
|
|
3598
|
+
D(L(e.message), 1)
|
|
3584
3599
|
]),
|
|
3585
3600
|
_: 1
|
|
3586
3601
|
}, 8, ["id", "icon"])) : z("", !0),
|
|
3587
|
-
s() ? (
|
|
3602
|
+
s() ? (h(), J(_, {
|
|
3588
3603
|
key: 1,
|
|
3589
3604
|
size: "small",
|
|
3590
3605
|
semantic: "successful",
|
|
3591
3606
|
id: u.value
|
|
3592
3607
|
}, {
|
|
3593
3608
|
default: U(() => [
|
|
3594
|
-
D(
|
|
3609
|
+
D(L(e.validMessage ?? n(ue)), 1)
|
|
3595
3610
|
]),
|
|
3596
3611
|
_: 1
|
|
3597
3612
|
}, 8, ["id"])) : z("", !0),
|
|
3598
3613
|
ie(_, {
|
|
3599
3614
|
size: "small",
|
|
3600
3615
|
semantic: "critical",
|
|
3601
|
-
id:
|
|
3616
|
+
id: v.value
|
|
3602
3617
|
}, {
|
|
3603
3618
|
default: U(() => [
|
|
3604
|
-
D(
|
|
3619
|
+
D(L(m.value ?? e.invalidMessage ?? n(ae)), 1)
|
|
3605
3620
|
]),
|
|
3606
3621
|
_: 1
|
|
3607
3622
|
}, 8, ["id"]),
|
|
3608
|
-
E("span",
|
|
3609
|
-
], 10,
|
|
3623
|
+
E("span", Ri, L(k.value), 1)
|
|
3624
|
+
], 10, Mi));
|
|
3610
3625
|
}
|
|
3611
|
-
}),
|
|
3626
|
+
}), zi = ["for", "data-icon", "data-icon-trailing", "data-show-icon", "data-show-icon-trailing", "data-no-text"], Pi = ["disabled", "aria-selected", "checked", "name", "id"], Vi = /* @__PURE__ */ G({
|
|
3612
3627
|
name: "DBTabItem",
|
|
3613
3628
|
__name: "tab-item",
|
|
3614
3629
|
props: {
|
|
@@ -3633,40 +3648,40 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3633
3648
|
name: { default: void 0 }
|
|
3634
3649
|
},
|
|
3635
3650
|
emits: ["update:checked"],
|
|
3636
|
-
setup(e, { emit:
|
|
3637
|
-
const l =
|
|
3651
|
+
setup(e, { emit: a }) {
|
|
3652
|
+
const l = a, t = e, i = o(!1), c = o(void 0), u = o(!1), v = o(!1), m = o(void 0), f = o(null);
|
|
3638
3653
|
Q(() => {
|
|
3639
3654
|
m.value = k, u.value = !0;
|
|
3640
3655
|
}), me(() => {
|
|
3641
|
-
|
|
3656
|
+
v.value && f.value && m.value && (f.value.closest("[role=tablist]")?.removeEventListener("change", m.value), v.value = !1);
|
|
3642
3657
|
}), C(
|
|
3643
|
-
() => [
|
|
3658
|
+
() => [f.value, u.value, m.value],
|
|
3644
3659
|
() => {
|
|
3645
|
-
|
|
3660
|
+
f.value && u.value && m.value && (u.value = !1, v.value || (f.value.closest("[role=tablist]")?.addEventListener("change", m.value), v.value = !0), (t.active || f.value.checked) && (i.value = !0, f.value.click()));
|
|
3646
3661
|
},
|
|
3647
3662
|
{
|
|
3648
3663
|
immediate: !0,
|
|
3649
3664
|
flush: "post"
|
|
3650
3665
|
}
|
|
3651
3666
|
), C(
|
|
3652
|
-
() => [
|
|
3667
|
+
() => [t.name],
|
|
3653
3668
|
() => {
|
|
3654
|
-
|
|
3669
|
+
t.name && (c.value = t.name);
|
|
3655
3670
|
},
|
|
3656
3671
|
{
|
|
3657
3672
|
immediate: !0,
|
|
3658
3673
|
flush: "post"
|
|
3659
3674
|
}
|
|
3660
3675
|
);
|
|
3661
|
-
function k(
|
|
3662
|
-
|
|
3676
|
+
function k(w) {
|
|
3677
|
+
w.stopPropagation(), i.value = w.target === f.value;
|
|
3663
3678
|
}
|
|
3664
|
-
function $(
|
|
3665
|
-
|
|
3679
|
+
function $(w) {
|
|
3680
|
+
t.onChange && t.onChange(w), se(l, w, "checked");
|
|
3666
3681
|
}
|
|
3667
|
-
return (
|
|
3682
|
+
return (w, s) => (h(), b("li", {
|
|
3668
3683
|
role: "none",
|
|
3669
|
-
class: q(n(O)("db-tab-item",
|
|
3684
|
+
class: q(n(O)("db-tab-item", t.class))
|
|
3670
3685
|
}, [
|
|
3671
3686
|
E("label", {
|
|
3672
3687
|
for: e.id,
|
|
@@ -3683,19 +3698,19 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3683
3698
|
"aria-selected": i.value,
|
|
3684
3699
|
checked: n(V)(e.checked, "checked"),
|
|
3685
3700
|
ref_key: "_ref",
|
|
3686
|
-
ref:
|
|
3701
|
+
ref: f,
|
|
3687
3702
|
name: c.value,
|
|
3688
3703
|
id: e.id,
|
|
3689
3704
|
onInput: s[0] || (s[0] = async (d) => $(d))
|
|
3690
|
-
}, null, 40,
|
|
3691
|
-
e.label ? (
|
|
3692
|
-
D(
|
|
3705
|
+
}, null, 40, Pi),
|
|
3706
|
+
e.label ? (h(), b(W, { key: 0 }, [
|
|
3707
|
+
D(L(e.label), 1)
|
|
3693
3708
|
], 64)) : z("", !0),
|
|
3694
|
-
|
|
3695
|
-
], 8,
|
|
3709
|
+
F(w.$slots, "default")
|
|
3710
|
+
], 8, zi)
|
|
3696
3711
|
], 2));
|
|
3697
3712
|
}
|
|
3698
|
-
}),
|
|
3713
|
+
}), qi = ["id"], Oi = { role: "tablist" }, Ui = /* @__PURE__ */ G({
|
|
3699
3714
|
name: "DBTabList",
|
|
3700
3715
|
__name: "tab-list",
|
|
3701
3716
|
props: {
|
|
@@ -3706,21 +3721,21 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3706
3721
|
autofocus: { type: [Boolean, String] }
|
|
3707
3722
|
},
|
|
3708
3723
|
setup(e) {
|
|
3709
|
-
const
|
|
3724
|
+
const a = e, l = o(Ee), t = o(null);
|
|
3710
3725
|
return Q(() => {
|
|
3711
|
-
l.value =
|
|
3712
|
-
}), (i, c) => (
|
|
3726
|
+
l.value = a.id || "tab-list-" + te();
|
|
3727
|
+
}), (i, c) => (h(), b("div", {
|
|
3713
3728
|
ref_key: "_ref",
|
|
3714
|
-
ref:
|
|
3729
|
+
ref: t,
|
|
3715
3730
|
id: l.value,
|
|
3716
|
-
class: q(n(O)("db-tab-list",
|
|
3731
|
+
class: q(n(O)("db-tab-list", a.class))
|
|
3717
3732
|
}, [
|
|
3718
|
-
E("ul",
|
|
3719
|
-
|
|
3733
|
+
E("ul", Oi, [
|
|
3734
|
+
F(i.$slots, "default")
|
|
3720
3735
|
])
|
|
3721
|
-
], 10,
|
|
3736
|
+
], 10, qi));
|
|
3722
3737
|
}
|
|
3723
|
-
}),
|
|
3738
|
+
}), Gi = ["id"], Wi = /* @__PURE__ */ G({
|
|
3724
3739
|
name: "DBTabPanel",
|
|
3725
3740
|
__name: "tab-panel",
|
|
3726
3741
|
props: {
|
|
@@ -3732,22 +3747,22 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3732
3747
|
autofocus: { type: [Boolean, String] }
|
|
3733
3748
|
},
|
|
3734
3749
|
setup(e) {
|
|
3735
|
-
const
|
|
3750
|
+
const a = e, l = o(null);
|
|
3736
3751
|
return Q(() => {
|
|
3737
|
-
}), (
|
|
3752
|
+
}), (t, i) => (h(), b("section", {
|
|
3738
3753
|
role: "tabpanel",
|
|
3739
3754
|
ref_key: "_ref",
|
|
3740
3755
|
ref: l,
|
|
3741
|
-
class: q(n(O)("db-tab-panel",
|
|
3756
|
+
class: q(n(O)("db-tab-panel", a.class)),
|
|
3742
3757
|
id: e.id
|
|
3743
3758
|
}, [
|
|
3744
|
-
e.content ? (
|
|
3745
|
-
D(
|
|
3759
|
+
e.content ? (h(), b(W, { key: 0 }, [
|
|
3760
|
+
D(L(e.content), 1)
|
|
3746
3761
|
], 64)) : z("", !0),
|
|
3747
|
-
|
|
3748
|
-
], 10,
|
|
3762
|
+
F(t.$slots, "default")
|
|
3763
|
+
], 10, Gi));
|
|
3749
3764
|
}
|
|
3750
|
-
}),
|
|
3765
|
+
}), Hi = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], dn = /* @__PURE__ */ G({
|
|
3751
3766
|
name: "DBTabs",
|
|
3752
3767
|
__name: "tabs",
|
|
3753
3768
|
props: {
|
|
@@ -3771,22 +3786,22 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3771
3786
|
tabSelect: {}
|
|
3772
3787
|
},
|
|
3773
3788
|
setup(e) {
|
|
3774
|
-
const
|
|
3789
|
+
const a = e, l = o("tabs-" + te()), t = o(""), i = o(!1), c = o(!1), u = o(!1), v = o(null), m = o(void 0), f = o(null);
|
|
3775
3790
|
Q(() => {
|
|
3776
|
-
l.value =
|
|
3791
|
+
l.value = a.id || l.value, t.value = `tabs-${a.name || te()}`, i.value = !0;
|
|
3777
3792
|
}), me(() => {
|
|
3778
3793
|
m.value?.disconnect(), m.value = void 0;
|
|
3779
3794
|
}), C(
|
|
3780
|
-
() => [
|
|
3795
|
+
() => [f.value, i.value],
|
|
3781
3796
|
() => {
|
|
3782
|
-
if (
|
|
3797
|
+
if (f.value && i.value) {
|
|
3783
3798
|
s(), d(!0);
|
|
3784
|
-
const
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
(
|
|
3799
|
+
const y = f.value.querySelector(".db-tab-list");
|
|
3800
|
+
y && new MutationObserver((B) => {
|
|
3801
|
+
B.forEach((g) => {
|
|
3802
|
+
(g.removedNodes.length || g.addedNodes.length) && (s(), d());
|
|
3788
3803
|
});
|
|
3789
|
-
}).observe(
|
|
3804
|
+
}).observe(y, {
|
|
3790
3805
|
childList: !0,
|
|
3791
3806
|
subtree: !0
|
|
3792
3807
|
}), i.value = !1;
|
|
@@ -3799,161 +3814,161 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3799
3814
|
);
|
|
3800
3815
|
function k() {
|
|
3801
3816
|
try {
|
|
3802
|
-
return typeof
|
|
3803
|
-
} catch (
|
|
3804
|
-
console.error(
|
|
3817
|
+
return typeof a.tabs == "string" ? JSON.parse(a.tabs) : a.tabs;
|
|
3818
|
+
} catch (y) {
|
|
3819
|
+
console.error(y);
|
|
3805
3820
|
}
|
|
3806
3821
|
return [];
|
|
3807
3822
|
}
|
|
3808
|
-
function $(
|
|
3809
|
-
const
|
|
3810
|
-
c.value =
|
|
3823
|
+
function $(y) {
|
|
3824
|
+
const x = y.scrollWidth > y.clientWidth;
|
|
3825
|
+
c.value = x && y.scrollLeft > 1, u.value = x && y.scrollLeft < y.scrollWidth - y.clientWidth;
|
|
3811
3826
|
}
|
|
3812
|
-
function
|
|
3813
|
-
let
|
|
3814
|
-
|
|
3827
|
+
function w(y) {
|
|
3828
|
+
let x = Number(a.arrowScrollDistance) || 100;
|
|
3829
|
+
y && (x *= -1), v.value?.scrollBy({
|
|
3815
3830
|
top: 0,
|
|
3816
|
-
left:
|
|
3831
|
+
left: x,
|
|
3817
3832
|
behavior: "smooth"
|
|
3818
3833
|
});
|
|
3819
3834
|
}
|
|
3820
3835
|
function s() {
|
|
3821
|
-
if (
|
|
3822
|
-
const
|
|
3823
|
-
if (
|
|
3824
|
-
const
|
|
3825
|
-
if (
|
|
3836
|
+
if (f.value) {
|
|
3837
|
+
const y = f.value.querySelector(".db-tab-list");
|
|
3838
|
+
if (y) {
|
|
3839
|
+
const x = y.querySelector('[role="tablist"]');
|
|
3840
|
+
if (x && (x.setAttribute(
|
|
3826
3841
|
"aria-orientation",
|
|
3827
|
-
|
|
3828
|
-
),
|
|
3829
|
-
$(
|
|
3842
|
+
a.orientation || "horizontal"
|
|
3843
|
+
), a.behavior === "arrows" && (v.value = x, $(x), x.addEventListener("scroll", () => {
|
|
3844
|
+
$(x);
|
|
3830
3845
|
}), !m.value))) {
|
|
3831
|
-
const
|
|
3832
|
-
$(
|
|
3846
|
+
const B = new ResizeObserver(() => {
|
|
3847
|
+
$(x);
|
|
3833
3848
|
});
|
|
3834
|
-
|
|
3849
|
+
B.observe(x), m.value = B;
|
|
3835
3850
|
}
|
|
3836
3851
|
}
|
|
3837
3852
|
}
|
|
3838
3853
|
}
|
|
3839
|
-
function d(
|
|
3840
|
-
if (
|
|
3841
|
-
const
|
|
3842
|
-
|
|
3843
|
-
),
|
|
3844
|
-
|
|
3854
|
+
function d(y) {
|
|
3855
|
+
if (f.value) {
|
|
3856
|
+
const x = Array.from(
|
|
3857
|
+
f.value.getElementsByClassName("db-tab-item")
|
|
3858
|
+
), B = Array.from(
|
|
3859
|
+
f.value.querySelectorAll(
|
|
3845
3860
|
":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
|
|
3846
3861
|
)
|
|
3847
3862
|
);
|
|
3848
|
-
for (const
|
|
3849
|
-
const
|
|
3850
|
-
if (
|
|
3851
|
-
if (!
|
|
3852
|
-
const H = `${
|
|
3853
|
-
N.setAttribute("for", H),
|
|
3863
|
+
for (const g of x) {
|
|
3864
|
+
const p = x.indexOf(g), N = g.querySelector("label"), M = g.querySelector("input");
|
|
3865
|
+
if (M && N) {
|
|
3866
|
+
if (!M.id) {
|
|
3867
|
+
const H = `${t.value}-tab-${p}`;
|
|
3868
|
+
N.setAttribute("for", H), M.id = H, M.setAttribute("name", t.value), B.length > p && M.setAttribute(
|
|
3854
3869
|
"aria-controls",
|
|
3855
|
-
`${
|
|
3870
|
+
`${t.value}-tab-panel-${p}`
|
|
3856
3871
|
);
|
|
3857
3872
|
}
|
|
3858
|
-
if (
|
|
3859
|
-
const H = !
|
|
3860
|
-
H && X &&
|
|
3873
|
+
if (y) {
|
|
3874
|
+
const H = !a.initialSelectedMode || a.initialSelectedMode === "auto", X = a.initialSelectedIndex == null && p === 0 || Number(a.initialSelectedIndex) === p;
|
|
3875
|
+
H && X && M.click();
|
|
3861
3876
|
}
|
|
3862
3877
|
}
|
|
3863
3878
|
}
|
|
3864
|
-
for (const
|
|
3865
|
-
if (
|
|
3866
|
-
const
|
|
3867
|
-
|
|
3879
|
+
for (const g of B) {
|
|
3880
|
+
if (g.id) continue;
|
|
3881
|
+
const p = B.indexOf(g);
|
|
3882
|
+
g.id = `${t.value}-tab-panel-${p}`, g.setAttribute("aria-labelledby", `${t.value}-tab-${p}`);
|
|
3868
3883
|
}
|
|
3869
3884
|
}
|
|
3870
3885
|
}
|
|
3871
|
-
function
|
|
3872
|
-
if (
|
|
3873
|
-
const
|
|
3874
|
-
if (
|
|
3875
|
-
const
|
|
3876
|
-
if (
|
|
3877
|
-
const
|
|
3878
|
-
if (
|
|
3879
|
-
const N = Array.from(
|
|
3880
|
-
|
|
3886
|
+
function S(y) {
|
|
3887
|
+
if (y.stopPropagation(), y.target) {
|
|
3888
|
+
const B = y.target.parentElement;
|
|
3889
|
+
if (B && B.parentElement && B.parentElement?.nodeName === "LI") {
|
|
3890
|
+
const g = B.parentElement;
|
|
3891
|
+
if (g) {
|
|
3892
|
+
const p = g.parentElement;
|
|
3893
|
+
if (p) {
|
|
3894
|
+
const N = Array.from(p.children).indexOf(g);
|
|
3895
|
+
a.onIndexChange && a.onIndexChange(N), a.onTabSelect && a.onTabSelect(y);
|
|
3881
3896
|
}
|
|
3882
3897
|
}
|
|
3883
3898
|
}
|
|
3884
3899
|
}
|
|
3885
3900
|
}
|
|
3886
|
-
return (
|
|
3901
|
+
return (y, x) => (h(), b("div", {
|
|
3887
3902
|
ref_key: "_ref",
|
|
3888
|
-
ref:
|
|
3903
|
+
ref: f,
|
|
3889
3904
|
id: l.value,
|
|
3890
|
-
class: q(n(O)("db-tabs",
|
|
3905
|
+
class: q(n(O)("db-tabs", a.class)),
|
|
3891
3906
|
"data-orientation": e.orientation,
|
|
3892
3907
|
"data-scroll-behavior": e.behavior,
|
|
3893
3908
|
"data-alignment": e.alignment ?? "start",
|
|
3894
3909
|
"data-width": e.width ?? "auto",
|
|
3895
|
-
onInput:
|
|
3896
|
-
onChange:
|
|
3910
|
+
onInput: x[0] || (x[0] = async (B) => S(B)),
|
|
3911
|
+
onChange: x[1] || (x[1] = async (B) => S(B))
|
|
3897
3912
|
}, [
|
|
3898
|
-
c.value ? (
|
|
3913
|
+
c.value ? (h(), J(we, {
|
|
3899
3914
|
key: 0,
|
|
3900
3915
|
class: "tabs-scroll-left",
|
|
3901
3916
|
variant: "ghost",
|
|
3902
3917
|
icon: "chevron_left",
|
|
3903
3918
|
type: "button",
|
|
3904
3919
|
noText: !0,
|
|
3905
|
-
onClick: (
|
|
3920
|
+
onClick: (B) => w(!0)
|
|
3906
3921
|
}, {
|
|
3907
|
-
default: U(() => [...
|
|
3922
|
+
default: U(() => [...x[2] || (x[2] = [
|
|
3908
3923
|
D(" Scroll left ", -1)
|
|
3909
3924
|
])]),
|
|
3910
3925
|
_: 1
|
|
3911
3926
|
}, 8, ["onClick"])) : z("", !0),
|
|
3912
|
-
e.tabs ? (
|
|
3913
|
-
ie(
|
|
3927
|
+
e.tabs ? (h(), b(W, { key: 1 }, [
|
|
3928
|
+
ie(Ui, null, {
|
|
3914
3929
|
default: U(() => [
|
|
3915
|
-
(
|
|
3916
|
-
key: e.name + "tab-item" +
|
|
3917
|
-
active:
|
|
3918
|
-
label:
|
|
3919
|
-
iconTrailing:
|
|
3920
|
-
icon:
|
|
3921
|
-
noText:
|
|
3930
|
+
(h(!0), b(W, null, ge(k(), (B, g) => (h(), J(Vi, {
|
|
3931
|
+
key: e.name + "tab-item" + g,
|
|
3932
|
+
active: B.active,
|
|
3933
|
+
label: B.label,
|
|
3934
|
+
iconTrailing: B.iconTrailing,
|
|
3935
|
+
icon: B.icon,
|
|
3936
|
+
noText: B.noText
|
|
3922
3937
|
}, null, 8, ["active", "label", "iconTrailing", "icon", "noText"]))), 128))
|
|
3923
3938
|
]),
|
|
3924
3939
|
_: 1
|
|
3925
3940
|
}),
|
|
3926
|
-
(
|
|
3927
|
-
key: e.name + "tab-panel" +
|
|
3928
|
-
content:
|
|
3941
|
+
(h(!0), b(W, null, ge(k(), (B, g) => (h(), J(Wi, {
|
|
3942
|
+
key: e.name + "tab-panel" + g,
|
|
3943
|
+
content: B.content
|
|
3929
3944
|
}, {
|
|
3930
3945
|
default: U(() => [
|
|
3931
|
-
D(
|
|
3946
|
+
D(L(B.children), 1)
|
|
3932
3947
|
]),
|
|
3933
3948
|
_: 2
|
|
3934
3949
|
}, 1032, ["content"]))), 128))
|
|
3935
3950
|
], 64)) : z("", !0),
|
|
3936
|
-
u.value ? (
|
|
3951
|
+
u.value ? (h(), J(we, {
|
|
3937
3952
|
key: 2,
|
|
3938
3953
|
class: "tabs-scroll-right",
|
|
3939
3954
|
variant: "ghost",
|
|
3940
3955
|
icon: "chevron_right",
|
|
3941
3956
|
type: "button",
|
|
3942
3957
|
noText: !0,
|
|
3943
|
-
onClick: (
|
|
3958
|
+
onClick: (B) => w()
|
|
3944
3959
|
}, {
|
|
3945
|
-
default: U(() => [...
|
|
3960
|
+
default: U(() => [...x[3] || (x[3] = [
|
|
3946
3961
|
D(" Scroll right ", -1)
|
|
3947
3962
|
])]),
|
|
3948
3963
|
_: 1
|
|
3949
3964
|
}, 8, ["onClick"])) : z("", !0),
|
|
3950
|
-
|
|
3951
|
-
], 42,
|
|
3965
|
+
F(y.$slots, "default")
|
|
3966
|
+
], 42, Hi));
|
|
3952
3967
|
}
|
|
3953
|
-
}),
|
|
3968
|
+
}), sn = ["scrollbar", "arrows"], un = ["auto", "manually"], cn = ["static", "removable"], Xi = ["data-variant", "data-hide-asterisk", "data-hide-label"], ji = ["for"], Ki = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "data-resize", "data-hide-resizer", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Yi = {
|
|
3954
3969
|
"data-visually-hidden": "true",
|
|
3955
3970
|
role: "status"
|
|
3956
|
-
},
|
|
3971
|
+
}, rn = /* @__PURE__ */ G({
|
|
3957
3972
|
name: "DBTextarea",
|
|
3958
3973
|
__name: "textarea",
|
|
3959
3974
|
props: {
|
|
@@ -4003,17 +4018,17 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
4003
4018
|
showMessage: { type: [Boolean, String], default: void 0 }
|
|
4004
4019
|
},
|
|
4005
4020
|
emits: ["update:value"],
|
|
4006
|
-
setup(e, { emit:
|
|
4007
|
-
const l =
|
|
4021
|
+
setup(e, { emit: a }) {
|
|
4022
|
+
const l = a, t = e, i = o(void 0), c = o(void 0), u = o(void 0), v = o(void 0), m = o(void 0), f = o(void 0), k = o(""), $ = o(""), w = o(void 0), s = o(null);
|
|
4008
4023
|
Q(() => {
|
|
4009
|
-
const
|
|
4010
|
-
i.value =
|
|
4024
|
+
const p = t.id ?? `textarea-${te()}`;
|
|
4025
|
+
i.value = p, c.value = p + re, u.value = p + ve, v.value = p + fe, m.value = t.invalidMessage || ae;
|
|
4011
4026
|
}), me(() => {
|
|
4012
|
-
|
|
4027
|
+
w.value?.abort();
|
|
4013
4028
|
}), C(
|
|
4014
|
-
() => [s.value,
|
|
4029
|
+
() => [s.value, t.invalidMessage],
|
|
4015
4030
|
() => {
|
|
4016
|
-
m.value =
|
|
4031
|
+
m.value = t.invalidMessage || s.value?.validationMessage || ae;
|
|
4017
4032
|
},
|
|
4018
4033
|
{
|
|
4019
4034
|
immediate: !0,
|
|
@@ -4023,8 +4038,8 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
4023
4038
|
() => [i.value],
|
|
4024
4039
|
() => {
|
|
4025
4040
|
if (i.value) {
|
|
4026
|
-
const
|
|
4027
|
-
c.value =
|
|
4041
|
+
const p = i.value + re;
|
|
4042
|
+
c.value = p, u.value = i.value + ve, v.value = i.value + fe, ee(t.message, t.showMessage) && (f.value = p), S();
|
|
4028
4043
|
}
|
|
4029
4044
|
},
|
|
4030
4045
|
{
|
|
@@ -4032,9 +4047,9 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
4032
4047
|
flush: "post"
|
|
4033
4048
|
}
|
|
4034
4049
|
), C(
|
|
4035
|
-
() => [
|
|
4050
|
+
() => [t.value],
|
|
4036
4051
|
() => {
|
|
4037
|
-
|
|
4052
|
+
t.value !== void 0 && (k.value = t.value);
|
|
4038
4053
|
},
|
|
4039
4054
|
{
|
|
4040
4055
|
immediate: !0,
|
|
@@ -4044,17 +4059,17 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
4044
4059
|
() => [s.value],
|
|
4045
4060
|
() => {
|
|
4046
4061
|
if (s.value) {
|
|
4047
|
-
let
|
|
4048
|
-
|
|
4062
|
+
let M = w.value;
|
|
4063
|
+
M || (M = new AbortController(), w.value = M), Ge(
|
|
4049
4064
|
s.value,
|
|
4050
4065
|
{
|
|
4051
|
-
value:
|
|
4066
|
+
value: t.value,
|
|
4052
4067
|
defaultValue: void 0
|
|
4053
4068
|
},
|
|
4054
4069
|
(H) => {
|
|
4055
|
-
|
|
4070
|
+
x(H), y(H);
|
|
4056
4071
|
},
|
|
4057
|
-
|
|
4072
|
+
M.signal
|
|
4058
4073
|
);
|
|
4059
4074
|
}
|
|
4060
4075
|
},
|
|
@@ -4064,30 +4079,30 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
4064
4079
|
}
|
|
4065
4080
|
);
|
|
4066
4081
|
function d() {
|
|
4067
|
-
return !!(
|
|
4082
|
+
return !!(t.validMessage ?? t.validation === "valid");
|
|
4068
4083
|
}
|
|
4069
|
-
function
|
|
4070
|
-
!s.value?.validity.valid ||
|
|
4084
|
+
function S() {
|
|
4085
|
+
!s.value?.validity.valid || t.validation === "invalid" ? (f.value = v.value, m.value = t.invalidMessage || s.value?.validationMessage || ae, ce() && ($.value = m.value, Y(() => $.value = "", 1e3))) : d() && s.value?.validity.valid && (t.required || t.minLength || t.maxLength) ? (f.value = u.value, ce() && ($.value = t.validMessage ?? ue, Y(() => $.value = "", 1e3))) : ee(t.message, t.showMessage) ? f.value = c.value : f.value = void 0;
|
|
4071
4086
|
}
|
|
4072
|
-
function
|
|
4073
|
-
|
|
4087
|
+
function y(p, N) {
|
|
4088
|
+
t.input && t.input(p), k.value = p.target.value, t.onInput && t.onInput(p), se(l, p), S();
|
|
4074
4089
|
}
|
|
4075
|
-
function
|
|
4076
|
-
|
|
4090
|
+
function x(p, N) {
|
|
4091
|
+
t.onChange && t.onChange(p), se(l, p), S();
|
|
4077
4092
|
}
|
|
4078
|
-
function
|
|
4079
|
-
|
|
4093
|
+
function B(p) {
|
|
4094
|
+
t.onBlur && t.onBlur(p);
|
|
4080
4095
|
}
|
|
4081
|
-
function
|
|
4082
|
-
|
|
4096
|
+
function g(p) {
|
|
4097
|
+
t.onFocus && t.onFocus(p);
|
|
4083
4098
|
}
|
|
4084
|
-
return (
|
|
4085
|
-
class: q(n(O)("db-textarea",
|
|
4099
|
+
return (p, N) => (h(), b("div", {
|
|
4100
|
+
class: q(n(O)("db-textarea", t.class)),
|
|
4086
4101
|
"data-variant": e.variant,
|
|
4087
4102
|
"data-hide-asterisk": n(oe)(e.showRequiredAsterisk),
|
|
4088
4103
|
"data-hide-label": n(oe)(e.showLabel)
|
|
4089
4104
|
}, [
|
|
4090
|
-
E("label", { for: i.value },
|
|
4105
|
+
E("label", { for: i.value }, L(e.label ?? n(ke)), 9, ji),
|
|
4091
4106
|
E("textarea", {
|
|
4092
4107
|
"aria-invalid": e.validation === "invalid",
|
|
4093
4108
|
"data-custom-validity": e.validation,
|
|
@@ -4107,206 +4122,206 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
4107
4122
|
wrap: e.wrap,
|
|
4108
4123
|
spellcheck: e.spellCheck,
|
|
4109
4124
|
autocomplete: e.autocomplete,
|
|
4110
|
-
onInput: N[0] || (N[0] = async (
|
|
4111
|
-
onChange: N[1] || (N[1] = async (
|
|
4112
|
-
onBlur: N[2] || (N[2] = async (
|
|
4113
|
-
onFocus: N[3] || (N[3] = async (
|
|
4125
|
+
onInput: N[0] || (N[0] = async (M) => y(M)),
|
|
4126
|
+
onChange: N[1] || (N[1] = async (M) => x(M)),
|
|
4127
|
+
onBlur: N[2] || (N[2] = async (M) => B(M)),
|
|
4128
|
+
onFocus: N[3] || (N[3] = async (M) => g(M)),
|
|
4114
4129
|
value: e.value ?? k.value,
|
|
4115
|
-
"aria-describedby": e.ariaDescribedBy ??
|
|
4116
|
-
placeholder: e.placeholder ?? n(
|
|
4117
|
-
rows: n(Le)(e.rows, n(
|
|
4130
|
+
"aria-describedby": e.ariaDescribedBy ?? f.value,
|
|
4131
|
+
placeholder: e.placeholder ?? n(tt),
|
|
4132
|
+
rows: n(Le)(e.rows, n(At)),
|
|
4118
4133
|
cols: n(Le)(e.cols)
|
|
4119
|
-
},
|
|
4120
|
-
n(ee)(e.message, e.showMessage) ? (
|
|
4134
|
+
}, L(e.value), 41, Ki),
|
|
4135
|
+
n(ee)(e.message, e.showMessage) ? (h(), J(_, {
|
|
4121
4136
|
key: 0,
|
|
4122
4137
|
size: "small",
|
|
4123
4138
|
icon: e.messageIcon,
|
|
4124
4139
|
id: c.value
|
|
4125
4140
|
}, {
|
|
4126
4141
|
default: U(() => [
|
|
4127
|
-
D(
|
|
4142
|
+
D(L(e.message), 1)
|
|
4128
4143
|
]),
|
|
4129
4144
|
_: 1
|
|
4130
4145
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
4131
|
-
d() ? (
|
|
4146
|
+
d() ? (h(), J(_, {
|
|
4132
4147
|
key: 1,
|
|
4133
4148
|
size: "small",
|
|
4134
4149
|
semantic: "successful",
|
|
4135
4150
|
id: u.value
|
|
4136
4151
|
}, {
|
|
4137
4152
|
default: U(() => [
|
|
4138
|
-
D(
|
|
4153
|
+
D(L(e.validMessage || n(ue)), 1)
|
|
4139
4154
|
]),
|
|
4140
4155
|
_: 1
|
|
4141
4156
|
}, 8, ["id"])) : z("", !0),
|
|
4142
4157
|
ie(_, {
|
|
4143
4158
|
size: "small",
|
|
4144
4159
|
semantic: "critical",
|
|
4145
|
-
id:
|
|
4160
|
+
id: v.value
|
|
4146
4161
|
}, {
|
|
4147
4162
|
default: U(() => [
|
|
4148
|
-
D(
|
|
4163
|
+
D(L(m.value), 1)
|
|
4149
4164
|
]),
|
|
4150
4165
|
_: 1
|
|
4151
4166
|
}, 8, ["id"]),
|
|
4152
|
-
E("span",
|
|
4153
|
-
], 10,
|
|
4167
|
+
E("span", Yi, L($.value), 1)
|
|
4168
|
+
], 10, Xi));
|
|
4154
4169
|
}
|
|
4155
|
-
}),
|
|
4170
|
+
}), vn = ["none", "both", "horizontal", "vertical"], fn = ["hard", "soft", "off"], hn = ["description", "label"], mn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], gn = ["medium", "small", "large", "none"], bn = ["medium", "small", "large", "none"], Ji = ["left", "right", "left-start", "left-end", "right-start", "right-end"], Qi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], yn = [...Ji, ...Qi], kn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], wn = ["horizontal", "vertical"], Bn = ["full", "auto"], Sn = ["full", "medium", "large", "small"], pn = ["none", "slow", "fast"], Ln = ["auto", "fixed"], In = ["small", "medium"], xn = ["weak", "strong"], Tn = ["invalid", "valid", "no-validation"], $n = ["fixed", "content"], Cn = ["above", "floating"], En = ["leading", "trailing"], An = ["off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "shipping", "billing", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo", "webauthn"], Dn = ["_self", "_blank", "_parent", "_top"], Mn = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], Fn = ["start", "center"];
|
|
4156
4171
|
export {
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4172
|
+
rl as AccordionBehaviorList,
|
|
4173
|
+
cl as AccordionVariantList,
|
|
4174
|
+
Fn as AlignmentList,
|
|
4175
|
+
An as AutoCompleteList,
|
|
4176
|
+
fl as BadgePlacementList,
|
|
4177
|
+
gl as ButtonTypeList,
|
|
4178
|
+
ml as ButtonVariantList,
|
|
4179
|
+
nt as COLOR,
|
|
4180
|
+
al as COLORS,
|
|
4181
|
+
il as COLORS_SIMPLE,
|
|
4182
|
+
el as COLOR_CONST,
|
|
4183
|
+
lt as COLOR_SIMPLE,
|
|
4184
|
+
yl as CardBehaviorList,
|
|
4185
|
+
kl as CardElevationLevelList,
|
|
4186
|
+
Sl as CustomSelectDropdownWidthList,
|
|
4187
|
+
Ll as CustomSelectListItemTypeList,
|
|
4188
|
+
ul as DBAccordion,
|
|
4189
|
+
Ut as DBAccordionItem,
|
|
4190
|
+
vl as DBBadge,
|
|
4191
|
+
hl as DBBrand,
|
|
4177
4192
|
we as DBButton,
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4193
|
+
bl as DBCard,
|
|
4194
|
+
wl as DBCheckbox,
|
|
4195
|
+
Bl as DBCustomSelect,
|
|
4196
|
+
na as DBCustomSelectDropdown,
|
|
4197
|
+
pl as DBCustomSelectFormField,
|
|
4198
|
+
va as DBCustomSelectList,
|
|
4199
|
+
ca as DBCustomSelectListItem,
|
|
4200
|
+
xl as DBDivider,
|
|
4201
|
+
Ha as DBDrawer,
|
|
4202
|
+
Ml as DBHeader,
|
|
4203
|
+
Fl as DBIcon,
|
|
4189
4204
|
_ as DBInfotext,
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4205
|
+
ka as DBInput,
|
|
4206
|
+
zl as DBLink,
|
|
4207
|
+
Ol as DBNavigation,
|
|
4208
|
+
Ul as DBNavigationItem,
|
|
4209
|
+
Gl as DBNotification,
|
|
4210
|
+
jl as DBPage,
|
|
4211
|
+
Jl as DBPopover,
|
|
4212
|
+
Ql as DBRadio,
|
|
4213
|
+
Zl as DBSection,
|
|
4214
|
+
_l as DBSelect,
|
|
4215
|
+
en as DBStack,
|
|
4216
|
+
on as DBSwitch,
|
|
4217
|
+
Vi as DBTabItem,
|
|
4218
|
+
Ui as DBTabList,
|
|
4219
|
+
Wi as DBTabPanel,
|
|
4220
|
+
dn as DBTabs,
|
|
4221
|
+
Sa as DBTag,
|
|
4222
|
+
rn as DBTextarea,
|
|
4223
|
+
rt as DBTooltip,
|
|
4224
|
+
ol as DB_UX_LOCAL_STORAGE_FRAMEWORK,
|
|
4225
|
+
dl as DB_UX_LOCAL_STORAGE_MODE,
|
|
4226
|
+
Tt as DEFAULT_BACK,
|
|
4227
|
+
Ct as DEFAULT_BURGER_MENU,
|
|
4228
|
+
Ue as DEFAULT_CLOSE_BUTTON,
|
|
4229
|
+
Ze as DEFAULT_DATALIST_ID_SUFFIX,
|
|
4230
|
+
Et as DEFAULT_ICON,
|
|
4216
4231
|
Ee as DEFAULT_ID,
|
|
4217
|
-
|
|
4232
|
+
ae as DEFAULT_INVALID_MESSAGE,
|
|
4218
4233
|
fe as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
4219
4234
|
ke as DEFAULT_LABEL,
|
|
4220
|
-
|
|
4221
|
-
|
|
4235
|
+
Je as DEFAULT_LABEL_ID_SUFFIX,
|
|
4236
|
+
xt as DEFAULT_MESSAGE,
|
|
4222
4237
|
re as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
4223
|
-
|
|
4238
|
+
tt as DEFAULT_PLACEHOLDER,
|
|
4224
4239
|
Fe as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
$
|
|
4228
|
-
|
|
4240
|
+
at as DEFAULT_REMOVE,
|
|
4241
|
+
At as DEFAULT_ROWS,
|
|
4242
|
+
$t as DEFAULT_SELECTED,
|
|
4243
|
+
Qe as DEFAULT_SELECT_ID_SUFFIX,
|
|
4229
4244
|
ue as DEFAULT_VALID_MESSAGE,
|
|
4230
4245
|
ve as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4246
|
+
Dt as DEFAULT_VIEWPORT,
|
|
4247
|
+
tl as DENSITIES,
|
|
4248
|
+
it as DENSITY,
|
|
4249
|
+
_i as DENSITY_CONST,
|
|
4250
|
+
Mt as DESKTOP_VIEWPORT,
|
|
4251
|
+
Tl as DividerMarginList,
|
|
4252
|
+
$l as DividerVariantList,
|
|
4238
4253
|
he as DocumentClickListener,
|
|
4239
4254
|
de as DocumentScrollListener,
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4255
|
+
Cl as DrawerBackdropList,
|
|
4256
|
+
El as DrawerDirectionList,
|
|
4257
|
+
Dl as DrawerPositionList,
|
|
4258
|
+
Al as DrawerVariantList,
|
|
4259
|
+
xn as EmphasisList,
|
|
4260
|
+
$n as FieldSizingList,
|
|
4261
|
+
kn as GapSpacingList,
|
|
4262
|
+
Nl as IconWeightList,
|
|
4263
|
+
Rl as InputTypeList,
|
|
4264
|
+
En as LabelVariantHorizontalList,
|
|
4265
|
+
Cn as LabelVariantList,
|
|
4266
|
+
ql as LinkContentList,
|
|
4267
|
+
Mn as LinkReferrerPolicyList,
|
|
4268
|
+
Vl as LinkSizeList,
|
|
4269
|
+
Dn as LinkTargetList,
|
|
4270
|
+
Pl as LinkVariantList,
|
|
4271
|
+
bn as MarginList,
|
|
4272
|
+
Sn as MaxWidthList,
|
|
4273
|
+
ja as NavigationItemSafeTriangle,
|
|
4274
|
+
Xl as NotificationAriaLiveList,
|
|
4275
|
+
Hl as NotificationLinkVariantList,
|
|
4276
|
+
Wl as NotificationVariantList,
|
|
4277
|
+
wn as OrientationList,
|
|
4278
|
+
Yl as PageDocumentOverflowList,
|
|
4279
|
+
Kl as PageVariantList,
|
|
4280
|
+
Ji as PlacementHorizontalList,
|
|
4281
|
+
yn as PlacementList,
|
|
4282
|
+
Qi as PlacementVerticalList,
|
|
4283
|
+
pn as PopoverDelayList,
|
|
4284
|
+
Ln as PopoverWidthList,
|
|
4285
|
+
ot as SEMANTIC,
|
|
4286
|
+
ll as SEMANTICS,
|
|
4287
|
+
Il as SelectedTypeList,
|
|
4288
|
+
mn as SemanticList,
|
|
4289
|
+
In as SizeList,
|
|
4290
|
+
gn as SpacingList,
|
|
4291
|
+
ln as StackAlignmentList,
|
|
4292
|
+
an as StackDirectionList,
|
|
4293
|
+
nn as StackJustifyContentList,
|
|
4294
|
+
tn as StackVariantList,
|
|
4295
|
+
nl as TESTING_VIEWPORTS,
|
|
4296
|
+
sn as TabsBehaviorList,
|
|
4297
|
+
un as TabsInitialSelectedModeList,
|
|
4298
|
+
cn as TagBehaviorList,
|
|
4299
|
+
vn as TextareaResizeList,
|
|
4300
|
+
fn as TextareaWrapList,
|
|
4301
|
+
hn as TooltipVariantList,
|
|
4302
|
+
Tn as ValidationList,
|
|
4303
|
+
Bn as WidthList,
|
|
4304
|
+
dt as addAttributeToChildren,
|
|
4290
4305
|
O as cls,
|
|
4291
4306
|
Y as delay,
|
|
4292
4307
|
V as getBoolean,
|
|
4293
4308
|
R as getBooleanAsString,
|
|
4294
|
-
|
|
4309
|
+
ut as getFloatingProps,
|
|
4295
4310
|
oe as getHideProp,
|
|
4296
|
-
|
|
4297
|
-
|
|
4311
|
+
_e as getInputValue,
|
|
4312
|
+
Vt as getNotificationRole,
|
|
4298
4313
|
Le as getNumber,
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4314
|
+
sl as getOptionKey,
|
|
4315
|
+
et as getSearchInput,
|
|
4316
|
+
zt as getStep,
|
|
4317
|
+
ea as handleDataOutside,
|
|
4318
|
+
ta as handleFixedDropdown,
|
|
4319
|
+
ct as handleFixedPopover,
|
|
4305
4320
|
ce as hasVoiceOver,
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4321
|
+
Ft as isArrayOfStrings,
|
|
4322
|
+
Xa as isEventTargetNavigationItem,
|
|
4323
|
+
Rt as isIOSSafari,
|
|
4324
|
+
Pt as isKeyboardEvent,
|
|
4310
4325
|
ee as stringPropVisible,
|
|
4311
|
-
|
|
4326
|
+
te as uuid
|
|
4312
4327
|
};
|