@db-ux/v-core-components 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db-ux.es.js +614 -613
- package/dist/db-ux.umd.js +1 -1
- package/package.json +5 -5
package/dist/db-ux.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ha = Object.defineProperty;
|
|
2
2
|
var ga = (l, a, i) => a in l ? ha(l, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : l[a] = i;
|
|
3
3
|
var se = (l, a, i) => ga(l, typeof a != "symbol" ? a + "" : a, i);
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as q, ref as n, createElementBlock as g, openBlock as f, unref as d, normalizeClass as P, renderSlot as T, Fragment as U, createTextVNode as C, toDisplayString as S, createCommentVNode as F, createElementVNode as _, createBlock as J, withCtx as V, onMounted as Y, watch as A, createVNode as te, renderList as ge, onUnmounted as ba } from "vue";
|
|
5
5
|
const Q = () => {
|
|
6
6
|
var l, a;
|
|
7
7
|
if (typeof window < "u") {
|
|
@@ -16,7 +16,7 @@ const Q = () => {
|
|
|
16
16
|
Object.values(i).forEach((e) => {
|
|
17
17
|
e.setAttribute(a.key, a.value), e.children.length > 0 && Ye(e, a);
|
|
18
18
|
});
|
|
19
|
-
},
|
|
19
|
+
}, z = (...l) => {
|
|
20
20
|
let a = "";
|
|
21
21
|
for (const i of l)
|
|
22
22
|
if (i)
|
|
@@ -26,7 +26,7 @@ const Q = () => {
|
|
|
26
26
|
for (const e in i)
|
|
27
27
|
i[e] && (a += `${e} `);
|
|
28
28
|
return a.trim();
|
|
29
|
-
},
|
|
29
|
+
}, zi = (l) => {
|
|
30
30
|
const {
|
|
31
31
|
left: a,
|
|
32
32
|
right: i
|
|
@@ -34,7 +34,7 @@ const Q = () => {
|
|
|
34
34
|
innerWidth: e
|
|
35
35
|
} = window;
|
|
36
36
|
return a >= 0 && i <= e;
|
|
37
|
-
},
|
|
37
|
+
}, qi = (l) => {
|
|
38
38
|
const {
|
|
39
39
|
top: a,
|
|
40
40
|
bottom: i
|
|
@@ -50,16 +50,16 @@ const Q = () => {
|
|
|
50
50
|
left: e,
|
|
51
51
|
right: t
|
|
52
52
|
} = l.getBoundingClientRect(), {
|
|
53
|
-
innerHeight:
|
|
54
|
-
innerWidth:
|
|
53
|
+
innerHeight: v,
|
|
54
|
+
innerWidth: u
|
|
55
55
|
} = window;
|
|
56
|
-
let
|
|
56
|
+
let h = a < 0, s = i > v, r = e < 0, c = t > u;
|
|
57
57
|
const I = l.hasAttribute("data-outside-vy"), L = l.hasAttribute("data-outside-vx"), B = (N = l == null ? void 0 : l.parentElement) == null ? void 0 : N.getBoundingClientRect();
|
|
58
|
-
return B && (I && (l.getAttribute("data-outside-vy") === "top" ?
|
|
59
|
-
outTop:
|
|
58
|
+
return B && (I && (l.getAttribute("data-outside-vy") === "top" ? h = B.top - (i - B.bottom) < 0 : s = B.bottom + (B.top - a) > v), L && (l.getAttribute("data-outside-vx") === "left" ? r = B.left - (t - B.right) < 0 : c = B.right + (B.left - e) > u)), {
|
|
59
|
+
outTop: h,
|
|
60
60
|
outBottom: s,
|
|
61
|
-
outLeft:
|
|
62
|
-
outRight:
|
|
61
|
+
outLeft: r,
|
|
62
|
+
outRight: c
|
|
63
63
|
};
|
|
64
64
|
}, Fe = (l) => {
|
|
65
65
|
const {
|
|
@@ -68,13 +68,13 @@ const Q = () => {
|
|
|
68
68
|
outLeft: e,
|
|
69
69
|
outRight: t
|
|
70
70
|
} = ya(l);
|
|
71
|
-
let
|
|
72
|
-
return a || i ? (
|
|
71
|
+
let v = {};
|
|
72
|
+
return a || i ? (v = {
|
|
73
73
|
vy: a ? "top" : "bottom"
|
|
74
|
-
}, l.setAttribute("data-outside-vy",
|
|
75
|
-
...
|
|
74
|
+
}, l.setAttribute("data-outside-vy", v.vy)) : l.removeAttribute("data-outside-vy"), e || t ? (v = {
|
|
75
|
+
...v,
|
|
76
76
|
vx: t ? "right" : "left"
|
|
77
|
-
}, l.setAttribute("data-outside-vx",
|
|
77
|
+
}, l.setAttribute("data-outside-vx", v.vx)) : l.removeAttribute("data-outside-vx"), v;
|
|
78
78
|
}, ka = (l) => Array.isArray(l) && l.every((a) => typeof a == "string"), Ba = ["Mac", "iPhone", "iPad", "iPod"], ue = () => typeof window < "u" && Ba.some((l) => window.navigator.userAgent.includes(l)), ee = (l, a) => new Promise(() => setTimeout(l, a)), H = (l) => {
|
|
79
79
|
if (l != null)
|
|
80
80
|
return String(typeof l == "string" ? !!l : l);
|
|
@@ -87,7 +87,7 @@ const Q = () => {
|
|
|
87
87
|
}, K = (l) => {
|
|
88
88
|
if (l != null)
|
|
89
89
|
return H(!l);
|
|
90
|
-
}, Z = (l, a) => (a === void 0 || !!a) && !!l, We = (l) => l.querySelector('input[type="search"]'), Sa = ["id", "type", "disabled", "aria-label", "data-icon", "data-hide-icon", "data-size", "data-state", "data-width", "data-variant", "data-no-text", "name", "form", "value", "aria-describedby", "aria-expanded", "aria-pressed"], Be = /* @__PURE__ */
|
|
90
|
+
}, Z = (l, a) => (a === void 0 || !!a) && !!l, We = (l) => l.querySelector('input[type="search"]'), Sa = ["id", "type", "disabled", "aria-label", "data-icon", "data-hide-icon", "data-size", "data-state", "data-width", "data-variant", "data-no-text", "name", "form", "value", "aria-describedby", "aria-expanded", "aria-pressed"], Be = /* @__PURE__ */ q({
|
|
91
91
|
__name: "button",
|
|
92
92
|
props: {
|
|
93
93
|
ariaexpanded: { type: Boolean, default: void 0 },
|
|
@@ -117,13 +117,13 @@ const Q = () => {
|
|
|
117
117
|
setup(l) {
|
|
118
118
|
const a = l, i = n(null);
|
|
119
119
|
function e(t) {
|
|
120
|
-
a.onClick && a.onClick(t);
|
|
120
|
+
t.stopPropagation(), a.onClick && a.onClick(t);
|
|
121
121
|
}
|
|
122
|
-
return (t,
|
|
122
|
+
return (t, v) => (f(), g("button", {
|
|
123
123
|
ref_key: "_ref",
|
|
124
124
|
ref: i,
|
|
125
125
|
id: t.id,
|
|
126
|
-
class:
|
|
126
|
+
class: P(d(z)("db-button", a.class)),
|
|
127
127
|
type: t.type || "button",
|
|
128
128
|
disabled: d(M)(t.disabled, "disabled"),
|
|
129
129
|
"aria-label": t.label,
|
|
@@ -140,14 +140,14 @@ const Q = () => {
|
|
|
140
140
|
"aria-describedby": t.describedbyid,
|
|
141
141
|
"aria-expanded": t.ariaexpanded,
|
|
142
142
|
"aria-pressed": t.ariapressed,
|
|
143
|
-
onClick:
|
|
143
|
+
onClick: v[0] || (v[0] = async (u) => e(u))
|
|
144
144
|
}, [
|
|
145
|
-
t.text ? (f(),
|
|
145
|
+
t.text ? (f(), g(U, { key: 0 }, [
|
|
146
146
|
C(S(t.text), 1)
|
|
147
147
|
], 64)) : T(t.$slots, "default", { key: 1 })
|
|
148
148
|
], 10, Sa));
|
|
149
149
|
}
|
|
150
|
-
}), we = "OVERWRITE_DEFAULT_ID", ke = "LABEL SHOULD BE SET", Ke = " ", wa = "MESSAGE SHOULD BE SET", Xe = "-label", He = "-select", re = "-message",
|
|
150
|
+
}), we = "OVERWRITE_DEFAULT_ID", ke = "LABEL SHOULD BE SET", Ke = " ", wa = "MESSAGE SHOULD BE SET", Xe = "-label", He = "-select", re = "-message", ce = "-valid-message", ve = "-invalid-message", Ne = "-placeholder", je = "-datalist", fe = "TODO: Add a validMessage", ie = "TODO: Add an invalidMessage", Je = "Remove", _a = "Back", Ia = "Selected", La = "BurgerMenu", Ta = "brand", $a = 4, Pe = "Close", Ui = "density", Gi = "color";
|
|
151
151
|
var Qe = /* @__PURE__ */ ((l) => (l.FUNCTIONAL = "functional", l.REGULAR = "regular", l.EXPRESSIVE = "expressive", l))(Qe || {});
|
|
152
152
|
const Vi = Object.entries(Qe).map(([, l]) => l);
|
|
153
153
|
var Ze = /* @__PURE__ */ ((l) => (l.PRIMARY = "primary", l))(Ze || {}), xe = /* @__PURE__ */ ((l) => (l.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", l.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", l.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", l.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", l.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", l.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", l.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", l.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", l.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", l.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", l.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", l.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", l.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", l.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", l.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", l.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", l.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", l.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", l.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", l.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", l.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", l.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", l.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", l.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", l.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", l.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", l.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", l.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", l.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", l.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", l))(xe || {});
|
|
@@ -169,7 +169,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
169
169
|
}, {
|
|
170
170
|
name: "mobile",
|
|
171
171
|
...Aa
|
|
172
|
-
}], Ea = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], Na = { key: 0 }, Da = { key: 1 }, ji = /* @__PURE__ */
|
|
172
|
+
}], Ea = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], Na = { key: 0 }, Da = { key: 1 }, ji = /* @__PURE__ */ q({
|
|
173
173
|
__name: "notification",
|
|
174
174
|
props: {
|
|
175
175
|
ariaLive: { default: void 0 },
|
|
@@ -203,13 +203,13 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
203
203
|
setup(l) {
|
|
204
204
|
const a = l, i = n(null);
|
|
205
205
|
function e(t) {
|
|
206
|
-
a.onClose && a.onClose(t);
|
|
206
|
+
t.stopPropagation(), a.onClose && a.onClose(t);
|
|
207
207
|
}
|
|
208
|
-
return (t,
|
|
208
|
+
return (t, v) => (f(), g("article", {
|
|
209
209
|
ref_key: "_ref",
|
|
210
210
|
ref: i,
|
|
211
211
|
id: t.id,
|
|
212
|
-
class:
|
|
212
|
+
class: P(d(z)("db-notification", a.class)),
|
|
213
213
|
"aria-live": t.ariaLive,
|
|
214
214
|
"data-semantic": t.semantic,
|
|
215
215
|
"data-variant": t.variant,
|
|
@@ -218,13 +218,13 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
218
218
|
"data-link-variant": t.linkVariant
|
|
219
219
|
}, [
|
|
220
220
|
T(t.$slots, "image"),
|
|
221
|
-
d(Z)(t.headline, t.showHeadline) ? (f(),
|
|
221
|
+
d(Z)(t.headline, t.showHeadline) ? (f(), g("header", Na, S(t.headline), 1)) : F("", !0),
|
|
222
222
|
_("p", null, [
|
|
223
|
-
t.text ? (f(),
|
|
223
|
+
t.text ? (f(), g(U, { key: 0 }, [
|
|
224
224
|
C(S(t.text), 1)
|
|
225
225
|
], 64)) : T(t.$slots, "default", { key: 1 })
|
|
226
226
|
]),
|
|
227
|
-
d(Z)(t.timestamp, t.showTimestamp) ? (f(),
|
|
227
|
+
d(Z)(t.timestamp, t.showTimestamp) ? (f(), g("span", Da, S(t.timestamp), 1)) : F("", !0),
|
|
228
228
|
T(t.$slots, "link"),
|
|
229
229
|
d(M)(t.closeable, "closeable") ? (f(), J(Be, {
|
|
230
230
|
key: 2,
|
|
@@ -233,16 +233,16 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
233
233
|
size: "small",
|
|
234
234
|
id: t.closeButtonId,
|
|
235
235
|
noText: !0,
|
|
236
|
-
onClick: (
|
|
236
|
+
onClick: (u) => e(u)
|
|
237
237
|
}, {
|
|
238
238
|
default: V(() => [
|
|
239
|
-
C(S(t.closeButtonText ?? d(
|
|
239
|
+
C(S(t.closeButtonText ?? d(Pe)), 1)
|
|
240
240
|
]),
|
|
241
241
|
_: 1
|
|
242
242
|
}, 8, ["id", "onClick"])) : F("", !0)
|
|
243
243
|
], 10, Ea));
|
|
244
244
|
}
|
|
245
|
-
}), Fa = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], Yi = /* @__PURE__ */
|
|
245
|
+
}), Fa = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], Yi = /* @__PURE__ */ q({
|
|
246
246
|
__name: "badge",
|
|
247
247
|
props: {
|
|
248
248
|
placement: { default: void 0 },
|
|
@@ -267,34 +267,34 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
267
267
|
() => {
|
|
268
268
|
var t;
|
|
269
269
|
if (e.value && i.value && (t = a.placement) != null && t.startsWith("corner")) {
|
|
270
|
-
let
|
|
271
|
-
|
|
270
|
+
let v = e.value.parentElement;
|
|
271
|
+
v && v.localName.includes("badge") && (v = v.parentElement), v && v.setAttribute("data-has-badge", "true");
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
immediate: !0,
|
|
276
276
|
flush: "post"
|
|
277
277
|
}
|
|
278
|
-
), (t,
|
|
279
|
-
var
|
|
280
|
-
return f(),
|
|
278
|
+
), (t, v) => {
|
|
279
|
+
var u;
|
|
280
|
+
return f(), g("span", {
|
|
281
281
|
ref_key: "_ref",
|
|
282
282
|
ref: e,
|
|
283
283
|
id: t.id,
|
|
284
|
-
class:
|
|
284
|
+
class: P(d(z)("db-badge", a.class)),
|
|
285
285
|
"data-semantic": t.semantic,
|
|
286
286
|
"data-size": t.size,
|
|
287
287
|
"data-emphasis": t.emphasis,
|
|
288
288
|
"data-placement": t.placement,
|
|
289
|
-
"data-label": ((
|
|
289
|
+
"data-label": ((u = t.placement) == null ? void 0 : u.startsWith("corner")) && (t.label ?? d(ke))
|
|
290
290
|
}, [
|
|
291
|
-
t.text ? (f(),
|
|
291
|
+
t.text ? (f(), g(U, { key: 0 }, [
|
|
292
292
|
C(S(t.text), 1)
|
|
293
293
|
], 64)) : T(t.$slots, "default", { key: 1 })
|
|
294
294
|
], 10, Fa);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}), Ma = ["data-icon", "data-hide-icon", "id"], Ki = /* @__PURE__ */
|
|
297
|
+
}), Ma = ["data-icon", "data-hide-icon", "id"], Ki = /* @__PURE__ */ q({
|
|
298
298
|
__name: "brand",
|
|
299
299
|
props: {
|
|
300
300
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -310,20 +310,20 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
310
310
|
},
|
|
311
311
|
setup(l) {
|
|
312
312
|
const a = l, i = n(null);
|
|
313
|
-
return (e, t) => (f(),
|
|
313
|
+
return (e, t) => (f(), g("div", {
|
|
314
314
|
ref_key: "_ref",
|
|
315
315
|
ref: i,
|
|
316
316
|
"data-icon": e.hideLogo ? "none" : e.icon ?? d(Ta),
|
|
317
317
|
"data-hide-icon": d(K)(e.showIcon),
|
|
318
318
|
id: e.id,
|
|
319
|
-
class:
|
|
319
|
+
class: P(d(z)("db-brand", a.class))
|
|
320
320
|
}, [
|
|
321
|
-
e.text ? (f(),
|
|
321
|
+
e.text ? (f(), g(U, { key: 0 }, [
|
|
322
322
|
C(S(e.text), 1)
|
|
323
323
|
], 64)) : T(e.$slots, "default", { key: 1 })
|
|
324
324
|
], 10, Ma));
|
|
325
325
|
}
|
|
326
|
-
}), Ra = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], Ji = /* @__PURE__ */
|
|
326
|
+
}), Ra = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], Ji = /* @__PURE__ */ q({
|
|
327
327
|
__name: "card",
|
|
328
328
|
props: {
|
|
329
329
|
behavior: { default: void 0 },
|
|
@@ -340,26 +340,26 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
340
340
|
setup(l) {
|
|
341
341
|
const a = l, i = n(null);
|
|
342
342
|
function e(t) {
|
|
343
|
-
a.onClick && a.onClick(t);
|
|
343
|
+
t.stopPropagation(), a.onClick && a.onClick(t);
|
|
344
344
|
}
|
|
345
|
-
return (t,
|
|
345
|
+
return (t, v) => (f(), g("div", {
|
|
346
346
|
ref_key: "_ref",
|
|
347
347
|
ref: i,
|
|
348
348
|
id: t.id,
|
|
349
|
-
class:
|
|
349
|
+
class: P(d(z)("db-card", a.class)),
|
|
350
350
|
"data-behavior": t.behavior,
|
|
351
351
|
"data-elevation-level": t.elevationLevel,
|
|
352
352
|
"data-spacing": t.spacing,
|
|
353
353
|
role: t.behavior === "interactive" ? "button" : void 0,
|
|
354
354
|
tabIndex: t.behavior === "interactive" ? 0 : void 0,
|
|
355
|
-
onClick:
|
|
355
|
+
onClick: v[0] || (v[0] = async (u) => e(u))
|
|
356
356
|
}, [
|
|
357
357
|
T(t.$slots, "default")
|
|
358
358
|
], 10, Ra));
|
|
359
359
|
}
|
|
360
360
|
}), oe = (l, a, i = "value") => {
|
|
361
361
|
l(`update:${i}`, a.target[i]);
|
|
362
|
-
},
|
|
362
|
+
}, Pa = ["id", "data-icon", "data-semantic", "data-size", "data-hide-icon-before"], ae = /* @__PURE__ */ q({
|
|
363
363
|
__name: "infotext",
|
|
364
364
|
props: {
|
|
365
365
|
children: { default: void 0 },
|
|
@@ -376,25 +376,25 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
376
376
|
},
|
|
377
377
|
setup(l) {
|
|
378
378
|
const a = l, i = n(null);
|
|
379
|
-
return (e, t) => (f(),
|
|
379
|
+
return (e, t) => (f(), g("span", {
|
|
380
380
|
ref_key: "_ref",
|
|
381
381
|
ref: i,
|
|
382
382
|
id: e.id,
|
|
383
|
-
class:
|
|
383
|
+
class: P(d(z)("db-infotext", a.class)),
|
|
384
384
|
"data-icon": e.icon,
|
|
385
385
|
"data-semantic": e.semantic,
|
|
386
386
|
"data-size": e.size,
|
|
387
387
|
"data-hide-icon-before": d(K)(e.showIcon ?? !0)
|
|
388
388
|
}, [
|
|
389
|
-
e.text ? (f(),
|
|
389
|
+
e.text ? (f(), g(U, { key: 0 }, [
|
|
390
390
|
C(S(e.text), 1)
|
|
391
391
|
], 64)) : T(e.$slots, "default", { key: 1 })
|
|
392
|
-
], 10,
|
|
392
|
+
], 10, Pa));
|
|
393
393
|
}
|
|
394
|
-
}),
|
|
394
|
+
}), za = ["data-size", "data-hide-label"], qa = ["for"], Ua = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Ga = {
|
|
395
395
|
"data-visually-hidden": "true",
|
|
396
396
|
role: "status"
|
|
397
|
-
}, Qi = /* @__PURE__ */
|
|
397
|
+
}, Qi = /* @__PURE__ */ q({
|
|
398
398
|
__name: "checkbox",
|
|
399
399
|
props: {
|
|
400
400
|
indeterminate: { type: [Boolean, String], default: void 0 },
|
|
@@ -432,27 +432,27 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
432
432
|
},
|
|
433
433
|
emits: ["update:checked"],
|
|
434
434
|
setup(l, { emit: a }) {
|
|
435
|
-
const i = a, e = l, t = n(!1),
|
|
435
|
+
const i = a, e = l, t = n(!1), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(""), I = n(""), L = n(null);
|
|
436
436
|
Y(() => {
|
|
437
437
|
t.value = !0;
|
|
438
438
|
const y = e.id ?? `checkbox-${Q()}`;
|
|
439
|
-
|
|
439
|
+
v.value = y, u.value = y + re, h.value = y + ce, s.value = y + ve, r.value = e.invalidMessage || ie;
|
|
440
440
|
}), A(
|
|
441
441
|
() => [L.value, e.invalidMessage],
|
|
442
442
|
() => {
|
|
443
443
|
var y;
|
|
444
|
-
|
|
444
|
+
r.value = e.invalidMessage || ((y = L.value) == null ? void 0 : y.validationMessage) || ie;
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
immediate: !0,
|
|
448
448
|
flush: "post"
|
|
449
449
|
}
|
|
450
450
|
), A(
|
|
451
|
-
() => [
|
|
451
|
+
() => [v.value],
|
|
452
452
|
() => {
|
|
453
|
-
if (
|
|
454
|
-
const y =
|
|
455
|
-
|
|
453
|
+
if (v.value) {
|
|
454
|
+
const y = v.value + re;
|
|
455
|
+
u.value = y, h.value = v.value + ce, s.value = v.value + ve, Z(e.message, e.showMessage) && (c.value = y);
|
|
456
456
|
}
|
|
457
457
|
},
|
|
458
458
|
{
|
|
@@ -483,30 +483,30 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
483
483
|
}
|
|
484
484
|
function N() {
|
|
485
485
|
var y, b, O;
|
|
486
|
-
!((y = L.value) != null && y.validity.valid) || e.validation === "invalid" ? (
|
|
486
|
+
!((y = L.value) != null && y.validity.valid) || e.validation === "invalid" ? (c.value = s.value, r.value = e.invalidMessage || ((b = L.value) == null ? void 0 : b.validationMessage) || ie, ue() && (I.value = r.value, ee(() => I.value = "", 1e3))) : B() && ((O = L.value) != null && O.validity.valid) && e.required ? (c.value = h.value, ue() && (I.value = e.validMessage ?? fe, ee(() => I.value = "", 1e3))) : Z(e.message, e.showMessage) ? c.value = u.value : c.value = "";
|
|
487
487
|
}
|
|
488
488
|
function w(y) {
|
|
489
|
-
e.onChange && e.onChange(y), oe(i, y, "checked"), N();
|
|
489
|
+
y.stopPropagation(), e.onChange && e.onChange(y), oe(i, y, "checked"), N();
|
|
490
490
|
}
|
|
491
491
|
function $(y) {
|
|
492
|
-
e.onBlur && e.onBlur(y);
|
|
492
|
+
y.stopPropagation(), e.onBlur && e.onBlur(y);
|
|
493
493
|
}
|
|
494
494
|
function R(y) {
|
|
495
|
-
e.onFocus && e.onFocus(y);
|
|
495
|
+
y.stopPropagation(), e.onFocus && e.onFocus(y);
|
|
496
496
|
}
|
|
497
|
-
return (y, b) => (f(),
|
|
498
|
-
class:
|
|
497
|
+
return (y, b) => (f(), g("div", {
|
|
498
|
+
class: P(d(z)("db-checkbox", e.class)),
|
|
499
499
|
"data-size": y.size,
|
|
500
500
|
"data-hide-label": d(K)(y.showLabel)
|
|
501
501
|
}, [
|
|
502
|
-
_("label", { for:
|
|
502
|
+
_("label", { for: v.value }, [
|
|
503
503
|
_("input", {
|
|
504
504
|
type: "checkbox",
|
|
505
505
|
"aria-invalid": y.validation === "invalid",
|
|
506
506
|
"data-custom-validity": y.validation,
|
|
507
507
|
ref_key: "_ref",
|
|
508
508
|
ref: L,
|
|
509
|
-
id:
|
|
509
|
+
id: v.value,
|
|
510
510
|
name: y.name,
|
|
511
511
|
checked: d(M)(y.checked, "checked"),
|
|
512
512
|
disabled: d(M)(y.disabled, "disabled"),
|
|
@@ -515,17 +515,17 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
515
515
|
onChange: b[0] || (b[0] = async (O) => w(O)),
|
|
516
516
|
onBlur: b[1] || (b[1] = async (O) => $(O)),
|
|
517
517
|
onFocus: b[2] || (b[2] = async (O) => R(O)),
|
|
518
|
-
"aria-describedby":
|
|
519
|
-
}, null, 40,
|
|
520
|
-
y.label ? (f(),
|
|
518
|
+
"aria-describedby": c.value
|
|
519
|
+
}, null, 40, Ua),
|
|
520
|
+
y.label ? (f(), g(U, { key: 0 }, [
|
|
521
521
|
C(S(y.label), 1)
|
|
522
522
|
], 64)) : T(y.$slots, "default", { key: 1 })
|
|
523
|
-
], 8,
|
|
523
|
+
], 8, qa),
|
|
524
524
|
d(Z)(y.message, y.showMessage) ? (f(), J(ae, {
|
|
525
525
|
key: 0,
|
|
526
526
|
size: "small",
|
|
527
527
|
icon: y.messageIcon,
|
|
528
|
-
id:
|
|
528
|
+
id: u.value
|
|
529
529
|
}, {
|
|
530
530
|
default: V(() => [
|
|
531
531
|
C(S(y.message), 1)
|
|
@@ -536,7 +536,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
536
536
|
key: 1,
|
|
537
537
|
size: "small",
|
|
538
538
|
semantic: "successful",
|
|
539
|
-
id:
|
|
539
|
+
id: h.value
|
|
540
540
|
}, {
|
|
541
541
|
default: V(() => [
|
|
542
542
|
C(S(y.validMessage || d(fe)), 1)
|
|
@@ -549,14 +549,14 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
549
549
|
id: s.value
|
|
550
550
|
}, {
|
|
551
551
|
default: V(() => [
|
|
552
|
-
C(S(
|
|
552
|
+
C(S(r.value), 1)
|
|
553
553
|
]),
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["id"]),
|
|
556
|
-
_("span",
|
|
557
|
-
], 10,
|
|
556
|
+
_("span", Ga, S(I.value), 1)
|
|
557
|
+
], 10, za));
|
|
558
558
|
}
|
|
559
|
-
}), Va = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], Zi = /* @__PURE__ */
|
|
559
|
+
}), Va = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], Zi = /* @__PURE__ */ q({
|
|
560
560
|
__name: "divider",
|
|
561
561
|
props: {
|
|
562
562
|
margin: { default: void 0 },
|
|
@@ -572,7 +572,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
572
572
|
},
|
|
573
573
|
setup(l) {
|
|
574
574
|
const a = l, i = n(null);
|
|
575
|
-
return (e, t) => (f(),
|
|
575
|
+
return (e, t) => (f(), g("div", {
|
|
576
576
|
ref_key: "_ref",
|
|
577
577
|
ref: i,
|
|
578
578
|
id: e.id,
|
|
@@ -580,10 +580,10 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
580
580
|
"data-variant": e.variant,
|
|
581
581
|
"data-emphasis": e.emphasis,
|
|
582
582
|
"data-width": e.width,
|
|
583
|
-
class:
|
|
583
|
+
class: P(d(z)("db-divider", a.class))
|
|
584
584
|
}, null, 10, Va));
|
|
585
585
|
}
|
|
586
|
-
}), Oa = ["id", "data-backdrop", "data-variant"], Wa = ["data-spacing", "data-width", "data-direction", "data-rounded"], Xa = { class: "db-drawer-header" }, Ha = { class: "db-drawer-header-text" }, ja = { class: "db-drawer-content" }, Ya = /* @__PURE__ */
|
|
586
|
+
}), Oa = ["id", "data-backdrop", "data-variant"], Wa = ["data-spacing", "data-width", "data-direction", "data-rounded"], Xa = { class: "db-drawer-header" }, Ha = { class: "db-drawer-header-text" }, ja = { class: "db-drawer-content" }, Ya = /* @__PURE__ */ q({
|
|
587
587
|
__name: "drawer",
|
|
588
588
|
props: {
|
|
589
589
|
backdrop: { default: void 0 },
|
|
@@ -608,68 +608,68 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
608
608
|
setup(l) {
|
|
609
609
|
const a = l, i = n(null), e = n(null);
|
|
610
610
|
Y(() => {
|
|
611
|
-
|
|
611
|
+
v();
|
|
612
612
|
}), A(
|
|
613
613
|
() => [a.open],
|
|
614
614
|
() => {
|
|
615
|
-
|
|
615
|
+
v();
|
|
616
616
|
},
|
|
617
617
|
{
|
|
618
618
|
immediate: !0,
|
|
619
619
|
flush: "post"
|
|
620
620
|
}
|
|
621
621
|
);
|
|
622
|
-
function t(
|
|
623
|
-
|
|
622
|
+
function t(u) {
|
|
623
|
+
u.key === "Escape" && u.preventDefault(), (u === "close" || u.key === "Escape" || u.target.nodeName === "DIALOG" && u.type === "click" && a.backdrop !== "none") && a.onClose && a.onClose(u);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function v() {
|
|
626
626
|
if (i.value) {
|
|
627
|
-
const
|
|
628
|
-
|
|
629
|
-
var
|
|
630
|
-
e.value && (e.value.hidden = !1), (
|
|
627
|
+
const u = !!a.open;
|
|
628
|
+
u && !i.value.open && (e.value && (e.value.hidden = !1), a.backdrop === "none" || a.variant === "inside" ? i.value.show() : i.value.showModal()), !u && i.value.open && (e.value && (e.value.hidden = !0), ee(() => {
|
|
629
|
+
var h;
|
|
630
|
+
e.value && (e.value.hidden = !1), (h = i.value) == null || h.close();
|
|
631
631
|
}, 401));
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return (
|
|
634
|
+
return (u, h) => (f(), g("dialog", {
|
|
635
635
|
class: "db-drawer",
|
|
636
|
-
id:
|
|
636
|
+
id: u.id,
|
|
637
637
|
ref_key: "_ref",
|
|
638
638
|
ref: i,
|
|
639
|
-
onClick:
|
|
640
|
-
onKeydown:
|
|
641
|
-
"data-backdrop":
|
|
642
|
-
"data-variant":
|
|
639
|
+
onClick: h[0] || (h[0] = async (s) => t(s)),
|
|
640
|
+
onKeydown: h[1] || (h[1] = async (s) => t(s)),
|
|
641
|
+
"data-backdrop": u.backdrop,
|
|
642
|
+
"data-variant": u.variant
|
|
643
643
|
}, [
|
|
644
644
|
_("article", {
|
|
645
645
|
ref_key: "dialogContainerRef",
|
|
646
646
|
ref: e,
|
|
647
|
-
class:
|
|
648
|
-
"data-spacing":
|
|
649
|
-
"data-width":
|
|
650
|
-
"data-direction":
|
|
651
|
-
"data-rounded": d(H)(
|
|
647
|
+
class: P(d(z)("db-drawer-container", a.class)),
|
|
648
|
+
"data-spacing": u.spacing,
|
|
649
|
+
"data-width": u.width,
|
|
650
|
+
"data-direction": u.direction,
|
|
651
|
+
"data-rounded": d(H)(u.rounded)
|
|
652
652
|
}, [
|
|
653
653
|
_("header", Xa, [
|
|
654
654
|
_("div", Ha, [
|
|
655
|
-
T(
|
|
655
|
+
T(u.$slots, "drawer-header")
|
|
656
656
|
]),
|
|
657
657
|
te(Be, {
|
|
658
658
|
class: "button-close-drawer",
|
|
659
659
|
icon: "cross",
|
|
660
660
|
variant: "ghost",
|
|
661
|
-
id:
|
|
661
|
+
id: u.closeButtonId,
|
|
662
662
|
noText: !0,
|
|
663
663
|
onClick: (s) => t("close")
|
|
664
664
|
}, {
|
|
665
665
|
default: V(() => [
|
|
666
|
-
C(S(
|
|
666
|
+
C(S(u.closeButtonText ?? d(Pe)), 1)
|
|
667
667
|
]),
|
|
668
668
|
_: 1
|
|
669
669
|
}, 8, ["id", "onClick"])
|
|
670
670
|
]),
|
|
671
671
|
_("div", ja, [
|
|
672
|
-
T(
|
|
672
|
+
T(u.$slots, "default")
|
|
673
673
|
])
|
|
674
674
|
], 10, Wa)
|
|
675
675
|
], 40, Oa));
|
|
@@ -733,18 +733,18 @@ class Ka {
|
|
|
733
733
|
if (!this.triangleData)
|
|
734
734
|
return;
|
|
735
735
|
if (a === "fill-gap") {
|
|
736
|
-
const
|
|
736
|
+
const u = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, h = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
737
737
|
return {
|
|
738
|
-
lb: `${
|
|
739
|
-
lt: `${
|
|
738
|
+
lb: `${h} ${u}`,
|
|
739
|
+
lt: `${h} 0`,
|
|
740
740
|
rt: "100% 0",
|
|
741
|
-
rb: `100% ${
|
|
741
|
+
rb: `100% ${u}`
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
const i = this.getTriangleTipX(), e = this.getTriangleTipY(), t = `${i}px ${e}px`,
|
|
744
|
+
const i = this.getTriangleTipX(), e = this.getTriangleTipY(), t = `${i}px ${e}px`, v = `${i}px ${e}px`;
|
|
745
745
|
return {
|
|
746
746
|
lb: t,
|
|
747
|
-
lt:
|
|
747
|
+
lt: v,
|
|
748
748
|
rt: "100% 0",
|
|
749
749
|
rb: "100% 100%"
|
|
750
750
|
};
|
|
@@ -757,7 +757,7 @@ class Ka {
|
|
|
757
757
|
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), i && (this.triangleData = void 0));
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-header-drawer-navigation" }, Za = { class: "db-header-meta-navigation" }, xa = { class: "db-header-secondary-action" }, et = { class: "db-header-meta-navigation" }, at = { class: "db-header-navigation-bar" }, tt = { class: "db-header-brand-container" }, it = { class: "db-header-navigation-container" }, lt = { class: "db-header-navigation" }, ot = { class: "db-header-primary-action" }, dt = { class: "db-header-action-container" }, nt = { class: "db-header-burger-menu-container" }, st = { class: "db-header-secondary-action" }, xi = /* @__PURE__ */
|
|
760
|
+
const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-header-drawer-navigation" }, Za = { class: "db-header-meta-navigation" }, xa = { class: "db-header-secondary-action" }, et = { class: "db-header-meta-navigation" }, at = { class: "db-header-navigation-bar" }, tt = { class: "db-header-brand-container" }, it = { class: "db-header-navigation-container" }, lt = { class: "db-header-navigation" }, ot = { class: "db-header-primary-action" }, dt = { class: "db-header-action-container" }, nt = { class: "db-header-burger-menu-container" }, st = { class: "db-header-secondary-action" }, xi = /* @__PURE__ */ q({
|
|
761
761
|
__name: "header",
|
|
762
762
|
props: {
|
|
763
763
|
brand: {},
|
|
@@ -778,7 +778,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
778
778
|
width: { default: void 0 }
|
|
779
779
|
},
|
|
780
780
|
setup(l) {
|
|
781
|
-
const a = l, i = n(we), e = n(!1), t = n(!1),
|
|
781
|
+
const a = l, i = n(we), e = n(!1), t = n(!1), v = n(null);
|
|
782
782
|
Y(() => {
|
|
783
783
|
e.value = !0, i.value = a.id || "header-" + Q();
|
|
784
784
|
}), A(
|
|
@@ -799,17 +799,17 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
799
799
|
flush: "post"
|
|
800
800
|
}
|
|
801
801
|
);
|
|
802
|
-
function
|
|
802
|
+
function u() {
|
|
803
803
|
const s = !M(a.drawerOpen, "drawerOpen");
|
|
804
804
|
a.onToggle && a.onToggle(s);
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
aa(s) &&
|
|
806
|
+
function h(s) {
|
|
807
|
+
aa(s) && u();
|
|
808
808
|
}
|
|
809
|
-
return (s,
|
|
809
|
+
return (s, r) => (f(), g("header", {
|
|
810
810
|
ref_key: "_ref",
|
|
811
|
-
ref:
|
|
812
|
-
class:
|
|
811
|
+
ref: v,
|
|
812
|
+
class: P(d(z)("db-header", a.class)),
|
|
813
813
|
id: i.value,
|
|
814
814
|
"data-width": s.width,
|
|
815
815
|
"data-on-forcing-mobile": s.forceMobile && !t.value
|
|
@@ -819,13 +819,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
819
819
|
spacing: "small",
|
|
820
820
|
rounded: !0,
|
|
821
821
|
open: d(M)(s.drawerOpen),
|
|
822
|
-
onClose: (
|
|
822
|
+
onClose: (c) => u()
|
|
823
823
|
}, {
|
|
824
824
|
default: V(() => [
|
|
825
825
|
_("div", Qa, [
|
|
826
826
|
_("div", {
|
|
827
827
|
class: "db-header-navigation",
|
|
828
|
-
onClick:
|
|
828
|
+
onClick: r[0] || (r[0] = async (c) => h(c))
|
|
829
829
|
}, [
|
|
830
830
|
T(s.$slots, "default")
|
|
831
831
|
]),
|
|
@@ -861,7 +861,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
861
861
|
variant: "ghost",
|
|
862
862
|
id: i.value + "-burger-menu",
|
|
863
863
|
noText: !0,
|
|
864
|
-
onClick: (
|
|
864
|
+
onClick: (c) => u()
|
|
865
865
|
}, {
|
|
866
866
|
default: V(() => [
|
|
867
867
|
C(S(s.burgerMenuLabel ?? d(La)), 1)
|
|
@@ -876,7 +876,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
876
876
|
])
|
|
877
877
|
], 10, Ja));
|
|
878
878
|
}
|
|
879
|
-
}), ut = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], el = /* @__PURE__ */
|
|
879
|
+
}), ut = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], el = /* @__PURE__ */ q({
|
|
880
880
|
__name: "icon",
|
|
881
881
|
props: {
|
|
882
882
|
variant: { default: void 0 },
|
|
@@ -892,25 +892,25 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
892
892
|
},
|
|
893
893
|
setup(l) {
|
|
894
894
|
const a = l, i = n(null);
|
|
895
|
-
return (e, t) => (f(),
|
|
895
|
+
return (e, t) => (f(), g("span", {
|
|
896
896
|
"aria-hidden": "true",
|
|
897
897
|
ref_key: "_ref",
|
|
898
898
|
ref: i,
|
|
899
899
|
id: e.id,
|
|
900
|
-
class:
|
|
900
|
+
class: P(d(z)("db-icon", a.class)),
|
|
901
901
|
"data-icon": e.icon,
|
|
902
902
|
"data-icon-weight": e.weight,
|
|
903
903
|
"data-icon-variant": e.variant
|
|
904
904
|
}, [
|
|
905
|
-
e.text ? (f(),
|
|
905
|
+
e.text ? (f(), g(U, { key: 0 }, [
|
|
906
906
|
C(S(e.text), 1)
|
|
907
907
|
], 64)) : T(e.$slots, "default", { key: 1 })
|
|
908
908
|
], 10, ut));
|
|
909
909
|
}
|
|
910
|
-
}), rt = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"],
|
|
910
|
+
}), rt = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], ct = ["for"], vt = ["aria-invalid", "data-custom-validity", "id", "name", "type", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "list", "aria-describedby"], ft = ["id"], pt = ["value"], mt = {
|
|
911
911
|
"data-visually-hidden": "true",
|
|
912
912
|
role: "status"
|
|
913
|
-
}, ht = /* @__PURE__ */
|
|
913
|
+
}, ht = /* @__PURE__ */ q({
|
|
914
914
|
__name: "input",
|
|
915
915
|
props: {
|
|
916
916
|
dataList: { default: void 0 },
|
|
@@ -964,10 +964,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
964
964
|
},
|
|
965
965
|
emits: ["update:value"],
|
|
966
966
|
setup(l, { emit: a }) {
|
|
967
|
-
const i = a, e = l, t = n(void 0),
|
|
967
|
+
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(""), I = n(""), L = n(""), B = n(null);
|
|
968
968
|
Y(() => {
|
|
969
969
|
const p = e.id ?? `input-${Q()}`;
|
|
970
|
-
t.value = p,
|
|
970
|
+
t.value = p, v.value = p + re, u.value = p + ce, h.value = p + ve, r.value = p + je, s.value = e.invalidMessage || ie;
|
|
971
971
|
}), A(
|
|
972
972
|
() => [B.value, e.invalidMessage],
|
|
973
973
|
() => {
|
|
@@ -983,7 +983,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
983
983
|
() => {
|
|
984
984
|
if (t.value) {
|
|
985
985
|
const p = t.value + re;
|
|
986
|
-
|
|
986
|
+
v.value = p, u.value = t.value + ce, h.value = t.value + ve, r.value = e.dataListId ?? t.value + je, Z(e.message, e.showMessage) && (c.value = p);
|
|
987
987
|
}
|
|
988
988
|
},
|
|
989
989
|
{
|
|
@@ -1004,21 +1004,21 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1004
1004
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1005
1005
|
}
|
|
1006
1006
|
function w() {
|
|
1007
|
-
var p, E,
|
|
1008
|
-
!((p = B.value) != null && p.validity.valid) || e.validation === "invalid" ? (
|
|
1007
|
+
var p, E, m;
|
|
1008
|
+
!((p = B.value) != null && p.validity.valid) || e.validation === "invalid" ? (c.value = h.value, s.value = e.invalidMessage || ((E = B.value) == null ? void 0 : E.validationMessage) || ie, ue() && (L.value = s.value, ee(() => L.value = "", 1e3))) : N() && ((m = B.value) != null && m.validity.valid) && (e.required || e.minLength || e.maxLength || e.pattern) ? (c.value = u.value, ue() && (L.value = e.validMessage ?? fe, ee(() => L.value = "", 1e3))) : Z(e.message, e.showMessage) ? c.value = v.value : c.value = "";
|
|
1009
1009
|
}
|
|
1010
1010
|
function $(p) {
|
|
1011
|
-
e.input && e.input(p), I.value = p.target.value, e.onInput && e.onInput(p), oe(i, p), w();
|
|
1011
|
+
p.stopPropagation(), e.input && e.input(p), I.value = p.target.value, e.onInput && e.onInput(p), oe(i, p), w();
|
|
1012
1012
|
}
|
|
1013
1013
|
function R(p) {
|
|
1014
|
-
e.onChange && e.onChange(p), oe(() => {
|
|
1014
|
+
p.stopPropagation(), e.onChange && e.onChange(p), oe(() => {
|
|
1015
1015
|
}, p), w();
|
|
1016
1016
|
}
|
|
1017
1017
|
function y(p) {
|
|
1018
|
-
e.onBlur && e.onBlur(p);
|
|
1018
|
+
p.stopPropagation(), e.onBlur && e.onBlur(p);
|
|
1019
1019
|
}
|
|
1020
1020
|
function b(p) {
|
|
1021
|
-
e.onFocus && e.onFocus(p);
|
|
1021
|
+
p.stopPropagation(), e.onFocus && e.onFocus(p);
|
|
1022
1022
|
}
|
|
1023
1023
|
function O() {
|
|
1024
1024
|
const p = e.dataList;
|
|
@@ -1029,8 +1029,8 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1029
1029
|
})) : p) || []
|
|
1030
1030
|
);
|
|
1031
1031
|
}
|
|
1032
|
-
return (p, E) => (f(),
|
|
1033
|
-
class:
|
|
1032
|
+
return (p, E) => (f(), g("div", {
|
|
1033
|
+
class: P(d(z)("db-input", e.class)),
|
|
1034
1034
|
"data-variant": p.variant,
|
|
1035
1035
|
"data-hide-label": d(K)(p.showLabel),
|
|
1036
1036
|
"data-hide-icon": d(K)(p.showIcon),
|
|
@@ -1038,7 +1038,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1038
1038
|
"data-icon-after": p.iconAfter,
|
|
1039
1039
|
"data-hide-icon-after": d(K)(p.showIcon)
|
|
1040
1040
|
}, [
|
|
1041
|
-
_("label", { for: t.value }, S(p.label ?? d(ke)), 9,
|
|
1041
|
+
_("label", { for: t.value }, S(p.label ?? d(ke)), 9, ct),
|
|
1042
1042
|
_("input", {
|
|
1043
1043
|
"aria-invalid": p.validation === "invalid",
|
|
1044
1044
|
"data-custom-validity": p.validation,
|
|
@@ -1062,28 +1062,28 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1062
1062
|
size: p.size,
|
|
1063
1063
|
autoComplete: p.autocomplete,
|
|
1064
1064
|
autoFocus: d(M)(p.autofocus, "autofocus"),
|
|
1065
|
-
onInput: E[0] || (E[0] = async (
|
|
1066
|
-
onChange: E[1] || (E[1] = async (
|
|
1067
|
-
onBlur: E[2] || (E[2] = async (
|
|
1068
|
-
onFocus: E[3] || (E[3] = async (
|
|
1069
|
-
list: p.dataList &&
|
|
1070
|
-
"aria-describedby": p.ariaDescribedBy ??
|
|
1071
|
-
}, null, 40,
|
|
1072
|
-
p.dataList ? (f(),
|
|
1065
|
+
onInput: E[0] || (E[0] = async (m) => $(m)),
|
|
1066
|
+
onChange: E[1] || (E[1] = async (m) => R(m)),
|
|
1067
|
+
onBlur: E[2] || (E[2] = async (m) => y(m)),
|
|
1068
|
+
onFocus: E[3] || (E[3] = async (m) => b(m)),
|
|
1069
|
+
list: p.dataList && r.value,
|
|
1070
|
+
"aria-describedby": p.ariaDescribedBy ?? c.value
|
|
1071
|
+
}, null, 40, vt),
|
|
1072
|
+
p.dataList ? (f(), g("datalist", {
|
|
1073
1073
|
key: 0,
|
|
1074
|
-
id:
|
|
1074
|
+
id: r.value
|
|
1075
1075
|
}, [
|
|
1076
|
-
(f(!0),
|
|
1077
|
-
key:
|
|
1078
|
-
value:
|
|
1079
|
-
}, S(
|
|
1076
|
+
(f(!0), g(U, null, ge(O(), (m) => (f(), g("option", {
|
|
1077
|
+
key: r.value + "-option-" + m.value,
|
|
1078
|
+
value: m.value
|
|
1079
|
+
}, S(m.label), 9, pt))), 128))
|
|
1080
1080
|
], 8, ft)) : F("", !0),
|
|
1081
1081
|
T(p.$slots, "default"),
|
|
1082
1082
|
d(Z)(p.message, p.showMessage) ? (f(), J(ae, {
|
|
1083
1083
|
key: 1,
|
|
1084
1084
|
size: "small",
|
|
1085
1085
|
icon: p.messageIcon,
|
|
1086
|
-
id:
|
|
1086
|
+
id: v.value
|
|
1087
1087
|
}, {
|
|
1088
1088
|
default: V(() => [
|
|
1089
1089
|
C(S(p.message), 1)
|
|
@@ -1094,7 +1094,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1094
1094
|
key: 2,
|
|
1095
1095
|
size: "small",
|
|
1096
1096
|
semantic: "successful",
|
|
1097
|
-
id:
|
|
1097
|
+
id: u.value
|
|
1098
1098
|
}, {
|
|
1099
1099
|
default: V(() => [
|
|
1100
1100
|
C(S(p.validMessage || d(fe)), 1)
|
|
@@ -1104,7 +1104,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1104
1104
|
te(ae, {
|
|
1105
1105
|
size: "small",
|
|
1106
1106
|
semantic: "critical",
|
|
1107
|
-
id:
|
|
1107
|
+
id: h.value
|
|
1108
1108
|
}, {
|
|
1109
1109
|
default: V(() => [
|
|
1110
1110
|
C(S(s.value), 1)
|
|
@@ -1114,7 +1114,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1114
1114
|
_("span", mt, S(L.value), 1)
|
|
1115
1115
|
], 10, rt));
|
|
1116
1116
|
}
|
|
1117
|
-
}), gt = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "aria-selected", "aria-label", "aria-current", "data-size", "data-hide-icon-after", "data-variant", "data-content"], al = /* @__PURE__ */
|
|
1117
|
+
}), gt = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "aria-selected", "aria-label", "aria-current", "data-size", "data-hide-icon-after", "data-variant", "data-content"], al = /* @__PURE__ */ q({
|
|
1118
1118
|
__name: "link",
|
|
1119
1119
|
props: {
|
|
1120
1120
|
content: { default: void 0 },
|
|
@@ -1143,13 +1143,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1143
1143
|
setup(l) {
|
|
1144
1144
|
const a = l, i = n(null);
|
|
1145
1145
|
function e(t) {
|
|
1146
|
-
a.onClick && a.onClick(t);
|
|
1146
|
+
t.stopPropagation(), a.onClick && a.onClick(t);
|
|
1147
1147
|
}
|
|
1148
|
-
return (t,
|
|
1148
|
+
return (t, v) => (f(), g("a", {
|
|
1149
1149
|
ref_key: "_ref",
|
|
1150
1150
|
ref: i,
|
|
1151
1151
|
id: t.id,
|
|
1152
|
-
class:
|
|
1152
|
+
class: P(d(z)("db-link", a.class)),
|
|
1153
1153
|
href: t.href,
|
|
1154
1154
|
target: t.target,
|
|
1155
1155
|
rel: t.rel,
|
|
@@ -1164,14 +1164,14 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1164
1164
|
"data-hide-icon-after": d(K)(t.showIcon ?? !0),
|
|
1165
1165
|
"data-variant": t.variant,
|
|
1166
1166
|
"data-content": t.content || "internal",
|
|
1167
|
-
onClick:
|
|
1167
|
+
onClick: v[0] || (v[0] = async (u) => e(u))
|
|
1168
1168
|
}, [
|
|
1169
|
-
t.text ? (f(),
|
|
1169
|
+
t.text ? (f(), g(U, { key: 0 }, [
|
|
1170
1170
|
C(S(t.text), 1)
|
|
1171
1171
|
], 64)) : T(t.$slots, "default", { key: 1 })
|
|
1172
1172
|
], 10, gt));
|
|
1173
1173
|
}
|
|
1174
|
-
}), bt = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], tl = /* @__PURE__ */
|
|
1174
|
+
}), bt = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], tl = /* @__PURE__ */ q({
|
|
1175
1175
|
__name: "page",
|
|
1176
1176
|
props: {
|
|
1177
1177
|
documentOverflow: { default: void 0 },
|
|
@@ -1195,25 +1195,25 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1195
1195
|
}) : i.value = !0;
|
|
1196
1196
|
}), ba(() => {
|
|
1197
1197
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
1198
|
-
}), (t,
|
|
1198
|
+
}), (t, v) => (f(), g("div", {
|
|
1199
1199
|
ref_key: "_ref",
|
|
1200
1200
|
ref: e,
|
|
1201
1201
|
id: t.id,
|
|
1202
|
-
class:
|
|
1202
|
+
class: P(d(z)("db-page", a.class)),
|
|
1203
1203
|
"data-variant": t.variant,
|
|
1204
1204
|
"data-fade-in": d(H)(t.fadeIn),
|
|
1205
1205
|
"data-fonts-loaded": d(H)(i.value)
|
|
1206
1206
|
}, [
|
|
1207
1207
|
T(t.$slots, "header"),
|
|
1208
1208
|
_("main", {
|
|
1209
|
-
class:
|
|
1209
|
+
class: P(d(z)("db-main", t.mainClass))
|
|
1210
1210
|
}, [
|
|
1211
1211
|
T(t.$slots, "default")
|
|
1212
1212
|
], 2),
|
|
1213
1213
|
T(t.$slots, "footer")
|
|
1214
1214
|
], 10, bt));
|
|
1215
1215
|
}
|
|
1216
|
-
}), yt = ["data-size", "data-hide-label", "for"], kt = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], il = /* @__PURE__ */
|
|
1216
|
+
}), yt = ["data-size", "data-hide-label", "for"], kt = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], il = /* @__PURE__ */ q({
|
|
1217
1217
|
__name: "radio",
|
|
1218
1218
|
props: {
|
|
1219
1219
|
describedbyid: { default: void 0 },
|
|
@@ -1242,57 +1242,57 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1242
1242
|
},
|
|
1243
1243
|
emits: ["update:value"],
|
|
1244
1244
|
setup(l, { emit: a }) {
|
|
1245
|
-
const i = a, e = l, t = n(!1),
|
|
1245
|
+
const i = a, e = l, t = n(!1), v = n(void 0), u = n(null);
|
|
1246
1246
|
Y(() => {
|
|
1247
|
-
t.value = !0,
|
|
1247
|
+
t.value = !0, v.value = e.id ?? `radio-${Q()}`;
|
|
1248
1248
|
}), A(
|
|
1249
|
-
() => [t.value,
|
|
1249
|
+
() => [t.value, u.value, e.checked],
|
|
1250
1250
|
() => {
|
|
1251
|
-
e.checked && t.value &&
|
|
1251
|
+
e.checked && t.value && u.value && (u.value.checked = !0);
|
|
1252
1252
|
},
|
|
1253
1253
|
{
|
|
1254
1254
|
immediate: !0,
|
|
1255
1255
|
flush: "post"
|
|
1256
1256
|
}
|
|
1257
1257
|
);
|
|
1258
|
-
function
|
|
1259
|
-
e.onChange && e.onChange(
|
|
1258
|
+
function h(c) {
|
|
1259
|
+
c.stopPropagation(), e.onChange && e.onChange(c), oe(i, c);
|
|
1260
1260
|
}
|
|
1261
|
-
function s(
|
|
1262
|
-
e.onBlur && e.onBlur(
|
|
1261
|
+
function s(c) {
|
|
1262
|
+
c.stopPropagation(), e.onBlur && e.onBlur(c);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1265
|
-
e.onFocus && e.onFocus(
|
|
1264
|
+
function r(c) {
|
|
1265
|
+
c.stopPropagation(), e.onFocus && e.onFocus(c);
|
|
1266
1266
|
}
|
|
1267
|
-
return (
|
|
1268
|
-
"data-size":
|
|
1269
|
-
"data-hide-label": d(K)(
|
|
1270
|
-
class:
|
|
1271
|
-
for:
|
|
1267
|
+
return (c, I) => (f(), g("label", {
|
|
1268
|
+
"data-size": c.size,
|
|
1269
|
+
"data-hide-label": d(K)(c.showLabel),
|
|
1270
|
+
class: P(d(z)("db-radio", e.class)),
|
|
1271
|
+
for: v.value
|
|
1272
1272
|
}, [
|
|
1273
1273
|
_("input", {
|
|
1274
1274
|
type: "radio",
|
|
1275
|
-
"aria-invalid":
|
|
1276
|
-
"data-custom-validity":
|
|
1275
|
+
"aria-invalid": c.validation === "invalid",
|
|
1276
|
+
"data-custom-validity": c.validation,
|
|
1277
1277
|
ref_key: "_ref",
|
|
1278
|
-
ref:
|
|
1279
|
-
id:
|
|
1280
|
-
name:
|
|
1281
|
-
checked: d(M)(
|
|
1282
|
-
disabled: d(M)(
|
|
1283
|
-
"aria-describedby":
|
|
1284
|
-
value:
|
|
1285
|
-
required: d(M)(
|
|
1286
|
-
onChange: I[0] || (I[0] = async (L) =>
|
|
1278
|
+
ref: u,
|
|
1279
|
+
id: v.value,
|
|
1280
|
+
name: c.name,
|
|
1281
|
+
checked: d(M)(c.checked, "checked"),
|
|
1282
|
+
disabled: d(M)(c.disabled, "disabled"),
|
|
1283
|
+
"aria-describedby": c.describedbyid,
|
|
1284
|
+
value: c.value,
|
|
1285
|
+
required: d(M)(c.required, "required"),
|
|
1286
|
+
onChange: I[0] || (I[0] = async (L) => h(L)),
|
|
1287
1287
|
onBlur: I[1] || (I[1] = async (L) => s(L)),
|
|
1288
|
-
onFocus: I[2] || (I[2] = async (L) =>
|
|
1288
|
+
onFocus: I[2] || (I[2] = async (L) => r(L))
|
|
1289
1289
|
}, null, 40, kt),
|
|
1290
|
-
|
|
1291
|
-
C(S(
|
|
1292
|
-
], 64)) : T(
|
|
1290
|
+
c.label ? (f(), g(U, { key: 0 }, [
|
|
1291
|
+
C(S(c.label), 1)
|
|
1292
|
+
], 64)) : T(c.$slots, "default", { key: 1 })
|
|
1293
1293
|
], 10, yt));
|
|
1294
1294
|
}
|
|
1295
|
-
}), Bt = ["id", "data-spacing", "data-width"], ll = /* @__PURE__ */
|
|
1295
|
+
}), Bt = ["id", "data-spacing", "data-width"], ll = /* @__PURE__ */ q({
|
|
1296
1296
|
__name: "section",
|
|
1297
1297
|
props: {
|
|
1298
1298
|
children: { default: void 0 },
|
|
@@ -1308,11 +1308,11 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1308
1308
|
const a = l, i = n(we), e = n(null);
|
|
1309
1309
|
return Y(() => {
|
|
1310
1310
|
i.value = a.id || "section-" + Q();
|
|
1311
|
-
}), (t,
|
|
1311
|
+
}), (t, v) => (f(), g("section", {
|
|
1312
1312
|
ref_key: "_ref",
|
|
1313
1313
|
ref: e,
|
|
1314
1314
|
id: i.value,
|
|
1315
|
-
class:
|
|
1315
|
+
class: P(d(z)("db-section", a.class)),
|
|
1316
1316
|
"data-spacing": t.spacing || "medium",
|
|
1317
1317
|
"data-width": t.width
|
|
1318
1318
|
}, [
|
|
@@ -1322,7 +1322,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1322
1322
|
}), St = ["data-variant", "data-hide-label", "data-icon", "data-hide-icon"], wt = ["for"], _t = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], It = ["label"], Lt = ["value", "selected", "disabled"], Tt = ["value", "disabled", "selected"], $t = ["id"], At = {
|
|
1323
1323
|
"data-visually-hidden": "true",
|
|
1324
1324
|
role: "status"
|
|
1325
|
-
}, ol = /* @__PURE__ */
|
|
1325
|
+
}, ol = /* @__PURE__ */ q({
|
|
1326
1326
|
__name: "select",
|
|
1327
1327
|
props: {
|
|
1328
1328
|
children: { default: void 0 },
|
|
@@ -1365,16 +1365,16 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1365
1365
|
},
|
|
1366
1366
|
emits: ["update:value"],
|
|
1367
1367
|
setup(l, { emit: a }) {
|
|
1368
|
-
const i = a, e = l, t = n(void 0),
|
|
1368
|
+
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(""), c = n(""), I = n(""), L = n(!1), B = n(""), N = n(null);
|
|
1369
1369
|
Y(() => {
|
|
1370
1370
|
L.value = !0;
|
|
1371
|
-
const
|
|
1372
|
-
t.value =
|
|
1371
|
+
const m = e.id ?? `select-${Q()}`;
|
|
1372
|
+
t.value = m, v.value = m + re, u.value = m + ce, h.value = m + ve, r.value = m + Ne, s.value = e.invalidMessage || ie;
|
|
1373
1373
|
}), A(
|
|
1374
1374
|
() => [N.value, e.invalidMessage],
|
|
1375
1375
|
() => {
|
|
1376
|
-
var
|
|
1377
|
-
s.value = e.invalidMessage || ((
|
|
1376
|
+
var m;
|
|
1377
|
+
s.value = e.invalidMessage || ((m = N.value) == null ? void 0 : m.validationMessage) || ie;
|
|
1378
1378
|
},
|
|
1379
1379
|
{
|
|
1380
1380
|
immediate: !0,
|
|
@@ -1384,8 +1384,8 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1384
1384
|
() => [t.value, L.value],
|
|
1385
1385
|
() => {
|
|
1386
1386
|
if (t.value && L.value) {
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1387
|
+
const m = t.value + re, X = t.value + Ne;
|
|
1388
|
+
v.value = m, u.value = t.value + ce, h.value = t.value + ve, r.value = X, Z(e.message, e.showMessage) ? c.value = m : c.value = X, L.value = !1;
|
|
1389
1389
|
}
|
|
1390
1390
|
},
|
|
1391
1391
|
{
|
|
@@ -1406,87 +1406,87 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1406
1406
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1407
1407
|
}
|
|
1408
1408
|
function $() {
|
|
1409
|
-
var
|
|
1410
|
-
!((
|
|
1409
|
+
var m, X, j;
|
|
1410
|
+
!((m = N.value) != null && m.validity.valid) || e.validation === "invalid" ? (c.value = h.value, s.value = e.invalidMessage || ((X = N.value) == null ? void 0 : X.validationMessage) || ie, ue() && (B.value = s.value, ee(() => B.value = "", 1e3))) : w() && ((j = N.value) != null && j.validity.valid) && e.required ? (c.value = u.value, ue() && (B.value = e.validMessage ?? fe, ee(() => B.value = "", 1e3))) : Z(e.message, e.showMessage) ? c.value = v.value : c.value = r.value;
|
|
1411
1411
|
}
|
|
1412
|
-
function R(
|
|
1413
|
-
e.onClick && e.onClick(
|
|
1412
|
+
function R(m) {
|
|
1413
|
+
m.stopPropagation(), e.onClick && e.onClick(m);
|
|
1414
1414
|
}
|
|
1415
|
-
function y(
|
|
1416
|
-
e.input && e.input(
|
|
1415
|
+
function y(m) {
|
|
1416
|
+
m.stopPropagation(), e.input && e.input(m), I.value = m.target.value, e.onInput && e.onInput(m), oe(i, m), $();
|
|
1417
1417
|
}
|
|
1418
|
-
function b(
|
|
1419
|
-
e.onChange && e.onChange(
|
|
1420
|
-
},
|
|
1418
|
+
function b(m) {
|
|
1419
|
+
m.stopPropagation(), e.onChange && e.onChange(m), oe(() => {
|
|
1420
|
+
}, m), $();
|
|
1421
1421
|
}
|
|
1422
|
-
function O(
|
|
1423
|
-
e.onBlur && e.onBlur(
|
|
1422
|
+
function O(m) {
|
|
1423
|
+
m.stopPropagation(), e.onBlur && e.onBlur(m);
|
|
1424
1424
|
}
|
|
1425
|
-
function p(
|
|
1426
|
-
e.onFocus && e.onFocus(
|
|
1425
|
+
function p(m) {
|
|
1426
|
+
m.stopPropagation(), e.onFocus && e.onFocus(m);
|
|
1427
1427
|
}
|
|
1428
|
-
function E(
|
|
1428
|
+
function E(m) {
|
|
1429
1429
|
var X;
|
|
1430
|
-
return
|
|
1431
|
-
}
|
|
1432
|
-
return (
|
|
1433
|
-
class:
|
|
1434
|
-
"data-variant":
|
|
1435
|
-
"data-hide-label": d(K)(
|
|
1436
|
-
"data-icon":
|
|
1437
|
-
"data-hide-icon": d(K)(
|
|
1430
|
+
return m.label ?? ((X = m.value) == null ? void 0 : X.toString());
|
|
1431
|
+
}
|
|
1432
|
+
return (m, X) => (f(), g("div", {
|
|
1433
|
+
class: P(d(z)("db-select", e.class)),
|
|
1434
|
+
"data-variant": m.variant,
|
|
1435
|
+
"data-hide-label": d(K)(m.showLabel),
|
|
1436
|
+
"data-icon": m.icon,
|
|
1437
|
+
"data-hide-icon": d(K)(m.showIcon)
|
|
1438
1438
|
}, [
|
|
1439
|
-
_("label", { for: t.value }, S(
|
|
1439
|
+
_("label", { for: t.value }, S(m.label ?? d(ke)), 9, wt),
|
|
1440
1440
|
_("select", {
|
|
1441
|
-
"aria-invalid":
|
|
1442
|
-
"data-custom-validity":
|
|
1441
|
+
"aria-invalid": m.validation === "invalid",
|
|
1442
|
+
"data-custom-validity": m.validation,
|
|
1443
1443
|
ref_key: "_ref",
|
|
1444
1444
|
ref: N,
|
|
1445
|
-
required: d(M)(
|
|
1446
|
-
disabled: d(M)(
|
|
1445
|
+
required: d(M)(m.required, "required"),
|
|
1446
|
+
disabled: d(M)(m.disabled, "disabled"),
|
|
1447
1447
|
id: t.value,
|
|
1448
|
-
name:
|
|
1449
|
-
size:
|
|
1450
|
-
value:
|
|
1451
|
-
autocomplete:
|
|
1452
|
-
multiple:
|
|
1448
|
+
name: m.name,
|
|
1449
|
+
size: m.size,
|
|
1450
|
+
value: m.value ?? I.value,
|
|
1451
|
+
autocomplete: m.autocomplete,
|
|
1452
|
+
multiple: m.multiple,
|
|
1453
1453
|
onInput: X[0] || (X[0] = async (j) => y(j)),
|
|
1454
1454
|
onClick: X[1] || (X[1] = async (j) => R(j)),
|
|
1455
1455
|
onChange: X[2] || (X[2] = async (j) => b(j)),
|
|
1456
1456
|
onBlur: X[3] || (X[3] = async (j) => O(j)),
|
|
1457
1457
|
onFocus: X[4] || (X[4] = async (j) => p(j)),
|
|
1458
|
-
"aria-describedby":
|
|
1458
|
+
"aria-describedby": c.value
|
|
1459
1459
|
}, [
|
|
1460
1460
|
X[5] || (X[5] = _("option", { hidden: !0 }, null, -1)),
|
|
1461
|
-
|
|
1462
|
-
j.options ? (f(),
|
|
1461
|
+
m.options ? (f(!0), g(U, { key: 0 }, ge(m.options, (j, Ae) => (f(), g(U, { key: Ae }, [
|
|
1462
|
+
j.options ? (f(), g("optgroup", {
|
|
1463
1463
|
key: 0,
|
|
1464
1464
|
label: E(j)
|
|
1465
1465
|
}, [
|
|
1466
|
-
(f(!0),
|
|
1466
|
+
(f(!0), g(U, null, ge(j.options, (pe, _e) => (f(), g("option", {
|
|
1467
1467
|
key: pe.value.toString(),
|
|
1468
1468
|
value: pe.value,
|
|
1469
1469
|
selected: pe.selected,
|
|
1470
1470
|
disabled: pe.disabled
|
|
1471
1471
|
}, S(E(pe)), 9, Lt))), 128))
|
|
1472
1472
|
], 8, It)) : F("", !0),
|
|
1473
|
-
j.options ? F("", !0) : (f(),
|
|
1473
|
+
j.options ? F("", !0) : (f(), g("option", {
|
|
1474
1474
|
key: 1,
|
|
1475
1475
|
value: j.value,
|
|
1476
1476
|
disabled: j.disabled,
|
|
1477
1477
|
selected: j.selected
|
|
1478
1478
|
}, S(E(j)), 9, Tt))
|
|
1479
|
-
], 64))), 128)) : T(
|
|
1479
|
+
], 64))), 128)) : T(m.$slots, "default", { key: 1 })
|
|
1480
1480
|
], 40, _t),
|
|
1481
|
-
_("span", { id:
|
|
1482
|
-
d(Z)(
|
|
1481
|
+
_("span", { id: r.value }, S(m.placeholder ?? m.label), 9, $t),
|
|
1482
|
+
d(Z)(m.message, m.showMessage) ? (f(), J(ae, {
|
|
1483
1483
|
key: 0,
|
|
1484
1484
|
size: "small",
|
|
1485
|
-
icon:
|
|
1486
|
-
id:
|
|
1485
|
+
icon: m.messageIcon,
|
|
1486
|
+
id: v.value
|
|
1487
1487
|
}, {
|
|
1488
1488
|
default: V(() => [
|
|
1489
|
-
C(S(
|
|
1489
|
+
C(S(m.message), 1)
|
|
1490
1490
|
]),
|
|
1491
1491
|
_: 1
|
|
1492
1492
|
}, 8, ["icon", "id"])) : F("", !0),
|
|
@@ -1494,17 +1494,17 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1494
1494
|
key: 1,
|
|
1495
1495
|
size: "small",
|
|
1496
1496
|
semantic: "successful",
|
|
1497
|
-
id:
|
|
1497
|
+
id: u.value
|
|
1498
1498
|
}, {
|
|
1499
1499
|
default: V(() => [
|
|
1500
|
-
C(S(
|
|
1500
|
+
C(S(m.validMessage || d(fe)), 1)
|
|
1501
1501
|
]),
|
|
1502
1502
|
_: 1
|
|
1503
1503
|
}, 8, ["id"])) : F("", !0),
|
|
1504
1504
|
te(ae, {
|
|
1505
1505
|
size: "small",
|
|
1506
1506
|
semantic: "critical",
|
|
1507
|
-
id:
|
|
1507
|
+
id: h.value
|
|
1508
1508
|
}, {
|
|
1509
1509
|
default: V(() => [
|
|
1510
1510
|
C(S(s.value), 1)
|
|
@@ -1514,7 +1514,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1514
1514
|
_("span", At, S(B.value), 1)
|
|
1515
1515
|
], 10, St));
|
|
1516
1516
|
}
|
|
1517
|
-
}), Ct = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], Et = ["id", "aria-checked", "checked", "value", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], dl = /* @__PURE__ */
|
|
1517
|
+
}), Ct = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], Et = ["id", "aria-checked", "checked", "value", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], dl = /* @__PURE__ */ q({
|
|
1518
1518
|
__name: "switch",
|
|
1519
1519
|
props: {
|
|
1520
1520
|
visualAid: { type: [Boolean, String], default: void 0 },
|
|
@@ -1547,64 +1547,64 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1547
1547
|
},
|
|
1548
1548
|
emits: ["update:checked"],
|
|
1549
1549
|
setup(l, { emit: a }) {
|
|
1550
|
-
const i = a, e = l, t = n(void 0),
|
|
1550
|
+
const i = a, e = l, t = n(void 0), v = n(!1), u = n(null);
|
|
1551
1551
|
Y(() => {
|
|
1552
1552
|
t.value = e.id ?? `switch-${Q()}`;
|
|
1553
1553
|
}), A(
|
|
1554
1554
|
() => [e.checked],
|
|
1555
1555
|
() => {
|
|
1556
|
-
e.checked !== void 0 && e.checked !== null && (
|
|
1556
|
+
e.checked !== void 0 && e.checked !== null && (v.value = M(e.checked));
|
|
1557
1557
|
},
|
|
1558
1558
|
{
|
|
1559
1559
|
immediate: !0,
|
|
1560
1560
|
flush: "post"
|
|
1561
1561
|
}
|
|
1562
1562
|
);
|
|
1563
|
-
function
|
|
1563
|
+
function h(c) {
|
|
1564
1564
|
var I;
|
|
1565
|
-
e.onChange && e.onChange(
|
|
1565
|
+
c.stopPropagation(), e.onChange && e.onChange(c), v.value = (I = c.target) == null ? void 0 : I.checked, oe(i, c, "checked");
|
|
1566
1566
|
}
|
|
1567
|
-
function s(
|
|
1568
|
-
e.onBlur && e.onBlur(
|
|
1567
|
+
function s(c) {
|
|
1568
|
+
c.stopPropagation(), e.onBlur && e.onBlur(c);
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1571
|
-
e.onFocus && e.onFocus(
|
|
1570
|
+
function r(c) {
|
|
1571
|
+
c.stopPropagation(), e.onFocus && e.onFocus(c);
|
|
1572
1572
|
}
|
|
1573
|
-
return (
|
|
1574
|
-
"data-visual-aid": d(H)(
|
|
1575
|
-
"data-size":
|
|
1576
|
-
"data-hide-label": d(K)(
|
|
1577
|
-
"data-emphasis":
|
|
1573
|
+
return (c, I) => (f(), g("label", {
|
|
1574
|
+
"data-visual-aid": d(H)(c.visualAid),
|
|
1575
|
+
"data-size": c.size,
|
|
1576
|
+
"data-hide-label": d(K)(c.showLabel),
|
|
1577
|
+
"data-emphasis": c.emphasis,
|
|
1578
1578
|
for: t.value,
|
|
1579
|
-
class:
|
|
1579
|
+
class: P(d(z)("db-switch", e.class))
|
|
1580
1580
|
}, [
|
|
1581
1581
|
_("input", {
|
|
1582
1582
|
type: "checkbox",
|
|
1583
1583
|
role: "switch",
|
|
1584
1584
|
id: t.value,
|
|
1585
|
-
"aria-checked": d(H)(
|
|
1585
|
+
"aria-checked": d(H)(v.value),
|
|
1586
1586
|
ref_key: "_ref",
|
|
1587
|
-
ref:
|
|
1588
|
-
checked: d(M)(
|
|
1589
|
-
value:
|
|
1590
|
-
disabled: d(M)(
|
|
1591
|
-
"aria-describedby":
|
|
1592
|
-
"aria-invalid":
|
|
1593
|
-
"data-custom-validity":
|
|
1594
|
-
name:
|
|
1595
|
-
required: d(M)(
|
|
1596
|
-
"data-aid-icon":
|
|
1597
|
-
"data-aid-icon-after":
|
|
1598
|
-
onChange: I[0] || (I[0] = async (L) =>
|
|
1587
|
+
ref: u,
|
|
1588
|
+
checked: d(M)(c.checked, "checked"),
|
|
1589
|
+
value: c.value,
|
|
1590
|
+
disabled: d(M)(c.disabled, "disabled"),
|
|
1591
|
+
"aria-describedby": c.describedbyid,
|
|
1592
|
+
"aria-invalid": c.validation === "invalid",
|
|
1593
|
+
"data-custom-validity": c.validation,
|
|
1594
|
+
name: c.name,
|
|
1595
|
+
required: d(M)(c.required, "required"),
|
|
1596
|
+
"data-aid-icon": c.icon,
|
|
1597
|
+
"data-aid-icon-after": c.iconAfter,
|
|
1598
|
+
onChange: I[0] || (I[0] = async (L) => h(L)),
|
|
1599
1599
|
onBlur: I[1] || (I[1] = async (L) => s(L)),
|
|
1600
|
-
onFocus: I[2] || (I[2] = async (L) =>
|
|
1600
|
+
onFocus: I[2] || (I[2] = async (L) => r(L))
|
|
1601
1601
|
}, null, 40, Et),
|
|
1602
|
-
|
|
1603
|
-
C(S(
|
|
1604
|
-
], 64)) : T(
|
|
1602
|
+
c.label ? (f(), g(U, { key: 0 }, [
|
|
1603
|
+
C(S(c.label), 1)
|
|
1604
|
+
], 64)) : T(c.$slots, "default", { key: 1 })
|
|
1605
1605
|
], 10, Ct));
|
|
1606
1606
|
}
|
|
1607
|
-
}), Nt = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], Dt = ["disabled", "aria-selected", "aria-controls", "checked", "name", "id"], Ft = /* @__PURE__ */
|
|
1607
|
+
}), Nt = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], Dt = ["disabled", "aria-selected", "aria-controls", "checked", "name", "id"], Ft = /* @__PURE__ */ q({
|
|
1608
1608
|
__name: "tab-item",
|
|
1609
1609
|
props: {
|
|
1610
1610
|
children: { default: void 0 },
|
|
@@ -1628,13 +1628,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1628
1628
|
},
|
|
1629
1629
|
emits: ["update:checked"],
|
|
1630
1630
|
setup(l, { emit: a }) {
|
|
1631
|
-
const i = a, e = l, t = n(!1),
|
|
1631
|
+
const i = a, e = l, t = n(!1), v = n(void 0), u = n(!1), h = n(null);
|
|
1632
1632
|
Y(() => {
|
|
1633
|
-
|
|
1633
|
+
u.value = !0;
|
|
1634
1634
|
}), A(
|
|
1635
|
-
() => [
|
|
1635
|
+
() => [h.value, u.value],
|
|
1636
1636
|
() => {
|
|
1637
|
-
|
|
1637
|
+
u.value && h.value && (e.active && h.value.click(), u.value = !1);
|
|
1638
1638
|
},
|
|
1639
1639
|
{
|
|
1640
1640
|
immediate: !0,
|
|
@@ -1643,50 +1643,50 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1643
1643
|
), A(
|
|
1644
1644
|
() => [e.name],
|
|
1645
1645
|
() => {
|
|
1646
|
-
e.name && (
|
|
1646
|
+
e.name && (v.value = e.name);
|
|
1647
1647
|
},
|
|
1648
1648
|
{
|
|
1649
1649
|
immediate: !0,
|
|
1650
1650
|
flush: "post"
|
|
1651
1651
|
}
|
|
1652
1652
|
);
|
|
1653
|
-
function s(
|
|
1654
|
-
var
|
|
1655
|
-
e.onChange && e.onChange(
|
|
1653
|
+
function s(r) {
|
|
1654
|
+
var c;
|
|
1655
|
+
r.stopPropagation(), e.onChange && e.onChange(r), t.value = (c = r.target) == null ? void 0 : c.checked, oe(i, r, "checked");
|
|
1656
1656
|
}
|
|
1657
|
-
return (
|
|
1657
|
+
return (r, c) => (f(), g("li", {
|
|
1658
1658
|
role: "none",
|
|
1659
|
-
class:
|
|
1659
|
+
class: P(d(z)("db-tab-item", e.class))
|
|
1660
1660
|
}, [
|
|
1661
1661
|
_("label", {
|
|
1662
|
-
for:
|
|
1663
|
-
"data-icon":
|
|
1664
|
-
"data-icon-after":
|
|
1665
|
-
"data-hide-icon": d(K)(
|
|
1666
|
-
"data-hide-icon-after": d(K)(
|
|
1667
|
-
"data-no-text": d(H)(
|
|
1662
|
+
for: r.id,
|
|
1663
|
+
"data-icon": r.icon,
|
|
1664
|
+
"data-icon-after": r.iconAfter,
|
|
1665
|
+
"data-hide-icon": d(K)(r.showIcon),
|
|
1666
|
+
"data-hide-icon-after": d(K)(r.showIcon),
|
|
1667
|
+
"data-no-text": d(H)(r.noText)
|
|
1668
1668
|
}, [
|
|
1669
1669
|
_("input", {
|
|
1670
1670
|
type: "radio",
|
|
1671
1671
|
role: "tab",
|
|
1672
|
-
disabled: d(M)(
|
|
1672
|
+
disabled: d(M)(r.disabled, "disabled"),
|
|
1673
1673
|
"aria-selected": t.value,
|
|
1674
|
-
"aria-controls":
|
|
1675
|
-
checked: d(M)(
|
|
1674
|
+
"aria-controls": r.controls,
|
|
1675
|
+
checked: d(M)(r.checked, "checked"),
|
|
1676
1676
|
ref_key: "_ref",
|
|
1677
|
-
ref:
|
|
1678
|
-
name:
|
|
1679
|
-
id:
|
|
1680
|
-
onInput:
|
|
1677
|
+
ref: h,
|
|
1678
|
+
name: v.value,
|
|
1679
|
+
id: r.id,
|
|
1680
|
+
onInput: c[0] || (c[0] = async (I) => s(I))
|
|
1681
1681
|
}, null, 40, Dt),
|
|
1682
|
-
|
|
1683
|
-
C(S(
|
|
1682
|
+
r.label ? (f(), g(U, { key: 0 }, [
|
|
1683
|
+
C(S(r.label), 1)
|
|
1684
1684
|
], 64)) : F("", !0),
|
|
1685
|
-
T(
|
|
1685
|
+
T(r.$slots, "default")
|
|
1686
1686
|
], 8, Nt)
|
|
1687
1687
|
], 2));
|
|
1688
1688
|
}
|
|
1689
|
-
}), Mt = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], Rt = ["title"],
|
|
1689
|
+
}), Mt = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], Rt = ["title"], Pt = /* @__PURE__ */ q({
|
|
1690
1690
|
__name: "tag",
|
|
1691
1691
|
props: {
|
|
1692
1692
|
behavior: { default: void 0 },
|
|
@@ -1716,13 +1716,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1716
1716
|
i.value = !0, A(
|
|
1717
1717
|
() => [i.value, a.disabled, e.value],
|
|
1718
1718
|
() => {
|
|
1719
|
-
var
|
|
1719
|
+
var u, h;
|
|
1720
1720
|
if (i.value && e.value && a.disabled !== void 0) {
|
|
1721
|
-
const s = (
|
|
1721
|
+
const s = (u = e.value) == null ? void 0 : u.querySelector(
|
|
1722
1722
|
"button:not(.db-tab-remove-button)"
|
|
1723
|
-
),
|
|
1724
|
-
for (const
|
|
1725
|
-
|
|
1723
|
+
), r = (h = e.value) == null ? void 0 : h.querySelector("input");
|
|
1724
|
+
for (const c of [s, r])
|
|
1725
|
+
c && (c.disabled = !!a.disabled);
|
|
1726
1726
|
}
|
|
1727
1727
|
},
|
|
1728
1728
|
{
|
|
@@ -1730,47 +1730,47 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1730
1730
|
flush: "post"
|
|
1731
1731
|
}
|
|
1732
1732
|
);
|
|
1733
|
-
function t(
|
|
1734
|
-
a.onRemove && a.onRemove(
|
|
1733
|
+
function t(u) {
|
|
1734
|
+
u == null || u.stopPropagation(), a.onRemove && a.onRemove(u);
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function v() {
|
|
1737
1737
|
return a.removeButton ? a.removeButton : Je;
|
|
1738
1738
|
}
|
|
1739
|
-
return (
|
|
1739
|
+
return (u, h) => (f(), g("div", {
|
|
1740
1740
|
ref_key: "_ref",
|
|
1741
1741
|
ref: e,
|
|
1742
|
-
id:
|
|
1743
|
-
class:
|
|
1744
|
-
"data-disabled": d(H)(
|
|
1745
|
-
"data-semantic":
|
|
1746
|
-
"data-emphasis":
|
|
1747
|
-
"data-icon":
|
|
1748
|
-
"data-show-check-state": d(H)(
|
|
1749
|
-
"data-hide-icon": d(K)(
|
|
1750
|
-
"data-no-text": d(H)(
|
|
1751
|
-
"data-overflow": d(H)(
|
|
1742
|
+
id: u.id,
|
|
1743
|
+
class: P(d(z)("db-tag", a.class)),
|
|
1744
|
+
"data-disabled": d(H)(u.disabled),
|
|
1745
|
+
"data-semantic": u.semantic,
|
|
1746
|
+
"data-emphasis": u.emphasis,
|
|
1747
|
+
"data-icon": u.icon,
|
|
1748
|
+
"data-show-check-state": d(H)(u.showCheckState ?? !0),
|
|
1749
|
+
"data-hide-icon": d(K)(u.showIcon),
|
|
1750
|
+
"data-no-text": d(H)(u.noText),
|
|
1751
|
+
"data-overflow": d(H)(u.overflow)
|
|
1752
1752
|
}, [
|
|
1753
|
-
T(
|
|
1754
|
-
T(
|
|
1755
|
-
|
|
1756
|
-
C(S(
|
|
1753
|
+
T(u.$slots, "content"),
|
|
1754
|
+
T(u.$slots, "default"),
|
|
1755
|
+
u.text ? (f(), g(U, { key: 0 }, [
|
|
1756
|
+
C(S(u.text), 1)
|
|
1757
1757
|
], 64)) : F("", !0),
|
|
1758
|
-
|
|
1758
|
+
u.behavior === "removable" ? (f(), g("button", {
|
|
1759
1759
|
key: 1,
|
|
1760
1760
|
class: "db-button db-tab-remove-button",
|
|
1761
1761
|
"data-icon": "cross",
|
|
1762
1762
|
"data-size": "small",
|
|
1763
1763
|
"data-no-text": "true",
|
|
1764
1764
|
"data-variant": "ghost",
|
|
1765
|
-
onClick:
|
|
1766
|
-
title:
|
|
1767
|
-
}, S(
|
|
1765
|
+
onClick: h[0] || (h[0] = async (s) => t(s)),
|
|
1766
|
+
title: v()
|
|
1767
|
+
}, S(v()), 9, Rt)) : F("", !0)
|
|
1768
1768
|
], 10, Mt));
|
|
1769
1769
|
}
|
|
1770
|
-
}),
|
|
1770
|
+
}), zt = ["data-variant", "data-hide-label"], qt = ["for"], Ut = ["aria-invalid", "data-custom-validity", "id", "data-resize", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Gt = {
|
|
1771
1771
|
"data-visually-hidden": "true",
|
|
1772
1772
|
role: "status"
|
|
1773
|
-
}, nl = /* @__PURE__ */
|
|
1773
|
+
}, nl = /* @__PURE__ */ q({
|
|
1774
1774
|
__name: "textarea",
|
|
1775
1775
|
props: {
|
|
1776
1776
|
cols: { default: void 0 },
|
|
@@ -1818,10 +1818,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1818
1818
|
},
|
|
1819
1819
|
emits: ["update:value"],
|
|
1820
1820
|
setup(l, { emit: a }) {
|
|
1821
|
-
const i = a, e = l, t = n(void 0),
|
|
1821
|
+
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(""), c = n(""), I = n(""), L = n(null);
|
|
1822
1822
|
Y(() => {
|
|
1823
1823
|
const b = e.id ?? `textarea-${Q()}`;
|
|
1824
|
-
t.value = b,
|
|
1824
|
+
t.value = b, v.value = b + re, u.value = b + ce, h.value = b + ve, s.value = e.invalidMessage || ie;
|
|
1825
1825
|
}), A(
|
|
1826
1826
|
() => [L.value, e.invalidMessage],
|
|
1827
1827
|
() => {
|
|
@@ -1837,7 +1837,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1837
1837
|
() => {
|
|
1838
1838
|
if (t.value) {
|
|
1839
1839
|
const b = t.value + re;
|
|
1840
|
-
|
|
1840
|
+
v.value = b, u.value = t.value + ce, h.value = t.value + ve, Z(e.message, e.showMessage) && (r.value = b);
|
|
1841
1841
|
}
|
|
1842
1842
|
},
|
|
1843
1843
|
{
|
|
@@ -1847,7 +1847,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1847
1847
|
), A(
|
|
1848
1848
|
() => [e.value],
|
|
1849
1849
|
() => {
|
|
1850
|
-
|
|
1850
|
+
c.value = e.value;
|
|
1851
1851
|
},
|
|
1852
1852
|
{
|
|
1853
1853
|
immediate: !0,
|
|
@@ -1859,27 +1859,27 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1859
1859
|
}
|
|
1860
1860
|
function N() {
|
|
1861
1861
|
var b, O, p;
|
|
1862
|
-
!((b = L.value) != null && b.validity.valid) || e.validation === "invalid" ? (
|
|
1862
|
+
!((b = L.value) != null && b.validity.valid) || e.validation === "invalid" ? (r.value = h.value, s.value = e.invalidMessage || ((O = L.value) == null ? void 0 : O.validationMessage) || ie, ue() && (I.value = s.value, ee(() => I.value = "", 1e3))) : B() && ((p = L.value) != null && p.validity.valid) && (e.required || e.minLength || e.maxLength) ? (r.value = u.value, ue() && (I.value = e.validMessage ?? fe, ee(() => I.value = "", 1e3))) : Z(e.message, e.showMessage) ? r.value = v.value : r.value = "";
|
|
1863
1863
|
}
|
|
1864
1864
|
function w(b) {
|
|
1865
|
-
e.input && e.input(b),
|
|
1865
|
+
b.stopPropagation(), e.input && e.input(b), c.value = b.target.value, e.onInput && e.onInput(b), oe(i, b), N();
|
|
1866
1866
|
}
|
|
1867
1867
|
function $(b) {
|
|
1868
|
-
e.onChange && e.onChange(b), oe(() => {
|
|
1868
|
+
b.stopPropagation(), e.onChange && e.onChange(b), oe(() => {
|
|
1869
1869
|
}, b), N();
|
|
1870
1870
|
}
|
|
1871
1871
|
function R(b) {
|
|
1872
|
-
e.onBlur && e.onBlur(b);
|
|
1872
|
+
b.stopPropagation(), e.onBlur && e.onBlur(b);
|
|
1873
1873
|
}
|
|
1874
1874
|
function y(b) {
|
|
1875
|
-
e.onFocus && e.onFocus(b);
|
|
1875
|
+
b.stopPropagation(), e.onFocus && e.onFocus(b);
|
|
1876
1876
|
}
|
|
1877
|
-
return (b, O) => (f(),
|
|
1878
|
-
class:
|
|
1877
|
+
return (b, O) => (f(), g("div", {
|
|
1878
|
+
class: P(d(z)("db-textarea", e.class)),
|
|
1879
1879
|
"data-variant": b.variant,
|
|
1880
1880
|
"data-hide-label": d(K)(b.showLabel)
|
|
1881
1881
|
}, [
|
|
1882
|
-
_("label", { for: t.value }, S(b.label ?? d(ke)), 9,
|
|
1882
|
+
_("label", { for: t.value }, S(b.label ?? d(ke)), 9, qt),
|
|
1883
1883
|
_("textarea", {
|
|
1884
1884
|
"aria-invalid": b.validation === "invalid",
|
|
1885
1885
|
"data-custom-validity": b.validation,
|
|
@@ -1901,17 +1901,17 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1901
1901
|
onChange: O[1] || (O[1] = async (p) => $(p)),
|
|
1902
1902
|
onBlur: O[2] || (O[2] = async (p) => R(p)),
|
|
1903
1903
|
onFocus: O[3] || (O[3] = async (p) => y(p)),
|
|
1904
|
-
value: b.value ??
|
|
1905
|
-
"aria-describedby":
|
|
1904
|
+
value: b.value ?? c.value,
|
|
1905
|
+
"aria-describedby": r.value,
|
|
1906
1906
|
placeholder: b.placeholder ?? d(Ke),
|
|
1907
1907
|
rows: d(he)(b.rows, d($a)),
|
|
1908
1908
|
cols: d(he)(b.cols)
|
|
1909
|
-
}, null, 40,
|
|
1909
|
+
}, null, 40, Ut),
|
|
1910
1910
|
d(Z)(b.message, b.showMessage) ? (f(), J(ae, {
|
|
1911
1911
|
key: 0,
|
|
1912
1912
|
size: "small",
|
|
1913
1913
|
icon: b.messageIcon,
|
|
1914
|
-
id:
|
|
1914
|
+
id: v.value
|
|
1915
1915
|
}, {
|
|
1916
1916
|
default: V(() => [
|
|
1917
1917
|
C(S(b.message), 1)
|
|
@@ -1922,7 +1922,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1922
1922
|
key: 1,
|
|
1923
1923
|
size: "small",
|
|
1924
1924
|
semantic: "successful",
|
|
1925
|
-
id:
|
|
1925
|
+
id: u.value
|
|
1926
1926
|
}, {
|
|
1927
1927
|
default: V(() => [
|
|
1928
1928
|
C(S(b.validMessage || d(fe)), 1)
|
|
@@ -1932,20 +1932,20 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1932
1932
|
te(ae, {
|
|
1933
1933
|
size: "small",
|
|
1934
1934
|
semantic: "critical",
|
|
1935
|
-
id:
|
|
1935
|
+
id: h.value
|
|
1936
1936
|
}, {
|
|
1937
1937
|
default: V(() => [
|
|
1938
1938
|
C(S(s.value), 1)
|
|
1939
1939
|
]),
|
|
1940
1940
|
_: 1
|
|
1941
1941
|
}, 8, ["id"]),
|
|
1942
|
-
_("span",
|
|
1943
|
-
], 10,
|
|
1942
|
+
_("span", Gt, S(I.value), 1)
|
|
1943
|
+
], 10, zt));
|
|
1944
1944
|
}
|
|
1945
1945
|
}), Vt = ["id", "data-width", "data-icon", "data-hide-icon", "data-active", "data-wrap", "aria-disabled"], Ot = ["aria-haspopup", "aria-expanded", "disabled"], Wt = ["data-auto-close", "id"], Xt = {
|
|
1946
1946
|
key: 0,
|
|
1947
1947
|
class: "db-mobile-navigation-back"
|
|
1948
|
-
}, sl = /* @__PURE__ */
|
|
1948
|
+
}, sl = /* @__PURE__ */ q({
|
|
1949
1949
|
__name: "navigation-item",
|
|
1950
1950
|
props: {
|
|
1951
1951
|
active: { type: Boolean, default: void 0 },
|
|
@@ -1968,15 +1968,15 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1968
1968
|
text: { default: void 0 }
|
|
1969
1969
|
},
|
|
1970
1970
|
setup(l) {
|
|
1971
|
-
const a = l, i = n(!1), e = n(!1), t = n(!0),
|
|
1971
|
+
const a = l, i = n(!1), e = n(!1), t = n(!0), v = n(!1), u = n(!1), h = n(
|
|
1972
1972
|
"sub-navigation-" + Q()
|
|
1973
|
-
), s = n(void 0),
|
|
1973
|
+
), s = n(void 0), r = n(null);
|
|
1974
1974
|
Y(() => {
|
|
1975
1975
|
i.value = !0;
|
|
1976
1976
|
}), A(
|
|
1977
1977
|
() => [a.subNavigationExpanded],
|
|
1978
1978
|
() => {
|
|
1979
|
-
a.subNavigationExpanded !== void 0 && (
|
|
1979
|
+
a.subNavigationExpanded !== void 0 && (v.value = !!M(
|
|
1980
1980
|
a.subNavigationExpanded,
|
|
1981
1981
|
"subNavigationExpanded"
|
|
1982
1982
|
));
|
|
@@ -1986,13 +1986,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1986
1986
|
flush: "post"
|
|
1987
1987
|
}
|
|
1988
1988
|
), A(
|
|
1989
|
-
() => [i.value,
|
|
1989
|
+
() => [i.value, r.value],
|
|
1990
1990
|
() => {
|
|
1991
1991
|
var B;
|
|
1992
|
-
if (i.value &&
|
|
1993
|
-
const N =
|
|
1992
|
+
if (i.value && r.value) {
|
|
1993
|
+
const N = r.value.querySelector("menu");
|
|
1994
1994
|
N && (((B = N.children) == null ? void 0 : B.length) > 0 ? (e.value = !0, s.value || (s.value = new Ka(
|
|
1995
|
-
|
|
1995
|
+
r.value,
|
|
1996
1996
|
N
|
|
1997
1997
|
))) : t.value = !1);
|
|
1998
1998
|
}
|
|
@@ -2002,20 +2002,20 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2002
2002
|
flush: "post"
|
|
2003
2003
|
}
|
|
2004
2004
|
);
|
|
2005
|
-
function
|
|
2006
|
-
aa(B) && (
|
|
2007
|
-
|
|
2005
|
+
function c(B) {
|
|
2006
|
+
aa(B) && (u.value = !0, ee(() => {
|
|
2007
|
+
u.value = !1;
|
|
2008
2008
|
}, 300));
|
|
2009
2009
|
}
|
|
2010
2010
|
function I(B) {
|
|
2011
|
-
a.onClick && a.onClick(B), e.value && (
|
|
2011
|
+
B.stopPropagation(), a.onClick && a.onClick(B), e.value && (v.value = !0);
|
|
2012
2012
|
}
|
|
2013
2013
|
function L(B) {
|
|
2014
|
-
B.stopPropagation(),
|
|
2014
|
+
B.stopPropagation(), v.value = !1;
|
|
2015
2015
|
}
|
|
2016
|
-
return (B, N) => (f(),
|
|
2016
|
+
return (B, N) => (f(), g("li", {
|
|
2017
2017
|
ref_key: "_ref",
|
|
2018
|
-
ref:
|
|
2018
|
+
ref: r,
|
|
2019
2019
|
id: B.id,
|
|
2020
2020
|
onMouseover: N[2] || (N[2] = async (w) => {
|
|
2021
2021
|
var $;
|
|
@@ -2029,7 +2029,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2029
2029
|
var $;
|
|
2030
2030
|
return ($ = s.value) == null ? void 0 : $.followByMouseEvent(w);
|
|
2031
2031
|
}),
|
|
2032
|
-
class:
|
|
2032
|
+
class: P(d(z)("db-navigation-item", a.class)),
|
|
2033
2033
|
"data-width": B.width,
|
|
2034
2034
|
"data-icon": B.icon,
|
|
2035
2035
|
"data-hide-icon": d(K)(B.showIcon),
|
|
@@ -2037,30 +2037,30 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2037
2037
|
"data-wrap": d(H)(B.wrap),
|
|
2038
2038
|
"aria-disabled": d(H)(B.disabled)
|
|
2039
2039
|
}, [
|
|
2040
|
-
t.value ? F("", !0) : (f(),
|
|
2041
|
-
B.text ? (f(),
|
|
2040
|
+
t.value ? F("", !0) : (f(), g(U, { key: 0 }, [
|
|
2041
|
+
B.text ? (f(), g(U, { key: 0 }, [
|
|
2042
2042
|
C(S(B.text), 1)
|
|
2043
2043
|
], 64)) : T(B.$slots, "default", { key: 1 })
|
|
2044
2044
|
], 64)),
|
|
2045
|
-
t.value ? (f(),
|
|
2045
|
+
t.value ? (f(), g(U, { key: 1 }, [
|
|
2046
2046
|
_("button", {
|
|
2047
2047
|
class: "db-navigation-item-expand-button",
|
|
2048
2048
|
"aria-haspopup": e.value,
|
|
2049
|
-
"aria-expanded":
|
|
2049
|
+
"aria-expanded": v.value,
|
|
2050
2050
|
disabled: d(M)(B.disabled, "disabled"),
|
|
2051
2051
|
onClick: N[0] || (N[0] = async (w) => I(w))
|
|
2052
2052
|
}, [
|
|
2053
|
-
B.text ? (f(),
|
|
2053
|
+
B.text ? (f(), g(U, { key: 0 }, [
|
|
2054
2054
|
C(S(B.text), 1)
|
|
2055
2055
|
], 64)) : T(B.$slots, "default", { key: 1 })
|
|
2056
2056
|
], 8, Ot),
|
|
2057
2057
|
_("menu", {
|
|
2058
2058
|
class: "db-sub-navigation",
|
|
2059
|
-
"data-auto-close":
|
|
2060
|
-
id:
|
|
2061
|
-
onClick: N[1] || (N[1] = async (w) =>
|
|
2059
|
+
"data-auto-close": u.value,
|
|
2060
|
+
id: h.value,
|
|
2061
|
+
onClick: N[1] || (N[1] = async (w) => c(w))
|
|
2062
2062
|
}, [
|
|
2063
|
-
e.value ? (f(),
|
|
2063
|
+
e.value ? (f(), g("div", Xt, [
|
|
2064
2064
|
te(Be, {
|
|
2065
2065
|
icon: "arrow_left",
|
|
2066
2066
|
variant: "ghost",
|
|
@@ -2078,7 +2078,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2078
2078
|
], 64)) : F("", !0)
|
|
2079
2079
|
], 42, Vt));
|
|
2080
2080
|
}
|
|
2081
|
-
}), Ht = ["id"], jt = ["aria-disabled", "name", "open"], Yt = /* @__PURE__ */
|
|
2081
|
+
}), Ht = ["id"], jt = ["aria-disabled", "name", "open"], Yt = /* @__PURE__ */ q({
|
|
2082
2082
|
__name: "accordion-item",
|
|
2083
2083
|
props: {
|
|
2084
2084
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -2097,13 +2097,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2097
2097
|
name: { default: void 0 }
|
|
2098
2098
|
},
|
|
2099
2099
|
setup(l) {
|
|
2100
|
-
const a = l, i = n(we), e = n(!1), t = n(void 0),
|
|
2100
|
+
const a = l, i = n(we), e = n(!1), t = n(void 0), v = n(!1), u = n(null);
|
|
2101
2101
|
Y(() => {
|
|
2102
|
-
i.value = a.id || "accordion-item-" + Q(), a.defaultOpen && (e.value = a.defaultOpen),
|
|
2102
|
+
i.value = a.id || "accordion-item-" + Q(), a.defaultOpen && (e.value = a.defaultOpen), v.value = !0;
|
|
2103
2103
|
}), A(
|
|
2104
|
-
() => [
|
|
2104
|
+
() => [u.value, v.value],
|
|
2105
2105
|
() => {
|
|
2106
|
-
|
|
2106
|
+
u.value && v.value;
|
|
2107
2107
|
},
|
|
2108
2108
|
{
|
|
2109
2109
|
immediate: !0,
|
|
@@ -2119,39 +2119,39 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2119
2119
|
flush: "post"
|
|
2120
2120
|
}
|
|
2121
2121
|
);
|
|
2122
|
-
function
|
|
2122
|
+
function h(s) {
|
|
2123
2123
|
s == null || s.preventDefault();
|
|
2124
|
-
const
|
|
2125
|
-
a.onToggle && a.onToggle(
|
|
2124
|
+
const r = !e.value;
|
|
2125
|
+
a.onToggle && a.onToggle(r), e.value = r;
|
|
2126
2126
|
}
|
|
2127
|
-
return (s,
|
|
2127
|
+
return (s, r) => (f(), g("li", {
|
|
2128
2128
|
id: i.value,
|
|
2129
|
-
class:
|
|
2129
|
+
class: P(d(z)("db-accordion-item", a.class))
|
|
2130
2130
|
}, [
|
|
2131
2131
|
_("details", {
|
|
2132
2132
|
"aria-disabled": d(H)(s.disabled),
|
|
2133
2133
|
ref_key: "_ref",
|
|
2134
|
-
ref:
|
|
2134
|
+
ref: u,
|
|
2135
2135
|
name: t.value,
|
|
2136
2136
|
open: e.value
|
|
2137
2137
|
}, [
|
|
2138
2138
|
_("summary", {
|
|
2139
|
-
onClick:
|
|
2139
|
+
onClick: r[0] || (r[0] = async (c) => h(c))
|
|
2140
2140
|
}, [
|
|
2141
|
-
s.headlinePlain ? (f(),
|
|
2141
|
+
s.headlinePlain ? (f(), g(U, { key: 0 }, [
|
|
2142
2142
|
C(S(s.headlinePlain), 1)
|
|
2143
2143
|
], 64)) : F("", !0),
|
|
2144
2144
|
s.headlinePlain ? F("", !0) : T(s.$slots, "headline", { key: 1 })
|
|
2145
2145
|
]),
|
|
2146
2146
|
_("div", null, [
|
|
2147
|
-
s.text ? (f(),
|
|
2147
|
+
s.text ? (f(), g(U, { key: 0 }, [
|
|
2148
2148
|
C(S(s.text), 1)
|
|
2149
2149
|
], 64)) : T(s.$slots, "default", { key: 1 })
|
|
2150
2150
|
])
|
|
2151
2151
|
], 8, jt)
|
|
2152
2152
|
], 10, Ht));
|
|
2153
2153
|
}
|
|
2154
|
-
}), Kt = ["id", "data-variant"], ul = /* @__PURE__ */
|
|
2154
|
+
}), Kt = ["id", "data-variant"], ul = /* @__PURE__ */ q({
|
|
2155
2155
|
__name: "accordion",
|
|
2156
2156
|
props: {
|
|
2157
2157
|
behavior: { default: void 0 },
|
|
@@ -2168,9 +2168,9 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2168
2168
|
autofocus: { type: [Boolean, String] }
|
|
2169
2169
|
},
|
|
2170
2170
|
setup(l) {
|
|
2171
|
-
const a = l, i = n(we), e = n(""), t = n(!1),
|
|
2171
|
+
const a = l, i = n(we), e = n(""), t = n(!1), v = n(!1), u = n(null);
|
|
2172
2172
|
Y(() => {
|
|
2173
|
-
i.value = a.id || "accordion-" + Q(), t.value = !0,
|
|
2173
|
+
i.value = a.id || "accordion-" + Q(), t.value = !0, v.value = !0;
|
|
2174
2174
|
}), A(
|
|
2175
2175
|
() => [t.value, a.name, a.behavior, i.value],
|
|
2176
2176
|
() => {
|
|
@@ -2181,13 +2181,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2181
2181
|
flush: "post"
|
|
2182
2182
|
}
|
|
2183
2183
|
), A(
|
|
2184
|
-
() => [
|
|
2184
|
+
() => [u.value, e.value],
|
|
2185
2185
|
() => {
|
|
2186
|
-
if (
|
|
2187
|
-
const s =
|
|
2186
|
+
if (u.value) {
|
|
2187
|
+
const s = u.value.getElementsByTagName("details");
|
|
2188
2188
|
if (s)
|
|
2189
|
-
for (const
|
|
2190
|
-
e.value === "" ?
|
|
2189
|
+
for (const r of Array.from(s))
|
|
2190
|
+
e.value === "" ? r.removeAttribute("name") : r.name = e.value ?? "";
|
|
2191
2191
|
}
|
|
2192
2192
|
},
|
|
2193
2193
|
{
|
|
@@ -2195,21 +2195,21 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2195
2195
|
flush: "post"
|
|
2196
2196
|
}
|
|
2197
2197
|
), A(
|
|
2198
|
-
() => [
|
|
2198
|
+
() => [u.value, v.value, a.initOpenIndex],
|
|
2199
2199
|
() => {
|
|
2200
|
-
if (
|
|
2200
|
+
if (u.value && v.value) {
|
|
2201
2201
|
if (a.initOpenIndex && a.initOpenIndex.length > 0) {
|
|
2202
|
-
const s =
|
|
2202
|
+
const s = u.value.getElementsByTagName("details");
|
|
2203
2203
|
if (s) {
|
|
2204
|
-
const
|
|
2204
|
+
const r = a.behavior === "single" && a.initOpenIndex.length > 1 ? [a.initOpenIndex[0]] : a.initOpenIndex;
|
|
2205
2205
|
Array.from(s).forEach(
|
|
2206
|
-
(
|
|
2207
|
-
|
|
2206
|
+
(c, I) => {
|
|
2207
|
+
r != null && r.includes(I) && (c.open = !0);
|
|
2208
2208
|
}
|
|
2209
2209
|
);
|
|
2210
2210
|
}
|
|
2211
2211
|
}
|
|
2212
|
-
|
|
2212
|
+
v.value = !1;
|
|
2213
2213
|
}
|
|
2214
2214
|
},
|
|
2215
2215
|
{
|
|
@@ -2217,7 +2217,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2217
2217
|
flush: "post"
|
|
2218
2218
|
}
|
|
2219
2219
|
);
|
|
2220
|
-
function
|
|
2220
|
+
function h() {
|
|
2221
2221
|
try {
|
|
2222
2222
|
return typeof a.items == "string" ? JSON.parse(a.items) : a.items;
|
|
2223
2223
|
} catch (s) {
|
|
@@ -2225,23 +2225,23 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2225
2225
|
}
|
|
2226
2226
|
return [];
|
|
2227
2227
|
}
|
|
2228
|
-
return (s,
|
|
2228
|
+
return (s, r) => (f(), g("ul", {
|
|
2229
2229
|
ref_key: "_ref",
|
|
2230
|
-
ref:
|
|
2230
|
+
ref: u,
|
|
2231
2231
|
id: i.value,
|
|
2232
|
-
class:
|
|
2232
|
+
class: P(d(z)("db-accordion", a.class)),
|
|
2233
2233
|
"data-variant": s.variant
|
|
2234
2234
|
}, [
|
|
2235
2235
|
s.items ? F("", !0) : T(s.$slots, "default", { key: 0 }),
|
|
2236
|
-
s.items ? (f(!0),
|
|
2236
|
+
s.items ? (f(!0), g(U, { key: 1 }, ge(h(), (c, I) => (f(), J(Yt, {
|
|
2237
2237
|
key: `accordion-item-${I}`,
|
|
2238
|
-
headlinePlain:
|
|
2239
|
-
disabled:
|
|
2240
|
-
text:
|
|
2238
|
+
headlinePlain: c.headlinePlain,
|
|
2239
|
+
disabled: c.disabled,
|
|
2240
|
+
text: c.text
|
|
2241
2241
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : F("", !0)
|
|
2242
2242
|
], 10, Kt));
|
|
2243
2243
|
}
|
|
2244
|
-
}), Jt = ["id", "aria-labelledby"], rl = /* @__PURE__ */
|
|
2244
|
+
}), Jt = ["id", "aria-labelledby"], rl = /* @__PURE__ */ q({
|
|
2245
2245
|
__name: "navigation",
|
|
2246
2246
|
props: {
|
|
2247
2247
|
children: { default: void 0 },
|
|
@@ -2256,19 +2256,19 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2256
2256
|
const a = l, i = n(we), e = n(null);
|
|
2257
2257
|
return Y(() => {
|
|
2258
2258
|
i.value = a.id || "navigation-" + Q();
|
|
2259
|
-
}), (t,
|
|
2259
|
+
}), (t, v) => (f(), g("nav", {
|
|
2260
2260
|
ref_key: "_ref",
|
|
2261
2261
|
ref: e,
|
|
2262
2262
|
id: i.value,
|
|
2263
2263
|
"aria-labelledby": t.labelledBy,
|
|
2264
|
-
class:
|
|
2264
|
+
class: P(d(z)("db-navigation", a.class))
|
|
2265
2265
|
}, [
|
|
2266
2266
|
_("menu", null, [
|
|
2267
2267
|
T(t.$slots, "default")
|
|
2268
2268
|
])
|
|
2269
2269
|
], 10, Jt));
|
|
2270
2270
|
}
|
|
2271
|
-
}), Qt = ["id"], Zt = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"],
|
|
2271
|
+
}), Qt = ["id"], Zt = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], cl = /* @__PURE__ */ q({
|
|
2272
2272
|
__name: "popover",
|
|
2273
2273
|
props: {
|
|
2274
2274
|
open: { type: [Boolean, String], default: void 0 },
|
|
@@ -2294,7 +2294,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2294
2294
|
() => [t.value, i.value],
|
|
2295
2295
|
() => {
|
|
2296
2296
|
if (t.value && i.value) {
|
|
2297
|
-
const s =
|
|
2297
|
+
const s = h();
|
|
2298
2298
|
s && (s.ariaHasPopup = "true"), i.value = !1;
|
|
2299
2299
|
}
|
|
2300
2300
|
},
|
|
@@ -2306,7 +2306,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2306
2306
|
() => [t.value, e.value],
|
|
2307
2307
|
() => {
|
|
2308
2308
|
if (t.value) {
|
|
2309
|
-
const s =
|
|
2309
|
+
const s = h();
|
|
2310
2310
|
s && (s.ariaExpanded = (!!e.value).toString());
|
|
2311
2311
|
}
|
|
2312
2312
|
},
|
|
@@ -2315,35 +2315,35 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2315
2315
|
flush: "post"
|
|
2316
2316
|
}
|
|
2317
2317
|
);
|
|
2318
|
-
function
|
|
2318
|
+
function v() {
|
|
2319
2319
|
if (e.value = !0, !t.value) return;
|
|
2320
2320
|
const s = t.value.querySelector("article");
|
|
2321
2321
|
s && Fe(s);
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2324
|
-
const
|
|
2325
|
-
(!
|
|
2323
|
+
function u(s) {
|
|
2324
|
+
const r = s.target;
|
|
2325
|
+
(!r.parentNode || r.parentNode.querySelector(":focus") !== r && r.parentNode.querySelector(":focus-within") !== r && r.parentNode.querySelector(":hover") !== r) && (e.value = !1);
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function h() {
|
|
2328
2328
|
var s;
|
|
2329
2329
|
if (t.value) {
|
|
2330
|
-
const
|
|
2331
|
-
if (
|
|
2332
|
-
const
|
|
2333
|
-
return
|
|
2330
|
+
const r = Array.from(t.value.children);
|
|
2331
|
+
if (r.length >= 2) {
|
|
2332
|
+
const c = r[0];
|
|
2333
|
+
return c.tagName.includes("-") ? ((s = c.children) == null ? void 0 : s.length) > 0 ? c.children[0] : null : c;
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
2336
|
return null;
|
|
2337
2337
|
}
|
|
2338
|
-
return (s,
|
|
2338
|
+
return (s, r) => (f(), g("div", {
|
|
2339
2339
|
ref_key: "_ref",
|
|
2340
2340
|
ref: t,
|
|
2341
2341
|
id: s.id,
|
|
2342
|
-
class:
|
|
2343
|
-
onFocus:
|
|
2344
|
-
onBlur:
|
|
2345
|
-
onMouseenter:
|
|
2346
|
-
onMouseleave:
|
|
2342
|
+
class: P(d(z)("db-popover", a.class)),
|
|
2343
|
+
onFocus: r[0] || (r[0] = async (c) => v()),
|
|
2344
|
+
onBlur: r[1] || (r[1] = async (c) => u(c)),
|
|
2345
|
+
onMouseenter: r[2] || (r[2] = async (c) => v()),
|
|
2346
|
+
onMouseleave: r[3] || (r[3] = async (c) => u(c))
|
|
2347
2347
|
}, [
|
|
2348
2348
|
T(s.$slots, "trigger"),
|
|
2349
2349
|
_("article", {
|
|
@@ -2360,7 +2360,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2360
2360
|
], 8, Zt)
|
|
2361
2361
|
], 42, Qt));
|
|
2362
2362
|
}
|
|
2363
|
-
}), xt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ei = /* @__PURE__ */
|
|
2363
|
+
}), xt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ei = /* @__PURE__ */ q({
|
|
2364
2364
|
__name: "tooltip",
|
|
2365
2365
|
props: {
|
|
2366
2366
|
showArrow: { type: [Boolean, String], default: void 0 },
|
|
@@ -2384,10 +2384,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2384
2384
|
() => [t.value, e.value],
|
|
2385
2385
|
() => {
|
|
2386
2386
|
if (t.value && e.value && i.value) {
|
|
2387
|
-
let
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
}),
|
|
2387
|
+
let h = t.value.parentElement;
|
|
2388
|
+
h && h.localName.includes("tooltip") && (h = h.parentElement), h && (["mouseenter", "focus"].forEach((s) => {
|
|
2389
|
+
h.addEventListener(s, () => u());
|
|
2390
|
+
}), h.setAttribute("data-has-tooltip", "true"), h.setAttribute("aria-describedby", i.value)), e.value = !1;
|
|
2391
2391
|
}
|
|
2392
2392
|
},
|
|
2393
2393
|
{
|
|
@@ -2395,32 +2395,32 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2395
2395
|
flush: "post"
|
|
2396
2396
|
}
|
|
2397
2397
|
);
|
|
2398
|
-
function
|
|
2399
|
-
|
|
2398
|
+
function v(h) {
|
|
2399
|
+
h.stopPropagation();
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function u() {
|
|
2402
2402
|
t.value && Fe(t.value);
|
|
2403
2403
|
}
|
|
2404
|
-
return (
|
|
2404
|
+
return (h, s) => (f(), g("i", {
|
|
2405
2405
|
role: "tooltip",
|
|
2406
2406
|
"aria-hidden": "true",
|
|
2407
2407
|
"data-gap": "true",
|
|
2408
2408
|
ref_key: "_ref",
|
|
2409
2409
|
ref: t,
|
|
2410
|
-
class:
|
|
2410
|
+
class: P(d(z)("db-tooltip", a.class)),
|
|
2411
2411
|
id: i.value,
|
|
2412
|
-
"data-emphasis":
|
|
2413
|
-
"data-animation": d(H)(
|
|
2414
|
-
"data-delay":
|
|
2415
|
-
"data-width":
|
|
2416
|
-
"data-show-arrow": d(H)(
|
|
2417
|
-
"data-placement":
|
|
2418
|
-
onClick: s[0] || (s[0] = async (
|
|
2412
|
+
"data-emphasis": h.emphasis,
|
|
2413
|
+
"data-animation": d(H)(h.animation ?? !0),
|
|
2414
|
+
"data-delay": h.delay,
|
|
2415
|
+
"data-width": h.width,
|
|
2416
|
+
"data-show-arrow": d(H)(h.showArrow ?? !0),
|
|
2417
|
+
"data-placement": h.placement,
|
|
2418
|
+
onClick: s[0] || (s[0] = async (r) => v(r))
|
|
2419
2419
|
}, [
|
|
2420
|
-
T(
|
|
2420
|
+
T(h.$slots, "default")
|
|
2421
2421
|
], 10, xt));
|
|
2422
2422
|
}
|
|
2423
|
-
}), ai = ["id"], ti = { role: "tablist" }, ii = /* @__PURE__ */
|
|
2423
|
+
}), ai = ["id"], ti = { role: "tablist" }, ii = /* @__PURE__ */ q({
|
|
2424
2424
|
__name: "tab-list",
|
|
2425
2425
|
props: {
|
|
2426
2426
|
children: { default: void 0 },
|
|
@@ -2434,18 +2434,18 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2434
2434
|
const a = l, i = n(we), e = n(null);
|
|
2435
2435
|
return Y(() => {
|
|
2436
2436
|
i.value = a.id || "tab-list-" + Q();
|
|
2437
|
-
}), (t,
|
|
2437
|
+
}), (t, v) => (f(), g("div", {
|
|
2438
2438
|
ref_key: "_ref",
|
|
2439
2439
|
ref: e,
|
|
2440
2440
|
id: i.value,
|
|
2441
|
-
class:
|
|
2441
|
+
class: P(d(z)("db-tab-list", a.class))
|
|
2442
2442
|
}, [
|
|
2443
2443
|
_("ul", ti, [
|
|
2444
2444
|
T(t.$slots, "default")
|
|
2445
2445
|
])
|
|
2446
2446
|
], 10, ai));
|
|
2447
2447
|
}
|
|
2448
|
-
}), li = ["id", "aria-labelledby"], oi = /* @__PURE__ */
|
|
2448
|
+
}), li = ["id", "aria-labelledby"], oi = /* @__PURE__ */ q({
|
|
2449
2449
|
__name: "tab-panel",
|
|
2450
2450
|
props: {
|
|
2451
2451
|
content: { default: void 0 },
|
|
@@ -2460,21 +2460,21 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2460
2460
|
setup(l) {
|
|
2461
2461
|
const a = l, i = n(null);
|
|
2462
2462
|
return Y(() => {
|
|
2463
|
-
}), (e, t) => (f(),
|
|
2463
|
+
}), (e, t) => (f(), g("section", {
|
|
2464
2464
|
role: "tabpanel",
|
|
2465
2465
|
ref_key: "_ref",
|
|
2466
2466
|
ref: i,
|
|
2467
|
-
class:
|
|
2467
|
+
class: P(d(z)("db-tab-panel", a.class)),
|
|
2468
2468
|
id: e.id,
|
|
2469
2469
|
"aria-labelledby": e.labelledBy
|
|
2470
2470
|
}, [
|
|
2471
|
-
e.content ? (f(),
|
|
2471
|
+
e.content ? (f(), g(U, { key: 0 }, [
|
|
2472
2472
|
C(S(e.content), 1)
|
|
2473
2473
|
], 64)) : F("", !0),
|
|
2474
2474
|
T(e.$slots, "default")
|
|
2475
2475
|
], 10, li));
|
|
2476
2476
|
}
|
|
2477
|
-
}), di = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"],
|
|
2477
|
+
}), di = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], vl = /* @__PURE__ */ q({
|
|
2478
2478
|
__name: "tabs",
|
|
2479
2479
|
props: {
|
|
2480
2480
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -2498,7 +2498,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2498
2498
|
alignment: { default: void 0 }
|
|
2499
2499
|
},
|
|
2500
2500
|
setup(l) {
|
|
2501
|
-
const a = l, i = n("tabs-" + Q()), e = n(""), t = n(!1),
|
|
2501
|
+
const a = l, i = n("tabs-" + Q()), e = n(""), t = n(!1), v = n(!1), u = n(!1), h = n(null), s = n(null);
|
|
2502
2502
|
Y(() => {
|
|
2503
2503
|
i.value = a.id || i.value, e.value = `tabs-${a.name || Q()}`, t.value = !0;
|
|
2504
2504
|
}), A(
|
|
@@ -2522,7 +2522,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2522
2522
|
flush: "post"
|
|
2523
2523
|
}
|
|
2524
2524
|
);
|
|
2525
|
-
function
|
|
2525
|
+
function r() {
|
|
2526
2526
|
try {
|
|
2527
2527
|
return typeof a.tabs == "string" ? JSON.parse(a.tabs) : a.tabs;
|
|
2528
2528
|
} catch (w) {
|
|
@@ -2530,14 +2530,14 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2530
2530
|
}
|
|
2531
2531
|
return [];
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function c(w) {
|
|
2534
2534
|
const $ = w.scrollWidth > w.clientWidth;
|
|
2535
|
-
|
|
2535
|
+
v.value = $ && w.scrollLeft > 1, u.value = $ && w.scrollLeft < w.scrollWidth - w.clientWidth;
|
|
2536
2536
|
}
|
|
2537
2537
|
function I(w) {
|
|
2538
2538
|
var R;
|
|
2539
2539
|
let $ = Number(a.arrowScrollDistance) || 100;
|
|
2540
|
-
w && ($ *= -1), (R =
|
|
2540
|
+
w && ($ *= -1), (R = h.value) == null || R.scrollBy({
|
|
2541
2541
|
top: 0,
|
|
2542
2542
|
left: $,
|
|
2543
2543
|
behavior: "smooth"
|
|
@@ -2551,8 +2551,8 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2551
2551
|
$ && ($.setAttribute(
|
|
2552
2552
|
"aria-orientation",
|
|
2553
2553
|
a.orientation || "horizontal"
|
|
2554
|
-
), a.behavior === "arrows" && (
|
|
2555
|
-
|
|
2554
|
+
), a.behavior === "arrows" && (h.value = $, c($), $.addEventListener("scroll", () => {
|
|
2555
|
+
c($);
|
|
2556
2556
|
})));
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
@@ -2573,8 +2573,8 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2573
2573
|
), p.id = E, p.setAttribute("name", e.value);
|
|
2574
2574
|
}
|
|
2575
2575
|
if (w) {
|
|
2576
|
-
const E = !a.initialSelectedMode || a.initialSelectedMode === "auto",
|
|
2577
|
-
E &&
|
|
2576
|
+
const E = !a.initialSelectedMode || a.initialSelectedMode === "auto", m = a.initialSelectedIndex == null && b === 0 || Number(a.initialSelectedIndex) === b;
|
|
2577
|
+
E && m && p.click();
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
@@ -2592,6 +2592,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2592
2592
|
}
|
|
2593
2593
|
function N(w) {
|
|
2594
2594
|
var y;
|
|
2595
|
+
w.stopPropagation();
|
|
2595
2596
|
const $ = (y = w.target) == null ? void 0 : y.closest("ul"), R = (
|
|
2596
2597
|
// db-tab-item for angular and stencil wrapping elements
|
|
2597
2598
|
w.target.closest("db-tab-item") ?? w.target.closest("li")
|
|
@@ -2602,18 +2603,18 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2602
2603
|
}
|
|
2603
2604
|
a.onTabSelect && a.onTabSelect(w);
|
|
2604
2605
|
}
|
|
2605
|
-
return (w, $) => (f(),
|
|
2606
|
+
return (w, $) => (f(), g("div", {
|
|
2606
2607
|
ref_key: "_ref",
|
|
2607
2608
|
ref: s,
|
|
2608
2609
|
id: i.value,
|
|
2609
|
-
class:
|
|
2610
|
+
class: P(d(z)("db-tabs", a.class)),
|
|
2610
2611
|
"data-orientation": w.orientation,
|
|
2611
2612
|
"data-scroll-behavior": w.behavior,
|
|
2612
2613
|
"data-alignment": w.alignment ?? "start",
|
|
2613
2614
|
"data-width": w.width ?? "auto",
|
|
2614
2615
|
onInput: $[0] || ($[0] = async (R) => N(R))
|
|
2615
2616
|
}, [
|
|
2616
|
-
|
|
2617
|
+
v.value ? (f(), J(Be, {
|
|
2617
2618
|
key: 0,
|
|
2618
2619
|
class: "tabs-scroll-left",
|
|
2619
2620
|
variant: "ghost",
|
|
@@ -2627,10 +2628,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2627
2628
|
])),
|
|
2628
2629
|
_: 1
|
|
2629
2630
|
}, 8, ["onClick"])) : F("", !0),
|
|
2630
|
-
w.tabs ? (f(),
|
|
2631
|
+
w.tabs ? (f(), g(U, { key: 1 }, [
|
|
2631
2632
|
te(ii, null, {
|
|
2632
2633
|
default: V(() => [
|
|
2633
|
-
(f(!0),
|
|
2634
|
+
(f(!0), g(U, null, ge(r(), (R, y) => (f(), J(Ft, {
|
|
2634
2635
|
key: w.name + "tab-item" + y,
|
|
2635
2636
|
active: R.active,
|
|
2636
2637
|
label: R.label,
|
|
@@ -2641,7 +2642,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2641
2642
|
]),
|
|
2642
2643
|
_: 1
|
|
2643
2644
|
}),
|
|
2644
|
-
(f(!0),
|
|
2645
|
+
(f(!0), g(U, null, ge(r(), (R, y) => (f(), J(oi, {
|
|
2645
2646
|
key: w.name + "tab-panel" + y,
|
|
2646
2647
|
content: R.content
|
|
2647
2648
|
}, {
|
|
@@ -2651,7 +2652,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2651
2652
|
_: 2
|
|
2652
2653
|
}, 1032, ["content"]))), 128))
|
|
2653
2654
|
], 64)) : F("", !0),
|
|
2654
|
-
|
|
2655
|
+
u.value ? (f(), J(Be, {
|
|
2655
2656
|
key: 2,
|
|
2656
2657
|
class: "tabs-scroll-right",
|
|
2657
2658
|
variant: "ghost",
|
|
@@ -2668,7 +2669,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2668
2669
|
T(w.$slots, "default")
|
|
2669
2670
|
], 42, di));
|
|
2670
2671
|
}
|
|
2671
|
-
}), fl = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], pl = ["medium", "small", "large", "none"], ml = ["medium", "small", "large", "none"], ni = ["left", "right", "left-start", "left-end", "right-start", "right-end"], si = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], hl = [...ni, ...si], gl = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], bl = ["horizontal", "vertical"], yl = ["full", "auto"], kl = ["full", "medium", "large", "small"], Bl = ["none", "slow", "fast"], Sl = ["auto", "fixed"], wl = ["small", "medium"], _l = ["weak", "strong"], Il = ["invalid", "valid", "no-validation"], Ll = ["above", "floating"], Tl = ["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"], $l = ["time", "true", "false", "date", "page", "step", "location"], Al = ["_self", "_blank", "_parent", "_top"], Cl = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], El = ["start", "center"], ui = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Nl = /* @__PURE__ */
|
|
2672
|
+
}), fl = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], pl = ["medium", "small", "large", "none"], ml = ["medium", "small", "large", "none"], ni = ["left", "right", "left-start", "left-end", "right-start", "right-end"], si = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], hl = [...ni, ...si], gl = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], bl = ["horizontal", "vertical"], yl = ["full", "auto"], kl = ["full", "medium", "large", "small"], Bl = ["none", "slow", "fast"], Sl = ["auto", "fixed"], wl = ["small", "medium"], _l = ["weak", "strong"], Il = ["invalid", "valid", "no-validation"], Ll = ["above", "floating"], Tl = ["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"], $l = ["time", "true", "false", "date", "page", "step", "location"], Al = ["_self", "_blank", "_parent", "_top"], Cl = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], El = ["start", "center"], ui = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Nl = /* @__PURE__ */ q({
|
|
2672
2673
|
__name: "stack",
|
|
2673
2674
|
props: {
|
|
2674
2675
|
variant: { default: void 0 },
|
|
@@ -2686,11 +2687,11 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2686
2687
|
},
|
|
2687
2688
|
setup(l) {
|
|
2688
2689
|
const a = l, i = n(null);
|
|
2689
|
-
return (e, t) => (f(),
|
|
2690
|
+
return (e, t) => (f(), g("div", {
|
|
2690
2691
|
ref_key: "_ref",
|
|
2691
2692
|
ref: i,
|
|
2692
2693
|
id: e.id,
|
|
2693
|
-
class:
|
|
2694
|
+
class: P(d(z)("db-stack", a.class)),
|
|
2694
2695
|
"data-gap": e.gap,
|
|
2695
2696
|
"data-variant": e.variant,
|
|
2696
2697
|
"data-direction": e.direction,
|
|
@@ -2701,7 +2702,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2701
2702
|
T(e.$slots, "default")
|
|
2702
2703
|
], 10, ui));
|
|
2703
2704
|
}
|
|
2704
|
-
}), ri = ["role", "aria-label", "id"],
|
|
2705
|
+
}), ri = ["role", "aria-label", "id"], ci = /* @__PURE__ */ q({
|
|
2705
2706
|
__name: "custom-select-list",
|
|
2706
2707
|
props: {
|
|
2707
2708
|
label: { default: void 0 },
|
|
@@ -2715,20 +2716,20 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2715
2716
|
},
|
|
2716
2717
|
setup(l) {
|
|
2717
2718
|
const a = l, i = n(null);
|
|
2718
|
-
return (e, t) => (f(),
|
|
2719
|
+
return (e, t) => (f(), g("div", {
|
|
2719
2720
|
role: e.multiple ? "group" : "radiogroup",
|
|
2720
2721
|
"aria-label": e.label,
|
|
2721
2722
|
ref_key: "_ref",
|
|
2722
2723
|
ref: i,
|
|
2723
2724
|
id: e.id,
|
|
2724
|
-
class:
|
|
2725
|
+
class: P(d(z)("db-custom-select-list", a.class))
|
|
2725
2726
|
}, [
|
|
2726
2727
|
_("ul", null, [
|
|
2727
2728
|
T(e.$slots, "default")
|
|
2728
2729
|
])
|
|
2729
2730
|
], 10, ri));
|
|
2730
2731
|
}
|
|
2731
|
-
}),
|
|
2732
|
+
}), vi = ["id", "data-divider"], fi = ["data-icon", "data-hide-icon", "data-icon-after"], pi = ["type", "name", "form", "checked", "disabled", "value"], mi = { key: 1 }, hi = /* @__PURE__ */ q({
|
|
2732
2733
|
__name: "custom-select-list-item",
|
|
2733
2734
|
props: {
|
|
2734
2735
|
groupTitle: { default: void 0 },
|
|
@@ -2753,62 +2754,62 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2753
2754
|
},
|
|
2754
2755
|
emits: ["update:checked"],
|
|
2755
2756
|
setup(l, { emit: a }) {
|
|
2756
|
-
const i = a, e = l, t = n(void 0),
|
|
2757
|
+
const i = a, e = l, t = n(void 0), v = n(!1), u = n(null);
|
|
2757
2758
|
Y(() => {
|
|
2758
2759
|
t.value = e.id ?? `custom-select-list-item-${Q()}`;
|
|
2759
2760
|
}), A(
|
|
2760
2761
|
() => [e.isGroupTitle, e.showDivider],
|
|
2761
2762
|
() => {
|
|
2762
|
-
|
|
2763
|
+
v.value = !!(e.isGroupTitle || e.showDivider);
|
|
2763
2764
|
},
|
|
2764
2765
|
{
|
|
2765
2766
|
immediate: !0,
|
|
2766
2767
|
flush: "post"
|
|
2767
2768
|
}
|
|
2768
2769
|
);
|
|
2769
|
-
function
|
|
2770
|
-
|
|
2770
|
+
function h(r) {
|
|
2771
|
+
r.stopPropagation(), e.onChange && e.onChange(r), oe(i, r, "checked");
|
|
2771
2772
|
}
|
|
2772
2773
|
function s() {
|
|
2773
2774
|
if (!(e.isGroupTitle || e.type === "checkbox"))
|
|
2774
2775
|
return M(e.checked, "checked") ? "check" : "x_placeholder";
|
|
2775
2776
|
}
|
|
2776
|
-
return (
|
|
2777
|
+
return (r, c) => (f(), g("li", {
|
|
2777
2778
|
ref_key: "_ref",
|
|
2778
|
-
ref:
|
|
2779
|
+
ref: u,
|
|
2779
2780
|
id: t.value,
|
|
2780
|
-
class:
|
|
2781
|
-
d(
|
|
2782
|
-
"db-checkbox":
|
|
2783
|
-
"db-radio":
|
|
2781
|
+
class: P(
|
|
2782
|
+
d(z)("db-custom-select-list-item", e.class, {
|
|
2783
|
+
"db-checkbox": r.type === "checkbox" && !r.isGroupTitle,
|
|
2784
|
+
"db-radio": r.type !== "checkbox" && !r.isGroupTitle
|
|
2784
2785
|
})
|
|
2785
2786
|
),
|
|
2786
|
-
"data-divider": d(H)(
|
|
2787
|
+
"data-divider": d(H)(v.value)
|
|
2787
2788
|
}, [
|
|
2788
|
-
|
|
2789
|
+
r.isGroupTitle ? (f(), g("span", mi, S(r.groupTitle), 1)) : (f(), g("label", {
|
|
2789
2790
|
key: 0,
|
|
2790
|
-
"data-icon":
|
|
2791
|
-
"data-hide-icon": d(K)(
|
|
2791
|
+
"data-icon": r.type !== "checkbox" && r.icon ? r.icon : void 0,
|
|
2792
|
+
"data-hide-icon": d(K)(r.showIcon),
|
|
2792
2793
|
"data-icon-after": s()
|
|
2793
2794
|
}, [
|
|
2794
2795
|
_("input", {
|
|
2795
2796
|
class: "db-custom-select-list-item-checkbox",
|
|
2796
2797
|
"data-disable-focus": "true",
|
|
2797
|
-
type:
|
|
2798
|
-
name:
|
|
2799
|
-
form:
|
|
2800
|
-
checked: d(M)(
|
|
2801
|
-
disabled: d(M)(
|
|
2802
|
-
value:
|
|
2803
|
-
onChange:
|
|
2798
|
+
type: r.type,
|
|
2799
|
+
name: r.name,
|
|
2800
|
+
form: r.name,
|
|
2801
|
+
checked: d(M)(r.checked, "checked"),
|
|
2802
|
+
disabled: d(M)(r.disabled, "disabled"),
|
|
2803
|
+
value: r.value,
|
|
2804
|
+
onChange: c[0] || (c[0] = async (I) => h(I))
|
|
2804
2805
|
}, null, 40, pi),
|
|
2805
|
-
|
|
2806
|
-
C(S(
|
|
2807
|
-
], 64)) : T(
|
|
2806
|
+
r.label ? (f(), g(U, { key: 0 }, [
|
|
2807
|
+
C(S(r.label), 1)
|
|
2808
|
+
], 64)) : T(r.$slots, "default", { key: 1 })
|
|
2808
2809
|
], 8, fi))
|
|
2809
|
-
], 10,
|
|
2810
|
+
], 10, vi));
|
|
2810
2811
|
}
|
|
2811
|
-
}), gi = ["id", "data-width"], bi = /* @__PURE__ */
|
|
2812
|
+
}), gi = ["id", "data-width"], bi = /* @__PURE__ */ q({
|
|
2812
2813
|
__name: "custom-select-dropdown",
|
|
2813
2814
|
props: {
|
|
2814
2815
|
width: { default: "fixed" },
|
|
@@ -2821,12 +2822,12 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2821
2822
|
},
|
|
2822
2823
|
setup(l) {
|
|
2823
2824
|
const a = l, i = n(null);
|
|
2824
|
-
return (e, t) => (f(),
|
|
2825
|
+
return (e, t) => (f(), g("article", {
|
|
2825
2826
|
"data-spacing": "none",
|
|
2826
2827
|
ref_key: "_ref",
|
|
2827
2828
|
ref: i,
|
|
2828
2829
|
id: e.id,
|
|
2829
|
-
class:
|
|
2830
|
+
class: P(d(z)("db-custom-select-dropdown db-card", a.class)),
|
|
2830
2831
|
"data-width": e.width
|
|
2831
2832
|
}, [
|
|
2832
2833
|
T(e.$slots, "default")
|
|
@@ -2856,7 +2857,7 @@ let De = ne;
|
|
|
2856
2857
|
const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-hide-icon"], ki = ["id"], Bi = ["id", "form", "name", "multiple", "disabled", "required"], Si = ["disabled", "value"], wi = ["open"], _i = ["id", "aria-disabled", "aria-labelledby"], Ii = ["data-visually-hidden", "id"], Li = { key: 1 }, Ti = { key: 0 }, $i = { key: 0 }, Ai = { class: "db-checkbox db-custom-select-list-item" }, Ci = ["form", "checked"], Ei = ["aria-hidden", "id"], Ni = {
|
|
2857
2858
|
"data-visually-hidden": "true",
|
|
2858
2859
|
role: "status"
|
|
2859
|
-
}, Dl = /* @__PURE__ */
|
|
2860
|
+
}, Dl = /* @__PURE__ */ q({
|
|
2860
2861
|
__name: "custom-select",
|
|
2861
2862
|
props: {
|
|
2862
2863
|
children: { default: void 0 },
|
|
@@ -2915,21 +2916,21 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2915
2916
|
},
|
|
2916
2917
|
emits: ["update:values"],
|
|
2917
2918
|
setup(l, { emit: a }) {
|
|
2918
|
-
const i = l, e = n(void 0), t = n(void 0),
|
|
2919
|
+
const i = l, e = n(void 0), t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(void 0), I = n(void 0), L = n(void 0), B = n("no-validation"), N = n(""), w = n(""), $ = n(void 0), R = n(""), y = n([]), b = n(!1), O = n(!1), p = n(0), E = n([]), m = n([]), X = n(!1), j = n(void 0), Ae = n(0), pe = n(!1), _e = n(!1), ta = n(null), G = n(null), be = n(null), Ce = n(null), Me = n(null);
|
|
2919
2920
|
Y(() => {
|
|
2920
2921
|
const o = i.id ?? `custom-select-${Q()}`;
|
|
2921
|
-
e.value = o, t.value = o + re,
|
|
2922
|
+
e.value = o, t.value = o + re, v.value = o + ce, u.value = o + ve, s.value = o + He, r.value = o + Xe, c.value = o + "-summary", I.value = o + Ne, $.value = o + "-selected-labels", L.value = o + "-info", h.value = i.invalidMessage || ie;
|
|
2922
2923
|
}), A(
|
|
2923
|
-
() => [
|
|
2924
|
+
() => [G.value],
|
|
2924
2925
|
() => {
|
|
2925
|
-
if (
|
|
2926
|
-
const o =
|
|
2926
|
+
if (G.value) {
|
|
2927
|
+
const o = G.value.querySelector("summary");
|
|
2927
2928
|
o && (o.addEventListener("click", () => {
|
|
2928
|
-
|
|
2929
|
+
Ue(), Re(!0);
|
|
2929
2930
|
}), o.addEventListener("keydown", (k) => {
|
|
2930
2931
|
var D;
|
|
2931
|
-
k.code === "Space" && !((D =
|
|
2932
|
-
})),
|
|
2932
|
+
k.code === "Space" && !((D = G.value) != null && D.open) && Re();
|
|
2933
|
+
})), G.value.addEventListener(
|
|
2933
2934
|
"focusout",
|
|
2934
2935
|
(k) => Le(k)
|
|
2935
2936
|
);
|
|
@@ -2944,7 +2945,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2944
2945
|
() => {
|
|
2945
2946
|
if (e.value) {
|
|
2946
2947
|
const o = e.value + re;
|
|
2947
|
-
|
|
2948
|
+
r.value = e.value + Xe, s.value = e.value + He, v.value = e.value + ce, u.value = e.value + ve, I.value = e.value + Ne, Z(i.message, i.showMessage) ? qe(o) : qe();
|
|
2948
2949
|
}
|
|
2949
2950
|
},
|
|
2950
2951
|
{
|
|
@@ -2952,10 +2953,10 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2952
2953
|
flush: "post"
|
|
2953
2954
|
}
|
|
2954
2955
|
), A(
|
|
2955
|
-
() => [
|
|
2956
|
+
() => [G.value, N.value],
|
|
2956
2957
|
() => {
|
|
2957
|
-
if (
|
|
2958
|
-
const o =
|
|
2958
|
+
if (G.value) {
|
|
2959
|
+
const o = G.value.querySelector("summary");
|
|
2959
2960
|
o && o.setAttribute("aria-describedby", N.value || "");
|
|
2960
2961
|
}
|
|
2961
2962
|
},
|
|
@@ -2964,9 +2965,9 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2964
2965
|
flush: "post"
|
|
2965
2966
|
}
|
|
2966
2967
|
), A(
|
|
2967
|
-
() => [i.showNoResults,
|
|
2968
|
+
() => [i.showNoResults, m.value],
|
|
2968
2969
|
() => {
|
|
2969
|
-
i.showNoResults !== void 0 ? X.value = i.showNoResults :
|
|
2970
|
+
i.showNoResults !== void 0 ? X.value = i.showNoResults : m.value && (X.value = m.value.length === 0);
|
|
2970
2971
|
},
|
|
2971
2972
|
{
|
|
2972
2973
|
immediate: !0,
|
|
@@ -3031,17 +3032,17 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3031
3032
|
() => [i.options],
|
|
3032
3033
|
() => {
|
|
3033
3034
|
var o;
|
|
3034
|
-
|
|
3035
|
+
m.value = i.options, p.value = ((o = i.options) == null ? void 0 : o.filter((k) => !k.isGroupTitle).length) ?? 0;
|
|
3035
3036
|
},
|
|
3036
3037
|
{
|
|
3037
3038
|
immediate: !0,
|
|
3038
3039
|
flush: "post"
|
|
3039
3040
|
}
|
|
3040
3041
|
), A(
|
|
3041
|
-
() => [
|
|
3042
|
+
() => [m.value, E.value],
|
|
3042
3043
|
() => {
|
|
3043
3044
|
var o, k;
|
|
3044
|
-
(o =
|
|
3045
|
+
(o = m.value) != null && o.length && (y.value = (k = m.value) == null ? void 0 : k.filter(
|
|
3045
3046
|
(D) => {
|
|
3046
3047
|
var x, ye;
|
|
3047
3048
|
return !D.value || !((x = E.value) != null && x.includes) ? !1 : !D.isGroupTitle && ((ye = E.value) == null ? void 0 : ye.includes(D.value));
|
|
@@ -3085,23 +3086,23 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3085
3086
|
() => [be.value, i.invalidMessage],
|
|
3086
3087
|
() => {
|
|
3087
3088
|
var o;
|
|
3088
|
-
|
|
3089
|
+
h.value = i.invalidMessage || ((o = be.value) == null ? void 0 : o.validationMessage) || ie;
|
|
3089
3090
|
},
|
|
3090
3091
|
{
|
|
3091
3092
|
immediate: !0,
|
|
3092
3093
|
flush: "post"
|
|
3093
3094
|
}
|
|
3094
3095
|
);
|
|
3095
|
-
function
|
|
3096
|
+
function ze() {
|
|
3096
3097
|
return !!(i.validMessage ?? i.validation === "valid");
|
|
3097
3098
|
}
|
|
3098
3099
|
function ia() {
|
|
3099
3100
|
var o, k, D;
|
|
3100
|
-
be.value && (be.value.value = oa()), !((o = be.value) != null && o.validity.valid) || i.validation === "invalid" ? (N.value =
|
|
3101
|
+
be.value && (be.value.value = oa()), !((o = be.value) != null && o.validity.valid) || i.validation === "invalid" ? (N.value = u.value, h.value = i.invalidMessage || ((k = be.value) == null ? void 0 : k.validationMessage) || ie, ue() && (R.value = h.value, ee(() => R.value = "", 1e3)), B.value = i.validation ?? "invalid") : ze() && ((D = be.value) != null && D.validity.valid) && i.required ? (N.value = v.value, ue() && (R.value = i.validMessage ?? fe, ee(() => R.value = "", 1e3)), B.value = i.validation ?? "valid") : Z(i.message, i.showMessage) ? (N.value = t.value, B.value = i.validation ?? "no-validation") : (N.value = I.value, B.value = i.validation ?? "no-validation");
|
|
3101
3102
|
}
|
|
3102
3103
|
function la(o) {
|
|
3103
3104
|
i.onDropdownToggle && i.onDropdownToggle(o), o.target.open ? j.value = new De().addCallback(
|
|
3104
|
-
(k) =>
|
|
3105
|
+
(k) => va(k)
|
|
3105
3106
|
) : j.value && new De().removeCallback(
|
|
3106
3107
|
j.value
|
|
3107
3108
|
);
|
|
@@ -3110,7 +3111,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3110
3111
|
var o;
|
|
3111
3112
|
return (o = E.value) != null && o.length ? E.value.at(0) ?? "" : "";
|
|
3112
3113
|
}
|
|
3113
|
-
function
|
|
3114
|
+
function qe(o) {
|
|
3114
3115
|
var D;
|
|
3115
3116
|
const k = [];
|
|
3116
3117
|
o && k.push(o), $.value && ((D = w.value) != null && D.length) && k.push($.value), N.value = k.join(" ");
|
|
@@ -3130,11 +3131,11 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3130
3131
|
return i.removeTagsTexts && i.removeTagsTexts.length > o ? i.removeTagsTexts.at(o) : `${Je} ${y.value ? Se(y.value[o]) : ""}`;
|
|
3131
3132
|
}
|
|
3132
3133
|
function ua(o, k) {
|
|
3133
|
-
k.stopPropagation(),
|
|
3134
|
+
k.stopPropagation(), Ge(o.value), Te();
|
|
3134
3135
|
}
|
|
3135
|
-
function
|
|
3136
|
-
if (
|
|
3137
|
-
const o =
|
|
3136
|
+
function Ue() {
|
|
3137
|
+
if (G.value) {
|
|
3138
|
+
const o = G.value.querySelector("article");
|
|
3138
3139
|
o && ee(() => {
|
|
3139
3140
|
Fe(o);
|
|
3140
3141
|
}, 100);
|
|
@@ -3142,7 +3143,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3142
3143
|
}
|
|
3143
3144
|
function ra(o) {
|
|
3144
3145
|
var k, D, x, ye, W, me, $e;
|
|
3145
|
-
if ((k =
|
|
3146
|
+
if ((k = G.value) != null && k.open) {
|
|
3146
3147
|
if (document) {
|
|
3147
3148
|
const de = document.activeElement;
|
|
3148
3149
|
if (de)
|
|
@@ -3152,17 +3153,17 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3152
3153
|
le != null && le.nextElementSibling ? (x = (D = le == null ? void 0 : le.nextElementSibling) == null ? void 0 : D.querySelector("input")) == null || x.focus() : Ee(de);
|
|
3153
3154
|
else if (le != null && le.previousElementSibling)
|
|
3154
3155
|
(W = (ye = le == null ? void 0 : le.previousElementSibling) == null ? void 0 : ye.querySelector("input")) == null || W.focus();
|
|
3155
|
-
else if (
|
|
3156
|
+
else if (G.value.querySelector('input[type="checkbox"]') !== de)
|
|
3156
3157
|
Ee(de);
|
|
3157
3158
|
else {
|
|
3158
|
-
const Ve = We(
|
|
3159
|
+
const Ve = We(G.value);
|
|
3159
3160
|
if (Ve)
|
|
3160
3161
|
ee(() => {
|
|
3161
3162
|
Ve.focus();
|
|
3162
3163
|
}, 100);
|
|
3163
3164
|
else {
|
|
3164
3165
|
const Oe = Array.from(
|
|
3165
|
-
(me =
|
|
3166
|
+
(me = G.value) == null ? void 0 : me.querySelectorAll(
|
|
3166
3167
|
'input[type="checkbox"],input[type="radio"]'
|
|
3167
3168
|
)
|
|
3168
3169
|
);
|
|
@@ -3173,26 +3174,26 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3173
3174
|
de.getAttribute("type") === "search" && (o.key === "ArrowUp" || o.key === "ArrowLeft") ? (Le("close"), Te()) : Ee(de);
|
|
3174
3175
|
}
|
|
3175
3176
|
o.stopPropagation(), o.preventDefault();
|
|
3176
|
-
} else (o.key === "ArrowDown" || o.key === "ArrowRight") && (
|
|
3177
|
+
} else (o.key === "ArrowDown" || o.key === "ArrowRight") && (Ue(), G.value && (G.value.open = !0), Re(), o.stopPropagation(), o.preventDefault());
|
|
3177
3178
|
}
|
|
3178
|
-
function
|
|
3179
|
+
function ca(o) {
|
|
3179
3180
|
var k;
|
|
3180
|
-
o.key === "Escape" &&
|
|
3181
|
+
o.key === "Escape" && G.value && ((k = G.value) != null && k.open) ? (Le("close"), Te()) : (o.key === "ArrowDown" || o.key === "ArrowUp" || o.key === "ArrowLeft" || o.key === "ArrowRight") && ra(o);
|
|
3181
3182
|
}
|
|
3182
3183
|
function Le(o) {
|
|
3183
|
-
if (
|
|
3184
|
+
if (G.value) {
|
|
3184
3185
|
if (o === "close")
|
|
3185
|
-
|
|
3186
|
-
else if (
|
|
3186
|
+
G.value.open = !1, Te();
|
|
3187
|
+
else if (G.value.open && (o != null && o.relatedTarget)) {
|
|
3187
3188
|
const k = o.relatedTarget;
|
|
3188
|
-
|
|
3189
|
+
G.value.contains(k) || (G.value.open = !1);
|
|
3189
3190
|
}
|
|
3190
3191
|
}
|
|
3191
3192
|
}
|
|
3192
|
-
function
|
|
3193
|
+
function va(o) {
|
|
3193
3194
|
var D;
|
|
3194
3195
|
const k = o.target;
|
|
3195
|
-
(D =
|
|
3196
|
+
(D = G.value) != null && D.open && !G.value.contains(k) && (G.value.open = !1);
|
|
3196
3197
|
}
|
|
3197
3198
|
function Ie(o) {
|
|
3198
3199
|
(/* @__PURE__ */ new Date()).getTime() - Ae.value < 200 || (i.onOptionSelected && (E.value = o, i.onOptionSelected(o ?? [])), oe(
|
|
@@ -3206,7 +3207,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3206
3207
|
"values"
|
|
3207
3208
|
), Ae.value = (/* @__PURE__ */ new Date()).getTime());
|
|
3208
3209
|
}
|
|
3209
|
-
function
|
|
3210
|
+
function Ge(o) {
|
|
3210
3211
|
var k;
|
|
3211
3212
|
o && (i.multiple ? (k = E.value) != null && k.includes(o) ? Ie(E.value.filter((D) => D !== o)) : Ie([...E.value || [], o]) : (Ie([o]), Le("close")));
|
|
3212
3213
|
}
|
|
@@ -3227,9 +3228,9 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3227
3228
|
}
|
|
3228
3229
|
}
|
|
3229
3230
|
function Ee(o) {
|
|
3230
|
-
if (
|
|
3231
|
+
if (G.value) {
|
|
3231
3232
|
const k = Array.from(
|
|
3232
|
-
|
|
3233
|
+
G.value.querySelectorAll(
|
|
3233
3234
|
'input[type="checkbox"],input[type="radio"]'
|
|
3234
3235
|
)
|
|
3235
3236
|
);
|
|
@@ -3242,8 +3243,8 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3242
3243
|
}
|
|
3243
3244
|
}
|
|
3244
3245
|
function Re(o) {
|
|
3245
|
-
if (
|
|
3246
|
-
const k = We(
|
|
3246
|
+
if (G.value) {
|
|
3247
|
+
const k = We(G.value);
|
|
3247
3248
|
k ? ee(() => {
|
|
3248
3249
|
k.focus();
|
|
3249
3250
|
}, 100) : o || Ee();
|
|
@@ -3252,7 +3253,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3252
3253
|
function pa(o) {
|
|
3253
3254
|
o.stopPropagation();
|
|
3254
3255
|
const k = o.target.value;
|
|
3255
|
-
|
|
3256
|
+
m.value = !i.options || !k || k.length === 0 ? i.options : i.options.filter(
|
|
3256
3257
|
(D) => !D.isGroupTitle && Se(D).toLowerCase().includes(k.toLowerCase())
|
|
3257
3258
|
);
|
|
3258
3259
|
}
|
|
@@ -3261,17 +3262,17 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3261
3262
|
}
|
|
3262
3263
|
function Te() {
|
|
3263
3264
|
var o, k;
|
|
3264
|
-
(k = (o =
|
|
3265
|
+
(k = (o = G.value) == null ? void 0 : o.querySelector("summary")) == null || k.focus();
|
|
3265
3266
|
}
|
|
3266
3267
|
function Fi() {
|
|
3267
3268
|
}
|
|
3268
3269
|
return (o, k) => {
|
|
3269
3270
|
var D, x, ye;
|
|
3270
|
-
return f(),
|
|
3271
|
+
return f(), g("div", {
|
|
3271
3272
|
id: e.value,
|
|
3272
3273
|
ref_key: "_ref",
|
|
3273
3274
|
ref: ta,
|
|
3274
|
-
class:
|
|
3275
|
+
class: P(d(z)("db-custom-select", i.class)),
|
|
3275
3276
|
"aria-invalid": B.value === "invalid",
|
|
3276
3277
|
"data-custom-validity": B.value,
|
|
3277
3278
|
"data-width": o.formFieldWidth,
|
|
@@ -3283,7 +3284,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3283
3284
|
"data-icon": o.icon,
|
|
3284
3285
|
"data-hide-icon": d(K)(o.showIcon)
|
|
3285
3286
|
}, [
|
|
3286
|
-
_("label", { id:
|
|
3287
|
+
_("label", { id: r.value }, [
|
|
3287
3288
|
C(S(o.label ?? d(ke)), 1),
|
|
3288
3289
|
_("select", {
|
|
3289
3290
|
role: "none",
|
|
@@ -3299,7 +3300,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3299
3300
|
required: d(M)(o.required, "required"),
|
|
3300
3301
|
onChange: k[0] || (k[0] = async (W) => void 0)
|
|
3301
3302
|
}, [
|
|
3302
|
-
(D =
|
|
3303
|
+
(D = m.value) != null && D.length ? (f(!0), g(U, { key: 0 }, ge(m.value, (W, me) => (f(), g("option", {
|
|
3303
3304
|
key: me,
|
|
3304
3305
|
disabled: W.disabled,
|
|
3305
3306
|
value: W.value
|
|
@@ -3308,26 +3309,26 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3308
3309
|
], 8, ki),
|
|
3309
3310
|
_("details", {
|
|
3310
3311
|
ref_key: "detailsRef",
|
|
3311
|
-
ref:
|
|
3312
|
+
ref: G,
|
|
3312
3313
|
open: o.open,
|
|
3313
3314
|
onToggle: k[2] || (k[2] = async (W) => la(W)),
|
|
3314
|
-
onKeydown: k[3] || (k[3] = async (W) =>
|
|
3315
|
+
onKeydown: k[3] || (k[3] = async (W) => ca(W))
|
|
3315
3316
|
}, [
|
|
3316
3317
|
T(o.$slots, "default"),
|
|
3317
|
-
o.options ? (f(),
|
|
3318
|
+
o.options ? (f(), g(U, { key: 0 }, [
|
|
3318
3319
|
_("summary", {
|
|
3319
3320
|
class: "db-custom-select-form-field",
|
|
3320
|
-
id:
|
|
3321
|
+
id: c.value,
|
|
3321
3322
|
"aria-disabled": d(H)(o.disabled),
|
|
3322
|
-
"aria-labelledby":
|
|
3323
|
+
"aria-labelledby": r.value
|
|
3323
3324
|
}, [
|
|
3324
|
-
(x = w.value) != null && x.length ? (f(),
|
|
3325
|
+
(x = w.value) != null && x.length ? (f(), g("span", {
|
|
3325
3326
|
key: 0,
|
|
3326
3327
|
"data-visually-hidden": d(H)(o.selectedType === "tag"),
|
|
3327
3328
|
id: $.value
|
|
3328
3329
|
}, S(w.value), 9, Ii)) : F("", !0),
|
|
3329
|
-
o.selectedType === "tag" ? (f(),
|
|
3330
|
-
(f(!0),
|
|
3330
|
+
o.selectedType === "tag" ? (f(), g("div", Li, [
|
|
3331
|
+
(f(!0), g(U, null, ge(y.value, (W, me) => (f(), J(Pt, {
|
|
3331
3332
|
key: me,
|
|
3332
3333
|
emphasis: "strong",
|
|
3333
3334
|
behavior: "removable",
|
|
@@ -3343,7 +3344,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3343
3344
|
], 8, _i),
|
|
3344
3345
|
te(bi, { width: o.dropdownWidth }, {
|
|
3345
3346
|
default: V(() => [
|
|
3346
|
-
O.value ? (f(),
|
|
3347
|
+
O.value ? (f(), g("div", Ti, [
|
|
3347
3348
|
te(ht, {
|
|
3348
3349
|
type: "search",
|
|
3349
3350
|
ref_key: "searchInputRef",
|
|
@@ -3367,8 +3368,8 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3367
3368
|
C(S((X.value ? o.noResultsText : o.loadingText) ?? d(wa)), 1)
|
|
3368
3369
|
]),
|
|
3369
3370
|
_: 1
|
|
3370
|
-
}, 8, ["id", "icon", "semantic"])) : (f(),
|
|
3371
|
-
b.value ? (f(),
|
|
3371
|
+
}, 8, ["id", "icon", "semantic"])) : (f(), g(U, { key: 2 }, [
|
|
3372
|
+
b.value ? (f(), g("div", $i, [
|
|
3372
3373
|
_("div", Ai, [
|
|
3373
3374
|
_("label", null, [
|
|
3374
3375
|
_("input", {
|
|
@@ -3384,12 +3385,12 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3384
3385
|
])
|
|
3385
3386
|
])
|
|
3386
3387
|
])) : F("", !0),
|
|
3387
|
-
te(
|
|
3388
|
+
te(ci, {
|
|
3388
3389
|
multiple: d(M)(o.multiple, "multiple"),
|
|
3389
3390
|
label: o.ariaListLabel ?? o.label ?? d(ke)
|
|
3390
3391
|
}, {
|
|
3391
3392
|
default: V(() => [
|
|
3392
|
-
(f(!0),
|
|
3393
|
+
(f(!0), g(U, null, ge(m.value, (W, me) => (f(), J(hi, {
|
|
3393
3394
|
key: me,
|
|
3394
3395
|
type: o.multiple ? "checkbox" : "radio",
|
|
3395
3396
|
showDivider: W.showDivider,
|
|
@@ -3400,10 +3401,10 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3400
3401
|
checked: na(W.value),
|
|
3401
3402
|
disabled: W.disabled,
|
|
3402
3403
|
value: W.value,
|
|
3403
|
-
onChange: ($e) =>
|
|
3404
|
+
onChange: ($e) => Ge(W.value)
|
|
3404
3405
|
}, {
|
|
3405
3406
|
default: V(() => [
|
|
3406
|
-
W.isGroupTitle ? F("", !0) : (f(),
|
|
3407
|
+
W.isGroupTitle ? F("", !0) : (f(), g(U, { key: 0 }, [
|
|
3407
3408
|
C(S(Se(W)), 1)
|
|
3408
3409
|
], 64))
|
|
3409
3410
|
]),
|
|
@@ -3424,7 +3425,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3424
3425
|
onClick: (W) => Le("close")
|
|
3425
3426
|
}, {
|
|
3426
3427
|
default: V(() => [
|
|
3427
|
-
C(S(o.mobileCloseButtonText ?? d(
|
|
3428
|
+
C(S(o.mobileCloseButtonText ?? d(Pe)), 1)
|
|
3428
3429
|
]),
|
|
3429
3430
|
_: 1
|
|
3430
3431
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -3470,11 +3471,11 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3470
3471
|
]),
|
|
3471
3472
|
_: 1
|
|
3472
3473
|
}, 8, ["icon", "id"])) : F("", !0),
|
|
3473
|
-
|
|
3474
|
+
ze() ? (f(), J(ae, {
|
|
3474
3475
|
key: 2,
|
|
3475
3476
|
size: "small",
|
|
3476
3477
|
semantic: "successful",
|
|
3477
|
-
id:
|
|
3478
|
+
id: v.value
|
|
3478
3479
|
}, {
|
|
3479
3480
|
default: V(() => [
|
|
3480
3481
|
C(S(o.validMessage || d(fe)), 1)
|
|
@@ -3484,10 +3485,10 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3484
3485
|
te(ae, {
|
|
3485
3486
|
size: "small",
|
|
3486
3487
|
semantic: "critical",
|
|
3487
|
-
id:
|
|
3488
|
+
id: u.value
|
|
3488
3489
|
}, {
|
|
3489
3490
|
default: V(() => [
|
|
3490
|
-
C(S(
|
|
3491
|
+
C(S(h.value), 1)
|
|
3491
3492
|
]),
|
|
3492
3493
|
_: 1
|
|
3493
3494
|
}, 8, ["id"]),
|
|
@@ -3495,7 +3496,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3495
3496
|
], 10, yi);
|
|
3496
3497
|
};
|
|
3497
3498
|
}
|
|
3498
|
-
}), Di = ["id"], Fl = /* @__PURE__ */
|
|
3499
|
+
}), Di = ["id"], Fl = /* @__PURE__ */ q({
|
|
3499
3500
|
__name: "custom-select-form-field",
|
|
3500
3501
|
props: {
|
|
3501
3502
|
children: { default: void 0 },
|
|
@@ -3507,11 +3508,11 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3507
3508
|
},
|
|
3508
3509
|
setup(l) {
|
|
3509
3510
|
const a = l, i = n(null);
|
|
3510
|
-
return (e, t) => (f(),
|
|
3511
|
+
return (e, t) => (f(), g("summary", {
|
|
3511
3512
|
ref_key: "_ref",
|
|
3512
3513
|
ref: i,
|
|
3513
3514
|
id: e.id,
|
|
3514
|
-
class:
|
|
3515
|
+
class: P(d(z)("db-custom-select-form-field", a.class))
|
|
3515
3516
|
}, [
|
|
3516
3517
|
T(e.$slots, "default")
|
|
3517
3518
|
], 10, Di));
|
|
@@ -3523,7 +3524,7 @@ export {
|
|
|
3523
3524
|
xe as COLOR,
|
|
3524
3525
|
Oi as COLORS,
|
|
3525
3526
|
Wi as COLORS_SIMPLE,
|
|
3526
|
-
|
|
3527
|
+
Gi as COLOR_CONST,
|
|
3527
3528
|
Ze as COLOR_SIMPLE,
|
|
3528
3529
|
ul as DBAccordion,
|
|
3529
3530
|
Yt as DBAccordionItem,
|
|
@@ -3535,7 +3536,7 @@ export {
|
|
|
3535
3536
|
Dl as DBCustomSelect,
|
|
3536
3537
|
bi as DBCustomSelectDropdown,
|
|
3537
3538
|
Fl as DBCustomSelectFormField,
|
|
3538
|
-
|
|
3539
|
+
ci as DBCustomSelectList,
|
|
3539
3540
|
hi as DBCustomSelectListItem,
|
|
3540
3541
|
Zi as DBDivider,
|
|
3541
3542
|
Ya as DBDrawer,
|
|
@@ -3548,7 +3549,7 @@ export {
|
|
|
3548
3549
|
sl as DBNavigationItem,
|
|
3549
3550
|
ji as DBNotification,
|
|
3550
3551
|
tl as DBPage,
|
|
3551
|
-
|
|
3552
|
+
cl as DBPopover,
|
|
3552
3553
|
il as DBRadio,
|
|
3553
3554
|
ll as DBSection,
|
|
3554
3555
|
ol as DBSelect,
|
|
@@ -3557,18 +3558,18 @@ export {
|
|
|
3557
3558
|
Ft as DBTabItem,
|
|
3558
3559
|
ii as DBTabList,
|
|
3559
3560
|
oi as DBTabPanel,
|
|
3560
|
-
|
|
3561
|
-
|
|
3561
|
+
vl as DBTabs,
|
|
3562
|
+
Pt as DBTag,
|
|
3562
3563
|
nl as DBTextarea,
|
|
3563
3564
|
ei as DBTooltip,
|
|
3564
3565
|
_a as DEFAULT_BACK,
|
|
3565
3566
|
La as DEFAULT_BURGER_MENU,
|
|
3566
|
-
|
|
3567
|
+
Pe as DEFAULT_CLOSE_BUTTON,
|
|
3567
3568
|
je as DEFAULT_DATALIST_ID_SUFFIX,
|
|
3568
3569
|
Ta as DEFAULT_ICON,
|
|
3569
3570
|
we as DEFAULT_ID,
|
|
3570
3571
|
ie as DEFAULT_INVALID_MESSAGE,
|
|
3571
|
-
|
|
3572
|
+
ve as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
3572
3573
|
ke as DEFAULT_LABEL,
|
|
3573
3574
|
Xe as DEFAULT_LABEL_ID_SUFFIX,
|
|
3574
3575
|
wa as DEFAULT_MESSAGE,
|
|
@@ -3580,11 +3581,11 @@ export {
|
|
|
3580
3581
|
Ia as DEFAULT_SELECTED,
|
|
3581
3582
|
He as DEFAULT_SELECT_ID_SUFFIX,
|
|
3582
3583
|
fe as DEFAULT_VALID_MESSAGE,
|
|
3583
|
-
|
|
3584
|
+
ce as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
3584
3585
|
Aa as DEFAULT_VIEWPORT,
|
|
3585
3586
|
Vi as DENSITIES,
|
|
3586
3587
|
Qe as DENSITY,
|
|
3587
|
-
|
|
3588
|
+
Ui as DENSITY_CONST,
|
|
3588
3589
|
Ca as DESKTOP_VIEWPORT,
|
|
3589
3590
|
_l as EmphasisList,
|
|
3590
3591
|
gl as GapSpacingList,
|
|
@@ -3610,7 +3611,7 @@ export {
|
|
|
3610
3611
|
Il as ValidationList,
|
|
3611
3612
|
yl as WidthList,
|
|
3612
3613
|
Ye as addAttributeToChildren,
|
|
3613
|
-
|
|
3614
|
+
z as cls,
|
|
3614
3615
|
ee as delay,
|
|
3615
3616
|
M as getBoolean,
|
|
3616
3617
|
H as getBooleanAsString,
|
|
@@ -3624,6 +3625,6 @@ export {
|
|
|
3624
3625
|
ya as isInView,
|
|
3625
3626
|
Z as stringPropVisible,
|
|
3626
3627
|
Q as uuid,
|
|
3627
|
-
|
|
3628
|
-
|
|
3628
|
+
zi as visibleInVX,
|
|
3629
|
+
qi as visibleInVY
|
|
3629
3630
|
};
|