@db-ux/v-core-components 4.2.5 → 4.2.7-consolidation2-66e78e5
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 +6 -0
- package/dist/components/drawer/drawer.vue.d.ts +2 -2
- package/dist/components/header/header.vue.d.ts +9 -9
- package/dist/components/link/link.vue.d.ts +3 -1
- package/dist/components/navigation-item/navigation-item.vue.d.ts +2 -2
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/db-ux.es.js +808 -759
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/constants.d.ts +2 -0
- package/dist/shared/examples/index.d.ts +4 -0
- package/dist/shared/model.d.ts +12 -0
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.spec.d.ts +1 -0
- package/package.json +10 -11
package/dist/db-ux.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as W, ref as o, onMounted as J, watch as C, createElementBlock as y, openBlock as v, normalizeClass as
|
|
2
|
-
const Te = "OVERWRITE_DEFAULT_ID", ye = "LABEL SHOULD BE SET", ea = " ", Ia = "MESSAGE SHOULD BE SET", Ye = "-label", Je = "-select", ce = "-message", re = "-valid-message", ve = "-invalid-message", De = "-placeholder", Qe = "-datalist", se = "TODO: Add a validMessage", ee = "TODO: Add an invalidMessage", aa = "Remove", xa = "Back", $a = "Selected", Ta = "BurgerMenu", Ca = "brand", Ea = 4, qe = "Close",
|
|
1
|
+
import { defineComponent as W, ref as o, onMounted as J, watch as C, createElementBlock as y, openBlock as v, normalizeClass as O, unref as n, createElementVNode as E, createCommentVNode as z, renderSlot as M, Fragment as H, createTextVNode as D, toDisplayString as S, renderList as me, createBlock as Y, onUnmounted as he, createVNode as te, withCtx as G } from "vue";
|
|
2
|
+
const Te = "OVERWRITE_DEFAULT_ID", ye = "LABEL SHOULD BE SET", ea = " ", Ia = "MESSAGE SHOULD BE SET", Ye = "-label", Je = "-select", ce = "-message", re = "-valid-message", ve = "-invalid-message", De = "-placeholder", Qe = "-datalist", se = "TODO: Add a validMessage", ee = "TODO: Add an invalidMessage", aa = "Remove", xa = "Back", $a = "Selected", Ta = "BurgerMenu", Ca = "brand", Ea = 4, qe = "Close", Yi = "density", Ji = "color";
|
|
3
3
|
var ta = /* @__PURE__ */ ((e) => (e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e))(ta || {});
|
|
4
|
-
const
|
|
4
|
+
const Qi = Object.entries(ta).map(([, e]) => e);
|
|
5
5
|
var ia = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e))(ia || {}), la = /* @__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))(la || {});
|
|
6
|
-
const
|
|
6
|
+
const Zi = Object.entries(la).map(([, e]) => e), _i = Object.entries(ia).map(([, e]) => e);
|
|
7
7
|
var na = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.INFORMATIONAL = "informational", e.WARNING = "warning", e.SUCCESSFUL = "successful", e))(na || {});
|
|
8
|
-
const
|
|
8
|
+
const el = Object.entries(na).map(([, e]) => e), Aa = {
|
|
9
9
|
width: 390,
|
|
10
10
|
height: 884
|
|
11
11
|
}, Da = {
|
|
12
12
|
width: 1920,
|
|
13
13
|
height: 1280
|
|
14
|
-
},
|
|
14
|
+
}, al = [{
|
|
15
15
|
name: "desktop",
|
|
16
16
|
...Da
|
|
17
17
|
}, {
|
|
@@ -21,7 +21,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
21
21
|
}, {
|
|
22
22
|
name: "mobile",
|
|
23
23
|
...Aa
|
|
24
|
-
}], _ = () => {
|
|
24
|
+
}], tl = "db-ux-framework", il = "db-ux-mode", _ = () => {
|
|
25
25
|
if (typeof window < "u") {
|
|
26
26
|
if (window.crypto?.randomUUID)
|
|
27
27
|
return window.crypto.randomUUID();
|
|
@@ -34,7 +34,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
34
34
|
Object.values(l).forEach((a) => {
|
|
35
35
|
a.setAttribute(t.key, t.value), a.children.length > 0 && oa(a, t);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, U = (...e) => {
|
|
38
38
|
let t = "";
|
|
39
39
|
for (const l of e)
|
|
40
40
|
if (l)
|
|
@@ -44,26 +44,30 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
44
44
|
for (const a in l)
|
|
45
45
|
l[a] && (t += `${a} `);
|
|
46
46
|
return t.trim();
|
|
47
|
-
},
|
|
47
|
+
}, Fa = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ma = ["Mac", "iPhone", "iPad", "iPod"], ue = () => typeof window < "u" && Ma.some((e) => window.navigator.userAgent.includes(e)), Na = () => {
|
|
48
48
|
if (typeof window > "u" || typeof navigator > "u") return !1;
|
|
49
49
|
const e = navigator.userAgent, t = /iP(ad|hone|od)/.test(e), l = !!e.match(/Safari/) && !e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);
|
|
50
50
|
return t && l;
|
|
51
|
-
}, K = (e, t) => new Promise(() => setTimeout(e, t)),
|
|
51
|
+
}, K = (e, t) => new Promise(() => setTimeout(e, t)), P = (e) => {
|
|
52
52
|
if (e != null)
|
|
53
53
|
return String(typeof e == "string" ? !!e : e);
|
|
54
54
|
}, q = (e, t) => {
|
|
55
55
|
if (e != null)
|
|
56
56
|
return typeof e == "string" && t ? !!(t === e || e) : !!e;
|
|
57
|
-
},
|
|
57
|
+
}, Se = (e, t) => {
|
|
58
58
|
if (!(e == null && t == null))
|
|
59
59
|
return Number(e ?? t);
|
|
60
|
-
},
|
|
60
|
+
}, Ra = (e) => {
|
|
61
61
|
if (e != null)
|
|
62
|
-
return
|
|
63
|
-
},
|
|
62
|
+
return e === "any" ? "any" : Number(e);
|
|
63
|
+
}, Ze = (e, t) => t && ["number", "range"].includes(t) ? Se(e) : e, ne = (e) => {
|
|
64
|
+
if (e != null)
|
|
65
|
+
return P(!e);
|
|
66
|
+
}, Z = (e, t) => (t === void 0 || !!t) && !!e, _e = (e) => e.querySelector('input[type="search"]'), ll = (e, t) => {
|
|
64
67
|
const l = e.id ?? e.value ?? _();
|
|
65
68
|
return `${t}${l}`;
|
|
66
|
-
},
|
|
69
|
+
}, za = (e) => e.key !== void 0, Pa = ["id"], Va = ["aria-disabled", "name", "open"], qa = /* @__PURE__ */ W({
|
|
70
|
+
name: "DBAccordionItem",
|
|
67
71
|
__name: "accordion-item",
|
|
68
72
|
props: {
|
|
69
73
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -103,17 +107,17 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
103
107
|
flush: "post"
|
|
104
108
|
}
|
|
105
109
|
);
|
|
106
|
-
function f(
|
|
107
|
-
|
|
110
|
+
function f(m) {
|
|
111
|
+
m?.preventDefault();
|
|
108
112
|
const h = !a.value;
|
|
109
113
|
t.onToggle && t.onToggle(h), a.value = h;
|
|
110
114
|
}
|
|
111
|
-
return (
|
|
115
|
+
return (m, h) => (v(), y("li", {
|
|
112
116
|
id: l.value,
|
|
113
|
-
class:
|
|
117
|
+
class: O(n(U)("db-accordion-item", t.class))
|
|
114
118
|
}, [
|
|
115
119
|
E("details", {
|
|
116
|
-
"aria-disabled": n(
|
|
120
|
+
"aria-disabled": n(P)(e.disabled),
|
|
117
121
|
ref_key: "_ref",
|
|
118
122
|
ref: u,
|
|
119
123
|
name: i.value,
|
|
@@ -123,19 +127,20 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
123
127
|
onClick: h[0] || (h[0] = async (k) => f(k))
|
|
124
128
|
}, [
|
|
125
129
|
e.headlinePlain ? (v(), y(H, { key: 0 }, [
|
|
126
|
-
D(
|
|
130
|
+
D(S(e.headlinePlain), 1)
|
|
127
131
|
], 64)) : z("", !0),
|
|
128
|
-
e.headlinePlain ? z("", !0) :
|
|
132
|
+
e.headlinePlain ? z("", !0) : M(m.$slots, "headline", { key: 1 })
|
|
129
133
|
]),
|
|
130
134
|
E("div", null, [
|
|
131
135
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
132
|
-
D(
|
|
133
|
-
], 64)) :
|
|
136
|
+
D(S(e.text), 1)
|
|
137
|
+
], 64)) : M(m.$slots, "default", { key: 1 })
|
|
134
138
|
])
|
|
135
139
|
], 8, Va)
|
|
136
|
-
], 10,
|
|
140
|
+
], 10, Pa));
|
|
137
141
|
}
|
|
138
|
-
}),
|
|
142
|
+
}), Oa = ["id", "data-variant"], nl = /* @__PURE__ */ W({
|
|
143
|
+
name: "DBAccordion",
|
|
139
144
|
__name: "accordion",
|
|
140
145
|
props: {
|
|
141
146
|
behavior: { default: void 0 },
|
|
@@ -167,9 +172,9 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
167
172
|
() => [u.value, a.value],
|
|
168
173
|
() => {
|
|
169
174
|
if (u.value) {
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
for (const h of Array.from(
|
|
175
|
+
const m = u.value.getElementsByTagName("details");
|
|
176
|
+
if (m)
|
|
177
|
+
for (const h of Array.from(m))
|
|
173
178
|
a.value === "" ? h.removeAttribute("name") : h.name = a.value ?? "";
|
|
174
179
|
}
|
|
175
180
|
},
|
|
@@ -182,10 +187,10 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
182
187
|
() => {
|
|
183
188
|
if (u.value && c.value) {
|
|
184
189
|
if (t.initOpenIndex && t.initOpenIndex.length > 0) {
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
190
|
+
const m = u.value.getElementsByTagName("details");
|
|
191
|
+
if (m) {
|
|
187
192
|
const h = t.behavior === "single" && t.initOpenIndex.length > 1 ? [t.initOpenIndex[0]] : t.initOpenIndex;
|
|
188
|
-
Array.from(
|
|
193
|
+
Array.from(m).forEach(
|
|
189
194
|
(k, $) => {
|
|
190
195
|
h?.includes($) && (k.open = !0);
|
|
191
196
|
}
|
|
@@ -203,28 +208,29 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
203
208
|
function f() {
|
|
204
209
|
try {
|
|
205
210
|
return typeof t.items == "string" ? JSON.parse(t.items) : t.items;
|
|
206
|
-
} catch (
|
|
207
|
-
console.error(
|
|
211
|
+
} catch (m) {
|
|
212
|
+
console.error(m);
|
|
208
213
|
}
|
|
209
214
|
return [];
|
|
210
215
|
}
|
|
211
|
-
return (
|
|
216
|
+
return (m, h) => (v(), y("ul", {
|
|
212
217
|
ref_key: "_ref",
|
|
213
218
|
ref: u,
|
|
214
219
|
id: l.value,
|
|
215
|
-
class:
|
|
220
|
+
class: O(n(U)("db-accordion", t.class)),
|
|
216
221
|
"data-variant": e.variant
|
|
217
222
|
}, [
|
|
218
|
-
e.items ? z("", !0) :
|
|
219
|
-
e.items ? (v(!0), y(H, { key: 1 },
|
|
223
|
+
e.items ? z("", !0) : M(m.$slots, "default", { key: 0 }),
|
|
224
|
+
e.items ? (v(!0), y(H, { key: 1 }, me(f(), (k, $) => (v(), Y(qa, {
|
|
220
225
|
key: `accordion-item-${$}`,
|
|
221
226
|
headlinePlain: k.headlinePlain,
|
|
222
227
|
disabled: k.disabled,
|
|
223
228
|
text: k.text
|
|
224
229
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : z("", !0)
|
|
225
|
-
], 10,
|
|
230
|
+
], 10, Oa));
|
|
226
231
|
}
|
|
227
|
-
}),
|
|
232
|
+
}), ol = ["divider", "card"], dl = ["multiple", "single"], Ua = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], sl = /* @__PURE__ */ W({
|
|
233
|
+
name: "DBBadge",
|
|
228
234
|
__name: "badge",
|
|
229
235
|
props: {
|
|
230
236
|
placement: { default: void 0 },
|
|
@@ -259,7 +265,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
259
265
|
ref_key: "_ref",
|
|
260
266
|
ref: a,
|
|
261
267
|
id: e.id,
|
|
262
|
-
class:
|
|
268
|
+
class: O(n(U)("db-badge", t.class)),
|
|
263
269
|
"data-semantic": e.semantic,
|
|
264
270
|
"data-size": e.size,
|
|
265
271
|
"data-emphasis": e.emphasis,
|
|
@@ -267,11 +273,12 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
267
273
|
"data-label": e.placement?.startsWith("corner") && (e.label ?? n(ye))
|
|
268
274
|
}, [
|
|
269
275
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
270
|
-
D(
|
|
271
|
-
], 64)) :
|
|
276
|
+
D(S(e.text), 1)
|
|
277
|
+
], 64)) : M(i.$slots, "default", { key: 1 })
|
|
272
278
|
], 10, Ua));
|
|
273
279
|
}
|
|
274
|
-
}),
|
|
280
|
+
}), ul = ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"], Ga = ["data-icon", "data-show-icon", "id"], cl = /* @__PURE__ */ W({
|
|
281
|
+
name: "DBBrand",
|
|
275
282
|
__name: "brand",
|
|
276
283
|
props: {
|
|
277
284
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -290,16 +297,17 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
290
297
|
ref_key: "_ref",
|
|
291
298
|
ref: l,
|
|
292
299
|
"data-icon": e.hideLogo ? "none" : e.icon ?? n(Ca),
|
|
293
|
-
"data-show-icon": n(
|
|
300
|
+
"data-show-icon": n(P)(e.showIcon),
|
|
294
301
|
id: e.id,
|
|
295
|
-
class:
|
|
302
|
+
class: O(n(U)("db-brand", t.class))
|
|
296
303
|
}, [
|
|
297
304
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
298
|
-
D(
|
|
299
|
-
], 64)) :
|
|
300
|
-
], 10,
|
|
305
|
+
D(S(e.text), 1)
|
|
306
|
+
], 64)) : M(a.$slots, "default", { key: 1 })
|
|
307
|
+
], 10, Ga));
|
|
301
308
|
}
|
|
302
|
-
}),
|
|
309
|
+
}), Wa = ["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"], ke = /* @__PURE__ */ W({
|
|
310
|
+
name: "DBButton",
|
|
303
311
|
__name: "button",
|
|
304
312
|
props: {
|
|
305
313
|
disabled: { type: [Boolean, String], default: void 0 },
|
|
@@ -315,6 +323,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
315
323
|
id: { default: void 0 },
|
|
316
324
|
autofocus: { type: [Boolean, String] },
|
|
317
325
|
onClick: { type: Function, default: void 0 },
|
|
326
|
+
click: {},
|
|
318
327
|
icon: { default: void 0 },
|
|
319
328
|
width: { default: void 0 },
|
|
320
329
|
size: { default: void 0 },
|
|
@@ -337,28 +346,29 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
337
346
|
ref_key: "_ref",
|
|
338
347
|
ref: l,
|
|
339
348
|
id: e.id,
|
|
340
|
-
class:
|
|
349
|
+
class: O(n(U)("db-button", t.class)),
|
|
341
350
|
type: a(),
|
|
342
351
|
disabled: n(q)(e.disabled, "disabled"),
|
|
343
352
|
"data-icon": e.iconLeading ?? e.icon,
|
|
344
|
-
"data-show-icon": n(
|
|
353
|
+
"data-show-icon": n(P)(e.showIconLeading ?? e.showIcon),
|
|
345
354
|
"data-icon-trailing": e.iconTrailing,
|
|
346
|
-
"data-show-icon-trailing": n(
|
|
355
|
+
"data-show-icon-trailing": n(P)(e.showIconTrailing),
|
|
347
356
|
"data-size": e.size,
|
|
348
357
|
"data-width": e.width,
|
|
349
358
|
"data-variant": e.variant,
|
|
350
|
-
"data-no-text": n(
|
|
359
|
+
"data-no-text": n(P)(e.noText),
|
|
351
360
|
name: e.name,
|
|
352
361
|
form: e.form,
|
|
353
362
|
value: e.value,
|
|
354
363
|
onClick: u[0] || (u[0] = async (f) => i(f))
|
|
355
364
|
}, [
|
|
356
365
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
357
|
-
D(
|
|
358
|
-
], 64)) :
|
|
359
|
-
], 10,
|
|
366
|
+
D(S(e.text), 1)
|
|
367
|
+
], 64)) : M(c.$slots, "default", { key: 1 })
|
|
368
|
+
], 10, Wa));
|
|
360
369
|
}
|
|
361
|
-
}),
|
|
370
|
+
}), rl = ["outlined", "brand", "filled", "ghost"], vl = ["button", "reset", "submit"], Ha = ["id", "data-behavior", "data-elevation-level", "data-spacing"], fl = /* @__PURE__ */ W({
|
|
371
|
+
name: "DBCard",
|
|
362
372
|
__name: "card",
|
|
363
373
|
props: {
|
|
364
374
|
behavior: { default: void 0 },
|
|
@@ -369,6 +379,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
369
379
|
id: { default: void 0 },
|
|
370
380
|
autofocus: { type: [Boolean, String] },
|
|
371
381
|
onClick: { type: Function, default: void 0 },
|
|
382
|
+
click: {},
|
|
372
383
|
spacing: { default: void 0 }
|
|
373
384
|
},
|
|
374
385
|
setup(e) {
|
|
@@ -380,25 +391,25 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
380
391
|
ref_key: "_ref",
|
|
381
392
|
ref: l,
|
|
382
393
|
id: e.id,
|
|
383
|
-
class:
|
|
394
|
+
class: O(n(U)("db-card", t.class)),
|
|
384
395
|
"data-behavior": e.behavior,
|
|
385
396
|
"data-elevation-level": e.elevationLevel,
|
|
386
397
|
"data-spacing": e.spacing,
|
|
387
398
|
onClick: c[0] || (c[0] = async (u) => a(u))
|
|
388
399
|
}, [
|
|
389
|
-
|
|
390
|
-
], 10,
|
|
400
|
+
M(i.$slots, "default")
|
|
401
|
+
], 10, Ha));
|
|
391
402
|
}
|
|
392
|
-
}),
|
|
403
|
+
}), hl = ["static", "interactive"], ml = ["1", "2", "3"], de = (e, t, l = "value") => {
|
|
393
404
|
e(`update:${l}`, t.target[l]);
|
|
394
|
-
},
|
|
405
|
+
}, Fe = (e, t, l) => {
|
|
395
406
|
e.form && !e._dbFormResetListenerAdded && (e.form.addEventListener("reset", (a) => {
|
|
396
407
|
t(a);
|
|
397
408
|
}, {
|
|
398
409
|
signal: l
|
|
399
410
|
}), e._dbFormResetListenerAdded = !0);
|
|
400
411
|
}, da = (e, t, l, a) => {
|
|
401
|
-
|
|
412
|
+
Fe(e, (i) => {
|
|
402
413
|
K(() => {
|
|
403
414
|
const c = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked, u = {
|
|
404
415
|
...i,
|
|
@@ -410,8 +421,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
410
421
|
l(u);
|
|
411
422
|
}, 1);
|
|
412
423
|
}, a);
|
|
413
|
-
},
|
|
414
|
-
|
|
424
|
+
}, Oe = (e, t, l, a) => {
|
|
425
|
+
Fe(e, (i) => {
|
|
415
426
|
K(() => {
|
|
416
427
|
const c = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value, u = {
|
|
417
428
|
...i,
|
|
@@ -423,7 +434,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
423
434
|
l(u);
|
|
424
435
|
}, 1);
|
|
425
436
|
}, a);
|
|
426
|
-
},
|
|
437
|
+
}, Xa = ["id", "data-icon", "data-semantic", "data-size", "data-show-icon-leading"], Q = /* @__PURE__ */ W({
|
|
438
|
+
name: "DBInfotext",
|
|
427
439
|
__name: "infotext",
|
|
428
440
|
props: {
|
|
429
441
|
children: { default: void 0 },
|
|
@@ -443,21 +455,22 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
443
455
|
ref_key: "_ref",
|
|
444
456
|
ref: l,
|
|
445
457
|
id: e.id,
|
|
446
|
-
class:
|
|
458
|
+
class: O(n(U)("db-infotext", t.class)),
|
|
447
459
|
"data-icon": e.icon,
|
|
448
460
|
"data-semantic": e.semantic,
|
|
449
461
|
"data-size": e.size,
|
|
450
|
-
"data-show-icon-leading": n(
|
|
462
|
+
"data-show-icon-leading": n(P)(e.showIcon ?? !0)
|
|
451
463
|
}, [
|
|
452
464
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
453
|
-
D(
|
|
454
|
-
], 64)) :
|
|
455
|
-
], 10,
|
|
465
|
+
D(S(e.text), 1)
|
|
466
|
+
], 64)) : M(a.$slots, "default", { key: 1 })
|
|
467
|
+
], 10, Xa));
|
|
456
468
|
}
|
|
457
|
-
}),
|
|
469
|
+
}), ja = ["data-size", "data-hide-asterisk", "data-hide-label"], Ka = ["for"], Ya = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Ja = {
|
|
458
470
|
"data-visually-hidden": "true",
|
|
459
471
|
role: "status"
|
|
460
|
-
},
|
|
472
|
+
}, gl = /* @__PURE__ */ W({
|
|
473
|
+
name: "DBCheckbox",
|
|
461
474
|
__name: "checkbox",
|
|
462
475
|
props: {
|
|
463
476
|
indeterminate: { type: [Boolean, String], default: void 0 },
|
|
@@ -495,13 +508,13 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
495
508
|
},
|
|
496
509
|
emits: ["update:checked"],
|
|
497
510
|
setup(e, { emit: t }) {
|
|
498
|
-
const l = t, a = e, i = o(!1), c = o(void 0), u = o(void 0), f = o(void 0),
|
|
511
|
+
const l = t, a = e, i = o(!1), c = o(void 0), u = o(void 0), f = o(void 0), m = o(void 0), h = o(void 0), k = o(void 0), $ = o(""), g = o(void 0), s = o(null);
|
|
499
512
|
J(() => {
|
|
500
513
|
i.value = !0;
|
|
501
514
|
const L = a.id ?? `checkbox-${_()}`;
|
|
502
|
-
c.value = L, u.value = L + ce, f.value = L + re,
|
|
515
|
+
c.value = L, u.value = L + ce, f.value = L + re, m.value = L + ve, h.value = a.invalidMessage || ee;
|
|
503
516
|
}), he(() => {
|
|
504
|
-
|
|
517
|
+
g.value?.abort();
|
|
505
518
|
}), C(
|
|
506
519
|
() => [s.value, a.invalidMessage],
|
|
507
520
|
() => {
|
|
@@ -516,7 +529,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
516
529
|
() => {
|
|
517
530
|
if (c.value) {
|
|
518
531
|
const L = c.value + ce;
|
|
519
|
-
u.value = L, f.value = c.value + re,
|
|
532
|
+
u.value = L, f.value = c.value + re, m.value = c.value + ve, Z(a.message, a.showMessage) && (k.value = L), b();
|
|
520
533
|
}
|
|
521
534
|
},
|
|
522
535
|
{
|
|
@@ -545,17 +558,17 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
545
558
|
() => [s.value],
|
|
546
559
|
() => {
|
|
547
560
|
if (s.value) {
|
|
548
|
-
let
|
|
549
|
-
|
|
561
|
+
let B = g.value;
|
|
562
|
+
B || (B = new AbortController(), g.value = B), da(
|
|
550
563
|
s.value,
|
|
551
564
|
{
|
|
552
565
|
checked: a.checked,
|
|
553
566
|
defaultChecked: void 0
|
|
554
567
|
},
|
|
555
|
-
(
|
|
556
|
-
I(
|
|
568
|
+
(F) => {
|
|
569
|
+
I(F);
|
|
557
570
|
},
|
|
558
|
-
|
|
571
|
+
B.signal
|
|
559
572
|
);
|
|
560
573
|
}
|
|
561
574
|
},
|
|
@@ -568,9 +581,9 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
568
581
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
569
582
|
}
|
|
570
583
|
function b() {
|
|
571
|
-
!s.value?.validity.valid || a.validation === "invalid" ? (k.value =
|
|
584
|
+
!s.value?.validity.valid || a.validation === "invalid" ? (k.value = m.value, h.value = a.invalidMessage || s.value?.validationMessage || ee, ue() && ($.value = h.value, K(() => $.value = "", 1e3))) : d() && s.value?.validity.valid && a.required ? (k.value = f.value, ue() && ($.value = a.validMessage ?? se, K(() => $.value = "", 1e3))) : Z(a.message, a.showMessage) ? k.value = u.value : k.value = void 0;
|
|
572
585
|
}
|
|
573
|
-
function I(L,
|
|
586
|
+
function I(L, B) {
|
|
574
587
|
a.onChange && a.onChange(L), de(l, L, "checked"), b();
|
|
575
588
|
}
|
|
576
589
|
function T(L) {
|
|
@@ -579,8 +592,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
579
592
|
function w(L) {
|
|
580
593
|
a.onFocus && a.onFocus(L);
|
|
581
594
|
}
|
|
582
|
-
return (L,
|
|
583
|
-
class:
|
|
595
|
+
return (L, B) => (v(), y("div", {
|
|
596
|
+
class: O(n(U)("db-checkbox", a.class)),
|
|
584
597
|
"data-size": e.size,
|
|
585
598
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
586
599
|
"data-hide-label": n(ne)(e.showLabel)
|
|
@@ -598,15 +611,15 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
598
611
|
disabled: n(q)(e.disabled, "disabled"),
|
|
599
612
|
value: e.value,
|
|
600
613
|
required: n(q)(e.required, "required"),
|
|
601
|
-
onChange:
|
|
602
|
-
onBlur:
|
|
603
|
-
onFocus:
|
|
614
|
+
onChange: B[0] || (B[0] = async (F) => I(F)),
|
|
615
|
+
onBlur: B[1] || (B[1] = async (F) => T(F)),
|
|
616
|
+
onFocus: B[2] || (B[2] = async (F) => w(F)),
|
|
604
617
|
"aria-describedby": e.ariaDescribedBy ?? k.value
|
|
605
|
-
}, null, 40,
|
|
618
|
+
}, null, 40, Ya),
|
|
606
619
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
607
|
-
D(
|
|
608
|
-
], 64)) :
|
|
609
|
-
], 8,
|
|
620
|
+
D(S(e.label), 1)
|
|
621
|
+
], 64)) : M(L.$slots, "default", { key: 1 })
|
|
622
|
+
], 8, Ka),
|
|
610
623
|
n(Z)(e.message, e.showMessage) ? (v(), Y(Q, {
|
|
611
624
|
key: 0,
|
|
612
625
|
size: "small",
|
|
@@ -614,7 +627,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
614
627
|
id: u.value
|
|
615
628
|
}, {
|
|
616
629
|
default: G(() => [
|
|
617
|
-
D(
|
|
630
|
+
D(S(e.message), 1)
|
|
618
631
|
]),
|
|
619
632
|
_: 1
|
|
620
633
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -625,22 +638,22 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
625
638
|
id: f.value
|
|
626
639
|
}, {
|
|
627
640
|
default: G(() => [
|
|
628
|
-
D(
|
|
641
|
+
D(S(e.validMessage || n(se)), 1)
|
|
629
642
|
]),
|
|
630
643
|
_: 1
|
|
631
644
|
}, 8, ["id"])) : z("", !0),
|
|
632
645
|
te(Q, {
|
|
633
646
|
size: "small",
|
|
634
647
|
semantic: "critical",
|
|
635
|
-
id:
|
|
648
|
+
id: m.value
|
|
636
649
|
}, {
|
|
637
650
|
default: G(() => [
|
|
638
|
-
D(
|
|
651
|
+
D(S(h.value), 1)
|
|
639
652
|
]),
|
|
640
653
|
_: 1
|
|
641
654
|
}, 8, ["id"]),
|
|
642
|
-
E("span",
|
|
643
|
-
], 10,
|
|
655
|
+
E("span", Ja, S($.value), 1)
|
|
656
|
+
], 10, ja));
|
|
644
657
|
}
|
|
645
658
|
});
|
|
646
659
|
class fe {
|
|
@@ -688,7 +701,7 @@ class oe {
|
|
|
688
701
|
delete oe.callbacks[t];
|
|
689
702
|
}
|
|
690
703
|
}
|
|
691
|
-
const
|
|
704
|
+
const Qa = (e) => {
|
|
692
705
|
const {
|
|
693
706
|
top: t,
|
|
694
707
|
bottom: l,
|
|
@@ -698,21 +711,21 @@ const Ja = (e) => {
|
|
|
698
711
|
innerHeight: c,
|
|
699
712
|
innerWidth: u
|
|
700
713
|
} = window;
|
|
701
|
-
let f = t < 0,
|
|
702
|
-
const $ = e.dataset.outsideVy,
|
|
703
|
-
return s && ($ && (e.dataset.outsideVy === "top" ? f = s.top - (l - s.bottom) < 0 :
|
|
714
|
+
let f = t < 0, m = l > c, h = a < 0, k = i > u;
|
|
715
|
+
const $ = e.dataset.outsideVy, g = e.dataset.outsideVx, s = e?.parentElement?.getBoundingClientRect();
|
|
716
|
+
return s && ($ && (e.dataset.outsideVy === "top" ? f = s.top - (l - s.bottom) < 0 : m = s.bottom + (s.top - t) > c), g && (e.dataset.outsideVx === "left" ? h = s.left - (i - s.right) < 0 : k = s.right + (s.left - a) > u)), {
|
|
704
717
|
outTop: f,
|
|
705
|
-
outBottom:
|
|
718
|
+
outBottom: m,
|
|
706
719
|
outLeft: h,
|
|
707
720
|
outRight: k
|
|
708
721
|
};
|
|
709
|
-
},
|
|
722
|
+
}, Za = (e) => {
|
|
710
723
|
const {
|
|
711
724
|
outTop: t,
|
|
712
725
|
outBottom: l,
|
|
713
726
|
outLeft: a,
|
|
714
727
|
outRight: i
|
|
715
|
-
} =
|
|
728
|
+
} = Qa(e);
|
|
716
729
|
let c = {};
|
|
717
730
|
return t || l ? (c = {
|
|
718
731
|
vy: t ? "top" : "bottom"
|
|
@@ -720,7 +733,7 @@ const Ja = (e) => {
|
|
|
720
733
|
...c,
|
|
721
734
|
vx: i ? "right" : "left"
|
|
722
735
|
}, e.dataset.outsideVx = c.vx) : delete e.dataset.outsideVx, c;
|
|
723
|
-
},
|
|
736
|
+
}, _a = (e, t, l) => {
|
|
724
737
|
if (getComputedStyle(e).zIndex === "9999") return;
|
|
725
738
|
const {
|
|
726
739
|
top: a,
|
|
@@ -728,11 +741,11 @@ const Ja = (e) => {
|
|
|
728
741
|
childHeight: c,
|
|
729
742
|
childWidth: u,
|
|
730
743
|
width: f,
|
|
731
|
-
right:
|
|
744
|
+
right: m,
|
|
732
745
|
left: h,
|
|
733
746
|
correctedPlacement: k
|
|
734
747
|
} = sa(e, t, l);
|
|
735
|
-
e.dataset.width === "full" && (e.style.inlineSize = `${f}px`), k === "top" || k === "bottom" || k === "top-start" || k === "bottom-start" ? e.style.insetInlineStart = `${h}px` : (k === "top-end" || k === "bottom-end") && (e.style.insetInlineStart = `${
|
|
748
|
+
e.dataset.width === "full" && (e.style.inlineSize = `${f}px`), k === "top" || k === "bottom" || k === "top-start" || k === "bottom-start" ? e.style.insetInlineStart = `${h}px` : (k === "top-end" || k === "bottom-end") && (e.style.insetInlineStart = `${m - u}px`), k?.startsWith("top") ? e.style.insetBlockStart = `${a - c}px` : k?.startsWith("bottom") && (e.style.insetBlockStart = `${i}px`), e.style.position = "fixed";
|
|
736
749
|
}, sa = (e, t, l) => {
|
|
737
750
|
if (!e || !t)
|
|
738
751
|
return {
|
|
@@ -753,15 +766,15 @@ const Ja = (e) => {
|
|
|
753
766
|
height: c,
|
|
754
767
|
bottom: u,
|
|
755
768
|
right: f,
|
|
756
|
-
left:
|
|
769
|
+
left: m,
|
|
757
770
|
width: h
|
|
758
771
|
} = t.getBoundingClientRect(), {
|
|
759
772
|
innerHeight: k,
|
|
760
773
|
innerWidth: $
|
|
761
774
|
} = window;
|
|
762
|
-
let
|
|
763
|
-
(l === "bottom" || l === "top") && (s = s / 2), (l === "left" || l === "right") && (
|
|
764
|
-
const d = u +
|
|
775
|
+
let g = a.height, s = a.width;
|
|
776
|
+
(l === "bottom" || l === "top") && (s = s / 2), (l === "left" || l === "right") && (g = g / 2);
|
|
777
|
+
const d = u + g > k, b = i - g < 0, I = m - s < 0, T = f + s > $;
|
|
765
778
|
let w = l;
|
|
766
779
|
return l.startsWith("bottom") ? d ? (w = l?.replace("bottom", "top"), I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end")) : I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end") : l.startsWith("top") ? b ? (w = l?.replace("top", "bottom"), I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end")) : I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end") : l.startsWith("left") ? I ? (w = l?.replace("left", "right"), d && b ? w = "right" : d ? w = "right-end" : b && (w = "right-start")) : d && b ? w = "left" : d ? w = "left-end" : b && (w = "left-start") : w.startsWith("right") && (T ? (w = l?.replace("right", "left"), d && b ? w = "left" : d ? w = "left-end" : b && (w = "left-start")) : d && b ? w = "right" : d ? w = "right-end" : b && (w = "right-start")), {
|
|
767
780
|
top: i,
|
|
@@ -769,7 +782,7 @@ const Ja = (e) => {
|
|
|
769
782
|
right: f,
|
|
770
783
|
height: c,
|
|
771
784
|
width: h,
|
|
772
|
-
left:
|
|
785
|
+
left: m,
|
|
773
786
|
childHeight: a.height,
|
|
774
787
|
childWidth: a.width,
|
|
775
788
|
correctedPlacement: w,
|
|
@@ -782,54 +795,55 @@ const Ja = (e) => {
|
|
|
782
795
|
height: c,
|
|
783
796
|
width: u,
|
|
784
797
|
childHeight: f,
|
|
785
|
-
childWidth:
|
|
798
|
+
childWidth: m,
|
|
786
799
|
right: h,
|
|
787
800
|
left: k,
|
|
788
801
|
bottom: $,
|
|
789
|
-
correctedPlacement:
|
|
802
|
+
correctedPlacement: g,
|
|
790
803
|
innerWidth: s,
|
|
791
804
|
innerHeight: d
|
|
792
805
|
} = sa(e, t, l);
|
|
793
|
-
if (
|
|
794
|
-
const b = u / 2 /
|
|
795
|
-
|
|
806
|
+
if (m > u && (g.startsWith("bottom") || g.startsWith("top"))) {
|
|
807
|
+
const b = u / 2 / m * 100;
|
|
808
|
+
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}%`);
|
|
796
809
|
}
|
|
797
|
-
if (f > c && (
|
|
810
|
+
if (f > c && (g.startsWith("left") || g.startsWith("bottom"))) {
|
|
798
811
|
const b = c / 2 / f * 100;
|
|
799
|
-
|
|
812
|
+
g.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-block-start", `${b}%`) : g.endsWith("end") && e.style.setProperty("--db-tooltip-arrow-block-start", `${100 - b}%`);
|
|
800
813
|
}
|
|
801
|
-
if (
|
|
814
|
+
if (g === "right" || g === "left")
|
|
802
815
|
e.style.insetBlockStart = `${i + c / 2}px`;
|
|
803
|
-
else if (
|
|
816
|
+
else if (g === "right-start" || g === "left-start") {
|
|
804
817
|
const b = i + f;
|
|
805
818
|
e.style.insetBlockStart = `${i}px`, e.style.insetBlockEnd = `${b > d ? d : b}px`;
|
|
806
|
-
} else if (
|
|
819
|
+
} else if (g === "right-end" || g === "left-end") {
|
|
807
820
|
const b = $ - f;
|
|
808
821
|
e.style.insetBlockStart = `${b < 0 ? 0 : b}px`, e.style.insetBlockEnd = `${$}px`;
|
|
809
|
-
} else if (
|
|
822
|
+
} else if (g === "top" || g === "bottom")
|
|
810
823
|
e.style.insetInlineStart = `${k + u / 2}px`;
|
|
811
|
-
else if (
|
|
812
|
-
const b = k +
|
|
824
|
+
else if (g === "top-start" || g === "bottom-start") {
|
|
825
|
+
const b = k + m;
|
|
813
826
|
e.style.insetInlineStart = `${k}px`, e.style.insetInlineEnd = `${b > s ? s : b}px`;
|
|
814
|
-
} else if (
|
|
815
|
-
const b = k -
|
|
816
|
-
e.style.insetInlineStart = `${h -
|
|
827
|
+
} else if (g === "top-end" || g === "bottom-end") {
|
|
828
|
+
const b = k - m;
|
|
829
|
+
e.style.insetInlineStart = `${h - m}px`, e.style.insetInlineEnd = `${b < 0 ? 0 : b}px`;
|
|
817
830
|
}
|
|
818
|
-
if (
|
|
819
|
-
const b = h +
|
|
831
|
+
if (g?.startsWith("right")) {
|
|
832
|
+
const b = h + m;
|
|
820
833
|
e.style.insetInlineStart = `calc(${h}px + ${a})`, e.style.insetInlineEnd = `calc(${b > s ? s : b}px + ${a})`;
|
|
821
|
-
} else if (
|
|
822
|
-
const b = k -
|
|
834
|
+
} else if (g?.startsWith("left")) {
|
|
835
|
+
const b = k - m;
|
|
823
836
|
e.style.insetInlineStart = `calc(${b < 0 ? 0 : b}px - ${a})`, e.style.insetInlineEnd = `calc(${h}px - ${a})`;
|
|
824
|
-
} else if (
|
|
837
|
+
} else if (g?.startsWith("top")) {
|
|
825
838
|
const b = i - f;
|
|
826
839
|
e.style.insetBlockStart = `calc(${b < 0 ? 0 : b}px - ${a})`, e.style.insetBlockEnd = `calc(${$}px - ${a})`;
|
|
827
|
-
} else if (
|
|
840
|
+
} else if (g?.startsWith("bottom")) {
|
|
828
841
|
const b = $ + f;
|
|
829
842
|
e.style.insetBlockStart = `calc(${$}px + ${a})`, e.style.insetBlockEnd = `calc(${b > d ? d : b}px + ${a})`;
|
|
830
843
|
}
|
|
831
|
-
e.style.position = "fixed", e.dataset.correctedPlacement =
|
|
832
|
-
},
|
|
844
|
+
e.style.position = "fixed", e.dataset.correctedPlacement = g;
|
|
845
|
+
}, et = ["id", "data-width"], at = /* @__PURE__ */ W({
|
|
846
|
+
name: "DBCustomSelectDropdown",
|
|
833
847
|
__name: "custom-select-dropdown",
|
|
834
848
|
props: {
|
|
835
849
|
width: { default: "fixed" },
|
|
@@ -846,13 +860,14 @@ const Ja = (e) => {
|
|
|
846
860
|
ref_key: "_ref",
|
|
847
861
|
ref: l,
|
|
848
862
|
id: e.id,
|
|
849
|
-
class:
|
|
863
|
+
class: O(n(U)("db-custom-select-dropdown db-card", t.class)),
|
|
850
864
|
"data-width": e.width
|
|
851
865
|
}, [
|
|
852
|
-
|
|
853
|
-
], 10,
|
|
866
|
+
M(a.$slots, "default")
|
|
867
|
+
], 10, et));
|
|
854
868
|
}
|
|
855
|
-
}),
|
|
869
|
+
}), tt = ["id", "data-divider"], it = ["data-icon", "data-show-icon", "data-icon-trailing"], lt = ["type", "name", "form", "checked", "disabled", "value"], nt = { key: 1 }, ot = /* @__PURE__ */ W({
|
|
870
|
+
name: "DBCustomSelectListItem",
|
|
856
871
|
__name: "custom-select-list-item",
|
|
857
872
|
props: {
|
|
858
873
|
groupTitle: { default: void 0 },
|
|
@@ -892,7 +907,7 @@ const Ja = (e) => {
|
|
|
892
907
|
function f(h) {
|
|
893
908
|
h.stopPropagation(), a.onChange && a.onChange(h), de(l, h, "checked");
|
|
894
909
|
}
|
|
895
|
-
function
|
|
910
|
+
function m() {
|
|
896
911
|
if (!(a.isGroupTitle || a.type === "checkbox"))
|
|
897
912
|
return q(a.checked, "checked") ? "check" : "x_placeholder";
|
|
898
913
|
}
|
|
@@ -900,19 +915,19 @@ const Ja = (e) => {
|
|
|
900
915
|
ref_key: "_ref",
|
|
901
916
|
ref: u,
|
|
902
917
|
id: i.value,
|
|
903
|
-
class:
|
|
904
|
-
n(
|
|
918
|
+
class: O(
|
|
919
|
+
n(U)("db-custom-select-list-item", a.class, {
|
|
905
920
|
"db-checkbox": e.type === "checkbox" && !e.isGroupTitle,
|
|
906
921
|
"db-radio": e.type !== "checkbox" && !e.isGroupTitle
|
|
907
922
|
})
|
|
908
923
|
),
|
|
909
|
-
"data-divider": n(
|
|
924
|
+
"data-divider": n(P)(c.value)
|
|
910
925
|
}, [
|
|
911
|
-
e.isGroupTitle ? (v(), y("span",
|
|
926
|
+
e.isGroupTitle ? (v(), y("span", nt, S(e.groupTitle), 1)) : (v(), y("label", {
|
|
912
927
|
key: 0,
|
|
913
928
|
"data-icon": e.type !== "checkbox" && e.icon ? e.icon : void 0,
|
|
914
|
-
"data-show-icon": n(
|
|
915
|
-
"data-icon-trailing":
|
|
929
|
+
"data-show-icon": n(P)(e.showIcon),
|
|
930
|
+
"data-icon-trailing": m()
|
|
916
931
|
}, [
|
|
917
932
|
E("input", {
|
|
918
933
|
class: "db-custom-select-list-item-checkbox",
|
|
@@ -924,14 +939,15 @@ const Ja = (e) => {
|
|
|
924
939
|
disabled: n(q)(e.disabled, "disabled"),
|
|
925
940
|
value: e.value,
|
|
926
941
|
onChange: k[0] || (k[0] = async ($) => f($))
|
|
927
|
-
}, null, 40,
|
|
942
|
+
}, null, 40, lt),
|
|
928
943
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
929
|
-
D(
|
|
930
|
-
], 64)) :
|
|
931
|
-
], 8,
|
|
932
|
-
], 10,
|
|
944
|
+
D(S(e.label), 1)
|
|
945
|
+
], 64)) : M(h.$slots, "default", { key: 1 })
|
|
946
|
+
], 8, it))
|
|
947
|
+
], 10, tt));
|
|
933
948
|
}
|
|
934
|
-
}),
|
|
949
|
+
}), dt = ["role", "aria-label", "id"], st = /* @__PURE__ */ W({
|
|
950
|
+
name: "DBCustomSelectList",
|
|
935
951
|
__name: "custom-select-list",
|
|
936
952
|
props: {
|
|
937
953
|
label: { default: void 0 },
|
|
@@ -950,17 +966,18 @@ const Ja = (e) => {
|
|
|
950
966
|
ref_key: "_ref",
|
|
951
967
|
ref: l,
|
|
952
968
|
id: e.id,
|
|
953
|
-
class:
|
|
969
|
+
class: O(n(U)("db-custom-select-list", t.class))
|
|
954
970
|
}, [
|
|
955
971
|
E("ul", null, [
|
|
956
|
-
|
|
972
|
+
M(a.$slots, "default")
|
|
957
973
|
])
|
|
958
|
-
], 10,
|
|
974
|
+
], 10, dt));
|
|
959
975
|
}
|
|
960
|
-
}),
|
|
976
|
+
}), ut = ["data-variant", "data-hide-label", "data-show-icon", "data-icon", "data-icon-trailing", "data-hide-asterisk", "data-show-icon-trailing"], ct = ["for"], rt = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "name", "type", "multiple", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "enterKeyHint", "inputMode", "list", "aria-describedby", "role"], vt = ["id"], ft = ["value"], ht = {
|
|
961
977
|
"data-visually-hidden": "true",
|
|
962
978
|
role: "status"
|
|
963
|
-
},
|
|
979
|
+
}, mt = /* @__PURE__ */ W({
|
|
980
|
+
name: "DBInput",
|
|
964
981
|
__name: "input",
|
|
965
982
|
props: {
|
|
966
983
|
dataList: { default: void 0 },
|
|
@@ -1024,16 +1041,16 @@ const Ja = (e) => {
|
|
|
1024
1041
|
},
|
|
1025
1042
|
emits: ["update:value"],
|
|
1026
1043
|
setup(e, { emit: t }) {
|
|
1027
|
-
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0),
|
|
1044
|
+
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0), m = o(void 0), h = o(void 0), k = o(void 0), $ = o(void 0), g = o(""), s = o(void 0), d = o(null);
|
|
1028
1045
|
J(() => {
|
|
1029
1046
|
const N = a.id ?? `input-${_()}`;
|
|
1030
|
-
i.value = N, c.value = N + ce, u.value = N + re, f.value = N + ve, h.value = N + Qe,
|
|
1047
|
+
i.value = N, c.value = N + ce, u.value = N + re, f.value = N + ve, h.value = N + Qe, m.value = a.invalidMessage || ee;
|
|
1031
1048
|
}), he(() => {
|
|
1032
1049
|
s.value?.abort();
|
|
1033
1050
|
}), C(
|
|
1034
1051
|
() => [d.value, a.invalidMessage],
|
|
1035
1052
|
() => {
|
|
1036
|
-
|
|
1053
|
+
m.value = a.invalidMessage || d.value?.validationMessage || ee;
|
|
1037
1054
|
},
|
|
1038
1055
|
{
|
|
1039
1056
|
immediate: !0,
|
|
@@ -1065,7 +1082,7 @@ const Ja = (e) => {
|
|
|
1065
1082
|
() => {
|
|
1066
1083
|
if (d.value) {
|
|
1067
1084
|
let X = s.value;
|
|
1068
|
-
X || (X = new AbortController(), s.value = X),
|
|
1085
|
+
X || (X = new AbortController(), s.value = X), Oe(
|
|
1069
1086
|
d.value,
|
|
1070
1087
|
{
|
|
1071
1088
|
value: a.value,
|
|
@@ -1087,7 +1104,7 @@ const Ja = (e) => {
|
|
|
1087
1104
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
1088
1105
|
}
|
|
1089
1106
|
function I() {
|
|
1090
|
-
!d.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value,
|
|
1107
|
+
!d.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, m.value = a.invalidMessage || d.value?.validationMessage || ee, ue() && (g.value = m.value, K(() => g.value = "", 1e3))) : b() && d.value?.validity.valid && (a.required || a.minLength || a.maxLength || a.pattern) ? (k.value = u.value, ue() && (g.value = a.validMessage ?? se, K(() => g.value = "", 1e3))) : Z(a.message, a.showMessage) ? k.value = c.value : k.value = void 0;
|
|
1091
1108
|
}
|
|
1092
1109
|
function T(N, X) {
|
|
1093
1110
|
a.input && a.input(N), $.value = N.target.value, a.onInput && a.onInput(N), de(l, N), I();
|
|
@@ -1098,29 +1115,29 @@ const Ja = (e) => {
|
|
|
1098
1115
|
function L(N) {
|
|
1099
1116
|
a.onBlur && a.onBlur(N);
|
|
1100
1117
|
}
|
|
1101
|
-
function
|
|
1118
|
+
function B(N) {
|
|
1102
1119
|
a.onFocus && a.onFocus(N);
|
|
1103
1120
|
}
|
|
1104
|
-
function
|
|
1121
|
+
function F() {
|
|
1105
1122
|
const N = a.dataList;
|
|
1106
1123
|
return Array.from(
|
|
1107
|
-
(
|
|
1124
|
+
(Fa(N) ? N?.map((X) => ({
|
|
1108
1125
|
value: X,
|
|
1109
1126
|
label: void 0
|
|
1110
1127
|
})) : N) || []
|
|
1111
1128
|
);
|
|
1112
1129
|
}
|
|
1113
1130
|
return (N, X) => (v(), y("div", {
|
|
1114
|
-
class:
|
|
1131
|
+
class: O(n(U)("db-input", a.class)),
|
|
1115
1132
|
"data-variant": e.variant,
|
|
1116
1133
|
"data-hide-label": n(ne)(e.showLabel),
|
|
1117
|
-
"data-show-icon": n(
|
|
1134
|
+
"data-show-icon": n(P)(e.showIconLeading ?? e.showIcon),
|
|
1118
1135
|
"data-icon": e.iconLeading ?? e.icon,
|
|
1119
1136
|
"data-icon-trailing": e.iconTrailing,
|
|
1120
1137
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
1121
|
-
"data-show-icon-trailing": n(
|
|
1138
|
+
"data-show-icon-trailing": n(P)(e.showIconTrailing)
|
|
1122
1139
|
}, [
|
|
1123
|
-
E("label", { for: i.value },
|
|
1140
|
+
E("label", { for: i.value }, S(e.label ?? n(ye)), 9, ct),
|
|
1124
1141
|
E("input", {
|
|
1125
1142
|
"aria-invalid": e.validation === "invalid",
|
|
1126
1143
|
"data-custom-validity": e.validation,
|
|
@@ -1134,10 +1151,10 @@ const Ja = (e) => {
|
|
|
1134
1151
|
placeholder: e.placeholder ?? n(ea),
|
|
1135
1152
|
disabled: n(q)(e.disabled, "disabled"),
|
|
1136
1153
|
required: n(q)(e.required, "required"),
|
|
1137
|
-
step: n(
|
|
1154
|
+
step: n(Ra)(e.step),
|
|
1138
1155
|
value: e.value ?? $.value,
|
|
1139
|
-
maxLength: n(
|
|
1140
|
-
minLength: n(
|
|
1156
|
+
maxLength: n(Se)(e.maxLength, e.maxlength),
|
|
1157
|
+
minLength: n(Se)(e.minLength, e.minlength),
|
|
1141
1158
|
max: n(Ze)(e.max, e.type),
|
|
1142
1159
|
min: n(Ze)(e.min, e.type),
|
|
1143
1160
|
readOnly: n(q)(e.readOnly, "readOnly") || n(q)(e.readonly, "readonly"),
|
|
@@ -1151,23 +1168,23 @@ const Ja = (e) => {
|
|
|
1151
1168
|
onInput: X[0] || (X[0] = async (A) => T(A)),
|
|
1152
1169
|
onChange: X[1] || (X[1] = async (A) => w(A)),
|
|
1153
1170
|
onBlur: X[2] || (X[2] = async (A) => L(A)),
|
|
1154
|
-
onFocus: X[3] || (X[3] = async (A) =>
|
|
1171
|
+
onFocus: X[3] || (X[3] = async (A) => B(A)),
|
|
1155
1172
|
list: e.dataList && h.value,
|
|
1156
1173
|
"aria-describedby": e.ariaDescribedBy ?? k.value,
|
|
1157
1174
|
role: ["datetime-local", "date", "time", "week", "month", "color"].includes(
|
|
1158
1175
|
e.type ?? ""
|
|
1159
1176
|
) && n(Na)() ? "textbox" : void 0
|
|
1160
|
-
}, null, 40,
|
|
1177
|
+
}, null, 40, rt),
|
|
1161
1178
|
e.dataList ? (v(), y("datalist", {
|
|
1162
1179
|
key: 0,
|
|
1163
1180
|
id: h.value
|
|
1164
1181
|
}, [
|
|
1165
|
-
(v(!0), y(H, null,
|
|
1182
|
+
(v(!0), y(H, null, me(F(), (A) => (v(), y("option", {
|
|
1166
1183
|
key: h.value + "-option-" + A.value,
|
|
1167
1184
|
value: A.value
|
|
1168
|
-
},
|
|
1169
|
-
], 8,
|
|
1170
|
-
|
|
1185
|
+
}, S(A.label), 9, ft))), 128))
|
|
1186
|
+
], 8, vt)) : z("", !0),
|
|
1187
|
+
M(N.$slots, "default"),
|
|
1171
1188
|
n(Z)(e.message, e.showMessage) ? (v(), Y(Q, {
|
|
1172
1189
|
key: 1,
|
|
1173
1190
|
size: e.messageSize || "small",
|
|
@@ -1175,7 +1192,7 @@ const Ja = (e) => {
|
|
|
1175
1192
|
id: c.value
|
|
1176
1193
|
}, {
|
|
1177
1194
|
default: G(() => [
|
|
1178
|
-
D(
|
|
1195
|
+
D(S(e.message), 1)
|
|
1179
1196
|
]),
|
|
1180
1197
|
_: 1
|
|
1181
1198
|
}, 8, ["size", "icon", "id"])) : z("", !0),
|
|
@@ -1186,7 +1203,7 @@ const Ja = (e) => {
|
|
|
1186
1203
|
size: e.validMessageSize || "small"
|
|
1187
1204
|
}, {
|
|
1188
1205
|
default: G(() => [
|
|
1189
|
-
D(
|
|
1206
|
+
D(S(e.validMessage || n(se)), 1)
|
|
1190
1207
|
]),
|
|
1191
1208
|
_: 1
|
|
1192
1209
|
}, 8, ["id", "size"])) : z("", !0),
|
|
@@ -1196,14 +1213,15 @@ const Ja = (e) => {
|
|
|
1196
1213
|
size: e.invalidMessageSize || "small"
|
|
1197
1214
|
}, {
|
|
1198
1215
|
default: G(() => [
|
|
1199
|
-
D(
|
|
1216
|
+
D(S(m.value), 1)
|
|
1200
1217
|
]),
|
|
1201
1218
|
_: 1
|
|
1202
1219
|
}, 8, ["id", "size"]),
|
|
1203
|
-
E("span",
|
|
1204
|
-
], 10,
|
|
1220
|
+
E("span", ht, S(g.value), 1)
|
|
1221
|
+
], 10, ut));
|
|
1205
1222
|
}
|
|
1206
1223
|
}), gt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ca = /* @__PURE__ */ W({
|
|
1224
|
+
name: "DBTooltip",
|
|
1207
1225
|
__name: "tooltip",
|
|
1208
1226
|
props: {
|
|
1209
1227
|
showArrow: { type: [Boolean, String], default: void 0 },
|
|
@@ -1230,11 +1248,11 @@ const Ja = (e) => {
|
|
|
1230
1248
|
const d = h();
|
|
1231
1249
|
d && (["mouseenter", "focusin"].forEach((b) => {
|
|
1232
1250
|
d.addEventListener(b, () => s(d));
|
|
1233
|
-
}), d.addEventListener("keydown", (b) =>
|
|
1234
|
-
d.addEventListener(b, () =>
|
|
1251
|
+
}), d.addEventListener("keydown", (b) => m(b)), ["mouseleave", "focusout"].forEach((b) => {
|
|
1252
|
+
d.addEventListener(b, () => g());
|
|
1235
1253
|
}), d.dataset.hasTooltip = "true", t.variant === "label" ? d.setAttribute("aria-labelledby", l.value) : d.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (c.value = new IntersectionObserver((b) => {
|
|
1236
1254
|
const I = b.find(({ target: T }) => T === h());
|
|
1237
|
-
I && !I.isIntersecting &&
|
|
1255
|
+
I && !I.isIntersecting && m(!1);
|
|
1238
1256
|
})), a.value = !1;
|
|
1239
1257
|
}
|
|
1240
1258
|
},
|
|
@@ -1246,7 +1264,7 @@ const Ja = (e) => {
|
|
|
1246
1264
|
function f(d) {
|
|
1247
1265
|
d.stopPropagation();
|
|
1248
1266
|
}
|
|
1249
|
-
function
|
|
1267
|
+
function m(d) {
|
|
1250
1268
|
(!d || d.key === "Escape") && u.value && getComputedStyle(u.value).visibility === "visible" && h().blur();
|
|
1251
1269
|
}
|
|
1252
1270
|
function h() {
|
|
@@ -1265,7 +1283,7 @@ const Ja = (e) => {
|
|
|
1265
1283
|
function $(d, b) {
|
|
1266
1284
|
d?.target?.contains && d?.target?.contains(u.value) && k(b);
|
|
1267
1285
|
}
|
|
1268
|
-
function
|
|
1286
|
+
function g() {
|
|
1269
1287
|
i.value && new oe().removeCallback(
|
|
1270
1288
|
i.value
|
|
1271
1289
|
), c.value?.unobserve(h());
|
|
@@ -1281,20 +1299,21 @@ const Ja = (e) => {
|
|
|
1281
1299
|
"data-gap": "true",
|
|
1282
1300
|
ref_key: "_ref",
|
|
1283
1301
|
ref: u,
|
|
1284
|
-
class:
|
|
1302
|
+
class: O(n(U)("db-tooltip", t.class)),
|
|
1285
1303
|
id: l.value,
|
|
1286
1304
|
"data-emphasis": e.emphasis,
|
|
1287
|
-
"data-animation": n(
|
|
1305
|
+
"data-animation": n(P)(e.animation ?? !0),
|
|
1288
1306
|
"data-delay": e.delay,
|
|
1289
1307
|
"data-width": e.width,
|
|
1290
|
-
"data-show-arrow": n(
|
|
1308
|
+
"data-show-arrow": n(P)(e.showArrow ?? !0),
|
|
1291
1309
|
"data-placement": e.placement,
|
|
1292
1310
|
onClick: b[0] || (b[0] = async (I) => f(I))
|
|
1293
1311
|
}, [
|
|
1294
|
-
|
|
1312
|
+
M(d.$slots, "default")
|
|
1295
1313
|
], 10, gt));
|
|
1296
1314
|
}
|
|
1297
|
-
}),
|
|
1315
|
+
}), bt = ["id", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-show-icon", "data-no-text", "data-overflow"], yt = /* @__PURE__ */ W({
|
|
1316
|
+
name: "DBTag",
|
|
1298
1317
|
__name: "tag",
|
|
1299
1318
|
props: {
|
|
1300
1319
|
behavior: { default: void 0 },
|
|
@@ -1329,19 +1348,19 @@ const Ja = (e) => {
|
|
|
1329
1348
|
ref_key: "_ref",
|
|
1330
1349
|
ref: l,
|
|
1331
1350
|
id: e.id,
|
|
1332
|
-
class:
|
|
1351
|
+
class: O(n(U)("db-tag", t.class)),
|
|
1333
1352
|
"data-semantic": e.semantic,
|
|
1334
1353
|
"data-emphasis": e.emphasis,
|
|
1335
1354
|
"data-icon": e.icon,
|
|
1336
|
-
"data-show-check-state": n(
|
|
1337
|
-
"data-show-icon": n(
|
|
1338
|
-
"data-no-text": n(
|
|
1339
|
-
"data-overflow": n(
|
|
1355
|
+
"data-show-check-state": n(P)(e.showCheckState ?? !0),
|
|
1356
|
+
"data-show-icon": n(P)(e.showIcon),
|
|
1357
|
+
"data-no-text": n(P)(e.noText),
|
|
1358
|
+
"data-overflow": n(P)(e.overflow)
|
|
1340
1359
|
}, [
|
|
1341
|
-
|
|
1342
|
-
|
|
1360
|
+
M(c.$slots, "content"),
|
|
1361
|
+
M(c.$slots, "default"),
|
|
1343
1362
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
1344
|
-
D(
|
|
1363
|
+
D(S(e.text), 1)
|
|
1345
1364
|
], 64)) : z("", !0),
|
|
1346
1365
|
e.behavior === "removable" ? (v(), y("button", {
|
|
1347
1366
|
key: 1,
|
|
@@ -1355,20 +1374,21 @@ const Ja = (e) => {
|
|
|
1355
1374
|
}, [
|
|
1356
1375
|
te(ca, { variant: "label" }, {
|
|
1357
1376
|
default: G(() => [
|
|
1358
|
-
D(
|
|
1377
|
+
D(S(i()), 1)
|
|
1359
1378
|
]),
|
|
1360
1379
|
_: 1
|
|
1361
1380
|
})
|
|
1362
1381
|
])) : z("", !0)
|
|
1363
|
-
], 10,
|
|
1382
|
+
], 10, bt));
|
|
1364
1383
|
}
|
|
1365
|
-
}),
|
|
1384
|
+
}), kt = ["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"], wt = ["id"], Bt = ["id", "form", "name", "multiple", "disabled", "required"], St = ["disabled", "value"], pt = ["open"], Lt = ["id", "aria-disabled", "aria-labelledby"], It = ["data-visually-hidden", "id"], xt = {
|
|
1366
1385
|
key: 0,
|
|
1367
1386
|
"data-visually-hidden": "true"
|
|
1368
|
-
},
|
|
1387
|
+
}, $t = { key: 1 }, Tt = { key: 0 }, Ct = { key: 0 }, Et = { class: "db-checkbox db-custom-select-list-item" }, At = ["form", "checked"], Dt = ["aria-hidden", "id"], Ft = {
|
|
1369
1388
|
"data-visually-hidden": "true",
|
|
1370
1389
|
role: "status"
|
|
1371
|
-
},
|
|
1390
|
+
}, bl = /* @__PURE__ */ W({
|
|
1391
|
+
name: "DBCustomSelect",
|
|
1372
1392
|
__name: "custom-select",
|
|
1373
1393
|
props: {
|
|
1374
1394
|
children: { default: void 0 },
|
|
@@ -1434,21 +1454,21 @@ const Ja = (e) => {
|
|
|
1434
1454
|
},
|
|
1435
1455
|
emits: ["update:values"],
|
|
1436
1456
|
setup(e, { emit: t }) {
|
|
1437
|
-
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0),
|
|
1457
|
+
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0), m = o(void 0), h = o(void 0), k = o(void 0), $ = o(void 0), g = o(void 0), s = o(void 0), d = o("no-validation"), b = o(!1), I = o(void 0), T = o(void 0), w = o(""), L = o(void 0), B = o(""), F = o([]), N = o(!1), X = o(!1), A = o(0), R = o([]), j = o([]), pe = o(!1), ge = o(void 0), Ce = o(0), Me = o(void 0), Ne = o(void 0), Re = o(void 0), ze = o(!1), Ie = o(!1), ra = o(null), V = o(null), le = o(null), Ee = o(null), Pe = o(null);
|
|
1438
1458
|
J(() => {
|
|
1439
1459
|
const r = a.id ?? `custom-select-${_()}`;
|
|
1440
|
-
i.value = r, c.value = r + ce, u.value = r + re, f.value = r + ve, h.value = r + Je, k.value = r + Ye, $.value = r + "-summary",
|
|
1441
|
-
if (
|
|
1442
|
-
const x = p.find(({ target: ae }) => ae ===
|
|
1443
|
-
x && !x.isIntersecting &&
|
|
1460
|
+
i.value = r, c.value = r + ce, u.value = r + re, f.value = r + ve, h.value = r + Je, k.value = r + Ye, $.value = r + "-summary", g.value = r + De, L.value = r + "-selected-labels", s.value = r + "-info", m.value = a.invalidMessage || ee, typeof window < "u" && "IntersectionObserver" in window && (Ne.value = new IntersectionObserver((p) => {
|
|
1461
|
+
if (V.value) {
|
|
1462
|
+
const x = p.find(({ target: ae }) => ae === V.value);
|
|
1463
|
+
x && !x.isIntersecting && V.value.open && (V.value.open = !1);
|
|
1444
1464
|
}
|
|
1445
1465
|
}));
|
|
1446
1466
|
}), he(() => {
|
|
1447
1467
|
I.value?.abort();
|
|
1448
1468
|
}), C(
|
|
1449
|
-
() => [
|
|
1469
|
+
() => [V.value],
|
|
1450
1470
|
() => {
|
|
1451
|
-
|
|
1471
|
+
V.value && V.value.addEventListener(
|
|
1452
1472
|
"focusout",
|
|
1453
1473
|
(r) => xe(r)
|
|
1454
1474
|
);
|
|
@@ -1462,7 +1482,7 @@ const Ja = (e) => {
|
|
|
1462
1482
|
() => {
|
|
1463
1483
|
if (i.value) {
|
|
1464
1484
|
const r = i.value + ce;
|
|
1465
|
-
k.value = i.value + Ye, h.value = i.value + Je, u.value = i.value + re, f.value = i.value + ve,
|
|
1485
|
+
k.value = i.value + Ye, h.value = i.value + Je, u.value = i.value + re, f.value = i.value + ve, g.value = i.value + De, Z(a.message, a.showMessage) ? Le(r) : Le();
|
|
1466
1486
|
}
|
|
1467
1487
|
},
|
|
1468
1488
|
{
|
|
@@ -1470,10 +1490,10 @@ const Ja = (e) => {
|
|
|
1470
1490
|
flush: "post"
|
|
1471
1491
|
}
|
|
1472
1492
|
), C(
|
|
1473
|
-
() => [
|
|
1493
|
+
() => [V.value, T.value],
|
|
1474
1494
|
() => {
|
|
1475
|
-
if (
|
|
1476
|
-
const r =
|
|
1495
|
+
if (V.value) {
|
|
1496
|
+
const r = V.value.querySelector("summary");
|
|
1477
1497
|
r && r.setAttribute(
|
|
1478
1498
|
"aria-describedby",
|
|
1479
1499
|
a.ariaDescribedBy ?? (T.value || "")
|
|
@@ -1537,7 +1557,7 @@ const Ja = (e) => {
|
|
|
1537
1557
|
let r = I.value;
|
|
1538
1558
|
r || (r = new AbortController(), I.value = r);
|
|
1539
1559
|
const p = a.values;
|
|
1540
|
-
|
|
1560
|
+
Fe(
|
|
1541
1561
|
le.value,
|
|
1542
1562
|
() => {
|
|
1543
1563
|
const x = p || (le.value.value ? [le.value.value] : []);
|
|
@@ -1593,7 +1613,7 @@ const Ja = (e) => {
|
|
|
1593
1613
|
), C(
|
|
1594
1614
|
() => [a.options, R.value],
|
|
1595
1615
|
() => {
|
|
1596
|
-
a.options?.length && (
|
|
1616
|
+
a.options?.length && (F.value = a.options?.filter(
|
|
1597
1617
|
(r) => !r.value || !R.value?.includes ? !1 : !r.isGroupTitle && R.value?.includes(r.value)
|
|
1598
1618
|
));
|
|
1599
1619
|
},
|
|
@@ -1603,7 +1623,7 @@ const Ja = (e) => {
|
|
|
1603
1623
|
}
|
|
1604
1624
|
), C(
|
|
1605
1625
|
() => [
|
|
1606
|
-
|
|
1626
|
+
F.value,
|
|
1607
1627
|
a.selectedType,
|
|
1608
1628
|
a.amountText,
|
|
1609
1629
|
a.selectedLabels,
|
|
@@ -1614,13 +1634,13 @@ const Ja = (e) => {
|
|
|
1614
1634
|
w.value = a.selectedLabels;
|
|
1615
1635
|
return;
|
|
1616
1636
|
}
|
|
1617
|
-
if (
|
|
1637
|
+
if (F.value?.length) {
|
|
1618
1638
|
if (a.transformSelectedLabels) {
|
|
1619
|
-
const r =
|
|
1639
|
+
const r = F.value, p = a.transformSelectedLabels;
|
|
1620
1640
|
w.value = p(r);
|
|
1621
1641
|
return;
|
|
1622
1642
|
}
|
|
1623
|
-
a.selectedType === "amount" ? w.value = a.amountText ? a.amountText : `${
|
|
1643
|
+
a.selectedType === "amount" ? w.value = a.amountText ? a.amountText : `${F.value?.length} ${$a}` : w.value = F.value?.map((r) => we(r)).join(", ");
|
|
1624
1644
|
} else
|
|
1625
1645
|
w.value = "";
|
|
1626
1646
|
},
|
|
@@ -1629,9 +1649,9 @@ const Ja = (e) => {
|
|
|
1629
1649
|
flush: "post"
|
|
1630
1650
|
}
|
|
1631
1651
|
), C(
|
|
1632
|
-
() => [
|
|
1652
|
+
() => [F.value],
|
|
1633
1653
|
() => {
|
|
1634
|
-
a.onAmountChange && a.onAmountChange(
|
|
1654
|
+
a.onAmountChange && a.onAmountChange(F.value?.length ?? 0);
|
|
1635
1655
|
},
|
|
1636
1656
|
{
|
|
1637
1657
|
immediate: !0,
|
|
@@ -1649,7 +1669,7 @@ const Ja = (e) => {
|
|
|
1649
1669
|
), C(
|
|
1650
1670
|
() => [le.value, a.invalidMessage],
|
|
1651
1671
|
() => {
|
|
1652
|
-
|
|
1672
|
+
m.value = a.invalidMessage || le.value?.validationMessage || ee;
|
|
1653
1673
|
},
|
|
1654
1674
|
{
|
|
1655
1675
|
immediate: !0,
|
|
@@ -1657,24 +1677,24 @@ const Ja = (e) => {
|
|
|
1657
1677
|
}
|
|
1658
1678
|
);
|
|
1659
1679
|
function va(r) {
|
|
1660
|
-
r?.target?.contains && r?.target?.contains(
|
|
1680
|
+
r?.target?.contains && r?.target?.contains(V.value) && Ve();
|
|
1661
1681
|
}
|
|
1662
|
-
function
|
|
1682
|
+
function Ue() {
|
|
1663
1683
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
1664
1684
|
}
|
|
1665
1685
|
function Ge() {
|
|
1666
|
-
le.value && (le.value.value = ha()), !le.value?.validity.valid || a.validation === "invalid" ? (Le(f.value),
|
|
1686
|
+
le.value && (le.value.value = ha()), !le.value?.validity.valid || a.validation === "invalid" ? (Le(f.value), m.value = a.invalidMessage || le.value?.validationMessage || ee, ue() && (B.value = m.value, K(() => B.value = "", 1e3)), b.value && (d.value = a.validation ?? "invalid")) : Ue() && le.value?.validity.valid && a.required ? (Le(u.value), ue() && (B.value = a.validMessage ?? se, K(() => B.value = "", 1e3)), d.value = a.validation ?? "valid") : Z(a.message, a.showMessage) ? (Le(c.value), d.value = a.validation ?? "no-validation") : (Le(g.value), d.value = a.validation ?? "no-validation");
|
|
1667
1687
|
}
|
|
1668
1688
|
function fa(r) {
|
|
1669
|
-
a.onDropdownToggle && (r.stopPropagation(), a.onDropdownToggle(r)), r.target instanceof HTMLDetailsElement && r.target.open ? (
|
|
1670
|
-
(p) =>
|
|
1671
|
-
),
|
|
1689
|
+
a.onDropdownToggle && (r.stopPropagation(), a.onDropdownToggle(r)), r.target instanceof HTMLDetailsElement && r.target.open ? (ge.value = new fe().addCallback(
|
|
1690
|
+
(p) => Ba(p)
|
|
1691
|
+
), Me.value = new oe().addCallback(
|
|
1672
1692
|
(p) => va(p)
|
|
1673
|
-
),
|
|
1674
|
-
|
|
1675
|
-
),
|
|
1676
|
-
|
|
1677
|
-
), Ne.value?.unobserve(
|
|
1693
|
+
), Ve(), Ne.value?.observe(V.value), r.target.dataset.test || He()) : (ge.value && new fe().removeCallback(
|
|
1694
|
+
ge.value
|
|
1695
|
+
), Me.value && new oe().removeCallback(
|
|
1696
|
+
Me.value
|
|
1697
|
+
), Ne.value?.unobserve(V.value));
|
|
1678
1698
|
}
|
|
1679
1699
|
function ha() {
|
|
1680
1700
|
return R.value?.length ? R.value.at(0) ?? "" : "";
|
|
@@ -1683,13 +1703,13 @@ const Ja = (e) => {
|
|
|
1683
1703
|
const p = [];
|
|
1684
1704
|
r && p.push(r), L.value && w.value?.length && p.push(L.value), T.value = p.join(" ");
|
|
1685
1705
|
}
|
|
1686
|
-
function
|
|
1706
|
+
function ma() {
|
|
1687
1707
|
return a.selectAllLabel ?? ye;
|
|
1688
1708
|
}
|
|
1689
|
-
function
|
|
1709
|
+
function we(r) {
|
|
1690
1710
|
return r.label ?? r.value?.toString() ?? "";
|
|
1691
1711
|
}
|
|
1692
|
-
function
|
|
1712
|
+
function ga(r) {
|
|
1693
1713
|
return r && R.value?.includes ? R.value?.includes(r) : !1;
|
|
1694
1714
|
}
|
|
1695
1715
|
function ba(r) {
|
|
@@ -1699,25 +1719,25 @@ const Ja = (e) => {
|
|
|
1699
1719
|
if (ae >= 0 && ae < p.length)
|
|
1700
1720
|
return p[ae];
|
|
1701
1721
|
}
|
|
1702
|
-
return `${aa} ${
|
|
1722
|
+
return `${aa} ${we(r)}`;
|
|
1703
1723
|
}
|
|
1704
1724
|
function ya(r, p) {
|
|
1705
1725
|
p && p.stopPropagation(), We(r.value), $e();
|
|
1706
1726
|
}
|
|
1707
|
-
function
|
|
1708
|
-
if (
|
|
1709
|
-
const r =
|
|
1727
|
+
function Ve() {
|
|
1728
|
+
if (V.value) {
|
|
1729
|
+
const r = V.value.querySelector("article");
|
|
1710
1730
|
r && K(() => {
|
|
1711
|
-
|
|
1731
|
+
_a(
|
|
1712
1732
|
r,
|
|
1713
|
-
|
|
1733
|
+
V.value,
|
|
1714
1734
|
a.placement ?? "bottom"
|
|
1715
1735
|
);
|
|
1716
1736
|
}, 1);
|
|
1717
1737
|
}
|
|
1718
1738
|
}
|
|
1719
1739
|
function ka(r) {
|
|
1720
|
-
if (
|
|
1740
|
+
if (V.value?.open) {
|
|
1721
1741
|
if (self.document) {
|
|
1722
1742
|
const p = self.document.activeElement;
|
|
1723
1743
|
if (p)
|
|
@@ -1745,20 +1765,20 @@ const Ja = (e) => {
|
|
|
1745
1765
|
ie = ie.previousElementSibling;
|
|
1746
1766
|
}
|
|
1747
1767
|
if (!ie) {
|
|
1748
|
-
const be =
|
|
1768
|
+
const be = V.value.querySelector(
|
|
1749
1769
|
'input[type="checkbox"]'
|
|
1750
1770
|
);
|
|
1751
1771
|
if (be && be !== p)
|
|
1752
1772
|
Ae(p);
|
|
1753
1773
|
else {
|
|
1754
|
-
const je = _e(
|
|
1774
|
+
const je = _e(V.value);
|
|
1755
1775
|
if (je)
|
|
1756
1776
|
K(() => {
|
|
1757
1777
|
je.focus();
|
|
1758
1778
|
}, 100);
|
|
1759
1779
|
else {
|
|
1760
1780
|
const Ke = Array.from(
|
|
1761
|
-
|
|
1781
|
+
V.value?.querySelectorAll(
|
|
1762
1782
|
'input[type="checkbox"],input[type="radio"]'
|
|
1763
1783
|
)
|
|
1764
1784
|
);
|
|
@@ -1770,13 +1790,13 @@ const Ja = (e) => {
|
|
|
1770
1790
|
} else
|
|
1771
1791
|
p.getAttribute("type") === "search" && (r.key === "ArrowUp" || r.key === "ArrowLeft") ? (xe(void 0, !0), $e()) : Ae(p);
|
|
1772
1792
|
}
|
|
1773
|
-
} else (r.key === "ArrowDown" || r.key === "ArrowRight") && (
|
|
1793
|
+
} else (r.key === "ArrowDown" || r.key === "ArrowRight") && (Ve(), V.value && (V.value.open = !0), He());
|
|
1774
1794
|
r.stopPropagation(), r.preventDefault();
|
|
1775
1795
|
}
|
|
1776
1796
|
function wa(r) {
|
|
1777
|
-
if (r.stopPropagation(), r.key === "Escape" &&
|
|
1797
|
+
if (r.stopPropagation(), r.key === "Escape" && V.value?.open)
|
|
1778
1798
|
xe(void 0, !0), $e();
|
|
1779
|
-
else if (r.key === "Enter" &&
|
|
1799
|
+
else if (r.key === "Enter" && V.value?.open) {
|
|
1780
1800
|
if (self.document) {
|
|
1781
1801
|
const p = self.document.activeElement;
|
|
1782
1802
|
["checkbox", "radio"].includes(p.getAttribute("type") || "") && (p.click(), r.preventDefault());
|
|
@@ -1784,19 +1804,19 @@ const Ja = (e) => {
|
|
|
1784
1804
|
} else (r.key === "ArrowDown" || r.key === "ArrowUp" || r.key === "ArrowLeft" || r.key === "ArrowRight") && ka(r);
|
|
1785
1805
|
}
|
|
1786
1806
|
function xe(r, p) {
|
|
1787
|
-
if (
|
|
1807
|
+
if (V.value) {
|
|
1788
1808
|
if (p)
|
|
1789
|
-
|
|
1790
|
-
else if (
|
|
1809
|
+
V.value.open = !1, $e();
|
|
1810
|
+
else if (V.value.open && r && r.relatedTarget) {
|
|
1791
1811
|
const x = r.relatedTarget;
|
|
1792
|
-
|
|
1812
|
+
V.value.contains(x) || K(() => V.value.open = !1, 1);
|
|
1793
1813
|
}
|
|
1794
1814
|
}
|
|
1795
1815
|
}
|
|
1796
|
-
function
|
|
1816
|
+
function Ba(r) {
|
|
1797
1817
|
if (r) {
|
|
1798
1818
|
const p = r.target;
|
|
1799
|
-
|
|
1819
|
+
V.value?.open && !V.value.contains(p) && (V.value.open = !1);
|
|
1800
1820
|
}
|
|
1801
1821
|
}
|
|
1802
1822
|
function Be(r) {
|
|
@@ -1813,11 +1833,11 @@ const Ja = (e) => {
|
|
|
1813
1833
|
function We(r) {
|
|
1814
1834
|
r && (a.multiple ? R.value?.includes(r) ? Be(R.value.filter((p) => p !== r)) : Be([...R.value || [], r]) : (Be([r]), xe(void 0, !0)));
|
|
1815
1835
|
}
|
|
1816
|
-
function
|
|
1836
|
+
function Sa(r) {
|
|
1817
1837
|
if (r.stopPropagation(), R.value?.length === A.value)
|
|
1818
1838
|
Be([]);
|
|
1819
1839
|
else {
|
|
1820
|
-
const p = X.value &&
|
|
1840
|
+
const p = X.value && Pe.value ? Pe.value.value : void 0;
|
|
1821
1841
|
Be(
|
|
1822
1842
|
a.options ? a.options.filter(
|
|
1823
1843
|
(x) => !x.isGroupTitle && (!p || x.value?.toLowerCase().includes(p.toLowerCase()))
|
|
@@ -1826,9 +1846,9 @@ const Ja = (e) => {
|
|
|
1826
1846
|
}
|
|
1827
1847
|
}
|
|
1828
1848
|
function Ae(r) {
|
|
1829
|
-
if (
|
|
1849
|
+
if (V.value) {
|
|
1830
1850
|
const p = Array.from(
|
|
1831
|
-
|
|
1851
|
+
V.value.querySelectorAll(
|
|
1832
1852
|
'input[type="checkbox"],input[type="radio"]'
|
|
1833
1853
|
)
|
|
1834
1854
|
);
|
|
@@ -1841,8 +1861,8 @@ const Ja = (e) => {
|
|
|
1841
1861
|
}
|
|
1842
1862
|
}
|
|
1843
1863
|
function He() {
|
|
1844
|
-
if (
|
|
1845
|
-
const r = _e(
|
|
1864
|
+
if (V.value) {
|
|
1865
|
+
const r = _e(V.value);
|
|
1846
1866
|
r ? K(() => {
|
|
1847
1867
|
r.focus();
|
|
1848
1868
|
}, 1) : Ae();
|
|
@@ -1861,14 +1881,14 @@ const Ja = (e) => {
|
|
|
1861
1881
|
!a.options || !p || p.length === 0 ? j.value = a.options : a.searchFilter ? j.value = a.options.filter(
|
|
1862
1882
|
(x) => a.searchFilter(x, p)
|
|
1863
1883
|
) : j.value = a.options.filter(
|
|
1864
|
-
(x) => !x.isGroupTitle &&
|
|
1884
|
+
(x) => !x.isGroupTitle && we(x).toLowerCase().includes(p.toLowerCase())
|
|
1865
1885
|
);
|
|
1866
1886
|
}
|
|
1867
1887
|
function pa(r) {
|
|
1868
1888
|
r.stopPropagation(), Be([]), $e();
|
|
1869
1889
|
}
|
|
1870
1890
|
function $e() {
|
|
1871
|
-
|
|
1891
|
+
V.value && V.value.querySelector("summary")?.focus();
|
|
1872
1892
|
}
|
|
1873
1893
|
function La(r) {
|
|
1874
1894
|
r.stopPropagation();
|
|
@@ -1877,21 +1897,21 @@ const Ja = (e) => {
|
|
|
1877
1897
|
id: i.value,
|
|
1878
1898
|
ref_key: "_ref",
|
|
1879
1899
|
ref: ra,
|
|
1880
|
-
class:
|
|
1900
|
+
class: O(n(U)("db-custom-select", a.class)),
|
|
1881
1901
|
"aria-invalid": d.value === "invalid",
|
|
1882
1902
|
"data-custom-validity": d.value,
|
|
1883
1903
|
"data-width": e.formFieldWidth,
|
|
1884
1904
|
"data-variant": e.variant === "floating" && e.selectedType === "tag" && e.multiple ? "above" : e.variant,
|
|
1885
|
-
"data-required": n(
|
|
1905
|
+
"data-required": n(P)(e.required),
|
|
1886
1906
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
1887
1907
|
"data-placement": e.placement,
|
|
1888
1908
|
"data-selected-type": e.multiple ? e.selectedType : "text",
|
|
1889
1909
|
"data-hide-label": n(ne)(e.showLabel),
|
|
1890
1910
|
"data-icon": e.icon,
|
|
1891
|
-
"data-show-icon": n(
|
|
1911
|
+
"data-show-icon": n(P)(e.showIcon)
|
|
1892
1912
|
}, [
|
|
1893
1913
|
E("label", { id: k.value }, [
|
|
1894
|
-
D(
|
|
1914
|
+
D(S(e.label ?? n(ye)), 1),
|
|
1895
1915
|
E("select", {
|
|
1896
1916
|
role: "none",
|
|
1897
1917
|
hidden: !0,
|
|
@@ -1906,38 +1926,38 @@ const Ja = (e) => {
|
|
|
1906
1926
|
required: n(q)(e.required, "required"),
|
|
1907
1927
|
onChange: p[0] || (p[0] = async (x) => La(x))
|
|
1908
1928
|
}, [
|
|
1909
|
-
e.options?.length ? (v(!0), y(H, { key: 0 },
|
|
1929
|
+
e.options?.length ? (v(!0), y(H, { key: 0 }, me(e.options, (x, ae) => (v(), y("option", {
|
|
1910
1930
|
key: ae,
|
|
1911
1931
|
disabled: x.disabled,
|
|
1912
1932
|
value: x.value
|
|
1913
|
-
},
|
|
1914
|
-
], 40,
|
|
1915
|
-
], 8,
|
|
1933
|
+
}, S(we(x)), 9, St))), 128)) : z("", !0)
|
|
1934
|
+
], 40, Bt)
|
|
1935
|
+
], 8, wt),
|
|
1916
1936
|
E("details", {
|
|
1917
1937
|
ref_key: "detailsRef",
|
|
1918
|
-
ref:
|
|
1938
|
+
ref: V,
|
|
1919
1939
|
open: e.open,
|
|
1920
1940
|
onToggle: p[2] || (p[2] = async (x) => fa(x)),
|
|
1921
1941
|
onKeydown: p[3] || (p[3] = async (x) => wa(x))
|
|
1922
1942
|
}, [
|
|
1923
|
-
|
|
1943
|
+
M(r.$slots, "default"),
|
|
1924
1944
|
e.options ? (v(), y(H, { key: 0 }, [
|
|
1925
1945
|
E("summary", {
|
|
1926
1946
|
class: "db-custom-select-form-field",
|
|
1927
1947
|
id: $.value,
|
|
1928
|
-
"aria-disabled": n(
|
|
1948
|
+
"aria-disabled": n(P)(e.disabled),
|
|
1929
1949
|
"aria-labelledby": k.value
|
|
1930
1950
|
}, [
|
|
1931
1951
|
w.value?.length ? (v(), y("span", {
|
|
1932
1952
|
key: 0,
|
|
1933
|
-
"data-visually-hidden": n(
|
|
1953
|
+
"data-visually-hidden": n(P)(e.selectedType === "tag"),
|
|
1934
1954
|
id: L.value
|
|
1935
1955
|
}, [
|
|
1936
|
-
e.selectedPrefix ? (v(), y("span",
|
|
1937
|
-
D(" " +
|
|
1938
|
-
], 8,
|
|
1939
|
-
e.selectedType === "tag" ? (v(), y("div",
|
|
1940
|
-
(v(!0), y(H, null,
|
|
1956
|
+
e.selectedPrefix ? (v(), y("span", xt, S(e.selectedPrefix), 1)) : z("", !0),
|
|
1957
|
+
D(" " + S(w.value), 1)
|
|
1958
|
+
], 8, It)) : z("", !0),
|
|
1959
|
+
e.selectedType === "tag" ? (v(), y("div", $t, [
|
|
1960
|
+
(v(!0), y(H, null, me(F.value, (x, ae) => (v(), Y(yt, {
|
|
1941
1961
|
key: ae,
|
|
1942
1962
|
emphasis: "strong",
|
|
1943
1963
|
behavior: "removable",
|
|
@@ -1945,19 +1965,19 @@ const Ja = (e) => {
|
|
|
1945
1965
|
onRemove: (ie) => ya(x, ie)
|
|
1946
1966
|
}, {
|
|
1947
1967
|
default: G(() => [
|
|
1948
|
-
D(
|
|
1968
|
+
D(S(we(x)), 1)
|
|
1949
1969
|
]),
|
|
1950
1970
|
_: 2
|
|
1951
1971
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
1952
1972
|
])) : z("", !0)
|
|
1953
|
-
], 8,
|
|
1954
|
-
te(
|
|
1973
|
+
], 8, Lt),
|
|
1974
|
+
te(at, { width: e.dropdownWidth }, {
|
|
1955
1975
|
default: G(() => [
|
|
1956
|
-
X.value ? (v(), y("div",
|
|
1957
|
-
te(
|
|
1976
|
+
X.value ? (v(), y("div", Tt, [
|
|
1977
|
+
te(mt, {
|
|
1958
1978
|
type: "search",
|
|
1959
1979
|
ref_key: "searchInputRef",
|
|
1960
|
-
ref:
|
|
1980
|
+
ref: Pe,
|
|
1961
1981
|
name: i.value,
|
|
1962
1982
|
form: i.value,
|
|
1963
1983
|
showLabel: !1,
|
|
@@ -1975,12 +1995,12 @@ const Ja = (e) => {
|
|
|
1975
1995
|
semantic: e.showLoading ? "informational" : "warning"
|
|
1976
1996
|
}, {
|
|
1977
1997
|
default: G(() => [
|
|
1978
|
-
D(
|
|
1998
|
+
D(S((e.showLoading ? e.loadingText : e.noResultsText) ?? n(Ia)), 1)
|
|
1979
1999
|
]),
|
|
1980
2000
|
_: 1
|
|
1981
2001
|
}, 8, ["id", "icon", "semantic"])) : (v(), y(H, { key: 2 }, [
|
|
1982
|
-
N.value ? (v(), y("div",
|
|
1983
|
-
E("div",
|
|
2002
|
+
N.value ? (v(), y("div", Ct, [
|
|
2003
|
+
E("div", Et, [
|
|
1984
2004
|
E("label", null, [
|
|
1985
2005
|
E("input", {
|
|
1986
2006
|
type: "checkbox",
|
|
@@ -1989,33 +2009,33 @@ const Ja = (e) => {
|
|
|
1989
2009
|
ref: Ee,
|
|
1990
2010
|
form: i.value,
|
|
1991
2011
|
checked: ze.value,
|
|
1992
|
-
onChange: p[1] || (p[1] = async (x) =>
|
|
1993
|
-
}, null, 40,
|
|
1994
|
-
D(
|
|
2012
|
+
onChange: p[1] || (p[1] = async (x) => Sa(x))
|
|
2013
|
+
}, null, 40, At),
|
|
2014
|
+
D(S(ma()), 1)
|
|
1995
2015
|
])
|
|
1996
2016
|
])
|
|
1997
2017
|
])) : z("", !0),
|
|
1998
|
-
te(
|
|
2018
|
+
te(st, {
|
|
1999
2019
|
multiple: n(q)(e.multiple, "multiple"),
|
|
2000
2020
|
label: e.listLabel ?? e.label ?? n(ye)
|
|
2001
2021
|
}, {
|
|
2002
2022
|
default: G(() => [
|
|
2003
|
-
(v(!0), y(H, null,
|
|
2023
|
+
(v(!0), y(H, null, me(j.value, (x, ae) => (v(), Y(ot, {
|
|
2004
2024
|
key: ae,
|
|
2005
2025
|
type: e.multiple ? "checkbox" : "radio",
|
|
2006
2026
|
showDivider: x.showDivider,
|
|
2007
2027
|
icon: x.icon,
|
|
2008
2028
|
isGroupTitle: x.isGroupTitle,
|
|
2009
|
-
groupTitle:
|
|
2029
|
+
groupTitle: we(x),
|
|
2010
2030
|
name: i.value,
|
|
2011
|
-
checked:
|
|
2031
|
+
checked: ga(x.value),
|
|
2012
2032
|
disabled: x.disabled,
|
|
2013
2033
|
value: x.value,
|
|
2014
2034
|
onChange: (ie) => We(x.value)
|
|
2015
2035
|
}, {
|
|
2016
2036
|
default: G(() => [
|
|
2017
2037
|
x.isGroupTitle ? z("", !0) : (v(), y(H, { key: 0 }, [
|
|
2018
|
-
D(
|
|
2038
|
+
D(S(we(x)), 1)
|
|
2019
2039
|
], 64))
|
|
2020
2040
|
]),
|
|
2021
2041
|
_: 2
|
|
@@ -2025,7 +2045,7 @@ const Ja = (e) => {
|
|
|
2025
2045
|
}, 8, ["multiple", "label"])
|
|
2026
2046
|
], 64)),
|
|
2027
2047
|
E("div", null, [
|
|
2028
|
-
te(
|
|
2048
|
+
te(ke, {
|
|
2029
2049
|
variant: "ghost",
|
|
2030
2050
|
width: "full",
|
|
2031
2051
|
icon: "cross",
|
|
@@ -2035,7 +2055,7 @@ const Ja = (e) => {
|
|
|
2035
2055
|
onClick: (x) => xe(void 0, !0)
|
|
2036
2056
|
}, {
|
|
2037
2057
|
default: G(() => [
|
|
2038
|
-
D(
|
|
2058
|
+
D(S(e.mobileCloseButtonText ?? n(qe)), 1)
|
|
2039
2059
|
]),
|
|
2040
2060
|
_: 1
|
|
2041
2061
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -2044,8 +2064,8 @@ const Ja = (e) => {
|
|
|
2044
2064
|
_: 1
|
|
2045
2065
|
}, 8, ["width"])
|
|
2046
2066
|
], 64)) : z("", !0)
|
|
2047
|
-
], 40,
|
|
2048
|
-
(e.showClearSelection ?? !0) && R.value?.length ? (v(), Y(
|
|
2067
|
+
], 40, pt),
|
|
2068
|
+
(e.showClearSelection ?? !0) && R.value?.length ? (v(), Y(ke, {
|
|
2049
2069
|
key: 0,
|
|
2050
2070
|
icon: "cross",
|
|
2051
2071
|
variant: "ghost",
|
|
@@ -2056,10 +2076,10 @@ const Ja = (e) => {
|
|
|
2056
2076
|
onClick: (x) => pa(x)
|
|
2057
2077
|
}, {
|
|
2058
2078
|
default: G(() => [
|
|
2059
|
-
D(
|
|
2079
|
+
D(S(e.clearSelectionText), 1),
|
|
2060
2080
|
te(ca, { placement: "top" }, {
|
|
2061
2081
|
default: G(() => [
|
|
2062
|
-
D(
|
|
2082
|
+
D(S(e.clearSelectionText), 1)
|
|
2063
2083
|
]),
|
|
2064
2084
|
_: 1
|
|
2065
2085
|
})
|
|
@@ -2068,9 +2088,9 @@ const Ja = (e) => {
|
|
|
2068
2088
|
}, 8, ["name", "form", "onClick"])) : z("", !0),
|
|
2069
2089
|
E("span", {
|
|
2070
2090
|
class: "db-custom-select-placeholder",
|
|
2071
|
-
"aria-hidden": n(
|
|
2072
|
-
id:
|
|
2073
|
-
},
|
|
2091
|
+
"aria-hidden": n(P)(!0),
|
|
2092
|
+
id: g.value
|
|
2093
|
+
}, S(e.placeholder ?? e.label), 9, Dt),
|
|
2074
2094
|
n(Z)(e.message, e.showMessage) ? (v(), Y(Q, {
|
|
2075
2095
|
key: 1,
|
|
2076
2096
|
size: "small",
|
|
@@ -2078,18 +2098,18 @@ const Ja = (e) => {
|
|
|
2078
2098
|
id: c.value
|
|
2079
2099
|
}, {
|
|
2080
2100
|
default: G(() => [
|
|
2081
|
-
D(
|
|
2101
|
+
D(S(e.message), 1)
|
|
2082
2102
|
]),
|
|
2083
2103
|
_: 1
|
|
2084
2104
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
2085
|
-
|
|
2105
|
+
Ue() ? (v(), Y(Q, {
|
|
2086
2106
|
key: 2,
|
|
2087
2107
|
size: "small",
|
|
2088
2108
|
semantic: "successful",
|
|
2089
2109
|
id: u.value
|
|
2090
2110
|
}, {
|
|
2091
2111
|
default: G(() => [
|
|
2092
|
-
D(
|
|
2112
|
+
D(S(e.validMessage || n(se)), 1)
|
|
2093
2113
|
]),
|
|
2094
2114
|
_: 1
|
|
2095
2115
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -2099,14 +2119,15 @@ const Ja = (e) => {
|
|
|
2099
2119
|
id: f.value
|
|
2100
2120
|
}, {
|
|
2101
2121
|
default: G(() => [
|
|
2102
|
-
D(
|
|
2122
|
+
D(S(m.value), 1)
|
|
2103
2123
|
]),
|
|
2104
2124
|
_: 1
|
|
2105
2125
|
}, 8, ["id"]),
|
|
2106
|
-
E("span",
|
|
2107
|
-
], 10,
|
|
2126
|
+
E("span", Ft, S(B.value), 1)
|
|
2127
|
+
], 10, kt));
|
|
2108
2128
|
}
|
|
2109
|
-
}),
|
|
2129
|
+
}), yl = ["fixed", "auto", "full"], Mt = ["id"], kl = /* @__PURE__ */ W({
|
|
2130
|
+
name: "DBCustomSelectFormField",
|
|
2110
2131
|
__name: "custom-select-form-field",
|
|
2111
2132
|
props: {
|
|
2112
2133
|
children: { default: void 0 },
|
|
@@ -2121,12 +2142,13 @@ const Ja = (e) => {
|
|
|
2121
2142
|
ref_key: "_ref",
|
|
2122
2143
|
ref: l,
|
|
2123
2144
|
id: e.id,
|
|
2124
|
-
class:
|
|
2145
|
+
class: O(n(U)("db-custom-select-form-field", t.class))
|
|
2125
2146
|
}, [
|
|
2126
|
-
|
|
2147
|
+
M(a.$slots, "default")
|
|
2127
2148
|
], 10, Mt));
|
|
2128
2149
|
}
|
|
2129
|
-
}),
|
|
2150
|
+
}), wl = ["checkbox", "radio"], Bl = ["amount", "text", "tag"], Nt = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], Sl = /* @__PURE__ */ W({
|
|
2151
|
+
name: "DBDivider",
|
|
2130
2152
|
__name: "divider",
|
|
2131
2153
|
props: {
|
|
2132
2154
|
margin: { default: void 0 },
|
|
@@ -2149,10 +2171,11 @@ const Ja = (e) => {
|
|
|
2149
2171
|
"data-variant": e.variant,
|
|
2150
2172
|
"data-emphasis": e.emphasis,
|
|
2151
2173
|
"data-width": e.width,
|
|
2152
|
-
class:
|
|
2153
|
-
}, null, 10,
|
|
2174
|
+
class: O(n(U)("db-divider", t.class))
|
|
2175
|
+
}, null, 10, Nt));
|
|
2154
2176
|
}
|
|
2155
|
-
}),
|
|
2177
|
+
}), pl = ["none", "_"], Ll = ["horizontal", "vertical"], Rt = ["id", "data-position", "data-backdrop", "data-direction", "data-variant"], zt = ["data-spacing", "data-width", "data-direction", "data-rounded"], Pt = { class: "db-drawer-header" }, Vt = { class: "db-drawer-header-text" }, qt = { class: "db-drawer-content" }, Ot = /* @__PURE__ */ W({
|
|
2178
|
+
name: "DBDrawer",
|
|
2156
2179
|
__name: "drawer",
|
|
2157
2180
|
props: {
|
|
2158
2181
|
backdrop: { default: void 0 },
|
|
@@ -2191,8 +2214,8 @@ const Ja = (e) => {
|
|
|
2191
2214
|
() => [a.value, l.value, t.position],
|
|
2192
2215
|
() => {
|
|
2193
2216
|
if (a.value && l.value && t.position === "absolute") {
|
|
2194
|
-
const
|
|
2195
|
-
|
|
2217
|
+
const m = a.value.parentElement;
|
|
2218
|
+
m && (m.style.position = "relative");
|
|
2196
2219
|
}
|
|
2197
2220
|
},
|
|
2198
2221
|
{
|
|
@@ -2200,8 +2223,8 @@ const Ja = (e) => {
|
|
|
2200
2223
|
flush: "post"
|
|
2201
2224
|
}
|
|
2202
2225
|
);
|
|
2203
|
-
function c(f,
|
|
2204
|
-
f && (
|
|
2226
|
+
function c(f, m) {
|
|
2227
|
+
f && (za(f) ? f.key === "Escape" && (f.preventDefault(), t.onClose && t.onClose(f)) : (m && (f.stopPropagation(), t.onClose && t.onClose(f)), f.target?.nodeName === "DIALOG" && f.type === "click" && t.backdrop !== "none" && t.onClose && t.onClose(f)));
|
|
2205
2228
|
}
|
|
2206
2229
|
function u() {
|
|
2207
2230
|
if (a.value) {
|
|
@@ -2211,13 +2234,13 @@ const Ja = (e) => {
|
|
|
2211
2234
|
}, 401));
|
|
2212
2235
|
}
|
|
2213
2236
|
}
|
|
2214
|
-
return (f,
|
|
2237
|
+
return (f, m) => (v(), y("dialog", {
|
|
2215
2238
|
class: "db-drawer",
|
|
2216
2239
|
id: e.id,
|
|
2217
2240
|
ref_key: "_ref",
|
|
2218
2241
|
ref: a,
|
|
2219
|
-
onClick:
|
|
2220
|
-
onKeydown:
|
|
2242
|
+
onClick: m[0] || (m[0] = async (h) => c(h)),
|
|
2243
|
+
onKeydown: m[1] || (m[1] = async (h) => c(h)),
|
|
2221
2244
|
"data-position": e.position,
|
|
2222
2245
|
"data-backdrop": e.backdrop,
|
|
2223
2246
|
"data-direction": e.direction,
|
|
@@ -2226,17 +2249,17 @@ const Ja = (e) => {
|
|
|
2226
2249
|
E("article", {
|
|
2227
2250
|
ref_key: "dialogContainerRef",
|
|
2228
2251
|
ref: i,
|
|
2229
|
-
class:
|
|
2252
|
+
class: O(n(U)("db-drawer-container", t.class)),
|
|
2230
2253
|
"data-spacing": e.spacing,
|
|
2231
2254
|
"data-width": e.width,
|
|
2232
2255
|
"data-direction": e.direction,
|
|
2233
|
-
"data-rounded": n(
|
|
2256
|
+
"data-rounded": n(P)(e.rounded)
|
|
2234
2257
|
}, [
|
|
2235
|
-
E("header",
|
|
2258
|
+
E("header", Pt, [
|
|
2236
2259
|
E("div", Vt, [
|
|
2237
|
-
|
|
2260
|
+
M(f.$slots, "drawer-header")
|
|
2238
2261
|
]),
|
|
2239
|
-
te(
|
|
2262
|
+
te(ke, {
|
|
2240
2263
|
class: "button-close-drawer",
|
|
2241
2264
|
icon: "cross",
|
|
2242
2265
|
variant: "ghost",
|
|
@@ -2245,24 +2268,24 @@ const Ja = (e) => {
|
|
|
2245
2268
|
onClick: (h) => c(h, !0)
|
|
2246
2269
|
}, {
|
|
2247
2270
|
default: G(() => [
|
|
2248
|
-
D(
|
|
2271
|
+
D(S(e.closeButtonText ?? n(qe)), 1)
|
|
2249
2272
|
]),
|
|
2250
2273
|
_: 1
|
|
2251
2274
|
}, 8, ["id", "onClick"])
|
|
2252
2275
|
]),
|
|
2253
|
-
E("div",
|
|
2254
|
-
|
|
2276
|
+
E("div", qt, [
|
|
2277
|
+
M(f.$slots, "default")
|
|
2255
2278
|
])
|
|
2256
|
-
], 10,
|
|
2257
|
-
], 40,
|
|
2279
|
+
], 10, zt)
|
|
2280
|
+
], 40, Rt));
|
|
2258
2281
|
}
|
|
2259
|
-
}),
|
|
2282
|
+
}), Il = ["none", "strong", "weak", "invisible"], xl = ["left", "right", "up", "down"], $l = ["modal", "inside"], Tl = ["fixed", "absolute"], Ut = (e) => {
|
|
2260
2283
|
const {
|
|
2261
2284
|
target: t
|
|
2262
2285
|
} = e;
|
|
2263
2286
|
return !!(!t?.classList?.contains("db-navigation-item-expand-button") && t?.parentElement?.classList.contains("db-navigation-item"));
|
|
2264
2287
|
};
|
|
2265
|
-
class
|
|
2288
|
+
class Gt {
|
|
2266
2289
|
element;
|
|
2267
2290
|
subNavigation;
|
|
2268
2291
|
parentSubNavigation = null;
|
|
@@ -2280,7 +2303,7 @@ class Ot {
|
|
|
2280
2303
|
enableFollow() {
|
|
2281
2304
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation)
|
|
2282
2305
|
return;
|
|
2283
|
-
const t =
|
|
2306
|
+
const t = Za(this.subNavigation), l = this.element.getBoundingClientRect(), a = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
|
|
2284
2307
|
this.triangleData = {
|
|
2285
2308
|
itemRect: l,
|
|
2286
2309
|
parentElementWidth: a,
|
|
@@ -2335,7 +2358,8 @@ class Ot {
|
|
|
2335
2358
|
a && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${a.lb}, ${a.lt}, ${a.rt}, ${a.rb})`), l && (this.triangleData = void 0));
|
|
2336
2359
|
}
|
|
2337
2360
|
}
|
|
2338
|
-
const
|
|
2361
|
+
const Wt = ["id", "data-width", "data-on-forcing-mobile"], Ht = { class: "db-header-drawer-navigation" }, Xt = { class: "db-header-meta-navigation" }, jt = { class: "db-header-secondary-action" }, Kt = { class: "db-header-meta-navigation" }, Yt = { class: "db-header-navigation-bar" }, Jt = { class: "db-header-brand-container" }, Qt = { class: "db-header-navigation-container" }, Zt = { class: "db-header-navigation" }, _t = { class: "db-header-primary-action" }, ei = { class: "db-header-action-container" }, ai = { class: "db-header-burger-menu-container" }, ti = { class: "db-header-secondary-action" }, Cl = /* @__PURE__ */ W({
|
|
2362
|
+
name: "DBHeader",
|
|
2339
2363
|
__name: "header",
|
|
2340
2364
|
props: {
|
|
2341
2365
|
brand: {},
|
|
@@ -2374,21 +2398,21 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2374
2398
|
}
|
|
2375
2399
|
);
|
|
2376
2400
|
function c(f) {
|
|
2377
|
-
const
|
|
2378
|
-
t.onToggle && t.onToggle(
|
|
2401
|
+
const m = !q(t.drawerOpen, "drawerOpen");
|
|
2402
|
+
t.onToggle && t.onToggle(m);
|
|
2379
2403
|
}
|
|
2380
2404
|
function u(f) {
|
|
2381
2405
|
Ut(f) && c();
|
|
2382
2406
|
}
|
|
2383
|
-
return (f,
|
|
2407
|
+
return (f, m) => (v(), y("header", {
|
|
2384
2408
|
ref_key: "_ref",
|
|
2385
2409
|
ref: i,
|
|
2386
|
-
class:
|
|
2410
|
+
class: O(n(U)("db-header", t.class)),
|
|
2387
2411
|
id: e.id,
|
|
2388
2412
|
"data-width": e.width,
|
|
2389
2413
|
"data-on-forcing-mobile": e.forceMobile && !a.value
|
|
2390
2414
|
}, [
|
|
2391
|
-
te(
|
|
2415
|
+
te(Ot, {
|
|
2392
2416
|
class: "db-header-drawer",
|
|
2393
2417
|
spacing: "small",
|
|
2394
2418
|
rounded: !0,
|
|
@@ -2398,60 +2422,61 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2398
2422
|
onClose: (h) => c()
|
|
2399
2423
|
}, {
|
|
2400
2424
|
default: G(() => [
|
|
2401
|
-
E("div",
|
|
2425
|
+
E("div", Ht, [
|
|
2402
2426
|
E("div", {
|
|
2403
2427
|
class: "db-header-navigation",
|
|
2404
|
-
onClick:
|
|
2428
|
+
onClick: m[0] || (m[0] = async (h) => u(h))
|
|
2405
2429
|
}, [
|
|
2406
|
-
|
|
2430
|
+
M(f.$slots, "default")
|
|
2407
2431
|
]),
|
|
2408
|
-
E("div",
|
|
2409
|
-
|
|
2432
|
+
E("div", Xt, [
|
|
2433
|
+
M(f.$slots, "meta-navigation")
|
|
2410
2434
|
])
|
|
2411
2435
|
]),
|
|
2412
|
-
E("div",
|
|
2413
|
-
|
|
2436
|
+
E("div", jt, [
|
|
2437
|
+
M(f.$slots, "secondary-action")
|
|
2414
2438
|
])
|
|
2415
2439
|
]),
|
|
2416
2440
|
_: 3
|
|
2417
2441
|
}, 8, ["closeButtonId", "closeButtonText", "open", "onClose"]),
|
|
2418
|
-
E("div", jt, [
|
|
2419
|
-
F(f.$slots, "meta-navigation")
|
|
2420
|
-
]),
|
|
2421
2442
|
E("div", Kt, [
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2443
|
+
M(f.$slots, "meta-navigation")
|
|
2444
|
+
]),
|
|
2445
|
+
E("div", Yt, [
|
|
2425
2446
|
E("div", Jt, [
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2447
|
+
M(f.$slots, "brand")
|
|
2448
|
+
]),
|
|
2449
|
+
E("div", Qt, [
|
|
2429
2450
|
E("div", Zt, [
|
|
2430
|
-
|
|
2451
|
+
M(f.$slots, "default")
|
|
2452
|
+
]),
|
|
2453
|
+
E("div", _t, [
|
|
2454
|
+
M(f.$slots, "primary-action")
|
|
2431
2455
|
])
|
|
2432
2456
|
]),
|
|
2433
|
-
E("div",
|
|
2434
|
-
E("div",
|
|
2435
|
-
te(
|
|
2457
|
+
E("div", ei, [
|
|
2458
|
+
E("div", ai, [
|
|
2459
|
+
te(ke, {
|
|
2436
2460
|
icon: "menu",
|
|
2437
2461
|
variant: "ghost",
|
|
2438
2462
|
noText: !0,
|
|
2439
2463
|
onClick: (h) => c()
|
|
2440
2464
|
}, {
|
|
2441
2465
|
default: G(() => [
|
|
2442
|
-
D(
|
|
2466
|
+
D(S(e.burgerMenuLabel ?? n(Ta)), 1)
|
|
2443
2467
|
]),
|
|
2444
2468
|
_: 1
|
|
2445
2469
|
}, 8, ["onClick"])
|
|
2446
2470
|
]),
|
|
2447
|
-
E("div",
|
|
2448
|
-
|
|
2471
|
+
E("div", ti, [
|
|
2472
|
+
M(f.$slots, "secondary-action")
|
|
2449
2473
|
])
|
|
2450
2474
|
])
|
|
2451
2475
|
])
|
|
2452
|
-
], 10,
|
|
2476
|
+
], 10, Wt));
|
|
2453
2477
|
}
|
|
2454
|
-
}),
|
|
2478
|
+
}), ii = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], El = /* @__PURE__ */ W({
|
|
2479
|
+
name: "DBIcon",
|
|
2455
2480
|
__name: "icon",
|
|
2456
2481
|
props: {
|
|
2457
2482
|
variant: { default: void 0 },
|
|
@@ -2471,17 +2496,17 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2471
2496
|
ref_key: "_ref",
|
|
2472
2497
|
ref: l,
|
|
2473
2498
|
id: e.id,
|
|
2474
|
-
class:
|
|
2499
|
+
class: O(n(U)("db-icon", t.class)),
|
|
2475
2500
|
"data-icon": e.icon,
|
|
2476
2501
|
"data-icon-weight": e.weight,
|
|
2477
2502
|
"data-icon-variant": e.variant
|
|
2478
2503
|
}, [
|
|
2479
2504
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2480
|
-
D(
|
|
2481
|
-
], 64)) :
|
|
2482
|
-
], 10,
|
|
2505
|
+
D(S(e.text), 1)
|
|
2506
|
+
], 64)) : M(a.$slots, "default", { key: 1 })
|
|
2507
|
+
], 10, ii));
|
|
2483
2508
|
}
|
|
2484
|
-
}),
|
|
2509
|
+
}), Al = ["16", "20", "24", "32", "48", "64"], Dl = [
|
|
2485
2510
|
"color",
|
|
2486
2511
|
"date",
|
|
2487
2512
|
"datetime-local",
|
|
@@ -2500,7 +2525,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2500
2525
|
"time",
|
|
2501
2526
|
"url",
|
|
2502
2527
|
"week"
|
|
2503
|
-
],
|
|
2528
|
+
], li = ["id", "href", "target", "rel", "role", "referrerPolicy", "hrefLang", "aria-disabled", "tabIndex", "data-size", "data-show-icon-trailing", "data-variant", "data-content", "data-wrap"], Fl = /* @__PURE__ */ W({
|
|
2529
|
+
name: "DBLink",
|
|
2504
2530
|
__name: "link",
|
|
2505
2531
|
props: {
|
|
2506
2532
|
content: { default: void 0 },
|
|
@@ -2512,13 +2538,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2512
2538
|
id: { default: void 0 },
|
|
2513
2539
|
autofocus: { type: [Boolean, String] },
|
|
2514
2540
|
onClick: { type: Function, default: void 0 },
|
|
2541
|
+
click: {},
|
|
2515
2542
|
disabled: { type: [Boolean, String], default: void 0 },
|
|
2516
2543
|
href: { default: void 0 },
|
|
2517
2544
|
hreflang: { default: void 0 },
|
|
2518
2545
|
target: { default: void 0 },
|
|
2519
2546
|
rel: { default: void 0 },
|
|
2520
2547
|
role: { default: void 0 },
|
|
2521
|
-
referrerpolicy: {},
|
|
2548
|
+
referrerpolicy: { default: void 0 },
|
|
2549
|
+
referrerPolicy: { default: void 0 },
|
|
2522
2550
|
showIcon: { type: [Boolean, String], default: void 0 },
|
|
2523
2551
|
text: { default: void 0 },
|
|
2524
2552
|
wrap: { type: [Boolean, String], default: void 0 }
|
|
@@ -2532,27 +2560,29 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2532
2560
|
ref_key: "_ref",
|
|
2533
2561
|
ref: l,
|
|
2534
2562
|
id: e.id,
|
|
2535
|
-
class:
|
|
2563
|
+
class: O(n(U)("db-link", t.class)),
|
|
2536
2564
|
href: e.href,
|
|
2537
2565
|
target: e.target,
|
|
2538
2566
|
rel: e.rel,
|
|
2539
2567
|
role: e.role,
|
|
2568
|
+
referrerPolicy: e.referrerpolicy ?? e.referrerPolicy,
|
|
2540
2569
|
hrefLang: e.hreflang,
|
|
2541
|
-
"aria-disabled": n(
|
|
2570
|
+
"aria-disabled": n(P)(e.disabled),
|
|
2542
2571
|
tabIndex: e.disabled ? -1 : 0,
|
|
2543
2572
|
"data-size": e.size,
|
|
2544
|
-
"data-show-icon-trailing": n(
|
|
2573
|
+
"data-show-icon-trailing": n(P)(e.showIcon ?? !0),
|
|
2545
2574
|
"data-variant": e.variant,
|
|
2546
2575
|
"data-content": e.content || "internal",
|
|
2547
|
-
"data-wrap": n(
|
|
2576
|
+
"data-wrap": n(P)(e.wrap),
|
|
2548
2577
|
onClick: c[0] || (c[0] = async (u) => a(u))
|
|
2549
2578
|
}, [
|
|
2550
2579
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2551
|
-
D(
|
|
2552
|
-
], 64)) :
|
|
2553
|
-
], 10,
|
|
2580
|
+
D(S(e.text), 1)
|
|
2581
|
+
], 64)) : M(i.$slots, "default", { key: 1 })
|
|
2582
|
+
], 10, li));
|
|
2554
2583
|
}
|
|
2555
|
-
}),
|
|
2584
|
+
}), Ml = ["adaptive", "brand", "inline"], Nl = ["medium", "small"], Rl = ["external", "internal"], ni = ["id"], zl = /* @__PURE__ */ W({
|
|
2585
|
+
name: "DBNavigation",
|
|
2556
2586
|
__name: "navigation",
|
|
2557
2587
|
props: {
|
|
2558
2588
|
children: { default: void 0 },
|
|
@@ -2569,17 +2599,18 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2569
2599
|
ref_key: "_ref",
|
|
2570
2600
|
ref: a,
|
|
2571
2601
|
id: l.value,
|
|
2572
|
-
class:
|
|
2602
|
+
class: O(n(U)("db-navigation", t.class))
|
|
2573
2603
|
}, [
|
|
2574
2604
|
E("menu", null, [
|
|
2575
|
-
|
|
2605
|
+
M(i.$slots, "default")
|
|
2576
2606
|
])
|
|
2577
|
-
], 10,
|
|
2607
|
+
], 10, ni));
|
|
2578
2608
|
}
|
|
2579
|
-
}),
|
|
2609
|
+
}), oi = ["id", "data-width", "data-icon", "data-show-icon", "data-active", "data-wrap", "aria-disabled"], di = ["aria-haspopup", "aria-expanded", "disabled"], si = ["data-force-close", "id"], ui = {
|
|
2580
2610
|
key: 0,
|
|
2581
2611
|
class: "db-mobile-navigation-back"
|
|
2582
|
-
},
|
|
2612
|
+
}, Pl = /* @__PURE__ */ W({
|
|
2613
|
+
name: "DBNavigationItem",
|
|
2583
2614
|
__name: "navigation-item",
|
|
2584
2615
|
props: {
|
|
2585
2616
|
active: { type: Boolean, default: void 0 },
|
|
@@ -2592,6 +2623,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2592
2623
|
id: { default: void 0 },
|
|
2593
2624
|
autofocus: { type: [Boolean, String] },
|
|
2594
2625
|
onClick: { type: Function, default: void 0 },
|
|
2626
|
+
click: {},
|
|
2595
2627
|
icon: { default: void 0 },
|
|
2596
2628
|
width: { default: void 0 },
|
|
2597
2629
|
wrap: { type: [Boolean, String], default: void 0 },
|
|
@@ -2603,7 +2635,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2603
2635
|
setup(e) {
|
|
2604
2636
|
const t = e, l = o(!1), a = o(!1), i = o(!0), c = o(!1), u = o(!1), f = o(
|
|
2605
2637
|
"sub-navigation-" + _()
|
|
2606
|
-
),
|
|
2638
|
+
), m = o(void 0), h = o(null);
|
|
2607
2639
|
J(() => {
|
|
2608
2640
|
l.value = !0;
|
|
2609
2641
|
}), C(
|
|
@@ -2623,7 +2655,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2623
2655
|
() => {
|
|
2624
2656
|
if (l.value && h.value) {
|
|
2625
2657
|
const s = h.value.querySelector("menu");
|
|
2626
|
-
s && (s.children?.length > 0 ? (a.value = !0,
|
|
2658
|
+
s && (s.children?.length > 0 ? (a.value = !0, m.value || (m.value = new Gt(
|
|
2627
2659
|
h.value,
|
|
2628
2660
|
s
|
|
2629
2661
|
))) : i.value = !1);
|
|
@@ -2642,28 +2674,28 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2642
2674
|
function $(s) {
|
|
2643
2675
|
t.onClick && (s.stopPropagation(), t.onClick(s)), a.value && (c.value = !0);
|
|
2644
2676
|
}
|
|
2645
|
-
function
|
|
2677
|
+
function g(s) {
|
|
2646
2678
|
s.stopPropagation(), c.value = !1;
|
|
2647
2679
|
}
|
|
2648
2680
|
return (s, d) => (v(), y("li", {
|
|
2649
2681
|
ref_key: "_ref",
|
|
2650
2682
|
ref: h,
|
|
2651
2683
|
id: e.id,
|
|
2652
|
-
onMouseover: d[2] || (d[2] = async (b) =>
|
|
2653
|
-
onMouseleave: d[3] || (d[3] = async (b) =>
|
|
2654
|
-
onMousemove: d[4] || (d[4] = async (b) =>
|
|
2655
|
-
class:
|
|
2684
|
+
onMouseover: d[2] || (d[2] = async (b) => m.value?.enableFollow()),
|
|
2685
|
+
onMouseleave: d[3] || (d[3] = async (b) => m.value?.disableFollow()),
|
|
2686
|
+
onMousemove: d[4] || (d[4] = async (b) => m.value?.followByMouseEvent(b)),
|
|
2687
|
+
class: O(n(U)("db-navigation-item", t.class)),
|
|
2656
2688
|
"data-width": e.width,
|
|
2657
2689
|
"data-icon": e.icon,
|
|
2658
|
-
"data-show-icon": n(
|
|
2690
|
+
"data-show-icon": n(P)(e.showIcon),
|
|
2659
2691
|
"data-active": e.active,
|
|
2660
|
-
"data-wrap": n(
|
|
2661
|
-
"aria-disabled": n(
|
|
2692
|
+
"data-wrap": n(P)(e.wrap),
|
|
2693
|
+
"aria-disabled": n(P)(e.disabled)
|
|
2662
2694
|
}, [
|
|
2663
2695
|
i.value ? z("", !0) : (v(), y(H, { key: 0 }, [
|
|
2664
2696
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2665
|
-
D(
|
|
2666
|
-
], 64)) :
|
|
2697
|
+
D(S(e.text), 1)
|
|
2698
|
+
], 64)) : M(s.$slots, "default", { key: 1 })
|
|
2667
2699
|
], 64)),
|
|
2668
2700
|
i.value ? (v(), y(H, { key: 1 }, [
|
|
2669
2701
|
E("button", {
|
|
@@ -2674,34 +2706,35 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2674
2706
|
onClick: d[0] || (d[0] = async (b) => $(b))
|
|
2675
2707
|
}, [
|
|
2676
2708
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2677
|
-
D(
|
|
2678
|
-
], 64)) :
|
|
2679
|
-
], 8,
|
|
2709
|
+
D(S(e.text), 1)
|
|
2710
|
+
], 64)) : M(s.$slots, "default", { key: 1 })
|
|
2711
|
+
], 8, di),
|
|
2680
2712
|
E("menu", {
|
|
2681
2713
|
class: "db-sub-navigation",
|
|
2682
2714
|
"data-force-close": u.value,
|
|
2683
2715
|
id: f.value,
|
|
2684
2716
|
onClick: d[1] || (d[1] = async (b) => k(b))
|
|
2685
2717
|
}, [
|
|
2686
|
-
a.value ? (v(), y("div",
|
|
2687
|
-
te(
|
|
2718
|
+
a.value ? (v(), y("div", ui, [
|
|
2719
|
+
te(ke, {
|
|
2688
2720
|
icon: "arrow_left",
|
|
2689
2721
|
variant: "ghost",
|
|
2690
2722
|
id: e.backButtonId,
|
|
2691
|
-
onClick: (b) =>
|
|
2723
|
+
onClick: (b) => g(b)
|
|
2692
2724
|
}, {
|
|
2693
2725
|
default: G(() => [
|
|
2694
|
-
D(
|
|
2726
|
+
D(S(e.backButtonText ?? n(xa)), 1)
|
|
2695
2727
|
]),
|
|
2696
2728
|
_: 1
|
|
2697
2729
|
}, 8, ["id", "onClick"])
|
|
2698
2730
|
])) : z("", !0),
|
|
2699
|
-
|
|
2700
|
-
], 8,
|
|
2731
|
+
M(s.$slots, "sub-navigation")
|
|
2732
|
+
], 8, si)
|
|
2701
2733
|
], 64)) : z("", !0)
|
|
2702
|
-
], 42,
|
|
2734
|
+
], 42, oi));
|
|
2703
2735
|
}
|
|
2704
|
-
}),
|
|
2736
|
+
}), ci = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-show-icon", "data-link-variant"], ri = { key: 0 }, vi = { key: 1 }, Vl = /* @__PURE__ */ W({
|
|
2737
|
+
name: "DBNotification",
|
|
2705
2738
|
__name: "notification",
|
|
2706
2739
|
props: {
|
|
2707
2740
|
ariaLive: { default: void 0 },
|
|
@@ -2740,24 +2773,24 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2740
2773
|
ref_key: "_ref",
|
|
2741
2774
|
ref: l,
|
|
2742
2775
|
id: e.id,
|
|
2743
|
-
class:
|
|
2776
|
+
class: O(n(U)("db-notification", t.class)),
|
|
2744
2777
|
"aria-live": e.ariaLive,
|
|
2745
2778
|
"data-semantic": e.semantic,
|
|
2746
2779
|
"data-variant": e.variant,
|
|
2747
2780
|
"data-icon": n(q)(e.showIcon) !== !1 ? e.icon : void 0,
|
|
2748
|
-
"data-show-icon": n(
|
|
2781
|
+
"data-show-icon": n(P)(e.showIcon),
|
|
2749
2782
|
"data-link-variant": e.linkVariant
|
|
2750
2783
|
}, [
|
|
2751
|
-
|
|
2752
|
-
n(Z)(e.headline, e.showHeadline) ? (v(), y("header",
|
|
2784
|
+
M(i.$slots, "image"),
|
|
2785
|
+
n(Z)(e.headline, e.showHeadline) ? (v(), y("header", ri, S(e.headline), 1)) : z("", !0),
|
|
2753
2786
|
E("p", null, [
|
|
2754
2787
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2755
|
-
D(
|
|
2756
|
-
], 64)) :
|
|
2788
|
+
D(S(e.text), 1)
|
|
2789
|
+
], 64)) : M(i.$slots, "default", { key: 1 })
|
|
2757
2790
|
]),
|
|
2758
|
-
n(Z)(e.timestamp, e.showTimestamp) ? (v(), y("span",
|
|
2759
|
-
|
|
2760
|
-
n(q)(e.closeable, "closeable") ? (v(), Y(
|
|
2791
|
+
n(Z)(e.timestamp, e.showTimestamp) ? (v(), y("span", vi, S(e.timestamp), 1)) : z("", !0),
|
|
2792
|
+
M(i.$slots, "link"),
|
|
2793
|
+
n(q)(e.closeable, "closeable") ? (v(), Y(ke, {
|
|
2761
2794
|
key: 2,
|
|
2762
2795
|
icon: "cross",
|
|
2763
2796
|
variant: "ghost",
|
|
@@ -2767,13 +2800,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2767
2800
|
onClick: (u) => a(u)
|
|
2768
2801
|
}, {
|
|
2769
2802
|
default: G(() => [
|
|
2770
|
-
D(
|
|
2803
|
+
D(S(e.closeButtonText ?? n(qe)), 1)
|
|
2771
2804
|
]),
|
|
2772
2805
|
_: 1
|
|
2773
2806
|
}, 8, ["id", "onClick"])) : z("", !0)
|
|
2774
|
-
], 10,
|
|
2807
|
+
], 10, ci));
|
|
2775
2808
|
}
|
|
2776
|
-
}),
|
|
2809
|
+
}), ql = ["docked", "standalone", "overlay"], Ol = ["block", "inline"], Ul = ["assertive", "polite", "off"], fi = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], Gl = /* @__PURE__ */ W({
|
|
2810
|
+
name: "DBPage",
|
|
2777
2811
|
__name: "page",
|
|
2778
2812
|
props: {
|
|
2779
2813
|
documentOverflow: { default: void 0 },
|
|
@@ -2800,21 +2834,22 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2800
2834
|
ref_key: "_ref",
|
|
2801
2835
|
ref: a,
|
|
2802
2836
|
id: e.id,
|
|
2803
|
-
class:
|
|
2837
|
+
class: O(n(U)("db-page", t.class)),
|
|
2804
2838
|
"data-variant": e.variant,
|
|
2805
|
-
"data-fade-in": n(
|
|
2806
|
-
"data-fonts-loaded": n(
|
|
2839
|
+
"data-fade-in": n(P)(e.fadeIn),
|
|
2840
|
+
"data-fonts-loaded": n(P)(l.value)
|
|
2807
2841
|
}, [
|
|
2808
|
-
|
|
2842
|
+
M(i.$slots, "header"),
|
|
2809
2843
|
E("main", {
|
|
2810
|
-
class:
|
|
2844
|
+
class: O(n(U)("db-main", e.mainClass))
|
|
2811
2845
|
}, [
|
|
2812
|
-
|
|
2846
|
+
M(i.$slots, "default")
|
|
2813
2847
|
], 2),
|
|
2814
|
-
|
|
2815
|
-
], 10,
|
|
2848
|
+
M(i.$slots, "footer")
|
|
2849
|
+
], 10, fi));
|
|
2816
2850
|
}
|
|
2817
|
-
}),
|
|
2851
|
+
}), Wl = ["auto", "fixed"], Hl = ["hidden", "auto"], hi = ["id"], mi = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Xl = /* @__PURE__ */ W({
|
|
2852
|
+
name: "DBPopover",
|
|
2818
2853
|
__name: "popover",
|
|
2819
2854
|
props: {
|
|
2820
2855
|
open: { type: [Boolean, String], default: void 0 },
|
|
@@ -2840,8 +2875,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2840
2875
|
() => {
|
|
2841
2876
|
if (u.value && l.value) {
|
|
2842
2877
|
l.value = !1;
|
|
2843
|
-
const s =
|
|
2844
|
-
s && (s.ariaHasPopup = "true"),
|
|
2878
|
+
const s = g();
|
|
2879
|
+
s && (s.ariaHasPopup = "true"), m(), u.value.addEventListener(
|
|
2845
2880
|
"keydown",
|
|
2846
2881
|
(d) => f(d)
|
|
2847
2882
|
), ["mouseenter", "focusin"].forEach((d) => {
|
|
@@ -2849,7 +2884,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2849
2884
|
}), ["mouseleave", "focusout"].forEach((d) => {
|
|
2850
2885
|
u.value.addEventListener(d, () => $());
|
|
2851
2886
|
}), typeof window < "u" && "IntersectionObserver" in window && (c.value = new IntersectionObserver((d) => {
|
|
2852
|
-
const b = d.find(({ target: I }) => I ===
|
|
2887
|
+
const b = d.find(({ target: I }) => I === g());
|
|
2853
2888
|
b && !b.isIntersecting && f(!1);
|
|
2854
2889
|
}));
|
|
2855
2890
|
}
|
|
@@ -2862,7 +2897,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2862
2897
|
() => [u.value, a.value],
|
|
2863
2898
|
() => {
|
|
2864
2899
|
if (u.value) {
|
|
2865
|
-
const s =
|
|
2900
|
+
const s = g();
|
|
2866
2901
|
s && (s.ariaExpanded = (!!a.value).toString());
|
|
2867
2902
|
}
|
|
2868
2903
|
},
|
|
@@ -2876,7 +2911,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2876
2911
|
for (const d of Array.from(u.value.children))
|
|
2877
2912
|
d.blur();
|
|
2878
2913
|
}
|
|
2879
|
-
function
|
|
2914
|
+
function m() {
|
|
2880
2915
|
if (!u.value) return;
|
|
2881
2916
|
const s = u.value.querySelector("article");
|
|
2882
2917
|
s && K(() => {
|
|
@@ -2888,13 +2923,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2888
2923
|
}, 1);
|
|
2889
2924
|
}
|
|
2890
2925
|
function h(s) {
|
|
2891
|
-
s?.target?.contains && s?.target?.contains(u.value) &&
|
|
2926
|
+
s?.target?.contains && s?.target?.contains(u.value) && m();
|
|
2892
2927
|
}
|
|
2893
2928
|
function k() {
|
|
2894
2929
|
a.value = !0, i.value = new oe().addCallback(
|
|
2895
2930
|
(d) => h(d)
|
|
2896
|
-
),
|
|
2897
|
-
const s =
|
|
2931
|
+
), m();
|
|
2932
|
+
const s = g();
|
|
2898
2933
|
s && c.value?.observe(s);
|
|
2899
2934
|
}
|
|
2900
2935
|
function $(s) {
|
|
@@ -2902,11 +2937,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2902
2937
|
a.value = !1, i.value && new oe().removeCallback(
|
|
2903
2938
|
i.value
|
|
2904
2939
|
);
|
|
2905
|
-
const d =
|
|
2940
|
+
const d = g();
|
|
2906
2941
|
d && c.value?.unobserve(d);
|
|
2907
2942
|
}
|
|
2908
2943
|
}
|
|
2909
|
-
function
|
|
2944
|
+
function g() {
|
|
2910
2945
|
if (u.value) {
|
|
2911
2946
|
const s = Array.from(u.value.children);
|
|
2912
2947
|
if (s.length >= 2) {
|
|
@@ -2920,24 +2955,25 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2920
2955
|
ref_key: "_ref",
|
|
2921
2956
|
ref: u,
|
|
2922
2957
|
id: e.id,
|
|
2923
|
-
class:
|
|
2958
|
+
class: O(n(U)("db-popover", t.class))
|
|
2924
2959
|
}, [
|
|
2925
|
-
|
|
2960
|
+
M(s.$slots, "trigger"),
|
|
2926
2961
|
E("article", {
|
|
2927
2962
|
class: "db-popover-content",
|
|
2928
2963
|
"data-spacing": e.spacing,
|
|
2929
|
-
"data-gap": n(
|
|
2930
|
-
"data-animation": n(
|
|
2931
|
-
"data-open": n(
|
|
2964
|
+
"data-gap": n(P)(e.gap),
|
|
2965
|
+
"data-animation": n(P)(e.animation ?? !0),
|
|
2966
|
+
"data-open": n(P)(e.open),
|
|
2932
2967
|
"data-delay": e.delay,
|
|
2933
2968
|
"data-width": e.width,
|
|
2934
2969
|
"data-placement": e.placement
|
|
2935
2970
|
}, [
|
|
2936
|
-
|
|
2937
|
-
], 8,
|
|
2938
|
-
], 10,
|
|
2971
|
+
M(s.$slots, "default")
|
|
2972
|
+
], 8, mi)
|
|
2973
|
+
], 10, hi));
|
|
2939
2974
|
}
|
|
2940
|
-
}), gi = ["data-size", "data-hide-label", "data-hide-asterisk", "for"],
|
|
2975
|
+
}), gi = ["data-size", "data-hide-label", "data-hide-asterisk", "for"], bi = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required"], jl = /* @__PURE__ */ W({
|
|
2976
|
+
name: "DBRadio",
|
|
2941
2977
|
__name: "radio",
|
|
2942
2978
|
props: {
|
|
2943
2979
|
children: { default: void 0 },
|
|
@@ -2986,8 +3022,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2986
3022
|
() => [f.value],
|
|
2987
3023
|
() => {
|
|
2988
3024
|
if (f.value) {
|
|
2989
|
-
let
|
|
2990
|
-
|
|
3025
|
+
let g = u.value;
|
|
3026
|
+
g || (g = new AbortController(), u.value = g), Fe(
|
|
2991
3027
|
f.value,
|
|
2992
3028
|
(s) => {
|
|
2993
3029
|
K(() => {
|
|
@@ -2999,10 +3035,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2999
3035
|
checked: d
|
|
3000
3036
|
}
|
|
3001
3037
|
};
|
|
3002
|
-
h(b),
|
|
3038
|
+
h(b), m(b);
|
|
3003
3039
|
}, 1);
|
|
3004
3040
|
},
|
|
3005
|
-
|
|
3041
|
+
g.signal
|
|
3006
3042
|
);
|
|
3007
3043
|
}
|
|
3008
3044
|
},
|
|
@@ -3011,23 +3047,23 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3011
3047
|
flush: "post"
|
|
3012
3048
|
}
|
|
3013
3049
|
);
|
|
3014
|
-
function g
|
|
3015
|
-
a.input && a.input(
|
|
3050
|
+
function m(g, s) {
|
|
3051
|
+
a.input && a.input(g), a.onInput && a.onInput(g), de(l, g);
|
|
3016
3052
|
}
|
|
3017
|
-
function h(
|
|
3018
|
-
a.onChange && a.onChange(
|
|
3053
|
+
function h(g, s) {
|
|
3054
|
+
a.onChange && a.onChange(g), de(l, g);
|
|
3019
3055
|
}
|
|
3020
|
-
function k(
|
|
3021
|
-
a.onBlur && a.onBlur(
|
|
3056
|
+
function k(g) {
|
|
3057
|
+
a.onBlur && a.onBlur(g);
|
|
3022
3058
|
}
|
|
3023
|
-
function $(
|
|
3024
|
-
a.onFocus && a.onFocus(
|
|
3059
|
+
function $(g) {
|
|
3060
|
+
a.onFocus && a.onFocus(g);
|
|
3025
3061
|
}
|
|
3026
|
-
return (
|
|
3062
|
+
return (g, s) => (v(), y("label", {
|
|
3027
3063
|
"data-size": e.size,
|
|
3028
3064
|
"data-hide-label": n(ne)(e.showLabel),
|
|
3029
3065
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
3030
|
-
class:
|
|
3066
|
+
class: O(n(U)("db-radio", a.class)),
|
|
3031
3067
|
for: c.value
|
|
3032
3068
|
}, [
|
|
3033
3069
|
E("input", {
|
|
@@ -3042,17 +3078,18 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3042
3078
|
disabled: n(q)(e.disabled, "disabled"),
|
|
3043
3079
|
value: e.value,
|
|
3044
3080
|
required: n(q)(e.required, "required"),
|
|
3045
|
-
onInput: s[0] || (s[0] = async (d) =>
|
|
3081
|
+
onInput: s[0] || (s[0] = async (d) => m(d)),
|
|
3046
3082
|
onChange: s[1] || (s[1] = async (d) => h(d)),
|
|
3047
3083
|
onBlur: s[2] || (s[2] = async (d) => k(d)),
|
|
3048
3084
|
onFocus: s[3] || (s[3] = async (d) => $(d))
|
|
3049
|
-
}, null, 40,
|
|
3085
|
+
}, null, 40, bi),
|
|
3050
3086
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3051
|
-
D(
|
|
3052
|
-
], 64)) :
|
|
3087
|
+
D(S(e.label), 1)
|
|
3088
|
+
], 64)) : M(g.$slots, "default", { key: 1 })
|
|
3053
3089
|
], 10, gi));
|
|
3054
3090
|
}
|
|
3055
|
-
}),
|
|
3091
|
+
}), yi = ["id", "data-spacing", "data-width"], Kl = /* @__PURE__ */ W({
|
|
3092
|
+
name: "DBSection",
|
|
3056
3093
|
__name: "section",
|
|
3057
3094
|
props: {
|
|
3058
3095
|
children: { default: void 0 },
|
|
@@ -3069,21 +3106,22 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3069
3106
|
ref_key: "_ref",
|
|
3070
3107
|
ref: l,
|
|
3071
3108
|
id: e.id,
|
|
3072
|
-
class:
|
|
3109
|
+
class: O(n(U)("db-section", t.class)),
|
|
3073
3110
|
"data-spacing": e.spacing || "medium",
|
|
3074
3111
|
"data-width": e.width
|
|
3075
3112
|
}, [
|
|
3076
|
-
|
|
3077
|
-
], 10,
|
|
3113
|
+
M(a.$slots, "default")
|
|
3114
|
+
], 10, yi));
|
|
3078
3115
|
}
|
|
3079
|
-
}),
|
|
3116
|
+
}), ki = ["data-variant", "data-hide-label", "data-hide-asterisk", "data-icon", "data-show-icon"], wi = ["for"], Bi = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Si = {
|
|
3080
3117
|
key: 0,
|
|
3081
3118
|
class: "placeholder",
|
|
3082
3119
|
value: ""
|
|
3083
|
-
},
|
|
3120
|
+
}, pi = ["label"], Li = ["value", "selected", "disabled"], Ii = ["value", "disabled", "selected"], xi = ["id"], $i = {
|
|
3084
3121
|
"data-visually-hidden": "true",
|
|
3085
3122
|
role: "status"
|
|
3086
|
-
},
|
|
3123
|
+
}, Yl = /* @__PURE__ */ W({
|
|
3124
|
+
name: "DBSelect",
|
|
3087
3125
|
__name: "select",
|
|
3088
3126
|
props: {
|
|
3089
3127
|
children: { default: void 0 },
|
|
@@ -3092,6 +3130,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3092
3130
|
id: { default: void 0 },
|
|
3093
3131
|
autofocus: { type: [Boolean, String] },
|
|
3094
3132
|
onClick: { type: Function, default: void 0 },
|
|
3133
|
+
click: {},
|
|
3095
3134
|
change: {},
|
|
3096
3135
|
onChange: { type: Function, default: void 0 },
|
|
3097
3136
|
blur: {},
|
|
@@ -3126,28 +3165,28 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3126
3165
|
},
|
|
3127
3166
|
emits: ["update:value"],
|
|
3128
3167
|
setup(e, { emit: t }) {
|
|
3129
|
-
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0),
|
|
3168
|
+
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0), m = o(void 0), h = o(""), k = o(void 0), $ = o(""), g = o(!1), s = o(""), d = o(void 0), b = o(null);
|
|
3130
3169
|
J(() => {
|
|
3131
|
-
|
|
3170
|
+
g.value = !0;
|
|
3132
3171
|
const A = a.id ?? `select-${_()}`;
|
|
3133
|
-
i.value = A, c.value = A + ce, u.value = A + re, f.value = A + ve, h.value = A + De,
|
|
3172
|
+
i.value = A, c.value = A + ce, u.value = A + re, f.value = A + ve, h.value = A + De, m.value = a.invalidMessage || ee;
|
|
3134
3173
|
}), he(() => {
|
|
3135
3174
|
d.value?.abort();
|
|
3136
3175
|
}), C(
|
|
3137
3176
|
() => [b.value, a.invalidMessage],
|
|
3138
3177
|
() => {
|
|
3139
|
-
|
|
3178
|
+
m.value = a.invalidMessage || b.value?.validationMessage || ee;
|
|
3140
3179
|
},
|
|
3141
3180
|
{
|
|
3142
3181
|
immediate: !0,
|
|
3143
3182
|
flush: "post"
|
|
3144
3183
|
}
|
|
3145
3184
|
), C(
|
|
3146
|
-
() => [i.value,
|
|
3185
|
+
() => [i.value, g.value],
|
|
3147
3186
|
() => {
|
|
3148
|
-
if (i.value &&
|
|
3187
|
+
if (i.value && g.value) {
|
|
3149
3188
|
const A = i.value + ce, R = i.value + De;
|
|
3150
|
-
c.value = A, u.value = i.value + re, f.value = i.value + ve, h.value = R, Z(a.message, a.showMessage) ? k.value = A : a.placeholder ? k.value = R : k.value = void 0, T(),
|
|
3189
|
+
c.value = A, u.value = i.value + re, f.value = i.value + ve, h.value = R, Z(a.message, a.showMessage) ? k.value = A : a.placeholder ? k.value = R : k.value = void 0, T(), g.value = !1;
|
|
3151
3190
|
}
|
|
3152
3191
|
},
|
|
3153
3192
|
{
|
|
@@ -3168,14 +3207,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3168
3207
|
() => {
|
|
3169
3208
|
if (b.value) {
|
|
3170
3209
|
let R = d.value;
|
|
3171
|
-
R || (R = new AbortController(), d.value = R),
|
|
3210
|
+
R || (R = new AbortController(), d.value = R), Oe(
|
|
3172
3211
|
b.value,
|
|
3173
3212
|
{
|
|
3174
3213
|
value: a.value,
|
|
3175
3214
|
defaultValue: void 0
|
|
3176
3215
|
},
|
|
3177
3216
|
(j) => {
|
|
3178
|
-
|
|
3217
|
+
B(j), L(j);
|
|
3179
3218
|
},
|
|
3180
3219
|
R.signal
|
|
3181
3220
|
);
|
|
@@ -3190,7 +3229,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3190
3229
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
3191
3230
|
}
|
|
3192
3231
|
function T() {
|
|
3193
|
-
!b.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value,
|
|
3232
|
+
!b.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, m.value = a.invalidMessage || b.value?.validationMessage || ee, ue() && (s.value = m.value, K(() => s.value = "", 1e3))) : I() && b.value?.validity.valid && a.required ? (k.value = u.value, ue() && (s.value = a.validMessage ?? se, K(() => s.value = "", 1e3))) : Z(a.message, a.showMessage) ? k.value = c.value : a.placeholder ? k.value = h.value : k.value = void 0;
|
|
3194
3233
|
}
|
|
3195
3234
|
function w(A) {
|
|
3196
3235
|
a.onClick && a.onClick(A);
|
|
@@ -3198,10 +3237,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3198
3237
|
function L(A, R) {
|
|
3199
3238
|
a.input && a.input(A), $.value = A.target.value, a.onInput && a.onInput(A), de(l, A), T();
|
|
3200
3239
|
}
|
|
3201
|
-
function
|
|
3240
|
+
function B(A, R) {
|
|
3202
3241
|
a.onChange && a.onChange(A), de(l, A), T();
|
|
3203
3242
|
}
|
|
3204
|
-
function
|
|
3243
|
+
function F(A) {
|
|
3205
3244
|
a.onBlur && a.onBlur(A);
|
|
3206
3245
|
}
|
|
3207
3246
|
function N(A) {
|
|
@@ -3211,14 +3250,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3211
3250
|
return A.label ?? A.value?.toString();
|
|
3212
3251
|
}
|
|
3213
3252
|
return (A, R) => (v(), y("div", {
|
|
3214
|
-
class:
|
|
3253
|
+
class: O(n(U)("db-select", a.class)),
|
|
3215
3254
|
"data-variant": e.variant,
|
|
3216
3255
|
"data-hide-label": n(ne)(e.showLabel),
|
|
3217
3256
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
3218
3257
|
"data-icon": e.icon,
|
|
3219
|
-
"data-show-icon": n(
|
|
3258
|
+
"data-show-icon": n(P)(e.showIcon)
|
|
3220
3259
|
}, [
|
|
3221
|
-
E("label", { for: i.value },
|
|
3260
|
+
E("label", { for: i.value }, S(e.label ?? n(ye)), 9, wi),
|
|
3222
3261
|
E("select", {
|
|
3223
3262
|
"aria-invalid": e.validation === "invalid",
|
|
3224
3263
|
"data-custom-validity": e.validation,
|
|
@@ -3234,36 +3273,36 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3234
3273
|
multiple: e.multiple,
|
|
3235
3274
|
onInput: R[0] || (R[0] = async (j) => L(j)),
|
|
3236
3275
|
onClick: R[1] || (R[1] = async (j) => w(j)),
|
|
3237
|
-
onChange: R[2] || (R[2] = async (j) =>
|
|
3238
|
-
onBlur: R[3] || (R[3] = async (j) =>
|
|
3276
|
+
onChange: R[2] || (R[2] = async (j) => B(j)),
|
|
3277
|
+
onBlur: R[3] || (R[3] = async (j) => F(j)),
|
|
3239
3278
|
onFocus: R[4] || (R[4] = async (j) => N(j)),
|
|
3240
3279
|
"aria-describedby": e.ariaDescribedBy ?? k.value
|
|
3241
3280
|
}, [
|
|
3242
3281
|
e.variant === "floating" || e.placeholder ? (v(), y("option", Si)) : z("", !0),
|
|
3243
|
-
e.options?.length ? (v(!0), y(H, { key: 1 },
|
|
3282
|
+
e.options?.length ? (v(!0), y(H, { key: 1 }, me(e.options, (j, pe) => (v(), y(H, { key: pe }, [
|
|
3244
3283
|
j.options ? (v(), y("optgroup", {
|
|
3245
3284
|
key: 0,
|
|
3246
3285
|
label: X(j)
|
|
3247
3286
|
}, [
|
|
3248
|
-
(v(!0), y(H, null,
|
|
3287
|
+
(v(!0), y(H, null, me(j.options, (ge, Ce) => (v(), y("option", {
|
|
3249
3288
|
key: Ce,
|
|
3250
|
-
value:
|
|
3251
|
-
selected:
|
|
3252
|
-
disabled:
|
|
3253
|
-
},
|
|
3254
|
-
], 8,
|
|
3289
|
+
value: ge.value,
|
|
3290
|
+
selected: ge.selected,
|
|
3291
|
+
disabled: ge.disabled
|
|
3292
|
+
}, S(X(ge)), 9, Li))), 128))
|
|
3293
|
+
], 8, pi)) : (v(), y("option", {
|
|
3255
3294
|
key: 1,
|
|
3256
3295
|
value: j.value,
|
|
3257
3296
|
disabled: j.disabled,
|
|
3258
3297
|
selected: j.selected
|
|
3259
|
-
},
|
|
3260
|
-
], 64))), 128)) :
|
|
3261
|
-
], 40,
|
|
3298
|
+
}, S(X(j)), 9, Ii))
|
|
3299
|
+
], 64))), 128)) : M(A.$slots, "default", { key: 2 })
|
|
3300
|
+
], 40, Bi),
|
|
3262
3301
|
e.placeholder ? (v(), y("span", {
|
|
3263
3302
|
key: 0,
|
|
3264
3303
|
class: "db-select-placeholder",
|
|
3265
3304
|
id: h.value
|
|
3266
|
-
},
|
|
3305
|
+
}, S(e.placeholder), 9, xi)) : z("", !0),
|
|
3267
3306
|
n(Z)(e.message, e.showMessage) ? (v(), Y(Q, {
|
|
3268
3307
|
key: 1,
|
|
3269
3308
|
size: "small",
|
|
@@ -3271,7 +3310,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3271
3310
|
id: c.value
|
|
3272
3311
|
}, {
|
|
3273
3312
|
default: G(() => [
|
|
3274
|
-
D(
|
|
3313
|
+
D(S(e.message), 1)
|
|
3275
3314
|
]),
|
|
3276
3315
|
_: 1
|
|
3277
3316
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -3282,7 +3321,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3282
3321
|
id: u.value
|
|
3283
3322
|
}, {
|
|
3284
3323
|
default: G(() => [
|
|
3285
|
-
D(
|
|
3324
|
+
D(S(e.validMessage || n(se)), 1)
|
|
3286
3325
|
]),
|
|
3287
3326
|
_: 1
|
|
3288
3327
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -3292,14 +3331,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3292
3331
|
id: f.value
|
|
3293
3332
|
}, {
|
|
3294
3333
|
default: G(() => [
|
|
3295
|
-
D(
|
|
3334
|
+
D(S(m.value), 1)
|
|
3296
3335
|
]),
|
|
3297
3336
|
_: 1
|
|
3298
3337
|
}, 8, ["id"]),
|
|
3299
|
-
E("span",
|
|
3300
|
-
], 10,
|
|
3338
|
+
E("span", $i, S(s.value), 1)
|
|
3339
|
+
], 10, ki));
|
|
3301
3340
|
}
|
|
3302
|
-
}),
|
|
3341
|
+
}), Ti = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Jl = /* @__PURE__ */ W({
|
|
3342
|
+
name: "DBStack",
|
|
3303
3343
|
__name: "stack",
|
|
3304
3344
|
props: {
|
|
3305
3345
|
variant: { default: void 0 },
|
|
@@ -3320,21 +3360,22 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3320
3360
|
ref_key: "_ref",
|
|
3321
3361
|
ref: l,
|
|
3322
3362
|
id: e.id,
|
|
3323
|
-
class:
|
|
3363
|
+
class: O(n(U)("db-stack", t.class)),
|
|
3324
3364
|
"data-gap": e.gap,
|
|
3325
3365
|
"data-variant": e.variant,
|
|
3326
3366
|
"data-direction": e.direction,
|
|
3327
3367
|
"data-alignment": e.alignment,
|
|
3328
3368
|
"data-justify-content": e.justifyContent,
|
|
3329
|
-
"data-wrap": n(
|
|
3369
|
+
"data-wrap": n(P)(e.wrap)
|
|
3330
3370
|
}, [
|
|
3331
|
-
|
|
3332
|
-
], 10,
|
|
3371
|
+
M(a.$slots, "default")
|
|
3372
|
+
], 10, Ti));
|
|
3333
3373
|
}
|
|
3334
|
-
}),
|
|
3374
|
+
}), Ql = ["simple", "divider"], Zl = ["row", "column"], _l = ["stretch", "start", "end", "center"], en = ["space-between", "start", "end", "center"], Ci = ["data-visual-aid", "data-size", "data-hide-label", "data-variant", "data-hide-asterisk", "data-custom-validity"], Ei = ["for"], Ai = ["id", "checked", "value", "disabled", "aria-invalid", "aria-describedby", "name", "required", "data-aid-icon", "data-aid-icon-trailing"], Di = {
|
|
3335
3375
|
"data-visually-hidden": "true",
|
|
3336
3376
|
role: "status"
|
|
3337
|
-
},
|
|
3377
|
+
}, an = /* @__PURE__ */ W({
|
|
3378
|
+
name: "DBSwitch",
|
|
3338
3379
|
__name: "switch",
|
|
3339
3380
|
props: {
|
|
3340
3381
|
children: { default: void 0 },
|
|
@@ -3375,7 +3416,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3375
3416
|
},
|
|
3376
3417
|
emits: ["update:checked"],
|
|
3377
3418
|
setup(e, { emit: t }) {
|
|
3378
|
-
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0),
|
|
3419
|
+
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0), m = o(void 0), h = o(void 0), k = o(""), $ = o(void 0), g = o(null);
|
|
3379
3420
|
J(() => {
|
|
3380
3421
|
i.value = a.id ?? `switch-${_()}`, c.value = `${i.value}${ce}`, u.value = `${i.value}${re}`, f.value = `${i.value}${ve}`, d();
|
|
3381
3422
|
}), he(() => {
|
|
@@ -3398,20 +3439,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3398
3439
|
flush: "post"
|
|
3399
3440
|
}
|
|
3400
3441
|
), C(
|
|
3401
|
-
() => [
|
|
3442
|
+
() => [g.value],
|
|
3402
3443
|
() => {
|
|
3403
|
-
if (
|
|
3404
|
-
let
|
|
3405
|
-
|
|
3406
|
-
|
|
3444
|
+
if (g.value) {
|
|
3445
|
+
let B = $.value;
|
|
3446
|
+
B || (B = new AbortController(), $.value = B), da(
|
|
3447
|
+
g.value,
|
|
3407
3448
|
{
|
|
3408
3449
|
checked: a.checked,
|
|
3409
3450
|
defaultChecked: void 0
|
|
3410
3451
|
},
|
|
3411
|
-
(
|
|
3412
|
-
b(
|
|
3452
|
+
(F) => {
|
|
3453
|
+
b(F);
|
|
3413
3454
|
},
|
|
3414
|
-
|
|
3455
|
+
B.signal
|
|
3415
3456
|
);
|
|
3416
3457
|
}
|
|
3417
3458
|
},
|
|
@@ -3424,13 +3465,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3424
3465
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
3425
3466
|
}
|
|
3426
3467
|
function d() {
|
|
3427
|
-
if (!
|
|
3428
|
-
h.value = f.value,
|
|
3468
|
+
if (!g.value?.validity?.valid || a.validation === "invalid") {
|
|
3469
|
+
h.value = f.value, m.value = a.invalidMessage || g.value?.validationMessage || ee, ue() && (k.value = m.value || ee, K(() => {
|
|
3429
3470
|
k.value = "";
|
|
3430
3471
|
}, 1e3));
|
|
3431
3472
|
return;
|
|
3432
3473
|
}
|
|
3433
|
-
if (s() &&
|
|
3474
|
+
if (s() && g.value?.validity?.valid && a.required) {
|
|
3434
3475
|
h.value = u.value, ue() && (k.value = a.validMessage ?? se, K(() => {
|
|
3435
3476
|
k.value = "";
|
|
3436
3477
|
}, 1e3));
|
|
@@ -3442,7 +3483,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3442
3483
|
}
|
|
3443
3484
|
h.value = void 0;
|
|
3444
3485
|
}
|
|
3445
|
-
function b(L,
|
|
3486
|
+
function b(L, B) {
|
|
3446
3487
|
a.onChange && a.onChange(L), d(), de(l, L, "checked");
|
|
3447
3488
|
}
|
|
3448
3489
|
function I(L) {
|
|
@@ -3452,16 +3493,16 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3452
3493
|
a.onFocus && a.onFocus(L);
|
|
3453
3494
|
}
|
|
3454
3495
|
function w(L) {
|
|
3455
|
-
L.key === "Enter" && (L.preventDefault(), a.disabled ||
|
|
3496
|
+
L.key === "Enter" && (L.preventDefault(), a.disabled || g.value?.click());
|
|
3456
3497
|
}
|
|
3457
|
-
return (L,
|
|
3458
|
-
"data-visual-aid": n(
|
|
3498
|
+
return (L, B) => (v(), y("div", {
|
|
3499
|
+
"data-visual-aid": n(P)(e.visualAid),
|
|
3459
3500
|
"data-size": e.size,
|
|
3460
3501
|
"data-hide-label": n(ne)(e.showLabel),
|
|
3461
3502
|
"data-variant": e.variant,
|
|
3462
3503
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
3463
3504
|
"data-custom-validity": e.validation,
|
|
3464
|
-
class:
|
|
3505
|
+
class: O(n(U)("db-switch", a.class))
|
|
3465
3506
|
}, [
|
|
3466
3507
|
E("label", { for: i.value }, [
|
|
3467
3508
|
E("input", {
|
|
@@ -3469,7 +3510,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3469
3510
|
role: "switch",
|
|
3470
3511
|
id: i.value,
|
|
3471
3512
|
ref_key: "_ref",
|
|
3472
|
-
ref:
|
|
3513
|
+
ref: g,
|
|
3473
3514
|
checked: n(q)(e.checked, "checked"),
|
|
3474
3515
|
value: e.value,
|
|
3475
3516
|
disabled: n(q)(e.disabled, "disabled"),
|
|
@@ -3479,15 +3520,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3479
3520
|
required: n(q)(e.required, "required"),
|
|
3480
3521
|
"data-aid-icon": e.iconLeading ?? e.icon,
|
|
3481
3522
|
"data-aid-icon-trailing": e.iconTrailing,
|
|
3482
|
-
onChange:
|
|
3483
|
-
onBlur:
|
|
3484
|
-
onFocus:
|
|
3485
|
-
onKeydown:
|
|
3486
|
-
}, null, 40,
|
|
3523
|
+
onChange: B[0] || (B[0] = async (F) => b(F)),
|
|
3524
|
+
onBlur: B[1] || (B[1] = async (F) => I(F)),
|
|
3525
|
+
onFocus: B[2] || (B[2] = async (F) => T(F)),
|
|
3526
|
+
onKeydown: B[3] || (B[3] = async (F) => w(F))
|
|
3527
|
+
}, null, 40, Ai),
|
|
3487
3528
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3488
|
-
D(
|
|
3489
|
-
], 64)) :
|
|
3490
|
-
], 8,
|
|
3529
|
+
D(S(e.label), 1)
|
|
3530
|
+
], 64)) : M(L.$slots, "default", { key: 1 })
|
|
3531
|
+
], 8, Ei),
|
|
3491
3532
|
n(Z)(e.message, e.showMessage) ? (v(), Y(Q, {
|
|
3492
3533
|
key: 0,
|
|
3493
3534
|
size: "small",
|
|
@@ -3496,7 +3537,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3496
3537
|
icon: e.messageIcon
|
|
3497
3538
|
}, {
|
|
3498
3539
|
default: G(() => [
|
|
3499
|
-
D(
|
|
3540
|
+
D(S(e.message), 1)
|
|
3500
3541
|
]),
|
|
3501
3542
|
_: 1
|
|
3502
3543
|
}, 8, ["id", "icon"])) : z("", !0),
|
|
@@ -3507,7 +3548,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3507
3548
|
id: u.value
|
|
3508
3549
|
}, {
|
|
3509
3550
|
default: G(() => [
|
|
3510
|
-
D(
|
|
3551
|
+
D(S(e.validMessage ?? n(se)), 1)
|
|
3511
3552
|
]),
|
|
3512
3553
|
_: 1
|
|
3513
3554
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -3517,14 +3558,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3517
3558
|
id: f.value
|
|
3518
3559
|
}, {
|
|
3519
3560
|
default: G(() => [
|
|
3520
|
-
D(
|
|
3561
|
+
D(S(m.value ?? e.invalidMessage ?? n(ee)), 1)
|
|
3521
3562
|
]),
|
|
3522
3563
|
_: 1
|
|
3523
3564
|
}, 8, ["id"]),
|
|
3524
|
-
E("span",
|
|
3525
|
-
], 10,
|
|
3565
|
+
E("span", Di, S(k.value), 1)
|
|
3566
|
+
], 10, Ci));
|
|
3526
3567
|
}
|
|
3527
|
-
}),
|
|
3568
|
+
}), Fi = ["for", "data-icon", "data-icon-trailing", "data-show-icon", "data-show-icon-trailing", "data-no-text"], Mi = ["disabled", "aria-selected", "checked", "name", "id"], Ni = /* @__PURE__ */ W({
|
|
3569
|
+
name: "DBTabItem",
|
|
3528
3570
|
__name: "tab-item",
|
|
3529
3571
|
props: {
|
|
3530
3572
|
children: { default: void 0 },
|
|
@@ -3549,15 +3591,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3549
3591
|
},
|
|
3550
3592
|
emits: ["update:checked"],
|
|
3551
3593
|
setup(e, { emit: t }) {
|
|
3552
|
-
const l = t, a = e, i = o(!1), c = o(void 0), u = o(!1), f = o(!1),
|
|
3594
|
+
const l = t, a = e, i = o(!1), c = o(void 0), u = o(!1), f = o(!1), m = o(void 0), h = o(null);
|
|
3553
3595
|
J(() => {
|
|
3554
|
-
|
|
3596
|
+
m.value = k, u.value = !0;
|
|
3555
3597
|
}), he(() => {
|
|
3556
|
-
f.value && h.value &&
|
|
3598
|
+
f.value && h.value && m.value && (h.value.closest("[role=tablist]")?.removeEventListener("change", m.value), f.value = !1);
|
|
3557
3599
|
}), C(
|
|
3558
|
-
() => [h.value, u.value,
|
|
3600
|
+
() => [h.value, u.value, m.value],
|
|
3559
3601
|
() => {
|
|
3560
|
-
h.value && u.value &&
|
|
3602
|
+
h.value && u.value && m.value && (u.value = !1, f.value || (h.value.closest("[role=tablist]")?.addEventListener("change", m.value), f.value = !0), (a.active || h.value.checked) && (i.value = !0, h.value.click()));
|
|
3561
3603
|
},
|
|
3562
3604
|
{
|
|
3563
3605
|
immediate: !0,
|
|
@@ -3573,23 +3615,23 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3573
3615
|
flush: "post"
|
|
3574
3616
|
}
|
|
3575
3617
|
);
|
|
3576
|
-
function k(
|
|
3577
|
-
|
|
3618
|
+
function k(g) {
|
|
3619
|
+
g.stopPropagation(), i.value = g.target === h.value;
|
|
3578
3620
|
}
|
|
3579
|
-
function $(
|
|
3580
|
-
a.onChange && a.onChange(
|
|
3621
|
+
function $(g) {
|
|
3622
|
+
a.onChange && a.onChange(g), de(l, g, "checked");
|
|
3581
3623
|
}
|
|
3582
|
-
return (
|
|
3624
|
+
return (g, s) => (v(), y("li", {
|
|
3583
3625
|
role: "none",
|
|
3584
|
-
class:
|
|
3626
|
+
class: O(n(U)("db-tab-item", a.class))
|
|
3585
3627
|
}, [
|
|
3586
3628
|
E("label", {
|
|
3587
3629
|
for: e.id,
|
|
3588
3630
|
"data-icon": e.iconLeading ?? e.icon,
|
|
3589
3631
|
"data-icon-trailing": e.iconTrailing,
|
|
3590
|
-
"data-show-icon": n(
|
|
3591
|
-
"data-show-icon-trailing": n(
|
|
3592
|
-
"data-no-text": n(
|
|
3632
|
+
"data-show-icon": n(P)(e.showIconLeading ?? e.showIcon),
|
|
3633
|
+
"data-show-icon-trailing": n(P)(e.showIconTrailing),
|
|
3634
|
+
"data-no-text": n(P)(e.noText)
|
|
3593
3635
|
}, [
|
|
3594
3636
|
E("input", {
|
|
3595
3637
|
type: "radio",
|
|
@@ -3604,13 +3646,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3604
3646
|
onInput: s[0] || (s[0] = async (d) => $(d))
|
|
3605
3647
|
}, null, 40, Mi),
|
|
3606
3648
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3607
|
-
D(
|
|
3649
|
+
D(S(e.label), 1)
|
|
3608
3650
|
], 64)) : z("", !0),
|
|
3609
|
-
|
|
3610
|
-
], 8,
|
|
3651
|
+
M(g.$slots, "default")
|
|
3652
|
+
], 8, Fi)
|
|
3611
3653
|
], 2));
|
|
3612
3654
|
}
|
|
3613
|
-
}),
|
|
3655
|
+
}), Ri = ["id"], zi = { role: "tablist" }, Pi = /* @__PURE__ */ W({
|
|
3656
|
+
name: "DBTabList",
|
|
3614
3657
|
__name: "tab-list",
|
|
3615
3658
|
props: {
|
|
3616
3659
|
children: { default: void 0 },
|
|
@@ -3627,14 +3670,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3627
3670
|
ref_key: "_ref",
|
|
3628
3671
|
ref: a,
|
|
3629
3672
|
id: l.value,
|
|
3630
|
-
class:
|
|
3673
|
+
class: O(n(U)("db-tab-list", t.class))
|
|
3631
3674
|
}, [
|
|
3632
|
-
E("ul",
|
|
3633
|
-
|
|
3675
|
+
E("ul", zi, [
|
|
3676
|
+
M(i.$slots, "default")
|
|
3634
3677
|
])
|
|
3635
|
-
], 10,
|
|
3678
|
+
], 10, Ri));
|
|
3636
3679
|
}
|
|
3637
|
-
}), Vi = ["id"],
|
|
3680
|
+
}), Vi = ["id"], qi = /* @__PURE__ */ W({
|
|
3681
|
+
name: "DBTabPanel",
|
|
3638
3682
|
__name: "tab-panel",
|
|
3639
3683
|
props: {
|
|
3640
3684
|
content: { default: void 0 },
|
|
@@ -3651,16 +3695,17 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3651
3695
|
role: "tabpanel",
|
|
3652
3696
|
ref_key: "_ref",
|
|
3653
3697
|
ref: l,
|
|
3654
|
-
class:
|
|
3698
|
+
class: O(n(U)("db-tab-panel", t.class)),
|
|
3655
3699
|
id: e.id
|
|
3656
3700
|
}, [
|
|
3657
3701
|
e.content ? (v(), y(H, { key: 0 }, [
|
|
3658
|
-
D(
|
|
3702
|
+
D(S(e.content), 1)
|
|
3659
3703
|
], 64)) : z("", !0),
|
|
3660
|
-
|
|
3704
|
+
M(a.$slots, "default")
|
|
3661
3705
|
], 10, Vi));
|
|
3662
3706
|
}
|
|
3663
|
-
}),
|
|
3707
|
+
}), Oi = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], tn = /* @__PURE__ */ W({
|
|
3708
|
+
name: "DBTabs",
|
|
3664
3709
|
__name: "tabs",
|
|
3665
3710
|
props: {
|
|
3666
3711
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -3683,11 +3728,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3683
3728
|
tabSelect: {}
|
|
3684
3729
|
},
|
|
3685
3730
|
setup(e) {
|
|
3686
|
-
const t = e, l = o("tabs-" + _()), a = o(""), i = o(!1), c = o(!1), u = o(!1), f = o(null),
|
|
3731
|
+
const t = e, l = o("tabs-" + _()), a = o(""), i = o(!1), c = o(!1), u = o(!1), f = o(null), m = o(void 0), h = o(null);
|
|
3687
3732
|
J(() => {
|
|
3688
3733
|
l.value = t.id || l.value, a.value = `tabs-${t.name || _()}`, i.value = !0;
|
|
3689
3734
|
}), he(() => {
|
|
3690
|
-
|
|
3735
|
+
m.value?.disconnect(), m.value = void 0;
|
|
3691
3736
|
}), C(
|
|
3692
3737
|
() => [h.value, i.value],
|
|
3693
3738
|
() => {
|
|
@@ -3721,7 +3766,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3721
3766
|
const T = I.scrollWidth > I.clientWidth;
|
|
3722
3767
|
c.value = T && I.scrollLeft > 1, u.value = T && I.scrollLeft < I.scrollWidth - I.clientWidth;
|
|
3723
3768
|
}
|
|
3724
|
-
function
|
|
3769
|
+
function g(I) {
|
|
3725
3770
|
let T = Number(t.arrowScrollDistance) || 100;
|
|
3726
3771
|
I && (T *= -1), f.value?.scrollBy({
|
|
3727
3772
|
top: 0,
|
|
@@ -3739,11 +3784,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3739
3784
|
t.orientation || "horizontal"
|
|
3740
3785
|
), t.behavior === "arrows" && (f.value = T, $(T), T.addEventListener("scroll", () => {
|
|
3741
3786
|
$(T);
|
|
3742
|
-
}), !
|
|
3787
|
+
}), !m.value))) {
|
|
3743
3788
|
const w = new ResizeObserver(() => {
|
|
3744
3789
|
$(T);
|
|
3745
3790
|
});
|
|
3746
|
-
w.observe(T),
|
|
3791
|
+
w.observe(T), m.value = w;
|
|
3747
3792
|
}
|
|
3748
3793
|
}
|
|
3749
3794
|
}
|
|
@@ -3758,25 +3803,25 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3758
3803
|
)
|
|
3759
3804
|
);
|
|
3760
3805
|
for (const L of T) {
|
|
3761
|
-
const
|
|
3762
|
-
if (N &&
|
|
3806
|
+
const B = T.indexOf(L), F = L.querySelector("label"), N = L.querySelector("input");
|
|
3807
|
+
if (N && F) {
|
|
3763
3808
|
if (!N.id) {
|
|
3764
|
-
const X = `${a.value}-tab-${
|
|
3765
|
-
|
|
3809
|
+
const X = `${a.value}-tab-${B}`;
|
|
3810
|
+
F.setAttribute("for", X), N.id = X, N.setAttribute("name", a.value), w.length > B && N.setAttribute(
|
|
3766
3811
|
"aria-controls",
|
|
3767
|
-
`${a.value}-tab-panel-${
|
|
3812
|
+
`${a.value}-tab-panel-${B}`
|
|
3768
3813
|
);
|
|
3769
3814
|
}
|
|
3770
3815
|
if (I) {
|
|
3771
|
-
const X = !t.initialSelectedMode || t.initialSelectedMode === "auto", A = t.initialSelectedIndex == null &&
|
|
3816
|
+
const X = !t.initialSelectedMode || t.initialSelectedMode === "auto", A = t.initialSelectedIndex == null && B === 0 || Number(t.initialSelectedIndex) === B;
|
|
3772
3817
|
X && A && N.click();
|
|
3773
3818
|
}
|
|
3774
3819
|
}
|
|
3775
3820
|
}
|
|
3776
3821
|
for (const L of w) {
|
|
3777
3822
|
if (L.id) continue;
|
|
3778
|
-
const
|
|
3779
|
-
L.id = `${a.value}-tab-panel-${
|
|
3823
|
+
const B = w.indexOf(L);
|
|
3824
|
+
L.id = `${a.value}-tab-panel-${B}`, L.setAttribute("aria-labelledby", `${a.value}-tab-${B}`);
|
|
3780
3825
|
}
|
|
3781
3826
|
}
|
|
3782
3827
|
}
|
|
@@ -3786,10 +3831,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3786
3831
|
if (w && w.parentElement && w.parentElement?.nodeName === "LI") {
|
|
3787
3832
|
const L = w.parentElement;
|
|
3788
3833
|
if (L) {
|
|
3789
|
-
const
|
|
3790
|
-
if (
|
|
3791
|
-
const
|
|
3792
|
-
t.onIndexChange && t.onIndexChange(
|
|
3834
|
+
const B = L.parentElement;
|
|
3835
|
+
if (B) {
|
|
3836
|
+
const F = Array.from(B.children).indexOf(L);
|
|
3837
|
+
t.onIndexChange && t.onIndexChange(F), t.onTabSelect && t.onTabSelect(I);
|
|
3793
3838
|
}
|
|
3794
3839
|
}
|
|
3795
3840
|
}
|
|
@@ -3799,7 +3844,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3799
3844
|
ref_key: "_ref",
|
|
3800
3845
|
ref: h,
|
|
3801
3846
|
id: l.value,
|
|
3802
|
-
class:
|
|
3847
|
+
class: O(n(U)("db-tabs", t.class)),
|
|
3803
3848
|
"data-orientation": e.orientation,
|
|
3804
3849
|
"data-scroll-behavior": e.behavior,
|
|
3805
3850
|
"data-alignment": e.alignment ?? "start",
|
|
@@ -3807,14 +3852,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3807
3852
|
onInput: T[0] || (T[0] = async (w) => b(w)),
|
|
3808
3853
|
onChange: T[1] || (T[1] = async (w) => b(w))
|
|
3809
3854
|
}, [
|
|
3810
|
-
c.value ? (v(), Y(
|
|
3855
|
+
c.value ? (v(), Y(ke, {
|
|
3811
3856
|
key: 0,
|
|
3812
3857
|
class: "tabs-scroll-left",
|
|
3813
3858
|
variant: "ghost",
|
|
3814
3859
|
icon: "chevron_left",
|
|
3815
3860
|
type: "button",
|
|
3816
3861
|
noText: !0,
|
|
3817
|
-
onClick: (w) =>
|
|
3862
|
+
onClick: (w) => g(!0)
|
|
3818
3863
|
}, {
|
|
3819
3864
|
default: G(() => [...T[2] || (T[2] = [
|
|
3820
3865
|
D(" Scroll left ", -1)
|
|
@@ -3822,9 +3867,9 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3822
3867
|
_: 1
|
|
3823
3868
|
}, 8, ["onClick"])) : z("", !0),
|
|
3824
3869
|
e.tabs ? (v(), y(H, { key: 1 }, [
|
|
3825
|
-
te(
|
|
3870
|
+
te(Pi, null, {
|
|
3826
3871
|
default: G(() => [
|
|
3827
|
-
(v(!0), y(H, null,
|
|
3872
|
+
(v(!0), y(H, null, me(k(), (w, L) => (v(), Y(Ni, {
|
|
3828
3873
|
key: e.name + "tab-item" + L,
|
|
3829
3874
|
active: w.active,
|
|
3830
3875
|
label: w.label,
|
|
@@ -3835,37 +3880,38 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3835
3880
|
]),
|
|
3836
3881
|
_: 1
|
|
3837
3882
|
}),
|
|
3838
|
-
(v(!0), y(H, null,
|
|
3883
|
+
(v(!0), y(H, null, me(k(), (w, L) => (v(), Y(qi, {
|
|
3839
3884
|
key: e.name + "tab-panel" + L,
|
|
3840
3885
|
content: w.content
|
|
3841
3886
|
}, {
|
|
3842
3887
|
default: G(() => [
|
|
3843
|
-
D(
|
|
3888
|
+
D(S(w.children), 1)
|
|
3844
3889
|
]),
|
|
3845
3890
|
_: 2
|
|
3846
3891
|
}, 1032, ["content"]))), 128))
|
|
3847
3892
|
], 64)) : z("", !0),
|
|
3848
|
-
u.value ? (v(), Y(
|
|
3893
|
+
u.value ? (v(), Y(ke, {
|
|
3849
3894
|
key: 2,
|
|
3850
3895
|
class: "tabs-scroll-right",
|
|
3851
3896
|
variant: "ghost",
|
|
3852
3897
|
icon: "chevron_right",
|
|
3853
3898
|
type: "button",
|
|
3854
3899
|
noText: !0,
|
|
3855
|
-
onClick: (w) =>
|
|
3900
|
+
onClick: (w) => g()
|
|
3856
3901
|
}, {
|
|
3857
3902
|
default: G(() => [...T[3] || (T[3] = [
|
|
3858
3903
|
D(" Scroll right ", -1)
|
|
3859
3904
|
])]),
|
|
3860
3905
|
_: 1
|
|
3861
3906
|
}, 8, ["onClick"])) : z("", !0),
|
|
3862
|
-
|
|
3863
|
-
], 42,
|
|
3907
|
+
M(I.$slots, "default")
|
|
3908
|
+
], 42, Oi));
|
|
3864
3909
|
}
|
|
3865
|
-
}),
|
|
3910
|
+
}), ln = ["scrollbar", "arrows"], nn = ["auto", "manually"], on = ["static", "removable"], Ui = ["data-variant", "data-hide-asterisk", "data-hide-label"], Gi = ["for"], Wi = ["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"], Hi = {
|
|
3866
3911
|
"data-visually-hidden": "true",
|
|
3867
3912
|
role: "status"
|
|
3868
|
-
},
|
|
3913
|
+
}, dn = /* @__PURE__ */ W({
|
|
3914
|
+
name: "DBTextarea",
|
|
3869
3915
|
__name: "textarea",
|
|
3870
3916
|
props: {
|
|
3871
3917
|
cols: { default: void 0 },
|
|
@@ -3915,16 +3961,16 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3915
3961
|
},
|
|
3916
3962
|
emits: ["update:value"],
|
|
3917
3963
|
setup(e, { emit: t }) {
|
|
3918
|
-
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0),
|
|
3964
|
+
const l = t, a = e, i = o(void 0), c = o(void 0), u = o(void 0), f = o(void 0), m = o(void 0), h = o(void 0), k = o(""), $ = o(""), g = o(void 0), s = o(null);
|
|
3919
3965
|
J(() => {
|
|
3920
|
-
const
|
|
3921
|
-
i.value =
|
|
3966
|
+
const B = a.id ?? `textarea-${_()}`;
|
|
3967
|
+
i.value = B, c.value = B + ce, u.value = B + re, f.value = B + ve, m.value = a.invalidMessage || ee;
|
|
3922
3968
|
}), he(() => {
|
|
3923
|
-
|
|
3969
|
+
g.value?.abort();
|
|
3924
3970
|
}), C(
|
|
3925
3971
|
() => [s.value, a.invalidMessage],
|
|
3926
3972
|
() => {
|
|
3927
|
-
|
|
3973
|
+
m.value = a.invalidMessage || s.value?.validationMessage || ee;
|
|
3928
3974
|
},
|
|
3929
3975
|
{
|
|
3930
3976
|
immediate: !0,
|
|
@@ -3934,8 +3980,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3934
3980
|
() => [i.value],
|
|
3935
3981
|
() => {
|
|
3936
3982
|
if (i.value) {
|
|
3937
|
-
const
|
|
3938
|
-
c.value =
|
|
3983
|
+
const B = i.value + ce;
|
|
3984
|
+
c.value = B, u.value = i.value + re, f.value = i.value + ve, Z(a.message, a.showMessage) && (h.value = B), b();
|
|
3939
3985
|
}
|
|
3940
3986
|
},
|
|
3941
3987
|
{
|
|
@@ -3955,8 +4001,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3955
4001
|
() => [s.value],
|
|
3956
4002
|
() => {
|
|
3957
4003
|
if (s.value) {
|
|
3958
|
-
let
|
|
3959
|
-
|
|
4004
|
+
let F = g.value;
|
|
4005
|
+
F || (F = new AbortController(), g.value = F), Oe(
|
|
3960
4006
|
s.value,
|
|
3961
4007
|
{
|
|
3962
4008
|
value: a.value,
|
|
@@ -3965,7 +4011,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3965
4011
|
(N) => {
|
|
3966
4012
|
T(N), I(N);
|
|
3967
4013
|
},
|
|
3968
|
-
|
|
4014
|
+
F.signal
|
|
3969
4015
|
);
|
|
3970
4016
|
}
|
|
3971
4017
|
},
|
|
@@ -3978,27 +4024,27 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3978
4024
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
3979
4025
|
}
|
|
3980
4026
|
function b() {
|
|
3981
|
-
!s.value?.validity.valid || a.validation === "invalid" ? (h.value = f.value,
|
|
4027
|
+
!s.value?.validity.valid || a.validation === "invalid" ? (h.value = f.value, m.value = a.invalidMessage || s.value?.validationMessage || ee, ue() && ($.value = m.value, K(() => $.value = "", 1e3))) : d() && s.value?.validity.valid && (a.required || a.minLength || a.maxLength) ? (h.value = u.value, ue() && ($.value = a.validMessage ?? se, K(() => $.value = "", 1e3))) : Z(a.message, a.showMessage) ? h.value = c.value : h.value = void 0;
|
|
3982
4028
|
}
|
|
3983
|
-
function I(
|
|
3984
|
-
a.input && a.input(
|
|
4029
|
+
function I(B, F) {
|
|
4030
|
+
a.input && a.input(B), k.value = B.target.value, a.onInput && a.onInput(B), de(l, B), b();
|
|
3985
4031
|
}
|
|
3986
|
-
function T(
|
|
3987
|
-
a.onChange && a.onChange(
|
|
4032
|
+
function T(B, F) {
|
|
4033
|
+
a.onChange && a.onChange(B), de(l, B), b();
|
|
3988
4034
|
}
|
|
3989
|
-
function w(
|
|
3990
|
-
a.onBlur && a.onBlur(
|
|
4035
|
+
function w(B) {
|
|
4036
|
+
a.onBlur && a.onBlur(B);
|
|
3991
4037
|
}
|
|
3992
|
-
function L(
|
|
3993
|
-
a.onFocus && a.onFocus(
|
|
4038
|
+
function L(B) {
|
|
4039
|
+
a.onFocus && a.onFocus(B);
|
|
3994
4040
|
}
|
|
3995
|
-
return (
|
|
3996
|
-
class:
|
|
4041
|
+
return (B, F) => (v(), y("div", {
|
|
4042
|
+
class: O(n(U)("db-textarea", a.class)),
|
|
3997
4043
|
"data-variant": e.variant,
|
|
3998
4044
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
3999
4045
|
"data-hide-label": n(ne)(e.showLabel)
|
|
4000
4046
|
}, [
|
|
4001
|
-
E("label", { for: i.value },
|
|
4047
|
+
E("label", { for: i.value }, S(e.label ?? n(ye)), 9, Gi),
|
|
4002
4048
|
E("textarea", {
|
|
4003
4049
|
"aria-invalid": e.validation === "invalid",
|
|
4004
4050
|
"data-custom-validity": e.validation,
|
|
@@ -4012,22 +4058,22 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4012
4058
|
required: n(q)(e.required, "required"),
|
|
4013
4059
|
readOnly: n(q)(e.readOnly, "readOnly") || n(q)(e.readonly, "readonly"),
|
|
4014
4060
|
form: e.form,
|
|
4015
|
-
maxLength: n(
|
|
4016
|
-
minLength: n(
|
|
4061
|
+
maxLength: n(Se)(e.maxLength, e.maxlength),
|
|
4062
|
+
minLength: n(Se)(e.minLength, e.minlength),
|
|
4017
4063
|
name: e.name,
|
|
4018
4064
|
wrap: e.wrap,
|
|
4019
4065
|
spellcheck: e.spellCheck,
|
|
4020
4066
|
autocomplete: e.autocomplete,
|
|
4021
|
-
onInput:
|
|
4022
|
-
onChange:
|
|
4023
|
-
onBlur:
|
|
4024
|
-
onFocus:
|
|
4067
|
+
onInput: F[0] || (F[0] = async (N) => I(N)),
|
|
4068
|
+
onChange: F[1] || (F[1] = async (N) => T(N)),
|
|
4069
|
+
onBlur: F[2] || (F[2] = async (N) => w(N)),
|
|
4070
|
+
onFocus: F[3] || (F[3] = async (N) => L(N)),
|
|
4025
4071
|
value: e.value ?? k.value,
|
|
4026
4072
|
"aria-describedby": e.ariaDescribedBy ?? h.value,
|
|
4027
4073
|
placeholder: e.placeholder ?? n(ea),
|
|
4028
|
-
rows: n(
|
|
4029
|
-
cols: n(
|
|
4030
|
-
},
|
|
4074
|
+
rows: n(Se)(e.rows, n(Ea)),
|
|
4075
|
+
cols: n(Se)(e.cols)
|
|
4076
|
+
}, S(e.value), 41, Wi),
|
|
4031
4077
|
n(Z)(e.message, e.showMessage) ? (v(), Y(Q, {
|
|
4032
4078
|
key: 0,
|
|
4033
4079
|
size: "small",
|
|
@@ -4035,7 +4081,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4035
4081
|
id: c.value
|
|
4036
4082
|
}, {
|
|
4037
4083
|
default: G(() => [
|
|
4038
|
-
D(
|
|
4084
|
+
D(S(e.message), 1)
|
|
4039
4085
|
]),
|
|
4040
4086
|
_: 1
|
|
4041
4087
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -4046,7 +4092,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4046
4092
|
id: u.value
|
|
4047
4093
|
}, {
|
|
4048
4094
|
default: G(() => [
|
|
4049
|
-
D(
|
|
4095
|
+
D(S(e.validMessage || n(se)), 1)
|
|
4050
4096
|
]),
|
|
4051
4097
|
_: 1
|
|
4052
4098
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -4056,67 +4102,69 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4056
4102
|
id: f.value
|
|
4057
4103
|
}, {
|
|
4058
4104
|
default: G(() => [
|
|
4059
|
-
D(
|
|
4105
|
+
D(S(m.value), 1)
|
|
4060
4106
|
]),
|
|
4061
4107
|
_: 1
|
|
4062
4108
|
}, 8, ["id"]),
|
|
4063
|
-
E("span",
|
|
4109
|
+
E("span", Hi, S($.value), 1)
|
|
4064
4110
|
], 10, Ui));
|
|
4065
4111
|
}
|
|
4066
|
-
}),
|
|
4112
|
+
}), sn = ["none", "both", "horizontal", "vertical"], un = ["hard", "soft", "off"], cn = ["description", "label"], rn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], vn = ["medium", "small", "large", "none"], fn = ["medium", "small", "large", "none"], Xi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], ji = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], hn = [...Xi, ...ji], mn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], gn = ["horizontal", "vertical"], bn = ["full", "auto"], yn = ["full", "medium", "large", "small"], kn = ["none", "slow", "fast"], wn = ["auto", "fixed"], Bn = ["small", "medium"], Sn = ["weak", "strong"], pn = ["invalid", "valid", "no-validation"], Ln = ["fixed", "content"], In = ["above", "floating"], xn = ["leading", "trailing"], $n = ["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"], Tn = ["_self", "_blank", "_parent", "_top"], Cn = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], En = ["start", "center"];
|
|
4067
4113
|
export {
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4114
|
+
dl as AccordionBehaviorList,
|
|
4115
|
+
ol as AccordionVariantList,
|
|
4116
|
+
En as AlignmentList,
|
|
4117
|
+
$n as AutoCompleteList,
|
|
4118
|
+
ul as BadgePlacementList,
|
|
4119
|
+
vl as ButtonTypeList,
|
|
4120
|
+
rl as ButtonVariantList,
|
|
4075
4121
|
la as COLOR,
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4122
|
+
Zi as COLORS,
|
|
4123
|
+
_i as COLORS_SIMPLE,
|
|
4124
|
+
Ji as COLOR_CONST,
|
|
4079
4125
|
ia as COLOR_SIMPLE,
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4126
|
+
hl as CardBehaviorList,
|
|
4127
|
+
ml as CardElevationLevelList,
|
|
4128
|
+
yl as CustomSelectDropdownWidthList,
|
|
4129
|
+
wl as CustomSelectListItemTypeList,
|
|
4130
|
+
nl as DBAccordion,
|
|
4131
|
+
qa as DBAccordionItem,
|
|
4132
|
+
sl as DBBadge,
|
|
4133
|
+
cl as DBBrand,
|
|
4134
|
+
ke as DBButton,
|
|
4135
|
+
fl as DBCard,
|
|
4136
|
+
gl as DBCheckbox,
|
|
4137
|
+
bl as DBCustomSelect,
|
|
4138
|
+
at as DBCustomSelectDropdown,
|
|
4139
|
+
kl as DBCustomSelectFormField,
|
|
4140
|
+
st as DBCustomSelectList,
|
|
4141
|
+
ot as DBCustomSelectListItem,
|
|
4142
|
+
Sl as DBDivider,
|
|
4143
|
+
Ot as DBDrawer,
|
|
4144
|
+
Cl as DBHeader,
|
|
4145
|
+
El as DBIcon,
|
|
4100
4146
|
Q as DBInfotext,
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4147
|
+
mt as DBInput,
|
|
4148
|
+
Fl as DBLink,
|
|
4149
|
+
zl as DBNavigation,
|
|
4150
|
+
Pl as DBNavigationItem,
|
|
4151
|
+
Vl as DBNotification,
|
|
4152
|
+
Gl as DBPage,
|
|
4153
|
+
Xl as DBPopover,
|
|
4154
|
+
jl as DBRadio,
|
|
4155
|
+
Kl as DBSection,
|
|
4156
|
+
Yl as DBSelect,
|
|
4157
|
+
Jl as DBStack,
|
|
4158
|
+
an as DBSwitch,
|
|
4159
|
+
Ni as DBTabItem,
|
|
4160
|
+
Pi as DBTabList,
|
|
4161
|
+
qi as DBTabPanel,
|
|
4162
|
+
tn as DBTabs,
|
|
4163
|
+
yt as DBTag,
|
|
4164
|
+
dn as DBTextarea,
|
|
4119
4165
|
ca as DBTooltip,
|
|
4166
|
+
tl as DB_UX_LOCAL_STORAGE_FRAMEWORK,
|
|
4167
|
+
il as DB_UX_LOCAL_STORAGE_MODE,
|
|
4120
4168
|
xa as DEFAULT_BACK,
|
|
4121
4169
|
Ta as DEFAULT_BURGER_MENU,
|
|
4122
4170
|
qe as DEFAULT_CLOSE_BUTTON,
|
|
@@ -4138,82 +4186,83 @@ export {
|
|
|
4138
4186
|
se as DEFAULT_VALID_MESSAGE,
|
|
4139
4187
|
re as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
4140
4188
|
Aa as DEFAULT_VIEWPORT,
|
|
4141
|
-
|
|
4189
|
+
Qi as DENSITIES,
|
|
4142
4190
|
ta as DENSITY,
|
|
4143
|
-
|
|
4191
|
+
Yi as DENSITY_CONST,
|
|
4144
4192
|
Da as DESKTOP_VIEWPORT,
|
|
4145
|
-
|
|
4146
|
-
|
|
4193
|
+
pl as DividerMarginList,
|
|
4194
|
+
Ll as DividerVariantList,
|
|
4147
4195
|
fe as DocumentClickListener,
|
|
4148
4196
|
oe as DocumentScrollListener,
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4197
|
+
Il as DrawerBackdropList,
|
|
4198
|
+
xl as DrawerDirectionList,
|
|
4199
|
+
Tl as DrawerPositionList,
|
|
4200
|
+
$l as DrawerVariantList,
|
|
4201
|
+
Sn as EmphasisList,
|
|
4202
|
+
Ln as FieldSizingList,
|
|
4203
|
+
mn as GapSpacingList,
|
|
4204
|
+
Al as IconWeightList,
|
|
4205
|
+
Dl as InputTypeList,
|
|
4206
|
+
xn as LabelVariantHorizontalList,
|
|
4207
|
+
In as LabelVariantList,
|
|
4208
|
+
Rl as LinkContentList,
|
|
4209
|
+
Cn as LinkReferrerPolicyList,
|
|
4210
|
+
Nl as LinkSizeList,
|
|
4211
|
+
Tn as LinkTargetList,
|
|
4212
|
+
Ml as LinkVariantList,
|
|
4213
|
+
fn as MarginList,
|
|
4214
|
+
yn as MaxWidthList,
|
|
4215
|
+
Gt as NavigationItemSafeTriangle,
|
|
4216
|
+
Ul as NotificationAriaLiveList,
|
|
4217
|
+
Ol as NotificationLinkVariantList,
|
|
4218
|
+
ql as NotificationVariantList,
|
|
4219
|
+
gn as OrientationList,
|
|
4220
|
+
Hl as PageDocumentOverflowList,
|
|
4221
|
+
Wl as PageVariantList,
|
|
4222
|
+
Xi as PlacementHorizontalList,
|
|
4223
|
+
hn as PlacementList,
|
|
4224
|
+
ji as PlacementVerticalList,
|
|
4225
|
+
kn as PopoverDelayList,
|
|
4226
|
+
wn as PopoverWidthList,
|
|
4179
4227
|
na as SEMANTIC,
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4228
|
+
el as SEMANTICS,
|
|
4229
|
+
Bl as SelectedTypeList,
|
|
4230
|
+
rn as SemanticList,
|
|
4231
|
+
Bn as SizeList,
|
|
4232
|
+
vn as SpacingList,
|
|
4233
|
+
_l as StackAlignmentList,
|
|
4234
|
+
Zl as StackDirectionList,
|
|
4235
|
+
en as StackJustifyContentList,
|
|
4236
|
+
Ql as StackVariantList,
|
|
4237
|
+
al as TESTING_VIEWPORTS,
|
|
4238
|
+
ln as TabsBehaviorList,
|
|
4239
|
+
nn as TabsInitialSelectedModeList,
|
|
4240
|
+
on as TagBehaviorList,
|
|
4241
|
+
sn as TextareaResizeList,
|
|
4242
|
+
un as TextareaWrapList,
|
|
4243
|
+
cn as TooltipVariantList,
|
|
4244
|
+
pn as ValidationList,
|
|
4245
|
+
bn as WidthList,
|
|
4198
4246
|
oa as addAttributeToChildren,
|
|
4199
|
-
|
|
4247
|
+
U as cls,
|
|
4200
4248
|
K as delay,
|
|
4201
4249
|
q as getBoolean,
|
|
4202
|
-
|
|
4250
|
+
P as getBooleanAsString,
|
|
4203
4251
|
sa as getFloatingProps,
|
|
4204
4252
|
ne as getHideProp,
|
|
4205
4253
|
Ze as getInputValue,
|
|
4206
|
-
|
|
4207
|
-
|
|
4254
|
+
Se as getNumber,
|
|
4255
|
+
ll as getOptionKey,
|
|
4208
4256
|
_e as getSearchInput,
|
|
4209
|
-
|
|
4210
|
-
Za as
|
|
4257
|
+
Ra as getStep,
|
|
4258
|
+
Za as handleDataOutside,
|
|
4259
|
+
_a as handleFixedDropdown,
|
|
4211
4260
|
ua as handleFixedPopover,
|
|
4212
4261
|
ue as hasVoiceOver,
|
|
4213
|
-
|
|
4262
|
+
Fa as isArrayOfStrings,
|
|
4214
4263
|
Ut as isEventTargetNavigationItem,
|
|
4215
4264
|
Na as isIOSSafari,
|
|
4216
|
-
|
|
4265
|
+
za as isKeyboardEvent,
|
|
4217
4266
|
Z as stringPropVisible,
|
|
4218
4267
|
_ as uuid
|
|
4219
4268
|
};
|