@db-ux/v-core-components 3.1.17 → 3.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +11 -0
- package/agent/Accordion.md +42 -0
- package/agent/AccordionItem.md +31 -0
- package/agent/Badge.md +38 -0
- package/agent/Brand.md +19 -0
- package/agent/Button.md +47 -0
- package/agent/Card.md +29 -0
- package/agent/Checkbox.md +39 -0
- package/agent/CustomSelect.md +79 -0
- package/agent/Divider.md +27 -0
- package/agent/Drawer.md +91 -0
- package/agent/Header.md +35 -0
- package/agent/Icon.md +26 -0
- package/agent/Infotext.md +29 -0
- package/agent/Input.md +48 -0
- package/agent/Link.md +42 -0
- package/agent/Navigation.md +23 -0
- package/agent/NavigationItem.md +29 -0
- package/agent/Notification.md +40 -0
- package/agent/Page.md +33 -0
- package/agent/Popover.md +50 -0
- package/agent/Radio.md +29 -0
- package/agent/Section.md +27 -0
- package/agent/Select.md +70 -0
- package/agent/Stack.md +41 -0
- package/agent/Switch.md +36 -0
- package/agent/TabItem.md +29 -0
- package/agent/Tabs.md +55 -0
- package/agent/Tag.md +38 -0
- package/agent/Textarea.md +43 -0
- package/agent/Tooltip.md +48 -0
- package/agent/_instructions.md +31 -0
- package/dist/components/tabs/model.d.ts +1 -0
- package/dist/db-ux.es.js +1060 -1053
- package/dist/db-ux.umd.js +1 -1
- package/package.json +8 -5
package/dist/db-ux.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const Se = "OVERWRITE_DEFAULT_ID", me = "LABEL SHOULD BE SET",
|
|
3
|
-
var
|
|
4
|
-
const Gi = Object.entries(
|
|
5
|
-
var
|
|
6
|
-
const Wi = Object.entries(
|
|
7
|
-
var
|
|
8
|
-
const Hi = Object.entries(
|
|
1
|
+
import { defineComponent as G, ref as d, onMounted as j, watch as D, createElementBlock as k, openBlock as h, normalizeClass as q, unref as o, createElementVNode as C, createCommentVNode as P, renderSlot as A, Fragment as W, createTextVNode as N, toDisplayString as $, renderList as fe, createBlock as Y, createVNode as ee, withCtx as O, onUnmounted as Ke } from "vue";
|
|
2
|
+
const Se = "OVERWRITE_DEFAULT_ID", me = "LABEL SHOULD BE SET", Je = " ", wa = "MESSAGE SHOULD BE SET", Oe = "-label", He = "-select", de = "-message", ue = "-valid-message", re = "-invalid-message", _e = "-placeholder", Xe = "-datalist", ce = "TODO: Add a validMessage", te = "TODO: Add an invalidMessage", Qe = "Remove", Sa = "Back", Ba = "Selected", La = "BurgerMenu", Ia = "brand", $a = 4, ze = "Close", qi = "density", Ui = "color";
|
|
3
|
+
var Ze = /* @__PURE__ */ ((t) => (t.FUNCTIONAL = "functional", t.REGULAR = "regular", t.EXPRESSIVE = "expressive", t))(Ze || {});
|
|
4
|
+
const Gi = Object.entries(Ze).map(([, t]) => t);
|
|
5
|
+
var xe = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t))(xe || {}), ea = /* @__PURE__ */ ((t) => (t.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", t.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", t.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", t.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", t.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", t.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", t.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", t.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", t.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", t.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", t.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", t.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", t.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", t.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", t.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", t.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", t.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", t.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", t.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", t.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", t.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", t.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", t.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", t.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", t.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", t.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", t.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", t.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", t.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", t.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", t))(ea || {});
|
|
6
|
+
const Wi = Object.entries(ea).map(([, t]) => t), Oi = Object.entries(xe).map(([, t]) => t);
|
|
7
|
+
var aa = /* @__PURE__ */ ((t) => (t.CRITICAL = "critical", t.INFORMATIONAL = "informational", t.WARNING = "warning", t.SUCCESSFUL = "successful", t))(aa || {});
|
|
8
|
+
const Hi = Object.entries(aa).map(([, t]) => t), Ta = {
|
|
9
9
|
width: 390,
|
|
10
10
|
height: 884
|
|
11
11
|
}, Ea = {
|
|
@@ -29,12 +29,12 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
29
29
|
return window.crypto.getRandomValues(new Uint32Array(3)).join("-");
|
|
30
30
|
}
|
|
31
31
|
return Math.random().toString().substring(2);
|
|
32
|
-
},
|
|
32
|
+
}, ta = (t, a) => {
|
|
33
33
|
const n = t.children;
|
|
34
34
|
Object.values(n).forEach((e) => {
|
|
35
|
-
e.setAttribute(a.key, a.value), e.children.length > 0 &&
|
|
35
|
+
e.setAttribute(a.key, a.value), e.children.length > 0 && ta(e, a);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, U = (...t) => {
|
|
38
38
|
let a = "";
|
|
39
39
|
for (const n of t)
|
|
40
40
|
if (n)
|
|
@@ -47,7 +47,7 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
47
47
|
}, _a = (t) => Array.isArray(t) && t.every((a) => typeof a == "string"), Ca = ["Mac", "iPhone", "iPad", "iPod"], ve = () => typeof window < "u" && Ca.some((t) => window.navigator.userAgent.includes(t)), J = (t, a) => new Promise(() => setTimeout(t, a)), F = (t) => {
|
|
48
48
|
if (t != null)
|
|
49
49
|
return String(typeof t == "string" ? !!t : t);
|
|
50
|
-
},
|
|
50
|
+
}, V = (t, a) => {
|
|
51
51
|
if (t != null)
|
|
52
52
|
return typeof t == "string" && a ? !!(a === t || t) : !!t;
|
|
53
53
|
}, ge = (t, a) => {
|
|
@@ -59,7 +59,7 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
59
59
|
}, Z = (t, a) => (a === void 0 || !!a) && !!t, Ye = (t) => t.querySelector('input[type="search"]'), ji = (t, a) => {
|
|
60
60
|
const n = t.id ?? t.value ?? K();
|
|
61
61
|
return `${a}${n}`;
|
|
62
|
-
}, Aa = (t) => t.key !== void 0, Da = ["id"], Na = ["aria-disabled", "name", "open"], Fa = /* @__PURE__ */
|
|
62
|
+
}, Aa = (t) => t.key !== void 0, Da = ["id"], Na = ["aria-disabled", "name", "open"], Fa = /* @__PURE__ */ G({
|
|
63
63
|
__name: "accordion-item",
|
|
64
64
|
props: {
|
|
65
65
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -77,7 +77,7 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
77
77
|
name: { default: void 0 }
|
|
78
78
|
},
|
|
79
79
|
setup(t) {
|
|
80
|
-
const a = t, n =
|
|
80
|
+
const a = t, n = d(Se), e = d(!1), i = d(void 0), u = d(!1), c = d(null);
|
|
81
81
|
j(() => {
|
|
82
82
|
n.value = a.id || "accordion-item-" + K(), a.defaultOpen && (e.value = a.defaultOpen), u.value = !0;
|
|
83
83
|
}), D(
|
|
@@ -99,39 +99,39 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
99
99
|
flush: "post"
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
|
-
function r(
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
a.onToggle && a.onToggle(
|
|
102
|
+
function r(f) {
|
|
103
|
+
f?.preventDefault();
|
|
104
|
+
const s = !e.value;
|
|
105
|
+
a.onToggle && a.onToggle(s), e.value = s;
|
|
106
106
|
}
|
|
107
|
-
return (
|
|
107
|
+
return (f, s) => (h(), k("li", {
|
|
108
108
|
id: n.value,
|
|
109
|
-
class:
|
|
109
|
+
class: q(o(U)("db-accordion-item", a.class))
|
|
110
110
|
}, [
|
|
111
|
-
|
|
112
|
-
"aria-disabled": o(F)(
|
|
111
|
+
C("details", {
|
|
112
|
+
"aria-disabled": o(F)(f.disabled),
|
|
113
113
|
ref_key: "_ref",
|
|
114
114
|
ref: c,
|
|
115
115
|
name: i.value,
|
|
116
116
|
open: e.value
|
|
117
117
|
}, [
|
|
118
|
-
|
|
119
|
-
onClick:
|
|
118
|
+
C("summary", {
|
|
119
|
+
onClick: s[0] || (s[0] = async (m) => r(m))
|
|
120
120
|
}, [
|
|
121
|
-
|
|
122
|
-
N(
|
|
123
|
-
], 64)) :
|
|
124
|
-
|
|
121
|
+
f.headlinePlain ? (h(), k(W, { key: 0 }, [
|
|
122
|
+
N($(f.headlinePlain), 1)
|
|
123
|
+
], 64)) : P("", !0),
|
|
124
|
+
f.headlinePlain ? P("", !0) : A(f.$slots, "headline", { key: 1 })
|
|
125
125
|
]),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
N(
|
|
129
|
-
], 64)) : A(
|
|
126
|
+
C("div", null, [
|
|
127
|
+
f.text ? (h(), k(W, { key: 0 }, [
|
|
128
|
+
N($(f.text), 1)
|
|
129
|
+
], 64)) : A(f.$slots, "default", { key: 1 })
|
|
130
130
|
])
|
|
131
131
|
], 8, Na)
|
|
132
132
|
], 10, Da));
|
|
133
133
|
}
|
|
134
|
-
}), Ma = ["id", "data-variant"], Yi = /* @__PURE__ */
|
|
134
|
+
}), Ma = ["id", "data-variant"], Yi = /* @__PURE__ */ G({
|
|
135
135
|
__name: "accordion",
|
|
136
136
|
props: {
|
|
137
137
|
behavior: { default: void 0 },
|
|
@@ -147,7 +147,7 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
147
147
|
autofocus: { type: [Boolean, String] }
|
|
148
148
|
},
|
|
149
149
|
setup(t) {
|
|
150
|
-
const a = t, n =
|
|
150
|
+
const a = t, n = d(Se), e = d(""), i = d(!1), u = d(!1), c = d(null);
|
|
151
151
|
j(() => {
|
|
152
152
|
n.value = a.id || "accordion-" + K(), i.value = !0, u.value = !0;
|
|
153
153
|
}), D(
|
|
@@ -163,10 +163,10 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
163
163
|
() => [c.value, e.value],
|
|
164
164
|
() => {
|
|
165
165
|
if (c.value) {
|
|
166
|
-
const
|
|
167
|
-
if (
|
|
168
|
-
for (const
|
|
169
|
-
e.value === "" ?
|
|
166
|
+
const f = c.value.getElementsByTagName("details");
|
|
167
|
+
if (f)
|
|
168
|
+
for (const s of Array.from(f))
|
|
169
|
+
e.value === "" ? s.removeAttribute("name") : s.name = e.value ?? "";
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
{
|
|
@@ -178,12 +178,12 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
178
178
|
() => {
|
|
179
179
|
if (c.value && u.value) {
|
|
180
180
|
if (a.initOpenIndex && a.initOpenIndex.length > 0) {
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
184
|
-
Array.from(
|
|
185
|
-
(
|
|
186
|
-
|
|
181
|
+
const f = c.value.getElementsByTagName("details");
|
|
182
|
+
if (f) {
|
|
183
|
+
const s = a.behavior === "single" && a.initOpenIndex.length > 1 ? [a.initOpenIndex[0]] : a.initOpenIndex;
|
|
184
|
+
Array.from(f).forEach(
|
|
185
|
+
(m, I) => {
|
|
186
|
+
s?.includes(I) && (m.open = !0);
|
|
187
187
|
}
|
|
188
188
|
);
|
|
189
189
|
}
|
|
@@ -199,28 +199,28 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
199
199
|
function r() {
|
|
200
200
|
try {
|
|
201
201
|
return typeof a.items == "string" ? JSON.parse(a.items) : a.items;
|
|
202
|
-
} catch (
|
|
203
|
-
console.error(
|
|
202
|
+
} catch (f) {
|
|
203
|
+
console.error(f);
|
|
204
204
|
}
|
|
205
205
|
return [];
|
|
206
206
|
}
|
|
207
|
-
return (
|
|
207
|
+
return (f, s) => (h(), k("ul", {
|
|
208
208
|
ref_key: "_ref",
|
|
209
209
|
ref: c,
|
|
210
210
|
id: n.value,
|
|
211
|
-
class:
|
|
212
|
-
"data-variant":
|
|
211
|
+
class: q(o(U)("db-accordion", a.class)),
|
|
212
|
+
"data-variant": f.variant
|
|
213
213
|
}, [
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
f.items ? P("", !0) : A(f.$slots, "default", { key: 0 }),
|
|
215
|
+
f.items ? (h(!0), k(W, { key: 1 }, fe(r(), (m, I) => (h(), Y(Fa, {
|
|
216
216
|
key: `accordion-item-${I}`,
|
|
217
|
-
headlinePlain:
|
|
218
|
-
disabled:
|
|
219
|
-
text:
|
|
220
|
-
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) :
|
|
217
|
+
headlinePlain: m.headlinePlain,
|
|
218
|
+
disabled: m.disabled,
|
|
219
|
+
text: m.text
|
|
220
|
+
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : P("", !0)
|
|
221
221
|
], 10, Ma));
|
|
222
222
|
}
|
|
223
|
-
}), Ki = ["divider", "card"], Ji = ["multiple", "single"],
|
|
223
|
+
}), Ki = ["divider", "card"], Ji = ["multiple", "single"], za = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], Qi = /* @__PURE__ */ G({
|
|
224
224
|
__name: "badge",
|
|
225
225
|
props: {
|
|
226
226
|
placement: { default: void 0 },
|
|
@@ -236,7 +236,7 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
236
236
|
text: { default: void 0 }
|
|
237
237
|
},
|
|
238
238
|
setup(t) {
|
|
239
|
-
const a = t, n =
|
|
239
|
+
const a = t, n = d(!1), e = d(null);
|
|
240
240
|
return j(() => {
|
|
241
241
|
n.value = !0;
|
|
242
242
|
}), D(
|
|
@@ -251,23 +251,23 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
251
251
|
immediate: !0,
|
|
252
252
|
flush: "post"
|
|
253
253
|
}
|
|
254
|
-
), (i, u) => (
|
|
254
|
+
), (i, u) => (h(), k("span", {
|
|
255
255
|
ref_key: "_ref",
|
|
256
256
|
ref: e,
|
|
257
257
|
id: i.id,
|
|
258
|
-
class:
|
|
258
|
+
class: q(o(U)("db-badge", a.class)),
|
|
259
259
|
"data-semantic": i.semantic,
|
|
260
260
|
"data-size": i.size,
|
|
261
261
|
"data-emphasis": i.emphasis,
|
|
262
262
|
"data-placement": i.placement,
|
|
263
263
|
"data-label": i.placement?.startsWith("corner") && (i.label ?? o(me))
|
|
264
264
|
}, [
|
|
265
|
-
i.text ? (
|
|
266
|
-
N(
|
|
265
|
+
i.text ? (h(), k(W, { key: 0 }, [
|
|
266
|
+
N($(i.text), 1)
|
|
267
267
|
], 64)) : A(i.$slots, "default", { key: 1 })
|
|
268
|
-
], 10,
|
|
268
|
+
], 10, za));
|
|
269
269
|
}
|
|
270
|
-
}), Zi = ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"],
|
|
270
|
+
}), Zi = ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"], Ra = ["data-icon", "data-show-icon", "id"], xi = /* @__PURE__ */ G({
|
|
271
271
|
__name: "brand",
|
|
272
272
|
props: {
|
|
273
273
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -281,21 +281,21 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
281
281
|
text: { default: void 0 }
|
|
282
282
|
},
|
|
283
283
|
setup(t) {
|
|
284
|
-
const a = t, n =
|
|
285
|
-
return (e, i) => (
|
|
284
|
+
const a = t, n = d(null);
|
|
285
|
+
return (e, i) => (h(), k("div", {
|
|
286
286
|
ref_key: "_ref",
|
|
287
287
|
ref: n,
|
|
288
288
|
"data-icon": e.hideLogo ? "none" : e.icon ?? o(Ia),
|
|
289
289
|
"data-show-icon": o(F)(e.showIcon),
|
|
290
290
|
id: e.id,
|
|
291
|
-
class:
|
|
291
|
+
class: q(o(U)("db-brand", a.class))
|
|
292
292
|
}, [
|
|
293
|
-
e.text ? (
|
|
294
|
-
N(
|
|
293
|
+
e.text ? (h(), k(W, { key: 0 }, [
|
|
294
|
+
N($(e.text), 1)
|
|
295
295
|
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
296
|
-
], 10,
|
|
296
|
+
], 10, Ra));
|
|
297
297
|
}
|
|
298
|
-
}), Pa = ["id", "type", "disabled", "data-icon", "data-show-icon", "data-icon-trailing", "data-show-icon-trailing", "data-size", "data-width", "data-variant", "data-no-text", "name", "form", "value"], be = /* @__PURE__ */
|
|
298
|
+
}), Pa = ["id", "type", "disabled", "data-icon", "data-show-icon", "data-icon-trailing", "data-show-icon-trailing", "data-size", "data-width", "data-variant", "data-no-text", "name", "form", "value"], be = /* @__PURE__ */ G({
|
|
299
299
|
__name: "button",
|
|
300
300
|
props: {
|
|
301
301
|
disabled: { type: [Boolean, String], default: void 0 },
|
|
@@ -322,20 +322,20 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
322
322
|
iconTrailing: { default: void 0 }
|
|
323
323
|
},
|
|
324
324
|
setup(t) {
|
|
325
|
-
const a = t, n =
|
|
325
|
+
const a = t, n = d(null);
|
|
326
326
|
function e() {
|
|
327
327
|
return a.type ? a.type : a.onClick ? "button" : "submit";
|
|
328
328
|
}
|
|
329
329
|
function i(u) {
|
|
330
330
|
a.onClick && a.onClick(u);
|
|
331
331
|
}
|
|
332
|
-
return (u, c) => (
|
|
332
|
+
return (u, c) => (h(), k("button", {
|
|
333
333
|
ref_key: "_ref",
|
|
334
334
|
ref: n,
|
|
335
335
|
id: u.id,
|
|
336
|
-
class:
|
|
336
|
+
class: q(o(U)("db-button", a.class)),
|
|
337
337
|
type: e(),
|
|
338
|
-
disabled: o(
|
|
338
|
+
disabled: o(V)(u.disabled, "disabled"),
|
|
339
339
|
"data-icon": u.iconLeading ?? u.icon,
|
|
340
340
|
"data-show-icon": o(F)(u.showIconLeading ?? u.showIcon),
|
|
341
341
|
"data-icon-trailing": u.iconTrailing,
|
|
@@ -349,12 +349,12 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
349
349
|
value: u.value,
|
|
350
350
|
onClick: c[0] || (c[0] = async (r) => i(r))
|
|
351
351
|
}, [
|
|
352
|
-
u.text ? (
|
|
353
|
-
N(
|
|
352
|
+
u.text ? (h(), k(W, { key: 0 }, [
|
|
353
|
+
N($(u.text), 1)
|
|
354
354
|
], 64)) : A(u.$slots, "default", { key: 1 })
|
|
355
355
|
], 10, Pa));
|
|
356
356
|
}
|
|
357
|
-
}), el = ["outlined", "brand", "filled", "ghost"], al = ["button", "reset", "submit"], Va = ["id", "data-behavior", "data-elevation-level", "data-spacing"], tl = /* @__PURE__ */
|
|
357
|
+
}), el = ["outlined", "brand", "filled", "ghost"], al = ["button", "reset", "submit"], Va = ["id", "data-behavior", "data-elevation-level", "data-spacing"], tl = /* @__PURE__ */ G({
|
|
358
358
|
__name: "card",
|
|
359
359
|
props: {
|
|
360
360
|
behavior: { default: void 0 },
|
|
@@ -368,15 +368,15 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
368
368
|
spacing: { default: void 0 }
|
|
369
369
|
},
|
|
370
370
|
setup(t) {
|
|
371
|
-
const a = t, n =
|
|
371
|
+
const a = t, n = d(null);
|
|
372
372
|
function e(i) {
|
|
373
373
|
a.onClick && a.onClick(i);
|
|
374
374
|
}
|
|
375
|
-
return (i, u) => (
|
|
375
|
+
return (i, u) => (h(), k("div", {
|
|
376
376
|
ref_key: "_ref",
|
|
377
377
|
ref: n,
|
|
378
378
|
id: i.id,
|
|
379
|
-
class:
|
|
379
|
+
class: q(o(U)("db-card", a.class)),
|
|
380
380
|
"data-behavior": i.behavior,
|
|
381
381
|
"data-elevation-level": i.elevationLevel,
|
|
382
382
|
"data-spacing": i.spacing,
|
|
@@ -387,7 +387,7 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
387
387
|
}
|
|
388
388
|
}), il = ["static", "interactive"], ll = ["1", "2", "3"], oe = (t, a, n = "value") => {
|
|
389
389
|
t(`update:${n}`, a.target[n]);
|
|
390
|
-
}, qa = ["id", "data-icon", "data-semantic", "data-size", "data-show-icon-leading"], ae = /* @__PURE__ */
|
|
390
|
+
}, qa = ["id", "data-icon", "data-semantic", "data-size", "data-show-icon-leading"], ae = /* @__PURE__ */ G({
|
|
391
391
|
__name: "infotext",
|
|
392
392
|
props: {
|
|
393
393
|
children: { default: void 0 },
|
|
@@ -402,26 +402,26 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
402
402
|
text: { default: void 0 }
|
|
403
403
|
},
|
|
404
404
|
setup(t) {
|
|
405
|
-
const a = t, n =
|
|
406
|
-
return (e, i) => (
|
|
405
|
+
const a = t, n = d(null);
|
|
406
|
+
return (e, i) => (h(), k("span", {
|
|
407
407
|
ref_key: "_ref",
|
|
408
408
|
ref: n,
|
|
409
409
|
id: e.id,
|
|
410
|
-
class:
|
|
410
|
+
class: q(o(U)("db-infotext", a.class)),
|
|
411
411
|
"data-icon": e.icon,
|
|
412
412
|
"data-semantic": e.semantic,
|
|
413
413
|
"data-size": e.size,
|
|
414
414
|
"data-show-icon-leading": o(F)(e.showIcon ?? !0)
|
|
415
415
|
}, [
|
|
416
|
-
e.text ? (
|
|
417
|
-
N(
|
|
416
|
+
e.text ? (h(), k(W, { key: 0 }, [
|
|
417
|
+
N($(e.text), 1)
|
|
418
418
|
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
419
419
|
], 10, qa));
|
|
420
420
|
}
|
|
421
421
|
}), Ua = ["data-size", "data-hide-asterisk", "data-hide-label"], Ga = ["for"], Wa = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Oa = {
|
|
422
422
|
"data-visually-hidden": "true",
|
|
423
423
|
role: "status"
|
|
424
|
-
}, ol = /* @__PURE__ */
|
|
424
|
+
}, ol = /* @__PURE__ */ G({
|
|
425
425
|
__name: "checkbox",
|
|
426
426
|
props: {
|
|
427
427
|
indeterminate: { type: [Boolean, String], default: void 0 },
|
|
@@ -459,15 +459,15 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
459
459
|
},
|
|
460
460
|
emits: ["update:checked"],
|
|
461
461
|
setup(t, { emit: a }) {
|
|
462
|
-
const n = a, e = t, i =
|
|
462
|
+
const n = a, e = t, i = d(!1), u = d(void 0), c = d(void 0), r = d(void 0), f = d(void 0), s = d(void 0), m = d(void 0), I = d(""), w = d(null);
|
|
463
463
|
j(() => {
|
|
464
464
|
i.value = !0;
|
|
465
|
-
const
|
|
466
|
-
u.value =
|
|
465
|
+
const g = e.id ?? `checkbox-${K()}`;
|
|
466
|
+
u.value = g, c.value = g + de, r.value = g + ue, f.value = g + re, s.value = e.invalidMessage || te;
|
|
467
467
|
}), D(
|
|
468
468
|
() => [w.value, e.invalidMessage],
|
|
469
469
|
() => {
|
|
470
|
-
|
|
470
|
+
s.value = e.invalidMessage || w.value?.validationMessage || te;
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
473
|
immediate: !0,
|
|
@@ -477,8 +477,8 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
477
477
|
() => [u.value],
|
|
478
478
|
() => {
|
|
479
479
|
if (u.value) {
|
|
480
|
-
const
|
|
481
|
-
c.value =
|
|
480
|
+
const g = u.value + de;
|
|
481
|
+
c.value = g, r.value = u.value + ue, f.value = u.value + re, Z(e.message, e.showMessage) && (m.value = g), v();
|
|
482
482
|
}
|
|
483
483
|
},
|
|
484
484
|
{
|
|
@@ -488,7 +488,7 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
488
488
|
), D(
|
|
489
489
|
() => [i.value, w.value, e.indeterminate],
|
|
490
490
|
() => {
|
|
491
|
-
w.value && e.indeterminate !== void 0 && (w.value.indeterminate = !!
|
|
491
|
+
w.value && e.indeterminate !== void 0 && (w.value.indeterminate = !!V(e.indeterminate));
|
|
492
492
|
},
|
|
493
493
|
{
|
|
494
494
|
immediate: !0,
|
|
@@ -497,89 +497,89 @@ const Hi = Object.entries(ea).map(([, t]) => t), Ta = {
|
|
|
497
497
|
), D(
|
|
498
498
|
() => [i.value, w.value, e.checked],
|
|
499
499
|
() => {
|
|
500
|
-
i.value && w.value && (e.checked != null && (w.value.checked = !!
|
|
500
|
+
i.value && w.value && (e.checked != null && (w.value.checked = !!V(e.checked)), i.value = !1);
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
503
|
immediate: !0,
|
|
504
504
|
flush: "post"
|
|
505
505
|
}
|
|
506
506
|
);
|
|
507
|
-
function
|
|
507
|
+
function p() {
|
|
508
508
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
!w.value?.validity.valid || e.validation === "invalid" ? (
|
|
510
|
+
function v() {
|
|
511
|
+
!w.value?.validity.valid || e.validation === "invalid" ? (m.value = f.value, s.value = e.invalidMessage || w.value?.validationMessage || te, ve() && (I.value = s.value, J(() => I.value = "", 1e3))) : p() && w.value?.validity.valid && e.required ? (m.value = r.value, ve() && (I.value = e.validMessage ?? ce, J(() => I.value = "", 1e3))) : Z(e.message, e.showMessage) ? m.value = c.value : m.value = void 0;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
e.onChange && e.onChange(
|
|
513
|
+
function S(g) {
|
|
514
|
+
e.onChange && e.onChange(g), oe(n, g, "checked"), v();
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
e.onBlur && e.onBlur(
|
|
516
|
+
function L(g) {
|
|
517
|
+
e.onBlur && e.onBlur(g);
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
e.onFocus && e.onFocus(
|
|
519
|
+
function E(g) {
|
|
520
|
+
e.onFocus && e.onFocus(g);
|
|
521
521
|
}
|
|
522
|
-
return (
|
|
523
|
-
class:
|
|
524
|
-
"data-size":
|
|
525
|
-
"data-hide-asterisk": o(ie)(
|
|
526
|
-
"data-hide-label": o(ie)(
|
|
522
|
+
return (g, y) => (h(), k("div", {
|
|
523
|
+
class: q(o(U)("db-checkbox", e.class)),
|
|
524
|
+
"data-size": g.size,
|
|
525
|
+
"data-hide-asterisk": o(ie)(g.showRequiredAsterisk),
|
|
526
|
+
"data-hide-label": o(ie)(g.showLabel)
|
|
527
527
|
}, [
|
|
528
|
-
|
|
529
|
-
|
|
528
|
+
C("label", { for: u.value }, [
|
|
529
|
+
C("input", {
|
|
530
530
|
type: "checkbox",
|
|
531
|
-
"aria-invalid":
|
|
532
|
-
"data-custom-validity":
|
|
531
|
+
"aria-invalid": g.validation === "invalid",
|
|
532
|
+
"data-custom-validity": g.validation,
|
|
533
533
|
ref_key: "_ref",
|
|
534
534
|
ref: w,
|
|
535
535
|
id: u.value,
|
|
536
|
-
name:
|
|
537
|
-
checked: o(
|
|
538
|
-
disabled: o(
|
|
539
|
-
value:
|
|
540
|
-
required: o(
|
|
541
|
-
onChange:
|
|
542
|
-
onBlur:
|
|
543
|
-
onFocus:
|
|
544
|
-
"aria-describedby":
|
|
536
|
+
name: g.name,
|
|
537
|
+
checked: o(V)(g.checked, "checked"),
|
|
538
|
+
disabled: o(V)(g.disabled, "disabled"),
|
|
539
|
+
value: g.value,
|
|
540
|
+
required: o(V)(g.required, "required"),
|
|
541
|
+
onChange: y[0] || (y[0] = async (M) => S(M)),
|
|
542
|
+
onBlur: y[1] || (y[1] = async (M) => L(M)),
|
|
543
|
+
onFocus: y[2] || (y[2] = async (M) => E(M)),
|
|
544
|
+
"aria-describedby": g.ariaDescribedBy ?? m.value
|
|
545
545
|
}, null, 40, Wa),
|
|
546
|
-
|
|
547
|
-
N(
|
|
548
|
-
], 64)) : A(
|
|
546
|
+
g.label ? (h(), k(W, { key: 0 }, [
|
|
547
|
+
N($(g.label), 1)
|
|
548
|
+
], 64)) : A(g.$slots, "default", { key: 1 })
|
|
549
549
|
], 8, Ga),
|
|
550
|
-
o(Z)(
|
|
550
|
+
o(Z)(g.message, g.showMessage) ? (h(), Y(ae, {
|
|
551
551
|
key: 0,
|
|
552
552
|
size: "small",
|
|
553
|
-
icon:
|
|
553
|
+
icon: g.messageIcon,
|
|
554
554
|
id: c.value
|
|
555
555
|
}, {
|
|
556
556
|
default: O(() => [
|
|
557
|
-
N(
|
|
557
|
+
N($(g.message), 1)
|
|
558
558
|
]),
|
|
559
559
|
_: 1
|
|
560
|
-
}, 8, ["icon", "id"])) :
|
|
561
|
-
|
|
560
|
+
}, 8, ["icon", "id"])) : P("", !0),
|
|
561
|
+
p() ? (h(), Y(ae, {
|
|
562
562
|
key: 1,
|
|
563
563
|
size: "small",
|
|
564
564
|
semantic: "successful",
|
|
565
565
|
id: r.value
|
|
566
566
|
}, {
|
|
567
567
|
default: O(() => [
|
|
568
|
-
N(
|
|
568
|
+
N($(g.validMessage || o(ce)), 1)
|
|
569
569
|
]),
|
|
570
570
|
_: 1
|
|
571
|
-
}, 8, ["id"])) :
|
|
571
|
+
}, 8, ["id"])) : P("", !0),
|
|
572
572
|
ee(ae, {
|
|
573
573
|
size: "small",
|
|
574
574
|
semantic: "critical",
|
|
575
|
-
id:
|
|
575
|
+
id: f.value
|
|
576
576
|
}, {
|
|
577
577
|
default: O(() => [
|
|
578
|
-
N(
|
|
578
|
+
N($(s.value), 1)
|
|
579
579
|
]),
|
|
580
580
|
_: 1
|
|
581
581
|
}, 8, ["id"]),
|
|
582
|
-
|
|
582
|
+
C("span", Oa, $(I.value), 1)
|
|
583
583
|
], 10, Ua));
|
|
584
584
|
}
|
|
585
585
|
});
|
|
@@ -638,13 +638,13 @@ const Ha = (t) => {
|
|
|
638
638
|
innerHeight: u,
|
|
639
639
|
innerWidth: c
|
|
640
640
|
} = window;
|
|
641
|
-
let r = a < 0,
|
|
642
|
-
const I = t.dataset.outsideVy, w = t.dataset.outsideVx,
|
|
643
|
-
return
|
|
641
|
+
let r = a < 0, f = n > u, s = e < 0, m = i > c;
|
|
642
|
+
const I = t.dataset.outsideVy, w = t.dataset.outsideVx, p = t?.parentElement?.getBoundingClientRect();
|
|
643
|
+
return p && (I && (t.dataset.outsideVy === "top" ? r = p.top - (n - p.bottom) < 0 : f = p.bottom + (p.top - a) > u), w && (t.dataset.outsideVx === "left" ? s = p.left - (i - p.right) < 0 : m = p.right + (p.left - e) > c)), {
|
|
644
644
|
outTop: r,
|
|
645
|
-
outBottom:
|
|
646
|
-
outLeft:
|
|
647
|
-
outRight:
|
|
645
|
+
outBottom: f,
|
|
646
|
+
outLeft: s,
|
|
647
|
+
outRight: m
|
|
648
648
|
};
|
|
649
649
|
}, Xa = (t) => {
|
|
650
650
|
const {
|
|
@@ -668,12 +668,12 @@ const Ha = (t) => {
|
|
|
668
668
|
childHeight: u,
|
|
669
669
|
childWidth: c,
|
|
670
670
|
width: r,
|
|
671
|
-
right:
|
|
672
|
-
left:
|
|
673
|
-
correctedPlacement:
|
|
674
|
-
} =
|
|
675
|
-
t.dataset.width === "full" && (t.style.inlineSize = `${r}px`),
|
|
676
|
-
},
|
|
671
|
+
right: f,
|
|
672
|
+
left: s,
|
|
673
|
+
correctedPlacement: m
|
|
674
|
+
} = ia(t, a, n);
|
|
675
|
+
t.dataset.width === "full" && (t.style.inlineSize = `${r}px`), m === "top" || m === "bottom" || m === "top-start" || m === "bottom-start" ? t.style.insetInlineStart = `${s}px` : (m === "top-end" || m === "bottom-end") && (t.style.insetInlineStart = `${f - c}px`), m?.startsWith("top") ? t.style.insetBlockStart = `${e - u}px` : m?.startsWith("bottom") && (t.style.insetBlockStart = `${i}px`), t.style.position = "fixed";
|
|
676
|
+
}, ia = (t, a, n) => {
|
|
677
677
|
if (!t || !a)
|
|
678
678
|
return {
|
|
679
679
|
top: 0,
|
|
@@ -693,83 +693,83 @@ const Ha = (t) => {
|
|
|
693
693
|
height: u,
|
|
694
694
|
bottom: c,
|
|
695
695
|
right: r,
|
|
696
|
-
left:
|
|
697
|
-
width:
|
|
696
|
+
left: f,
|
|
697
|
+
width: s
|
|
698
698
|
} = a.getBoundingClientRect(), {
|
|
699
|
-
innerHeight:
|
|
699
|
+
innerHeight: m,
|
|
700
700
|
innerWidth: I
|
|
701
701
|
} = window;
|
|
702
|
-
let w = e.height,
|
|
703
|
-
(n === "bottom" || n === "top") && (
|
|
704
|
-
const
|
|
705
|
-
let
|
|
706
|
-
return n.startsWith("bottom") ?
|
|
702
|
+
let w = e.height, p = e.width;
|
|
703
|
+
(n === "bottom" || n === "top") && (p = p / 2), (n === "left" || n === "right") && (w = w / 2);
|
|
704
|
+
const v = c + w > m, S = i - w < 0, L = f - p < 0, E = r + p > I;
|
|
705
|
+
let g = n;
|
|
706
|
+
return n.startsWith("bottom") ? v ? (g = n?.replace("bottom", "top"), L && E ? g = "top" : L ? g = "top-start" : E && (g = "top-end")) : L && E ? g = "bottom" : L ? g = "bottom-start" : E && (g = "bottom-end") : n.startsWith("top") ? S ? (g = n?.replace("top", "bottom"), L && E ? g = "bottom" : L ? g = "bottom-start" : E && (g = "bottom-end")) : L && E ? g = "top" : L ? g = "top-start" : E && (g = "top-end") : n.startsWith("left") ? L ? (g = n?.replace("left", "right"), v && S ? g = "right" : v ? g = "right-end" : S && (g = "right-start")) : v && S ? g = "left" : v ? g = "left-end" : S && (g = "left-start") : g.startsWith("right") && (E ? (g = n?.replace("right", "left"), v && S ? g = "left" : v ? g = "left-end" : S && (g = "left-start")) : v && S ? g = "right" : v ? g = "right-end" : S && (g = "right-start")), {
|
|
707
707
|
top: i,
|
|
708
708
|
bottom: c,
|
|
709
709
|
right: r,
|
|
710
710
|
height: u,
|
|
711
|
-
width:
|
|
712
|
-
left:
|
|
711
|
+
width: s,
|
|
712
|
+
left: f,
|
|
713
713
|
childHeight: e.height,
|
|
714
714
|
childWidth: e.width,
|
|
715
|
-
correctedPlacement:
|
|
715
|
+
correctedPlacement: g,
|
|
716
716
|
innerWidth: I,
|
|
717
|
-
innerHeight:
|
|
717
|
+
innerHeight: m
|
|
718
718
|
};
|
|
719
|
-
},
|
|
719
|
+
}, la = (t, a, n) => {
|
|
720
720
|
const e = getComputedStyle(t).getPropertyValue("--db-popover-distance") ?? "0px", {
|
|
721
721
|
top: i,
|
|
722
722
|
height: u,
|
|
723
723
|
width: c,
|
|
724
724
|
childHeight: r,
|
|
725
|
-
childWidth:
|
|
726
|
-
right:
|
|
727
|
-
left:
|
|
725
|
+
childWidth: f,
|
|
726
|
+
right: s,
|
|
727
|
+
left: m,
|
|
728
728
|
bottom: I,
|
|
729
729
|
correctedPlacement: w,
|
|
730
|
-
innerWidth:
|
|
731
|
-
innerHeight:
|
|
732
|
-
} =
|
|
733
|
-
if (
|
|
734
|
-
const
|
|
735
|
-
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-inline-start", `${
|
|
730
|
+
innerWidth: p,
|
|
731
|
+
innerHeight: v
|
|
732
|
+
} = ia(t, a, n);
|
|
733
|
+
if (f > c && (w.startsWith("bottom") || w.startsWith("top"))) {
|
|
734
|
+
const S = c / 2 / f * 100;
|
|
735
|
+
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-inline-start", `${S}%`) : w.endsWith("end") && t.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - S}%`);
|
|
736
736
|
}
|
|
737
737
|
if (r > u && (w.startsWith("left") || w.startsWith("bottom"))) {
|
|
738
|
-
const
|
|
739
|
-
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-block-start", `${
|
|
738
|
+
const S = u / 2 / r * 100;
|
|
739
|
+
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-block-start", `${S}%`) : w.endsWith("end") && t.style.setProperty("--db-tooltip-arrow-block-start", `${100 - S}%`);
|
|
740
740
|
}
|
|
741
741
|
if (w === "right" || w === "left")
|
|
742
742
|
t.style.insetBlockStart = `${i + u / 2}px`;
|
|
743
743
|
else if (w === "right-start" || w === "left-start") {
|
|
744
|
-
const
|
|
745
|
-
t.style.insetBlockStart = `${i}px`, t.style.insetBlockEnd = `${
|
|
744
|
+
const S = i + r;
|
|
745
|
+
t.style.insetBlockStart = `${i}px`, t.style.insetBlockEnd = `${S > v ? v : S}px`;
|
|
746
746
|
} else if (w === "right-end" || w === "left-end") {
|
|
747
|
-
const
|
|
748
|
-
t.style.insetBlockStart = `${
|
|
747
|
+
const S = I - r;
|
|
748
|
+
t.style.insetBlockStart = `${S < 0 ? 0 : S}px`, t.style.insetBlockEnd = `${I}px`;
|
|
749
749
|
} else if (w === "top" || w === "bottom")
|
|
750
|
-
t.style.insetInlineStart = `${
|
|
750
|
+
t.style.insetInlineStart = `${m + c / 2}px`;
|
|
751
751
|
else if (w === "top-start" || w === "bottom-start") {
|
|
752
|
-
const
|
|
753
|
-
t.style.insetInlineStart = `${
|
|
752
|
+
const S = m + f;
|
|
753
|
+
t.style.insetInlineStart = `${m}px`, t.style.insetInlineEnd = `${S > p ? p : S}px`;
|
|
754
754
|
} else if (w === "top-end" || w === "bottom-end") {
|
|
755
|
-
const
|
|
756
|
-
t.style.insetInlineStart = `${
|
|
755
|
+
const S = m - f;
|
|
756
|
+
t.style.insetInlineStart = `${s - f}px`, t.style.insetInlineEnd = `${S < 0 ? 0 : S}px`;
|
|
757
757
|
}
|
|
758
758
|
if (w?.startsWith("right")) {
|
|
759
|
-
const
|
|
760
|
-
t.style.insetInlineStart = `calc(${
|
|
759
|
+
const S = s + f;
|
|
760
|
+
t.style.insetInlineStart = `calc(${s}px + ${e})`, t.style.insetInlineEnd = `calc(${S > p ? p : S}px + ${e})`;
|
|
761
761
|
} else if (w?.startsWith("left")) {
|
|
762
|
-
const
|
|
763
|
-
t.style.insetInlineStart = `calc(${
|
|
762
|
+
const S = m - f;
|
|
763
|
+
t.style.insetInlineStart = `calc(${S < 0 ? 0 : S}px - ${e})`, t.style.insetInlineEnd = `calc(${s}px - ${e})`;
|
|
764
764
|
} else if (w?.startsWith("top")) {
|
|
765
|
-
const
|
|
766
|
-
t.style.insetBlockStart = `calc(${
|
|
765
|
+
const S = i - r;
|
|
766
|
+
t.style.insetBlockStart = `calc(${S < 0 ? 0 : S}px - ${e})`, t.style.insetBlockEnd = `calc(${I}px - ${e})`;
|
|
767
767
|
} else if (w?.startsWith("bottom")) {
|
|
768
|
-
const
|
|
769
|
-
t.style.insetBlockStart = `calc(${I}px + ${e})`, t.style.insetBlockEnd = `calc(${
|
|
768
|
+
const S = I + r;
|
|
769
|
+
t.style.insetBlockStart = `calc(${I}px + ${e})`, t.style.insetBlockEnd = `calc(${S > v ? v : S}px + ${e})`;
|
|
770
770
|
}
|
|
771
771
|
t.style.position = "fixed", t.dataset.correctedPlacement = w;
|
|
772
|
-
}, Ya = ["id", "data-width"], Ka = /* @__PURE__ */
|
|
772
|
+
}, Ya = ["id", "data-width"], Ka = /* @__PURE__ */ G({
|
|
773
773
|
__name: "custom-select-dropdown",
|
|
774
774
|
props: {
|
|
775
775
|
width: { default: "fixed" },
|
|
@@ -780,19 +780,19 @@ const Ha = (t) => {
|
|
|
780
780
|
autofocus: { type: [Boolean, String] }
|
|
781
781
|
},
|
|
782
782
|
setup(t) {
|
|
783
|
-
const a = t, n =
|
|
784
|
-
return (e, i) => (
|
|
783
|
+
const a = t, n = d(null);
|
|
784
|
+
return (e, i) => (h(), k("article", {
|
|
785
785
|
"data-spacing": "none",
|
|
786
786
|
ref_key: "_ref",
|
|
787
787
|
ref: n,
|
|
788
788
|
id: e.id,
|
|
789
|
-
class:
|
|
789
|
+
class: q(o(U)("db-custom-select-dropdown db-card", a.class)),
|
|
790
790
|
"data-width": e.width
|
|
791
791
|
}, [
|
|
792
792
|
A(e.$slots, "default")
|
|
793
793
|
], 10, Ya));
|
|
794
794
|
}
|
|
795
|
-
}), Ja = ["id", "data-divider"], Qa = ["data-icon", "data-show-icon", "data-icon-trailing"], Za = ["type", "name", "form", "checked", "disabled", "value"], xa = { key: 1 }, et = /* @__PURE__ */
|
|
795
|
+
}), Ja = ["id", "data-divider"], Qa = ["data-icon", "data-show-icon", "data-icon-trailing"], Za = ["type", "name", "form", "checked", "disabled", "value"], xa = { key: 1 }, et = /* @__PURE__ */ G({
|
|
796
796
|
__name: "custom-select-list-item",
|
|
797
797
|
props: {
|
|
798
798
|
groupTitle: { default: void 0 },
|
|
@@ -816,7 +816,7 @@ const Ha = (t) => {
|
|
|
816
816
|
},
|
|
817
817
|
emits: ["update:checked"],
|
|
818
818
|
setup(t, { emit: a }) {
|
|
819
|
-
const n = a, e = t, i =
|
|
819
|
+
const n = a, e = t, i = d(void 0), u = d(!1), c = d(null);
|
|
820
820
|
j(() => {
|
|
821
821
|
i.value = e.id ?? `custom-select-list-item-${K()}`;
|
|
822
822
|
}), D(
|
|
@@ -829,49 +829,49 @@ const Ha = (t) => {
|
|
|
829
829
|
flush: "post"
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
|
-
function r(
|
|
833
|
-
|
|
832
|
+
function r(s) {
|
|
833
|
+
s.stopPropagation(), e.onChange && e.onChange(s), oe(n, s, "checked");
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function f() {
|
|
836
836
|
if (!(e.isGroupTitle || e.type === "checkbox"))
|
|
837
|
-
return
|
|
837
|
+
return V(e.checked, "checked") ? "check" : "x_placeholder";
|
|
838
838
|
}
|
|
839
|
-
return (
|
|
839
|
+
return (s, m) => (h(), k("li", {
|
|
840
840
|
ref_key: "_ref",
|
|
841
841
|
ref: c,
|
|
842
842
|
id: i.value,
|
|
843
|
-
class:
|
|
844
|
-
o(
|
|
845
|
-
"db-checkbox":
|
|
846
|
-
"db-radio":
|
|
843
|
+
class: q(
|
|
844
|
+
o(U)("db-custom-select-list-item", e.class, {
|
|
845
|
+
"db-checkbox": s.type === "checkbox" && !s.isGroupTitle,
|
|
846
|
+
"db-radio": s.type !== "checkbox" && !s.isGroupTitle
|
|
847
847
|
})
|
|
848
848
|
),
|
|
849
849
|
"data-divider": o(F)(u.value)
|
|
850
850
|
}, [
|
|
851
|
-
|
|
851
|
+
s.isGroupTitle ? (h(), k("span", xa, $(s.groupTitle), 1)) : (h(), k("label", {
|
|
852
852
|
key: 0,
|
|
853
|
-
"data-icon":
|
|
854
|
-
"data-show-icon": o(F)(
|
|
855
|
-
"data-icon-trailing":
|
|
853
|
+
"data-icon": s.type !== "checkbox" && s.icon ? s.icon : void 0,
|
|
854
|
+
"data-show-icon": o(F)(s.showIcon),
|
|
855
|
+
"data-icon-trailing": f()
|
|
856
856
|
}, [
|
|
857
|
-
|
|
857
|
+
C("input", {
|
|
858
858
|
class: "db-custom-select-list-item-checkbox",
|
|
859
859
|
"data-disable-focus": "true",
|
|
860
|
-
type:
|
|
861
|
-
name:
|
|
862
|
-
form:
|
|
863
|
-
checked: o(
|
|
864
|
-
disabled: o(
|
|
865
|
-
value:
|
|
866
|
-
onChange:
|
|
860
|
+
type: s.type,
|
|
861
|
+
name: s.name,
|
|
862
|
+
form: s.name,
|
|
863
|
+
checked: o(V)(s.checked, "checked"),
|
|
864
|
+
disabled: o(V)(s.disabled, "disabled"),
|
|
865
|
+
value: s.value,
|
|
866
|
+
onChange: m[0] || (m[0] = async (I) => r(I))
|
|
867
867
|
}, null, 40, Za),
|
|
868
|
-
|
|
869
|
-
N(
|
|
870
|
-
], 64)) : A(
|
|
868
|
+
s.label ? (h(), k(W, { key: 0 }, [
|
|
869
|
+
N($(s.label), 1)
|
|
870
|
+
], 64)) : A(s.$slots, "default", { key: 1 })
|
|
871
871
|
], 8, Qa))
|
|
872
872
|
], 10, Ja));
|
|
873
873
|
}
|
|
874
|
-
}), at = ["role", "aria-label", "id"], tt = /* @__PURE__ */
|
|
874
|
+
}), at = ["role", "aria-label", "id"], tt = /* @__PURE__ */ G({
|
|
875
875
|
__name: "custom-select-list",
|
|
876
876
|
props: {
|
|
877
877
|
label: { default: void 0 },
|
|
@@ -883,16 +883,16 @@ const Ha = (t) => {
|
|
|
883
883
|
autofocus: { type: [Boolean, String] }
|
|
884
884
|
},
|
|
885
885
|
setup(t) {
|
|
886
|
-
const a = t, n =
|
|
887
|
-
return (e, i) => (
|
|
886
|
+
const a = t, n = d(null);
|
|
887
|
+
return (e, i) => (h(), k("div", {
|
|
888
888
|
role: e.multiple ? "group" : "radiogroup",
|
|
889
889
|
"aria-label": e.label,
|
|
890
890
|
ref_key: "_ref",
|
|
891
891
|
ref: n,
|
|
892
892
|
id: e.id,
|
|
893
|
-
class:
|
|
893
|
+
class: q(o(U)("db-custom-select-list", a.class))
|
|
894
894
|
}, [
|
|
895
|
-
|
|
895
|
+
C("ul", null, [
|
|
896
896
|
A(e.$slots, "default")
|
|
897
897
|
])
|
|
898
898
|
], 10, at));
|
|
@@ -900,7 +900,7 @@ const Ha = (t) => {
|
|
|
900
900
|
}), it = ["data-variant", "data-hide-label", "data-show-icon", "data-icon", "data-icon-trailing", "data-hide-asterisk", "data-show-icon-trailing"], lt = ["for"], ot = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "name", "type", "multiple", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "enterKeyHint", "inputMode", "list", "aria-describedby"], nt = ["id"], st = ["value"], dt = {
|
|
901
901
|
"data-visually-hidden": "true",
|
|
902
902
|
role: "status"
|
|
903
|
-
}, ut = /* @__PURE__ */
|
|
903
|
+
}, ut = /* @__PURE__ */ G({
|
|
904
904
|
__name: "input",
|
|
905
905
|
props: {
|
|
906
906
|
dataList: { default: void 0 },
|
|
@@ -964,14 +964,14 @@ const Ha = (t) => {
|
|
|
964
964
|
},
|
|
965
965
|
emits: ["update:value"],
|
|
966
966
|
setup(t, { emit: a }) {
|
|
967
|
-
const n = a, e = t, i =
|
|
967
|
+
const n = a, e = t, i = d(void 0), u = d(void 0), c = d(void 0), r = d(void 0), f = d(void 0), s = d(void 0), m = d(void 0), I = d(void 0), w = d(""), p = d(null);
|
|
968
968
|
j(() => {
|
|
969
|
-
const
|
|
970
|
-
i.value =
|
|
969
|
+
const b = e.id ?? `input-${K()}`;
|
|
970
|
+
i.value = b, u.value = b + de, c.value = b + ue, r.value = b + re, s.value = b + Xe, f.value = e.invalidMessage || te;
|
|
971
971
|
}), D(
|
|
972
|
-
() => [
|
|
972
|
+
() => [p.value, e.invalidMessage],
|
|
973
973
|
() => {
|
|
974
|
-
|
|
974
|
+
f.value = e.invalidMessage || p.value?.validationMessage || te;
|
|
975
975
|
},
|
|
976
976
|
{
|
|
977
977
|
immediate: !0,
|
|
@@ -981,8 +981,8 @@ const Ha = (t) => {
|
|
|
981
981
|
() => [i.value],
|
|
982
982
|
() => {
|
|
983
983
|
if (i.value) {
|
|
984
|
-
const
|
|
985
|
-
u.value =
|
|
984
|
+
const b = i.value + de;
|
|
985
|
+
u.value = b, c.value = i.value + ue, r.value = i.value + re, s.value = e.dataListId ?? i.value + Xe, Z(e.message, e.showMessage) && (m.value = b), S();
|
|
986
986
|
}
|
|
987
987
|
},
|
|
988
988
|
{
|
|
@@ -999,124 +999,124 @@ const Ha = (t) => {
|
|
|
999
999
|
flush: "post"
|
|
1000
1000
|
}
|
|
1001
1001
|
);
|
|
1002
|
-
function
|
|
1002
|
+
function v() {
|
|
1003
1003
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
!
|
|
1005
|
+
function S() {
|
|
1006
|
+
!p.value?.validity.valid || e.validation === "invalid" ? (m.value = r.value, f.value = e.invalidMessage || p.value?.validationMessage || te, ve() && (w.value = f.value, J(() => w.value = "", 1e3))) : v() && p.value?.validity.valid && (e.required || e.minLength || e.maxLength || e.pattern) ? (m.value = c.value, ve() && (w.value = e.validMessage ?? ce, J(() => w.value = "", 1e3))) : Z(e.message, e.showMessage) ? m.value = u.value : m.value = void 0;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
e.input && e.input(
|
|
1008
|
+
function L(b) {
|
|
1009
|
+
e.input && e.input(b), I.value = b.target.value, e.onInput && e.onInput(b), oe(n, b), S();
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
e.onChange && e.onChange(
|
|
1011
|
+
function E(b) {
|
|
1012
|
+
e.onChange && e.onChange(b), oe(n, b), S();
|
|
1013
1013
|
}
|
|
1014
|
-
function b
|
|
1015
|
-
e.onBlur && e.onBlur(
|
|
1014
|
+
function g(b) {
|
|
1015
|
+
e.onBlur && e.onBlur(b);
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
e.onFocus && e.onFocus(
|
|
1017
|
+
function y(b) {
|
|
1018
|
+
e.onFocus && e.onFocus(b);
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
const
|
|
1020
|
+
function M() {
|
|
1021
|
+
const b = e.dataList;
|
|
1022
1022
|
return Array.from(
|
|
1023
|
-
(_a(
|
|
1023
|
+
(_a(b) ? b?.map((X) => ({
|
|
1024
1024
|
value: X,
|
|
1025
1025
|
label: void 0
|
|
1026
|
-
})) :
|
|
1026
|
+
})) : b) || []
|
|
1027
1027
|
);
|
|
1028
1028
|
}
|
|
1029
|
-
return (
|
|
1030
|
-
class:
|
|
1031
|
-
"data-variant":
|
|
1032
|
-
"data-hide-label": o(ie)(
|
|
1033
|
-
"data-show-icon": o(F)(
|
|
1034
|
-
"data-icon":
|
|
1035
|
-
"data-icon-trailing":
|
|
1036
|
-
"data-hide-asterisk": o(ie)(
|
|
1037
|
-
"data-show-icon-trailing": o(F)(
|
|
1029
|
+
return (b, X) => (h(), k("div", {
|
|
1030
|
+
class: q(o(U)("db-input", e.class)),
|
|
1031
|
+
"data-variant": b.variant,
|
|
1032
|
+
"data-hide-label": o(ie)(b.showLabel),
|
|
1033
|
+
"data-show-icon": o(F)(b.showIconLeading ?? b.showIcon),
|
|
1034
|
+
"data-icon": b.iconLeading ?? b.icon,
|
|
1035
|
+
"data-icon-trailing": b.iconTrailing,
|
|
1036
|
+
"data-hide-asterisk": o(ie)(b.showRequiredAsterisk),
|
|
1037
|
+
"data-show-icon-trailing": o(F)(b.showIconTrailing)
|
|
1038
1038
|
}, [
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
"aria-invalid":
|
|
1042
|
-
"data-custom-validity":
|
|
1043
|
-
"data-field-sizing":
|
|
1039
|
+
C("label", { for: i.value }, $(b.label ?? o(me)), 9, lt),
|
|
1040
|
+
C("input", {
|
|
1041
|
+
"aria-invalid": b.validation === "invalid",
|
|
1042
|
+
"data-custom-validity": b.validation,
|
|
1043
|
+
"data-field-sizing": b.fieldSizing,
|
|
1044
1044
|
ref_key: "_ref",
|
|
1045
|
-
ref:
|
|
1045
|
+
ref: p,
|
|
1046
1046
|
id: i.value,
|
|
1047
|
-
name:
|
|
1048
|
-
type:
|
|
1049
|
-
multiple: o(
|
|
1050
|
-
placeholder:
|
|
1051
|
-
disabled: o(
|
|
1052
|
-
required: o(
|
|
1053
|
-
step: o(ge)(
|
|
1054
|
-
value:
|
|
1055
|
-
maxLength: o(ge)(
|
|
1056
|
-
minLength: o(ge)(
|
|
1057
|
-
max: o(je)(
|
|
1058
|
-
min: o(je)(
|
|
1059
|
-
readOnly: o(
|
|
1060
|
-
form:
|
|
1061
|
-
pattern:
|
|
1062
|
-
size:
|
|
1063
|
-
autoComplete:
|
|
1064
|
-
autoFocus: o(
|
|
1065
|
-
enterKeyHint:
|
|
1066
|
-
inputMode:
|
|
1067
|
-
onInput: X[0] || (X[0] = async (B) =>
|
|
1068
|
-
onChange: X[1] || (X[1] = async (B) =>
|
|
1069
|
-
onBlur: X[2] || (X[2] = async (B) =>
|
|
1070
|
-
onFocus: X[3] || (X[3] = async (B) =>
|
|
1071
|
-
list:
|
|
1072
|
-
"aria-describedby":
|
|
1047
|
+
name: b.name,
|
|
1048
|
+
type: b.type || "text",
|
|
1049
|
+
multiple: o(V)(b.multiple, "multiple"),
|
|
1050
|
+
placeholder: b.placeholder ?? o(Je),
|
|
1051
|
+
disabled: o(V)(b.disabled, "disabled"),
|
|
1052
|
+
required: o(V)(b.required, "required"),
|
|
1053
|
+
step: o(ge)(b.step),
|
|
1054
|
+
value: b.value ?? I.value,
|
|
1055
|
+
maxLength: o(ge)(b.maxLength, b.maxlength),
|
|
1056
|
+
minLength: o(ge)(b.minLength, b.minlength),
|
|
1057
|
+
max: o(je)(b.max, b.type),
|
|
1058
|
+
min: o(je)(b.min, b.type),
|
|
1059
|
+
readOnly: o(V)(b.readOnly, "readOnly") || o(V)(b.readonly, "readonly"),
|
|
1060
|
+
form: b.form,
|
|
1061
|
+
pattern: b.pattern,
|
|
1062
|
+
size: b.size,
|
|
1063
|
+
autoComplete: b.autocomplete,
|
|
1064
|
+
autoFocus: o(V)(b.autofocus, "autofocus"),
|
|
1065
|
+
enterKeyHint: b.enterkeyhint,
|
|
1066
|
+
inputMode: b.inputmode,
|
|
1067
|
+
onInput: X[0] || (X[0] = async (B) => L(B)),
|
|
1068
|
+
onChange: X[1] || (X[1] = async (B) => E(B)),
|
|
1069
|
+
onBlur: X[2] || (X[2] = async (B) => g(B)),
|
|
1070
|
+
onFocus: X[3] || (X[3] = async (B) => y(B)),
|
|
1071
|
+
list: b.dataList && s.value,
|
|
1072
|
+
"aria-describedby": b.ariaDescribedBy ?? m.value
|
|
1073
1073
|
}, null, 40, ot),
|
|
1074
|
-
|
|
1074
|
+
b.dataList ? (h(), k("datalist", {
|
|
1075
1075
|
key: 0,
|
|
1076
|
-
id:
|
|
1076
|
+
id: s.value
|
|
1077
1077
|
}, [
|
|
1078
|
-
(
|
|
1079
|
-
key:
|
|
1078
|
+
(h(!0), k(W, null, fe(M(), (B) => (h(), k("option", {
|
|
1079
|
+
key: s.value + "-option-" + B.value,
|
|
1080
1080
|
value: B.value
|
|
1081
|
-
},
|
|
1082
|
-
], 8, nt)) :
|
|
1083
|
-
A(
|
|
1084
|
-
o(Z)(
|
|
1081
|
+
}, $(B.label), 9, st))), 128))
|
|
1082
|
+
], 8, nt)) : P("", !0),
|
|
1083
|
+
A(b.$slots, "default"),
|
|
1084
|
+
o(Z)(b.message, b.showMessage) ? (h(), Y(ae, {
|
|
1085
1085
|
key: 1,
|
|
1086
|
-
size:
|
|
1087
|
-
icon:
|
|
1086
|
+
size: b.messageSize || "small",
|
|
1087
|
+
icon: b.messageIcon,
|
|
1088
1088
|
id: u.value
|
|
1089
1089
|
}, {
|
|
1090
1090
|
default: O(() => [
|
|
1091
|
-
N(
|
|
1091
|
+
N($(b.message), 1)
|
|
1092
1092
|
]),
|
|
1093
1093
|
_: 1
|
|
1094
|
-
}, 8, ["size", "icon", "id"])) :
|
|
1095
|
-
|
|
1094
|
+
}, 8, ["size", "icon", "id"])) : P("", !0),
|
|
1095
|
+
v() ? (h(), Y(ae, {
|
|
1096
1096
|
key: 2,
|
|
1097
1097
|
semantic: "successful",
|
|
1098
1098
|
id: c.value,
|
|
1099
|
-
size:
|
|
1099
|
+
size: b.validMessageSize || "small"
|
|
1100
1100
|
}, {
|
|
1101
1101
|
default: O(() => [
|
|
1102
|
-
N(
|
|
1102
|
+
N($(b.validMessage || o(ce)), 1)
|
|
1103
1103
|
]),
|
|
1104
1104
|
_: 1
|
|
1105
|
-
}, 8, ["id", "size"])) :
|
|
1105
|
+
}, 8, ["id", "size"])) : P("", !0),
|
|
1106
1106
|
ee(ae, {
|
|
1107
1107
|
semantic: "critical",
|
|
1108
1108
|
id: r.value,
|
|
1109
|
-
size:
|
|
1109
|
+
size: b.invalidMessageSize || "small"
|
|
1110
1110
|
}, {
|
|
1111
1111
|
default: O(() => [
|
|
1112
|
-
N(
|
|
1112
|
+
N($(f.value), 1)
|
|
1113
1113
|
]),
|
|
1114
1114
|
_: 1
|
|
1115
1115
|
}, 8, ["id", "size"]),
|
|
1116
|
-
|
|
1116
|
+
C("span", dt, $(w.value), 1)
|
|
1117
1117
|
], 10, it));
|
|
1118
1118
|
}
|
|
1119
|
-
}), rt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"],
|
|
1119
|
+
}), rt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], oa = /* @__PURE__ */ G({
|
|
1120
1120
|
__name: "tooltip",
|
|
1121
1121
|
props: {
|
|
1122
1122
|
showArrow: { type: [Boolean, String], default: void 0 },
|
|
@@ -1133,21 +1133,21 @@ const Ha = (t) => {
|
|
|
1133
1133
|
width: { default: void 0 }
|
|
1134
1134
|
},
|
|
1135
1135
|
setup(t) {
|
|
1136
|
-
const a = t, n =
|
|
1136
|
+
const a = t, n = d(Se), e = d(!1), i = d(void 0), u = d(void 0), c = d(null);
|
|
1137
1137
|
j(() => {
|
|
1138
1138
|
n.value = a.id || "tooltip-" + K(), e.value = !0;
|
|
1139
1139
|
}), D(
|
|
1140
1140
|
() => [c.value, e.value],
|
|
1141
1141
|
() => {
|
|
1142
1142
|
if (c.value && e.value && n.value) {
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
}),
|
|
1147
|
-
|
|
1148
|
-
}),
|
|
1149
|
-
const
|
|
1150
|
-
|
|
1143
|
+
const v = s();
|
|
1144
|
+
v && (["mouseenter", "focusin"].forEach((S) => {
|
|
1145
|
+
v.addEventListener(S, () => p(v));
|
|
1146
|
+
}), v.addEventListener("keydown", (S) => f(S)), ["mouseleave", "focusout"].forEach((S) => {
|
|
1147
|
+
v.addEventListener(S, () => w());
|
|
1148
|
+
}), v.dataset.hasTooltip = "true", a.variant === "label" ? v.setAttribute("aria-labelledby", n.value) : v.setAttribute("aria-describedby", n.value)), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((S) => {
|
|
1149
|
+
const L = S.find(({ target: E }) => E === s());
|
|
1150
|
+
L && !L.isIntersecting && f(!1);
|
|
1151
1151
|
})), e.value = !1;
|
|
1152
1152
|
}
|
|
1153
1153
|
},
|
|
@@ -1156,58 +1156,58 @@ const Ha = (t) => {
|
|
|
1156
1156
|
flush: "post"
|
|
1157
1157
|
}
|
|
1158
1158
|
);
|
|
1159
|
-
function r(
|
|
1160
|
-
|
|
1159
|
+
function r(v) {
|
|
1160
|
+
v.stopPropagation();
|
|
1161
1161
|
}
|
|
1162
|
-
function v
|
|
1163
|
-
(!
|
|
1162
|
+
function f(v) {
|
|
1163
|
+
(!v || v.key === "Escape") && c.value && getComputedStyle(c.value).visibility === "visible" && s().blur();
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
let
|
|
1167
|
-
return
|
|
1165
|
+
function s() {
|
|
1166
|
+
let v = c.value.parentElement;
|
|
1167
|
+
return v && v.localName.includes("tooltip") && (v = v.parentElement), v;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1170
|
-
|
|
1171
|
-
c.value &&
|
|
1169
|
+
function m(v) {
|
|
1170
|
+
v && c.value && J(() => {
|
|
1171
|
+
c.value && la(
|
|
1172
1172
|
c.value,
|
|
1173
|
-
|
|
1173
|
+
v,
|
|
1174
1174
|
a.placement ?? "bottom"
|
|
1175
1175
|
);
|
|
1176
1176
|
}, 1);
|
|
1177
1177
|
}
|
|
1178
|
-
function I(
|
|
1179
|
-
|
|
1178
|
+
function I(v, S) {
|
|
1179
|
+
v?.target?.contains && v?.target?.contains(c.value) && m(S);
|
|
1180
1180
|
}
|
|
1181
1181
|
function w() {
|
|
1182
1182
|
i.value && new le().removeCallback(
|
|
1183
1183
|
i.value
|
|
1184
|
-
), u.value?.unobserve(
|
|
1184
|
+
), u.value?.unobserve(s());
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function p(v) {
|
|
1187
1187
|
i.value = new le().addCallback(
|
|
1188
|
-
(
|
|
1189
|
-
),
|
|
1188
|
+
(S) => I(S, v)
|
|
1189
|
+
), m(v), u.value?.observe(s());
|
|
1190
1190
|
}
|
|
1191
|
-
return (
|
|
1191
|
+
return (v, S) => (h(), k("i", {
|
|
1192
1192
|
role: "tooltip",
|
|
1193
1193
|
"aria-hidden": "true",
|
|
1194
1194
|
"data-gap": "true",
|
|
1195
1195
|
ref_key: "_ref",
|
|
1196
1196
|
ref: c,
|
|
1197
|
-
class:
|
|
1197
|
+
class: q(o(U)("db-tooltip", a.class)),
|
|
1198
1198
|
id: n.value,
|
|
1199
|
-
"data-emphasis":
|
|
1200
|
-
"data-animation": o(F)(
|
|
1201
|
-
"data-delay":
|
|
1202
|
-
"data-width":
|
|
1203
|
-
"data-show-arrow": o(F)(
|
|
1204
|
-
"data-placement":
|
|
1205
|
-
onClick:
|
|
1199
|
+
"data-emphasis": v.emphasis,
|
|
1200
|
+
"data-animation": o(F)(v.animation ?? !0),
|
|
1201
|
+
"data-delay": v.delay,
|
|
1202
|
+
"data-width": v.width,
|
|
1203
|
+
"data-show-arrow": o(F)(v.showArrow ?? !0),
|
|
1204
|
+
"data-placement": v.placement,
|
|
1205
|
+
onClick: S[0] || (S[0] = async (L) => r(L))
|
|
1206
1206
|
}, [
|
|
1207
|
-
A(
|
|
1207
|
+
A(v.$slots, "default")
|
|
1208
1208
|
], 10, rt));
|
|
1209
1209
|
}
|
|
1210
|
-
}), ct = ["id", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-show-icon", "data-no-text", "data-overflow"], vt = /* @__PURE__ */
|
|
1210
|
+
}), ct = ["id", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-show-icon", "data-no-text", "data-overflow"], vt = /* @__PURE__ */ G({
|
|
1211
1211
|
__name: "tag",
|
|
1212
1212
|
props: {
|
|
1213
1213
|
behavior: { default: void 0 },
|
|
@@ -1231,18 +1231,18 @@ const Ha = (t) => {
|
|
|
1231
1231
|
remove: {}
|
|
1232
1232
|
},
|
|
1233
1233
|
setup(t) {
|
|
1234
|
-
const a = t, n =
|
|
1234
|
+
const a = t, n = d(null);
|
|
1235
1235
|
function e(u) {
|
|
1236
1236
|
u && (u.stopPropagation(), a.onRemove && a.onRemove(u));
|
|
1237
1237
|
}
|
|
1238
1238
|
function i() {
|
|
1239
|
-
return a.removeButton ? a.removeButton :
|
|
1239
|
+
return a.removeButton ? a.removeButton : Qe;
|
|
1240
1240
|
}
|
|
1241
|
-
return (u, c) => (
|
|
1241
|
+
return (u, c) => (h(), k("div", {
|
|
1242
1242
|
ref_key: "_ref",
|
|
1243
1243
|
ref: n,
|
|
1244
1244
|
id: u.id,
|
|
1245
|
-
class:
|
|
1245
|
+
class: q(o(U)("db-tag", a.class)),
|
|
1246
1246
|
"data-semantic": u.semantic,
|
|
1247
1247
|
"data-emphasis": u.emphasis,
|
|
1248
1248
|
"data-icon": u.icon,
|
|
@@ -1253,10 +1253,10 @@ const Ha = (t) => {
|
|
|
1253
1253
|
}, [
|
|
1254
1254
|
A(u.$slots, "content"),
|
|
1255
1255
|
A(u.$slots, "default"),
|
|
1256
|
-
u.text ? (
|
|
1257
|
-
N(
|
|
1258
|
-
], 64)) :
|
|
1259
|
-
u.behavior === "removable" ? (
|
|
1256
|
+
u.text ? (h(), k(W, { key: 0 }, [
|
|
1257
|
+
N($(u.text), 1)
|
|
1258
|
+
], 64)) : P("", !0),
|
|
1259
|
+
u.behavior === "removable" ? (h(), k("button", {
|
|
1260
1260
|
key: 1,
|
|
1261
1261
|
class: "db-button db-tab-remove-button",
|
|
1262
1262
|
"data-icon": "cross",
|
|
@@ -1266,19 +1266,19 @@ const Ha = (t) => {
|
|
|
1266
1266
|
type: "button",
|
|
1267
1267
|
onClick: c[0] || (c[0] = async (r) => e(r))
|
|
1268
1268
|
}, [
|
|
1269
|
-
ee(
|
|
1269
|
+
ee(oa, { variant: "label" }, {
|
|
1270
1270
|
default: O(() => [
|
|
1271
|
-
N(
|
|
1271
|
+
N($(i()), 1)
|
|
1272
1272
|
]),
|
|
1273
1273
|
_: 1
|
|
1274
1274
|
})
|
|
1275
|
-
])) :
|
|
1275
|
+
])) : P("", !0)
|
|
1276
1276
|
], 10, ct));
|
|
1277
1277
|
}
|
|
1278
1278
|
}), ft = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-hide-asterisk", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-show-icon"], pt = ["id"], ht = ["id", "form", "name", "multiple", "disabled", "required"], mt = ["disabled", "value"], gt = ["open"], bt = ["id", "aria-disabled", "aria-labelledby"], yt = ["data-visually-hidden", "id"], kt = { key: 1 }, wt = { key: 0 }, St = { key: 0 }, Bt = { class: "db-checkbox db-custom-select-list-item" }, Lt = ["form", "checked"], It = ["aria-hidden", "id"], $t = {
|
|
1279
1279
|
"data-visually-hidden": "true",
|
|
1280
1280
|
role: "status"
|
|
1281
|
-
}, nl = /* @__PURE__ */
|
|
1281
|
+
}, nl = /* @__PURE__ */ G({
|
|
1282
1282
|
__name: "custom-select",
|
|
1283
1283
|
props: {
|
|
1284
1284
|
children: { default: void 0 },
|
|
@@ -1343,19 +1343,19 @@ const Ha = (t) => {
|
|
|
1343
1343
|
},
|
|
1344
1344
|
emits: ["update:values"],
|
|
1345
1345
|
setup(t, { emit: a }) {
|
|
1346
|
-
const n = a, e = t, i =
|
|
1346
|
+
const n = a, e = t, i = d(void 0), u = d(void 0), c = d(void 0), r = d(void 0), f = d(void 0), s = d(void 0), m = d(void 0), I = d(void 0), w = d(void 0), p = d(void 0), v = d("no-validation"), S = d(!1), L = d(void 0), E = d(""), g = d(void 0), y = d(""), M = d([]), b = d(!1), X = d(!1), B = d(0), R = d([]), H = d([]), ke = d(!1), pe = d(void 0), $e = d(0), Ce = d(void 0), Ae = d(void 0), De = d(void 0), Ne = d(!1), Be = d(!1), na = d(null), z = d(null), ne = d(null), Te = d(null), Fe = d(null);
|
|
1347
1347
|
j(() => {
|
|
1348
1348
|
const l = e.id ?? `custom-select-${K()}`;
|
|
1349
|
-
i.value = l, u.value = l + de, c.value = l + ue, r.value = l + re,
|
|
1350
|
-
if (
|
|
1351
|
-
const
|
|
1352
|
-
|
|
1349
|
+
i.value = l, u.value = l + de, c.value = l + ue, r.value = l + re, s.value = l + He, m.value = l + Oe, I.value = l + "-summary", w.value = l + _e, g.value = l + "-selected-labels", p.value = l + "-info", f.value = e.invalidMessage || te, typeof window < "u" && "IntersectionObserver" in window && (Ae.value = new IntersectionObserver((T) => {
|
|
1350
|
+
if (z.value) {
|
|
1351
|
+
const _ = T.find(({ target: Q }) => Q === z.value);
|
|
1352
|
+
_ && !_.isIntersecting && z.value.open && (z.value.open = !1);
|
|
1353
1353
|
}
|
|
1354
1354
|
}));
|
|
1355
1355
|
}), D(
|
|
1356
|
-
() => [
|
|
1356
|
+
() => [z.value],
|
|
1357
1357
|
() => {
|
|
1358
|
-
|
|
1358
|
+
z.value && z.value.addEventListener(
|
|
1359
1359
|
"focusout",
|
|
1360
1360
|
(l) => Le(l)
|
|
1361
1361
|
);
|
|
@@ -1369,7 +1369,7 @@ const Ha = (t) => {
|
|
|
1369
1369
|
() => {
|
|
1370
1370
|
if (i.value) {
|
|
1371
1371
|
const l = i.value + de;
|
|
1372
|
-
|
|
1372
|
+
m.value = i.value + Oe, s.value = i.value + He, c.value = i.value + ue, r.value = i.value + re, w.value = i.value + _e, Z(e.message, e.showMessage) ? Pe(l) : Pe();
|
|
1373
1373
|
}
|
|
1374
1374
|
},
|
|
1375
1375
|
{
|
|
@@ -1377,13 +1377,13 @@ const Ha = (t) => {
|
|
|
1377
1377
|
flush: "post"
|
|
1378
1378
|
}
|
|
1379
1379
|
), D(
|
|
1380
|
-
() => [
|
|
1380
|
+
() => [z.value, L.value],
|
|
1381
1381
|
() => {
|
|
1382
|
-
if (
|
|
1383
|
-
const l =
|
|
1382
|
+
if (z.value) {
|
|
1383
|
+
const l = z.value.querySelector("summary");
|
|
1384
1384
|
l && l.setAttribute(
|
|
1385
1385
|
"aria-describedby",
|
|
1386
|
-
e.ariaDescribedBy ?? (
|
|
1386
|
+
e.ariaDescribedBy ?? (L.value || "")
|
|
1387
1387
|
);
|
|
1388
1388
|
}
|
|
1389
1389
|
},
|
|
@@ -1403,7 +1403,7 @@ const Ha = (t) => {
|
|
|
1403
1403
|
), D(
|
|
1404
1404
|
() => [e.showSelectAll, B.value, e.multiple],
|
|
1405
1405
|
() => {
|
|
1406
|
-
|
|
1406
|
+
b.value = !!(e.multiple && (e.showSelectAll ?? B.value > 5));
|
|
1407
1407
|
},
|
|
1408
1408
|
{
|
|
1409
1409
|
immediate: !0,
|
|
@@ -1422,16 +1422,16 @@ const Ha = (t) => {
|
|
|
1422
1422
|
() => [e.values],
|
|
1423
1423
|
() => {
|
|
1424
1424
|
const l = e.values;
|
|
1425
|
-
Array.isArray(l) ?
|
|
1425
|
+
Array.isArray(l) ? R.value !== l && (R.value = l) : l == null && R.value?.length !== 0 && (R.value = []);
|
|
1426
1426
|
},
|
|
1427
1427
|
{
|
|
1428
1428
|
immediate: !0,
|
|
1429
1429
|
flush: "post"
|
|
1430
1430
|
}
|
|
1431
1431
|
), D(
|
|
1432
|
-
() => [
|
|
1432
|
+
() => [R.value, ne.value],
|
|
1433
1433
|
() => {
|
|
1434
|
-
ne.value &&
|
|
1434
|
+
ne.value && da();
|
|
1435
1435
|
},
|
|
1436
1436
|
{
|
|
1437
1437
|
immediate: !0,
|
|
@@ -1440,16 +1440,16 @@ const Ha = (t) => {
|
|
|
1440
1440
|
), D(
|
|
1441
1441
|
() => [e.validation],
|
|
1442
1442
|
() => {
|
|
1443
|
-
|
|
1443
|
+
v.value = e.validation;
|
|
1444
1444
|
},
|
|
1445
1445
|
{
|
|
1446
1446
|
immediate: !0,
|
|
1447
1447
|
flush: "post"
|
|
1448
1448
|
}
|
|
1449
1449
|
), D(
|
|
1450
|
-
() => [
|
|
1450
|
+
() => [R.value, B.value],
|
|
1451
1451
|
() => {
|
|
1452
|
-
|
|
1452
|
+
R.value?.length === 0 ? (Ne.value = !1, Be.value = !1) : R.value?.length === B.value ? (Be.value = !1, Ne.value = !0) : R.value && (Be.value = !0);
|
|
1453
1453
|
},
|
|
1454
1454
|
{
|
|
1455
1455
|
immediate: !0,
|
|
@@ -1477,10 +1477,10 @@ const Ha = (t) => {
|
|
|
1477
1477
|
flush: "post"
|
|
1478
1478
|
}
|
|
1479
1479
|
), D(
|
|
1480
|
-
() => [e.options,
|
|
1480
|
+
() => [e.options, R.value],
|
|
1481
1481
|
() => {
|
|
1482
|
-
e.options?.length && (
|
|
1483
|
-
(l) => !l.value || !
|
|
1482
|
+
e.options?.length && (M.value = e.options?.filter(
|
|
1483
|
+
(l) => !l.value || !R.value?.includes ? !1 : !l.isGroupTitle && R.value?.includes(l.value)
|
|
1484
1484
|
));
|
|
1485
1485
|
},
|
|
1486
1486
|
{
|
|
@@ -1489,7 +1489,7 @@ const Ha = (t) => {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
), D(
|
|
1491
1491
|
() => [
|
|
1492
|
-
|
|
1492
|
+
M.value,
|
|
1493
1493
|
e.selectedType,
|
|
1494
1494
|
e.amountText,
|
|
1495
1495
|
e.selectedLabels,
|
|
@@ -1497,27 +1497,27 @@ const Ha = (t) => {
|
|
|
1497
1497
|
],
|
|
1498
1498
|
() => {
|
|
1499
1499
|
if (e.selectedLabels) {
|
|
1500
|
-
|
|
1500
|
+
E.value = e.selectedLabels;
|
|
1501
1501
|
return;
|
|
1502
1502
|
}
|
|
1503
|
-
if (
|
|
1503
|
+
if (M.value?.length) {
|
|
1504
1504
|
if (e.transformSelectedLabels) {
|
|
1505
|
-
const l =
|
|
1506
|
-
|
|
1505
|
+
const l = M.value, T = e.transformSelectedLabels;
|
|
1506
|
+
E.value = T(l);
|
|
1507
1507
|
return;
|
|
1508
1508
|
}
|
|
1509
|
-
e.selectedType === "amount" ?
|
|
1509
|
+
e.selectedType === "amount" ? E.value = e.amountText ? e.amountText : `${M.value?.length} ${Ba}` : E.value = M.value?.map((l) => ye(l)).join(", ");
|
|
1510
1510
|
} else
|
|
1511
|
-
|
|
1511
|
+
E.value = "";
|
|
1512
1512
|
},
|
|
1513
1513
|
{
|
|
1514
1514
|
immediate: !0,
|
|
1515
1515
|
flush: "post"
|
|
1516
1516
|
}
|
|
1517
1517
|
), D(
|
|
1518
|
-
() => [
|
|
1518
|
+
() => [M.value],
|
|
1519
1519
|
() => {
|
|
1520
|
-
e.onAmountChange && e.onAmountChange(
|
|
1520
|
+
e.onAmountChange && e.onAmountChange(M.value?.length ?? 0);
|
|
1521
1521
|
},
|
|
1522
1522
|
{
|
|
1523
1523
|
immediate: !0,
|
|
@@ -1535,80 +1535,80 @@ const Ha = (t) => {
|
|
|
1535
1535
|
), D(
|
|
1536
1536
|
() => [ne.value, e.invalidMessage],
|
|
1537
1537
|
() => {
|
|
1538
|
-
|
|
1538
|
+
f.value = e.invalidMessage || ne.value?.validationMessage || te;
|
|
1539
1539
|
},
|
|
1540
1540
|
{
|
|
1541
1541
|
immediate: !0,
|
|
1542
1542
|
flush: "post"
|
|
1543
1543
|
}
|
|
1544
1544
|
);
|
|
1545
|
-
function
|
|
1546
|
-
l?.target?.contains && l?.target?.contains(
|
|
1545
|
+
function sa(l) {
|
|
1546
|
+
l?.target?.contains && l?.target?.contains(z.value) && Me();
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function Re() {
|
|
1549
1549
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1552
|
-
ne.value && (ne.value.value =
|
|
1551
|
+
function da() {
|
|
1552
|
+
ne.value && (ne.value.value = ra()), !ne.value?.validity.valid || e.validation === "invalid" ? (L.value = r.value, f.value = e.invalidMessage || ne.value?.validationMessage || te, ve() && (y.value = f.value, J(() => y.value = "", 1e3)), S.value && (v.value = e.validation ?? "invalid")) : Re() && ne.value?.validity.valid && e.required ? (L.value = c.value, ve() && (y.value = e.validMessage ?? ce, J(() => y.value = "", 1e3)), v.value = e.validation ?? "valid") : Z(e.message, e.showMessage) ? (L.value = u.value, v.value = e.validation ?? "no-validation") : (L.value = w.value, v.value = e.validation ?? "no-validation");
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function ua(l) {
|
|
1555
1555
|
e.onDropdownToggle && (l.stopPropagation(), e.onDropdownToggle(l)), l.target instanceof HTMLDetailsElement && l.target.open ? (pe.value = new se().addCallback(
|
|
1556
|
-
(
|
|
1556
|
+
(T) => ga(T)
|
|
1557
1557
|
), Ce.value = new le().addCallback(
|
|
1558
|
-
(
|
|
1559
|
-
), Me(), Ae.value?.observe(
|
|
1558
|
+
(T) => sa(T)
|
|
1559
|
+
), Me(), Ae.value?.observe(z.value), l.target.dataset.test || qe()) : (pe.value && new se().removeCallback(
|
|
1560
1560
|
pe.value
|
|
1561
1561
|
), Ce.value && new le().removeCallback(
|
|
1562
1562
|
Ce.value
|
|
1563
|
-
), Ae.value?.unobserve(
|
|
1563
|
+
), Ae.value?.unobserve(z.value));
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return
|
|
1565
|
+
function ra() {
|
|
1566
|
+
return R.value?.length ? R.value.at(0) ?? "" : "";
|
|
1567
1567
|
}
|
|
1568
1568
|
function Pe(l) {
|
|
1569
|
-
const
|
|
1570
|
-
l &&
|
|
1569
|
+
const T = [];
|
|
1570
|
+
l && T.push(l), g.value && E.value?.length && T.push(g.value), L.value = T.join(" ");
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function ca() {
|
|
1573
1573
|
return e.selectAllLabel ?? me;
|
|
1574
1574
|
}
|
|
1575
1575
|
function ye(l) {
|
|
1576
1576
|
return l.label ?? l.value?.toString() ?? "";
|
|
1577
1577
|
}
|
|
1578
|
-
function ca(l) {
|
|
1579
|
-
return l && q.value?.includes ? q.value?.includes(l) : !1;
|
|
1580
|
-
}
|
|
1581
1578
|
function va(l) {
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1579
|
+
return l && R.value?.includes ? R.value?.includes(l) : !1;
|
|
1580
|
+
}
|
|
1581
|
+
function fa(l) {
|
|
1582
|
+
const T = e.removeTagsTexts, _ = e.options;
|
|
1583
|
+
if (T && _) {
|
|
1584
|
+
const Q = _.findIndex((x) => x.value === l.value);
|
|
1585
|
+
if (Q >= 0 && Q < T.length)
|
|
1586
|
+
return T[Q];
|
|
1587
1587
|
}
|
|
1588
|
-
return `${
|
|
1588
|
+
return `${Qe} ${ye(l)}`;
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1591
|
-
|
|
1590
|
+
function pa(l, T) {
|
|
1591
|
+
T && T.stopPropagation(), Ve(l.value), Ie();
|
|
1592
1592
|
}
|
|
1593
1593
|
function Me() {
|
|
1594
|
-
if (
|
|
1595
|
-
const l =
|
|
1594
|
+
if (z.value) {
|
|
1595
|
+
const l = z.value.querySelector("article");
|
|
1596
1596
|
l && J(() => {
|
|
1597
1597
|
ja(
|
|
1598
1598
|
l,
|
|
1599
|
-
|
|
1599
|
+
z.value,
|
|
1600
1600
|
e.placement ?? "bottom"
|
|
1601
1601
|
);
|
|
1602
1602
|
}, 1);
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1606
|
-
if (
|
|
1605
|
+
function ha(l) {
|
|
1606
|
+
if (z.value?.open) {
|
|
1607
1607
|
if (self.document) {
|
|
1608
|
-
const
|
|
1609
|
-
if (
|
|
1610
|
-
if (
|
|
1611
|
-
const Q =
|
|
1608
|
+
const T = self.document.activeElement;
|
|
1609
|
+
if (T)
|
|
1610
|
+
if (T.getAttribute("type") === "checkbox" || T.getAttribute("type") === "radio") {
|
|
1611
|
+
const Q = T?.closest("li");
|
|
1612
1612
|
if (l.key === "ArrowDown" || l.key === "ArrowRight") {
|
|
1613
1613
|
let x = Q?.nextElementSibling;
|
|
1614
1614
|
for (; x; ) {
|
|
@@ -1619,7 +1619,7 @@ const Ha = (t) => {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
x = x.nextElementSibling;
|
|
1621
1621
|
}
|
|
1622
|
-
x || Ee(
|
|
1622
|
+
x || Ee(T);
|
|
1623
1623
|
} else {
|
|
1624
1624
|
let x = Q?.previousElementSibling;
|
|
1625
1625
|
for (; x; ) {
|
|
@@ -1631,20 +1631,20 @@ const Ha = (t) => {
|
|
|
1631
1631
|
x = x.previousElementSibling;
|
|
1632
1632
|
}
|
|
1633
1633
|
if (!x) {
|
|
1634
|
-
const he =
|
|
1634
|
+
const he = z.value.querySelector(
|
|
1635
1635
|
'input[type="checkbox"]'
|
|
1636
1636
|
);
|
|
1637
|
-
if (he && he !==
|
|
1638
|
-
Ee(
|
|
1637
|
+
if (he && he !== T)
|
|
1638
|
+
Ee(T);
|
|
1639
1639
|
else {
|
|
1640
|
-
const Ge = Ye(
|
|
1640
|
+
const Ge = Ye(z.value);
|
|
1641
1641
|
if (Ge)
|
|
1642
1642
|
J(() => {
|
|
1643
1643
|
Ge.focus();
|
|
1644
1644
|
}, 100);
|
|
1645
1645
|
else {
|
|
1646
1646
|
const We = Array.from(
|
|
1647
|
-
|
|
1647
|
+
z.value?.querySelectorAll(
|
|
1648
1648
|
'input[type="checkbox"],input[type="radio"]'
|
|
1649
1649
|
)
|
|
1650
1650
|
);
|
|
@@ -1654,39 +1654,39 @@ const Ha = (t) => {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
}
|
|
1656
1656
|
} else
|
|
1657
|
-
|
|
1657
|
+
T.getAttribute("type") === "search" && (l.key === "ArrowUp" || l.key === "ArrowLeft") ? (Le(void 0, !0), Ie()) : Ee(T);
|
|
1658
1658
|
}
|
|
1659
|
-
} else (l.key === "ArrowDown" || l.key === "ArrowRight") && (Me(),
|
|
1659
|
+
} else (l.key === "ArrowDown" || l.key === "ArrowRight") && (Me(), z.value && (z.value.open = !0), qe());
|
|
1660
1660
|
l.stopPropagation(), l.preventDefault();
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
if (l.stopPropagation(), l.key === "Escape" &&
|
|
1662
|
+
function ma(l) {
|
|
1663
|
+
if (l.stopPropagation(), l.key === "Escape" && z.value?.open)
|
|
1664
1664
|
Le(void 0, !0), Ie();
|
|
1665
|
-
else if (l.key === "Enter" &&
|
|
1665
|
+
else if (l.key === "Enter" && z.value?.open) {
|
|
1666
1666
|
if (self.document) {
|
|
1667
|
-
const
|
|
1668
|
-
["checkbox", "radio"].includes(
|
|
1667
|
+
const T = self.document.activeElement;
|
|
1668
|
+
["checkbox", "radio"].includes(T.getAttribute("type") || "") && (T.click(), l.preventDefault());
|
|
1669
1669
|
}
|
|
1670
|
-
} else (l.key === "ArrowDown" || l.key === "ArrowUp" || l.key === "ArrowLeft" || l.key === "ArrowRight") &&
|
|
1671
|
-
}
|
|
1672
|
-
function Le(l,
|
|
1673
|
-
if (
|
|
1674
|
-
if (
|
|
1675
|
-
|
|
1676
|
-
else if (
|
|
1677
|
-
const
|
|
1678
|
-
|
|
1670
|
+
} else (l.key === "ArrowDown" || l.key === "ArrowUp" || l.key === "ArrowLeft" || l.key === "ArrowRight") && ha(l);
|
|
1671
|
+
}
|
|
1672
|
+
function Le(l, T) {
|
|
1673
|
+
if (z.value) {
|
|
1674
|
+
if (T)
|
|
1675
|
+
z.value.open = !1, Ie();
|
|
1676
|
+
else if (z.value.open && l && l.relatedTarget) {
|
|
1677
|
+
const _ = l.relatedTarget;
|
|
1678
|
+
z.value.contains(_) || J(() => z.value.open = !1, 1);
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function ga(l) {
|
|
1683
1683
|
if (l) {
|
|
1684
|
-
const
|
|
1685
|
-
|
|
1684
|
+
const T = l.target;
|
|
1685
|
+
z.value?.open && !z.value.contains(T) && (z.value.open = !1);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
function we(l) {
|
|
1689
|
-
(/* @__PURE__ */ new Date()).getTime() - $e.value < 200 || (
|
|
1689
|
+
(/* @__PURE__ */ new Date()).getTime() - $e.value < 200 || (R.value = l, S.value = !0, e.onOptionSelected && e.onOptionSelected(l ?? []), oe(
|
|
1690
1690
|
n,
|
|
1691
1691
|
{
|
|
1692
1692
|
target: {
|
|
@@ -1697,29 +1697,29 @@ const Ha = (t) => {
|
|
|
1697
1697
|
), $e.value = (/* @__PURE__ */ new Date()).getTime());
|
|
1698
1698
|
}
|
|
1699
1699
|
function Ve(l) {
|
|
1700
|
-
l && (e.multiple ?
|
|
1700
|
+
l && (e.multiple ? R.value?.includes(l) ? we(R.value.filter((T) => T !== l)) : we([...R.value || [], l]) : (we([l]), Le(void 0, !0)));
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
if (l.stopPropagation(),
|
|
1702
|
+
function ba(l) {
|
|
1703
|
+
if (l.stopPropagation(), R.value?.length === B.value)
|
|
1704
1704
|
we([]);
|
|
1705
1705
|
else {
|
|
1706
|
-
const
|
|
1706
|
+
const T = X.value && Fe.value ? Fe.value.value : void 0;
|
|
1707
1707
|
we(
|
|
1708
1708
|
e.options ? e.options.filter(
|
|
1709
|
-
(
|
|
1710
|
-
).map((
|
|
1709
|
+
(_) => !_.isGroupTitle && (!T || _.value?.toLowerCase().includes(T.toLowerCase()))
|
|
1710
|
+
).map((_) => _.value ?? "") : []
|
|
1711
1711
|
);
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
1714
|
function Ee(l) {
|
|
1715
|
-
if (
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1715
|
+
if (z.value) {
|
|
1716
|
+
const T = Array.from(
|
|
1717
|
+
z.value.querySelectorAll(
|
|
1718
1718
|
'input[type="checkbox"],input[type="radio"]'
|
|
1719
1719
|
)
|
|
1720
1720
|
);
|
|
1721
|
-
if (
|
|
1722
|
-
const
|
|
1721
|
+
if (T.length) {
|
|
1722
|
+
const _ = T.at(0), Q = _ === l && T.length > 1 ? T.at(1) : _;
|
|
1723
1723
|
Q && J(() => {
|
|
1724
1724
|
Q.focus();
|
|
1725
1725
|
}, 1);
|
|
@@ -1727,8 +1727,8 @@ const Ha = (t) => {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
1729
|
function qe() {
|
|
1730
|
-
if (
|
|
1731
|
-
const l = Ye(
|
|
1730
|
+
if (z.value) {
|
|
1731
|
+
const l = Ye(z.value);
|
|
1732
1732
|
l ? J(() => {
|
|
1733
1733
|
l.focus();
|
|
1734
1734
|
}, 1) : Ee();
|
|
@@ -1737,35 +1737,35 @@ const Ha = (t) => {
|
|
|
1737
1737
|
function Ue(l) {
|
|
1738
1738
|
if (l === void 0)
|
|
1739
1739
|
return;
|
|
1740
|
-
let
|
|
1740
|
+
let T;
|
|
1741
1741
|
if (typeof l == "string")
|
|
1742
|
-
|
|
1742
|
+
T = l;
|
|
1743
1743
|
else {
|
|
1744
|
-
const
|
|
1745
|
-
|
|
1744
|
+
const _ = l;
|
|
1745
|
+
_.stopPropagation(), e.onSearch && e.onSearch(_), T = _.target.value, De.value = T;
|
|
1746
1746
|
}
|
|
1747
|
-
!e.options ||
|
|
1748
|
-
(
|
|
1747
|
+
!e.options || !T || T.length === 0 ? H.value = e.options : e.searchFilter ? H.value = e.options.filter(
|
|
1748
|
+
(_) => e.searchFilter(_, T)
|
|
1749
1749
|
) : H.value = e.options.filter(
|
|
1750
|
-
(
|
|
1750
|
+
(_) => !_.isGroupTitle && ye(_).toLowerCase().includes(T.toLowerCase())
|
|
1751
1751
|
);
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function ya(l) {
|
|
1754
1754
|
l.stopPropagation(), we([]), Ie();
|
|
1755
1755
|
}
|
|
1756
1756
|
function Ie() {
|
|
1757
|
-
|
|
1757
|
+
z.value && z.value.querySelector("summary")?.focus();
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function ka(l) {
|
|
1760
1760
|
l.stopPropagation();
|
|
1761
1761
|
}
|
|
1762
|
-
return (l,
|
|
1762
|
+
return (l, T) => (h(), k("div", {
|
|
1763
1763
|
id: i.value,
|
|
1764
1764
|
ref_key: "_ref",
|
|
1765
|
-
ref:
|
|
1766
|
-
class:
|
|
1767
|
-
"aria-invalid":
|
|
1768
|
-
"data-custom-validity":
|
|
1765
|
+
ref: na,
|
|
1766
|
+
class: q(o(U)("db-custom-select", e.class)),
|
|
1767
|
+
"aria-invalid": v.value === "invalid",
|
|
1768
|
+
"data-custom-validity": v.value,
|
|
1769
1769
|
"data-width": l.formFieldWidth,
|
|
1770
1770
|
"data-variant": l.variant === "floating" && l.selectedType === "tag" && l.multiple ? "above" : l.variant,
|
|
1771
1771
|
"data-required": o(F)(l.required),
|
|
@@ -1776,67 +1776,67 @@ const Ha = (t) => {
|
|
|
1776
1776
|
"data-icon": l.icon,
|
|
1777
1777
|
"data-show-icon": o(F)(l.showIcon)
|
|
1778
1778
|
}, [
|
|
1779
|
-
|
|
1780
|
-
N(
|
|
1781
|
-
|
|
1779
|
+
C("label", { id: m.value }, [
|
|
1780
|
+
N($(l.label ?? o(me)), 1),
|
|
1781
|
+
C("select", {
|
|
1782
1782
|
role: "none",
|
|
1783
1783
|
hidden: !0,
|
|
1784
|
-
id:
|
|
1784
|
+
id: s.value,
|
|
1785
1785
|
tabIndex: -1,
|
|
1786
1786
|
ref_key: "selectRef",
|
|
1787
1787
|
ref: ne,
|
|
1788
1788
|
form: l.form,
|
|
1789
1789
|
name: l.name,
|
|
1790
|
-
multiple: o(
|
|
1791
|
-
disabled: o(
|
|
1792
|
-
required: o(
|
|
1793
|
-
onChange:
|
|
1790
|
+
multiple: o(V)(l.multiple, "multiple"),
|
|
1791
|
+
disabled: o(V)(l.disabled, "disabled"),
|
|
1792
|
+
required: o(V)(l.required, "required"),
|
|
1793
|
+
onChange: T[0] || (T[0] = async (_) => ka(_))
|
|
1794
1794
|
}, [
|
|
1795
|
-
l.options?.length ? (
|
|
1795
|
+
l.options?.length ? (h(!0), k(W, { key: 0 }, fe(l.options, (_, Q) => (h(), k("option", {
|
|
1796
1796
|
key: Q,
|
|
1797
|
-
disabled:
|
|
1798
|
-
value:
|
|
1799
|
-
},
|
|
1797
|
+
disabled: _.disabled,
|
|
1798
|
+
value: _.value
|
|
1799
|
+
}, $(ye(_)), 9, mt))), 128)) : P("", !0)
|
|
1800
1800
|
], 40, ht)
|
|
1801
1801
|
], 8, pt),
|
|
1802
|
-
|
|
1802
|
+
C("details", {
|
|
1803
1803
|
ref_key: "detailsRef",
|
|
1804
|
-
ref:
|
|
1804
|
+
ref: z,
|
|
1805
1805
|
open: l.open,
|
|
1806
|
-
onToggle:
|
|
1807
|
-
onKeydown:
|
|
1806
|
+
onToggle: T[2] || (T[2] = async (_) => ua(_)),
|
|
1807
|
+
onKeydown: T[3] || (T[3] = async (_) => ma(_))
|
|
1808
1808
|
}, [
|
|
1809
1809
|
A(l.$slots, "default"),
|
|
1810
|
-
l.options ? (
|
|
1811
|
-
|
|
1810
|
+
l.options ? (h(), k(W, { key: 0 }, [
|
|
1811
|
+
C("summary", {
|
|
1812
1812
|
class: "db-custom-select-form-field",
|
|
1813
1813
|
id: I.value,
|
|
1814
1814
|
"aria-disabled": o(F)(l.disabled),
|
|
1815
|
-
"aria-labelledby":
|
|
1815
|
+
"aria-labelledby": m.value
|
|
1816
1816
|
}, [
|
|
1817
|
-
|
|
1817
|
+
E.value?.length ? (h(), k("span", {
|
|
1818
1818
|
key: 0,
|
|
1819
1819
|
"data-visually-hidden": o(F)(l.selectedType === "tag"),
|
|
1820
|
-
id:
|
|
1821
|
-
},
|
|
1822
|
-
l.selectedType === "tag" ? (
|
|
1823
|
-
(
|
|
1820
|
+
id: g.value
|
|
1821
|
+
}, $(E.value), 9, yt)) : P("", !0),
|
|
1822
|
+
l.selectedType === "tag" ? (h(), k("div", kt, [
|
|
1823
|
+
(h(!0), k(W, null, fe(M.value, (_, Q) => (h(), Y(vt, {
|
|
1824
1824
|
key: Q,
|
|
1825
1825
|
emphasis: "strong",
|
|
1826
1826
|
behavior: "removable",
|
|
1827
|
-
removeButton:
|
|
1828
|
-
onRemove: (x) =>
|
|
1827
|
+
removeButton: fa(_),
|
|
1828
|
+
onRemove: (x) => pa(_, x)
|
|
1829
1829
|
}, {
|
|
1830
1830
|
default: O(() => [
|
|
1831
|
-
N(
|
|
1831
|
+
N($(ye(_)), 1)
|
|
1832
1832
|
]),
|
|
1833
1833
|
_: 2
|
|
1834
1834
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
1835
|
-
])) :
|
|
1835
|
+
])) : P("", !0)
|
|
1836
1836
|
], 8, bt),
|
|
1837
1837
|
ee(Ka, { width: l.dropdownWidth }, {
|
|
1838
1838
|
default: O(() => [
|
|
1839
|
-
X.value ? (
|
|
1839
|
+
X.value ? (h(), k("div", wt, [
|
|
1840
1840
|
ee(ut, {
|
|
1841
1841
|
type: "search",
|
|
1842
1842
|
ref_key: "searchInputRef",
|
|
@@ -1847,58 +1847,58 @@ const Ha = (t) => {
|
|
|
1847
1847
|
value: De.value,
|
|
1848
1848
|
label: l.searchLabel ?? o(me),
|
|
1849
1849
|
placeholder: l.searchPlaceholder ?? l.searchLabel,
|
|
1850
|
-
ariaDescribedBy: ke.value || l.showLoading ?
|
|
1851
|
-
onInput: (
|
|
1850
|
+
ariaDescribedBy: ke.value || l.showLoading ? p.value : void 0,
|
|
1851
|
+
onInput: (_) => Ue(_)
|
|
1852
1852
|
}, null, 8, ["name", "form", "value", "label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
1853
|
-
])) :
|
|
1854
|
-
ke.value || l.showLoading ? (
|
|
1853
|
+
])) : P("", !0),
|
|
1854
|
+
ke.value || l.showLoading ? (h(), Y(ae, {
|
|
1855
1855
|
key: 1,
|
|
1856
|
-
id:
|
|
1856
|
+
id: p.value,
|
|
1857
1857
|
icon: l.showLoading ? "circular_arrows" : void 0,
|
|
1858
1858
|
semantic: l.showLoading ? "informational" : "warning"
|
|
1859
1859
|
}, {
|
|
1860
1860
|
default: O(() => [
|
|
1861
|
-
N(
|
|
1861
|
+
N($((l.showLoading ? l.loadingText : l.noResultsText) ?? o(wa)), 1)
|
|
1862
1862
|
]),
|
|
1863
1863
|
_: 1
|
|
1864
|
-
}, 8, ["id", "icon", "semantic"])) : (
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1864
|
+
}, 8, ["id", "icon", "semantic"])) : (h(), k(W, { key: 2 }, [
|
|
1865
|
+
b.value ? (h(), k("div", St, [
|
|
1866
|
+
C("div", Bt, [
|
|
1867
|
+
C("label", null, [
|
|
1868
|
+
C("input", {
|
|
1869
1869
|
type: "checkbox",
|
|
1870
1870
|
value: "select-all",
|
|
1871
1871
|
ref_key: "selectAllRef",
|
|
1872
1872
|
ref: Te,
|
|
1873
1873
|
form: i.value,
|
|
1874
1874
|
checked: Ne.value,
|
|
1875
|
-
onChange:
|
|
1875
|
+
onChange: T[1] || (T[1] = async (_) => ba(_))
|
|
1876
1876
|
}, null, 40, Lt),
|
|
1877
|
-
N(
|
|
1877
|
+
N($(ca()), 1)
|
|
1878
1878
|
])
|
|
1879
1879
|
])
|
|
1880
|
-
])) :
|
|
1880
|
+
])) : P("", !0),
|
|
1881
1881
|
ee(tt, {
|
|
1882
|
-
multiple: o(
|
|
1882
|
+
multiple: o(V)(l.multiple, "multiple"),
|
|
1883
1883
|
label: l.ariaListLabel ?? l.label ?? o(me)
|
|
1884
1884
|
}, {
|
|
1885
1885
|
default: O(() => [
|
|
1886
|
-
(
|
|
1886
|
+
(h(!0), k(W, null, fe(H.value, (_, Q) => (h(), Y(et, {
|
|
1887
1887
|
key: Q,
|
|
1888
1888
|
type: l.multiple ? "checkbox" : "radio",
|
|
1889
|
-
showDivider:
|
|
1890
|
-
icon:
|
|
1891
|
-
isGroupTitle:
|
|
1892
|
-
groupTitle: ye(
|
|
1889
|
+
showDivider: _.showDivider,
|
|
1890
|
+
icon: _.icon,
|
|
1891
|
+
isGroupTitle: _.isGroupTitle,
|
|
1892
|
+
groupTitle: ye(_),
|
|
1893
1893
|
name: i.value,
|
|
1894
|
-
checked:
|
|
1895
|
-
disabled:
|
|
1896
|
-
value:
|
|
1897
|
-
onChange: (x) => Ve(
|
|
1894
|
+
checked: va(_.value),
|
|
1895
|
+
disabled: _.disabled,
|
|
1896
|
+
value: _.value,
|
|
1897
|
+
onChange: (x) => Ve(_.value)
|
|
1898
1898
|
}, {
|
|
1899
1899
|
default: O(() => [
|
|
1900
|
-
|
|
1901
|
-
N(
|
|
1900
|
+
_.isGroupTitle ? P("", !0) : (h(), k(W, { key: 0 }, [
|
|
1901
|
+
N($(ye(_)), 1)
|
|
1902
1902
|
], 64))
|
|
1903
1903
|
]),
|
|
1904
1904
|
_: 2
|
|
@@ -1907,7 +1907,7 @@ const Ha = (t) => {
|
|
|
1907
1907
|
_: 1
|
|
1908
1908
|
}, 8, ["multiple", "label"])
|
|
1909
1909
|
], 64)),
|
|
1910
|
-
|
|
1910
|
+
C("div", null, [
|
|
1911
1911
|
ee(be, {
|
|
1912
1912
|
variant: "ghost",
|
|
1913
1913
|
width: "full",
|
|
@@ -1915,10 +1915,10 @@ const Ha = (t) => {
|
|
|
1915
1915
|
size: "small",
|
|
1916
1916
|
name: i.value,
|
|
1917
1917
|
form: i.value,
|
|
1918
|
-
onClick: (
|
|
1918
|
+
onClick: (_) => Le(void 0, !0)
|
|
1919
1919
|
}, {
|
|
1920
1920
|
default: O(() => [
|
|
1921
|
-
N(
|
|
1921
|
+
N($(l.mobileCloseButtonText ?? o(ze)), 1)
|
|
1922
1922
|
]),
|
|
1923
1923
|
_: 1
|
|
1924
1924
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -1926,9 +1926,9 @@ const Ha = (t) => {
|
|
|
1926
1926
|
]),
|
|
1927
1927
|
_: 1
|
|
1928
1928
|
}, 8, ["width"])
|
|
1929
|
-
], 64)) :
|
|
1929
|
+
], 64)) : P("", !0)
|
|
1930
1930
|
], 40, gt),
|
|
1931
|
-
(l.showClearSelection ?? !0) &&
|
|
1931
|
+
(l.showClearSelection ?? !0) && R.value?.length ? (h(), Y(be, {
|
|
1932
1932
|
key: 0,
|
|
1933
1933
|
icon: "cross",
|
|
1934
1934
|
variant: "ghost",
|
|
@@ -1936,60 +1936,60 @@ const Ha = (t) => {
|
|
|
1936
1936
|
noText: !0,
|
|
1937
1937
|
name: i.value,
|
|
1938
1938
|
form: i.value,
|
|
1939
|
-
onClick: (
|
|
1939
|
+
onClick: (_) => ya(_)
|
|
1940
1940
|
}, {
|
|
1941
1941
|
default: O(() => [
|
|
1942
|
-
N(
|
|
1943
|
-
ee(
|
|
1942
|
+
N($(l.clearSelectionText), 1),
|
|
1943
|
+
ee(oa, { placement: "top" }, {
|
|
1944
1944
|
default: O(() => [
|
|
1945
|
-
N(
|
|
1945
|
+
N($(l.clearSelectionText), 1)
|
|
1946
1946
|
]),
|
|
1947
1947
|
_: 1
|
|
1948
1948
|
})
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 1
|
|
1951
|
-
}, 8, ["name", "form", "onClick"])) :
|
|
1952
|
-
|
|
1951
|
+
}, 8, ["name", "form", "onClick"])) : P("", !0),
|
|
1952
|
+
C("span", {
|
|
1953
1953
|
class: "db-custom-select-placeholder",
|
|
1954
1954
|
"aria-hidden": o(F)(!0),
|
|
1955
1955
|
id: w.value
|
|
1956
|
-
},
|
|
1957
|
-
o(Z)(l.message, l.showMessage) ? (
|
|
1956
|
+
}, $(l.placeholder ?? l.label), 9, It),
|
|
1957
|
+
o(Z)(l.message, l.showMessage) ? (h(), Y(ae, {
|
|
1958
1958
|
key: 1,
|
|
1959
1959
|
size: "small",
|
|
1960
1960
|
icon: l.messageIcon,
|
|
1961
1961
|
id: u.value
|
|
1962
1962
|
}, {
|
|
1963
1963
|
default: O(() => [
|
|
1964
|
-
N(
|
|
1964
|
+
N($(l.message), 1)
|
|
1965
1965
|
]),
|
|
1966
1966
|
_: 1
|
|
1967
|
-
}, 8, ["icon", "id"])) :
|
|
1968
|
-
|
|
1967
|
+
}, 8, ["icon", "id"])) : P("", !0),
|
|
1968
|
+
Re() ? (h(), Y(ae, {
|
|
1969
1969
|
key: 2,
|
|
1970
1970
|
size: "small",
|
|
1971
1971
|
semantic: "successful",
|
|
1972
1972
|
id: c.value
|
|
1973
1973
|
}, {
|
|
1974
1974
|
default: O(() => [
|
|
1975
|
-
N(
|
|
1975
|
+
N($(l.validMessage || o(ce)), 1)
|
|
1976
1976
|
]),
|
|
1977
1977
|
_: 1
|
|
1978
|
-
}, 8, ["id"])) :
|
|
1978
|
+
}, 8, ["id"])) : P("", !0),
|
|
1979
1979
|
ee(ae, {
|
|
1980
1980
|
size: "small",
|
|
1981
1981
|
semantic: "critical",
|
|
1982
1982
|
id: r.value
|
|
1983
1983
|
}, {
|
|
1984
1984
|
default: O(() => [
|
|
1985
|
-
N(
|
|
1985
|
+
N($(f.value), 1)
|
|
1986
1986
|
]),
|
|
1987
1987
|
_: 1
|
|
1988
1988
|
}, 8, ["id"]),
|
|
1989
|
-
|
|
1989
|
+
C("span", $t, $(y.value), 1)
|
|
1990
1990
|
], 10, ft));
|
|
1991
1991
|
}
|
|
1992
|
-
}), sl = ["fixed", "auto", "full"], Tt = ["id"], dl = /* @__PURE__ */
|
|
1992
|
+
}), sl = ["fixed", "auto", "full"], Tt = ["id"], dl = /* @__PURE__ */ G({
|
|
1993
1993
|
__name: "custom-select-form-field",
|
|
1994
1994
|
props: {
|
|
1995
1995
|
children: { default: void 0 },
|
|
@@ -1999,17 +1999,17 @@ const Ha = (t) => {
|
|
|
1999
1999
|
autofocus: { type: [Boolean, String] }
|
|
2000
2000
|
},
|
|
2001
2001
|
setup(t) {
|
|
2002
|
-
const a = t, n =
|
|
2003
|
-
return (e, i) => (
|
|
2002
|
+
const a = t, n = d(null);
|
|
2003
|
+
return (e, i) => (h(), k("summary", {
|
|
2004
2004
|
ref_key: "_ref",
|
|
2005
2005
|
ref: n,
|
|
2006
2006
|
id: e.id,
|
|
2007
|
-
class:
|
|
2007
|
+
class: q(o(U)("db-custom-select-form-field", a.class))
|
|
2008
2008
|
}, [
|
|
2009
2009
|
A(e.$slots, "default")
|
|
2010
2010
|
], 10, Tt));
|
|
2011
2011
|
}
|
|
2012
|
-
}), ul = ["checkbox", "radio"], rl = ["amount", "text", "tag"], Et = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], cl = /* @__PURE__ */
|
|
2012
|
+
}), ul = ["checkbox", "radio"], rl = ["amount", "text", "tag"], Et = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], cl = /* @__PURE__ */ G({
|
|
2013
2013
|
__name: "divider",
|
|
2014
2014
|
props: {
|
|
2015
2015
|
margin: { default: void 0 },
|
|
@@ -2023,8 +2023,8 @@ const Ha = (t) => {
|
|
|
2023
2023
|
width: { default: void 0 }
|
|
2024
2024
|
},
|
|
2025
2025
|
setup(t) {
|
|
2026
|
-
const a = t, n =
|
|
2027
|
-
return (e, i) => (
|
|
2026
|
+
const a = t, n = d(null);
|
|
2027
|
+
return (e, i) => (h(), k("div", {
|
|
2028
2028
|
ref_key: "_ref",
|
|
2029
2029
|
ref: n,
|
|
2030
2030
|
id: e.id,
|
|
@@ -2032,10 +2032,10 @@ const Ha = (t) => {
|
|
|
2032
2032
|
"data-variant": e.variant,
|
|
2033
2033
|
"data-emphasis": e.emphasis,
|
|
2034
2034
|
"data-width": e.width,
|
|
2035
|
-
class:
|
|
2035
|
+
class: q(o(U)("db-divider", a.class))
|
|
2036
2036
|
}, null, 10, Et));
|
|
2037
2037
|
}
|
|
2038
|
-
}), vl = ["none", "_"], fl = ["horizontal", "vertical"], _t = ["id", "data-position", "data-backdrop", "data-direction", "data-variant"], Ct = ["data-spacing", "data-width", "data-direction", "data-rounded"], At = { class: "db-drawer-header" }, Dt = { class: "db-drawer-header-text" }, Nt = { class: "db-drawer-content" }, Ft = /* @__PURE__ */
|
|
2038
|
+
}), vl = ["none", "_"], fl = ["horizontal", "vertical"], _t = ["id", "data-position", "data-backdrop", "data-direction", "data-variant"], Ct = ["data-spacing", "data-width", "data-direction", "data-rounded"], At = { class: "db-drawer-header" }, Dt = { class: "db-drawer-header-text" }, Nt = { class: "db-drawer-content" }, Ft = /* @__PURE__ */ G({
|
|
2039
2039
|
__name: "drawer",
|
|
2040
2040
|
props: {
|
|
2041
2041
|
backdrop: { default: void 0 },
|
|
@@ -2058,7 +2058,7 @@ const Ha = (t) => {
|
|
|
2058
2058
|
spacing: { default: void 0 }
|
|
2059
2059
|
},
|
|
2060
2060
|
setup(t) {
|
|
2061
|
-
const a = t, n =
|
|
2061
|
+
const a = t, n = d(!1), e = d(null), i = d(null);
|
|
2062
2062
|
j(() => {
|
|
2063
2063
|
c(), n.value = !0;
|
|
2064
2064
|
}), D(
|
|
@@ -2074,8 +2074,8 @@ const Ha = (t) => {
|
|
|
2074
2074
|
() => [e.value, n.value, a.position],
|
|
2075
2075
|
() => {
|
|
2076
2076
|
if (e.value && n.value && a.position === "absolute") {
|
|
2077
|
-
const
|
|
2078
|
-
|
|
2077
|
+
const f = e.value.parentElement;
|
|
2078
|
+
f && (f.style.position = "relative");
|
|
2079
2079
|
}
|
|
2080
2080
|
},
|
|
2081
2081
|
{
|
|
@@ -2083,8 +2083,8 @@ const Ha = (t) => {
|
|
|
2083
2083
|
flush: "post"
|
|
2084
2084
|
}
|
|
2085
2085
|
);
|
|
2086
|
-
function u(r,
|
|
2087
|
-
r && (Aa(r) ? r.key === "Escape" && (r.preventDefault(), a.onClose && a.onClose(r)) : (
|
|
2086
|
+
function u(r, f) {
|
|
2087
|
+
r && (Aa(r) ? r.key === "Escape" && (r.preventDefault(), a.onClose && a.onClose(r)) : (f && (r.stopPropagation(), a.onClose && a.onClose(r)), r.target?.nodeName === "DIALOG" && r.type === "click" && a.backdrop !== "none" && a.onClose && a.onClose(r)));
|
|
2088
2088
|
}
|
|
2089
2089
|
function c() {
|
|
2090
2090
|
if (e.value) {
|
|
@@ -2094,29 +2094,29 @@ const Ha = (t) => {
|
|
|
2094
2094
|
}, 401));
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
|
-
return (r,
|
|
2097
|
+
return (r, f) => (h(), k("dialog", {
|
|
2098
2098
|
class: "db-drawer",
|
|
2099
2099
|
id: r.id,
|
|
2100
2100
|
ref_key: "_ref",
|
|
2101
2101
|
ref: e,
|
|
2102
|
-
onClick:
|
|
2103
|
-
onKeydown:
|
|
2102
|
+
onClick: f[0] || (f[0] = async (s) => u(s)),
|
|
2103
|
+
onKeydown: f[1] || (f[1] = async (s) => u(s)),
|
|
2104
2104
|
"data-position": r.position,
|
|
2105
2105
|
"data-backdrop": r.backdrop,
|
|
2106
2106
|
"data-direction": r.direction,
|
|
2107
2107
|
"data-variant": r.variant
|
|
2108
2108
|
}, [
|
|
2109
|
-
|
|
2109
|
+
C("article", {
|
|
2110
2110
|
ref_key: "dialogContainerRef",
|
|
2111
2111
|
ref: i,
|
|
2112
|
-
class:
|
|
2112
|
+
class: q(o(U)("db-drawer-container", a.class)),
|
|
2113
2113
|
"data-spacing": r.spacing,
|
|
2114
2114
|
"data-width": r.width,
|
|
2115
2115
|
"data-direction": r.direction,
|
|
2116
2116
|
"data-rounded": o(F)(r.rounded)
|
|
2117
2117
|
}, [
|
|
2118
|
-
|
|
2119
|
-
|
|
2118
|
+
C("header", At, [
|
|
2119
|
+
C("div", Dt, [
|
|
2120
2120
|
A(r.$slots, "drawer-header")
|
|
2121
2121
|
]),
|
|
2122
2122
|
ee(be, {
|
|
@@ -2125,15 +2125,15 @@ const Ha = (t) => {
|
|
|
2125
2125
|
variant: "ghost",
|
|
2126
2126
|
id: r.closeButtonId,
|
|
2127
2127
|
noText: !0,
|
|
2128
|
-
onClick: (
|
|
2128
|
+
onClick: (s) => u(s, !0)
|
|
2129
2129
|
}, {
|
|
2130
2130
|
default: O(() => [
|
|
2131
|
-
N(
|
|
2131
|
+
N($(r.closeButtonText ?? o(ze)), 1)
|
|
2132
2132
|
]),
|
|
2133
2133
|
_: 1
|
|
2134
2134
|
}, 8, ["id", "onClick"])
|
|
2135
2135
|
]),
|
|
2136
|
-
|
|
2136
|
+
C("div", Nt, [
|
|
2137
2137
|
A(r.$slots, "default")
|
|
2138
2138
|
])
|
|
2139
2139
|
], 10, Ct)
|
|
@@ -2145,7 +2145,7 @@ const Ha = (t) => {
|
|
|
2145
2145
|
} = t;
|
|
2146
2146
|
return !!(!a?.classList?.contains("db-navigation-item-expand-button") && a?.parentElement?.classList.contains("db-navigation-item"));
|
|
2147
2147
|
};
|
|
2148
|
-
class
|
|
2148
|
+
class zt {
|
|
2149
2149
|
element;
|
|
2150
2150
|
subNavigation;
|
|
2151
2151
|
parentSubNavigation = null;
|
|
@@ -2218,7 +2218,7 @@ class Rt {
|
|
|
2218
2218
|
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), n && (this.triangleData = void 0));
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
|
-
const
|
|
2221
|
+
const Rt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-header-drawer-navigation" }, Vt = { class: "db-header-meta-navigation" }, qt = { class: "db-header-secondary-action" }, Ut = { class: "db-header-meta-navigation" }, Gt = { class: "db-header-navigation-bar" }, Wt = { class: "db-header-brand-container" }, Ot = { class: "db-header-navigation-container" }, Ht = { class: "db-header-navigation" }, Xt = { class: "db-header-primary-action" }, jt = { class: "db-header-action-container" }, Yt = { class: "db-header-burger-menu-container" }, Kt = { class: "db-header-secondary-action" }, bl = /* @__PURE__ */ G({
|
|
2222
2222
|
__name: "header",
|
|
2223
2223
|
props: {
|
|
2224
2224
|
brand: {},
|
|
@@ -2238,13 +2238,13 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2238
2238
|
width: { default: void 0 }
|
|
2239
2239
|
},
|
|
2240
2240
|
setup(t) {
|
|
2241
|
-
const a = t, n =
|
|
2241
|
+
const a = t, n = d(!1), e = d(!1), i = d(null);
|
|
2242
2242
|
j(() => {
|
|
2243
2243
|
n.value = !0;
|
|
2244
2244
|
}), D(
|
|
2245
2245
|
() => [n.value, i.value],
|
|
2246
2246
|
() => {
|
|
2247
|
-
n.value && i.value && a.forceMobile && (
|
|
2247
|
+
n.value && i.value && a.forceMobile && (ta(i.value, {
|
|
2248
2248
|
key: "data-force-mobile",
|
|
2249
2249
|
value: "true"
|
|
2250
2250
|
}), e.value = !0);
|
|
@@ -2255,16 +2255,16 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2255
2255
|
}
|
|
2256
2256
|
);
|
|
2257
2257
|
function u(r) {
|
|
2258
|
-
const
|
|
2259
|
-
a.onToggle && a.onToggle(
|
|
2258
|
+
const f = !V(a.drawerOpen, "drawerOpen");
|
|
2259
|
+
a.onToggle && a.onToggle(f);
|
|
2260
2260
|
}
|
|
2261
2261
|
function c(r) {
|
|
2262
2262
|
Mt(r) && u();
|
|
2263
2263
|
}
|
|
2264
|
-
return (r,
|
|
2264
|
+
return (r, f) => (h(), k("header", {
|
|
2265
2265
|
ref_key: "_ref",
|
|
2266
2266
|
ref: i,
|
|
2267
|
-
class:
|
|
2267
|
+
class: q(o(U)("db-header", a.class)),
|
|
2268
2268
|
id: r.id,
|
|
2269
2269
|
"data-width": r.width,
|
|
2270
2270
|
"data-on-forcing-mobile": r.forceMobile && !e.value
|
|
@@ -2273,64 +2273,64 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2273
2273
|
class: "db-header-drawer",
|
|
2274
2274
|
spacing: "small",
|
|
2275
2275
|
rounded: !0,
|
|
2276
|
-
open: o(
|
|
2277
|
-
onClose: (
|
|
2276
|
+
open: o(V)(r.drawerOpen),
|
|
2277
|
+
onClose: (s) => u()
|
|
2278
2278
|
}, {
|
|
2279
2279
|
default: O(() => [
|
|
2280
|
-
|
|
2281
|
-
|
|
2280
|
+
C("div", Pt, [
|
|
2281
|
+
C("div", {
|
|
2282
2282
|
class: "db-header-navigation",
|
|
2283
|
-
onClick:
|
|
2283
|
+
onClick: f[0] || (f[0] = async (s) => c(s))
|
|
2284
2284
|
}, [
|
|
2285
2285
|
A(r.$slots, "default")
|
|
2286
2286
|
]),
|
|
2287
|
-
|
|
2287
|
+
C("div", Vt, [
|
|
2288
2288
|
A(r.$slots, "meta-navigation")
|
|
2289
2289
|
])
|
|
2290
2290
|
]),
|
|
2291
|
-
|
|
2291
|
+
C("div", qt, [
|
|
2292
2292
|
A(r.$slots, "secondary-action")
|
|
2293
2293
|
])
|
|
2294
2294
|
]),
|
|
2295
2295
|
_: 3
|
|
2296
2296
|
}, 8, ["open", "onClose"]),
|
|
2297
|
-
|
|
2297
|
+
C("div", Ut, [
|
|
2298
2298
|
A(r.$slots, "meta-navigation")
|
|
2299
2299
|
]),
|
|
2300
|
-
|
|
2301
|
-
|
|
2300
|
+
C("div", Gt, [
|
|
2301
|
+
C("div", Wt, [
|
|
2302
2302
|
A(r.$slots, "brand")
|
|
2303
2303
|
]),
|
|
2304
|
-
|
|
2305
|
-
|
|
2304
|
+
C("div", Ot, [
|
|
2305
|
+
C("div", Ht, [
|
|
2306
2306
|
A(r.$slots, "default")
|
|
2307
2307
|
]),
|
|
2308
|
-
|
|
2308
|
+
C("div", Xt, [
|
|
2309
2309
|
A(r.$slots, "primary-action")
|
|
2310
2310
|
])
|
|
2311
2311
|
]),
|
|
2312
|
-
|
|
2313
|
-
|
|
2312
|
+
C("div", jt, [
|
|
2313
|
+
C("div", Yt, [
|
|
2314
2314
|
ee(be, {
|
|
2315
2315
|
icon: "menu",
|
|
2316
2316
|
variant: "ghost",
|
|
2317
2317
|
noText: !0,
|
|
2318
|
-
onClick: (
|
|
2318
|
+
onClick: (s) => u()
|
|
2319
2319
|
}, {
|
|
2320
2320
|
default: O(() => [
|
|
2321
|
-
N(
|
|
2321
|
+
N($(r.burgerMenuLabel ?? o(La)), 1)
|
|
2322
2322
|
]),
|
|
2323
2323
|
_: 1
|
|
2324
2324
|
}, 8, ["onClick"])
|
|
2325
2325
|
]),
|
|
2326
|
-
|
|
2326
|
+
C("div", Kt, [
|
|
2327
2327
|
A(r.$slots, "secondary-action")
|
|
2328
2328
|
])
|
|
2329
2329
|
])
|
|
2330
2330
|
])
|
|
2331
|
-
], 10,
|
|
2331
|
+
], 10, Rt));
|
|
2332
2332
|
}
|
|
2333
|
-
}), Jt = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], yl = /* @__PURE__ */
|
|
2333
|
+
}), Jt = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], yl = /* @__PURE__ */ G({
|
|
2334
2334
|
__name: "icon",
|
|
2335
2335
|
props: {
|
|
2336
2336
|
variant: { default: void 0 },
|
|
@@ -2344,19 +2344,19 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2344
2344
|
text: { default: void 0 }
|
|
2345
2345
|
},
|
|
2346
2346
|
setup(t) {
|
|
2347
|
-
const a = t, n =
|
|
2348
|
-
return (e, i) => (
|
|
2347
|
+
const a = t, n = d(null);
|
|
2348
|
+
return (e, i) => (h(), k("span", {
|
|
2349
2349
|
"aria-hidden": "true",
|
|
2350
2350
|
ref_key: "_ref",
|
|
2351
2351
|
ref: n,
|
|
2352
2352
|
id: e.id,
|
|
2353
|
-
class:
|
|
2353
|
+
class: q(o(U)("db-icon", a.class)),
|
|
2354
2354
|
"data-icon": e.icon,
|
|
2355
2355
|
"data-icon-weight": e.weight,
|
|
2356
2356
|
"data-icon-variant": e.variant
|
|
2357
2357
|
}, [
|
|
2358
|
-
e.text ? (
|
|
2359
|
-
N(
|
|
2358
|
+
e.text ? (h(), k(W, { key: 0 }, [
|
|
2359
|
+
N($(e.text), 1)
|
|
2360
2360
|
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
2361
2361
|
], 10, Jt));
|
|
2362
2362
|
}
|
|
@@ -2379,7 +2379,7 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2379
2379
|
"time",
|
|
2380
2380
|
"url",
|
|
2381
2381
|
"week"
|
|
2382
|
-
], Qt = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "data-size", "data-show-icon-trailing", "data-variant", "data-content", "data-wrap"], Sl = /* @__PURE__ */
|
|
2382
|
+
], Qt = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "data-size", "data-show-icon-trailing", "data-variant", "data-content", "data-wrap"], Sl = /* @__PURE__ */ G({
|
|
2383
2383
|
__name: "link",
|
|
2384
2384
|
props: {
|
|
2385
2385
|
content: { default: void 0 },
|
|
@@ -2403,15 +2403,15 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2403
2403
|
wrap: { type: [Boolean, String], default: void 0 }
|
|
2404
2404
|
},
|
|
2405
2405
|
setup(t) {
|
|
2406
|
-
const a = t, n =
|
|
2406
|
+
const a = t, n = d(null);
|
|
2407
2407
|
function e(i) {
|
|
2408
2408
|
a.onClick && a.onClick(i);
|
|
2409
2409
|
}
|
|
2410
|
-
return (i, u) => (
|
|
2410
|
+
return (i, u) => (h(), k("a", {
|
|
2411
2411
|
ref_key: "_ref",
|
|
2412
2412
|
ref: n,
|
|
2413
2413
|
id: i.id,
|
|
2414
|
-
class:
|
|
2414
|
+
class: q(o(U)("db-link", a.class)),
|
|
2415
2415
|
href: i.href,
|
|
2416
2416
|
target: i.target,
|
|
2417
2417
|
rel: i.rel,
|
|
@@ -2426,12 +2426,12 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2426
2426
|
"data-wrap": o(F)(i.wrap),
|
|
2427
2427
|
onClick: u[0] || (u[0] = async (c) => e(c))
|
|
2428
2428
|
}, [
|
|
2429
|
-
i.text ? (
|
|
2430
|
-
N(
|
|
2429
|
+
i.text ? (h(), k(W, { key: 0 }, [
|
|
2430
|
+
N($(i.text), 1)
|
|
2431
2431
|
], 64)) : A(i.$slots, "default", { key: 1 })
|
|
2432
2432
|
], 10, Qt));
|
|
2433
2433
|
}
|
|
2434
|
-
}), Bl = ["adaptive", "brand", "inline"], Ll = ["medium", "small"], Il = ["external", "internal"], Zt = ["id"], $l = /* @__PURE__ */
|
|
2434
|
+
}), Bl = ["adaptive", "brand", "inline"], Ll = ["medium", "small"], Il = ["external", "internal"], Zt = ["id"], $l = /* @__PURE__ */ G({
|
|
2435
2435
|
__name: "navigation",
|
|
2436
2436
|
props: {
|
|
2437
2437
|
children: { default: void 0 },
|
|
@@ -2441,16 +2441,16 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2441
2441
|
autofocus: { type: [Boolean, String] }
|
|
2442
2442
|
},
|
|
2443
2443
|
setup(t) {
|
|
2444
|
-
const a = t, n =
|
|
2444
|
+
const a = t, n = d(Se), e = d(null);
|
|
2445
2445
|
return j(() => {
|
|
2446
2446
|
n.value = a.id || "navigation-" + K();
|
|
2447
|
-
}), (i, u) => (
|
|
2447
|
+
}), (i, u) => (h(), k("nav", {
|
|
2448
2448
|
ref_key: "_ref",
|
|
2449
2449
|
ref: e,
|
|
2450
2450
|
id: n.value,
|
|
2451
|
-
class:
|
|
2451
|
+
class: q(o(U)("db-navigation", a.class))
|
|
2452
2452
|
}, [
|
|
2453
|
-
|
|
2453
|
+
C("menu", null, [
|
|
2454
2454
|
A(i.$slots, "default")
|
|
2455
2455
|
])
|
|
2456
2456
|
], 10, Zt));
|
|
@@ -2458,7 +2458,7 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2458
2458
|
}), xt = ["id", "data-width", "data-icon", "data-show-icon", "data-active", "data-wrap", "aria-disabled"], ei = ["aria-haspopup", "aria-expanded", "disabled"], ai = ["data-force-close", "id"], ti = {
|
|
2459
2459
|
key: 0,
|
|
2460
2460
|
class: "db-mobile-navigation-back"
|
|
2461
|
-
}, Tl = /* @__PURE__ */
|
|
2461
|
+
}, Tl = /* @__PURE__ */ G({
|
|
2462
2462
|
__name: "navigation-item",
|
|
2463
2463
|
props: {
|
|
2464
2464
|
active: { type: Boolean, default: void 0 },
|
|
@@ -2480,15 +2480,15 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2480
2480
|
text: { default: void 0 }
|
|
2481
2481
|
},
|
|
2482
2482
|
setup(t) {
|
|
2483
|
-
const a = t, n =
|
|
2483
|
+
const a = t, n = d(!1), e = d(!1), i = d(!0), u = d(!1), c = d(!1), r = d(
|
|
2484
2484
|
"sub-navigation-" + K()
|
|
2485
|
-
),
|
|
2485
|
+
), f = d(void 0), s = d(null);
|
|
2486
2486
|
j(() => {
|
|
2487
2487
|
n.value = !0;
|
|
2488
2488
|
}), D(
|
|
2489
2489
|
() => [a.subNavigationExpanded],
|
|
2490
2490
|
() => {
|
|
2491
|
-
a.subNavigationExpanded !== void 0 && (u.value = !!
|
|
2491
|
+
a.subNavigationExpanded !== void 0 && (u.value = !!V(
|
|
2492
2492
|
a.subNavigationExpanded,
|
|
2493
2493
|
"subNavigationExpanded"
|
|
2494
2494
|
));
|
|
@@ -2498,13 +2498,13 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2498
2498
|
flush: "post"
|
|
2499
2499
|
}
|
|
2500
2500
|
), D(
|
|
2501
|
-
() => [n.value,
|
|
2501
|
+
() => [n.value, s.value],
|
|
2502
2502
|
() => {
|
|
2503
|
-
if (n.value &&
|
|
2504
|
-
const
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2503
|
+
if (n.value && s.value) {
|
|
2504
|
+
const p = s.value.querySelector("menu");
|
|
2505
|
+
p && (p.children?.length > 0 ? (e.value = !0, f.value || (f.value = new zt(
|
|
2506
|
+
s.value,
|
|
2507
|
+
p
|
|
2508
2508
|
))) : i.value = !1);
|
|
2509
2509
|
}
|
|
2510
2510
|
},
|
|
@@ -2513,74 +2513,74 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2513
2513
|
flush: "post"
|
|
2514
2514
|
}
|
|
2515
2515
|
);
|
|
2516
|
-
function
|
|
2517
|
-
|
|
2516
|
+
function m(p) {
|
|
2517
|
+
p?.target?.nodeName === "A" && (c.value = !0, J(() => {
|
|
2518
2518
|
c.value = !1;
|
|
2519
2519
|
}, 1e3));
|
|
2520
2520
|
}
|
|
2521
|
-
function I(
|
|
2522
|
-
a.onClick && (
|
|
2521
|
+
function I(p) {
|
|
2522
|
+
a.onClick && (p.stopPropagation(), a.onClick(p)), e.value && (u.value = !0);
|
|
2523
2523
|
}
|
|
2524
|
-
function w(
|
|
2525
|
-
|
|
2524
|
+
function w(p) {
|
|
2525
|
+
p.stopPropagation(), u.value = !1;
|
|
2526
2526
|
}
|
|
2527
|
-
return (
|
|
2527
|
+
return (p, v) => (h(), k("li", {
|
|
2528
2528
|
ref_key: "_ref",
|
|
2529
|
-
ref:
|
|
2530
|
-
id:
|
|
2531
|
-
onMouseover:
|
|
2532
|
-
onMouseleave:
|
|
2533
|
-
onMousemove:
|
|
2534
|
-
class:
|
|
2535
|
-
"data-width":
|
|
2536
|
-
"data-icon":
|
|
2537
|
-
"data-show-icon": o(F)(
|
|
2538
|
-
"data-active":
|
|
2539
|
-
"data-wrap": o(F)(
|
|
2540
|
-
"aria-disabled": o(F)(
|
|
2529
|
+
ref: s,
|
|
2530
|
+
id: p.id,
|
|
2531
|
+
onMouseover: v[2] || (v[2] = async (S) => f.value?.enableFollow()),
|
|
2532
|
+
onMouseleave: v[3] || (v[3] = async (S) => f.value?.disableFollow()),
|
|
2533
|
+
onMousemove: v[4] || (v[4] = async (S) => f.value?.followByMouseEvent(S)),
|
|
2534
|
+
class: q(o(U)("db-navigation-item", a.class)),
|
|
2535
|
+
"data-width": p.width,
|
|
2536
|
+
"data-icon": p.icon,
|
|
2537
|
+
"data-show-icon": o(F)(p.showIcon),
|
|
2538
|
+
"data-active": p.active,
|
|
2539
|
+
"data-wrap": o(F)(p.wrap),
|
|
2540
|
+
"aria-disabled": o(F)(p.disabled)
|
|
2541
2541
|
}, [
|
|
2542
|
-
i.value ?
|
|
2543
|
-
|
|
2544
|
-
N(
|
|
2545
|
-
], 64)) : A(
|
|
2542
|
+
i.value ? P("", !0) : (h(), k(W, { key: 0 }, [
|
|
2543
|
+
p.text ? (h(), k(W, { key: 0 }, [
|
|
2544
|
+
N($(p.text), 1)
|
|
2545
|
+
], 64)) : A(p.$slots, "default", { key: 1 })
|
|
2546
2546
|
], 64)),
|
|
2547
|
-
i.value ? (
|
|
2548
|
-
|
|
2547
|
+
i.value ? (h(), k(W, { key: 1 }, [
|
|
2548
|
+
C("button", {
|
|
2549
2549
|
class: "db-navigation-item-expand-button",
|
|
2550
2550
|
"aria-haspopup": e.value,
|
|
2551
2551
|
"aria-expanded": u.value,
|
|
2552
|
-
disabled: o(
|
|
2553
|
-
onClick:
|
|
2552
|
+
disabled: o(V)(p.disabled, "disabled"),
|
|
2553
|
+
onClick: v[0] || (v[0] = async (S) => I(S))
|
|
2554
2554
|
}, [
|
|
2555
|
-
|
|
2556
|
-
N(
|
|
2557
|
-
], 64)) : A(
|
|
2555
|
+
p.text ? (h(), k(W, { key: 0 }, [
|
|
2556
|
+
N($(p.text), 1)
|
|
2557
|
+
], 64)) : A(p.$slots, "default", { key: 1 })
|
|
2558
2558
|
], 8, ei),
|
|
2559
|
-
|
|
2559
|
+
C("menu", {
|
|
2560
2560
|
class: "db-sub-navigation",
|
|
2561
2561
|
"data-force-close": c.value,
|
|
2562
2562
|
id: r.value,
|
|
2563
|
-
onClick:
|
|
2563
|
+
onClick: v[1] || (v[1] = async (S) => m(S))
|
|
2564
2564
|
}, [
|
|
2565
|
-
e.value ? (
|
|
2565
|
+
e.value ? (h(), k("div", ti, [
|
|
2566
2566
|
ee(be, {
|
|
2567
2567
|
icon: "arrow_left",
|
|
2568
2568
|
variant: "ghost",
|
|
2569
|
-
id:
|
|
2570
|
-
onClick: (
|
|
2569
|
+
id: p.backButtonId,
|
|
2570
|
+
onClick: (S) => w(S)
|
|
2571
2571
|
}, {
|
|
2572
2572
|
default: O(() => [
|
|
2573
|
-
N(
|
|
2573
|
+
N($(p.backButtonText ?? o(Sa)), 1)
|
|
2574
2574
|
]),
|
|
2575
2575
|
_: 1
|
|
2576
2576
|
}, 8, ["id", "onClick"])
|
|
2577
|
-
])) :
|
|
2578
|
-
A(
|
|
2577
|
+
])) : P("", !0),
|
|
2578
|
+
A(p.$slots, "sub-navigation")
|
|
2579
2579
|
], 8, ai)
|
|
2580
|
-
], 64)) :
|
|
2580
|
+
], 64)) : P("", !0)
|
|
2581
2581
|
], 42, xt));
|
|
2582
2582
|
}
|
|
2583
|
-
}), ii = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-show-icon", "data-link-variant"], li = { key: 0 }, oi = { key: 1 }, El = /* @__PURE__ */
|
|
2583
|
+
}), ii = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-show-icon", "data-link-variant"], li = { key: 0 }, oi = { key: 1 }, El = /* @__PURE__ */ G({
|
|
2584
2584
|
__name: "notification",
|
|
2585
2585
|
props: {
|
|
2586
2586
|
ariaLive: { default: void 0 },
|
|
@@ -2611,15 +2611,15 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2611
2611
|
text: { default: void 0 }
|
|
2612
2612
|
},
|
|
2613
2613
|
setup(t) {
|
|
2614
|
-
const a = t, n =
|
|
2614
|
+
const a = t, n = d(null);
|
|
2615
2615
|
function e(i) {
|
|
2616
2616
|
i && (i.stopPropagation(), a.onClose && a.onClose(i));
|
|
2617
2617
|
}
|
|
2618
|
-
return (i, u) => (
|
|
2618
|
+
return (i, u) => (h(), k("article", {
|
|
2619
2619
|
ref_key: "_ref",
|
|
2620
2620
|
ref: n,
|
|
2621
2621
|
id: i.id,
|
|
2622
|
-
class:
|
|
2622
|
+
class: q(o(U)("db-notification", a.class)),
|
|
2623
2623
|
"aria-live": i.ariaLive,
|
|
2624
2624
|
"data-semantic": i.semantic,
|
|
2625
2625
|
"data-variant": i.variant,
|
|
@@ -2628,15 +2628,15 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2628
2628
|
"data-link-variant": i.linkVariant
|
|
2629
2629
|
}, [
|
|
2630
2630
|
A(i.$slots, "image"),
|
|
2631
|
-
o(Z)(i.headline, i.showHeadline) ? (
|
|
2632
|
-
|
|
2633
|
-
i.text ? (
|
|
2634
|
-
N(
|
|
2631
|
+
o(Z)(i.headline, i.showHeadline) ? (h(), k("header", li, $(i.headline), 1)) : P("", !0),
|
|
2632
|
+
C("p", null, [
|
|
2633
|
+
i.text ? (h(), k(W, { key: 0 }, [
|
|
2634
|
+
N($(i.text), 1)
|
|
2635
2635
|
], 64)) : A(i.$slots, "default", { key: 1 })
|
|
2636
2636
|
]),
|
|
2637
|
-
o(Z)(i.timestamp, i.showTimestamp) ? (
|
|
2637
|
+
o(Z)(i.timestamp, i.showTimestamp) ? (h(), k("span", oi, $(i.timestamp), 1)) : P("", !0),
|
|
2638
2638
|
A(i.$slots, "link"),
|
|
2639
|
-
o(
|
|
2639
|
+
o(V)(i.closeable, "closeable") ? (h(), Y(be, {
|
|
2640
2640
|
key: 2,
|
|
2641
2641
|
icon: "cross",
|
|
2642
2642
|
variant: "ghost",
|
|
@@ -2646,13 +2646,13 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2646
2646
|
onClick: (c) => e(c)
|
|
2647
2647
|
}, {
|
|
2648
2648
|
default: O(() => [
|
|
2649
|
-
N(
|
|
2649
|
+
N($(i.closeButtonText ?? o(ze)), 1)
|
|
2650
2650
|
]),
|
|
2651
2651
|
_: 1
|
|
2652
|
-
}, 8, ["id", "onClick"])) :
|
|
2652
|
+
}, 8, ["id", "onClick"])) : P("", !0)
|
|
2653
2653
|
], 10, ii));
|
|
2654
2654
|
}
|
|
2655
|
-
}), _l = ["docked", "standalone", "overlay"], Cl = ["block", "inline"], Al = ["assertive", "polite", "off"], ni = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], Dl = /* @__PURE__ */
|
|
2655
|
+
}), _l = ["docked", "standalone", "overlay"], Cl = ["block", "inline"], Al = ["assertive", "polite", "off"], ni = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], Dl = /* @__PURE__ */ G({
|
|
2656
2656
|
__name: "page",
|
|
2657
2657
|
props: {
|
|
2658
2658
|
documentOverflow: { default: void 0 },
|
|
@@ -2668,32 +2668,32 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2668
2668
|
autofocus: { type: [Boolean, String] }
|
|
2669
2669
|
},
|
|
2670
2670
|
setup(t) {
|
|
2671
|
-
const a = t, n =
|
|
2671
|
+
const a = t, n = d(!1), e = d(null);
|
|
2672
2672
|
return typeof window < "u" && document && (a.documentOverflow === "hidden" || a.variant === "fixed" && a.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), j(() => {
|
|
2673
2673
|
n.value = !a.fadeIn, document && a.fadeIn ? document.fonts.ready.then(() => {
|
|
2674
2674
|
n.value = !0;
|
|
2675
2675
|
}) : n.value = !0;
|
|
2676
|
-
}),
|
|
2676
|
+
}), Ke(() => {
|
|
2677
2677
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
2678
|
-
}), (i, u) => (
|
|
2678
|
+
}), (i, u) => (h(), k("div", {
|
|
2679
2679
|
ref_key: "_ref",
|
|
2680
2680
|
ref: e,
|
|
2681
2681
|
id: i.id,
|
|
2682
|
-
class:
|
|
2682
|
+
class: q(o(U)("db-page", a.class)),
|
|
2683
2683
|
"data-variant": i.variant,
|
|
2684
2684
|
"data-fade-in": o(F)(i.fadeIn),
|
|
2685
2685
|
"data-fonts-loaded": o(F)(n.value)
|
|
2686
2686
|
}, [
|
|
2687
2687
|
A(i.$slots, "header"),
|
|
2688
|
-
|
|
2689
|
-
class:
|
|
2688
|
+
C("main", {
|
|
2689
|
+
class: q(o(U)("db-main", i.mainClass))
|
|
2690
2690
|
}, [
|
|
2691
2691
|
A(i.$slots, "default")
|
|
2692
2692
|
], 2),
|
|
2693
2693
|
A(i.$slots, "footer")
|
|
2694
2694
|
], 10, ni));
|
|
2695
2695
|
}
|
|
2696
|
-
}), Nl = ["auto", "fixed"], Fl = ["hidden", "auto"], si = ["id"], di = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Ml = /* @__PURE__ */
|
|
2696
|
+
}), Nl = ["auto", "fixed"], Fl = ["hidden", "auto"], si = ["id"], di = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Ml = /* @__PURE__ */ G({
|
|
2697
2697
|
__name: "popover",
|
|
2698
2698
|
props: {
|
|
2699
2699
|
open: { type: [Boolean, String], default: void 0 },
|
|
@@ -2711,7 +2711,7 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2711
2711
|
width: { default: void 0 }
|
|
2712
2712
|
},
|
|
2713
2713
|
setup(t) {
|
|
2714
|
-
const a = t, n =
|
|
2714
|
+
const a = t, n = d(!1), e = d(!1), i = d(void 0), u = d(void 0), c = d(null);
|
|
2715
2715
|
j(() => {
|
|
2716
2716
|
n.value = !0;
|
|
2717
2717
|
}), D(
|
|
@@ -2719,17 +2719,17 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2719
2719
|
() => {
|
|
2720
2720
|
if (c.value && n.value) {
|
|
2721
2721
|
n.value = !1;
|
|
2722
|
-
const
|
|
2723
|
-
|
|
2722
|
+
const p = w();
|
|
2723
|
+
p && (p.ariaHasPopup = "true"), f(), c.value.addEventListener(
|
|
2724
2724
|
"keydown",
|
|
2725
|
-
(
|
|
2726
|
-
), ["mouseenter", "focusin"].forEach((
|
|
2727
|
-
c.value.addEventListener(
|
|
2728
|
-
}), ["mouseleave", "focusout"].forEach((
|
|
2729
|
-
c.value.addEventListener(
|
|
2730
|
-
}), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((
|
|
2731
|
-
const
|
|
2732
|
-
|
|
2725
|
+
(v) => r(v)
|
|
2726
|
+
), ["mouseenter", "focusin"].forEach((v) => {
|
|
2727
|
+
c.value.addEventListener(v, () => m());
|
|
2728
|
+
}), ["mouseleave", "focusout"].forEach((v) => {
|
|
2729
|
+
c.value.addEventListener(v, () => I());
|
|
2730
|
+
}), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((v) => {
|
|
2731
|
+
const S = v.find(({ target: L }) => L === w());
|
|
2732
|
+
S && !S.isIntersecting && r(!1);
|
|
2733
2733
|
}));
|
|
2734
2734
|
}
|
|
2735
2735
|
},
|
|
@@ -2741,8 +2741,8 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2741
2741
|
() => [c.value, e.value],
|
|
2742
2742
|
() => {
|
|
2743
2743
|
if (c.value) {
|
|
2744
|
-
const
|
|
2745
|
-
|
|
2744
|
+
const p = w();
|
|
2745
|
+
p && (p.ariaExpanded = (!!e.value).toString());
|
|
2746
2746
|
}
|
|
2747
2747
|
},
|
|
2748
2748
|
{
|
|
@@ -2750,73 +2750,73 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2750
2750
|
flush: "post"
|
|
2751
2751
|
}
|
|
2752
2752
|
);
|
|
2753
|
-
function r(
|
|
2754
|
-
if (!
|
|
2755
|
-
for (const
|
|
2756
|
-
|
|
2753
|
+
function r(p) {
|
|
2754
|
+
if (!p || p.key === "Escape")
|
|
2755
|
+
for (const v of Array.from(c.value.children))
|
|
2756
|
+
v.blur();
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function f() {
|
|
2759
2759
|
if (!c.value) return;
|
|
2760
|
-
const
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2760
|
+
const p = c.value.querySelector("article");
|
|
2761
|
+
p && J(() => {
|
|
2762
|
+
la(
|
|
2763
|
+
p,
|
|
2764
2764
|
c.value,
|
|
2765
2765
|
a.placement ?? "bottom"
|
|
2766
2766
|
);
|
|
2767
2767
|
}, 1);
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2770
|
-
|
|
2769
|
+
function s(p) {
|
|
2770
|
+
p?.target?.contains && p?.target?.contains(c.value) && f();
|
|
2771
2771
|
}
|
|
2772
|
-
function
|
|
2772
|
+
function m() {
|
|
2773
2773
|
e.value = !0, i.value = new le().addCallback(
|
|
2774
|
-
(
|
|
2775
|
-
),
|
|
2776
|
-
const
|
|
2777
|
-
|
|
2774
|
+
(v) => s(v)
|
|
2775
|
+
), f();
|
|
2776
|
+
const p = w();
|
|
2777
|
+
p && u.value?.observe(p);
|
|
2778
2778
|
}
|
|
2779
|
-
function I(
|
|
2779
|
+
function I(p) {
|
|
2780
2780
|
{
|
|
2781
2781
|
e.value = !1, i.value && new le().removeCallback(
|
|
2782
2782
|
i.value
|
|
2783
2783
|
);
|
|
2784
|
-
const
|
|
2785
|
-
|
|
2784
|
+
const v = w();
|
|
2785
|
+
v && u.value?.unobserve(v);
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
2788
|
function w() {
|
|
2789
2789
|
if (c.value) {
|
|
2790
|
-
const
|
|
2791
|
-
if (
|
|
2792
|
-
const
|
|
2793
|
-
return
|
|
2790
|
+
const p = Array.from(c.value.children);
|
|
2791
|
+
if (p.length >= 2) {
|
|
2792
|
+
const v = p[0];
|
|
2793
|
+
return v.tagName.includes("-") ? v.children?.length > 0 ? v.children[0] : null : v;
|
|
2794
2794
|
}
|
|
2795
2795
|
}
|
|
2796
2796
|
return null;
|
|
2797
2797
|
}
|
|
2798
|
-
return (
|
|
2798
|
+
return (p, v) => (h(), k("div", {
|
|
2799
2799
|
ref_key: "_ref",
|
|
2800
2800
|
ref: c,
|
|
2801
|
-
id:
|
|
2802
|
-
class:
|
|
2801
|
+
id: p.id,
|
|
2802
|
+
class: q(o(U)("db-popover", a.class))
|
|
2803
2803
|
}, [
|
|
2804
|
-
A(
|
|
2805
|
-
|
|
2804
|
+
A(p.$slots, "trigger"),
|
|
2805
|
+
C("article", {
|
|
2806
2806
|
class: "db-popover-content",
|
|
2807
|
-
"data-spacing":
|
|
2808
|
-
"data-gap": o(F)(
|
|
2809
|
-
"data-animation": o(F)(
|
|
2810
|
-
"data-open": o(F)(
|
|
2811
|
-
"data-delay":
|
|
2812
|
-
"data-width":
|
|
2813
|
-
"data-placement":
|
|
2807
|
+
"data-spacing": p.spacing,
|
|
2808
|
+
"data-gap": o(F)(p.gap),
|
|
2809
|
+
"data-animation": o(F)(p.animation ?? !0),
|
|
2810
|
+
"data-open": o(F)(p.open),
|
|
2811
|
+
"data-delay": p.delay,
|
|
2812
|
+
"data-width": p.width,
|
|
2813
|
+
"data-placement": p.placement
|
|
2814
2814
|
}, [
|
|
2815
|
-
A(
|
|
2815
|
+
A(p.$slots, "default")
|
|
2816
2816
|
], 8, di)
|
|
2817
2817
|
], 10, si));
|
|
2818
2818
|
}
|
|
2819
|
-
}), ui = ["data-size", "data-hide-label", "data-hide-asterisk", "for"], ri = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required"],
|
|
2819
|
+
}), ui = ["data-size", "data-hide-label", "data-hide-asterisk", "for"], ri = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required"], zl = /* @__PURE__ */ G({
|
|
2820
2820
|
__name: "radio",
|
|
2821
2821
|
props: {
|
|
2822
2822
|
children: { default: void 0 },
|
|
@@ -2845,7 +2845,7 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2845
2845
|
},
|
|
2846
2846
|
emits: ["update:value"],
|
|
2847
2847
|
setup(t, { emit: a }) {
|
|
2848
|
-
const n = a, e = t, i =
|
|
2848
|
+
const n = a, e = t, i = d(!1), u = d(void 0), c = d(null);
|
|
2849
2849
|
j(() => {
|
|
2850
2850
|
i.value = !0, u.value = e.id ?? `radio-${K()}`;
|
|
2851
2851
|
}), D(
|
|
@@ -2858,44 +2858,44 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2858
2858
|
flush: "post"
|
|
2859
2859
|
}
|
|
2860
2860
|
);
|
|
2861
|
-
function r(
|
|
2862
|
-
e.onChange && e.onChange(
|
|
2861
|
+
function r(m) {
|
|
2862
|
+
e.onChange && e.onChange(m), oe(n, m);
|
|
2863
2863
|
}
|
|
2864
|
-
function
|
|
2865
|
-
e.onBlur && e.onBlur(
|
|
2864
|
+
function f(m) {
|
|
2865
|
+
e.onBlur && e.onBlur(m);
|
|
2866
2866
|
}
|
|
2867
|
-
function
|
|
2868
|
-
e.onFocus && e.onFocus(
|
|
2867
|
+
function s(m) {
|
|
2868
|
+
e.onFocus && e.onFocus(m);
|
|
2869
2869
|
}
|
|
2870
|
-
return (
|
|
2871
|
-
"data-size":
|
|
2872
|
-
"data-hide-label": o(ie)(
|
|
2873
|
-
"data-hide-asterisk": o(ie)(
|
|
2874
|
-
class:
|
|
2870
|
+
return (m, I) => (h(), k("label", {
|
|
2871
|
+
"data-size": m.size,
|
|
2872
|
+
"data-hide-label": o(ie)(m.showLabel),
|
|
2873
|
+
"data-hide-asterisk": o(ie)(m.showRequiredAsterisk),
|
|
2874
|
+
class: q(o(U)("db-radio", e.class)),
|
|
2875
2875
|
for: u.value
|
|
2876
2876
|
}, [
|
|
2877
|
-
|
|
2877
|
+
C("input", {
|
|
2878
2878
|
type: "radio",
|
|
2879
|
-
"aria-invalid":
|
|
2880
|
-
"data-custom-validity":
|
|
2879
|
+
"aria-invalid": m.validation === "invalid",
|
|
2880
|
+
"data-custom-validity": m.validation,
|
|
2881
2881
|
ref_key: "_ref",
|
|
2882
2882
|
ref: c,
|
|
2883
2883
|
id: u.value,
|
|
2884
|
-
name:
|
|
2885
|
-
checked: o(
|
|
2886
|
-
disabled: o(
|
|
2887
|
-
value:
|
|
2888
|
-
required: o(
|
|
2884
|
+
name: m.name,
|
|
2885
|
+
checked: o(V)(m.checked, "checked"),
|
|
2886
|
+
disabled: o(V)(m.disabled, "disabled"),
|
|
2887
|
+
value: m.value,
|
|
2888
|
+
required: o(V)(m.required, "required"),
|
|
2889
2889
|
onChange: I[0] || (I[0] = async (w) => r(w)),
|
|
2890
|
-
onBlur: I[1] || (I[1] = async (w) =>
|
|
2891
|
-
onFocus: I[2] || (I[2] = async (w) =>
|
|
2890
|
+
onBlur: I[1] || (I[1] = async (w) => f(w)),
|
|
2891
|
+
onFocus: I[2] || (I[2] = async (w) => s(w))
|
|
2892
2892
|
}, null, 40, ri),
|
|
2893
|
-
|
|
2894
|
-
N(
|
|
2895
|
-
], 64)) : A(
|
|
2893
|
+
m.label ? (h(), k(W, { key: 0 }, [
|
|
2894
|
+
N($(m.label), 1)
|
|
2895
|
+
], 64)) : A(m.$slots, "default", { key: 1 })
|
|
2896
2896
|
], 10, ui));
|
|
2897
2897
|
}
|
|
2898
|
-
}), ci = ["id", "data-spacing", "data-width"],
|
|
2898
|
+
}), ci = ["id", "data-spacing", "data-width"], Rl = /* @__PURE__ */ G({
|
|
2899
2899
|
__name: "section",
|
|
2900
2900
|
props: {
|
|
2901
2901
|
children: { default: void 0 },
|
|
@@ -2907,14 +2907,14 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2907
2907
|
width: { default: void 0 }
|
|
2908
2908
|
},
|
|
2909
2909
|
setup(t) {
|
|
2910
|
-
const a = t, n =
|
|
2910
|
+
const a = t, n = d(Se), e = d(null);
|
|
2911
2911
|
return j(() => {
|
|
2912
2912
|
n.value = a.id || "section-" + K();
|
|
2913
|
-
}), (i, u) => (
|
|
2913
|
+
}), (i, u) => (h(), k("section", {
|
|
2914
2914
|
ref_key: "_ref",
|
|
2915
2915
|
ref: e,
|
|
2916
2916
|
id: n.value,
|
|
2917
|
-
class:
|
|
2917
|
+
class: q(o(U)("db-section", a.class)),
|
|
2918
2918
|
"data-spacing": i.spacing || "medium",
|
|
2919
2919
|
"data-width": i.width
|
|
2920
2920
|
}, [
|
|
@@ -2928,7 +2928,7 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2928
2928
|
}, mi = ["label"], gi = ["value", "selected", "disabled"], bi = ["value", "disabled", "selected"], yi = ["id"], ki = {
|
|
2929
2929
|
"data-visually-hidden": "true",
|
|
2930
2930
|
role: "status"
|
|
2931
|
-
}, Pl = /* @__PURE__ */
|
|
2931
|
+
}, Pl = /* @__PURE__ */ G({
|
|
2932
2932
|
__name: "select",
|
|
2933
2933
|
props: {
|
|
2934
2934
|
children: { default: void 0 },
|
|
@@ -2971,15 +2971,15 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2971
2971
|
},
|
|
2972
2972
|
emits: ["update:value"],
|
|
2973
2973
|
setup(t, { emit: a }) {
|
|
2974
|
-
const n = a, e = t, i =
|
|
2974
|
+
const n = a, e = t, i = d(void 0), u = d(void 0), c = d(void 0), r = d(void 0), f = d(void 0), s = d(""), m = d(void 0), I = d(""), w = d(!1), p = d(""), v = d(null);
|
|
2975
2975
|
j(() => {
|
|
2976
2976
|
w.value = !0;
|
|
2977
2977
|
const B = e.id ?? `select-${K()}`;
|
|
2978
|
-
i.value = B, u.value = B + de, c.value = B + ue, r.value = B + re,
|
|
2978
|
+
i.value = B, u.value = B + de, c.value = B + ue, r.value = B + re, s.value = B + _e, f.value = e.invalidMessage || te;
|
|
2979
2979
|
}), D(
|
|
2980
|
-
() => [
|
|
2980
|
+
() => [v.value, e.invalidMessage],
|
|
2981
2981
|
() => {
|
|
2982
|
-
|
|
2982
|
+
f.value = e.invalidMessage || v.value?.validationMessage || te;
|
|
2983
2983
|
},
|
|
2984
2984
|
{
|
|
2985
2985
|
immediate: !0,
|
|
@@ -2989,8 +2989,8 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
2989
2989
|
() => [i.value, w.value],
|
|
2990
2990
|
() => {
|
|
2991
2991
|
if (i.value && w.value) {
|
|
2992
|
-
const B = i.value + de,
|
|
2993
|
-
u.value = B, c.value = i.value + ue, r.value = i.value + re,
|
|
2992
|
+
const B = i.value + de, R = i.value + _e;
|
|
2993
|
+
u.value = B, c.value = i.value + ue, r.value = i.value + re, s.value = R, Z(e.message, e.showMessage) ? m.value = B : e.placeholder ? m.value = R : m.value = void 0, L(), w.value = !1;
|
|
2994
2994
|
}
|
|
2995
2995
|
},
|
|
2996
2996
|
{
|
|
@@ -3007,120 +3007,120 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3007
3007
|
flush: "post"
|
|
3008
3008
|
}
|
|
3009
3009
|
);
|
|
3010
|
-
function
|
|
3010
|
+
function S() {
|
|
3011
3011
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3012
3012
|
}
|
|
3013
|
-
function
|
|
3014
|
-
!
|
|
3013
|
+
function L() {
|
|
3014
|
+
!v.value?.validity.valid || e.validation === "invalid" ? (m.value = r.value, f.value = e.invalidMessage || v.value?.validationMessage || te, ve() && (p.value = f.value, J(() => p.value = "", 1e3))) : S() && v.value?.validity.valid && e.required ? (m.value = c.value, ve() && (p.value = e.validMessage ?? ce, J(() => p.value = "", 1e3))) : Z(e.message, e.showMessage) ? m.value = u.value : e.placeholder ? m.value = s.value : m.value = void 0;
|
|
3015
3015
|
}
|
|
3016
|
-
function
|
|
3016
|
+
function E(B) {
|
|
3017
3017
|
e.onClick && e.onClick(B);
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3020
|
-
e.input && e.input(B), I.value = B.target.value, e.onInput && e.onInput(B), oe(n, B),
|
|
3019
|
+
function g(B) {
|
|
3020
|
+
e.input && e.input(B), I.value = B.target.value, e.onInput && e.onInput(B), oe(n, B), L();
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3023
|
-
e.onChange && e.onChange(B), oe(n, B),
|
|
3022
|
+
function y(B) {
|
|
3023
|
+
e.onChange && e.onChange(B), oe(n, B), L();
|
|
3024
3024
|
}
|
|
3025
|
-
function
|
|
3025
|
+
function M(B) {
|
|
3026
3026
|
e.onBlur && e.onBlur(B);
|
|
3027
3027
|
}
|
|
3028
|
-
function
|
|
3028
|
+
function b(B) {
|
|
3029
3029
|
e.onFocus && e.onFocus(B);
|
|
3030
3030
|
}
|
|
3031
3031
|
function X(B) {
|
|
3032
3032
|
return B.label ?? B.value?.toString();
|
|
3033
3033
|
}
|
|
3034
|
-
return (B,
|
|
3035
|
-
class:
|
|
3034
|
+
return (B, R) => (h(), k("div", {
|
|
3035
|
+
class: q(o(U)("db-select", e.class)),
|
|
3036
3036
|
"data-variant": B.variant,
|
|
3037
3037
|
"data-hide-label": o(ie)(B.showLabel),
|
|
3038
3038
|
"data-hide-asterisk": o(ie)(B.showRequiredAsterisk),
|
|
3039
3039
|
"data-icon": B.icon,
|
|
3040
3040
|
"data-show-icon": o(F)(B.showIcon)
|
|
3041
3041
|
}, [
|
|
3042
|
-
|
|
3043
|
-
|
|
3042
|
+
C("label", { for: i.value }, $(B.label ?? o(me)), 9, fi),
|
|
3043
|
+
C("select", {
|
|
3044
3044
|
"aria-invalid": B.validation === "invalid",
|
|
3045
3045
|
"data-custom-validity": B.validation,
|
|
3046
3046
|
ref_key: "_ref",
|
|
3047
|
-
ref:
|
|
3048
|
-
required: o(
|
|
3049
|
-
disabled: o(
|
|
3047
|
+
ref: v,
|
|
3048
|
+
required: o(V)(B.required, "required"),
|
|
3049
|
+
disabled: o(V)(B.disabled, "disabled"),
|
|
3050
3050
|
id: i.value,
|
|
3051
3051
|
name: B.name,
|
|
3052
3052
|
size: B.size,
|
|
3053
3053
|
value: B.value ?? I.value,
|
|
3054
3054
|
autocomplete: B.autocomplete,
|
|
3055
3055
|
multiple: B.multiple,
|
|
3056
|
-
onInput:
|
|
3057
|
-
onClick:
|
|
3058
|
-
onChange:
|
|
3059
|
-
onBlur:
|
|
3060
|
-
onFocus:
|
|
3061
|
-
"aria-describedby": B.ariaDescribedBy ??
|
|
3056
|
+
onInput: R[0] || (R[0] = async (H) => g(H)),
|
|
3057
|
+
onClick: R[1] || (R[1] = async (H) => E(H)),
|
|
3058
|
+
onChange: R[2] || (R[2] = async (H) => y(H)),
|
|
3059
|
+
onBlur: R[3] || (R[3] = async (H) => M(H)),
|
|
3060
|
+
onFocus: R[4] || (R[4] = async (H) => b(H)),
|
|
3061
|
+
"aria-describedby": B.ariaDescribedBy ?? m.value
|
|
3062
3062
|
}, [
|
|
3063
|
-
B.variant === "floating" || B.placeholder ? (
|
|
3064
|
-
B.options?.length ? (
|
|
3065
|
-
H.options ? (
|
|
3063
|
+
B.variant === "floating" || B.placeholder ? (h(), k("option", hi)) : P("", !0),
|
|
3064
|
+
B.options?.length ? (h(!0), k(W, { key: 1 }, fe(B.options, (H, ke) => (h(), k(W, { key: ke }, [
|
|
3065
|
+
H.options ? (h(), k("optgroup", {
|
|
3066
3066
|
key: 0,
|
|
3067
3067
|
label: X(H)
|
|
3068
3068
|
}, [
|
|
3069
|
-
(
|
|
3069
|
+
(h(!0), k(W, null, fe(H.options, (pe, $e) => (h(), k("option", {
|
|
3070
3070
|
key: $e,
|
|
3071
3071
|
value: pe.value,
|
|
3072
3072
|
selected: pe.selected,
|
|
3073
3073
|
disabled: pe.disabled
|
|
3074
|
-
},
|
|
3075
|
-
], 8, mi)) : (
|
|
3074
|
+
}, $(X(pe)), 9, gi))), 128))
|
|
3075
|
+
], 8, mi)) : (h(), k("option", {
|
|
3076
3076
|
key: 1,
|
|
3077
3077
|
value: H.value,
|
|
3078
3078
|
disabled: H.disabled,
|
|
3079
3079
|
selected: H.selected
|
|
3080
|
-
},
|
|
3080
|
+
}, $(X(H)), 9, bi))
|
|
3081
3081
|
], 64))), 128)) : A(B.$slots, "default", { key: 2 })
|
|
3082
3082
|
], 40, pi),
|
|
3083
|
-
B.placeholder ? (
|
|
3083
|
+
B.placeholder ? (h(), k("span", {
|
|
3084
3084
|
key: 0,
|
|
3085
3085
|
class: "db-select-placeholder",
|
|
3086
|
-
id:
|
|
3087
|
-
},
|
|
3088
|
-
o(Z)(B.message, B.showMessage) ? (
|
|
3086
|
+
id: s.value
|
|
3087
|
+
}, $(B.placeholder), 9, yi)) : P("", !0),
|
|
3088
|
+
o(Z)(B.message, B.showMessage) ? (h(), Y(ae, {
|
|
3089
3089
|
key: 1,
|
|
3090
3090
|
size: "small",
|
|
3091
3091
|
icon: B.messageIcon,
|
|
3092
3092
|
id: u.value
|
|
3093
3093
|
}, {
|
|
3094
3094
|
default: O(() => [
|
|
3095
|
-
N(
|
|
3095
|
+
N($(B.message), 1)
|
|
3096
3096
|
]),
|
|
3097
3097
|
_: 1
|
|
3098
|
-
}, 8, ["icon", "id"])) :
|
|
3099
|
-
|
|
3098
|
+
}, 8, ["icon", "id"])) : P("", !0),
|
|
3099
|
+
S() ? (h(), Y(ae, {
|
|
3100
3100
|
key: 2,
|
|
3101
3101
|
size: "small",
|
|
3102
3102
|
semantic: "successful",
|
|
3103
3103
|
id: c.value
|
|
3104
3104
|
}, {
|
|
3105
3105
|
default: O(() => [
|
|
3106
|
-
N(
|
|
3106
|
+
N($(B.validMessage || o(ce)), 1)
|
|
3107
3107
|
]),
|
|
3108
3108
|
_: 1
|
|
3109
|
-
}, 8, ["id"])) :
|
|
3109
|
+
}, 8, ["id"])) : P("", !0),
|
|
3110
3110
|
ee(ae, {
|
|
3111
3111
|
size: "small",
|
|
3112
3112
|
semantic: "critical",
|
|
3113
3113
|
id: r.value
|
|
3114
3114
|
}, {
|
|
3115
3115
|
default: O(() => [
|
|
3116
|
-
N(
|
|
3116
|
+
N($(f.value), 1)
|
|
3117
3117
|
]),
|
|
3118
3118
|
_: 1
|
|
3119
3119
|
}, 8, ["id"]),
|
|
3120
|
-
|
|
3120
|
+
C("span", ki, $(p.value), 1)
|
|
3121
3121
|
], 10, vi));
|
|
3122
3122
|
}
|
|
3123
|
-
}), wi = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Vl = /* @__PURE__ */
|
|
3123
|
+
}), wi = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Vl = /* @__PURE__ */ G({
|
|
3124
3124
|
__name: "stack",
|
|
3125
3125
|
props: {
|
|
3126
3126
|
variant: { default: void 0 },
|
|
@@ -3136,12 +3136,12 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3136
3136
|
gap: { default: void 0 }
|
|
3137
3137
|
},
|
|
3138
3138
|
setup(t) {
|
|
3139
|
-
const a = t, n =
|
|
3140
|
-
return (e, i) => (
|
|
3139
|
+
const a = t, n = d(null);
|
|
3140
|
+
return (e, i) => (h(), k("div", {
|
|
3141
3141
|
ref_key: "_ref",
|
|
3142
3142
|
ref: n,
|
|
3143
3143
|
id: e.id,
|
|
3144
|
-
class:
|
|
3144
|
+
class: q(o(U)("db-stack", a.class)),
|
|
3145
3145
|
"data-gap": e.gap,
|
|
3146
3146
|
"data-variant": e.variant,
|
|
3147
3147
|
"data-direction": e.direction,
|
|
@@ -3152,7 +3152,7 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3152
3152
|
A(e.$slots, "default")
|
|
3153
3153
|
], 10, wi));
|
|
3154
3154
|
}
|
|
3155
|
-
}), ql = ["simple", "divider"], Ul = ["row", "column"], Gl = ["stretch", "start", "end", "center"], Wl = ["space-between", "start", "end", "center"], Si = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for", "data-hide-asterisk"], Bi = ["id", "checked", "value", "disabled", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-trailing"], Ol = /* @__PURE__ */
|
|
3155
|
+
}), ql = ["simple", "divider"], Ul = ["row", "column"], Gl = ["stretch", "start", "end", "center"], Wl = ["space-between", "start", "end", "center"], Si = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for", "data-hide-asterisk"], Bi = ["id", "checked", "value", "disabled", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-trailing"], Ol = /* @__PURE__ */ G({
|
|
3156
3156
|
__name: "switch",
|
|
3157
3157
|
props: {
|
|
3158
3158
|
visualAid: { type: [Boolean, String], default: void 0 },
|
|
@@ -3186,53 +3186,53 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3186
3186
|
},
|
|
3187
3187
|
emits: ["update:checked"],
|
|
3188
3188
|
setup(t, { emit: a }) {
|
|
3189
|
-
const n = a, e = t, i =
|
|
3189
|
+
const n = a, e = t, i = d(void 0), u = d(null);
|
|
3190
3190
|
j(() => {
|
|
3191
3191
|
i.value = e.id ?? `switch-${K()}`;
|
|
3192
3192
|
});
|
|
3193
|
-
function c(
|
|
3194
|
-
oe(n,
|
|
3193
|
+
function c(s) {
|
|
3194
|
+
oe(n, s, "checked");
|
|
3195
3195
|
}
|
|
3196
|
-
function r(
|
|
3197
|
-
e.onBlur && e.onBlur(
|
|
3196
|
+
function r(s) {
|
|
3197
|
+
e.onBlur && e.onBlur(s);
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3200
|
-
e.onFocus && e.onFocus(
|
|
3199
|
+
function f(s) {
|
|
3200
|
+
e.onFocus && e.onFocus(s);
|
|
3201
3201
|
}
|
|
3202
|
-
return (
|
|
3203
|
-
"data-visual-aid": o(F)(
|
|
3204
|
-
"data-size":
|
|
3205
|
-
"data-hide-label": o(ie)(
|
|
3206
|
-
"data-emphasis":
|
|
3202
|
+
return (s, m) => (h(), k("label", {
|
|
3203
|
+
"data-visual-aid": o(F)(s.visualAid),
|
|
3204
|
+
"data-size": s.size,
|
|
3205
|
+
"data-hide-label": o(ie)(s.showLabel),
|
|
3206
|
+
"data-emphasis": s.emphasis,
|
|
3207
3207
|
for: i.value,
|
|
3208
|
-
"data-hide-asterisk": o(ie)(
|
|
3209
|
-
class:
|
|
3208
|
+
"data-hide-asterisk": o(ie)(s.showRequiredAsterisk),
|
|
3209
|
+
class: q(o(U)("db-switch", e.class))
|
|
3210
3210
|
}, [
|
|
3211
|
-
|
|
3211
|
+
C("input", {
|
|
3212
3212
|
type: "checkbox",
|
|
3213
3213
|
role: "switch",
|
|
3214
3214
|
id: i.value,
|
|
3215
3215
|
ref_key: "_ref",
|
|
3216
3216
|
ref: u,
|
|
3217
|
-
checked: o(
|
|
3218
|
-
value:
|
|
3219
|
-
disabled: o(
|
|
3220
|
-
"aria-invalid":
|
|
3221
|
-
"data-custom-validity":
|
|
3222
|
-
name:
|
|
3223
|
-
required: o(
|
|
3224
|
-
"data-aid-icon":
|
|
3225
|
-
"data-aid-icon-trailing":
|
|
3226
|
-
onChange:
|
|
3227
|
-
onBlur:
|
|
3228
|
-
onFocus:
|
|
3217
|
+
checked: o(V)(s.checked, "checked"),
|
|
3218
|
+
value: s.value,
|
|
3219
|
+
disabled: o(V)(s.disabled, "disabled"),
|
|
3220
|
+
"aria-invalid": s.validation === "invalid",
|
|
3221
|
+
"data-custom-validity": s.validation,
|
|
3222
|
+
name: s.name,
|
|
3223
|
+
required: o(V)(s.required, "required"),
|
|
3224
|
+
"data-aid-icon": s.iconLeading ?? s.icon,
|
|
3225
|
+
"data-aid-icon-trailing": s.iconTrailing,
|
|
3226
|
+
onChange: m[0] || (m[0] = async (I) => c(I)),
|
|
3227
|
+
onBlur: m[1] || (m[1] = async (I) => r(I)),
|
|
3228
|
+
onFocus: m[2] || (m[2] = async (I) => f(I))
|
|
3229
3229
|
}, null, 40, Bi),
|
|
3230
|
-
|
|
3231
|
-
N(
|
|
3232
|
-
], 64)) : A(
|
|
3230
|
+
s.label ? (h(), k(W, { key: 0 }, [
|
|
3231
|
+
N($(s.label), 1)
|
|
3232
|
+
], 64)) : A(s.$slots, "default", { key: 1 })
|
|
3233
3233
|
], 10, Si));
|
|
3234
3234
|
}
|
|
3235
|
-
}), Li = ["for", "data-icon", "data-icon-trailing", "data-show-icon", "data-show-icon-trailing", "data-no-text"], Ii = ["disabled", "aria-selected", "checked", "name", "id"], $i = /* @__PURE__ */
|
|
3235
|
+
}), Li = ["for", "data-icon", "data-icon-trailing", "data-show-icon", "data-show-icon-trailing", "data-no-text"], Ii = ["disabled", "aria-selected", "checked", "name", "id"], $i = /* @__PURE__ */ G({
|
|
3236
3236
|
__name: "tab-item",
|
|
3237
3237
|
props: {
|
|
3238
3238
|
children: { default: void 0 },
|
|
@@ -3257,7 +3257,7 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3257
3257
|
},
|
|
3258
3258
|
emits: ["update:checked"],
|
|
3259
3259
|
setup(t, { emit: a }) {
|
|
3260
|
-
const n = a, e = t, i =
|
|
3260
|
+
const n = a, e = t, i = d(!1), u = d(void 0), c = d(!1), r = d(null);
|
|
3261
3261
|
j(() => {
|
|
3262
3262
|
c.value = !0;
|
|
3263
3263
|
}), D(
|
|
@@ -3279,41 +3279,41 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3279
3279
|
flush: "post"
|
|
3280
3280
|
}
|
|
3281
3281
|
);
|
|
3282
|
-
function
|
|
3283
|
-
|
|
3282
|
+
function f(s) {
|
|
3283
|
+
s.stopPropagation(), e.onChange && e.onChange(s), i.value = s.target?.checked, oe(n, s, "checked");
|
|
3284
3284
|
}
|
|
3285
|
-
return (
|
|
3285
|
+
return (s, m) => (h(), k("li", {
|
|
3286
3286
|
role: "none",
|
|
3287
|
-
class:
|
|
3287
|
+
class: q(o(U)("db-tab-item", e.class))
|
|
3288
3288
|
}, [
|
|
3289
|
-
|
|
3290
|
-
for:
|
|
3291
|
-
"data-icon":
|
|
3292
|
-
"data-icon-trailing":
|
|
3293
|
-
"data-show-icon": o(F)(
|
|
3294
|
-
"data-show-icon-trailing": o(F)(
|
|
3295
|
-
"data-no-text": o(F)(
|
|
3289
|
+
C("label", {
|
|
3290
|
+
for: s.id,
|
|
3291
|
+
"data-icon": s.iconLeading ?? s.icon,
|
|
3292
|
+
"data-icon-trailing": s.iconTrailing,
|
|
3293
|
+
"data-show-icon": o(F)(s.showIconLeading ?? s.showIcon),
|
|
3294
|
+
"data-show-icon-trailing": o(F)(s.showIconTrailing),
|
|
3295
|
+
"data-no-text": o(F)(s.noText)
|
|
3296
3296
|
}, [
|
|
3297
|
-
|
|
3297
|
+
C("input", {
|
|
3298
3298
|
type: "radio",
|
|
3299
3299
|
role: "tab",
|
|
3300
|
-
disabled: o(
|
|
3300
|
+
disabled: o(V)(s.disabled, "disabled"),
|
|
3301
3301
|
"aria-selected": i.value,
|
|
3302
|
-
checked: o(
|
|
3302
|
+
checked: o(V)(s.checked, "checked"),
|
|
3303
3303
|
ref_key: "_ref",
|
|
3304
3304
|
ref: r,
|
|
3305
3305
|
name: u.value,
|
|
3306
|
-
id:
|
|
3307
|
-
onInput:
|
|
3306
|
+
id: s.id,
|
|
3307
|
+
onInput: m[0] || (m[0] = async (I) => f(I))
|
|
3308
3308
|
}, null, 40, Ii),
|
|
3309
|
-
|
|
3310
|
-
N(
|
|
3311
|
-
], 64)) :
|
|
3312
|
-
A(
|
|
3309
|
+
s.label ? (h(), k(W, { key: 0 }, [
|
|
3310
|
+
N($(s.label), 1)
|
|
3311
|
+
], 64)) : P("", !0),
|
|
3312
|
+
A(s.$slots, "default")
|
|
3313
3313
|
], 8, Li)
|
|
3314
3314
|
], 2));
|
|
3315
3315
|
}
|
|
3316
|
-
}), Ti = ["id"], Ei = { role: "tablist" }, _i = /* @__PURE__ */
|
|
3316
|
+
}), Ti = ["id"], Ei = { role: "tablist" }, _i = /* @__PURE__ */ G({
|
|
3317
3317
|
__name: "tab-list",
|
|
3318
3318
|
props: {
|
|
3319
3319
|
children: { default: void 0 },
|
|
@@ -3323,21 +3323,21 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3323
3323
|
autofocus: { type: [Boolean, String] }
|
|
3324
3324
|
},
|
|
3325
3325
|
setup(t) {
|
|
3326
|
-
const a = t, n =
|
|
3326
|
+
const a = t, n = d(Se), e = d(null);
|
|
3327
3327
|
return j(() => {
|
|
3328
3328
|
n.value = a.id || "tab-list-" + K();
|
|
3329
|
-
}), (i, u) => (
|
|
3329
|
+
}), (i, u) => (h(), k("div", {
|
|
3330
3330
|
ref_key: "_ref",
|
|
3331
3331
|
ref: e,
|
|
3332
3332
|
id: n.value,
|
|
3333
|
-
class:
|
|
3333
|
+
class: q(o(U)("db-tab-list", a.class))
|
|
3334
3334
|
}, [
|
|
3335
|
-
|
|
3335
|
+
C("ul", Ei, [
|
|
3336
3336
|
A(i.$slots, "default")
|
|
3337
3337
|
])
|
|
3338
3338
|
], 10, Ti));
|
|
3339
3339
|
}
|
|
3340
|
-
}), Ci = ["id"], Ai = /* @__PURE__ */
|
|
3340
|
+
}), Ci = ["id"], Ai = /* @__PURE__ */ G({
|
|
3341
3341
|
__name: "tab-panel",
|
|
3342
3342
|
props: {
|
|
3343
3343
|
content: { default: void 0 },
|
|
@@ -3348,22 +3348,22 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3348
3348
|
autofocus: { type: [Boolean, String] }
|
|
3349
3349
|
},
|
|
3350
3350
|
setup(t) {
|
|
3351
|
-
const a = t, n =
|
|
3351
|
+
const a = t, n = d(null);
|
|
3352
3352
|
return j(() => {
|
|
3353
|
-
}), (e, i) => (
|
|
3353
|
+
}), (e, i) => (h(), k("section", {
|
|
3354
3354
|
role: "tabpanel",
|
|
3355
3355
|
ref_key: "_ref",
|
|
3356
3356
|
ref: n,
|
|
3357
|
-
class:
|
|
3357
|
+
class: q(o(U)("db-tab-panel", a.class)),
|
|
3358
3358
|
id: e.id
|
|
3359
3359
|
}, [
|
|
3360
|
-
e.content ? (
|
|
3361
|
-
N(
|
|
3362
|
-
], 64)) :
|
|
3360
|
+
e.content ? (h(), k(W, { key: 0 }, [
|
|
3361
|
+
N($(e.content), 1)
|
|
3362
|
+
], 64)) : P("", !0),
|
|
3363
3363
|
A(e.$slots, "default")
|
|
3364
3364
|
], 10, Ci));
|
|
3365
3365
|
}
|
|
3366
|
-
}), Di = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], Hl = /* @__PURE__ */
|
|
3366
|
+
}), Di = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], Hl = /* @__PURE__ */ G({
|
|
3367
3367
|
__name: "tabs",
|
|
3368
3368
|
props: {
|
|
3369
3369
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -3386,20 +3386,22 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3386
3386
|
tabSelect: {}
|
|
3387
3387
|
},
|
|
3388
3388
|
setup(t) {
|
|
3389
|
-
const a = t, n =
|
|
3389
|
+
const a = t, n = d("tabs-" + K()), e = d(""), i = d(!1), u = d(!1), c = d(!1), r = d(null), f = d(void 0), s = d(null);
|
|
3390
3390
|
j(() => {
|
|
3391
3391
|
n.value = a.id || n.value, e.value = `tabs-${a.name || K()}`, i.value = !0;
|
|
3392
|
+
}), Ke(() => {
|
|
3393
|
+
f.value?.disconnect(), f.value = void 0;
|
|
3392
3394
|
}), D(
|
|
3393
|
-
() => [
|
|
3395
|
+
() => [s.value, i.value],
|
|
3394
3396
|
() => {
|
|
3395
|
-
if (
|
|
3396
|
-
|
|
3397
|
-
const
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
(
|
|
3397
|
+
if (s.value && i.value) {
|
|
3398
|
+
p(), v(!0);
|
|
3399
|
+
const L = s.value.querySelector(".db-tab-list");
|
|
3400
|
+
L && new MutationObserver((g) => {
|
|
3401
|
+
g.forEach((y) => {
|
|
3402
|
+
(y.removedNodes.length || y.addedNodes.length) && (p(), v());
|
|
3401
3403
|
});
|
|
3402
|
-
}).observe(
|
|
3404
|
+
}).observe(L, {
|
|
3403
3405
|
childList: !0,
|
|
3404
3406
|
subtree: !0
|
|
3405
3407
|
}), i.value = !1;
|
|
@@ -3410,158 +3412,163 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3410
3412
|
flush: "post"
|
|
3411
3413
|
}
|
|
3412
3414
|
);
|
|
3413
|
-
function
|
|
3415
|
+
function m() {
|
|
3414
3416
|
try {
|
|
3415
3417
|
return typeof a.tabs == "string" ? JSON.parse(a.tabs) : a.tabs;
|
|
3416
|
-
} catch (
|
|
3417
|
-
console.error(
|
|
3418
|
+
} catch (L) {
|
|
3419
|
+
console.error(L);
|
|
3418
3420
|
}
|
|
3419
3421
|
return [];
|
|
3420
3422
|
}
|
|
3421
|
-
function
|
|
3422
|
-
const
|
|
3423
|
-
u.value =
|
|
3423
|
+
function I(L) {
|
|
3424
|
+
const E = L.scrollWidth > L.clientWidth;
|
|
3425
|
+
u.value = E && L.scrollLeft > 1, c.value = E && L.scrollLeft < L.scrollWidth - L.clientWidth;
|
|
3424
3426
|
}
|
|
3425
|
-
function
|
|
3426
|
-
let
|
|
3427
|
-
|
|
3427
|
+
function w(L) {
|
|
3428
|
+
let E = Number(a.arrowScrollDistance) || 100;
|
|
3429
|
+
L && (E *= -1), r.value?.scrollBy({
|
|
3428
3430
|
top: 0,
|
|
3429
|
-
left:
|
|
3431
|
+
left: E,
|
|
3430
3432
|
behavior: "smooth"
|
|
3431
3433
|
});
|
|
3432
3434
|
}
|
|
3433
|
-
function
|
|
3434
|
-
if (
|
|
3435
|
-
const
|
|
3436
|
-
if (
|
|
3437
|
-
const
|
|
3438
|
-
|
|
3435
|
+
function p() {
|
|
3436
|
+
if (s.value) {
|
|
3437
|
+
const L = s.value.querySelector(".db-tab-list");
|
|
3438
|
+
if (L) {
|
|
3439
|
+
const E = L.querySelector('[role="tablist"]');
|
|
3440
|
+
if (E && (E.setAttribute(
|
|
3439
3441
|
"aria-orientation",
|
|
3440
3442
|
a.orientation || "horizontal"
|
|
3441
|
-
), a.behavior === "arrows" && (r.value =
|
|
3442
|
-
|
|
3443
|
-
})))
|
|
3443
|
+
), a.behavior === "arrows" && (r.value = E, I(E), E.addEventListener("scroll", () => {
|
|
3444
|
+
I(E);
|
|
3445
|
+
}), !f.value))) {
|
|
3446
|
+
const g = new ResizeObserver(() => {
|
|
3447
|
+
I(E);
|
|
3448
|
+
});
|
|
3449
|
+
g.observe(E), f.value = g;
|
|
3450
|
+
}
|
|
3444
3451
|
}
|
|
3445
3452
|
}
|
|
3446
3453
|
}
|
|
3447
|
-
function
|
|
3448
|
-
if (
|
|
3449
|
-
const
|
|
3450
|
-
|
|
3451
|
-
),
|
|
3452
|
-
|
|
3454
|
+
function v(L) {
|
|
3455
|
+
if (s.value) {
|
|
3456
|
+
const E = Array.from(
|
|
3457
|
+
s.value.getElementsByClassName("db-tab-item")
|
|
3458
|
+
), g = Array.from(
|
|
3459
|
+
s.value.querySelectorAll(
|
|
3453
3460
|
":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
|
|
3454
3461
|
)
|
|
3455
3462
|
);
|
|
3456
|
-
for (const
|
|
3457
|
-
const
|
|
3458
|
-
if (
|
|
3459
|
-
if (!
|
|
3460
|
-
const
|
|
3461
|
-
|
|
3463
|
+
for (const y of E) {
|
|
3464
|
+
const M = E.indexOf(y), b = y.querySelector("label"), X = y.querySelector("input");
|
|
3465
|
+
if (X && b) {
|
|
3466
|
+
if (!X.id) {
|
|
3467
|
+
const B = `${e.value}-tab-${M}`;
|
|
3468
|
+
b.setAttribute("for", B), X.id = B, X.setAttribute("name", e.value), g.length > M && X.setAttribute(
|
|
3462
3469
|
"aria-controls",
|
|
3463
|
-
`${e.value}-tab-panel-${
|
|
3470
|
+
`${e.value}-tab-panel-${M}`
|
|
3464
3471
|
);
|
|
3465
3472
|
}
|
|
3466
|
-
if (
|
|
3467
|
-
const
|
|
3468
|
-
|
|
3473
|
+
if (L) {
|
|
3474
|
+
const B = !a.initialSelectedMode || a.initialSelectedMode === "auto", R = a.initialSelectedIndex == null && M === 0 || Number(a.initialSelectedIndex) === M;
|
|
3475
|
+
B && R && X.click();
|
|
3469
3476
|
}
|
|
3470
3477
|
}
|
|
3471
3478
|
}
|
|
3472
|
-
for (const
|
|
3473
|
-
if (
|
|
3474
|
-
const
|
|
3475
|
-
|
|
3479
|
+
for (const y of g) {
|
|
3480
|
+
if (y.id) continue;
|
|
3481
|
+
const M = g.indexOf(y);
|
|
3482
|
+
y.id = `${e.value}-tab-panel-${M}`, y.setAttribute("aria-labelledby", `${e.value}-tab-${M}`);
|
|
3476
3483
|
}
|
|
3477
3484
|
}
|
|
3478
3485
|
}
|
|
3479
|
-
function
|
|
3480
|
-
if (
|
|
3481
|
-
const
|
|
3482
|
-
if (
|
|
3483
|
-
const
|
|
3484
|
-
if (
|
|
3485
|
-
const
|
|
3486
|
-
if (
|
|
3487
|
-
const
|
|
3488
|
-
a.onIndexChange && a.onIndexChange(
|
|
3486
|
+
function S(L) {
|
|
3487
|
+
if (L.stopPropagation(), L.target) {
|
|
3488
|
+
const g = L.target.parentElement;
|
|
3489
|
+
if (g && g.parentElement && g.parentElement?.nodeName === "LI") {
|
|
3490
|
+
const y = g.parentElement;
|
|
3491
|
+
if (y) {
|
|
3492
|
+
const M = y.parentElement;
|
|
3493
|
+
if (M) {
|
|
3494
|
+
const b = Array.from(M.childNodes).indexOf(y);
|
|
3495
|
+
a.onIndexChange && a.onIndexChange(b), a.onTabSelect && a.onTabSelect(L);
|
|
3489
3496
|
}
|
|
3490
3497
|
}
|
|
3491
3498
|
}
|
|
3492
3499
|
}
|
|
3493
3500
|
}
|
|
3494
|
-
return (
|
|
3501
|
+
return (L, E) => (h(), k("div", {
|
|
3495
3502
|
ref_key: "_ref",
|
|
3496
|
-
ref:
|
|
3503
|
+
ref: s,
|
|
3497
3504
|
id: n.value,
|
|
3498
|
-
class:
|
|
3499
|
-
"data-orientation":
|
|
3500
|
-
"data-scroll-behavior":
|
|
3501
|
-
"data-alignment":
|
|
3502
|
-
"data-width":
|
|
3503
|
-
onInput:
|
|
3504
|
-
onChange:
|
|
3505
|
+
class: q(o(U)("db-tabs", a.class)),
|
|
3506
|
+
"data-orientation": L.orientation,
|
|
3507
|
+
"data-scroll-behavior": L.behavior,
|
|
3508
|
+
"data-alignment": L.alignment ?? "start",
|
|
3509
|
+
"data-width": L.width ?? "auto",
|
|
3510
|
+
onInput: E[0] || (E[0] = async (g) => S(g)),
|
|
3511
|
+
onChange: E[1] || (E[1] = async (g) => S(g))
|
|
3505
3512
|
}, [
|
|
3506
|
-
u.value ? (
|
|
3513
|
+
u.value ? (h(), Y(be, {
|
|
3507
3514
|
key: 0,
|
|
3508
3515
|
class: "tabs-scroll-left",
|
|
3509
3516
|
variant: "ghost",
|
|
3510
3517
|
icon: "chevron_left",
|
|
3511
3518
|
type: "button",
|
|
3512
3519
|
noText: !0,
|
|
3513
|
-
onClick: (
|
|
3520
|
+
onClick: (g) => w(!0)
|
|
3514
3521
|
}, {
|
|
3515
|
-
default: O(() => [...
|
|
3522
|
+
default: O(() => [...E[2] || (E[2] = [
|
|
3516
3523
|
N(" Scroll left ", -1)
|
|
3517
3524
|
])]),
|
|
3518
3525
|
_: 1
|
|
3519
|
-
}, 8, ["onClick"])) :
|
|
3520
|
-
|
|
3526
|
+
}, 8, ["onClick"])) : P("", !0),
|
|
3527
|
+
L.tabs ? (h(), k(W, { key: 1 }, [
|
|
3521
3528
|
ee(_i, null, {
|
|
3522
3529
|
default: O(() => [
|
|
3523
|
-
(
|
|
3524
|
-
key:
|
|
3525
|
-
active:
|
|
3526
|
-
label:
|
|
3527
|
-
iconTrailing:
|
|
3528
|
-
icon:
|
|
3529
|
-
noText:
|
|
3530
|
+
(h(!0), k(W, null, fe(m(), (g, y) => (h(), Y($i, {
|
|
3531
|
+
key: L.name + "tab-item" + y,
|
|
3532
|
+
active: g.active,
|
|
3533
|
+
label: g.label,
|
|
3534
|
+
iconTrailing: g.iconTrailing,
|
|
3535
|
+
icon: g.icon,
|
|
3536
|
+
noText: g.noText
|
|
3530
3537
|
}, null, 8, ["active", "label", "iconTrailing", "icon", "noText"]))), 128))
|
|
3531
3538
|
]),
|
|
3532
3539
|
_: 1
|
|
3533
3540
|
}),
|
|
3534
|
-
(
|
|
3535
|
-
key:
|
|
3536
|
-
content:
|
|
3541
|
+
(h(!0), k(W, null, fe(m(), (g, y) => (h(), Y(Ai, {
|
|
3542
|
+
key: L.name + "tab-panel" + y,
|
|
3543
|
+
content: g.content
|
|
3537
3544
|
}, {
|
|
3538
3545
|
default: O(() => [
|
|
3539
|
-
N(
|
|
3546
|
+
N($(g.children), 1)
|
|
3540
3547
|
]),
|
|
3541
3548
|
_: 2
|
|
3542
3549
|
}, 1032, ["content"]))), 128))
|
|
3543
|
-
], 64)) :
|
|
3544
|
-
c.value ? (
|
|
3550
|
+
], 64)) : P("", !0),
|
|
3551
|
+
c.value ? (h(), Y(be, {
|
|
3545
3552
|
key: 2,
|
|
3546
3553
|
class: "tabs-scroll-right",
|
|
3547
3554
|
variant: "ghost",
|
|
3548
3555
|
icon: "chevron_right",
|
|
3549
3556
|
type: "button",
|
|
3550
3557
|
noText: !0,
|
|
3551
|
-
onClick: (
|
|
3558
|
+
onClick: (g) => w()
|
|
3552
3559
|
}, {
|
|
3553
|
-
default: O(() => [...
|
|
3560
|
+
default: O(() => [...E[3] || (E[3] = [
|
|
3554
3561
|
N(" Scroll right ", -1)
|
|
3555
3562
|
])]),
|
|
3556
3563
|
_: 1
|
|
3557
|
-
}, 8, ["onClick"])) :
|
|
3558
|
-
A(
|
|
3564
|
+
}, 8, ["onClick"])) : P("", !0),
|
|
3565
|
+
A(L.$slots, "default")
|
|
3559
3566
|
], 42, Di));
|
|
3560
3567
|
}
|
|
3561
|
-
}), Xl = ["scrollbar", "arrows"], jl = ["auto", "manually"], Yl = ["static", "removable"], Ni = ["data-variant", "data-hide-asterisk", "data-hide-label"], Fi = ["for"], Mi = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "data-resize", "data-hide-resizer", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"],
|
|
3568
|
+
}), Xl = ["scrollbar", "arrows"], jl = ["auto", "manually"], Yl = ["static", "removable"], Ni = ["data-variant", "data-hide-asterisk", "data-hide-label"], Fi = ["for"], Mi = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "data-resize", "data-hide-resizer", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], zi = {
|
|
3562
3569
|
"data-visually-hidden": "true",
|
|
3563
3570
|
role: "status"
|
|
3564
|
-
}, Kl = /* @__PURE__ */
|
|
3571
|
+
}, Kl = /* @__PURE__ */ G({
|
|
3565
3572
|
__name: "textarea",
|
|
3566
3573
|
props: {
|
|
3567
3574
|
cols: { default: void 0 },
|
|
@@ -3611,14 +3618,14 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3611
3618
|
},
|
|
3612
3619
|
emits: ["update:value"],
|
|
3613
3620
|
setup(t, { emit: a }) {
|
|
3614
|
-
const n = a, e = t, i =
|
|
3621
|
+
const n = a, e = t, i = d(void 0), u = d(void 0), c = d(void 0), r = d(void 0), f = d(void 0), s = d(void 0), m = d(""), I = d(""), w = d(null);
|
|
3615
3622
|
j(() => {
|
|
3616
|
-
const
|
|
3617
|
-
i.value =
|
|
3623
|
+
const y = e.id ?? `textarea-${K()}`;
|
|
3624
|
+
i.value = y, u.value = y + de, c.value = y + ue, r.value = y + re, f.value = e.invalidMessage || te;
|
|
3618
3625
|
}), D(
|
|
3619
3626
|
() => [w.value, e.invalidMessage],
|
|
3620
3627
|
() => {
|
|
3621
|
-
|
|
3628
|
+
f.value = e.invalidMessage || w.value?.validationMessage || te;
|
|
3622
3629
|
},
|
|
3623
3630
|
{
|
|
3624
3631
|
immediate: !0,
|
|
@@ -3628,8 +3635,8 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3628
3635
|
() => [i.value],
|
|
3629
3636
|
() => {
|
|
3630
3637
|
if (i.value) {
|
|
3631
|
-
const
|
|
3632
|
-
u.value =
|
|
3638
|
+
const y = i.value + de;
|
|
3639
|
+
u.value = y, c.value = i.value + ue, r.value = i.value + re, Z(e.message, e.showMessage) && (s.value = y), v();
|
|
3633
3640
|
}
|
|
3634
3641
|
},
|
|
3635
3642
|
{
|
|
@@ -3639,103 +3646,103 @@ const zt = ["id", "data-width", "data-on-forcing-mobile"], Pt = { class: "db-hea
|
|
|
3639
3646
|
), D(
|
|
3640
3647
|
() => [e.value],
|
|
3641
3648
|
() => {
|
|
3642
|
-
|
|
3649
|
+
m.value = e.value;
|
|
3643
3650
|
},
|
|
3644
3651
|
{
|
|
3645
3652
|
immediate: !0,
|
|
3646
3653
|
flush: "post"
|
|
3647
3654
|
}
|
|
3648
3655
|
);
|
|
3649
|
-
function
|
|
3656
|
+
function p() {
|
|
3650
3657
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3651
3658
|
}
|
|
3652
|
-
function
|
|
3653
|
-
!w.value?.validity.valid || e.validation === "invalid" ? (
|
|
3659
|
+
function v() {
|
|
3660
|
+
!w.value?.validity.valid || e.validation === "invalid" ? (s.value = r.value, f.value = e.invalidMessage || w.value?.validationMessage || te, ve() && (I.value = f.value, J(() => I.value = "", 1e3))) : p() && w.value?.validity.valid && (e.required || e.minLength || e.maxLength) ? (s.value = c.value, ve() && (I.value = e.validMessage ?? ce, J(() => I.value = "", 1e3))) : Z(e.message, e.showMessage) ? s.value = u.value : s.value = void 0;
|
|
3654
3661
|
}
|
|
3655
|
-
function
|
|
3656
|
-
e.input && e.input(
|
|
3662
|
+
function S(y) {
|
|
3663
|
+
e.input && e.input(y), m.value = y.target.value, e.onInput && e.onInput(y), oe(n, y), v();
|
|
3657
3664
|
}
|
|
3658
|
-
function
|
|
3659
|
-
e.onChange && e.onChange(
|
|
3665
|
+
function L(y) {
|
|
3666
|
+
e.onChange && e.onChange(y), oe(n, y), v();
|
|
3660
3667
|
}
|
|
3661
|
-
function
|
|
3662
|
-
e.onBlur && e.onBlur(
|
|
3668
|
+
function E(y) {
|
|
3669
|
+
e.onBlur && e.onBlur(y);
|
|
3663
3670
|
}
|
|
3664
|
-
function
|
|
3665
|
-
e.onFocus && e.onFocus(
|
|
3671
|
+
function g(y) {
|
|
3672
|
+
e.onFocus && e.onFocus(y);
|
|
3666
3673
|
}
|
|
3667
|
-
return (
|
|
3668
|
-
class:
|
|
3669
|
-
"data-variant":
|
|
3670
|
-
"data-hide-asterisk": o(ie)(
|
|
3671
|
-
"data-hide-label": o(ie)(
|
|
3674
|
+
return (y, M) => (h(), k("div", {
|
|
3675
|
+
class: q(o(U)("db-textarea", e.class)),
|
|
3676
|
+
"data-variant": y.variant,
|
|
3677
|
+
"data-hide-asterisk": o(ie)(y.showRequiredAsterisk),
|
|
3678
|
+
"data-hide-label": o(ie)(y.showLabel)
|
|
3672
3679
|
}, [
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
"aria-invalid":
|
|
3676
|
-
"data-custom-validity":
|
|
3677
|
-
"data-field-sizing":
|
|
3680
|
+
C("label", { for: i.value }, $(y.label ?? o(me)), 9, Fi),
|
|
3681
|
+
C("textarea", {
|
|
3682
|
+
"aria-invalid": y.validation === "invalid",
|
|
3683
|
+
"data-custom-validity": y.validation,
|
|
3684
|
+
"data-field-sizing": y.fieldSizing,
|
|
3678
3685
|
ref_key: "_ref",
|
|
3679
3686
|
ref: w,
|
|
3680
3687
|
id: i.value,
|
|
3681
|
-
"data-resize":
|
|
3682
|
-
"data-hide-resizer": o(ie)(
|
|
3683
|
-
disabled: o(
|
|
3684
|
-
required: o(
|
|
3685
|
-
readOnly: o(
|
|
3686
|
-
form:
|
|
3687
|
-
maxLength: o(ge)(
|
|
3688
|
-
minLength: o(ge)(
|
|
3689
|
-
name:
|
|
3690
|
-
wrap:
|
|
3691
|
-
spellcheck:
|
|
3692
|
-
autocomplete:
|
|
3693
|
-
onInput:
|
|
3694
|
-
onChange:
|
|
3695
|
-
onBlur:
|
|
3696
|
-
onFocus:
|
|
3697
|
-
value:
|
|
3698
|
-
"aria-describedby":
|
|
3699
|
-
placeholder:
|
|
3700
|
-
rows: o(ge)(
|
|
3701
|
-
cols: o(ge)(
|
|
3688
|
+
"data-resize": y.resize,
|
|
3689
|
+
"data-hide-resizer": o(ie)(y.showResizer ?? !0),
|
|
3690
|
+
disabled: o(V)(y.disabled, "disabled"),
|
|
3691
|
+
required: o(V)(y.required, "required"),
|
|
3692
|
+
readOnly: o(V)(y.readOnly, "readOnly") || o(V)(y.readonly, "readonly"),
|
|
3693
|
+
form: y.form,
|
|
3694
|
+
maxLength: o(ge)(y.maxLength, y.maxlength),
|
|
3695
|
+
minLength: o(ge)(y.minLength, y.minlength),
|
|
3696
|
+
name: y.name,
|
|
3697
|
+
wrap: y.wrap,
|
|
3698
|
+
spellcheck: y.spellCheck,
|
|
3699
|
+
autocomplete: y.autocomplete,
|
|
3700
|
+
onInput: M[0] || (M[0] = async (b) => S(b)),
|
|
3701
|
+
onChange: M[1] || (M[1] = async (b) => L(b)),
|
|
3702
|
+
onBlur: M[2] || (M[2] = async (b) => E(b)),
|
|
3703
|
+
onFocus: M[3] || (M[3] = async (b) => g(b)),
|
|
3704
|
+
value: y.value ?? m.value,
|
|
3705
|
+
"aria-describedby": y.ariaDescribedBy ?? s.value,
|
|
3706
|
+
placeholder: y.placeholder ?? o(Je),
|
|
3707
|
+
rows: o(ge)(y.rows, o($a)),
|
|
3708
|
+
cols: o(ge)(y.cols)
|
|
3702
3709
|
}, null, 40, Mi),
|
|
3703
|
-
o(Z)(
|
|
3710
|
+
o(Z)(y.message, y.showMessage) ? (h(), Y(ae, {
|
|
3704
3711
|
key: 0,
|
|
3705
3712
|
size: "small",
|
|
3706
|
-
icon:
|
|
3713
|
+
icon: y.messageIcon,
|
|
3707
3714
|
id: u.value
|
|
3708
3715
|
}, {
|
|
3709
3716
|
default: O(() => [
|
|
3710
|
-
N(
|
|
3717
|
+
N($(y.message), 1)
|
|
3711
3718
|
]),
|
|
3712
3719
|
_: 1
|
|
3713
|
-
}, 8, ["icon", "id"])) :
|
|
3714
|
-
|
|
3720
|
+
}, 8, ["icon", "id"])) : P("", !0),
|
|
3721
|
+
p() ? (h(), Y(ae, {
|
|
3715
3722
|
key: 1,
|
|
3716
3723
|
size: "small",
|
|
3717
3724
|
semantic: "successful",
|
|
3718
3725
|
id: c.value
|
|
3719
3726
|
}, {
|
|
3720
3727
|
default: O(() => [
|
|
3721
|
-
N(
|
|
3728
|
+
N($(y.validMessage || o(ce)), 1)
|
|
3722
3729
|
]),
|
|
3723
3730
|
_: 1
|
|
3724
|
-
}, 8, ["id"])) :
|
|
3731
|
+
}, 8, ["id"])) : P("", !0),
|
|
3725
3732
|
ee(ae, {
|
|
3726
3733
|
size: "small",
|
|
3727
3734
|
semantic: "critical",
|
|
3728
3735
|
id: r.value
|
|
3729
3736
|
}, {
|
|
3730
3737
|
default: O(() => [
|
|
3731
|
-
N(
|
|
3738
|
+
N($(f.value), 1)
|
|
3732
3739
|
]),
|
|
3733
3740
|
_: 1
|
|
3734
3741
|
}, 8, ["id"]),
|
|
3735
|
-
|
|
3742
|
+
C("span", zi, $(I.value), 1)
|
|
3736
3743
|
], 10, Ni));
|
|
3737
3744
|
}
|
|
3738
|
-
}), Jl = ["none", "both", "horizontal", "vertical"], Ql = ["hard", "soft", "off"], Zl = ["description", "label"], xl = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], eo = ["medium", "small", "large", "none"], ao = ["medium", "small", "large", "none"],
|
|
3745
|
+
}), Jl = ["none", "both", "horizontal", "vertical"], Ql = ["hard", "soft", "off"], Zl = ["description", "label"], xl = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], eo = ["medium", "small", "large", "none"], ao = ["medium", "small", "large", "none"], Ri = ["left", "right", "left-start", "left-end", "right-start", "right-end"], Pi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], to = [...Ri, ...Pi], io = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], lo = ["horizontal", "vertical"], oo = ["full", "auto"], no = ["full", "medium", "large", "small"], so = ["none", "slow", "fast"], uo = ["auto", "fixed"], ro = ["small", "medium"], co = ["weak", "strong"], vo = ["invalid", "valid", "no-validation"], fo = ["fixed", "content"], po = ["above", "floating"], ho = ["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"], mo = ["_self", "_blank", "_parent", "_top"], go = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], bo = ["start", "center"];
|
|
3739
3746
|
export {
|
|
3740
3747
|
Ji as AccordionBehaviorList,
|
|
3741
3748
|
Ki as AccordionVariantList,
|
|
@@ -3744,11 +3751,11 @@ export {
|
|
|
3744
3751
|
Zi as BadgePlacementList,
|
|
3745
3752
|
al as ButtonTypeList,
|
|
3746
3753
|
el as ButtonVariantList,
|
|
3747
|
-
|
|
3754
|
+
ea as COLOR,
|
|
3748
3755
|
Wi as COLORS,
|
|
3749
3756
|
Oi as COLORS_SIMPLE,
|
|
3750
3757
|
Ui as COLOR_CONST,
|
|
3751
|
-
|
|
3758
|
+
xe as COLOR_SIMPLE,
|
|
3752
3759
|
il as CardBehaviorList,
|
|
3753
3760
|
ll as CardElevationLevelList,
|
|
3754
3761
|
sl as CustomSelectDropdownWidthList,
|
|
@@ -3777,8 +3784,8 @@ export {
|
|
|
3777
3784
|
El as DBNotification,
|
|
3778
3785
|
Dl as DBPage,
|
|
3779
3786
|
Ml as DBPopover,
|
|
3780
|
-
|
|
3781
|
-
|
|
3787
|
+
zl as DBRadio,
|
|
3788
|
+
Rl as DBSection,
|
|
3782
3789
|
Pl as DBSelect,
|
|
3783
3790
|
Vl as DBStack,
|
|
3784
3791
|
Ol as DBSwitch,
|
|
@@ -3788,10 +3795,10 @@ export {
|
|
|
3788
3795
|
Hl as DBTabs,
|
|
3789
3796
|
vt as DBTag,
|
|
3790
3797
|
Kl as DBTextarea,
|
|
3791
|
-
|
|
3798
|
+
oa as DBTooltip,
|
|
3792
3799
|
Sa as DEFAULT_BACK,
|
|
3793
3800
|
La as DEFAULT_BURGER_MENU,
|
|
3794
|
-
|
|
3801
|
+
ze as DEFAULT_CLOSE_BUTTON,
|
|
3795
3802
|
Xe as DEFAULT_DATALIST_ID_SUFFIX,
|
|
3796
3803
|
Ia as DEFAULT_ICON,
|
|
3797
3804
|
Se as DEFAULT_ID,
|
|
@@ -3801,9 +3808,9 @@ export {
|
|
|
3801
3808
|
Oe as DEFAULT_LABEL_ID_SUFFIX,
|
|
3802
3809
|
wa as DEFAULT_MESSAGE,
|
|
3803
3810
|
de as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
3804
|
-
|
|
3811
|
+
Je as DEFAULT_PLACEHOLDER,
|
|
3805
3812
|
_e as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
3806
|
-
|
|
3813
|
+
Qe as DEFAULT_REMOVE,
|
|
3807
3814
|
$a as DEFAULT_ROWS,
|
|
3808
3815
|
Ba as DEFAULT_SELECTED,
|
|
3809
3816
|
He as DEFAULT_SELECT_ID_SUFFIX,
|
|
@@ -3811,7 +3818,7 @@ export {
|
|
|
3811
3818
|
ue as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
3812
3819
|
Ta as DEFAULT_VIEWPORT,
|
|
3813
3820
|
Gi as DENSITIES,
|
|
3814
|
-
|
|
3821
|
+
Ze as DENSITY,
|
|
3815
3822
|
qi as DENSITY_CONST,
|
|
3816
3823
|
Ea as DESKTOP_VIEWPORT,
|
|
3817
3824
|
vl as DividerMarginList,
|
|
@@ -3835,19 +3842,19 @@ export {
|
|
|
3835
3842
|
Bl as LinkVariantList,
|
|
3836
3843
|
ao as MarginList,
|
|
3837
3844
|
no as MaxWidthList,
|
|
3838
|
-
|
|
3845
|
+
zt as NavigationItemSafeTriangle,
|
|
3839
3846
|
Al as NotificationAriaLiveList,
|
|
3840
3847
|
Cl as NotificationLinkVariantList,
|
|
3841
3848
|
_l as NotificationVariantList,
|
|
3842
3849
|
lo as OrientationList,
|
|
3843
3850
|
Fl as PageDocumentOverflowList,
|
|
3844
3851
|
Nl as PageVariantList,
|
|
3845
|
-
|
|
3852
|
+
Ri as PlacementHorizontalList,
|
|
3846
3853
|
to as PlacementList,
|
|
3847
3854
|
Pi as PlacementVerticalList,
|
|
3848
3855
|
so as PopoverDelayList,
|
|
3849
3856
|
uo as PopoverWidthList,
|
|
3850
|
-
|
|
3857
|
+
aa as SEMANTIC,
|
|
3851
3858
|
Hi as SEMANTICS,
|
|
3852
3859
|
rl as SelectedTypeList,
|
|
3853
3860
|
xl as SemanticList,
|
|
@@ -3866,12 +3873,12 @@ export {
|
|
|
3866
3873
|
Zl as TooltipVariantList,
|
|
3867
3874
|
vo as ValidationList,
|
|
3868
3875
|
oo as WidthList,
|
|
3869
|
-
|
|
3870
|
-
|
|
3876
|
+
ta as addAttributeToChildren,
|
|
3877
|
+
U as cls,
|
|
3871
3878
|
J as delay,
|
|
3872
|
-
|
|
3879
|
+
V as getBoolean,
|
|
3873
3880
|
F as getBooleanAsString,
|
|
3874
|
-
|
|
3881
|
+
ia as getFloatingProps,
|
|
3875
3882
|
ie as getHideProp,
|
|
3876
3883
|
je as getInputValue,
|
|
3877
3884
|
ge as getNumber,
|
|
@@ -3879,7 +3886,7 @@ export {
|
|
|
3879
3886
|
Ye as getSearchInput,
|
|
3880
3887
|
Xa as handleDataOutside,
|
|
3881
3888
|
ja as handleFixedDropdown,
|
|
3882
|
-
|
|
3889
|
+
la as handleFixedPopover,
|
|
3883
3890
|
ve as hasVoiceOver,
|
|
3884
3891
|
_a as isArrayOfStrings,
|
|
3885
3892
|
Mt as isEventTargetNavigationItem,
|