@db-ux/v-core-components 1.1.0 → 1.2.0
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/README.md +8 -3
- package/dist/components/accordion/accordion.vue.d.ts +1 -5
- package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -5
- package/dist/components/badge/badge.vue.d.ts +1 -5
- package/dist/components/brand/brand.vue.d.ts +1 -5
- package/dist/components/button/button.vue.d.ts +2 -6
- package/dist/components/card/card.vue.d.ts +2 -6
- package/dist/components/checkbox/checkbox.vue.d.ts +1 -5
- package/dist/components/divider/divider.vue.d.ts +2 -6
- package/dist/components/drawer/drawer.vue.d.ts +3 -8
- package/dist/components/header/header.vue.d.ts +1 -5
- package/dist/components/icon/icon.vue.d.ts +1 -5
- package/dist/components/infotext/infotext.vue.d.ts +1 -5
- package/dist/components/input/input.vue.d.ts +1 -5
- package/dist/components/link/link.vue.d.ts +1 -5
- package/dist/components/navigation/navigation.vue.d.ts +1 -5
- package/dist/components/navigation-item/model.d.ts +3 -2
- package/dist/components/navigation-item/navigation-item.vue.d.ts +2 -6
- package/dist/components/notification/notification.vue.d.ts +1 -5
- package/dist/components/page/model.d.ts +4 -0
- package/dist/components/page/page.vue.d.ts +2 -5
- package/dist/components/popover/popover.vue.d.ts +2 -6
- package/dist/components/radio/radio.vue.d.ts +3 -7
- package/dist/components/section/section.vue.d.ts +2 -6
- package/dist/components/select/select.vue.d.ts +1 -5
- package/dist/components/stack/stack.vue.d.ts +1 -5
- package/dist/components/switch/switch.vue.d.ts +1 -5
- package/dist/components/tab-item/tab-item.vue.d.ts +1 -5
- package/dist/components/tab-list/tab-list.vue.d.ts +1 -5
- package/dist/components/tab-panel/tab-panel.vue.d.ts +1 -5
- package/dist/components/tabs/tabs.vue.d.ts +3 -7
- package/dist/components/tag/tag.vue.d.ts +1 -5
- package/dist/components/textarea/textarea.vue.d.ts +1 -5
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -5
- package/dist/db-ux.es.js +1095 -1085
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +5 -5
- package/package.json +6 -6
package/dist/db-ux.es.js
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var j = (
|
|
4
|
-
import { defineComponent as
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var ye = (i, t, o) => t in i ? ge(i, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[t] = o;
|
|
3
|
+
var j = (i, t, o) => ye(i, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { defineComponent as A, ref as u, createElementBlock as g, openBlock as m, unref as f, normalizeClass as E, renderSlot as w, Fragment as S, createTextVNode as L, toDisplayString as k, createCommentVNode as M, createElementVNode as I, createBlock as X, withCtx as R, onMounted as U, watch as z, createVNode as O, renderList as ie, onUnmounted as Be } from "vue";
|
|
5
5
|
const G = () => {
|
|
6
|
-
var
|
|
6
|
+
var i, t;
|
|
7
7
|
if (typeof window < "u") {
|
|
8
|
-
if ((
|
|
8
|
+
if ((i = window.crypto) != null && i.randomUUID)
|
|
9
9
|
return window.crypto.randomUUID();
|
|
10
|
-
if ((
|
|
10
|
+
if ((t = window.crypto) != null && t.getRandomValues)
|
|
11
11
|
return window.crypto.getRandomValues(new Uint32Array(3)).join("-");
|
|
12
12
|
}
|
|
13
13
|
return Math.random().toString().substring(2);
|
|
14
|
-
}, re = (
|
|
15
|
-
const
|
|
16
|
-
Object.values(
|
|
17
|
-
e.setAttribute(
|
|
14
|
+
}, re = (i, t) => {
|
|
15
|
+
const o = i.children;
|
|
16
|
+
Object.values(o).forEach((e) => {
|
|
17
|
+
e.setAttribute(t.key, t.value), e.children.length > 0 && re(e, t);
|
|
18
18
|
});
|
|
19
|
-
},
|
|
20
|
-
let
|
|
21
|
-
for (const
|
|
22
|
-
if (
|
|
23
|
-
if (typeof
|
|
24
|
-
|
|
19
|
+
}, N = (...i) => {
|
|
20
|
+
let t = "";
|
|
21
|
+
for (const o of i)
|
|
22
|
+
if (o)
|
|
23
|
+
if (typeof o == "string")
|
|
24
|
+
t += `${o} `;
|
|
25
25
|
else
|
|
26
|
-
for (const e in
|
|
27
|
-
|
|
28
|
-
return
|
|
29
|
-
},
|
|
26
|
+
for (const e in o)
|
|
27
|
+
o[e] && (t += `${e} `);
|
|
28
|
+
return t.trim();
|
|
29
|
+
}, ut = (i) => {
|
|
30
30
|
const {
|
|
31
|
-
left:
|
|
32
|
-
right:
|
|
33
|
-
} =
|
|
31
|
+
left: t,
|
|
32
|
+
right: o
|
|
33
|
+
} = i.getBoundingClientRect(), {
|
|
34
34
|
innerWidth: e
|
|
35
35
|
} = window;
|
|
36
|
-
return
|
|
37
|
-
},
|
|
36
|
+
return t >= 0 && o <= e;
|
|
37
|
+
}, rt = (i) => {
|
|
38
38
|
const {
|
|
39
|
-
top:
|
|
40
|
-
bottom:
|
|
41
|
-
} =
|
|
39
|
+
top: t,
|
|
40
|
+
bottom: o
|
|
41
|
+
} = i.getBoundingClientRect(), {
|
|
42
42
|
innerHeight: e
|
|
43
43
|
} = window;
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
var
|
|
44
|
+
return t >= 0 && o <= e;
|
|
45
|
+
}, ke = (i) => {
|
|
46
|
+
var _;
|
|
47
47
|
const {
|
|
48
|
-
top:
|
|
49
|
-
bottom:
|
|
48
|
+
top: t,
|
|
49
|
+
bottom: o,
|
|
50
50
|
left: e,
|
|
51
51
|
right: a
|
|
52
|
-
} =
|
|
53
|
-
innerHeight:
|
|
52
|
+
} = i.getBoundingClientRect(), {
|
|
53
|
+
innerHeight: v,
|
|
54
54
|
innerWidth: l
|
|
55
55
|
} = window;
|
|
56
|
-
let p =
|
|
57
|
-
const B =
|
|
58
|
-
return
|
|
56
|
+
let p = t < 0, d = o > v, h = e < 0, n = a > l;
|
|
57
|
+
const B = i.hasAttribute("data-outside-vy"), $ = i.hasAttribute("data-outside-vx"), D = (_ = i == null ? void 0 : i.parentElement) == null ? void 0 : _.getBoundingClientRect();
|
|
58
|
+
return D && (B && (i.getAttribute("data-outside-vy") === "top" ? p = D.top - (o - D.bottom) < 0 : d = D.bottom + (D.top - t) > v), $ && (i.getAttribute("data-outside-vx") === "left" ? h = D.left - (a - D.right) < 0 : n = D.right + (D.left - e) > l)), {
|
|
59
59
|
outTop: p,
|
|
60
|
-
outBottom:
|
|
60
|
+
outBottom: d,
|
|
61
61
|
outLeft: h,
|
|
62
|
-
outRight:
|
|
62
|
+
outRight: n
|
|
63
63
|
};
|
|
64
|
-
},
|
|
64
|
+
}, ne = (i) => {
|
|
65
65
|
const {
|
|
66
|
-
outTop:
|
|
67
|
-
outBottom:
|
|
66
|
+
outTop: t,
|
|
67
|
+
outBottom: o,
|
|
68
68
|
outLeft: e,
|
|
69
69
|
outRight: a
|
|
70
|
-
} =
|
|
71
|
-
let
|
|
72
|
-
return
|
|
73
|
-
vy:
|
|
74
|
-
},
|
|
75
|
-
...
|
|
70
|
+
} = ke(i);
|
|
71
|
+
let v = {};
|
|
72
|
+
return t || o ? (v = {
|
|
73
|
+
vy: t ? "top" : "bottom"
|
|
74
|
+
}, i.setAttribute("data-outside-vy", v.vy)) : i.removeAttribute("data-outside-vy"), e || a ? (v = {
|
|
75
|
+
...v,
|
|
76
76
|
vx: a ? "right" : "left"
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
if (
|
|
80
|
-
return V(!
|
|
81
|
-
}, q = (
|
|
77
|
+
}, i.setAttribute("data-outside-vx", v.vx)) : i.removeAttribute("data-outside-vx"), v;
|
|
78
|
+
}, we = (i) => Array.isArray(i) && i.every((t) => typeof t == "string"), Ie = ["Mac", "iPhone", "iPad", "iPod"], Y = () => typeof window < "u" && Ie.some((i) => window.navigator.userAgent.includes(i)), H = (i, t) => new Promise(() => setTimeout(i, t)), V = (i) => i && String(i), P = (i) => {
|
|
79
|
+
if (i != null)
|
|
80
|
+
return V(!i);
|
|
81
|
+
}, q = (i, t) => t === void 0 ? !!i : t && i, _e = ["id", "type", "disabled", "aria-label", "data-icon", "data-hide-icon", "data-size", "data-state", "data-width", "data-variant", "data-no-text", "name", "value", "aria-describedby", "aria-expanded", "aria-pressed"], oe = /* @__PURE__ */ A({
|
|
82
82
|
__name: "button",
|
|
83
83
|
props: {
|
|
84
84
|
ariaexpanded: { type: Boolean, default: void 0 },
|
|
@@ -104,61 +104,61 @@ const G = () => {
|
|
|
104
104
|
showIcon: { type: Boolean, default: void 0 },
|
|
105
105
|
text: { default: void 0 }
|
|
106
106
|
},
|
|
107
|
-
setup(
|
|
108
|
-
const
|
|
107
|
+
setup(i) {
|
|
108
|
+
const t = i, o = u(null);
|
|
109
109
|
function e(a) {
|
|
110
|
-
|
|
110
|
+
t.onClick && t.onClick(a);
|
|
111
111
|
}
|
|
112
|
-
return (a,
|
|
112
|
+
return (a, v) => (m(), g("button", {
|
|
113
113
|
ref_key: "_ref",
|
|
114
|
-
ref:
|
|
114
|
+
ref: o,
|
|
115
115
|
id: a.id,
|
|
116
|
-
class:
|
|
116
|
+
class: E(f(N)("db-button", t.class)),
|
|
117
117
|
type: a.type || "button",
|
|
118
118
|
disabled: a.disabled,
|
|
119
119
|
"aria-label": a.label,
|
|
120
120
|
"data-icon": a.icon,
|
|
121
|
-
"data-hide-icon":
|
|
121
|
+
"data-hide-icon": f(P)(a.showIcon),
|
|
122
122
|
"data-size": a.size,
|
|
123
123
|
"data-state": a.state,
|
|
124
124
|
"data-width": a.width,
|
|
125
125
|
"data-variant": a.variant,
|
|
126
|
-
"data-no-text":
|
|
126
|
+
"data-no-text": f(V)(a.noText),
|
|
127
127
|
name: a.name,
|
|
128
128
|
value: a.value,
|
|
129
129
|
"aria-describedby": a.describedbyid,
|
|
130
130
|
"aria-expanded": a.ariaexpanded,
|
|
131
131
|
"aria-pressed": a.ariapressed,
|
|
132
|
-
onClick:
|
|
132
|
+
onClick: v[0] || (v[0] = async (l) => e(l))
|
|
133
133
|
}, [
|
|
134
|
-
a.text ? (m(), g(
|
|
135
|
-
L(
|
|
136
|
-
], 64)) :
|
|
137
|
-
], 10,
|
|
134
|
+
a.text ? (m(), g(S, { key: 0 }, [
|
|
135
|
+
L(k(a.text), 1)
|
|
136
|
+
], 64)) : w(a.$slots, "default", { key: 1 })
|
|
137
|
+
], 10, _e));
|
|
138
138
|
}
|
|
139
|
-
}), ee = "OVERWRITE_DEFAULT_ID", le = "LABEL SHOULD BE SET",
|
|
140
|
-
var
|
|
141
|
-
const
|
|
142
|
-
var pe = /* @__PURE__ */ ((
|
|
143
|
-
const
|
|
144
|
-
var me = /* @__PURE__ */ ((
|
|
145
|
-
const
|
|
139
|
+
}), ee = "OVERWRITE_DEFAULT_ID", le = "LABEL SHOULD BE SET", ce = " ", K = "-message", J = "-valid-message", Q = "-invalid-message", se = "-placeholder", ue = "-datalist", Z = "TODO: Add a validMessage", x = "TODO: Add an invalidMessage", $e = "Back", Le = "BurgerMenu", Ee = "brand", Ne = 4, ve = "Close Button", ct = "density", vt = "color";
|
|
140
|
+
var fe = /* @__PURE__ */ ((i) => (i.FUNCTIONAL = "functional", i.REGULAR = "regular", i.EXPRESSIVE = "expressive", i))(fe || {});
|
|
141
|
+
const ft = Object.entries(fe).map(([, i]) => i);
|
|
142
|
+
var pe = /* @__PURE__ */ ((i) => (i.PRIMARY = "primary", i))(pe || {}), he = /* @__PURE__ */ ((i) => (i.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", i.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", i.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", i.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", i.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", i.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", i.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", i.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", i.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", i.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", i.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", i.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", i.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", i.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", i.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", i.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", i.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", i.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", i.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", i.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", i.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", i.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", i.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", i.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", i.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", i.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", i.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", i.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", i.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", i.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", i))(he || {});
|
|
143
|
+
const pt = Object.entries(he).map(([, i]) => i), ht = Object.entries(pe).map(([, i]) => i);
|
|
144
|
+
var me = /* @__PURE__ */ ((i) => (i.CRITICAL = "critical", i.INFORMATIONAL = "informational", i.WARNING = "warning", i.SUCCESSFUL = "successful", i))(me || {});
|
|
145
|
+
const mt = Object.entries(me).map(([, i]) => i), Ae = {
|
|
146
146
|
width: 390,
|
|
147
147
|
height: 884
|
|
148
|
-
},
|
|
148
|
+
}, Fe = {
|
|
149
149
|
width: 1920,
|
|
150
150
|
height: 1280
|
|
151
|
-
},
|
|
151
|
+
}, bt = [{
|
|
152
152
|
name: "desktop",
|
|
153
|
-
...
|
|
153
|
+
...Fe
|
|
154
154
|
}, {
|
|
155
155
|
name: "tablet",
|
|
156
156
|
width: 768,
|
|
157
157
|
height: 1024
|
|
158
158
|
}, {
|
|
159
159
|
name: "mobile",
|
|
160
|
-
...
|
|
161
|
-
}],
|
|
160
|
+
...Ae
|
|
161
|
+
}], Te = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], Ce = { key: 0 }, Se = { key: 1 }, gt = /* @__PURE__ */ A({
|
|
162
162
|
__name: "notification",
|
|
163
163
|
props: {
|
|
164
164
|
ariaLive: { default: void 0 },
|
|
@@ -188,33 +188,33 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
188
188
|
showIcon: { type: Boolean, default: void 0 },
|
|
189
189
|
text: { default: void 0 }
|
|
190
190
|
},
|
|
191
|
-
setup(
|
|
192
|
-
const
|
|
191
|
+
setup(i) {
|
|
192
|
+
const t = i, o = u(null);
|
|
193
193
|
function e(a) {
|
|
194
|
-
|
|
194
|
+
t.onClose && t.onClose();
|
|
195
195
|
}
|
|
196
|
-
return (a,
|
|
196
|
+
return (a, v) => (m(), g("article", {
|
|
197
197
|
ref_key: "_ref",
|
|
198
|
-
ref:
|
|
198
|
+
ref: o,
|
|
199
199
|
id: a.id,
|
|
200
|
-
class:
|
|
200
|
+
class: E(f(N)("db-notification", t.class)),
|
|
201
201
|
"aria-live": a.ariaLive,
|
|
202
202
|
"data-semantic": a.semantic,
|
|
203
203
|
"data-variant": a.variant,
|
|
204
204
|
"data-icon": a.icon,
|
|
205
|
-
"data-hide-icon":
|
|
205
|
+
"data-hide-icon": f(P)(a.showIcon),
|
|
206
206
|
"data-link-variant": a.linkVariant
|
|
207
207
|
}, [
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
a.text ? (m(), g(
|
|
212
|
-
L(
|
|
213
|
-
], 64)) :
|
|
208
|
+
w(a.$slots, "image"),
|
|
209
|
+
f(q)(a.headline, a.showHeadline) ? (m(), g("header", Ce, k(a.headline), 1)) : M("", !0),
|
|
210
|
+
I("p", null, [
|
|
211
|
+
a.text ? (m(), g(S, { key: 0 }, [
|
|
212
|
+
L(k(a.text), 1)
|
|
213
|
+
], 64)) : w(a.$slots, "default", { key: 1 })
|
|
214
214
|
]),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
a.closeable ? (m(), X(
|
|
215
|
+
f(q)(a.timestamp, a.showTimestamp) ? (m(), g("span", Se, k(a.timestamp), 1)) : M("", !0),
|
|
216
|
+
w(a.$slots, "link"),
|
|
217
|
+
a.closeable ? (m(), X(oe, {
|
|
218
218
|
key: 2,
|
|
219
219
|
icon: "cross",
|
|
220
220
|
variant: "ghost",
|
|
@@ -223,14 +223,14 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
223
223
|
noText: !0,
|
|
224
224
|
onClick: (l) => e()
|
|
225
225
|
}, {
|
|
226
|
-
default:
|
|
227
|
-
L(
|
|
226
|
+
default: R(() => [
|
|
227
|
+
L(k(a.closeButtonText ?? f(ve)), 1)
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
|
-
}, 8, ["id", "onClick"])) :
|
|
231
|
-
], 10,
|
|
230
|
+
}, 8, ["id", "onClick"])) : M("", !0)
|
|
231
|
+
], 10, Te));
|
|
232
232
|
}
|
|
233
|
-
}),
|
|
233
|
+
}), De = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], yt = /* @__PURE__ */ A({
|
|
234
234
|
__name: "badge",
|
|
235
235
|
props: {
|
|
236
236
|
placement: { default: void 0 },
|
|
@@ -246,43 +246,43 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
246
246
|
emphasis: { default: void 0 },
|
|
247
247
|
text: { default: void 0 }
|
|
248
248
|
},
|
|
249
|
-
setup(
|
|
250
|
-
const
|
|
251
|
-
return
|
|
252
|
-
|
|
253
|
-
}),
|
|
254
|
-
() => [e.value,
|
|
249
|
+
setup(i) {
|
|
250
|
+
const t = i, o = u(!1), e = u(null);
|
|
251
|
+
return U(() => {
|
|
252
|
+
o.value = !0;
|
|
253
|
+
}), z(
|
|
254
|
+
() => [e.value, o.value],
|
|
255
255
|
() => {
|
|
256
256
|
var a;
|
|
257
|
-
if (e.value &&
|
|
258
|
-
let
|
|
259
|
-
|
|
257
|
+
if (e.value && o.value && (a = t.placement) != null && a.startsWith("corner")) {
|
|
258
|
+
let v = e.value.parentElement;
|
|
259
|
+
v && v.localName.includes("badge") && (v = v.parentElement), v && v.setAttribute("data-has-badge", "true");
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
immediate: !0,
|
|
264
264
|
flush: "post"
|
|
265
265
|
}
|
|
266
|
-
), (a,
|
|
266
|
+
), (a, v) => {
|
|
267
267
|
var l;
|
|
268
268
|
return m(), g("span", {
|
|
269
269
|
ref_key: "_ref",
|
|
270
270
|
ref: e,
|
|
271
271
|
id: a.id,
|
|
272
|
-
class:
|
|
272
|
+
class: E(f(N)("db-badge", t.class)),
|
|
273
273
|
"data-semantic": a.semantic,
|
|
274
274
|
"data-size": a.size,
|
|
275
275
|
"data-emphasis": a.emphasis,
|
|
276
276
|
"data-placement": a.placement,
|
|
277
|
-
"data-label": ((l = a.placement) == null ? void 0 : l.startsWith("corner")) && (a.label ??
|
|
277
|
+
"data-label": ((l = a.placement) == null ? void 0 : l.startsWith("corner")) && (a.label ?? f(le))
|
|
278
278
|
}, [
|
|
279
|
-
a.text ? (m(), g(
|
|
280
|
-
L(
|
|
281
|
-
], 64)) :
|
|
282
|
-
], 10,
|
|
279
|
+
a.text ? (m(), g(S, { key: 0 }, [
|
|
280
|
+
L(k(a.text), 1)
|
|
281
|
+
], 64)) : w(a.$slots, "default", { key: 1 })
|
|
282
|
+
], 10, De);
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), Me = ["data-icon", "data-hide-icon", "id"], Bt = /* @__PURE__ */ A({
|
|
286
286
|
__name: "brand",
|
|
287
287
|
props: {
|
|
288
288
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -296,22 +296,22 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
296
296
|
showIcon: { type: Boolean, default: void 0 },
|
|
297
297
|
text: { default: void 0 }
|
|
298
298
|
},
|
|
299
|
-
setup(
|
|
300
|
-
const
|
|
299
|
+
setup(i) {
|
|
300
|
+
const t = i, o = u(null);
|
|
301
301
|
return (e, a) => (m(), g("div", {
|
|
302
302
|
ref_key: "_ref",
|
|
303
|
-
ref:
|
|
304
|
-
"data-icon": e.hideLogo ? "none" : e.icon ??
|
|
305
|
-
"data-hide-icon":
|
|
303
|
+
ref: o,
|
|
304
|
+
"data-icon": e.hideLogo ? "none" : e.icon ?? f(Ee),
|
|
305
|
+
"data-hide-icon": f(P)(e.showIcon),
|
|
306
306
|
id: e.id,
|
|
307
|
-
class:
|
|
307
|
+
class: E(f(N)("db-brand", t.class))
|
|
308
308
|
}, [
|
|
309
|
-
e.text ? (m(), g(
|
|
310
|
-
L(
|
|
311
|
-
], 64)) :
|
|
312
|
-
], 10,
|
|
309
|
+
e.text ? (m(), g(S, { key: 0 }, [
|
|
310
|
+
L(k(e.text), 1)
|
|
311
|
+
], 64)) : w(e.$slots, "default", { key: 1 })
|
|
312
|
+
], 10, Me));
|
|
313
313
|
}
|
|
314
|
-
}),
|
|
314
|
+
}), ze = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], kt = /* @__PURE__ */ A({
|
|
315
315
|
__name: "card",
|
|
316
316
|
props: {
|
|
317
317
|
behavior: { default: void 0 },
|
|
@@ -325,29 +325,29 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
325
325
|
onClick: { type: Function, default: void 0 },
|
|
326
326
|
spacing: { default: void 0 }
|
|
327
327
|
},
|
|
328
|
-
setup(
|
|
329
|
-
const
|
|
328
|
+
setup(i) {
|
|
329
|
+
const t = i, o = u(null);
|
|
330
330
|
function e(a) {
|
|
331
|
-
|
|
331
|
+
t.onClick && t.onClick(a);
|
|
332
332
|
}
|
|
333
|
-
return (a,
|
|
333
|
+
return (a, v) => (m(), g("div", {
|
|
334
334
|
ref_key: "_ref",
|
|
335
|
-
ref:
|
|
335
|
+
ref: o,
|
|
336
336
|
id: a.id,
|
|
337
|
-
class:
|
|
337
|
+
class: E(f(N)("db-card", t.class)),
|
|
338
338
|
"data-behavior": a.behavior,
|
|
339
339
|
"data-elevation-level": a.elevationLevel,
|
|
340
340
|
"data-spacing": a.spacing,
|
|
341
341
|
role: a.behavior === "interactive" ? "button" : void 0,
|
|
342
342
|
tabIndex: a.behavior === "interactive" ? 0 : void 0,
|
|
343
|
-
onClick:
|
|
343
|
+
onClick: v[0] || (v[0] = async (l) => e(l))
|
|
344
344
|
}, [
|
|
345
|
-
|
|
346
|
-
], 10,
|
|
345
|
+
w(a.$slots, "default")
|
|
346
|
+
], 10, ze));
|
|
347
347
|
}
|
|
348
|
-
}), ae = (
|
|
349
|
-
|
|
350
|
-
},
|
|
348
|
+
}), ae = (i, t, o = "value") => {
|
|
349
|
+
i(`update:${o}`, t.target[o]);
|
|
350
|
+
}, Re = ["id", "data-icon", "data-semantic", "data-size", "data-hide-icon-before"], W = /* @__PURE__ */ A({
|
|
351
351
|
__name: "infotext",
|
|
352
352
|
props: {
|
|
353
353
|
children: { default: void 0 },
|
|
@@ -362,27 +362,27 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
362
362
|
showIcon: { type: Boolean, default: void 0 },
|
|
363
363
|
text: { default: void 0 }
|
|
364
364
|
},
|
|
365
|
-
setup(
|
|
366
|
-
const
|
|
365
|
+
setup(i) {
|
|
366
|
+
const t = i, o = u(null);
|
|
367
367
|
return (e, a) => (m(), g("span", {
|
|
368
368
|
ref_key: "_ref",
|
|
369
|
-
ref:
|
|
369
|
+
ref: o,
|
|
370
370
|
id: e.id,
|
|
371
|
-
class:
|
|
371
|
+
class: E(f(N)("db-infotext", t.class)),
|
|
372
372
|
"data-icon": e.icon,
|
|
373
373
|
"data-semantic": e.semantic,
|
|
374
374
|
"data-size": e.size,
|
|
375
|
-
"data-hide-icon-before":
|
|
375
|
+
"data-hide-icon-before": f(P)(e.showIcon ?? !0)
|
|
376
376
|
}, [
|
|
377
|
-
e.text ? (m(), g(
|
|
378
|
-
L(
|
|
379
|
-
], 64)) :
|
|
380
|
-
], 10,
|
|
377
|
+
e.text ? (m(), g(S, { key: 0 }, [
|
|
378
|
+
L(k(e.text), 1)
|
|
379
|
+
], 64)) : w(e.$slots, "default", { key: 1 })
|
|
380
|
+
], 10, Re));
|
|
381
381
|
}
|
|
382
|
-
}),
|
|
382
|
+
}), Ue = ["data-size", "data-hide-label"], Pe = ["for"], Ve = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Ge = {
|
|
383
383
|
"data-visually-hidden": "true",
|
|
384
384
|
role: "status"
|
|
385
|
-
},
|
|
385
|
+
}, wt = /* @__PURE__ */ A({
|
|
386
386
|
__name: "checkbox",
|
|
387
387
|
props: {
|
|
388
388
|
indeterminate: { type: Boolean, default: void 0 },
|
|
@@ -418,25 +418,25 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
418
418
|
size: { default: void 0 }
|
|
419
419
|
},
|
|
420
420
|
emits: ["update:checked"],
|
|
421
|
-
setup(
|
|
422
|
-
const
|
|
423
|
-
|
|
421
|
+
setup(i, { emit: t }) {
|
|
422
|
+
const o = t, e = i, a = u(!1), v = u(void 0), l = u(void 0), p = u(void 0), d = u(void 0), h = u(""), n = u(""), B = u(null);
|
|
423
|
+
U(() => {
|
|
424
424
|
a.value = !0;
|
|
425
|
-
const
|
|
426
|
-
|
|
427
|
-
}),
|
|
428
|
-
() => [
|
|
425
|
+
const c = e.id ?? `checkbox-${G()}`;
|
|
426
|
+
v.value = c, l.value = c + K, p.value = c + J, d.value = c + Q;
|
|
427
|
+
}), z(
|
|
428
|
+
() => [v.value],
|
|
429
429
|
() => {
|
|
430
|
-
if (
|
|
431
|
-
const
|
|
432
|
-
l.value =
|
|
430
|
+
if (v.value) {
|
|
431
|
+
const c = v.value + K;
|
|
432
|
+
l.value = c, p.value = v.value + J, d.value = v.value + Q, q(e.message, e.showMessage) && (h.value = c);
|
|
433
433
|
}
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
436
|
immediate: !0,
|
|
437
437
|
flush: "post"
|
|
438
438
|
}
|
|
439
|
-
),
|
|
439
|
+
), z(
|
|
440
440
|
() => [a.value, B.value, e.indeterminate],
|
|
441
441
|
() => {
|
|
442
442
|
B.value && e.indeterminate !== void 0 && (B.value.indeterminate = e.indeterminate);
|
|
@@ -445,7 +445,7 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
445
445
|
immediate: !0,
|
|
446
446
|
flush: "post"
|
|
447
447
|
}
|
|
448
|
-
),
|
|
448
|
+
), z(
|
|
449
449
|
() => [a.value, B.value, e.checked],
|
|
450
450
|
() => {
|
|
451
451
|
a.value && B.value && (e.checked != null && (B.value.checked = e.checked), a.value = !1);
|
|
@@ -455,81 +455,81 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
455
455
|
flush: "post"
|
|
456
456
|
}
|
|
457
457
|
);
|
|
458
|
-
function
|
|
459
|
-
var
|
|
460
|
-
e.onChange && e.onChange(
|
|
458
|
+
function $(c) {
|
|
459
|
+
var s, y, r;
|
|
460
|
+
e.onChange && e.onChange(c), e.change && e.change(c), ae(o, c, "checked"), !((s = B.value) != null && s.validity.valid) || e.validation === "invalid" ? (h.value = d.value, Y() && (n.value = e.invalidMessage ?? ((y = B.value) == null ? void 0 : y.validationMessage) ?? x, H(() => n.value = "", 1e3))) : e.validation === "valid" || (r = B.value) != null && r.validity.valid && e.required ? (h.value = p.value, Y() && (n.value = e.validMessage ?? Z, H(() => n.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = l.value : h.value = "";
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
e.onBlur && e.onBlur(
|
|
462
|
+
function D(c) {
|
|
463
|
+
e.onBlur && e.onBlur(c), e.blur && e.blur(c);
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
e.onFocus && e.onFocus(
|
|
465
|
+
function _(c) {
|
|
466
|
+
e.onFocus && e.onFocus(c), e.focus && e.focus(c);
|
|
467
467
|
}
|
|
468
|
-
return (
|
|
469
|
-
class:
|
|
470
|
-
"data-size":
|
|
471
|
-
"data-hide-label":
|
|
468
|
+
return (c, s) => (m(), g("div", {
|
|
469
|
+
class: E(f(N)("db-checkbox", e.class)),
|
|
470
|
+
"data-size": c.size,
|
|
471
|
+
"data-hide-label": f(P)(c.showLabel)
|
|
472
472
|
}, [
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
I("label", { for: v.value }, [
|
|
474
|
+
I("input", {
|
|
475
475
|
type: "checkbox",
|
|
476
|
-
"aria-invalid":
|
|
477
|
-
"data-custom-validity":
|
|
476
|
+
"aria-invalid": c.validation === "invalid",
|
|
477
|
+
"data-custom-validity": c.validation,
|
|
478
478
|
ref_key: "_ref",
|
|
479
479
|
ref: B,
|
|
480
|
-
id:
|
|
481
|
-
name:
|
|
482
|
-
checked:
|
|
483
|
-
disabled:
|
|
484
|
-
value:
|
|
485
|
-
required:
|
|
486
|
-
onChange:
|
|
487
|
-
onBlur:
|
|
488
|
-
onFocus:
|
|
480
|
+
id: v.value,
|
|
481
|
+
name: c.name,
|
|
482
|
+
checked: c.checked,
|
|
483
|
+
disabled: c.disabled,
|
|
484
|
+
value: c.value,
|
|
485
|
+
required: c.required,
|
|
486
|
+
onChange: s[0] || (s[0] = async (y) => $(y)),
|
|
487
|
+
onBlur: s[1] || (s[1] = async (y) => D(y)),
|
|
488
|
+
onFocus: s[2] || (s[2] = async (y) => _(y)),
|
|
489
489
|
"aria-describedby": h.value
|
|
490
|
-
}, null, 40,
|
|
491
|
-
|
|
492
|
-
L(
|
|
493
|
-
], 64)) :
|
|
494
|
-
], 8,
|
|
495
|
-
|
|
490
|
+
}, null, 40, Ve),
|
|
491
|
+
c.label ? (m(), g(S, { key: 0 }, [
|
|
492
|
+
L(k(c.label), 1)
|
|
493
|
+
], 64)) : w(c.$slots, "default", { key: 1 })
|
|
494
|
+
], 8, Pe),
|
|
495
|
+
f(q)(c.message, c.showMessage) ? (m(), X(W, {
|
|
496
496
|
key: 0,
|
|
497
497
|
size: "small",
|
|
498
|
-
icon:
|
|
498
|
+
icon: c.messageIcon,
|
|
499
499
|
id: l.value
|
|
500
500
|
}, {
|
|
501
|
-
default:
|
|
502
|
-
L(
|
|
501
|
+
default: R(() => [
|
|
502
|
+
L(k(c.message), 1)
|
|
503
503
|
]),
|
|
504
504
|
_: 1
|
|
505
|
-
}, 8, ["icon", "id"])) :
|
|
505
|
+
}, 8, ["icon", "id"])) : M("", !0),
|
|
506
506
|
O(W, {
|
|
507
507
|
size: "small",
|
|
508
508
|
semantic: "successful",
|
|
509
509
|
id: p.value
|
|
510
510
|
}, {
|
|
511
|
-
default:
|
|
512
|
-
L(
|
|
511
|
+
default: R(() => [
|
|
512
|
+
L(k(c.validMessage ?? f(Z)), 1)
|
|
513
513
|
]),
|
|
514
514
|
_: 1
|
|
515
515
|
}, 8, ["id"]),
|
|
516
516
|
O(W, {
|
|
517
517
|
size: "small",
|
|
518
518
|
semantic: "critical",
|
|
519
|
-
id:
|
|
519
|
+
id: d.value
|
|
520
520
|
}, {
|
|
521
|
-
default:
|
|
522
|
-
var
|
|
521
|
+
default: R(() => {
|
|
522
|
+
var y;
|
|
523
523
|
return [
|
|
524
|
-
L(
|
|
524
|
+
L(k(c.invalidMessage ?? ((y = B.value) == null ? void 0 : y.validationMessage) ?? f(x)), 1)
|
|
525
525
|
];
|
|
526
526
|
}),
|
|
527
527
|
_: 1
|
|
528
528
|
}, 8, ["id"]),
|
|
529
|
-
|
|
530
|
-
], 10,
|
|
529
|
+
I("span", Ge, k(n.value), 1)
|
|
530
|
+
], 10, Ue));
|
|
531
531
|
}
|
|
532
|
-
}),
|
|
532
|
+
}), qe = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], It = /* @__PURE__ */ A({
|
|
533
533
|
__name: "divider",
|
|
534
534
|
props: {
|
|
535
535
|
margin: { default: void 0 },
|
|
@@ -543,20 +543,20 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
543
543
|
emphasis: { default: void 0 },
|
|
544
544
|
width: { default: void 0 }
|
|
545
545
|
},
|
|
546
|
-
setup(
|
|
547
|
-
const
|
|
546
|
+
setup(i) {
|
|
547
|
+
const t = i, o = u(null);
|
|
548
548
|
return (e, a) => (m(), g("div", {
|
|
549
549
|
ref_key: "_ref",
|
|
550
|
-
ref:
|
|
550
|
+
ref: o,
|
|
551
551
|
id: e.id,
|
|
552
552
|
"data-margin": e.margin,
|
|
553
553
|
"data-variant": e.variant,
|
|
554
554
|
"data-emphasis": e.emphasis,
|
|
555
555
|
"data-width": e.width,
|
|
556
|
-
class:
|
|
557
|
-
}, null, 10,
|
|
556
|
+
class: E(f(N)("db-divider", t.class))
|
|
557
|
+
}, null, 10, qe));
|
|
558
558
|
}
|
|
559
|
-
}),
|
|
559
|
+
}), Oe = ["id", "data-backdrop", "data-variant"], We = ["data-spacing", "data-width", "data-direction", "data-rounded"], Xe = { class: "db-drawer-header" }, He = { class: "db-drawer-header-text" }, je = { class: "db-drawer-content" }, Ye = /* @__PURE__ */ A({
|
|
560
560
|
__name: "drawer",
|
|
561
561
|
props: {
|
|
562
562
|
backdrop: { default: void 0 },
|
|
@@ -577,14 +577,14 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
577
577
|
width: { default: void 0 },
|
|
578
578
|
spacing: { default: void 0 }
|
|
579
579
|
},
|
|
580
|
-
setup(
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}),
|
|
585
|
-
() => [
|
|
580
|
+
setup(i) {
|
|
581
|
+
const t = i, o = u(null), e = u(null);
|
|
582
|
+
U(() => {
|
|
583
|
+
v();
|
|
584
|
+
}), z(
|
|
585
|
+
() => [t.open],
|
|
586
586
|
() => {
|
|
587
|
-
|
|
587
|
+
v();
|
|
588
588
|
},
|
|
589
589
|
{
|
|
590
590
|
immediate: !0,
|
|
@@ -592,68 +592,68 @@ const gn = Object.entries(me).map(([, t]) => t), Ne = {
|
|
|
592
592
|
}
|
|
593
593
|
);
|
|
594
594
|
function a(l) {
|
|
595
|
-
l.key === "Escape" && l.preventDefault(), (l === "close" || l.key === "Escape" || l.target.nodeName === "DIALOG" && l.type === "click" &&
|
|
595
|
+
l.key === "Escape" && l.preventDefault(), (l === "close" || l.key === "Escape" || l.target.nodeName === "DIALOG" && l.type === "click" && t.backdrop !== "none") && t.onClose && t.onClose(l);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
|
|
597
|
+
function v() {
|
|
598
|
+
o.value && (t.open && !o.value.open && (e.value && (e.value.hidden = !1), t.backdrop === "none" || t.variant === "inside" ? o.value.show() : o.value.showModal()), !t.open && o.value.open && (e.value && (e.value.hidden = !0), H(() => {
|
|
599
599
|
var l;
|
|
600
|
-
e.value && (e.value.hidden = !1), (l =
|
|
600
|
+
e.value && (e.value.hidden = !1), (l = o.value) == null || l.close();
|
|
601
601
|
}, 401)));
|
|
602
602
|
}
|
|
603
603
|
return (l, p) => (m(), g("dialog", {
|
|
604
604
|
class: "db-drawer",
|
|
605
605
|
id: l.id,
|
|
606
606
|
ref_key: "_ref",
|
|
607
|
-
ref:
|
|
608
|
-
onClick: p[0] || (p[0] = async (
|
|
609
|
-
a(
|
|
607
|
+
ref: o,
|
|
608
|
+
onClick: p[0] || (p[0] = async (d) => {
|
|
609
|
+
a(d);
|
|
610
610
|
}),
|
|
611
|
-
onKeydown: p[1] || (p[1] = async (
|
|
611
|
+
onKeydown: p[1] || (p[1] = async (d) => a(d)),
|
|
612
612
|
"data-backdrop": l.backdrop,
|
|
613
613
|
"data-variant": l.variant
|
|
614
614
|
}, [
|
|
615
|
-
|
|
615
|
+
I("article", {
|
|
616
616
|
ref_key: "dialogContainerRef",
|
|
617
617
|
ref: e,
|
|
618
|
-
class:
|
|
618
|
+
class: E(f(N)("db-drawer-container", t.class)),
|
|
619
619
|
"data-spacing": l.spacing,
|
|
620
620
|
"data-width": l.width,
|
|
621
621
|
"data-direction": l.direction,
|
|
622
622
|
"data-rounded": l.rounded
|
|
623
623
|
}, [
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
624
|
+
I("header", Xe, [
|
|
625
|
+
I("div", He, [
|
|
626
|
+
w(l.$slots, "drawer-header")
|
|
627
627
|
]),
|
|
628
|
-
O(
|
|
628
|
+
O(oe, {
|
|
629
629
|
class: "button-close-drawer",
|
|
630
630
|
icon: "cross",
|
|
631
631
|
variant: "ghost",
|
|
632
632
|
id: l.closeButtonId,
|
|
633
633
|
noText: !0,
|
|
634
|
-
onClick: (
|
|
634
|
+
onClick: (d) => a("close")
|
|
635
635
|
}, {
|
|
636
|
-
default:
|
|
637
|
-
L(
|
|
636
|
+
default: R(() => [
|
|
637
|
+
L(k(l.closeButtonText ?? f(ve)), 1)
|
|
638
638
|
]),
|
|
639
639
|
_: 1
|
|
640
640
|
}, 8, ["id", "onClick"])
|
|
641
641
|
]),
|
|
642
|
-
|
|
643
|
-
|
|
642
|
+
I("div", je, [
|
|
643
|
+
w(l.$slots, "default")
|
|
644
644
|
])
|
|
645
|
-
], 10,
|
|
646
|
-
], 40,
|
|
645
|
+
], 10, We)
|
|
646
|
+
], 40, Oe));
|
|
647
647
|
}
|
|
648
|
-
}),
|
|
649
|
-
var
|
|
648
|
+
}), be = (i) => {
|
|
649
|
+
var o, e;
|
|
650
650
|
const {
|
|
651
|
-
target:
|
|
652
|
-
} =
|
|
653
|
-
return !!(!((
|
|
651
|
+
target: t
|
|
652
|
+
} = i;
|
|
653
|
+
return !!(!((o = t == null ? void 0 : t.classList) != null && o.contains("db-navigation-item-expand-button")) && ((e = t == null ? void 0 : t.parentElement) != null && e.classList.contains("db-navigation-item")));
|
|
654
654
|
};
|
|
655
655
|
class Ke {
|
|
656
|
-
constructor(
|
|
656
|
+
constructor(t, o) {
|
|
657
657
|
j(this, "element");
|
|
658
658
|
j(this, "subNavigation");
|
|
659
659
|
j(this, "parentSubNavigation", null);
|
|
@@ -662,25 +662,25 @@ class Ke {
|
|
|
662
662
|
j(this, "mouseX", 0);
|
|
663
663
|
j(this, "mouseY", 0);
|
|
664
664
|
var e;
|
|
665
|
-
this.element =
|
|
665
|
+
this.element = t, this.subNavigation = o, !(!this.element || !this.subNavigation) && (this.parentSubNavigation = (e = this.element) == null ? void 0 : e.closest(".db-sub-navigation"), this.parentSubNavigation && !this.element.closest(".db-drawer") && this.init());
|
|
666
666
|
}
|
|
667
667
|
init() {
|
|
668
|
-
var
|
|
669
|
-
const
|
|
670
|
-
(e = this.element) == null || e.style.setProperty("--db-navigation-item-inline-size", `${
|
|
668
|
+
var o, e;
|
|
669
|
+
const t = ((o = this.parentSubNavigation) == null ? void 0 : o.getBoundingClientRect().width) ?? 0;
|
|
670
|
+
(e = this.element) == null || e.style.setProperty("--db-navigation-item-inline-size", `${t}px`), this.initialized = !0;
|
|
671
671
|
}
|
|
672
672
|
enableFollow() {
|
|
673
673
|
var a;
|
|
674
674
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation)
|
|
675
675
|
return;
|
|
676
|
-
const
|
|
676
|
+
const t = ne(this.subNavigation), o = this.element.getBoundingClientRect(), e = ((a = this.parentSubNavigation) == null ? void 0 : a.getBoundingClientRect().width) ?? 0;
|
|
677
677
|
this.triangleData = {
|
|
678
|
-
itemRect:
|
|
678
|
+
itemRect: o,
|
|
679
679
|
parentElementWidth: e,
|
|
680
680
|
subNavigationHeight: this.subNavigation.getBoundingClientRect().height,
|
|
681
|
-
padding: (e -
|
|
682
|
-
outsideVX:
|
|
683
|
-
outsideVY:
|
|
681
|
+
padding: (e - o.width) / 2,
|
|
682
|
+
outsideVX: t.vx,
|
|
683
|
+
outsideVY: t.vy
|
|
684
684
|
};
|
|
685
685
|
}
|
|
686
686
|
disableFollow() {
|
|
@@ -691,19 +691,19 @@ class Ke {
|
|
|
691
691
|
}
|
|
692
692
|
getTriangleTipY() {
|
|
693
693
|
if (!this.triangleData) return 0;
|
|
694
|
-
const
|
|
695
|
-
return this.triangleData.outsideVY === "bottom" ?
|
|
694
|
+
const t = Math.max(Math.min(this.mouseY, this.triangleData.itemRect.height), 0) + this.triangleData.padding;
|
|
695
|
+
return this.triangleData.outsideVY === "bottom" ? t + (this.triangleData.subNavigationHeight - this.triangleData.padding * 2 - this.triangleData.itemRect.height) : t;
|
|
696
696
|
}
|
|
697
697
|
hasMouseEnteredSubNavigation() {
|
|
698
698
|
if (!this.triangleData)
|
|
699
699
|
return !1;
|
|
700
|
-
const
|
|
701
|
-
return !!(
|
|
700
|
+
const t = this.triangleData.outsideVX === "right";
|
|
701
|
+
return !!(t && this.mouseX < -1 * this.triangleData.padding || !t && this.mouseX > this.triangleData.parentElementWidth - this.triangleData.padding);
|
|
702
702
|
}
|
|
703
|
-
getTriangleCoordinates(
|
|
703
|
+
getTriangleCoordinates(t) {
|
|
704
704
|
if (!this.triangleData)
|
|
705
705
|
return;
|
|
706
|
-
if (
|
|
706
|
+
if (t === "fill-gap") {
|
|
707
707
|
const l = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, p = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
708
708
|
return {
|
|
709
709
|
lb: `${p} ${l}`,
|
|
@@ -712,23 +712,23 @@ class Ke {
|
|
|
712
712
|
rb: `100% ${l}`
|
|
713
713
|
};
|
|
714
714
|
}
|
|
715
|
-
const
|
|
715
|
+
const o = this.getTriangleTipX(), e = this.getTriangleTipY(), a = `${o}px ${e}px`, v = `${o}px ${e}px`;
|
|
716
716
|
return {
|
|
717
717
|
lb: a,
|
|
718
|
-
lt:
|
|
718
|
+
lt: v,
|
|
719
719
|
rt: "100% 0",
|
|
720
720
|
rb: "100% 100%"
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
followByMouseEvent(
|
|
723
|
+
followByMouseEvent(t) {
|
|
724
724
|
if (!this.initialized || !this.triangleData || !this.element || !this.subNavigation)
|
|
725
725
|
return;
|
|
726
|
-
this.mouseX =
|
|
727
|
-
const
|
|
728
|
-
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`),
|
|
726
|
+
this.mouseX = t.clientX - this.triangleData.itemRect.left, this.mouseY = t.clientY - this.triangleData.itemRect.top;
|
|
727
|
+
const o = this.hasMouseEnteredSubNavigation(), e = this.getTriangleCoordinates(o ? "fill-gap" : "safe-triangle");
|
|
728
|
+
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), o && (this.triangleData = void 0));
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-header-drawer-navigation" }, Ze = { class: "db-header-meta-navigation" }, xe = { class: "db-header-secondary-action" }, ea = { class: "db-header-meta-navigation" }, aa = { class: "db-header-navigation-bar" },
|
|
731
|
+
const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-header-drawer-navigation" }, Ze = { class: "db-header-meta-navigation" }, xe = { class: "db-header-secondary-action" }, ea = { class: "db-header-meta-navigation" }, aa = { class: "db-header-navigation-bar" }, ta = { class: "db-header-brand-container" }, ia = { class: "db-header-navigation-container" }, oa = { class: "db-header-navigation" }, da = { class: "db-header-primary-action" }, la = { class: "db-header-action-container" }, na = { class: "db-header-burger-menu-container" }, sa = { class: "db-header-secondary-action" }, _t = /* @__PURE__ */ A({
|
|
732
732
|
__name: "header",
|
|
733
733
|
props: {
|
|
734
734
|
brand: {},
|
|
@@ -747,16 +747,16 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
747
747
|
onToggle: { type: Function, default: void 0 },
|
|
748
748
|
width: { default: void 0 }
|
|
749
749
|
},
|
|
750
|
-
setup(
|
|
751
|
-
const
|
|
752
|
-
|
|
753
|
-
e.value = !0,
|
|
754
|
-
}),
|
|
750
|
+
setup(i) {
|
|
751
|
+
const t = i, o = u(ee), e = u(!1), a = u(!1), v = u(null);
|
|
752
|
+
U(() => {
|
|
753
|
+
e.value = !0, o.value = t.id || "header-" + G();
|
|
754
|
+
}), z(
|
|
755
755
|
() => [e.value],
|
|
756
756
|
() => {
|
|
757
|
-
if (e.value && document &&
|
|
758
|
-
const
|
|
759
|
-
|
|
757
|
+
if (e.value && document && o.value && t.forceMobile) {
|
|
758
|
+
const d = document.getElementById(o.value);
|
|
759
|
+
d && re(d, {
|
|
760
760
|
key: "data-force-mobile",
|
|
761
761
|
value: "true"
|
|
762
762
|
}), a.value = !0;
|
|
@@ -768,82 +768,82 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
768
768
|
}
|
|
769
769
|
);
|
|
770
770
|
function l() {
|
|
771
|
-
|
|
771
|
+
t.onToggle && t.onToggle(!t.drawerOpen);
|
|
772
772
|
}
|
|
773
|
-
function p(
|
|
774
|
-
|
|
773
|
+
function p(d) {
|
|
774
|
+
be(d) && l();
|
|
775
775
|
}
|
|
776
|
-
return (
|
|
776
|
+
return (d, h) => (m(), g("header", {
|
|
777
777
|
ref_key: "_ref",
|
|
778
|
-
ref:
|
|
779
|
-
class:
|
|
780
|
-
id:
|
|
781
|
-
"data-width":
|
|
782
|
-
"data-on-forcing-mobile":
|
|
778
|
+
ref: v,
|
|
779
|
+
class: E(f(N)("db-header", t.class)),
|
|
780
|
+
id: o.value,
|
|
781
|
+
"data-width": d.width,
|
|
782
|
+
"data-on-forcing-mobile": d.forceMobile && !a.value
|
|
783
783
|
}, [
|
|
784
|
-
O(
|
|
784
|
+
O(Ye, {
|
|
785
785
|
class: "db-header-drawer",
|
|
786
786
|
spacing: "small",
|
|
787
787
|
rounded: !0,
|
|
788
|
-
open:
|
|
788
|
+
open: d.drawerOpen,
|
|
789
789
|
onClose: () => l()
|
|
790
790
|
}, {
|
|
791
|
-
default:
|
|
792
|
-
|
|
793
|
-
|
|
791
|
+
default: R(() => [
|
|
792
|
+
I("div", Qe, [
|
|
793
|
+
I("div", {
|
|
794
794
|
class: "db-header-navigation",
|
|
795
|
-
onClick: h[0] || (h[0] = async (
|
|
795
|
+
onClick: h[0] || (h[0] = async (n) => p(n))
|
|
796
796
|
}, [
|
|
797
|
-
|
|
797
|
+
w(d.$slots, "default")
|
|
798
798
|
]),
|
|
799
|
-
|
|
800
|
-
|
|
799
|
+
I("div", Ze, [
|
|
800
|
+
w(d.$slots, "meta-navigation")
|
|
801
801
|
])
|
|
802
802
|
]),
|
|
803
|
-
|
|
804
|
-
|
|
803
|
+
I("div", xe, [
|
|
804
|
+
w(d.$slots, "secondary-action")
|
|
805
805
|
])
|
|
806
806
|
]),
|
|
807
807
|
_: 3
|
|
808
808
|
}, 8, ["open", "onClose"]),
|
|
809
|
-
|
|
810
|
-
|
|
809
|
+
I("div", ea, [
|
|
810
|
+
w(d.$slots, "meta-navigation")
|
|
811
811
|
]),
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
812
|
+
I("div", aa, [
|
|
813
|
+
I("div", ta, [
|
|
814
|
+
w(d.$slots, "brand")
|
|
815
815
|
]),
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
816
|
+
I("div", ia, [
|
|
817
|
+
I("div", oa, [
|
|
818
|
+
w(d.$slots, "default")
|
|
819
819
|
]),
|
|
820
|
-
|
|
821
|
-
|
|
820
|
+
I("div", da, [
|
|
821
|
+
w(d.$slots, "primary-action")
|
|
822
822
|
])
|
|
823
823
|
]),
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
O(
|
|
824
|
+
I("div", la, [
|
|
825
|
+
I("div", na, [
|
|
826
|
+
O(oe, {
|
|
827
827
|
icon: "menu",
|
|
828
828
|
variant: "ghost",
|
|
829
|
-
id:
|
|
829
|
+
id: o.value + "-burger-menu",
|
|
830
830
|
noText: !0,
|
|
831
831
|
onClick: () => l()
|
|
832
832
|
}, {
|
|
833
|
-
default:
|
|
834
|
-
L(
|
|
833
|
+
default: R(() => [
|
|
834
|
+
L(k(d.burgerMenuLabel ?? f(Le)), 1)
|
|
835
835
|
]),
|
|
836
836
|
_: 1
|
|
837
837
|
}, 8, ["id", "onClick"])
|
|
838
838
|
]),
|
|
839
|
-
|
|
840
|
-
|
|
839
|
+
I("div", sa, [
|
|
840
|
+
w(d.$slots, "secondary-action")
|
|
841
841
|
])
|
|
842
842
|
])
|
|
843
843
|
])
|
|
844
844
|
], 10, Je));
|
|
845
845
|
}
|
|
846
|
-
}), ua = ["id", "data-icon", "data-icon-weight", "data-icon-variant"],
|
|
846
|
+
}), ua = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], $t = /* @__PURE__ */ A({
|
|
847
847
|
__name: "icon",
|
|
848
848
|
props: {
|
|
849
849
|
variant: { default: void 0 },
|
|
@@ -857,27 +857,27 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
857
857
|
icon: { default: void 0 },
|
|
858
858
|
text: { default: void 0 }
|
|
859
859
|
},
|
|
860
|
-
setup(
|
|
861
|
-
const
|
|
860
|
+
setup(i) {
|
|
861
|
+
const t = i, o = u(null);
|
|
862
862
|
return (e, a) => (m(), g("span", {
|
|
863
863
|
"aria-hidden": "true",
|
|
864
864
|
ref_key: "_ref",
|
|
865
|
-
ref:
|
|
865
|
+
ref: o,
|
|
866
866
|
id: e.id,
|
|
867
|
-
class:
|
|
867
|
+
class: E(f(N)("db-icon", t.class)),
|
|
868
868
|
"data-icon": e.icon,
|
|
869
869
|
"data-icon-weight": e.weight,
|
|
870
870
|
"data-icon-variant": e.variant
|
|
871
871
|
}, [
|
|
872
|
-
e.text ? (m(), g(
|
|
873
|
-
L(
|
|
874
|
-
], 64)) :
|
|
872
|
+
e.text ? (m(), g(S, { key: 0 }, [
|
|
873
|
+
L(k(e.text), 1)
|
|
874
|
+
], 64)) : w(e.$slots, "default", { key: 1 })
|
|
875
875
|
], 10, ua));
|
|
876
876
|
}
|
|
877
|
-
}), ra = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"],
|
|
877
|
+
}), ra = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], ca = ["for"], va = ["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"], fa = ["id"], pa = ["value"], ha = {
|
|
878
878
|
"data-visually-hidden": "true",
|
|
879
879
|
role: "status"
|
|
880
|
-
},
|
|
880
|
+
}, Lt = /* @__PURE__ */ A({
|
|
881
881
|
__name: "input",
|
|
882
882
|
props: {
|
|
883
883
|
dataList: { default: void 0 },
|
|
@@ -926,122 +926,122 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
926
926
|
size: { default: void 0 }
|
|
927
927
|
},
|
|
928
928
|
emits: ["update:value"],
|
|
929
|
-
setup(
|
|
930
|
-
const
|
|
931
|
-
|
|
932
|
-
const
|
|
933
|
-
a.value =
|
|
934
|
-
}),
|
|
929
|
+
setup(i, { emit: t }) {
|
|
930
|
+
const o = t, e = i, a = u(void 0), v = u(void 0), l = u(void 0), p = u(void 0), d = u(void 0), h = u(""), n = u(""), B = u(""), $ = u(null);
|
|
931
|
+
U(() => {
|
|
932
|
+
const r = e.id ?? `input-${G()}`;
|
|
933
|
+
a.value = r, v.value = r + K, l.value = r + J, p.value = r + Q, d.value = r + ue;
|
|
934
|
+
}), z(
|
|
935
935
|
() => [a.value],
|
|
936
936
|
() => {
|
|
937
937
|
if (a.value) {
|
|
938
|
-
const
|
|
939
|
-
|
|
938
|
+
const r = a.value + K;
|
|
939
|
+
v.value = r, l.value = a.value + J, p.value = a.value + Q, d.value = e.dataListId ?? a.value + ue, q(e.message, e.showMessage) && (h.value = r);
|
|
940
940
|
}
|
|
941
941
|
},
|
|
942
942
|
{
|
|
943
943
|
immediate: !0,
|
|
944
944
|
flush: "post"
|
|
945
945
|
}
|
|
946
|
-
),
|
|
946
|
+
), z(
|
|
947
947
|
() => [e.value],
|
|
948
948
|
() => {
|
|
949
|
-
|
|
949
|
+
n.value = e.value;
|
|
950
950
|
},
|
|
951
951
|
{
|
|
952
952
|
immediate: !0,
|
|
953
953
|
flush: "post"
|
|
954
954
|
}
|
|
955
955
|
);
|
|
956
|
-
function
|
|
957
|
-
|
|
956
|
+
function D(r) {
|
|
957
|
+
n.value = r.target.value, e.onInput && e.onInput(r), e.input && e.input(r);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
960
|
-
var T, b,
|
|
961
|
-
e.onChange && e.onChange(
|
|
959
|
+
function _(r) {
|
|
960
|
+
var T, b, C;
|
|
961
|
+
e.onChange && e.onChange(r), e.change && e.change(r), ae(o, r), !((T = $.value) != null && T.validity.valid) || e.validation === "invalid" ? (h.value = p.value, Y() && (B.value = e.invalidMessage ?? ((b = $.value) == null ? void 0 : b.validationMessage) ?? x, H(() => B.value = "", 1e3))) : e.validation === "valid" || (C = $.value) != null && C.validity.valid && (e.required || e.minLength || e.maxLength || e.pattern) ? (h.value = l.value, Y() && (B.value = e.validMessage ?? Z, H(() => B.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = v.value : h.value = "";
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
e.onBlur && e.onBlur(
|
|
963
|
+
function c(r) {
|
|
964
|
+
e.onBlur && e.onBlur(r), e.blur && e.blur(r);
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
e.onFocus && e.onFocus(
|
|
966
|
+
function s(r) {
|
|
967
|
+
e.onFocus && e.onFocus(r), e.focus && e.focus(r);
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function y(r) {
|
|
970
970
|
return Array.from(
|
|
971
|
-
(
|
|
971
|
+
(we(r) ? r.map((T) => ({
|
|
972
972
|
value: T,
|
|
973
973
|
label: void 0
|
|
974
|
-
})) :
|
|
974
|
+
})) : r) || []
|
|
975
975
|
);
|
|
976
976
|
}
|
|
977
|
-
return (
|
|
978
|
-
class:
|
|
979
|
-
"data-variant":
|
|
980
|
-
"data-hide-label":
|
|
981
|
-
"data-hide-icon":
|
|
982
|
-
"data-icon":
|
|
983
|
-
"data-icon-after":
|
|
984
|
-
"data-hide-icon-after":
|
|
977
|
+
return (r, T) => (m(), g("div", {
|
|
978
|
+
class: E(f(N)("db-input", e.class)),
|
|
979
|
+
"data-variant": r.variant,
|
|
980
|
+
"data-hide-label": f(P)(r.showLabel),
|
|
981
|
+
"data-hide-icon": f(P)(r.showIcon),
|
|
982
|
+
"data-icon": r.icon,
|
|
983
|
+
"data-icon-after": r.iconAfter,
|
|
984
|
+
"data-hide-icon-after": f(P)(r.showIcon)
|
|
985
985
|
}, [
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
"aria-invalid":
|
|
989
|
-
"data-custom-validity":
|
|
986
|
+
I("label", { for: a.value }, k(r.label ?? f(le)), 9, ca),
|
|
987
|
+
I("input", {
|
|
988
|
+
"aria-invalid": r.validation === "invalid",
|
|
989
|
+
"data-custom-validity": r.validation,
|
|
990
990
|
ref_key: "_ref",
|
|
991
|
-
ref:
|
|
991
|
+
ref: $,
|
|
992
992
|
id: a.value,
|
|
993
|
-
name:
|
|
994
|
-
type:
|
|
995
|
-
placeholder:
|
|
996
|
-
disabled:
|
|
997
|
-
required:
|
|
998
|
-
step:
|
|
999
|
-
value:
|
|
1000
|
-
maxLength:
|
|
1001
|
-
minLength:
|
|
1002
|
-
max:
|
|
1003
|
-
min:
|
|
1004
|
-
readOnly:
|
|
1005
|
-
form:
|
|
1006
|
-
pattern:
|
|
1007
|
-
size:
|
|
1008
|
-
autoComplete:
|
|
1009
|
-
autoFocus:
|
|
1010
|
-
onInput: T[0] || (T[0] = async (b) =>
|
|
1011
|
-
onChange: T[1] || (T[1] = async (b) =>
|
|
1012
|
-
onBlur: T[2] || (T[2] = async (b) =>
|
|
1013
|
-
onFocus: T[3] || (T[3] = async (b) =>
|
|
1014
|
-
list:
|
|
993
|
+
name: r.name,
|
|
994
|
+
type: r.type || "text",
|
|
995
|
+
placeholder: r.placeholder ?? f(ce),
|
|
996
|
+
disabled: r.disabled,
|
|
997
|
+
required: r.required,
|
|
998
|
+
step: r.step,
|
|
999
|
+
value: r.value ?? n.value,
|
|
1000
|
+
maxLength: r.maxLength,
|
|
1001
|
+
minLength: r.minLength,
|
|
1002
|
+
max: r.max,
|
|
1003
|
+
min: r.min,
|
|
1004
|
+
readOnly: r.readOnly,
|
|
1005
|
+
form: r.form,
|
|
1006
|
+
pattern: r.pattern,
|
|
1007
|
+
size: r.size,
|
|
1008
|
+
autoComplete: r.autocomplete,
|
|
1009
|
+
autoFocus: r.autofocus,
|
|
1010
|
+
onInput: T[0] || (T[0] = async (b) => D(b)),
|
|
1011
|
+
onChange: T[1] || (T[1] = async (b) => _(b)),
|
|
1012
|
+
onBlur: T[2] || (T[2] = async (b) => c(b)),
|
|
1013
|
+
onFocus: T[3] || (T[3] = async (b) => s(b)),
|
|
1014
|
+
list: r.dataList && d.value,
|
|
1015
1015
|
"aria-describedby": h.value
|
|
1016
|
-
}, null, 40,
|
|
1017
|
-
|
|
1016
|
+
}, null, 40, va),
|
|
1017
|
+
r.dataList ? (m(), g("datalist", {
|
|
1018
1018
|
key: 0,
|
|
1019
|
-
id:
|
|
1019
|
+
id: d.value
|
|
1020
1020
|
}, [
|
|
1021
|
-
(m(!0), g(
|
|
1022
|
-
key:
|
|
1021
|
+
(m(!0), g(S, null, ie(y(r.dataList), (b) => (m(), g("option", {
|
|
1022
|
+
key: d.value + "-option-" + b.value,
|
|
1023
1023
|
value: b.value
|
|
1024
|
-
},
|
|
1025
|
-
], 8,
|
|
1026
|
-
|
|
1027
|
-
|
|
1024
|
+
}, k(b.label), 9, pa))), 128))
|
|
1025
|
+
], 8, fa)) : M("", !0),
|
|
1026
|
+
w(r.$slots, "default"),
|
|
1027
|
+
f(q)(r.message, r.showMessage) ? (m(), X(W, {
|
|
1028
1028
|
key: 1,
|
|
1029
1029
|
size: "small",
|
|
1030
|
-
icon:
|
|
1031
|
-
id:
|
|
1030
|
+
icon: r.messageIcon,
|
|
1031
|
+
id: v.value
|
|
1032
1032
|
}, {
|
|
1033
|
-
default:
|
|
1034
|
-
L(
|
|
1033
|
+
default: R(() => [
|
|
1034
|
+
L(k(r.message), 1)
|
|
1035
1035
|
]),
|
|
1036
1036
|
_: 1
|
|
1037
|
-
}, 8, ["icon", "id"])) :
|
|
1037
|
+
}, 8, ["icon", "id"])) : M("", !0),
|
|
1038
1038
|
O(W, {
|
|
1039
1039
|
size: "small",
|
|
1040
1040
|
semantic: "successful",
|
|
1041
1041
|
id: l.value
|
|
1042
1042
|
}, {
|
|
1043
|
-
default:
|
|
1044
|
-
L(
|
|
1043
|
+
default: R(() => [
|
|
1044
|
+
L(k(r.validMessage ?? f(Z)), 1)
|
|
1045
1045
|
]),
|
|
1046
1046
|
_: 1
|
|
1047
1047
|
}, 8, ["id"]),
|
|
@@ -1050,18 +1050,18 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1050
1050
|
semantic: "critical",
|
|
1051
1051
|
id: p.value
|
|
1052
1052
|
}, {
|
|
1053
|
-
default:
|
|
1053
|
+
default: R(() => {
|
|
1054
1054
|
var b;
|
|
1055
1055
|
return [
|
|
1056
|
-
L(
|
|
1056
|
+
L(k(r.invalidMessage ?? ((b = $.value) == null ? void 0 : b.validationMessage) ?? f(x)), 1)
|
|
1057
1057
|
];
|
|
1058
1058
|
}),
|
|
1059
1059
|
_: 1
|
|
1060
1060
|
}, 8, ["id"]),
|
|
1061
|
-
|
|
1061
|
+
I("span", ha, k(B.value), 1)
|
|
1062
1062
|
], 10, ra));
|
|
1063
1063
|
}
|
|
1064
|
-
}), ma = ["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"],
|
|
1064
|
+
}), ma = ["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"], Et = /* @__PURE__ */ A({
|
|
1065
1065
|
__name: "link",
|
|
1066
1066
|
props: {
|
|
1067
1067
|
content: { default: void 0 },
|
|
@@ -1087,44 +1087,45 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1087
1087
|
showIcon: { type: Boolean, default: void 0 },
|
|
1088
1088
|
text: { default: void 0 }
|
|
1089
1089
|
},
|
|
1090
|
-
setup(
|
|
1091
|
-
const
|
|
1090
|
+
setup(i) {
|
|
1091
|
+
const t = i, o = u(null);
|
|
1092
1092
|
function e(a) {
|
|
1093
|
-
|
|
1093
|
+
t.onClick && t.onClick(a);
|
|
1094
1094
|
}
|
|
1095
|
-
return (a,
|
|
1095
|
+
return (a, v) => (m(), g("a", {
|
|
1096
1096
|
ref_key: "_ref",
|
|
1097
|
-
ref:
|
|
1097
|
+
ref: o,
|
|
1098
1098
|
id: a.id,
|
|
1099
|
-
class:
|
|
1099
|
+
class: E(f(N)("db-link", t.class)),
|
|
1100
1100
|
href: a.href,
|
|
1101
1101
|
target: a.target,
|
|
1102
1102
|
rel: a.rel,
|
|
1103
1103
|
role: a.role,
|
|
1104
1104
|
hrefLang: a.hreflang,
|
|
1105
|
-
"aria-disabled":
|
|
1105
|
+
"aria-disabled": f(V)(a.disabled),
|
|
1106
1106
|
tabIndex: a.disabled ? -1 : 0,
|
|
1107
1107
|
"aria-selected": a.selected,
|
|
1108
1108
|
"aria-label": a.label,
|
|
1109
1109
|
"aria-current": a.current,
|
|
1110
1110
|
"data-size": a.size,
|
|
1111
|
-
"data-hide-icon-after":
|
|
1111
|
+
"data-hide-icon-after": f(P)(a.showIcon ?? !0),
|
|
1112
1112
|
"data-variant": a.variant,
|
|
1113
1113
|
"data-content": a.content || "internal",
|
|
1114
|
-
onClick:
|
|
1114
|
+
onClick: v[0] || (v[0] = async (l) => e(l))
|
|
1115
1115
|
}, [
|
|
1116
|
-
a.text ? (m(), g(
|
|
1117
|
-
L(
|
|
1118
|
-
], 64)) :
|
|
1116
|
+
a.text ? (m(), g(S, { key: 0 }, [
|
|
1117
|
+
L(k(a.text), 1)
|
|
1118
|
+
], 64)) : w(a.$slots, "default", { key: 1 })
|
|
1119
1119
|
], 10, ma));
|
|
1120
1120
|
}
|
|
1121
|
-
}), ba = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"],
|
|
1121
|
+
}), ba = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], Nt = /* @__PURE__ */ A({
|
|
1122
1122
|
__name: "page",
|
|
1123
1123
|
props: {
|
|
1124
1124
|
documentOverflow: { default: void 0 },
|
|
1125
1125
|
fadeIn: { type: Boolean, default: void 0 },
|
|
1126
1126
|
footer: {},
|
|
1127
1127
|
header: {},
|
|
1128
|
+
mainClass: { default: void 0 },
|
|
1128
1129
|
variant: { default: void 0 },
|
|
1129
1130
|
children: { default: void 0 },
|
|
1130
1131
|
className: { default: void 0 },
|
|
@@ -1133,31 +1134,33 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1133
1134
|
id: { default: void 0 },
|
|
1134
1135
|
autofocus: { type: Boolean }
|
|
1135
1136
|
},
|
|
1136
|
-
setup(
|
|
1137
|
-
const
|
|
1138
|
-
return typeof window < "u" && document && (
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
}) :
|
|
1142
|
-
}),
|
|
1137
|
+
setup(i) {
|
|
1138
|
+
const t = i, o = u(!1), e = u(null);
|
|
1139
|
+
return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), U(() => {
|
|
1140
|
+
o.value = !t.fadeIn, document && t.fadeIn ? document.fonts.ready.then(() => {
|
|
1141
|
+
o.value = !0;
|
|
1142
|
+
}) : o.value = !0;
|
|
1143
|
+
}), Be(() => {
|
|
1143
1144
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
1144
|
-
}), (a,
|
|
1145
|
+
}), (a, v) => (m(), g("div", {
|
|
1145
1146
|
ref_key: "_ref",
|
|
1146
1147
|
ref: e,
|
|
1147
1148
|
id: a.id,
|
|
1148
|
-
class:
|
|
1149
|
+
class: E(f(N)("db-page", t.class)),
|
|
1149
1150
|
"data-variant": a.variant,
|
|
1150
1151
|
"data-fade-in": a.fadeIn,
|
|
1151
|
-
"data-fonts-loaded":
|
|
1152
|
+
"data-fonts-loaded": f(V)(o.value)
|
|
1152
1153
|
}, [
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1154
|
+
w(a.$slots, "header"),
|
|
1155
|
+
I("main", {
|
|
1156
|
+
class: E(f(N)("db-main", a.mainClass))
|
|
1157
|
+
}, [
|
|
1158
|
+
w(a.$slots, "default")
|
|
1159
|
+
], 2),
|
|
1160
|
+
w(a.$slots, "footer")
|
|
1158
1161
|
], 10, ba));
|
|
1159
1162
|
}
|
|
1160
|
-
}),
|
|
1163
|
+
}), ga = ["data-size", "data-hide-label", "for"], ya = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], At = /* @__PURE__ */ A({
|
|
1161
1164
|
__name: "radio",
|
|
1162
1165
|
props: {
|
|
1163
1166
|
describedbyid: { default: void 0 },
|
|
@@ -1183,12 +1186,12 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1183
1186
|
checked: { type: Boolean, default: void 0 },
|
|
1184
1187
|
size: { default: void 0 }
|
|
1185
1188
|
},
|
|
1186
|
-
emits: ["update:
|
|
1187
|
-
setup(
|
|
1188
|
-
const
|
|
1189
|
-
|
|
1190
|
-
a.value = !0,
|
|
1191
|
-
}),
|
|
1189
|
+
emits: ["update:value"],
|
|
1190
|
+
setup(i, { emit: t }) {
|
|
1191
|
+
const o = t, e = i, a = u(!1), v = u(void 0), l = u(null);
|
|
1192
|
+
U(() => {
|
|
1193
|
+
a.value = !0, v.value = e.id ?? `radio-${G()}`;
|
|
1194
|
+
}), z(
|
|
1192
1195
|
() => [a.value, l.value, e.checked],
|
|
1193
1196
|
() => {
|
|
1194
1197
|
e.checked && a.value && l.value && (l.value.checked = !0);
|
|
@@ -1198,44 +1201,44 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1198
1201
|
flush: "post"
|
|
1199
1202
|
}
|
|
1200
1203
|
);
|
|
1201
|
-
function p(
|
|
1202
|
-
e.onChange && e.onChange(
|
|
1204
|
+
function p(n) {
|
|
1205
|
+
e.onChange && e.onChange(n), e.change && e.change(n), ae(o, n);
|
|
1203
1206
|
}
|
|
1204
|
-
function
|
|
1205
|
-
e.onBlur && e.onBlur(
|
|
1207
|
+
function d(n) {
|
|
1208
|
+
e.onBlur && e.onBlur(n), e.blur && e.blur(n);
|
|
1206
1209
|
}
|
|
1207
|
-
function h(
|
|
1208
|
-
e.onFocus && e.onFocus(
|
|
1210
|
+
function h(n) {
|
|
1211
|
+
e.onFocus && e.onFocus(n), e.focus && e.focus(n);
|
|
1209
1212
|
}
|
|
1210
|
-
return (
|
|
1211
|
-
"data-size":
|
|
1212
|
-
"data-hide-label":
|
|
1213
|
-
class:
|
|
1214
|
-
for:
|
|
1213
|
+
return (n, B) => (m(), g("label", {
|
|
1214
|
+
"data-size": n.size,
|
|
1215
|
+
"data-hide-label": f(P)(n.showLabel),
|
|
1216
|
+
class: E(f(N)("db-radio", e.class)),
|
|
1217
|
+
for: v.value
|
|
1215
1218
|
}, [
|
|
1216
|
-
|
|
1219
|
+
I("input", {
|
|
1217
1220
|
type: "radio",
|
|
1218
|
-
"aria-invalid":
|
|
1219
|
-
"data-custom-validity":
|
|
1221
|
+
"aria-invalid": n.validation === "invalid",
|
|
1222
|
+
"data-custom-validity": n.validation,
|
|
1220
1223
|
ref_key: "_ref",
|
|
1221
1224
|
ref: l,
|
|
1222
|
-
id:
|
|
1223
|
-
name:
|
|
1224
|
-
checked:
|
|
1225
|
-
disabled:
|
|
1226
|
-
"aria-describedby":
|
|
1227
|
-
value:
|
|
1228
|
-
required:
|
|
1229
|
-
onChange: B[0] || (B[0] = async (
|
|
1230
|
-
onBlur: B[1] || (B[1] = async (
|
|
1231
|
-
onFocus: B[2] || (B[2] = async (
|
|
1232
|
-
}, null, 40,
|
|
1233
|
-
|
|
1234
|
-
L(
|
|
1235
|
-
], 64)) :
|
|
1236
|
-
], 10,
|
|
1225
|
+
id: v.value,
|
|
1226
|
+
name: n.name,
|
|
1227
|
+
checked: n.checked,
|
|
1228
|
+
disabled: n.disabled,
|
|
1229
|
+
"aria-describedby": n.describedbyid,
|
|
1230
|
+
value: n.value,
|
|
1231
|
+
required: n.required,
|
|
1232
|
+
onChange: B[0] || (B[0] = async ($) => p($)),
|
|
1233
|
+
onBlur: B[1] || (B[1] = async ($) => d($)),
|
|
1234
|
+
onFocus: B[2] || (B[2] = async ($) => h($))
|
|
1235
|
+
}, null, 40, ya),
|
|
1236
|
+
n.label ? (m(), g(S, { key: 0 }, [
|
|
1237
|
+
L(k(n.label), 1)
|
|
1238
|
+
], 64)) : w(n.$slots, "default", { key: 1 })
|
|
1239
|
+
], 10, ga));
|
|
1237
1240
|
}
|
|
1238
|
-
}),
|
|
1241
|
+
}), Ba = ["id", "data-spacing", "data-width"], Ft = /* @__PURE__ */ A({
|
|
1239
1242
|
__name: "section",
|
|
1240
1243
|
props: {
|
|
1241
1244
|
children: { default: void 0 },
|
|
@@ -1247,25 +1250,25 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1247
1250
|
spacing: { default: void 0 },
|
|
1248
1251
|
width: { default: void 0 }
|
|
1249
1252
|
},
|
|
1250
|
-
setup(
|
|
1251
|
-
const
|
|
1252
|
-
return
|
|
1253
|
-
|
|
1254
|
-
}), (a,
|
|
1253
|
+
setup(i) {
|
|
1254
|
+
const t = i, o = u(ee), e = u(null);
|
|
1255
|
+
return U(() => {
|
|
1256
|
+
o.value = t.id || "section-" + G();
|
|
1257
|
+
}), (a, v) => (m(), g("section", {
|
|
1255
1258
|
ref_key: "_ref",
|
|
1256
1259
|
ref: e,
|
|
1257
|
-
id:
|
|
1258
|
-
class:
|
|
1260
|
+
id: o.value,
|
|
1261
|
+
class: E(f(N)("db-section", t.class)),
|
|
1259
1262
|
"data-spacing": a.spacing || "medium",
|
|
1260
1263
|
"data-width": a.width
|
|
1261
1264
|
}, [
|
|
1262
|
-
|
|
1263
|
-
], 10,
|
|
1265
|
+
w(a.$slots, "default")
|
|
1266
|
+
], 10, Ba));
|
|
1264
1267
|
}
|
|
1265
|
-
}),
|
|
1268
|
+
}), ka = ["data-variant", "data-hide-label", "data-icon", "data-hide-icon"], wa = ["for"], Ia = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "aria-describedby"], _a = ["label"], $a = ["value", "selected", "disabled"], La = ["value", "disabled", "selected"], Ea = ["id"], Na = {
|
|
1266
1269
|
"data-visually-hidden": "true",
|
|
1267
1270
|
role: "status"
|
|
1268
|
-
},
|
|
1271
|
+
}, Tt = /* @__PURE__ */ A({
|
|
1269
1272
|
__name: "select",
|
|
1270
1273
|
props: {
|
|
1271
1274
|
description: {},
|
|
@@ -1306,121 +1309,121 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1306
1309
|
size: { default: void 0 }
|
|
1307
1310
|
},
|
|
1308
1311
|
emits: ["update:value"],
|
|
1309
|
-
setup(
|
|
1310
|
-
const
|
|
1311
|
-
|
|
1312
|
+
setup(i, { emit: t }) {
|
|
1313
|
+
const o = t, e = i, a = u(void 0), v = u(void 0), l = u(void 0), p = u(void 0), d = u(""), h = u(""), n = u(""), B = u(!1), $ = u(""), D = u(null);
|
|
1314
|
+
U(() => {
|
|
1312
1315
|
B.value = !0;
|
|
1313
1316
|
const b = e.id ?? `select-${G()}`;
|
|
1314
|
-
a.value = b,
|
|
1315
|
-
}),
|
|
1317
|
+
a.value = b, v.value = b + K, l.value = b + J, p.value = b + Q, d.value = b + se;
|
|
1318
|
+
}), z(
|
|
1316
1319
|
() => [a.value, B.value],
|
|
1317
1320
|
() => {
|
|
1318
1321
|
if (a.value && B.value) {
|
|
1319
|
-
const b = a.value + K,
|
|
1320
|
-
|
|
1322
|
+
const b = a.value + K, C = a.value + se;
|
|
1323
|
+
v.value = b, l.value = a.value + J, p.value = a.value + Q, d.value = C, q(e.message, e.showMessage) ? h.value = b : h.value = C, B.value = !1;
|
|
1321
1324
|
}
|
|
1322
1325
|
},
|
|
1323
1326
|
{
|
|
1324
1327
|
immediate: !0,
|
|
1325
1328
|
flush: "post"
|
|
1326
1329
|
}
|
|
1327
|
-
),
|
|
1330
|
+
), z(
|
|
1328
1331
|
() => [e.value],
|
|
1329
1332
|
() => {
|
|
1330
|
-
|
|
1333
|
+
n.value = e.value;
|
|
1331
1334
|
},
|
|
1332
1335
|
{
|
|
1333
1336
|
immediate: !0,
|
|
1334
1337
|
flush: "post"
|
|
1335
1338
|
}
|
|
1336
1339
|
);
|
|
1337
|
-
function
|
|
1340
|
+
function _(b) {
|
|
1338
1341
|
e.onClick && e.onClick(b);
|
|
1339
1342
|
}
|
|
1340
|
-
function f(b) {
|
|
1341
|
-
s.value = b.target.value, e.onInput && e.onInput(b), e.input && e.input(b);
|
|
1342
|
-
}
|
|
1343
1343
|
function c(b) {
|
|
1344
|
-
|
|
1345
|
-
|
|
1344
|
+
n.value = b.target.value, e.onInput && e.onInput(b), e.input && e.input(b);
|
|
1345
|
+
}
|
|
1346
|
+
function s(b) {
|
|
1347
|
+
var C, F, te;
|
|
1348
|
+
e.onChange && e.onChange(b), e.change && e.change(b), ae(o, b), !((C = D.value) != null && C.validity.valid) || e.validation === "invalid" ? (h.value = p.value, Y() && ($.value = e.invalidMessage ?? ((F = D.value) == null ? void 0 : F.validationMessage) ?? x, H(() => $.value = "", 1e3))) : e.validation === "valid" || (te = D.value) != null && te.validity.valid && e.required ? (h.value = l.value, Y() && ($.value = e.validMessage ?? Z, H(() => $.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = v.value : h.value = d.value;
|
|
1346
1349
|
}
|
|
1347
|
-
function
|
|
1350
|
+
function y(b) {
|
|
1348
1351
|
e.onBlur && e.onBlur(b), e.blur && e.blur(b);
|
|
1349
1352
|
}
|
|
1350
|
-
function
|
|
1353
|
+
function r(b) {
|
|
1351
1354
|
e.onFocus && e.onFocus(b), e.focus && e.focus(b);
|
|
1352
1355
|
}
|
|
1353
1356
|
function T(b) {
|
|
1354
1357
|
return b.label ?? b.value.toString();
|
|
1355
1358
|
}
|
|
1356
|
-
return (b,
|
|
1357
|
-
class:
|
|
1359
|
+
return (b, C) => (m(), g("div", {
|
|
1360
|
+
class: E(f(N)("db-select", e.class)),
|
|
1358
1361
|
"data-variant": b.variant,
|
|
1359
|
-
"data-hide-label":
|
|
1362
|
+
"data-hide-label": f(P)(b.showLabel),
|
|
1360
1363
|
"data-icon": b.icon,
|
|
1361
|
-
"data-hide-icon":
|
|
1364
|
+
"data-hide-icon": f(P)(b.showIcon)
|
|
1362
1365
|
}, [
|
|
1363
|
-
|
|
1364
|
-
|
|
1366
|
+
I("label", { for: a.value }, k(b.label ?? f(le)), 9, wa),
|
|
1367
|
+
I("select", {
|
|
1365
1368
|
"aria-invalid": b.validation === "invalid",
|
|
1366
1369
|
"data-custom-validity": b.validation,
|
|
1367
1370
|
ref_key: "_ref",
|
|
1368
|
-
ref:
|
|
1371
|
+
ref: D,
|
|
1369
1372
|
required: b.required,
|
|
1370
1373
|
disabled: b.disabled,
|
|
1371
1374
|
id: a.value,
|
|
1372
1375
|
name: b.name,
|
|
1373
1376
|
size: b.size,
|
|
1374
|
-
value: b.value ??
|
|
1377
|
+
value: b.value ?? n.value,
|
|
1375
1378
|
autocomplete: b.autocomplete,
|
|
1376
|
-
onInput:
|
|
1377
|
-
onClick:
|
|
1378
|
-
onChange:
|
|
1379
|
-
onBlur:
|
|
1380
|
-
onFocus:
|
|
1379
|
+
onInput: C[0] || (C[0] = async (F) => c(F)),
|
|
1380
|
+
onClick: C[1] || (C[1] = async (F) => _(F)),
|
|
1381
|
+
onChange: C[2] || (C[2] = async (F) => s(F)),
|
|
1382
|
+
onBlur: C[3] || (C[3] = async (F) => y(F)),
|
|
1383
|
+
onFocus: C[4] || (C[4] = async (F) => r(F)),
|
|
1381
1384
|
"aria-describedby": h.value
|
|
1382
1385
|
}, [
|
|
1383
|
-
|
|
1384
|
-
b.options ? (m(!0), g(
|
|
1386
|
+
C[5] || (C[5] = I("option", { hidden: !0 }, null, -1)),
|
|
1387
|
+
b.options ? (m(!0), g(S, { key: 0 }, ie(b.options, (F, te) => (m(), g(S, { key: te }, [
|
|
1385
1388
|
F.options ? (m(), g("optgroup", {
|
|
1386
1389
|
key: 0,
|
|
1387
1390
|
label: T(F)
|
|
1388
1391
|
}, [
|
|
1389
|
-
(m(!0), g(
|
|
1390
|
-
key:
|
|
1391
|
-
value:
|
|
1392
|
-
selected:
|
|
1393
|
-
disabled:
|
|
1394
|
-
},
|
|
1395
|
-
], 8,
|
|
1396
|
-
F.options ?
|
|
1392
|
+
(m(!0), g(S, null, ie(F.options, (de, lt) => (m(), g("option", {
|
|
1393
|
+
key: de.value.toString(),
|
|
1394
|
+
value: de.value,
|
|
1395
|
+
selected: de.selected,
|
|
1396
|
+
disabled: de.disabled
|
|
1397
|
+
}, k(T(de)), 9, $a))), 128))
|
|
1398
|
+
], 8, _a)) : M("", !0),
|
|
1399
|
+
F.options ? M("", !0) : (m(), g("option", {
|
|
1397
1400
|
key: 1,
|
|
1398
1401
|
value: F.value,
|
|
1399
1402
|
disabled: F.disabled,
|
|
1400
1403
|
selected: F.selected
|
|
1401
|
-
},
|
|
1402
|
-
], 64))), 128)) :
|
|
1403
|
-
|
|
1404
|
-
], 40,
|
|
1405
|
-
|
|
1406
|
-
|
|
1404
|
+
}, k(T(F)), 9, La))
|
|
1405
|
+
], 64))), 128)) : M("", !0),
|
|
1406
|
+
w(b.$slots, "default")
|
|
1407
|
+
], 40, Ia),
|
|
1408
|
+
I("span", { id: d.value }, k(b.placeholder ?? b.label), 9, Ea),
|
|
1409
|
+
f(q)(b.message, b.showMessage) ? (m(), X(W, {
|
|
1407
1410
|
key: 0,
|
|
1408
1411
|
size: "small",
|
|
1409
1412
|
icon: b.messageIcon,
|
|
1410
|
-
id:
|
|
1413
|
+
id: v.value
|
|
1411
1414
|
}, {
|
|
1412
|
-
default:
|
|
1413
|
-
L(
|
|
1415
|
+
default: R(() => [
|
|
1416
|
+
L(k(b.message), 1)
|
|
1414
1417
|
]),
|
|
1415
1418
|
_: 1
|
|
1416
|
-
}, 8, ["icon", "id"])) :
|
|
1419
|
+
}, 8, ["icon", "id"])) : M("", !0),
|
|
1417
1420
|
O(W, {
|
|
1418
1421
|
size: "small",
|
|
1419
1422
|
semantic: "successful",
|
|
1420
1423
|
id: l.value
|
|
1421
1424
|
}, {
|
|
1422
|
-
default:
|
|
1423
|
-
L(
|
|
1425
|
+
default: R(() => [
|
|
1426
|
+
L(k(b.validMessage ?? f(Z)), 1)
|
|
1424
1427
|
]),
|
|
1425
1428
|
_: 1
|
|
1426
1429
|
}, 8, ["id"]),
|
|
@@ -1429,18 +1432,18 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1429
1432
|
semantic: "critical",
|
|
1430
1433
|
id: p.value
|
|
1431
1434
|
}, {
|
|
1432
|
-
default:
|
|
1435
|
+
default: R(() => {
|
|
1433
1436
|
var F;
|
|
1434
1437
|
return [
|
|
1435
|
-
L(
|
|
1438
|
+
L(k(b.invalidMessage ?? ((F = D.value) == null ? void 0 : F.validationMessage) ?? f(x)), 1)
|
|
1436
1439
|
];
|
|
1437
1440
|
}),
|
|
1438
1441
|
_: 1
|
|
1439
1442
|
}, 8, ["id"]),
|
|
1440
|
-
|
|
1441
|
-
], 10,
|
|
1443
|
+
I("span", Na, k($.value), 1)
|
|
1444
|
+
], 10, ka));
|
|
1442
1445
|
}
|
|
1443
|
-
}),
|
|
1446
|
+
}), Aa = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], Fa = ["id", "aria-checked", "checked", "value", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], Ct = /* @__PURE__ */ A({
|
|
1444
1447
|
__name: "switch",
|
|
1445
1448
|
props: {
|
|
1446
1449
|
visualAid: { type: Boolean, default: void 0 },
|
|
@@ -1471,65 +1474,65 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1471
1474
|
iconAfter: { default: void 0 }
|
|
1472
1475
|
},
|
|
1473
1476
|
emits: ["update:checked"],
|
|
1474
|
-
setup(
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1477
|
+
setup(i, { emit: t }) {
|
|
1478
|
+
const o = t, e = i, a = u(void 0), v = u(!1), l = u(null);
|
|
1479
|
+
U(() => {
|
|
1477
1480
|
a.value = e.id ?? `switch-${G()}`;
|
|
1478
|
-
}),
|
|
1481
|
+
}), z(
|
|
1479
1482
|
() => [e.checked],
|
|
1480
1483
|
() => {
|
|
1481
|
-
e.checked !== void 0 && e.checked !== null && (
|
|
1484
|
+
e.checked !== void 0 && e.checked !== null && (v.value = !!e.checked);
|
|
1482
1485
|
},
|
|
1483
1486
|
{
|
|
1484
1487
|
immediate: !0,
|
|
1485
1488
|
flush: "post"
|
|
1486
1489
|
}
|
|
1487
1490
|
);
|
|
1488
|
-
function p(
|
|
1491
|
+
function p(n) {
|
|
1489
1492
|
var B;
|
|
1490
|
-
e.onChange && e.onChange(
|
|
1493
|
+
e.onChange && e.onChange(n), e.change && e.change(n), v.value = (B = n.target) == null ? void 0 : B.checked, ae(o, n, "checked");
|
|
1491
1494
|
}
|
|
1492
|
-
function
|
|
1493
|
-
e.onBlur && e.onBlur(
|
|
1495
|
+
function d(n) {
|
|
1496
|
+
e.onBlur && e.onBlur(n), e.blur && e.blur(n);
|
|
1494
1497
|
}
|
|
1495
|
-
function h(
|
|
1496
|
-
e.onFocus && e.onFocus(
|
|
1498
|
+
function h(n) {
|
|
1499
|
+
e.onFocus && e.onFocus(n), e.focus && e.focus(n);
|
|
1497
1500
|
}
|
|
1498
|
-
return (
|
|
1499
|
-
"data-visual-aid":
|
|
1500
|
-
"data-size":
|
|
1501
|
-
"data-hide-label":
|
|
1502
|
-
"data-emphasis":
|
|
1501
|
+
return (n, B) => (m(), g("label", {
|
|
1502
|
+
"data-visual-aid": f(V)(n.visualAid),
|
|
1503
|
+
"data-size": n.size,
|
|
1504
|
+
"data-hide-label": f(P)(n.showLabel),
|
|
1505
|
+
"data-emphasis": n.emphasis,
|
|
1503
1506
|
for: a.value,
|
|
1504
|
-
class:
|
|
1507
|
+
class: E(f(N)("db-switch", e.class))
|
|
1505
1508
|
}, [
|
|
1506
|
-
|
|
1509
|
+
I("input", {
|
|
1507
1510
|
type: "checkbox",
|
|
1508
1511
|
role: "switch",
|
|
1509
1512
|
id: a.value,
|
|
1510
|
-
"aria-checked":
|
|
1513
|
+
"aria-checked": f(V)(v.value),
|
|
1511
1514
|
ref_key: "_ref",
|
|
1512
1515
|
ref: l,
|
|
1513
|
-
checked:
|
|
1514
|
-
value:
|
|
1515
|
-
disabled:
|
|
1516
|
-
"aria-describedby":
|
|
1517
|
-
"aria-invalid":
|
|
1518
|
-
"data-custom-validity":
|
|
1519
|
-
name:
|
|
1520
|
-
required:
|
|
1521
|
-
"data-aid-icon":
|
|
1522
|
-
"data-aid-icon-after":
|
|
1523
|
-
onChange: B[0] || (B[0] = async (
|
|
1524
|
-
onBlur: B[1] || (B[1] = async (
|
|
1525
|
-
onFocus: B[2] || (B[2] = async (
|
|
1526
|
-
}, null, 40,
|
|
1527
|
-
|
|
1528
|
-
L(
|
|
1529
|
-
], 64)) :
|
|
1530
|
-
], 10,
|
|
1516
|
+
checked: n.checked,
|
|
1517
|
+
value: n.value,
|
|
1518
|
+
disabled: n.disabled,
|
|
1519
|
+
"aria-describedby": n.describedbyid,
|
|
1520
|
+
"aria-invalid": n.validation === "invalid",
|
|
1521
|
+
"data-custom-validity": n.validation,
|
|
1522
|
+
name: n.name,
|
|
1523
|
+
required: n.required,
|
|
1524
|
+
"data-aid-icon": n.icon,
|
|
1525
|
+
"data-aid-icon-after": n.iconAfter,
|
|
1526
|
+
onChange: B[0] || (B[0] = async ($) => p($)),
|
|
1527
|
+
onBlur: B[1] || (B[1] = async ($) => d($)),
|
|
1528
|
+
onFocus: B[2] || (B[2] = async ($) => h($))
|
|
1529
|
+
}, null, 40, Fa),
|
|
1530
|
+
n.label ? (m(), g(S, { key: 0 }, [
|
|
1531
|
+
L(k(n.label), 1)
|
|
1532
|
+
], 64)) : w(n.$slots, "default", { key: 1 })
|
|
1533
|
+
], 10, Aa));
|
|
1531
1534
|
}
|
|
1532
|
-
}),
|
|
1535
|
+
}), Ta = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], Ca = ["disabled", "aria-selected", "aria-controls", "checked", "id"], Sa = /* @__PURE__ */ A({
|
|
1533
1536
|
__name: "tab-item",
|
|
1534
1537
|
props: {
|
|
1535
1538
|
children: { default: void 0 },
|
|
@@ -1551,11 +1554,11 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1551
1554
|
showIcon: { type: Boolean, default: void 0 }
|
|
1552
1555
|
},
|
|
1553
1556
|
emits: ["update:checked"],
|
|
1554
|
-
setup(
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1557
|
+
setup(i, { emit: t }) {
|
|
1558
|
+
const o = t, e = i, a = u(!1), v = u(!1), l = u(null);
|
|
1559
|
+
U(() => {
|
|
1557
1560
|
a.value = !0;
|
|
1558
|
-
}),
|
|
1561
|
+
}), z(
|
|
1559
1562
|
() => [l.value, a.value],
|
|
1560
1563
|
() => {
|
|
1561
1564
|
e.active && a.value && l.value && (l.value.click(), a.value = !1);
|
|
@@ -1565,42 +1568,42 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1565
1568
|
flush: "post"
|
|
1566
1569
|
}
|
|
1567
1570
|
);
|
|
1568
|
-
function p(
|
|
1571
|
+
function p(d) {
|
|
1569
1572
|
var h;
|
|
1570
|
-
e.onChange && e.onChange(
|
|
1573
|
+
e.onChange && e.onChange(d), e.change && e.change(d), v.value = (h = d.target) == null ? void 0 : h.checked, ae(o, d, "checked");
|
|
1571
1574
|
}
|
|
1572
|
-
return (
|
|
1575
|
+
return (d, h) => (m(), g("li", {
|
|
1573
1576
|
role: "none",
|
|
1574
|
-
class:
|
|
1577
|
+
class: E(f(N)("db-tab-item", e.class))
|
|
1575
1578
|
}, [
|
|
1576
|
-
|
|
1577
|
-
for:
|
|
1578
|
-
"data-icon":
|
|
1579
|
-
"data-icon-after":
|
|
1580
|
-
"data-hide-icon":
|
|
1581
|
-
"data-hide-icon-after":
|
|
1582
|
-
"data-no-text":
|
|
1579
|
+
I("label", {
|
|
1580
|
+
for: d.id,
|
|
1581
|
+
"data-icon": d.icon,
|
|
1582
|
+
"data-icon-after": d.iconAfter,
|
|
1583
|
+
"data-hide-icon": f(P)(d.showIcon),
|
|
1584
|
+
"data-hide-icon-after": f(P)(d.showIcon),
|
|
1585
|
+
"data-no-text": d.noText
|
|
1583
1586
|
}, [
|
|
1584
|
-
|
|
1587
|
+
I("input", {
|
|
1585
1588
|
type: "radio",
|
|
1586
1589
|
role: "tab",
|
|
1587
|
-
disabled:
|
|
1588
|
-
"aria-selected":
|
|
1589
|
-
"aria-controls":
|
|
1590
|
-
checked:
|
|
1590
|
+
disabled: d.disabled,
|
|
1591
|
+
"aria-selected": v.value,
|
|
1592
|
+
"aria-controls": d.controls,
|
|
1593
|
+
checked: d.checked,
|
|
1591
1594
|
ref_key: "_ref",
|
|
1592
1595
|
ref: l,
|
|
1593
|
-
id:
|
|
1594
|
-
onInput: h[0] || (h[0] = async (
|
|
1596
|
+
id: d.id,
|
|
1597
|
+
onInput: h[0] || (h[0] = async (n) => p(n))
|
|
1595
1598
|
}, null, 40, Ca),
|
|
1596
|
-
|
|
1597
|
-
L(
|
|
1598
|
-
], 64)) :
|
|
1599
|
-
|
|
1600
|
-
], 8,
|
|
1599
|
+
d.label ? (m(), g(S, { key: 0 }, [
|
|
1600
|
+
L(k(d.label), 1)
|
|
1601
|
+
], 64)) : M("", !0),
|
|
1602
|
+
w(d.$slots, "default")
|
|
1603
|
+
], 8, Ta)
|
|
1601
1604
|
], 2));
|
|
1602
1605
|
}
|
|
1603
|
-
}),
|
|
1606
|
+
}), Da = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], Ma = ["title"], St = /* @__PURE__ */ A({
|
|
1604
1607
|
__name: "tag",
|
|
1605
1608
|
props: {
|
|
1606
1609
|
behavior: { default: void 0 },
|
|
@@ -1624,18 +1627,18 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1624
1627
|
showIcon: { type: Boolean, default: void 0 },
|
|
1625
1628
|
content: {}
|
|
1626
1629
|
},
|
|
1627
|
-
setup(
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1630
|
-
() => [
|
|
1630
|
+
setup(i) {
|
|
1631
|
+
const t = i, o = u(!1), e = u(null);
|
|
1632
|
+
o.value = !0, z(
|
|
1633
|
+
() => [o.value, t.disabled, e.value],
|
|
1631
1634
|
() => {
|
|
1632
1635
|
var l, p;
|
|
1633
|
-
if (
|
|
1634
|
-
const
|
|
1636
|
+
if (o.value && e.value && t.disabled !== void 0) {
|
|
1637
|
+
const d = (l = e.value) == null ? void 0 : l.querySelector(
|
|
1635
1638
|
"button:not(.db-tab-remove-button)"
|
|
1636
1639
|
), h = (p = e.value) == null ? void 0 : p.querySelector("input");
|
|
1637
|
-
for (const
|
|
1638
|
-
|
|
1640
|
+
for (const n of [d, h])
|
|
1641
|
+
n && (n.disabled = t.disabled);
|
|
1639
1642
|
}
|
|
1640
1643
|
},
|
|
1641
1644
|
{
|
|
@@ -1644,30 +1647,30 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1644
1647
|
}
|
|
1645
1648
|
);
|
|
1646
1649
|
function a() {
|
|
1647
|
-
|
|
1650
|
+
t.onRemove && t.onRemove();
|
|
1648
1651
|
}
|
|
1649
|
-
function
|
|
1650
|
-
return
|
|
1652
|
+
function v() {
|
|
1653
|
+
return t.removeButton ? t.removeButton : "Remove tag";
|
|
1651
1654
|
}
|
|
1652
1655
|
return (l, p) => (m(), g("div", {
|
|
1653
1656
|
ref_key: "_ref",
|
|
1654
1657
|
ref: e,
|
|
1655
1658
|
id: l.id,
|
|
1656
|
-
class:
|
|
1657
|
-
"data-disabled":
|
|
1659
|
+
class: E(f(N)("db-tag", t.class)),
|
|
1660
|
+
"data-disabled": f(V)(l.disabled),
|
|
1658
1661
|
"data-semantic": l.semantic,
|
|
1659
1662
|
"data-emphasis": l.emphasis,
|
|
1660
1663
|
"data-icon": l.icon,
|
|
1661
|
-
"data-show-check-state":
|
|
1662
|
-
"data-hide-icon":
|
|
1663
|
-
"data-no-text":
|
|
1664
|
-
"data-overflow":
|
|
1664
|
+
"data-show-check-state": f(V)(l.showCheckState ?? !0),
|
|
1665
|
+
"data-hide-icon": f(P)(l.showIcon),
|
|
1666
|
+
"data-no-text": f(V)(l.noText),
|
|
1667
|
+
"data-overflow": f(V)(l.overflow)
|
|
1665
1668
|
}, [
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
l.text ? (m(), g(
|
|
1669
|
-
L(
|
|
1670
|
-
], 64)) :
|
|
1669
|
+
w(l.$slots, "content"),
|
|
1670
|
+
w(l.$slots, "default"),
|
|
1671
|
+
l.text ? (m(), g(S, { key: 0 }, [
|
|
1672
|
+
L(k(l.text), 1)
|
|
1673
|
+
], 64)) : M("", !0),
|
|
1671
1674
|
l.behavior === "removable" ? (m(), g("button", {
|
|
1672
1675
|
key: 1,
|
|
1673
1676
|
class: "db-button db-tab-remove-button",
|
|
@@ -1675,15 +1678,15 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1675
1678
|
"data-size": "small",
|
|
1676
1679
|
"data-no-text": "true",
|
|
1677
1680
|
"data-variant": "ghost",
|
|
1678
|
-
onClick: p[0] || (p[0] = async (
|
|
1679
|
-
title:
|
|
1680
|
-
},
|
|
1681
|
-
], 10,
|
|
1681
|
+
onClick: p[0] || (p[0] = async (d) => a()),
|
|
1682
|
+
title: v()
|
|
1683
|
+
}, k(v()), 9, Ma)) : M("", !0)
|
|
1684
|
+
], 10, Da));
|
|
1682
1685
|
}
|
|
1683
|
-
}),
|
|
1686
|
+
}), za = ["data-variant", "data-hide-label"], Ra = ["for"], Ua = ["aria-invalid", "data-custom-validity", "id", "data-resize", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Pa = {
|
|
1684
1687
|
"data-visually-hidden": "true",
|
|
1685
1688
|
role: "status"
|
|
1686
|
-
},
|
|
1689
|
+
}, Dt = /* @__PURE__ */ A({
|
|
1687
1690
|
__name: "textarea",
|
|
1688
1691
|
props: {
|
|
1689
1692
|
cols: { default: void 0 },
|
|
@@ -1726,24 +1729,24 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1726
1729
|
showMessage: { type: Boolean, default: void 0 }
|
|
1727
1730
|
},
|
|
1728
1731
|
emits: ["update:value"],
|
|
1729
|
-
setup(
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1732
|
-
const
|
|
1733
|
-
a.value =
|
|
1734
|
-
}),
|
|
1732
|
+
setup(i, { emit: t }) {
|
|
1733
|
+
const o = t, e = i, a = u(void 0), v = u(void 0), l = u(void 0), p = u(void 0), d = u(""), h = u(""), n = u(""), B = u(null);
|
|
1734
|
+
U(() => {
|
|
1735
|
+
const s = e.id ?? `textarea-${G()}`;
|
|
1736
|
+
a.value = s, v.value = s + K, l.value = s + J, p.value = s + Q;
|
|
1737
|
+
}), z(
|
|
1735
1738
|
() => [a.value],
|
|
1736
1739
|
() => {
|
|
1737
1740
|
if (a.value) {
|
|
1738
|
-
const
|
|
1739
|
-
|
|
1741
|
+
const s = a.value + K;
|
|
1742
|
+
v.value = s, l.value = a.value + J, p.value = a.value + Q, q(e.message, e.showMessage) && (d.value = s);
|
|
1740
1743
|
}
|
|
1741
1744
|
},
|
|
1742
1745
|
{
|
|
1743
1746
|
immediate: !0,
|
|
1744
1747
|
flush: "post"
|
|
1745
1748
|
}
|
|
1746
|
-
),
|
|
1749
|
+
), z(
|
|
1747
1750
|
() => [e.value],
|
|
1748
1751
|
() => {
|
|
1749
1752
|
h.value = e.value;
|
|
@@ -1753,70 +1756,70 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1753
1756
|
flush: "post"
|
|
1754
1757
|
}
|
|
1755
1758
|
);
|
|
1756
|
-
function
|
|
1757
|
-
h.value =
|
|
1759
|
+
function $(s) {
|
|
1760
|
+
h.value = s.target.value, e.onInput && e.onInput(s), e.input && e.input(s);
|
|
1758
1761
|
}
|
|
1759
|
-
function
|
|
1760
|
-
var
|
|
1761
|
-
e.onChange && e.onChange(
|
|
1762
|
+
function D(s) {
|
|
1763
|
+
var y, r, T;
|
|
1764
|
+
e.onChange && e.onChange(s), e.change && e.change(s), ae(o, s), !((y = B.value) != null && y.validity.valid) || e.validation === "invalid" ? (d.value = p.value, Y() && (n.value = e.invalidMessage ?? ((r = B.value) == null ? void 0 : r.validationMessage) ?? x, H(() => n.value = "", 1e3))) : e.validation === "valid" || (T = B.value) != null && T.validity.valid && (e.required || e.minLength || e.maxLength) ? (d.value = l.value, Y() && (n.value = e.validMessage ?? Z, H(() => n.value = "", 1e3))) : q(e.message, e.showMessage) ? d.value = v.value : d.value = "";
|
|
1762
1765
|
}
|
|
1763
|
-
function
|
|
1764
|
-
e.onBlur && e.onBlur(
|
|
1766
|
+
function _(s) {
|
|
1767
|
+
e.onBlur && e.onBlur(s), e.blur && e.blur(s);
|
|
1765
1768
|
}
|
|
1766
|
-
function
|
|
1767
|
-
e.onFocus && e.onFocus(
|
|
1769
|
+
function c(s) {
|
|
1770
|
+
e.onFocus && e.onFocus(s), e.focus && e.focus(s);
|
|
1768
1771
|
}
|
|
1769
|
-
return (
|
|
1770
|
-
class:
|
|
1771
|
-
"data-variant":
|
|
1772
|
-
"data-hide-label":
|
|
1772
|
+
return (s, y) => (m(), g("div", {
|
|
1773
|
+
class: E(f(N)("db-textarea", e.class)),
|
|
1774
|
+
"data-variant": s.variant,
|
|
1775
|
+
"data-hide-label": f(P)(s.showLabel)
|
|
1773
1776
|
}, [
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
"aria-invalid":
|
|
1777
|
-
"data-custom-validity":
|
|
1777
|
+
I("label", { for: a.value }, k(s.label ?? f(le)), 9, Ra),
|
|
1778
|
+
I("textarea", {
|
|
1779
|
+
"aria-invalid": s.validation === "invalid",
|
|
1780
|
+
"data-custom-validity": s.validation,
|
|
1778
1781
|
ref_key: "_ref",
|
|
1779
1782
|
ref: B,
|
|
1780
1783
|
id: a.value,
|
|
1781
|
-
"data-resize":
|
|
1782
|
-
disabled:
|
|
1783
|
-
required:
|
|
1784
|
-
readOnly:
|
|
1785
|
-
form:
|
|
1786
|
-
maxLength:
|
|
1787
|
-
minLength:
|
|
1788
|
-
name:
|
|
1789
|
-
wrap:
|
|
1790
|
-
spellcheck:
|
|
1791
|
-
autocomplete:
|
|
1792
|
-
onInput:
|
|
1793
|
-
onChange:
|
|
1794
|
-
onBlur:
|
|
1795
|
-
onFocus:
|
|
1796
|
-
value:
|
|
1797
|
-
"aria-describedby":
|
|
1798
|
-
placeholder:
|
|
1799
|
-
rows:
|
|
1800
|
-
cols:
|
|
1801
|
-
}, null, 40,
|
|
1802
|
-
|
|
1784
|
+
"data-resize": s.resize,
|
|
1785
|
+
disabled: s.disabled,
|
|
1786
|
+
required: s.required,
|
|
1787
|
+
readOnly: s.readOnly,
|
|
1788
|
+
form: s.form,
|
|
1789
|
+
maxLength: s.maxLength,
|
|
1790
|
+
minLength: s.minLength,
|
|
1791
|
+
name: s.name,
|
|
1792
|
+
wrap: s.wrap,
|
|
1793
|
+
spellcheck: s.spellCheck,
|
|
1794
|
+
autocomplete: s.autocomplete,
|
|
1795
|
+
onInput: y[0] || (y[0] = async (r) => $(r)),
|
|
1796
|
+
onChange: y[1] || (y[1] = async (r) => D(r)),
|
|
1797
|
+
onBlur: y[2] || (y[2] = async (r) => _(r)),
|
|
1798
|
+
onFocus: y[3] || (y[3] = async (r) => c(r)),
|
|
1799
|
+
value: s.value ?? h.value,
|
|
1800
|
+
"aria-describedby": d.value,
|
|
1801
|
+
placeholder: s.placeholder ?? f(ce),
|
|
1802
|
+
rows: s.rows ?? f(Ne),
|
|
1803
|
+
cols: s.cols
|
|
1804
|
+
}, null, 40, Ua),
|
|
1805
|
+
f(q)(s.message, s.showMessage) ? (m(), X(W, {
|
|
1803
1806
|
key: 0,
|
|
1804
1807
|
size: "small",
|
|
1805
|
-
icon:
|
|
1806
|
-
id:
|
|
1808
|
+
icon: s.messageIcon,
|
|
1809
|
+
id: v.value
|
|
1807
1810
|
}, {
|
|
1808
|
-
default:
|
|
1809
|
-
L(
|
|
1811
|
+
default: R(() => [
|
|
1812
|
+
L(k(s.message), 1)
|
|
1810
1813
|
]),
|
|
1811
1814
|
_: 1
|
|
1812
|
-
}, 8, ["icon", "id"])) :
|
|
1815
|
+
}, 8, ["icon", "id"])) : M("", !0),
|
|
1813
1816
|
O(W, {
|
|
1814
1817
|
size: "small",
|
|
1815
1818
|
semantic: "successful",
|
|
1816
1819
|
id: l.value
|
|
1817
1820
|
}, {
|
|
1818
|
-
default:
|
|
1819
|
-
L(
|
|
1821
|
+
default: R(() => [
|
|
1822
|
+
L(k(s.validMessage ?? f(Z)), 1)
|
|
1820
1823
|
]),
|
|
1821
1824
|
_: 1
|
|
1822
1825
|
}, 8, ["id"]),
|
|
@@ -1825,21 +1828,21 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1825
1828
|
semantic: "critical",
|
|
1826
1829
|
id: p.value
|
|
1827
1830
|
}, {
|
|
1828
|
-
default:
|
|
1829
|
-
var
|
|
1831
|
+
default: R(() => {
|
|
1832
|
+
var r;
|
|
1830
1833
|
return [
|
|
1831
|
-
L(
|
|
1834
|
+
L(k(s.invalidMessage ?? ((r = B.value) == null ? void 0 : r.validationMessage) ?? f(x)), 1)
|
|
1832
1835
|
];
|
|
1833
1836
|
}),
|
|
1834
1837
|
_: 1
|
|
1835
1838
|
}, 8, ["id"]),
|
|
1836
|
-
|
|
1837
|
-
], 10,
|
|
1839
|
+
I("span", Pa, k(n.value), 1)
|
|
1840
|
+
], 10, za));
|
|
1838
1841
|
}
|
|
1839
|
-
}),
|
|
1842
|
+
}), Va = ["id", "data-width", "data-icon", "data-hide-icon", "data-active", "aria-disabled"], Ga = ["aria-haspopup", "aria-expanded", "disabled"], qa = ["data-auto-close", "id"], Oa = {
|
|
1840
1843
|
key: 0,
|
|
1841
1844
|
class: "db-mobile-navigation-back"
|
|
1842
|
-
},
|
|
1845
|
+
}, Mt = /* @__PURE__ */ A({
|
|
1843
1846
|
__name: "navigation-item",
|
|
1844
1847
|
props: {
|
|
1845
1848
|
active: { type: Boolean, default: void 0 },
|
|
@@ -1860,112 +1863,119 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1860
1863
|
showIcon: { type: Boolean, default: void 0 },
|
|
1861
1864
|
text: { default: void 0 }
|
|
1862
1865
|
},
|
|
1863
|
-
setup(
|
|
1864
|
-
const
|
|
1866
|
+
setup(i) {
|
|
1867
|
+
const t = i, o = u(!1), e = u(!1), a = u(!0), v = u(!1), l = u(!1), p = u(
|
|
1865
1868
|
"sub-navigation-" + G()
|
|
1866
|
-
),
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
}),
|
|
1870
|
-
() => [
|
|
1869
|
+
), d = u(void 0), h = u(null);
|
|
1870
|
+
U(() => {
|
|
1871
|
+
o.value = !0;
|
|
1872
|
+
}), z(
|
|
1873
|
+
() => [t.subNavigationExpanded],
|
|
1871
1874
|
() => {
|
|
1872
|
-
|
|
1875
|
+
t.subNavigationExpanded !== void 0 && (v.value = !!t.subNavigationExpanded);
|
|
1873
1876
|
},
|
|
1874
1877
|
{
|
|
1875
1878
|
immediate: !0,
|
|
1876
1879
|
flush: "post"
|
|
1877
1880
|
}
|
|
1878
|
-
),
|
|
1879
|
-
() => [
|
|
1881
|
+
), z(
|
|
1882
|
+
() => [o.value],
|
|
1880
1883
|
() => {
|
|
1881
|
-
|
|
1884
|
+
D();
|
|
1882
1885
|
},
|
|
1883
1886
|
{
|
|
1884
1887
|
immediate: !0,
|
|
1885
1888
|
flush: "post"
|
|
1886
1889
|
}
|
|
1887
1890
|
);
|
|
1888
|
-
function
|
|
1889
|
-
|
|
1891
|
+
function n(_) {
|
|
1892
|
+
be(_) && (l.value = !0, H(() => {
|
|
1893
|
+
l.value = !1;
|
|
1894
|
+
}, 300));
|
|
1890
1895
|
}
|
|
1891
|
-
function
|
|
1892
|
-
|
|
1896
|
+
function B(_) {
|
|
1897
|
+
t.onClick && t.onClick(_), e.value && (v.value = !0);
|
|
1893
1898
|
}
|
|
1894
|
-
function
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
+
function $(_) {
|
|
1900
|
+
_.stopPropagation(), v.value = !1;
|
|
1901
|
+
}
|
|
1902
|
+
function D() {
|
|
1903
|
+
var _;
|
|
1904
|
+
if (o.value && document && p.value) {
|
|
1905
|
+
const c = document == null ? void 0 : document.getElementById(
|
|
1906
|
+
p.value
|
|
1899
1907
|
);
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1908
|
+
c && (((_ = c.children) == null ? void 0 : _.length) > 0 ? (e.value = !0, d.value || (d.value = new Ke(
|
|
1909
|
+
h.value,
|
|
1910
|
+
c
|
|
1903
1911
|
))) : a.value = !1);
|
|
1904
1912
|
}
|
|
1905
1913
|
}
|
|
1906
|
-
return (
|
|
1914
|
+
return (_, c) => (m(), g("li", {
|
|
1907
1915
|
ref_key: "_ref",
|
|
1908
|
-
ref:
|
|
1909
|
-
id:
|
|
1910
|
-
onMouseover:
|
|
1911
|
-
var
|
|
1912
|
-
return (
|
|
1916
|
+
ref: h,
|
|
1917
|
+
id: _.id,
|
|
1918
|
+
onMouseover: c[2] || (c[2] = async (s) => {
|
|
1919
|
+
var y;
|
|
1920
|
+
return (y = d.value) == null ? void 0 : y.enableFollow();
|
|
1913
1921
|
}),
|
|
1914
|
-
onMouseleave:
|
|
1915
|
-
var
|
|
1916
|
-
return (
|
|
1922
|
+
onMouseleave: c[3] || (c[3] = async (s) => {
|
|
1923
|
+
var y;
|
|
1924
|
+
return (y = d.value) == null ? void 0 : y.disableFollow();
|
|
1917
1925
|
}),
|
|
1918
|
-
onMousemove:
|
|
1919
|
-
var
|
|
1920
|
-
return (
|
|
1926
|
+
onMousemove: c[4] || (c[4] = async (s) => {
|
|
1927
|
+
var y;
|
|
1928
|
+
return (y = d.value) == null ? void 0 : y.followByMouseEvent(s);
|
|
1921
1929
|
}),
|
|
1922
|
-
class:
|
|
1923
|
-
"data-width":
|
|
1924
|
-
"data-icon":
|
|
1925
|
-
"data-hide-icon":
|
|
1926
|
-
"data-active":
|
|
1927
|
-
"aria-disabled":
|
|
1930
|
+
class: E(f(N)("db-navigation-item", t.class)),
|
|
1931
|
+
"data-width": _.width,
|
|
1932
|
+
"data-icon": _.icon,
|
|
1933
|
+
"data-hide-icon": f(P)(_.showIcon),
|
|
1934
|
+
"data-active": _.active,
|
|
1935
|
+
"aria-disabled": f(V)(_.disabled)
|
|
1928
1936
|
}, [
|
|
1929
|
-
a.value ?
|
|
1930
|
-
|
|
1931
|
-
L(
|
|
1932
|
-
], 64)) :
|
|
1937
|
+
a.value ? M("", !0) : (m(), g(S, { key: 0 }, [
|
|
1938
|
+
_.text ? (m(), g(S, { key: 0 }, [
|
|
1939
|
+
L(k(_.text), 1)
|
|
1940
|
+
], 64)) : w(_.$slots, "default", { key: 1 })
|
|
1933
1941
|
], 64)),
|
|
1934
|
-
a.value ? (m(), g(
|
|
1935
|
-
|
|
1942
|
+
a.value ? (m(), g(S, { key: 1 }, [
|
|
1943
|
+
I("button", {
|
|
1936
1944
|
class: "db-navigation-item-expand-button",
|
|
1937
1945
|
"aria-haspopup": e.value,
|
|
1938
|
-
"aria-expanded":
|
|
1939
|
-
disabled:
|
|
1940
|
-
onClick:
|
|
1946
|
+
"aria-expanded": v.value,
|
|
1947
|
+
disabled: _.disabled,
|
|
1948
|
+
onClick: c[0] || (c[0] = async (s) => B(s))
|
|
1941
1949
|
}, [
|
|
1942
|
-
|
|
1943
|
-
L(
|
|
1944
|
-
], 64)) :
|
|
1945
|
-
], 8,
|
|
1946
|
-
|
|
1950
|
+
_.text ? (m(), g(S, { key: 0 }, [
|
|
1951
|
+
L(k(_.text), 1)
|
|
1952
|
+
], 64)) : w(_.$slots, "default", { key: 1 })
|
|
1953
|
+
], 8, Ga),
|
|
1954
|
+
I("menu", {
|
|
1947
1955
|
class: "db-sub-navigation",
|
|
1948
|
-
|
|
1956
|
+
"data-auto-close": l.value,
|
|
1957
|
+
id: p.value,
|
|
1958
|
+
onClick: c[1] || (c[1] = async (s) => n(s))
|
|
1949
1959
|
}, [
|
|
1950
|
-
e.value ? (m(), g("div",
|
|
1951
|
-
O(
|
|
1960
|
+
e.value ? (m(), g("div", Oa, [
|
|
1961
|
+
O(oe, {
|
|
1952
1962
|
icon: "arrow_left",
|
|
1953
1963
|
variant: "ghost",
|
|
1954
|
-
id:
|
|
1955
|
-
onClick: (
|
|
1964
|
+
id: _.backButtonId,
|
|
1965
|
+
onClick: (s) => $(s)
|
|
1956
1966
|
}, {
|
|
1957
|
-
default:
|
|
1958
|
-
L(
|
|
1967
|
+
default: R(() => [
|
|
1968
|
+
L(k(_.backButtonText ?? f($e)), 1)
|
|
1959
1969
|
]),
|
|
1960
1970
|
_: 1
|
|
1961
1971
|
}, 8, ["id", "onClick"])
|
|
1962
|
-
])) :
|
|
1963
|
-
|
|
1964
|
-
], 8,
|
|
1965
|
-
], 64)) :
|
|
1966
|
-
], 42,
|
|
1972
|
+
])) : M("", !0),
|
|
1973
|
+
w(_.$slots, "sub-navigation")
|
|
1974
|
+
], 8, qa)
|
|
1975
|
+
], 64)) : M("", !0)
|
|
1976
|
+
], 42, Va));
|
|
1967
1977
|
}
|
|
1968
|
-
}),
|
|
1978
|
+
}), Wa = ["id"], Xa = ["aria-disabled", "open"], Ha = /* @__PURE__ */ A({
|
|
1969
1979
|
__name: "accordion-item",
|
|
1970
1980
|
props: {
|
|
1971
1981
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -1981,43 +1991,43 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1981
1991
|
autofocus: { type: Boolean },
|
|
1982
1992
|
onToggle: { type: Function, default: void 0 }
|
|
1983
1993
|
},
|
|
1984
|
-
setup(
|
|
1985
|
-
const
|
|
1986
|
-
|
|
1987
|
-
|
|
1994
|
+
setup(i) {
|
|
1995
|
+
const t = i, o = u(ee), e = u(!1), a = u(null);
|
|
1996
|
+
U(() => {
|
|
1997
|
+
o.value = t.id || "accordion-item-" + G(), t.defaultOpen && (e.value = t.defaultOpen);
|
|
1988
1998
|
});
|
|
1989
|
-
function
|
|
1999
|
+
function v(l) {
|
|
1990
2000
|
l == null || l.preventDefault();
|
|
1991
2001
|
const p = !e.value;
|
|
1992
|
-
|
|
2002
|
+
t.onToggle && t.onToggle(p), e.value = p;
|
|
1993
2003
|
}
|
|
1994
2004
|
return (l, p) => (m(), g("li", {
|
|
1995
|
-
id:
|
|
1996
|
-
class:
|
|
2005
|
+
id: o.value,
|
|
2006
|
+
class: E(f(N)("db-accordion-item", t.class))
|
|
1997
2007
|
}, [
|
|
1998
|
-
|
|
1999
|
-
"aria-disabled":
|
|
2008
|
+
I("details", {
|
|
2009
|
+
"aria-disabled": f(V)(l.disabled),
|
|
2000
2010
|
ref_key: "_ref",
|
|
2001
2011
|
ref: a,
|
|
2002
2012
|
open: e.value
|
|
2003
2013
|
}, [
|
|
2004
|
-
|
|
2005
|
-
onClick: p[0] || (p[0] = async (
|
|
2014
|
+
I("summary", {
|
|
2015
|
+
onClick: p[0] || (p[0] = async (d) => v(d))
|
|
2006
2016
|
}, [
|
|
2007
|
-
l.headlinePlain ? (m(), g(
|
|
2008
|
-
L(
|
|
2009
|
-
], 64)) :
|
|
2010
|
-
l.headlinePlain ?
|
|
2017
|
+
l.headlinePlain ? (m(), g(S, { key: 0 }, [
|
|
2018
|
+
L(k(l.headlinePlain), 1)
|
|
2019
|
+
], 64)) : M("", !0),
|
|
2020
|
+
l.headlinePlain ? M("", !0) : w(l.$slots, "headline", { key: 1 })
|
|
2011
2021
|
]),
|
|
2012
|
-
|
|
2013
|
-
l.text ? (m(), g(
|
|
2014
|
-
L(
|
|
2015
|
-
], 64)) :
|
|
2022
|
+
I("div", null, [
|
|
2023
|
+
l.text ? (m(), g(S, { key: 0 }, [
|
|
2024
|
+
L(k(l.text), 1)
|
|
2025
|
+
], 64)) : w(l.$slots, "default", { key: 1 })
|
|
2016
2026
|
])
|
|
2017
|
-
], 8,
|
|
2018
|
-
], 10,
|
|
2027
|
+
], 8, Xa)
|
|
2028
|
+
], 10, Wa));
|
|
2019
2029
|
}
|
|
2020
|
-
}),
|
|
2030
|
+
}), ja = ["id", "data-variant"], zt = /* @__PURE__ */ A({
|
|
2021
2031
|
__name: "accordion",
|
|
2022
2032
|
props: {
|
|
2023
2033
|
behavior: { default: void 0 },
|
|
@@ -2033,26 +2043,26 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2033
2043
|
id: { default: void 0 },
|
|
2034
2044
|
autofocus: { type: Boolean }
|
|
2035
2045
|
},
|
|
2036
|
-
setup(
|
|
2037
|
-
const
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
}),
|
|
2041
|
-
() => [a.value,
|
|
2046
|
+
setup(i) {
|
|
2047
|
+
const t = i, o = u(ee), e = u(""), a = u(!1), v = u(!1), l = u(null);
|
|
2048
|
+
U(() => {
|
|
2049
|
+
o.value = t.id || "accordion-" + G(), a.value = !0, v.value = !0;
|
|
2050
|
+
}), z(
|
|
2051
|
+
() => [a.value, t.name, t.behavior, o.value],
|
|
2042
2052
|
() => {
|
|
2043
|
-
a.value && (
|
|
2053
|
+
a.value && (t.behavior === "single" ? t.name ? e.value !== t.name && (e.value = t.name) : e.value !== o.value && o.value && (e.value = o.value) : e.value = "");
|
|
2044
2054
|
},
|
|
2045
2055
|
{
|
|
2046
2056
|
immediate: !0,
|
|
2047
2057
|
flush: "post"
|
|
2048
2058
|
}
|
|
2049
|
-
),
|
|
2059
|
+
), z(
|
|
2050
2060
|
() => [l.value, e.value],
|
|
2051
2061
|
() => {
|
|
2052
2062
|
if (l.value) {
|
|
2053
|
-
const
|
|
2054
|
-
if (
|
|
2055
|
-
for (const h of Array.from(
|
|
2063
|
+
const d = l.value.getElementsByTagName("details");
|
|
2064
|
+
if (d)
|
|
2065
|
+
for (const h of Array.from(d))
|
|
2056
2066
|
e.value === "" ? h.removeAttribute("name") : h.name = e.value;
|
|
2057
2067
|
}
|
|
2058
2068
|
},
|
|
@@ -2060,23 +2070,23 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2060
2070
|
immediate: !0,
|
|
2061
2071
|
flush: "post"
|
|
2062
2072
|
}
|
|
2063
|
-
),
|
|
2064
|
-
() => [l.value,
|
|
2073
|
+
), z(
|
|
2074
|
+
() => [l.value, v.value, t.initOpenIndex],
|
|
2065
2075
|
() => {
|
|
2066
|
-
var
|
|
2067
|
-
if (l.value &&
|
|
2068
|
-
if (
|
|
2076
|
+
var d;
|
|
2077
|
+
if (l.value && v.value) {
|
|
2078
|
+
if (t.initOpenIndex && ((d = t.initOpenIndex) == null ? void 0 : d.length) > 0) {
|
|
2069
2079
|
const h = l.value.getElementsByTagName("details");
|
|
2070
2080
|
if (h) {
|
|
2071
|
-
const
|
|
2081
|
+
const n = t.behavior === "single" && t.initOpenIndex.length > 1 ? [t.initOpenIndex[0]] : t.initOpenIndex;
|
|
2072
2082
|
Array.from(h).forEach(
|
|
2073
|
-
(B,
|
|
2074
|
-
|
|
2083
|
+
(B, $) => {
|
|
2084
|
+
n.includes($) && (B.open = !0);
|
|
2075
2085
|
}
|
|
2076
2086
|
);
|
|
2077
2087
|
}
|
|
2078
2088
|
}
|
|
2079
|
-
|
|
2089
|
+
v.value = !1;
|
|
2080
2090
|
}
|
|
2081
2091
|
},
|
|
2082
2092
|
{
|
|
@@ -2084,31 +2094,31 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2084
2094
|
flush: "post"
|
|
2085
2095
|
}
|
|
2086
2096
|
);
|
|
2087
|
-
function p(
|
|
2097
|
+
function p(d) {
|
|
2088
2098
|
try {
|
|
2089
|
-
return typeof
|
|
2099
|
+
return typeof d == "string" ? JSON.parse(d) : d;
|
|
2090
2100
|
} catch (h) {
|
|
2091
2101
|
console.error(h);
|
|
2092
2102
|
}
|
|
2093
2103
|
return [];
|
|
2094
2104
|
}
|
|
2095
|
-
return (
|
|
2105
|
+
return (d, h) => (m(), g("ul", {
|
|
2096
2106
|
ref_key: "_ref",
|
|
2097
2107
|
ref: l,
|
|
2098
|
-
id:
|
|
2099
|
-
class:
|
|
2100
|
-
"data-variant":
|
|
2108
|
+
id: o.value,
|
|
2109
|
+
class: E(f(N)("db-accordion", t.class)),
|
|
2110
|
+
"data-variant": d.variant
|
|
2101
2111
|
}, [
|
|
2102
|
-
|
|
2103
|
-
|
|
2112
|
+
d.items ? M("", !0) : w(d.$slots, "default", { key: 0 }),
|
|
2113
|
+
d.items ? (m(!0), g(S, { key: 1 }, ie(p(d.items), (n, B) => (m(), X(Ha, {
|
|
2104
2114
|
key: `accordion-item-${B}`,
|
|
2105
|
-
headlinePlain:
|
|
2106
|
-
disabled:
|
|
2107
|
-
text:
|
|
2108
|
-
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) :
|
|
2109
|
-
], 10,
|
|
2115
|
+
headlinePlain: n.headlinePlain,
|
|
2116
|
+
disabled: n.disabled,
|
|
2117
|
+
text: n.text
|
|
2118
|
+
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : M("", !0)
|
|
2119
|
+
], 10, ja));
|
|
2110
2120
|
}
|
|
2111
|
-
}),
|
|
2121
|
+
}), Ya = ["id", "aria-labelledby"], Rt = /* @__PURE__ */ A({
|
|
2112
2122
|
__name: "navigation",
|
|
2113
2123
|
props: {
|
|
2114
2124
|
children: { default: void 0 },
|
|
@@ -2119,23 +2129,23 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2119
2129
|
autofocus: { type: Boolean },
|
|
2120
2130
|
labelledBy: { default: void 0 }
|
|
2121
2131
|
},
|
|
2122
|
-
setup(
|
|
2123
|
-
const
|
|
2124
|
-
return
|
|
2125
|
-
|
|
2126
|
-
}), (a,
|
|
2132
|
+
setup(i) {
|
|
2133
|
+
const t = i, o = u(ee), e = u(null);
|
|
2134
|
+
return U(() => {
|
|
2135
|
+
o.value = t.id || "navigation-" + G();
|
|
2136
|
+
}), (a, v) => (m(), g("nav", {
|
|
2127
2137
|
ref_key: "_ref",
|
|
2128
2138
|
ref: e,
|
|
2129
|
-
id:
|
|
2139
|
+
id: o.value,
|
|
2130
2140
|
"aria-labelledby": a.labelledBy,
|
|
2131
|
-
class:
|
|
2141
|
+
class: E(f(N)("db-navigation", t.class))
|
|
2132
2142
|
}, [
|
|
2133
|
-
|
|
2134
|
-
|
|
2143
|
+
I("menu", null, [
|
|
2144
|
+
w(a.$slots, "default")
|
|
2135
2145
|
])
|
|
2136
|
-
], 10,
|
|
2146
|
+
], 10, Ya));
|
|
2137
2147
|
}
|
|
2138
|
-
}),
|
|
2148
|
+
}), Ka = ["id"], Ja = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Ut = /* @__PURE__ */ A({
|
|
2139
2149
|
__name: "popover",
|
|
2140
2150
|
props: {
|
|
2141
2151
|
open: { type: Boolean, default: void 0 },
|
|
@@ -2153,28 +2163,28 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2153
2163
|
animation: { type: Boolean, default: void 0 },
|
|
2154
2164
|
width: { default: void 0 }
|
|
2155
2165
|
},
|
|
2156
|
-
setup(
|
|
2157
|
-
const
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
}),
|
|
2161
|
-
() => [a.value,
|
|
2166
|
+
setup(i) {
|
|
2167
|
+
const t = i, o = u(!1), e = u(!1), a = u(null);
|
|
2168
|
+
U(() => {
|
|
2169
|
+
o.value = !0;
|
|
2170
|
+
}), z(
|
|
2171
|
+
() => [a.value, o.value],
|
|
2162
2172
|
() => {
|
|
2163
|
-
if (a.value &&
|
|
2164
|
-
const
|
|
2165
|
-
|
|
2173
|
+
if (a.value && o.value) {
|
|
2174
|
+
const d = p();
|
|
2175
|
+
d && (d.ariaHasPopup = "true"), o.value = !1;
|
|
2166
2176
|
}
|
|
2167
2177
|
},
|
|
2168
2178
|
{
|
|
2169
2179
|
immediate: !0,
|
|
2170
2180
|
flush: "post"
|
|
2171
2181
|
}
|
|
2172
|
-
),
|
|
2182
|
+
), z(
|
|
2173
2183
|
() => [a.value, e.value],
|
|
2174
2184
|
() => {
|
|
2175
2185
|
if (a.value) {
|
|
2176
|
-
const
|
|
2177
|
-
|
|
2186
|
+
const d = p();
|
|
2187
|
+
d && (d.ariaExpanded = (!!e.value).toString());
|
|
2178
2188
|
}
|
|
2179
2189
|
},
|
|
2180
2190
|
{
|
|
@@ -2182,52 +2192,52 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2182
2192
|
flush: "post"
|
|
2183
2193
|
}
|
|
2184
2194
|
);
|
|
2185
|
-
function
|
|
2195
|
+
function v() {
|
|
2186
2196
|
if (e.value = !0, !a.value) return;
|
|
2187
|
-
const
|
|
2188
|
-
|
|
2197
|
+
const d = a.value.querySelector("article");
|
|
2198
|
+
d && ne(d);
|
|
2189
2199
|
}
|
|
2190
|
-
function l(
|
|
2191
|
-
const h =
|
|
2200
|
+
function l(d) {
|
|
2201
|
+
const h = d.target;
|
|
2192
2202
|
(!h.parentNode || h.parentNode.querySelector(":focus") !== h && h.parentNode.querySelector(":focus-within") !== h && h.parentNode.querySelector(":hover") !== h) && (e.value = !1);
|
|
2193
2203
|
}
|
|
2194
2204
|
function p() {
|
|
2195
|
-
var
|
|
2205
|
+
var d;
|
|
2196
2206
|
if (a.value) {
|
|
2197
2207
|
const h = Array.from(a.value.children);
|
|
2198
2208
|
if (h.length >= 2) {
|
|
2199
|
-
const
|
|
2200
|
-
return
|
|
2209
|
+
const n = h[0];
|
|
2210
|
+
return n.tagName.includes("-") ? ((d = n.children) == null ? void 0 : d.length) > 0 ? n.children[0] : null : n;
|
|
2201
2211
|
}
|
|
2202
2212
|
}
|
|
2203
2213
|
return null;
|
|
2204
2214
|
}
|
|
2205
|
-
return (
|
|
2215
|
+
return (d, h) => (m(), g("div", {
|
|
2206
2216
|
ref_key: "_ref",
|
|
2207
2217
|
ref: a,
|
|
2208
|
-
id:
|
|
2209
|
-
class:
|
|
2210
|
-
onFocus: h[0] || (h[0] = async (
|
|
2211
|
-
onBlur: h[1] || (h[1] = async (
|
|
2212
|
-
onMouseenter: h[2] || (h[2] = async (
|
|
2213
|
-
onMouseleave: h[3] || (h[3] = async (
|
|
2218
|
+
id: d.id,
|
|
2219
|
+
class: E(f(N)("db-popover", t.class)),
|
|
2220
|
+
onFocus: h[0] || (h[0] = async (n) => v()),
|
|
2221
|
+
onBlur: h[1] || (h[1] = async (n) => l(n)),
|
|
2222
|
+
onMouseenter: h[2] || (h[2] = async (n) => v()),
|
|
2223
|
+
onMouseleave: h[3] || (h[3] = async (n) => l(n))
|
|
2214
2224
|
}, [
|
|
2215
|
-
|
|
2216
|
-
|
|
2225
|
+
w(d.$slots, "trigger"),
|
|
2226
|
+
I("article", {
|
|
2217
2227
|
class: "db-popover-content",
|
|
2218
|
-
"data-spacing":
|
|
2219
|
-
"data-gap":
|
|
2220
|
-
"data-animation":
|
|
2221
|
-
"data-open":
|
|
2222
|
-
"data-delay":
|
|
2223
|
-
"data-width":
|
|
2224
|
-
"data-placement":
|
|
2228
|
+
"data-spacing": d.spacing,
|
|
2229
|
+
"data-gap": f(V)(d.gap),
|
|
2230
|
+
"data-animation": f(V)(d.animation ?? !0),
|
|
2231
|
+
"data-open": d.open,
|
|
2232
|
+
"data-delay": d.delay,
|
|
2233
|
+
"data-width": d.width,
|
|
2234
|
+
"data-placement": d.placement
|
|
2225
2235
|
}, [
|
|
2226
|
-
|
|
2227
|
-
], 8,
|
|
2228
|
-
], 42,
|
|
2236
|
+
w(d.$slots, "default")
|
|
2237
|
+
], 8, Ja)
|
|
2238
|
+
], 42, Ka));
|
|
2229
2239
|
}
|
|
2230
|
-
}),
|
|
2240
|
+
}), Qa = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], Pt = /* @__PURE__ */ A({
|
|
2231
2241
|
__name: "tooltip",
|
|
2232
2242
|
props: {
|
|
2233
2243
|
showArrow: { type: Boolean, default: void 0 },
|
|
@@ -2243,18 +2253,18 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2243
2253
|
animation: { type: Boolean, default: void 0 },
|
|
2244
2254
|
width: { default: void 0 }
|
|
2245
2255
|
},
|
|
2246
|
-
setup(
|
|
2247
|
-
const
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
}),
|
|
2256
|
+
setup(i) {
|
|
2257
|
+
const t = i, o = u(ee), e = u(!1), a = u(null);
|
|
2258
|
+
U(() => {
|
|
2259
|
+
o.value = t.id || "tooltip-" + G(), e.value = !0;
|
|
2260
|
+
}), z(
|
|
2251
2261
|
() => [a.value, e.value],
|
|
2252
2262
|
() => {
|
|
2253
|
-
if (a.value && e.value &&
|
|
2263
|
+
if (a.value && e.value && o.value) {
|
|
2254
2264
|
let p = a.value.parentElement;
|
|
2255
|
-
p && p.localName.includes("tooltip") && (p = p.parentElement), p && (["mouseenter", "focus"].forEach((
|
|
2256
|
-
p.addEventListener(
|
|
2257
|
-
}), p.setAttribute("data-has-tooltip", "true"), p.setAttribute("aria-describedby",
|
|
2265
|
+
p && p.localName.includes("tooltip") && (p = p.parentElement), p && (["mouseenter", "focus"].forEach((d) => {
|
|
2266
|
+
p.addEventListener(d, () => l());
|
|
2267
|
+
}), p.setAttribute("data-has-tooltip", "true"), p.setAttribute("aria-describedby", o.value)), e.value = !1;
|
|
2258
2268
|
}
|
|
2259
2269
|
},
|
|
2260
2270
|
{
|
|
@@ -2262,32 +2272,32 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2262
2272
|
flush: "post"
|
|
2263
2273
|
}
|
|
2264
2274
|
);
|
|
2265
|
-
function
|
|
2275
|
+
function v(p) {
|
|
2266
2276
|
p.stopPropagation();
|
|
2267
2277
|
}
|
|
2268
2278
|
function l() {
|
|
2269
|
-
a.value &&
|
|
2279
|
+
a.value && ne(a.value);
|
|
2270
2280
|
}
|
|
2271
|
-
return (p,
|
|
2281
|
+
return (p, d) => (m(), g("i", {
|
|
2272
2282
|
role: "tooltip",
|
|
2273
2283
|
"aria-hidden": "true",
|
|
2274
2284
|
"data-gap": "true",
|
|
2275
2285
|
ref_key: "_ref",
|
|
2276
2286
|
ref: a,
|
|
2277
|
-
class:
|
|
2278
|
-
id:
|
|
2287
|
+
class: E(f(N)("db-tooltip", t.class)),
|
|
2288
|
+
id: o.value,
|
|
2279
2289
|
"data-emphasis": p.emphasis,
|
|
2280
|
-
"data-animation":
|
|
2290
|
+
"data-animation": f(V)(p.animation ?? !0),
|
|
2281
2291
|
"data-delay": p.delay,
|
|
2282
2292
|
"data-width": p.width,
|
|
2283
|
-
"data-show-arrow":
|
|
2293
|
+
"data-show-arrow": f(V)(p.showArrow ?? !0),
|
|
2284
2294
|
"data-placement": p.placement,
|
|
2285
|
-
onClick:
|
|
2295
|
+
onClick: d[0] || (d[0] = async (h) => v(h))
|
|
2286
2296
|
}, [
|
|
2287
|
-
|
|
2288
|
-
], 10,
|
|
2297
|
+
w(p.$slots, "default")
|
|
2298
|
+
], 10, Qa));
|
|
2289
2299
|
}
|
|
2290
|
-
}),
|
|
2300
|
+
}), Za = ["id"], xa = { role: "tablist" }, et = /* @__PURE__ */ A({
|
|
2291
2301
|
__name: "tab-list",
|
|
2292
2302
|
props: {
|
|
2293
2303
|
children: { default: void 0 },
|
|
@@ -2297,22 +2307,22 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2297
2307
|
id: { default: void 0 },
|
|
2298
2308
|
autofocus: { type: Boolean }
|
|
2299
2309
|
},
|
|
2300
|
-
setup(
|
|
2301
|
-
const
|
|
2302
|
-
return
|
|
2303
|
-
|
|
2304
|
-
}), (a,
|
|
2310
|
+
setup(i) {
|
|
2311
|
+
const t = i, o = u(ee), e = u(null);
|
|
2312
|
+
return U(() => {
|
|
2313
|
+
o.value = t.id || "tab-list-" + G();
|
|
2314
|
+
}), (a, v) => (m(), g("div", {
|
|
2305
2315
|
ref_key: "_ref",
|
|
2306
2316
|
ref: e,
|
|
2307
|
-
id:
|
|
2308
|
-
class:
|
|
2317
|
+
id: o.value,
|
|
2318
|
+
class: E(f(N)("db-tab-list", t.class))
|
|
2309
2319
|
}, [
|
|
2310
|
-
|
|
2311
|
-
|
|
2320
|
+
I("ul", xa, [
|
|
2321
|
+
w(a.$slots, "default")
|
|
2312
2322
|
])
|
|
2313
|
-
], 10,
|
|
2323
|
+
], 10, Za));
|
|
2314
2324
|
}
|
|
2315
|
-
}),
|
|
2325
|
+
}), at = ["id", "aria-labelledby"], tt = /* @__PURE__ */ A({
|
|
2316
2326
|
__name: "tab-panel",
|
|
2317
2327
|
props: {
|
|
2318
2328
|
content: { default: void 0 },
|
|
@@ -2324,24 +2334,24 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2324
2334
|
autofocus: { type: Boolean },
|
|
2325
2335
|
labelledBy: { default: void 0 }
|
|
2326
2336
|
},
|
|
2327
|
-
setup(
|
|
2328
|
-
const
|
|
2329
|
-
return
|
|
2337
|
+
setup(i) {
|
|
2338
|
+
const t = i, o = u(null);
|
|
2339
|
+
return U(() => {
|
|
2330
2340
|
}), (e, a) => (m(), g("section", {
|
|
2331
2341
|
role: "tabpanel",
|
|
2332
2342
|
ref_key: "_ref",
|
|
2333
|
-
ref:
|
|
2334
|
-
class:
|
|
2343
|
+
ref: o,
|
|
2344
|
+
class: E(f(N)("db-tab-panel", t.class)),
|
|
2335
2345
|
id: e.id,
|
|
2336
2346
|
"aria-labelledby": e.labelledBy
|
|
2337
2347
|
}, [
|
|
2338
|
-
e.content ? (m(), g(
|
|
2339
|
-
L(
|
|
2340
|
-
], 64)) :
|
|
2341
|
-
|
|
2342
|
-
], 10,
|
|
2348
|
+
e.content ? (m(), g(S, { key: 0 }, [
|
|
2349
|
+
L(k(e.content), 1)
|
|
2350
|
+
], 64)) : M("", !0),
|
|
2351
|
+
w(e.$slots, "default")
|
|
2352
|
+
], 10, at));
|
|
2343
2353
|
}
|
|
2344
|
-
}),
|
|
2354
|
+
}), it = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], Vt = /* @__PURE__ */ A({
|
|
2345
2355
|
__name: "tabs",
|
|
2346
2356
|
props: {
|
|
2347
2357
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -2362,21 +2372,21 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2362
2372
|
width: { default: void 0 },
|
|
2363
2373
|
alignment: { default: void 0 }
|
|
2364
2374
|
},
|
|
2365
|
-
setup(
|
|
2366
|
-
const
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
}),
|
|
2370
|
-
() => [
|
|
2375
|
+
setup(i) {
|
|
2376
|
+
const t = i, o = u("tabs-" + G()), e = u(""), a = u(!1), v = u(!1), l = u(!1), p = u(null), d = u(null);
|
|
2377
|
+
U(() => {
|
|
2378
|
+
o.value = t.id || o.value, e.value = `tabs-${t.name || G()}`, a.value = !0;
|
|
2379
|
+
}), z(
|
|
2380
|
+
() => [d.value, a.value],
|
|
2371
2381
|
() => {
|
|
2372
|
-
if (
|
|
2373
|
-
|
|
2374
|
-
const
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
(
|
|
2382
|
+
if (d.value && a.value) {
|
|
2383
|
+
$(), D(!0);
|
|
2384
|
+
const c = d.value.querySelector(".db-tab-list");
|
|
2385
|
+
c && new MutationObserver((y) => {
|
|
2386
|
+
y.forEach((r) => {
|
|
2387
|
+
(r.removedNodes.length || r.addedNodes.length) && ($(), D());
|
|
2378
2388
|
});
|
|
2379
|
-
}).observe(
|
|
2389
|
+
}).observe(c, {
|
|
2380
2390
|
childList: !0,
|
|
2381
2391
|
subtree: !0
|
|
2382
2392
|
}), a.value = !1;
|
|
@@ -2387,151 +2397,151 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2387
2397
|
flush: "post"
|
|
2388
2398
|
}
|
|
2389
2399
|
);
|
|
2390
|
-
function h(
|
|
2400
|
+
function h(c) {
|
|
2391
2401
|
try {
|
|
2392
|
-
return typeof
|
|
2393
|
-
} catch (
|
|
2394
|
-
console.error(
|
|
2402
|
+
return typeof c == "string" ? JSON.parse(c) : c;
|
|
2403
|
+
} catch (s) {
|
|
2404
|
+
console.error(s);
|
|
2395
2405
|
}
|
|
2396
2406
|
return [];
|
|
2397
2407
|
}
|
|
2398
|
-
function
|
|
2399
|
-
const
|
|
2400
|
-
|
|
2408
|
+
function n(c) {
|
|
2409
|
+
const s = c.scrollWidth > c.clientWidth;
|
|
2410
|
+
v.value = s && c.scrollLeft > 1, l.value = s && c.scrollLeft < c.scrollWidth - c.clientWidth;
|
|
2401
2411
|
}
|
|
2402
|
-
function B(
|
|
2403
|
-
var
|
|
2404
|
-
let
|
|
2405
|
-
|
|
2412
|
+
function B(c) {
|
|
2413
|
+
var y;
|
|
2414
|
+
let s = t.arrowScrollDistance || 100;
|
|
2415
|
+
c && (s *= -1), (y = p.value) == null || y.scrollBy({
|
|
2406
2416
|
top: 0,
|
|
2407
|
-
left:
|
|
2417
|
+
left: s,
|
|
2408
2418
|
behavior: "smooth"
|
|
2409
2419
|
});
|
|
2410
2420
|
}
|
|
2411
|
-
function
|
|
2412
|
-
if (
|
|
2413
|
-
const
|
|
2414
|
-
if (
|
|
2415
|
-
const
|
|
2416
|
-
|
|
2421
|
+
function $() {
|
|
2422
|
+
if (d.value) {
|
|
2423
|
+
const c = d.value.querySelector(".db-tab-list");
|
|
2424
|
+
if (c) {
|
|
2425
|
+
const s = c.querySelector('[role="tablist"]');
|
|
2426
|
+
s && (s.setAttribute(
|
|
2417
2427
|
"aria-orientation",
|
|
2418
|
-
|
|
2419
|
-
),
|
|
2420
|
-
s
|
|
2428
|
+
t.orientation || "horizontal"
|
|
2429
|
+
), t.behavior === "arrows" && (p.value = s, n(s), s.addEventListener("scroll", () => {
|
|
2430
|
+
n(s);
|
|
2421
2431
|
})));
|
|
2422
2432
|
}
|
|
2423
2433
|
}
|
|
2424
2434
|
}
|
|
2425
|
-
function
|
|
2426
|
-
if (
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2435
|
+
function D(c) {
|
|
2436
|
+
if (d.value) {
|
|
2437
|
+
const s = Array.from(
|
|
2438
|
+
d.value.getElementsByClassName("db-tab-item")
|
|
2429
2439
|
);
|
|
2430
|
-
for (const
|
|
2431
|
-
const T =
|
|
2432
|
-
if (
|
|
2433
|
-
if (!
|
|
2440
|
+
for (const r of s) {
|
|
2441
|
+
const T = s.indexOf(r), b = r.querySelector("label"), C = r.querySelector("input");
|
|
2442
|
+
if (C && b) {
|
|
2443
|
+
if (!C.id) {
|
|
2434
2444
|
const F = `${e.value}-tab-${T}`;
|
|
2435
|
-
b.setAttribute("for", F),
|
|
2445
|
+
b.setAttribute("for", F), C.setAttribute(
|
|
2436
2446
|
"aria-controls",
|
|
2437
2447
|
`${e.value}-tab-panel-${T}`
|
|
2438
|
-
),
|
|
2448
|
+
), C.id = F, C.setAttribute("name", e.value);
|
|
2439
2449
|
}
|
|
2440
|
-
if (
|
|
2441
|
-
const F = !
|
|
2442
|
-
F &&
|
|
2450
|
+
if (c) {
|
|
2451
|
+
const F = !t.initialSelectedMode || t.initialSelectedMode === "auto", te = t.initialSelectedIndex == null && T === 0 || t.initialSelectedIndex === T;
|
|
2452
|
+
F && te && C.click();
|
|
2443
2453
|
}
|
|
2444
2454
|
}
|
|
2445
2455
|
}
|
|
2446
|
-
const
|
|
2447
|
-
|
|
2456
|
+
const y = Array.from(
|
|
2457
|
+
d.value.querySelectorAll(
|
|
2448
2458
|
":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
|
|
2449
2459
|
)
|
|
2450
2460
|
);
|
|
2451
|
-
for (const
|
|
2452
|
-
if (
|
|
2453
|
-
const T =
|
|
2454
|
-
|
|
2461
|
+
for (const r of y) {
|
|
2462
|
+
if (r.id) continue;
|
|
2463
|
+
const T = y.indexOf(r);
|
|
2464
|
+
r.id = `${e.value}-tab-panel-${T}`, r.setAttribute("aria-labelledby", `${e.value}-tab-${T}`);
|
|
2455
2465
|
}
|
|
2456
2466
|
}
|
|
2457
2467
|
}
|
|
2458
|
-
function
|
|
2459
|
-
if (
|
|
2460
|
-
const
|
|
2468
|
+
function _(c) {
|
|
2469
|
+
if (t.onIndexChange && c.target) {
|
|
2470
|
+
const s = c.target.closest("ul"), y = (
|
|
2461
2471
|
// db-tab-item for angular and stencil wrapping elements
|
|
2462
|
-
|
|
2472
|
+
c.target.closest("db-tab-item") ?? c.target.closest("li")
|
|
2463
2473
|
);
|
|
2464
|
-
|
|
2474
|
+
s !== null && y !== null && t.onIndexChange(Array.from(s.childNodes).indexOf(y));
|
|
2465
2475
|
}
|
|
2466
|
-
|
|
2476
|
+
t.onTabSelect && t.onTabSelect(c);
|
|
2467
2477
|
}
|
|
2468
|
-
return (
|
|
2478
|
+
return (c, s) => (m(), g("div", {
|
|
2469
2479
|
ref_key: "_ref",
|
|
2470
|
-
ref:
|
|
2471
|
-
id:
|
|
2472
|
-
class:
|
|
2473
|
-
"data-orientation":
|
|
2474
|
-
"data-scroll-behavior":
|
|
2475
|
-
"data-alignment":
|
|
2476
|
-
"data-width":
|
|
2477
|
-
onInput:
|
|
2480
|
+
ref: d,
|
|
2481
|
+
id: o.value,
|
|
2482
|
+
class: E(f(N)("db-tabs", t.class)),
|
|
2483
|
+
"data-orientation": c.orientation,
|
|
2484
|
+
"data-scroll-behavior": c.behavior,
|
|
2485
|
+
"data-alignment": c.alignment ?? "start",
|
|
2486
|
+
"data-width": c.width ?? "auto",
|
|
2487
|
+
onInput: s[0] || (s[0] = async (y) => _(y))
|
|
2478
2488
|
}, [
|
|
2479
|
-
|
|
2489
|
+
v.value ? (m(), X(oe, {
|
|
2480
2490
|
key: 0,
|
|
2481
2491
|
class: "tabs-scroll-left",
|
|
2482
2492
|
variant: "ghost",
|
|
2483
2493
|
icon: "chevron_left",
|
|
2484
2494
|
type: "button",
|
|
2485
2495
|
noText: !0,
|
|
2486
|
-
onClick: (
|
|
2496
|
+
onClick: (y) => B(!0)
|
|
2487
2497
|
}, {
|
|
2488
|
-
default:
|
|
2498
|
+
default: R(() => s[1] || (s[1] = [
|
|
2489
2499
|
L(" Scroll left ")
|
|
2490
2500
|
])),
|
|
2491
2501
|
_: 1
|
|
2492
|
-
}, 8, ["onClick"])) :
|
|
2493
|
-
|
|
2494
|
-
O(
|
|
2495
|
-
default:
|
|
2496
|
-
(m(!0), g(
|
|
2497
|
-
key:
|
|
2498
|
-
active:
|
|
2499
|
-
label:
|
|
2500
|
-
iconAfter:
|
|
2501
|
-
icon:
|
|
2502
|
-
noText:
|
|
2502
|
+
}, 8, ["onClick"])) : M("", !0),
|
|
2503
|
+
c.tabs ? (m(), g(S, { key: 1 }, [
|
|
2504
|
+
O(et, null, {
|
|
2505
|
+
default: R(() => [
|
|
2506
|
+
(m(!0), g(S, null, ie(h(c.tabs), (y, r) => (m(), X(Sa, {
|
|
2507
|
+
key: c.name + "tab-item" + r,
|
|
2508
|
+
active: y.active,
|
|
2509
|
+
label: y.label,
|
|
2510
|
+
iconAfter: y.iconAfter,
|
|
2511
|
+
icon: y.icon,
|
|
2512
|
+
noText: y.noText
|
|
2503
2513
|
}, null, 8, ["active", "label", "iconAfter", "icon", "noText"]))), 128))
|
|
2504
2514
|
]),
|
|
2505
2515
|
_: 1
|
|
2506
2516
|
}),
|
|
2507
|
-
(m(!0), g(
|
|
2508
|
-
key:
|
|
2509
|
-
content:
|
|
2517
|
+
(m(!0), g(S, null, ie(h(c.tabs), (y, r) => (m(), X(tt, {
|
|
2518
|
+
key: c.name + "tab-panel" + r,
|
|
2519
|
+
content: y.content
|
|
2510
2520
|
}, {
|
|
2511
|
-
default:
|
|
2512
|
-
L(
|
|
2521
|
+
default: R(() => [
|
|
2522
|
+
L(k(y.children), 1)
|
|
2513
2523
|
]),
|
|
2514
2524
|
_: 2
|
|
2515
2525
|
}, 1032, ["content"]))), 128))
|
|
2516
|
-
], 64)) :
|
|
2517
|
-
l.value ? (m(), X(
|
|
2526
|
+
], 64)) : M("", !0),
|
|
2527
|
+
l.value ? (m(), X(oe, {
|
|
2518
2528
|
key: 2,
|
|
2519
2529
|
class: "tabs-scroll-right",
|
|
2520
2530
|
variant: "ghost",
|
|
2521
2531
|
icon: "chevron_right",
|
|
2522
2532
|
type: "button",
|
|
2523
2533
|
noText: !0,
|
|
2524
|
-
onClick: (
|
|
2534
|
+
onClick: (y) => B()
|
|
2525
2535
|
}, {
|
|
2526
|
-
default:
|
|
2536
|
+
default: R(() => s[2] || (s[2] = [
|
|
2527
2537
|
L(" Scroll right ")
|
|
2528
2538
|
])),
|
|
2529
2539
|
_: 1
|
|
2530
|
-
}, 8, ["onClick"])) :
|
|
2531
|
-
|
|
2532
|
-
], 42,
|
|
2540
|
+
}, 8, ["onClick"])) : M("", !0),
|
|
2541
|
+
w(c.$slots, "default")
|
|
2542
|
+
], 42, it));
|
|
2533
2543
|
}
|
|
2534
|
-
}),
|
|
2544
|
+
}), Gt = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], qt = ["medium", "small", "large", "none"], Ot = ["medium", "small", "large", "none"], Wt = ["left", "right", "top", "bottom", "left-start", "left-end", "right-start", "right-end", "top-start", "top-end", "bottom-start", "bottom-end"], Xt = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], Ht = ["horizontal", "vertical"], jt = ["full", "auto"], Yt = ["full", "medium", "large", "small"], Kt = ["none", "slow", "fast"], Jt = ["auto", "fixed"], Qt = ["small", "medium"], ot = ["weak", "strong"], Zt = [...ot, "origin"], xt = ["invalid", "valid", "no-validation"], ei = ["above", "floating"], ai = ["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"], ti = ["time", "true", "false", "date", "page", "step", "location"], ii = ["_self", "_blank", "_parent", "_top"], oi = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], di = ["start", "center"], dt = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], li = /* @__PURE__ */ A({
|
|
2535
2545
|
__name: "stack",
|
|
2536
2546
|
props: {
|
|
2537
2547
|
variant: { default: void 0 },
|
|
@@ -2547,117 +2557,117 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2547
2557
|
autofocus: { type: Boolean },
|
|
2548
2558
|
gap: { default: void 0 }
|
|
2549
2559
|
},
|
|
2550
|
-
setup(
|
|
2551
|
-
const
|
|
2560
|
+
setup(i) {
|
|
2561
|
+
const t = i, o = u(null);
|
|
2552
2562
|
return (e, a) => (m(), g("div", {
|
|
2553
2563
|
ref_key: "_ref",
|
|
2554
|
-
ref:
|
|
2564
|
+
ref: o,
|
|
2555
2565
|
id: e.id,
|
|
2556
|
-
class:
|
|
2566
|
+
class: E(f(N)("db-stack", t.class)),
|
|
2557
2567
|
"data-gap": e.gap,
|
|
2558
2568
|
"data-variant": e.variant,
|
|
2559
2569
|
"data-direction": e.direction,
|
|
2560
2570
|
"data-alignment": e.alignment,
|
|
2561
2571
|
"data-justify-content": e.justifyContent,
|
|
2562
|
-
"data-wrap":
|
|
2572
|
+
"data-wrap": f(V)(e.wrap)
|
|
2563
2573
|
}, [
|
|
2564
|
-
|
|
2565
|
-
], 10,
|
|
2574
|
+
w(e.$slots, "default")
|
|
2575
|
+
], 10, dt));
|
|
2566
2576
|
}
|
|
2567
2577
|
});
|
|
2568
2578
|
export {
|
|
2569
|
-
|
|
2570
|
-
|
|
2579
|
+
di as AlignmentList,
|
|
2580
|
+
ai as AutoCompleteList,
|
|
2571
2581
|
he as COLOR,
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2582
|
+
pt as COLORS,
|
|
2583
|
+
ht as COLORS_SIMPLE,
|
|
2584
|
+
vt as COLOR_CONST,
|
|
2575
2585
|
pe as COLOR_SIMPLE,
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2586
|
+
zt as DBAccordion,
|
|
2587
|
+
Ha as DBAccordionItem,
|
|
2588
|
+
yt as DBBadge,
|
|
2589
|
+
Bt as DBBrand,
|
|
2590
|
+
oe as DBButton,
|
|
2591
|
+
kt as DBCard,
|
|
2592
|
+
wt as DBCheckbox,
|
|
2593
|
+
It as DBDivider,
|
|
2594
|
+
Ye as DBDrawer,
|
|
2595
|
+
_t as DBHeader,
|
|
2596
|
+
$t as DBIcon,
|
|
2587
2597
|
W as DBInfotext,
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2598
|
+
Lt as DBInput,
|
|
2599
|
+
Et as DBLink,
|
|
2600
|
+
Rt as DBNavigation,
|
|
2601
|
+
Mt as DBNavigationItem,
|
|
2602
|
+
gt as DBNotification,
|
|
2603
|
+
Nt as DBPage,
|
|
2604
|
+
Ut as DBPopover,
|
|
2605
|
+
At as DBRadio,
|
|
2606
|
+
Ft as DBSection,
|
|
2607
|
+
Tt as DBSelect,
|
|
2608
|
+
li as DBStack,
|
|
2609
|
+
Ct as DBSwitch,
|
|
2610
|
+
Sa as DBTabItem,
|
|
2611
|
+
et as DBTabList,
|
|
2612
|
+
tt as DBTabPanel,
|
|
2613
|
+
Vt as DBTabs,
|
|
2614
|
+
St as DBTag,
|
|
2615
|
+
Dt as DBTextarea,
|
|
2616
|
+
Pt as DBTooltip,
|
|
2617
|
+
$e as DEFAULT_BACK,
|
|
2618
|
+
Le as DEFAULT_BURGER_MENU,
|
|
2619
|
+
ve as DEFAULT_CLOSE_BUTTON,
|
|
2610
2620
|
ue as DEFAULT_DATALIST_ID_SUFFIX,
|
|
2611
|
-
|
|
2621
|
+
Ee as DEFAULT_ICON,
|
|
2612
2622
|
ee as DEFAULT_ID,
|
|
2613
2623
|
x as DEFAULT_INVALID_MESSAGE,
|
|
2614
2624
|
Q as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
2615
2625
|
le as DEFAULT_LABEL,
|
|
2616
2626
|
K as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2627
|
+
ce as DEFAULT_PLACEHOLDER,
|
|
2628
|
+
se as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
2629
|
+
Ne as DEFAULT_ROWS,
|
|
2620
2630
|
Z as DEFAULT_VALID_MESSAGE,
|
|
2621
2631
|
J as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2632
|
+
Ae as DEFAULT_VIEWPORT,
|
|
2633
|
+
ft as DENSITIES,
|
|
2634
|
+
fe as DENSITY,
|
|
2635
|
+
ct as DENSITY_CONST,
|
|
2636
|
+
Fe as DESKTOP_VIEWPORT,
|
|
2637
|
+
ot as EmphasisList,
|
|
2638
|
+
Xt as GapSpacingList,
|
|
2639
|
+
ei as LabelVariantList,
|
|
2640
|
+
ti as LinkCurrentList,
|
|
2641
|
+
oi as LinkReferrerPolicyList,
|
|
2642
|
+
ii as LinkTargetList,
|
|
2643
|
+
Ot as MarginList,
|
|
2644
|
+
Yt as MaxWidthList,
|
|
2635
2645
|
Ke as NavigationItemSafeTriangle,
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2646
|
+
Ht as OrientationList,
|
|
2647
|
+
Wt as PlacementList,
|
|
2648
|
+
Kt as PopoverDelayList,
|
|
2649
|
+
Jt as PopoverWidthList,
|
|
2640
2650
|
me as SEMANTIC,
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2651
|
+
mt as SEMANTICS,
|
|
2652
|
+
Gt as SemanticList,
|
|
2653
|
+
Qt as SizeList,
|
|
2654
|
+
qt as SpacingList,
|
|
2655
|
+
bt as TESTING_VIEWPORTS,
|
|
2656
|
+
Zt as TagEmphasisList,
|
|
2657
|
+
xt as ValidationList,
|
|
2658
|
+
jt as WidthList,
|
|
2649
2659
|
re as addAttributeToChildren,
|
|
2650
|
-
|
|
2660
|
+
N as cls,
|
|
2651
2661
|
H as delay,
|
|
2652
2662
|
V as getBooleanAsString,
|
|
2653
2663
|
P as getHideProp,
|
|
2654
|
-
|
|
2664
|
+
ne as handleDataOutside,
|
|
2655
2665
|
Y as hasVoiceOver,
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2666
|
+
we as isArrayOfStrings,
|
|
2667
|
+
be as isEventTargetNavigationItem,
|
|
2668
|
+
ke as isInView,
|
|
2659
2669
|
q as stringPropVisible,
|
|
2660
2670
|
G as uuid,
|
|
2661
|
-
|
|
2662
|
-
|
|
2671
|
+
ut as visibleInVX,
|
|
2672
|
+
rt as visibleInVY
|
|
2663
2673
|
};
|