@db-ux/v-core-components 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +1 -0
- package/dist/db-ux.es.js +1467 -1410
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +39 -0
- package/package.json +15 -15
package/dist/db-ux.es.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ne = (t, a,
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
const
|
|
6
|
-
var
|
|
7
|
-
const
|
|
8
|
-
var la = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t))(la || {}),
|
|
9
|
-
const
|
|
10
|
-
var
|
|
11
|
-
const
|
|
1
|
+
var Ta = Object.defineProperty;
|
|
2
|
+
var _a = (t, a, o) => a in t ? Ta(t, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[a] = o;
|
|
3
|
+
var ne = (t, a, o) => _a(t, typeof a != "symbol" ? a + "" : a, o);
|
|
4
|
+
import { defineComponent as G, ref as d, onMounted as Y, watch as D, createElementBlock as S, openBlock as m, normalizeClass as P, unref as n, createElementVNode as _, createCommentVNode as U, renderSlot as A, Fragment as W, createTextVNode as N, toDisplayString as $, renderList as ye, createBlock as J, createVNode as ee, withCtx as H, onUnmounted as Ca } from "vue";
|
|
5
|
+
const Te = "OVERWRITE_DEFAULT_ID", we = "LABEL SHOULD BE SET", ta = " ", Ea = "MESSAGE SHOULD BE SET", Qe = "-label", Ze = "-select", fe = "-message", pe = "-valid-message", he = "-invalid-message", Re = "-placeholder", xe = "-datalist", ge = "TODO: Add a validMessage", te = "TODO: Add an invalidMessage", ia = "Remove", Aa = "Back", Da = "Selected", Na = "BurgerMenu", Fa = "brand", Ma = 4, We = "Close", Ji = "density", Qi = "color";
|
|
6
|
+
var oa = /* @__PURE__ */ ((t) => (t.FUNCTIONAL = "functional", t.REGULAR = "regular", t.EXPRESSIVE = "expressive", t))(oa || {});
|
|
7
|
+
const Zi = Object.entries(oa).map(([, t]) => t);
|
|
8
|
+
var la = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t))(la || {}), na = /* @__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))(na || {});
|
|
9
|
+
const xi = Object.entries(na).map(([, t]) => t), eo = Object.entries(la).map(([, t]) => t);
|
|
10
|
+
var sa = /* @__PURE__ */ ((t) => (t.CRITICAL = "critical", t.INFORMATIONAL = "informational", t.WARNING = "warning", t.SUCCESSFUL = "successful", t))(sa || {});
|
|
11
|
+
const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
12
12
|
width: 390,
|
|
13
13
|
height: 884
|
|
14
|
-
},
|
|
14
|
+
}, za = {
|
|
15
15
|
width: 1920,
|
|
16
16
|
height: 1280
|
|
17
|
-
},
|
|
17
|
+
}, to = [{
|
|
18
18
|
name: "desktop",
|
|
19
|
-
...
|
|
19
|
+
...za
|
|
20
20
|
}, {
|
|
21
21
|
name: "tablet",
|
|
22
22
|
width: 768,
|
|
23
23
|
height: 1024
|
|
24
24
|
}, {
|
|
25
25
|
name: "mobile",
|
|
26
|
-
...
|
|
27
|
-
}],
|
|
26
|
+
...Ra
|
|
27
|
+
}], Q = () => {
|
|
28
28
|
var t, a;
|
|
29
29
|
if (typeof window < "u") {
|
|
30
30
|
if ((t = window.crypto) != null && t.randomUUID)
|
|
@@ -33,37 +33,37 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
33
33
|
return window.crypto.getRandomValues(new Uint32Array(3)).join("-");
|
|
34
34
|
}
|
|
35
35
|
return Math.random().toString().substring(2);
|
|
36
|
-
},
|
|
37
|
-
const
|
|
38
|
-
Object.values(
|
|
39
|
-
e.setAttribute(a.key, a.value), e.children.length > 0 &&
|
|
36
|
+
}, da = (t, a) => {
|
|
37
|
+
const o = t.children;
|
|
38
|
+
Object.values(o).forEach((e) => {
|
|
39
|
+
e.setAttribute(a.key, a.value), e.children.length > 0 && da(e, a);
|
|
40
40
|
});
|
|
41
41
|
}, q = (...t) => {
|
|
42
42
|
let a = "";
|
|
43
|
-
for (const
|
|
44
|
-
if (
|
|
45
|
-
if (typeof
|
|
46
|
-
a += `${
|
|
43
|
+
for (const o of t)
|
|
44
|
+
if (o)
|
|
45
|
+
if (typeof o == "string")
|
|
46
|
+
a += `${o} `;
|
|
47
47
|
else
|
|
48
|
-
for (const e in
|
|
49
|
-
|
|
48
|
+
for (const e in o)
|
|
49
|
+
o[e] && (a += `${e} `);
|
|
50
50
|
return a.trim();
|
|
51
|
-
},
|
|
51
|
+
}, Va = (t) => Array.isArray(t) && t.every((a) => typeof a == "string"), Pa = ["Mac", "iPhone", "iPad", "iPod"], me = () => typeof window < "u" && Pa.some((t) => window.navigator.userAgent.includes(t)), Z = (t, a) => new Promise(() => setTimeout(t, a)), R = (t) => {
|
|
52
52
|
if (t != null)
|
|
53
53
|
return String(typeof t == "string" ? !!t : t);
|
|
54
|
-
},
|
|
54
|
+
}, V = (t, a) => {
|
|
55
55
|
if (t != null)
|
|
56
56
|
return typeof t == "string" && a ? !!(a === t || t) : !!t;
|
|
57
|
-
},
|
|
57
|
+
}, ke = (t, a) => {
|
|
58
58
|
if (!(t == null && a == null))
|
|
59
59
|
return Number(t ?? a);
|
|
60
|
-
},
|
|
60
|
+
}, ea = (t, a) => a && ["number", "range"].includes(a) ? ke(t) : t, ie = (t) => {
|
|
61
61
|
if (t != null)
|
|
62
|
-
return
|
|
63
|
-
}, x = (t, a) => (a === void 0 || !!a) && !!t,
|
|
64
|
-
const
|
|
65
|
-
return `${a}${
|
|
66
|
-
},
|
|
62
|
+
return R(!t);
|
|
63
|
+
}, x = (t, a) => (a === void 0 || !!a) && !!t, aa = (t) => t.querySelector('input[type="search"]'), io = (t, a) => {
|
|
64
|
+
const o = t.id ?? t.value ?? Q();
|
|
65
|
+
return `${a}${o}`;
|
|
66
|
+
}, qa = (t) => t.key !== void 0, Ua = ["id"], Ga = ["aria-disabled", "name", "open"], Wa = /* @__PURE__ */ G({
|
|
67
67
|
__name: "accordion-item",
|
|
68
68
|
props: {
|
|
69
69
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -81,9 +81,9 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
81
81
|
name: { default: void 0 }
|
|
82
82
|
},
|
|
83
83
|
setup(t) {
|
|
84
|
-
const a = t,
|
|
84
|
+
const a = t, o = d(Te), e = d(!1), i = d(void 0), u = d(!1), f = d(null);
|
|
85
85
|
Y(() => {
|
|
86
|
-
|
|
86
|
+
o.value = a.id || "accordion-item-" + Q(), a.defaultOpen && (e.value = a.defaultOpen), u.value = !0;
|
|
87
87
|
}), D(
|
|
88
88
|
() => [f.value, u.value],
|
|
89
89
|
() => {
|
|
@@ -103,39 +103,39 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
103
103
|
flush: "post"
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
|
-
function
|
|
107
|
-
|
|
106
|
+
function p(v) {
|
|
107
|
+
v == null || v.preventDefault();
|
|
108
108
|
const s = !e.value;
|
|
109
109
|
a.onToggle && a.onToggle(s), e.value = s;
|
|
110
110
|
}
|
|
111
|
-
return (
|
|
112
|
-
id:
|
|
113
|
-
class:
|
|
111
|
+
return (v, s) => (m(), S("li", {
|
|
112
|
+
id: o.value,
|
|
113
|
+
class: P(n(q)("db-accordion-item", a.class))
|
|
114
114
|
}, [
|
|
115
115
|
_("details", {
|
|
116
|
-
"aria-disabled": n(
|
|
116
|
+
"aria-disabled": n(R)(v.disabled),
|
|
117
117
|
ref_key: "_ref",
|
|
118
118
|
ref: f,
|
|
119
119
|
name: i.value,
|
|
120
120
|
open: e.value
|
|
121
121
|
}, [
|
|
122
122
|
_("summary", {
|
|
123
|
-
onClick: s[0] || (s[0] = async (
|
|
123
|
+
onClick: s[0] || (s[0] = async (g) => p(g))
|
|
124
124
|
}, [
|
|
125
|
-
|
|
126
|
-
N(
|
|
127
|
-
], 64)) :
|
|
128
|
-
|
|
125
|
+
v.headlinePlain ? (m(), S(W, { key: 0 }, [
|
|
126
|
+
N($(v.headlinePlain), 1)
|
|
127
|
+
], 64)) : U("", !0),
|
|
128
|
+
v.headlinePlain ? U("", !0) : A(v.$slots, "headline", { key: 1 })
|
|
129
129
|
]),
|
|
130
130
|
_("div", null, [
|
|
131
|
-
|
|
132
|
-
N(
|
|
133
|
-
], 64)) : A(
|
|
131
|
+
v.text ? (m(), S(W, { key: 0 }, [
|
|
132
|
+
N($(v.text), 1)
|
|
133
|
+
], 64)) : A(v.$slots, "default", { key: 1 })
|
|
134
134
|
])
|
|
135
|
-
], 8,
|
|
136
|
-
], 10,
|
|
135
|
+
], 8, Ga)
|
|
136
|
+
], 10, Ua));
|
|
137
137
|
}
|
|
138
|
-
}),
|
|
138
|
+
}), Oa = ["id", "data-variant"], oo = /* @__PURE__ */ G({
|
|
139
139
|
__name: "accordion",
|
|
140
140
|
props: {
|
|
141
141
|
behavior: { default: void 0 },
|
|
@@ -151,13 +151,13 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
151
151
|
autofocus: { type: [Boolean, String] }
|
|
152
152
|
},
|
|
153
153
|
setup(t) {
|
|
154
|
-
const a = t,
|
|
154
|
+
const a = t, o = d(Te), e = d(""), i = d(!1), u = d(!1), f = d(null);
|
|
155
155
|
Y(() => {
|
|
156
|
-
|
|
156
|
+
o.value = a.id || "accordion-" + Q(), i.value = !0, u.value = !0;
|
|
157
157
|
}), D(
|
|
158
|
-
() => [i.value, a.name, a.behavior,
|
|
158
|
+
() => [i.value, a.name, a.behavior, o.value],
|
|
159
159
|
() => {
|
|
160
|
-
i.value && (a.behavior === "single" ? a.name ? e.value !== a.name && (e.value = a.name) : e.value !==
|
|
160
|
+
i.value && (a.behavior === "single" ? a.name ? e.value !== a.name && (e.value = a.name) : e.value !== o.value && o.value && (e.value = o.value) : e.value = "");
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
immediate: !0,
|
|
@@ -167,9 +167,9 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
167
167
|
() => [f.value, e.value],
|
|
168
168
|
() => {
|
|
169
169
|
if (f.value) {
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
for (const s of Array.from(
|
|
170
|
+
const v = f.value.getElementsByTagName("details");
|
|
171
|
+
if (v)
|
|
172
|
+
for (const s of Array.from(v))
|
|
173
173
|
e.value === "" ? s.removeAttribute("name") : s.name = e.value ?? "";
|
|
174
174
|
}
|
|
175
175
|
},
|
|
@@ -182,12 +182,12 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
182
182
|
() => {
|
|
183
183
|
if (f.value && u.value) {
|
|
184
184
|
if (a.initOpenIndex && a.initOpenIndex.length > 0) {
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
185
|
+
const v = f.value.getElementsByTagName("details");
|
|
186
|
+
if (v) {
|
|
187
187
|
const s = a.behavior === "single" && a.initOpenIndex.length > 1 ? [a.initOpenIndex[0]] : a.initOpenIndex;
|
|
188
|
-
Array.from(
|
|
189
|
-
(
|
|
190
|
-
s != null && s.includes(T) && (
|
|
188
|
+
Array.from(v).forEach(
|
|
189
|
+
(g, T) => {
|
|
190
|
+
s != null && s.includes(T) && (g.open = !0);
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
193
|
}
|
|
@@ -200,31 +200,31 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
200
200
|
flush: "post"
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
|
-
function
|
|
203
|
+
function p() {
|
|
204
204
|
try {
|
|
205
205
|
return typeof a.items == "string" ? JSON.parse(a.items) : a.items;
|
|
206
|
-
} catch (
|
|
207
|
-
console.error(
|
|
206
|
+
} catch (v) {
|
|
207
|
+
console.error(v);
|
|
208
208
|
}
|
|
209
209
|
return [];
|
|
210
210
|
}
|
|
211
|
-
return (
|
|
211
|
+
return (v, s) => (m(), S("ul", {
|
|
212
212
|
ref_key: "_ref",
|
|
213
213
|
ref: f,
|
|
214
|
-
id:
|
|
215
|
-
class:
|
|
216
|
-
"data-variant":
|
|
214
|
+
id: o.value,
|
|
215
|
+
class: P(n(q)("db-accordion", a.class)),
|
|
216
|
+
"data-variant": v.variant
|
|
217
217
|
}, [
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
v.items ? U("", !0) : A(v.$slots, "default", { key: 0 }),
|
|
219
|
+
v.items ? (m(!0), S(W, { key: 1 }, ye(p(), (g, T) => (m(), J(Wa, {
|
|
220
220
|
key: `accordion-item-${T}`,
|
|
221
|
-
headlinePlain:
|
|
222
|
-
disabled:
|
|
223
|
-
text:
|
|
224
|
-
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) :
|
|
225
|
-
], 10,
|
|
221
|
+
headlinePlain: g.headlinePlain,
|
|
222
|
+
disabled: g.disabled,
|
|
223
|
+
text: g.text
|
|
224
|
+
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : U("", !0)
|
|
225
|
+
], 10, Oa));
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), lo = ["divider", "card"], no = ["multiple", "single"], Ha = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], so = /* @__PURE__ */ G({
|
|
228
228
|
__name: "badge",
|
|
229
229
|
props: {
|
|
230
230
|
placement: { default: void 0 },
|
|
@@ -240,14 +240,14 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
240
240
|
text: { default: void 0 }
|
|
241
241
|
},
|
|
242
242
|
setup(t) {
|
|
243
|
-
const a = t,
|
|
243
|
+
const a = t, o = d(!1), e = d(null);
|
|
244
244
|
return Y(() => {
|
|
245
|
-
|
|
245
|
+
o.value = !0;
|
|
246
246
|
}), D(
|
|
247
|
-
() => [e.value,
|
|
247
|
+
() => [e.value, o.value],
|
|
248
248
|
() => {
|
|
249
249
|
var i;
|
|
250
|
-
if (e.value &&
|
|
250
|
+
if (e.value && o.value && (i = a.placement) != null && i.startsWith("corner")) {
|
|
251
251
|
let u = e.value.parentElement;
|
|
252
252
|
u && u.localName.includes("badge") && (u = u.parentElement), u && (u.dataset.hasBadge = "true");
|
|
253
253
|
}
|
|
@@ -258,24 +258,24 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
258
258
|
}
|
|
259
259
|
), (i, u) => {
|
|
260
260
|
var f;
|
|
261
|
-
return
|
|
261
|
+
return m(), S("span", {
|
|
262
262
|
ref_key: "_ref",
|
|
263
263
|
ref: e,
|
|
264
264
|
id: i.id,
|
|
265
|
-
class:
|
|
265
|
+
class: P(n(q)("db-badge", a.class)),
|
|
266
266
|
"data-semantic": i.semantic,
|
|
267
267
|
"data-size": i.size,
|
|
268
268
|
"data-emphasis": i.emphasis,
|
|
269
269
|
"data-placement": i.placement,
|
|
270
|
-
"data-label": ((f = i.placement) == null ? void 0 : f.startsWith("corner")) && (i.label ?? n(
|
|
270
|
+
"data-label": ((f = i.placement) == null ? void 0 : f.startsWith("corner")) && (i.label ?? n(we))
|
|
271
271
|
}, [
|
|
272
|
-
i.text ? (
|
|
273
|
-
N(
|
|
272
|
+
i.text ? (m(), S(W, { key: 0 }, [
|
|
273
|
+
N($(i.text), 1)
|
|
274
274
|
], 64)) : A(i.$slots, "default", { key: 1 })
|
|
275
|
-
], 10,
|
|
275
|
+
], 10, Ha);
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
278
|
+
}), uo = ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"], Xa = ["data-icon", "data-show-icon", "id"], ro = /* @__PURE__ */ G({
|
|
279
279
|
__name: "brand",
|
|
280
280
|
props: {
|
|
281
281
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -289,21 +289,21 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
289
289
|
text: { default: void 0 }
|
|
290
290
|
},
|
|
291
291
|
setup(t) {
|
|
292
|
-
const a = t,
|
|
293
|
-
return (e, i) => (
|
|
292
|
+
const a = t, o = d(null);
|
|
293
|
+
return (e, i) => (m(), S("div", {
|
|
294
294
|
ref_key: "_ref",
|
|
295
|
-
ref:
|
|
296
|
-
"data-icon": e.hideLogo ? "none" : e.icon ?? n(
|
|
297
|
-
"data-show-icon": n(
|
|
295
|
+
ref: o,
|
|
296
|
+
"data-icon": e.hideLogo ? "none" : e.icon ?? n(Fa),
|
|
297
|
+
"data-show-icon": n(R)(e.showIcon),
|
|
298
298
|
id: e.id,
|
|
299
|
-
class:
|
|
299
|
+
class: P(n(q)("db-brand", a.class))
|
|
300
300
|
}, [
|
|
301
|
-
e.text ? (
|
|
302
|
-
N(
|
|
301
|
+
e.text ? (m(), S(W, { key: 0 }, [
|
|
302
|
+
N($(e.text), 1)
|
|
303
303
|
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
304
|
-
], 10,
|
|
304
|
+
], 10, Xa));
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), ja = ["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"], Se = /* @__PURE__ */ G({
|
|
307
307
|
__name: "button",
|
|
308
308
|
props: {
|
|
309
309
|
disabled: { type: [Boolean, String], default: void 0 },
|
|
@@ -330,39 +330,39 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
330
330
|
iconTrailing: { default: void 0 }
|
|
331
331
|
},
|
|
332
332
|
setup(t) {
|
|
333
|
-
const a = t,
|
|
333
|
+
const a = t, o = d(null);
|
|
334
334
|
function e() {
|
|
335
335
|
return a.type ? a.type : a.onClick ? "button" : "submit";
|
|
336
336
|
}
|
|
337
337
|
function i(u) {
|
|
338
338
|
a.onClick && a.onClick(u);
|
|
339
339
|
}
|
|
340
|
-
return (u, f) => (
|
|
340
|
+
return (u, f) => (m(), S("button", {
|
|
341
341
|
ref_key: "_ref",
|
|
342
|
-
ref:
|
|
342
|
+
ref: o,
|
|
343
343
|
id: u.id,
|
|
344
|
-
class:
|
|
344
|
+
class: P(n(q)("db-button", a.class)),
|
|
345
345
|
type: e(),
|
|
346
|
-
disabled: n(
|
|
346
|
+
disabled: n(V)(u.disabled, "disabled"),
|
|
347
347
|
"data-icon": u.iconLeading ?? u.icon,
|
|
348
|
-
"data-show-icon": n(
|
|
348
|
+
"data-show-icon": n(R)(u.showIconLeading ?? u.showIcon),
|
|
349
349
|
"data-icon-trailing": u.iconTrailing,
|
|
350
|
-
"data-show-icon-trailing": n(
|
|
350
|
+
"data-show-icon-trailing": n(R)(u.showIconTrailing),
|
|
351
351
|
"data-size": u.size,
|
|
352
352
|
"data-width": u.width,
|
|
353
353
|
"data-variant": u.variant,
|
|
354
|
-
"data-no-text": n(
|
|
354
|
+
"data-no-text": n(R)(u.noText),
|
|
355
355
|
name: u.name,
|
|
356
356
|
form: u.form,
|
|
357
357
|
value: u.value,
|
|
358
|
-
onClick: f[0] || (f[0] = async (
|
|
358
|
+
onClick: f[0] || (f[0] = async (p) => i(p))
|
|
359
359
|
}, [
|
|
360
|
-
u.text ? (
|
|
361
|
-
N(
|
|
360
|
+
u.text ? (m(), S(W, { key: 0 }, [
|
|
361
|
+
N($(u.text), 1)
|
|
362
362
|
], 64)) : A(u.$slots, "default", { key: 1 })
|
|
363
|
-
], 10,
|
|
363
|
+
], 10, ja));
|
|
364
364
|
}
|
|
365
|
-
}),
|
|
365
|
+
}), co = ["outlined", "brand", "filled", "ghost"], vo = ["button", "reset", "submit"], Ya = ["id", "data-behavior", "data-elevation-level", "data-spacing"], fo = /* @__PURE__ */ G({
|
|
366
366
|
__name: "card",
|
|
367
367
|
props: {
|
|
368
368
|
behavior: { default: void 0 },
|
|
@@ -376,26 +376,26 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
376
376
|
spacing: { default: void 0 }
|
|
377
377
|
},
|
|
378
378
|
setup(t) {
|
|
379
|
-
const a = t,
|
|
379
|
+
const a = t, o = d(null);
|
|
380
380
|
function e(i) {
|
|
381
381
|
a.onClick && a.onClick(i);
|
|
382
382
|
}
|
|
383
|
-
return (i, u) => (
|
|
383
|
+
return (i, u) => (m(), S("div", {
|
|
384
384
|
ref_key: "_ref",
|
|
385
|
-
ref:
|
|
385
|
+
ref: o,
|
|
386
386
|
id: i.id,
|
|
387
|
-
class:
|
|
387
|
+
class: P(n(q)("db-card", a.class)),
|
|
388
388
|
"data-behavior": i.behavior,
|
|
389
389
|
"data-elevation-level": i.elevationLevel,
|
|
390
390
|
"data-spacing": i.spacing,
|
|
391
391
|
onClick: u[0] || (u[0] = async (f) => e(f))
|
|
392
392
|
}, [
|
|
393
393
|
A(i.$slots, "default")
|
|
394
|
-
], 10,
|
|
394
|
+
], 10, Ya));
|
|
395
395
|
}
|
|
396
|
-
}), de = (t, a,
|
|
397
|
-
t(`update:${
|
|
398
|
-
},
|
|
396
|
+
}), po = ["static", "interactive"], ho = ["1", "2", "3"], de = (t, a, o = "value") => {
|
|
397
|
+
t(`update:${o}`, a.target[o]);
|
|
398
|
+
}, Ka = ["id", "data-icon", "data-semantic", "data-size", "data-show-icon-leading"], ae = /* @__PURE__ */ G({
|
|
399
399
|
__name: "infotext",
|
|
400
400
|
props: {
|
|
401
401
|
children: { default: void 0 },
|
|
@@ -410,26 +410,26 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
410
410
|
text: { default: void 0 }
|
|
411
411
|
},
|
|
412
412
|
setup(t) {
|
|
413
|
-
const a = t,
|
|
414
|
-
return (e, i) => (
|
|
413
|
+
const a = t, o = d(null);
|
|
414
|
+
return (e, i) => (m(), S("span", {
|
|
415
415
|
ref_key: "_ref",
|
|
416
|
-
ref:
|
|
416
|
+
ref: o,
|
|
417
417
|
id: e.id,
|
|
418
|
-
class:
|
|
418
|
+
class: P(n(q)("db-infotext", a.class)),
|
|
419
419
|
"data-icon": e.icon,
|
|
420
420
|
"data-semantic": e.semantic,
|
|
421
421
|
"data-size": e.size,
|
|
422
|
-
"data-show-icon-leading": n(
|
|
422
|
+
"data-show-icon-leading": n(R)(e.showIcon ?? !0)
|
|
423
423
|
}, [
|
|
424
|
-
e.text ? (
|
|
425
|
-
N(
|
|
424
|
+
e.text ? (m(), S(W, { key: 0 }, [
|
|
425
|
+
N($(e.text), 1)
|
|
426
426
|
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
427
|
-
], 10,
|
|
427
|
+
], 10, Ka));
|
|
428
428
|
}
|
|
429
|
-
}),
|
|
429
|
+
}), Ja = ["data-size", "data-hide-asterisk", "data-hide-label"], Qa = ["for"], Za = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], xa = {
|
|
430
430
|
"data-visually-hidden": "true",
|
|
431
431
|
role: "status"
|
|
432
|
-
},
|
|
432
|
+
}, go = /* @__PURE__ */ G({
|
|
433
433
|
__name: "checkbox",
|
|
434
434
|
props: {
|
|
435
435
|
indeterminate: { type: [Boolean, String], default: void 0 },
|
|
@@ -467,16 +467,16 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
467
467
|
},
|
|
468
468
|
emits: ["update:checked"],
|
|
469
469
|
setup(t, { emit: a }) {
|
|
470
|
-
const
|
|
470
|
+
const o = a, e = t, i = d(!1), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(void 0), T = d(""), w = d(null);
|
|
471
471
|
Y(() => {
|
|
472
472
|
i.value = !0;
|
|
473
|
-
const b = e.id ?? `checkbox-${
|
|
474
|
-
u.value = b, f.value = b +
|
|
473
|
+
const b = e.id ?? `checkbox-${Q()}`;
|
|
474
|
+
u.value = b, f.value = b + fe, p.value = b + pe, v.value = b + he, s.value = e.invalidMessage || te;
|
|
475
475
|
}), D(
|
|
476
|
-
() => [
|
|
476
|
+
() => [w.value, e.invalidMessage],
|
|
477
477
|
() => {
|
|
478
478
|
var b;
|
|
479
|
-
s.value = e.invalidMessage || ((b =
|
|
479
|
+
s.value = e.invalidMessage || ((b = w.value) == null ? void 0 : b.validationMessage) || te;
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
482
|
immediate: !0,
|
|
@@ -486,8 +486,8 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
486
486
|
() => [u.value],
|
|
487
487
|
() => {
|
|
488
488
|
if (u.value) {
|
|
489
|
-
const b = u.value +
|
|
490
|
-
f.value = b,
|
|
489
|
+
const b = u.value + fe;
|
|
490
|
+
f.value = b, p.value = u.value + pe, v.value = u.value + he, x(e.message, e.showMessage) && (g.value = b), r();
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
493
|
{
|
|
@@ -495,18 +495,18 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
495
495
|
flush: "post"
|
|
496
496
|
}
|
|
497
497
|
), D(
|
|
498
|
-
() => [i.value,
|
|
498
|
+
() => [i.value, w.value, e.indeterminate],
|
|
499
499
|
() => {
|
|
500
|
-
|
|
500
|
+
w.value && e.indeterminate !== void 0 && (w.value.indeterminate = !!V(e.indeterminate));
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
503
|
immediate: !0,
|
|
504
504
|
flush: "post"
|
|
505
505
|
}
|
|
506
506
|
), D(
|
|
507
|
-
() => [i.value,
|
|
507
|
+
() => [i.value, w.value, e.checked],
|
|
508
508
|
() => {
|
|
509
|
-
i.value &&
|
|
509
|
+
i.value && w.value && (e.checked != null && (w.value.checked = !!V(e.checked)), i.value = !1);
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
512
|
immediate: !0,
|
|
@@ -516,21 +516,21 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
516
516
|
function h() {
|
|
517
517
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
var b,
|
|
521
|
-
!((b =
|
|
519
|
+
function r() {
|
|
520
|
+
var b, k, F;
|
|
521
|
+
!((b = w.value) != null && b.validity.valid) || e.validation === "invalid" ? (g.value = v.value, s.value = e.invalidMessage || ((k = w.value) == null ? void 0 : k.validationMessage) || te, me() && (T.value = s.value, Z(() => T.value = "", 1e3))) : h() && ((F = w.value) != null && F.validity.valid) && e.required ? (g.value = p.value, me() && (T.value = e.validMessage ?? ge, Z(() => T.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = f.value : g.value = void 0;
|
|
522
522
|
}
|
|
523
523
|
function c(b) {
|
|
524
|
-
e.onChange && e.onChange(b), de(
|
|
524
|
+
e.onChange && e.onChange(b), de(o, b, "checked"), r();
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function L(b) {
|
|
527
527
|
e.onBlur && e.onBlur(b);
|
|
528
528
|
}
|
|
529
529
|
function C(b) {
|
|
530
530
|
e.onFocus && e.onFocus(b);
|
|
531
531
|
}
|
|
532
|
-
return (b,
|
|
533
|
-
class:
|
|
532
|
+
return (b, k) => (m(), S("div", {
|
|
533
|
+
class: P(n(q)("db-checkbox", e.class)),
|
|
534
534
|
"data-size": b.size,
|
|
535
535
|
"data-hide-asterisk": n(ie)(b.showRequiredAsterisk),
|
|
536
536
|
"data-hide-label": n(ie)(b.showLabel)
|
|
@@ -541,61 +541,61 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
541
541
|
"aria-invalid": b.validation === "invalid",
|
|
542
542
|
"data-custom-validity": b.validation,
|
|
543
543
|
ref_key: "_ref",
|
|
544
|
-
ref:
|
|
544
|
+
ref: w,
|
|
545
545
|
id: u.value,
|
|
546
546
|
name: b.name,
|
|
547
|
-
checked: n(
|
|
548
|
-
disabled: n(
|
|
547
|
+
checked: n(V)(b.checked, "checked"),
|
|
548
|
+
disabled: n(V)(b.disabled, "disabled"),
|
|
549
549
|
value: b.value,
|
|
550
|
-
required: n(
|
|
551
|
-
onChange:
|
|
552
|
-
onBlur:
|
|
553
|
-
onFocus:
|
|
554
|
-
"aria-describedby": b.ariaDescribedBy ??
|
|
555
|
-
}, null, 40,
|
|
556
|
-
b.label ? (
|
|
557
|
-
N(
|
|
550
|
+
required: n(V)(b.required, "required"),
|
|
551
|
+
onChange: k[0] || (k[0] = async (F) => c(F)),
|
|
552
|
+
onBlur: k[1] || (k[1] = async (F) => L(F)),
|
|
553
|
+
onFocus: k[2] || (k[2] = async (F) => C(F)),
|
|
554
|
+
"aria-describedby": b.ariaDescribedBy ?? g.value
|
|
555
|
+
}, null, 40, Za),
|
|
556
|
+
b.label ? (m(), S(W, { key: 0 }, [
|
|
557
|
+
N($(b.label), 1)
|
|
558
558
|
], 64)) : A(b.$slots, "default", { key: 1 })
|
|
559
|
-
], 8,
|
|
560
|
-
n(x)(b.message, b.showMessage) ? (
|
|
559
|
+
], 8, Qa),
|
|
560
|
+
n(x)(b.message, b.showMessage) ? (m(), J(ae, {
|
|
561
561
|
key: 0,
|
|
562
562
|
size: "small",
|
|
563
563
|
icon: b.messageIcon,
|
|
564
564
|
id: f.value
|
|
565
565
|
}, {
|
|
566
|
-
default:
|
|
567
|
-
N(
|
|
566
|
+
default: H(() => [
|
|
567
|
+
N($(b.message), 1)
|
|
568
568
|
]),
|
|
569
569
|
_: 1
|
|
570
|
-
}, 8, ["icon", "id"])) :
|
|
571
|
-
h() ? (
|
|
570
|
+
}, 8, ["icon", "id"])) : U("", !0),
|
|
571
|
+
h() ? (m(), J(ae, {
|
|
572
572
|
key: 1,
|
|
573
573
|
size: "small",
|
|
574
574
|
semantic: "successful",
|
|
575
|
-
id:
|
|
575
|
+
id: p.value
|
|
576
576
|
}, {
|
|
577
|
-
default:
|
|
578
|
-
N(
|
|
577
|
+
default: H(() => [
|
|
578
|
+
N($(b.validMessage || n(ge)), 1)
|
|
579
579
|
]),
|
|
580
580
|
_: 1
|
|
581
|
-
}, 8, ["id"])) :
|
|
581
|
+
}, 8, ["id"])) : U("", !0),
|
|
582
582
|
ee(ae, {
|
|
583
583
|
size: "small",
|
|
584
584
|
semantic: "critical",
|
|
585
|
-
id:
|
|
585
|
+
id: v.value
|
|
586
586
|
}, {
|
|
587
|
-
default:
|
|
588
|
-
N(
|
|
587
|
+
default: H(() => [
|
|
588
|
+
N($(s.value), 1)
|
|
589
589
|
]),
|
|
590
590
|
_: 1
|
|
591
591
|
}, 8, ["id"]),
|
|
592
|
-
_("span",
|
|
593
|
-
], 10,
|
|
592
|
+
_("span", xa, $(T.value), 1)
|
|
593
|
+
], 10, Ja));
|
|
594
594
|
}
|
|
595
595
|
}), re = class re {
|
|
596
596
|
static runCallbacks(a) {
|
|
597
|
-
for (const
|
|
598
|
-
typeof
|
|
597
|
+
for (const o of Object.values(re.callbacks))
|
|
598
|
+
typeof o == "function" && o(a);
|
|
599
599
|
}
|
|
600
600
|
constructor() {
|
|
601
601
|
if (re._instance)
|
|
@@ -603,8 +603,8 @@ const el = Object.entries(na).map(([, t]) => t), Ma = {
|
|
|
603
603
|
re._instance = this, self.document && self.document.addEventListener("click", (a) => re.runCallbacks(a));
|
|
604
604
|
}
|
|
605
605
|
addCallback(a) {
|
|
606
|
-
const
|
|
607
|
-
return re.callbacks[
|
|
606
|
+
const o = Q();
|
|
607
|
+
return re.callbacks[o] = a, o;
|
|
608
608
|
}
|
|
609
609
|
removeCallback(a) {
|
|
610
610
|
delete re.callbacks[a];
|
|
@@ -624,66 +624,66 @@ const ce = class ce {
|
|
|
624
624
|
}, !0);
|
|
625
625
|
}
|
|
626
626
|
static runCallbacks(a) {
|
|
627
|
-
for (const
|
|
628
|
-
typeof
|
|
627
|
+
for (const o of Object.values(ce.callbacks))
|
|
628
|
+
typeof o == "function" && o(a);
|
|
629
629
|
}
|
|
630
630
|
addCallback(a) {
|
|
631
|
-
const
|
|
632
|
-
return ce.callbacks[
|
|
631
|
+
const o = Q();
|
|
632
|
+
return ce.callbacks[o] = a, o;
|
|
633
633
|
}
|
|
634
634
|
removeCallback(a) {
|
|
635
635
|
delete ce.callbacks[a];
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
ne(ce, "callbacks", {}), ne(ce, "_instance", null);
|
|
639
|
-
let
|
|
640
|
-
const
|
|
641
|
-
var
|
|
639
|
+
let Be = ce;
|
|
640
|
+
const et = (t) => {
|
|
641
|
+
var r;
|
|
642
642
|
const {
|
|
643
643
|
top: a,
|
|
644
|
-
bottom:
|
|
644
|
+
bottom: o,
|
|
645
645
|
left: e,
|
|
646
646
|
right: i
|
|
647
647
|
} = t.getBoundingClientRect(), {
|
|
648
648
|
innerHeight: u,
|
|
649
649
|
innerWidth: f
|
|
650
650
|
} = window;
|
|
651
|
-
let
|
|
652
|
-
const T = t.dataset.outsideVy,
|
|
653
|
-
return h && (T && (t.dataset.outsideVy === "top" ?
|
|
654
|
-
outTop:
|
|
655
|
-
outBottom:
|
|
651
|
+
let p = a < 0, v = o > u, s = e < 0, g = i > f;
|
|
652
|
+
const T = t.dataset.outsideVy, w = t.dataset.outsideVx, h = (r = t == null ? void 0 : t.parentElement) == null ? void 0 : r.getBoundingClientRect();
|
|
653
|
+
return h && (T && (t.dataset.outsideVy === "top" ? p = h.top - (o - h.bottom) < 0 : v = h.bottom + (h.top - a) > u), w && (t.dataset.outsideVx === "left" ? s = h.left - (i - h.right) < 0 : g = h.right + (h.left - e) > f)), {
|
|
654
|
+
outTop: p,
|
|
655
|
+
outBottom: v,
|
|
656
656
|
outLeft: s,
|
|
657
|
-
outRight:
|
|
657
|
+
outRight: g
|
|
658
658
|
};
|
|
659
|
-
},
|
|
659
|
+
}, at = (t) => {
|
|
660
660
|
const {
|
|
661
661
|
outTop: a,
|
|
662
|
-
outBottom:
|
|
662
|
+
outBottom: o,
|
|
663
663
|
outLeft: e,
|
|
664
664
|
outRight: i
|
|
665
|
-
} =
|
|
665
|
+
} = et(t);
|
|
666
666
|
let u = {};
|
|
667
|
-
return a ||
|
|
667
|
+
return a || o ? (u = {
|
|
668
668
|
vy: a ? "top" : "bottom"
|
|
669
669
|
}, t.dataset.outsideVy = u.vy) : delete t.dataset.outsideVy, e || i ? (u = {
|
|
670
670
|
...u,
|
|
671
671
|
vx: i ? "right" : "left"
|
|
672
672
|
}, t.dataset.outsideVx = u.vx) : delete t.dataset.outsideVx, u;
|
|
673
|
-
},
|
|
673
|
+
}, tt = (t, a, o) => {
|
|
674
674
|
if (getComputedStyle(t).zIndex === "9999") return;
|
|
675
675
|
const {
|
|
676
676
|
top: e,
|
|
677
677
|
bottom: i,
|
|
678
678
|
childHeight: u,
|
|
679
679
|
childWidth: f,
|
|
680
|
-
width:
|
|
681
|
-
right:
|
|
680
|
+
width: p,
|
|
681
|
+
right: v,
|
|
682
682
|
left: s,
|
|
683
|
-
correctedPlacement:
|
|
684
|
-
} =
|
|
685
|
-
t.dataset.width === "full" && (t.style.inlineSize = `${
|
|
686
|
-
},
|
|
683
|
+
correctedPlacement: g
|
|
684
|
+
} = ua(t, a, o);
|
|
685
|
+
t.dataset.width === "full" && (t.style.inlineSize = `${p}px`), g === "top" || g === "bottom" || g === "top-start" || g === "bottom-start" ? t.style.insetInlineStart = `${s}px` : (g === "top-end" || g === "bottom-end") && (t.style.insetInlineStart = `${v - f}px`), g != null && g.startsWith("top") ? t.style.insetBlockStart = `${e - u}px` : g != null && g.startsWith("bottom") && (t.style.insetBlockStart = `${i}px`), t.style.position = "fixed";
|
|
686
|
+
}, ua = (t, a, o) => {
|
|
687
687
|
if (!t || !a)
|
|
688
688
|
return {
|
|
689
689
|
top: 0,
|
|
@@ -694,7 +694,7 @@ const xa = (t) => {
|
|
|
694
694
|
left: 0,
|
|
695
695
|
childHeight: 0,
|
|
696
696
|
childWidth: 0,
|
|
697
|
-
correctedPlacement:
|
|
697
|
+
correctedPlacement: o,
|
|
698
698
|
innerWidth: window.innerWidth,
|
|
699
699
|
innerHeight: window.innerHeight
|
|
700
700
|
};
|
|
@@ -702,84 +702,84 @@ const xa = (t) => {
|
|
|
702
702
|
top: i,
|
|
703
703
|
height: u,
|
|
704
704
|
bottom: f,
|
|
705
|
-
right:
|
|
706
|
-
left:
|
|
705
|
+
right: p,
|
|
706
|
+
left: v,
|
|
707
707
|
width: s
|
|
708
708
|
} = a.getBoundingClientRect(), {
|
|
709
|
-
innerHeight:
|
|
709
|
+
innerHeight: g,
|
|
710
710
|
innerWidth: T
|
|
711
711
|
} = window;
|
|
712
|
-
let
|
|
713
|
-
(
|
|
714
|
-
const
|
|
715
|
-
let b =
|
|
716
|
-
return
|
|
712
|
+
let w = e.height, h = e.width;
|
|
713
|
+
(o === "bottom" || o === "top") && (h = h / 2), (o === "left" || o === "right") && (w = w / 2);
|
|
714
|
+
const r = f + w > g, c = i - w < 0, L = v - h < 0, C = p + h > T;
|
|
715
|
+
let b = o;
|
|
716
|
+
return o.startsWith("bottom") ? r ? (b = o == null ? void 0 : o.replace("bottom", "top"), L && C ? b = "top" : L ? b = "top-start" : C && (b = "top-end")) : L && C ? b = "bottom" : L ? b = "bottom-start" : C && (b = "bottom-end") : o.startsWith("top") ? c ? (b = o == null ? void 0 : o.replace("top", "bottom"), L && C ? b = "bottom" : L ? b = "bottom-start" : C && (b = "bottom-end")) : L && C ? b = "top" : L ? b = "top-start" : C && (b = "top-end") : o.startsWith("left") ? L ? (b = o == null ? void 0 : o.replace("left", "right"), r && c ? b = "right" : r ? b = "right-end" : c && (b = "right-start")) : r && c ? b = "left" : r ? b = "left-end" : c && (b = "left-start") : b.startsWith("right") && (C ? (b = o == null ? void 0 : o.replace("right", "left"), r && c ? b = "left" : r ? b = "left-end" : c && (b = "left-start")) : r && c ? b = "right" : r ? b = "right-end" : c && (b = "right-start")), {
|
|
717
717
|
top: i,
|
|
718
718
|
bottom: f,
|
|
719
|
-
right:
|
|
719
|
+
right: p,
|
|
720
720
|
height: u,
|
|
721
721
|
width: s,
|
|
722
|
-
left:
|
|
722
|
+
left: v,
|
|
723
723
|
childHeight: e.height,
|
|
724
724
|
childWidth: e.width,
|
|
725
725
|
correctedPlacement: b,
|
|
726
726
|
innerWidth: T,
|
|
727
|
-
innerHeight:
|
|
727
|
+
innerHeight: g
|
|
728
728
|
};
|
|
729
|
-
},
|
|
729
|
+
}, ra = (t, a, o) => {
|
|
730
730
|
const e = getComputedStyle(t).getPropertyValue("--db-popover-distance") ?? "0px", {
|
|
731
731
|
top: i,
|
|
732
732
|
height: u,
|
|
733
733
|
width: f,
|
|
734
|
-
childHeight:
|
|
735
|
-
childWidth:
|
|
734
|
+
childHeight: p,
|
|
735
|
+
childWidth: v,
|
|
736
736
|
right: s,
|
|
737
|
-
left:
|
|
737
|
+
left: g,
|
|
738
738
|
bottom: T,
|
|
739
|
-
correctedPlacement:
|
|
739
|
+
correctedPlacement: w,
|
|
740
740
|
innerWidth: h,
|
|
741
|
-
innerHeight:
|
|
742
|
-
} =
|
|
743
|
-
if (
|
|
744
|
-
const c = f / 2 /
|
|
745
|
-
|
|
741
|
+
innerHeight: r
|
|
742
|
+
} = ua(t, a, o);
|
|
743
|
+
if (v > f && (w.startsWith("bottom") || w.startsWith("top"))) {
|
|
744
|
+
const c = f / 2 / v * 100;
|
|
745
|
+
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-inline-start", `${c}%`) : w.endsWith("end") && t.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - c}%`);
|
|
746
746
|
}
|
|
747
|
-
if (
|
|
748
|
-
const c = u / 2 /
|
|
749
|
-
|
|
747
|
+
if (p > u && (w.startsWith("left") || w.startsWith("bottom"))) {
|
|
748
|
+
const c = u / 2 / p * 100;
|
|
749
|
+
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-block-start", `${c}%`) : w.endsWith("end") && t.style.setProperty("--db-tooltip-arrow-block-start", `${100 - c}%`);
|
|
750
750
|
}
|
|
751
|
-
if (
|
|
751
|
+
if (w === "right" || w === "left")
|
|
752
752
|
t.style.insetBlockStart = `${i + u / 2}px`;
|
|
753
|
-
else if (
|
|
754
|
-
const c = i +
|
|
755
|
-
t.style.insetBlockStart = `${i}px`, t.style.insetBlockEnd = `${c >
|
|
756
|
-
} else if (
|
|
757
|
-
const c = T -
|
|
753
|
+
else if (w === "right-start" || w === "left-start") {
|
|
754
|
+
const c = i + p;
|
|
755
|
+
t.style.insetBlockStart = `${i}px`, t.style.insetBlockEnd = `${c > r ? r : c}px`;
|
|
756
|
+
} else if (w === "right-end" || w === "left-end") {
|
|
757
|
+
const c = T - p;
|
|
758
758
|
t.style.insetBlockStart = `${c < 0 ? 0 : c}px`, t.style.insetBlockEnd = `${T}px`;
|
|
759
|
-
} else if (
|
|
760
|
-
t.style.insetInlineStart = `${
|
|
761
|
-
else if (
|
|
762
|
-
const c =
|
|
763
|
-
t.style.insetInlineStart = `${
|
|
764
|
-
} else if (
|
|
765
|
-
const c =
|
|
766
|
-
t.style.insetInlineStart = `${s -
|
|
759
|
+
} else if (w === "top" || w === "bottom")
|
|
760
|
+
t.style.insetInlineStart = `${g + f / 2}px`;
|
|
761
|
+
else if (w === "top-start" || w === "bottom-start") {
|
|
762
|
+
const c = g + v;
|
|
763
|
+
t.style.insetInlineStart = `${g}px`, t.style.insetInlineEnd = `${c > h ? h : c}px`;
|
|
764
|
+
} else if (w === "top-end" || w === "bottom-end") {
|
|
765
|
+
const c = g - v;
|
|
766
|
+
t.style.insetInlineStart = `${s - v}px`, t.style.insetInlineEnd = `${c < 0 ? 0 : c}px`;
|
|
767
767
|
}
|
|
768
|
-
if (
|
|
769
|
-
const c = s +
|
|
768
|
+
if (w != null && w.startsWith("right")) {
|
|
769
|
+
const c = s + v;
|
|
770
770
|
t.style.insetInlineStart = `calc(${s}px + ${e})`, t.style.insetInlineEnd = `calc(${c > h ? h : c}px + ${e})`;
|
|
771
|
-
} else if (
|
|
772
|
-
const c =
|
|
771
|
+
} else if (w != null && w.startsWith("left")) {
|
|
772
|
+
const c = g - v;
|
|
773
773
|
t.style.insetInlineStart = `calc(${c < 0 ? 0 : c}px - ${e})`, t.style.insetInlineEnd = `calc(${s}px - ${e})`;
|
|
774
|
-
} else if (
|
|
775
|
-
const c = i -
|
|
774
|
+
} else if (w != null && w.startsWith("top")) {
|
|
775
|
+
const c = i - p;
|
|
776
776
|
t.style.insetBlockStart = `calc(${c < 0 ? 0 : c}px - ${e})`, t.style.insetBlockEnd = `calc(${T}px - ${e})`;
|
|
777
|
-
} else if (
|
|
778
|
-
const c = T +
|
|
779
|
-
t.style.insetBlockStart = `calc(${T}px + ${e})`, t.style.insetBlockEnd = `calc(${c >
|
|
777
|
+
} else if (w != null && w.startsWith("bottom")) {
|
|
778
|
+
const c = T + p;
|
|
779
|
+
t.style.insetBlockStart = `calc(${T}px + ${e})`, t.style.insetBlockEnd = `calc(${c > r ? r : c}px + ${e})`;
|
|
780
780
|
}
|
|
781
|
-
t.style.position = "fixed", t.dataset.correctedPlacement =
|
|
782
|
-
},
|
|
781
|
+
t.style.position = "fixed", t.dataset.correctedPlacement = w;
|
|
782
|
+
}, it = ["id", "data-width"], ot = /* @__PURE__ */ G({
|
|
783
783
|
__name: "custom-select-dropdown",
|
|
784
784
|
props: {
|
|
785
785
|
width: { default: "fixed" },
|
|
@@ -790,19 +790,19 @@ const xa = (t) => {
|
|
|
790
790
|
autofocus: { type: [Boolean, String] }
|
|
791
791
|
},
|
|
792
792
|
setup(t) {
|
|
793
|
-
const a = t,
|
|
794
|
-
return (e, i) => (
|
|
793
|
+
const a = t, o = d(null);
|
|
794
|
+
return (e, i) => (m(), S("article", {
|
|
795
795
|
"data-spacing": "none",
|
|
796
796
|
ref_key: "_ref",
|
|
797
|
-
ref:
|
|
797
|
+
ref: o,
|
|
798
798
|
id: e.id,
|
|
799
|
-
class:
|
|
799
|
+
class: P(n(q)("db-custom-select-dropdown db-card", a.class)),
|
|
800
800
|
"data-width": e.width
|
|
801
801
|
}, [
|
|
802
802
|
A(e.$slots, "default")
|
|
803
|
-
], 10,
|
|
803
|
+
], 10, it));
|
|
804
804
|
}
|
|
805
|
-
}), lt = ["id", "data-divider"],
|
|
805
|
+
}), lt = ["id", "data-divider"], nt = ["data-icon", "data-show-icon", "data-icon-trailing"], st = ["type", "name", "form", "checked", "disabled", "value"], dt = { key: 1 }, ut = /* @__PURE__ */ G({
|
|
806
806
|
__name: "custom-select-list-item",
|
|
807
807
|
props: {
|
|
808
808
|
groupTitle: { default: void 0 },
|
|
@@ -826,9 +826,9 @@ const xa = (t) => {
|
|
|
826
826
|
},
|
|
827
827
|
emits: ["update:checked"],
|
|
828
828
|
setup(t, { emit: a }) {
|
|
829
|
-
const
|
|
829
|
+
const o = a, e = t, i = d(void 0), u = d(!1), f = d(null);
|
|
830
830
|
Y(() => {
|
|
831
|
-
i.value = e.id ?? `custom-select-list-item-${
|
|
831
|
+
i.value = e.id ?? `custom-select-list-item-${Q()}`;
|
|
832
832
|
}), D(
|
|
833
833
|
() => [e.isGroupTitle, e.showDivider],
|
|
834
834
|
() => {
|
|
@@ -839,30 +839,30 @@ const xa = (t) => {
|
|
|
839
839
|
flush: "post"
|
|
840
840
|
}
|
|
841
841
|
);
|
|
842
|
-
function
|
|
843
|
-
s.stopPropagation(), e.onChange && e.onChange(s), de(
|
|
842
|
+
function p(s) {
|
|
843
|
+
s.stopPropagation(), e.onChange && e.onChange(s), de(o, s, "checked");
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function v() {
|
|
846
846
|
if (!(e.isGroupTitle || e.type === "checkbox"))
|
|
847
|
-
return
|
|
847
|
+
return V(e.checked, "checked") ? "check" : "x_placeholder";
|
|
848
848
|
}
|
|
849
|
-
return (s,
|
|
849
|
+
return (s, g) => (m(), S("li", {
|
|
850
850
|
ref_key: "_ref",
|
|
851
851
|
ref: f,
|
|
852
852
|
id: i.value,
|
|
853
|
-
class:
|
|
853
|
+
class: P(
|
|
854
854
|
n(q)("db-custom-select-list-item", e.class, {
|
|
855
855
|
"db-checkbox": s.type === "checkbox" && !s.isGroupTitle,
|
|
856
856
|
"db-radio": s.type !== "checkbox" && !s.isGroupTitle
|
|
857
857
|
})
|
|
858
858
|
),
|
|
859
|
-
"data-divider": n(
|
|
859
|
+
"data-divider": n(R)(u.value)
|
|
860
860
|
}, [
|
|
861
|
-
s.isGroupTitle ? (
|
|
861
|
+
s.isGroupTitle ? (m(), S("span", dt, $(s.groupTitle), 1)) : (m(), S("label", {
|
|
862
862
|
key: 0,
|
|
863
863
|
"data-icon": s.type !== "checkbox" && s.icon ? s.icon : void 0,
|
|
864
|
-
"data-show-icon": n(
|
|
865
|
-
"data-icon-trailing":
|
|
864
|
+
"data-show-icon": n(R)(s.showIcon),
|
|
865
|
+
"data-icon-trailing": v()
|
|
866
866
|
}, [
|
|
867
867
|
_("input", {
|
|
868
868
|
class: "db-custom-select-list-item-checkbox",
|
|
@@ -870,18 +870,18 @@ const xa = (t) => {
|
|
|
870
870
|
type: s.type,
|
|
871
871
|
name: s.name,
|
|
872
872
|
form: s.name,
|
|
873
|
-
checked: n(
|
|
874
|
-
disabled: n(
|
|
873
|
+
checked: n(V)(s.checked, "checked"),
|
|
874
|
+
disabled: n(V)(s.disabled, "disabled"),
|
|
875
875
|
value: s.value,
|
|
876
|
-
onChange:
|
|
877
|
-
}, null, 40,
|
|
878
|
-
s.label ? (
|
|
879
|
-
N(
|
|
876
|
+
onChange: g[0] || (g[0] = async (T) => p(T))
|
|
877
|
+
}, null, 40, st),
|
|
878
|
+
s.label ? (m(), S(W, { key: 0 }, [
|
|
879
|
+
N($(s.label), 1)
|
|
880
880
|
], 64)) : A(s.$slots, "default", { key: 1 })
|
|
881
|
-
], 8,
|
|
881
|
+
], 8, nt))
|
|
882
882
|
], 10, lt));
|
|
883
883
|
}
|
|
884
|
-
}),
|
|
884
|
+
}), rt = ["role", "aria-label", "id"], ct = /* @__PURE__ */ G({
|
|
885
885
|
__name: "custom-select-list",
|
|
886
886
|
props: {
|
|
887
887
|
label: { default: void 0 },
|
|
@@ -893,24 +893,24 @@ const xa = (t) => {
|
|
|
893
893
|
autofocus: { type: [Boolean, String] }
|
|
894
894
|
},
|
|
895
895
|
setup(t) {
|
|
896
|
-
const a = t,
|
|
897
|
-
return (e, i) => (
|
|
896
|
+
const a = t, o = d(null);
|
|
897
|
+
return (e, i) => (m(), S("div", {
|
|
898
898
|
role: e.multiple ? "group" : "radiogroup",
|
|
899
899
|
"aria-label": e.label,
|
|
900
900
|
ref_key: "_ref",
|
|
901
|
-
ref:
|
|
901
|
+
ref: o,
|
|
902
902
|
id: e.id,
|
|
903
|
-
class:
|
|
903
|
+
class: P(n(q)("db-custom-select-list", a.class))
|
|
904
904
|
}, [
|
|
905
905
|
_("ul", null, [
|
|
906
906
|
A(e.$slots, "default")
|
|
907
907
|
])
|
|
908
|
-
], 10,
|
|
908
|
+
], 10, rt));
|
|
909
909
|
}
|
|
910
|
-
}),
|
|
910
|
+
}), vt = ["data-variant", "data-hide-label", "data-show-icon", "data-icon", "data-icon-trailing", "data-hide-asterisk", "data-show-icon-trailing"], ft = ["for"], pt = ["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", "list", "aria-describedby"], ht = ["id"], gt = ["value"], mt = {
|
|
911
911
|
"data-visually-hidden": "true",
|
|
912
912
|
role: "status"
|
|
913
|
-
},
|
|
913
|
+
}, bt = /* @__PURE__ */ G({
|
|
914
914
|
__name: "input",
|
|
915
915
|
props: {
|
|
916
916
|
dataList: { default: void 0 },
|
|
@@ -969,15 +969,15 @@ const xa = (t) => {
|
|
|
969
969
|
},
|
|
970
970
|
emits: ["update:value"],
|
|
971
971
|
setup(t, { emit: a }) {
|
|
972
|
-
const
|
|
972
|
+
const o = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(void 0), T = d(void 0), w = d(""), h = d(null);
|
|
973
973
|
Y(() => {
|
|
974
|
-
const y = e.id ?? `input-${
|
|
975
|
-
i.value = y, u.value = y +
|
|
974
|
+
const y = e.id ?? `input-${Q()}`;
|
|
975
|
+
i.value = y, u.value = y + fe, f.value = y + pe, p.value = y + he, s.value = y + xe, v.value = e.invalidMessage || te;
|
|
976
976
|
}), D(
|
|
977
977
|
() => [h.value, e.invalidMessage],
|
|
978
978
|
() => {
|
|
979
979
|
var y;
|
|
980
|
-
|
|
980
|
+
v.value = e.invalidMessage || ((y = h.value) == null ? void 0 : y.validationMessage) || te;
|
|
981
981
|
},
|
|
982
982
|
{
|
|
983
983
|
immediate: !0,
|
|
@@ -987,8 +987,8 @@ const xa = (t) => {
|
|
|
987
987
|
() => [i.value],
|
|
988
988
|
() => {
|
|
989
989
|
if (i.value) {
|
|
990
|
-
const y = i.value +
|
|
991
|
-
u.value = y, f.value = i.value +
|
|
990
|
+
const y = i.value + fe;
|
|
991
|
+
u.value = y, f.value = i.value + pe, p.value = i.value + he, s.value = e.dataListId ?? i.value + xe, x(e.message, e.showMessage) && (g.value = y), c();
|
|
992
992
|
}
|
|
993
993
|
},
|
|
994
994
|
{
|
|
@@ -1005,45 +1005,45 @@ const xa = (t) => {
|
|
|
1005
1005
|
flush: "post"
|
|
1006
1006
|
}
|
|
1007
1007
|
);
|
|
1008
|
-
function
|
|
1008
|
+
function r() {
|
|
1009
1009
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1010
1010
|
}
|
|
1011
1011
|
function c() {
|
|
1012
|
-
var y,
|
|
1013
|
-
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (
|
|
1012
|
+
var y, X, B;
|
|
1013
|
+
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (g.value = p.value, v.value = e.invalidMessage || ((X = h.value) == null ? void 0 : X.validationMessage) || te, me() && (w.value = v.value, Z(() => w.value = "", 1e3))) : r() && ((B = h.value) != null && B.validity.valid) && (e.required || e.minLength || e.maxLength || e.pattern) ? (g.value = f.value, me() && (w.value = e.validMessage ?? ge, Z(() => w.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = u.value : g.value = void 0;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
e.input && e.input(y), T.value = y.target.value, e.onInput && e.onInput(y), de(
|
|
1015
|
+
function L(y) {
|
|
1016
|
+
e.input && e.input(y), T.value = y.target.value, e.onInput && e.onInput(y), de(o, y), c();
|
|
1017
1017
|
}
|
|
1018
1018
|
function C(y) {
|
|
1019
|
-
e.onChange && e.onChange(y), de(
|
|
1019
|
+
e.onChange && e.onChange(y), de(o, y), c();
|
|
1020
1020
|
}
|
|
1021
1021
|
function b(y) {
|
|
1022
1022
|
e.onBlur && e.onBlur(y);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function k(y) {
|
|
1025
1025
|
e.onFocus && e.onFocus(y);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function F() {
|
|
1028
1028
|
const y = e.dataList;
|
|
1029
1029
|
return Array.from(
|
|
1030
|
-
(
|
|
1031
|
-
value:
|
|
1030
|
+
(Va(y) ? y == null ? void 0 : y.map((X) => ({
|
|
1031
|
+
value: X,
|
|
1032
1032
|
label: void 0
|
|
1033
1033
|
})) : y) || []
|
|
1034
1034
|
);
|
|
1035
1035
|
}
|
|
1036
|
-
return (y,
|
|
1037
|
-
class:
|
|
1036
|
+
return (y, X) => (m(), S("div", {
|
|
1037
|
+
class: P(n(q)("db-input", e.class)),
|
|
1038
1038
|
"data-variant": y.variant,
|
|
1039
1039
|
"data-hide-label": n(ie)(y.showLabel),
|
|
1040
|
-
"data-show-icon": n(
|
|
1040
|
+
"data-show-icon": n(R)(y.showIconLeading ?? y.showIcon),
|
|
1041
1041
|
"data-icon": y.iconLeading ?? y.icon,
|
|
1042
1042
|
"data-icon-trailing": y.iconTrailing,
|
|
1043
1043
|
"data-hide-asterisk": n(ie)(y.showRequiredAsterisk),
|
|
1044
|
-
"data-show-icon-trailing": n(
|
|
1044
|
+
"data-show-icon-trailing": n(R)(y.showIconTrailing)
|
|
1045
1045
|
}, [
|
|
1046
|
-
_("label", { for: i.value },
|
|
1046
|
+
_("label", { for: i.value }, $(y.label ?? n(we)), 9, ft),
|
|
1047
1047
|
_("input", {
|
|
1048
1048
|
"aria-invalid": y.validation === "invalid",
|
|
1049
1049
|
"data-custom-validity": y.validation,
|
|
@@ -1053,75 +1053,75 @@ const xa = (t) => {
|
|
|
1053
1053
|
id: i.value,
|
|
1054
1054
|
name: y.name,
|
|
1055
1055
|
type: y.type || "text",
|
|
1056
|
-
multiple: n(
|
|
1057
|
-
placeholder: y.placeholder ?? n(
|
|
1058
|
-
disabled: n(
|
|
1059
|
-
required: n(
|
|
1060
|
-
step: n(
|
|
1056
|
+
multiple: n(V)(y.multiple, "multiple"),
|
|
1057
|
+
placeholder: y.placeholder ?? n(ta),
|
|
1058
|
+
disabled: n(V)(y.disabled, "disabled"),
|
|
1059
|
+
required: n(V)(y.required, "required"),
|
|
1060
|
+
step: n(ke)(y.step),
|
|
1061
1061
|
value: y.value ?? T.value,
|
|
1062
|
-
maxLength: n(
|
|
1063
|
-
minLength: n(
|
|
1064
|
-
max: n(
|
|
1065
|
-
min: n(
|
|
1066
|
-
readOnly: n(
|
|
1062
|
+
maxLength: n(ke)(y.maxLength, y.maxlength),
|
|
1063
|
+
minLength: n(ke)(y.minLength, y.minlength),
|
|
1064
|
+
max: n(ea)(y.max, y.type),
|
|
1065
|
+
min: n(ea)(y.min, y.type),
|
|
1066
|
+
readOnly: n(V)(y.readOnly, "readOnly") || n(V)(y.readonly, "readonly"),
|
|
1067
1067
|
form: y.form,
|
|
1068
1068
|
pattern: y.pattern,
|
|
1069
1069
|
size: y.size,
|
|
1070
1070
|
autoComplete: y.autocomplete,
|
|
1071
|
-
autoFocus: n(
|
|
1072
|
-
onInput:
|
|
1073
|
-
onChange:
|
|
1074
|
-
onBlur:
|
|
1075
|
-
onFocus:
|
|
1071
|
+
autoFocus: n(V)(y.autofocus, "autofocus"),
|
|
1072
|
+
onInput: X[0] || (X[0] = async (B) => L(B)),
|
|
1073
|
+
onChange: X[1] || (X[1] = async (B) => C(B)),
|
|
1074
|
+
onBlur: X[2] || (X[2] = async (B) => b(B)),
|
|
1075
|
+
onFocus: X[3] || (X[3] = async (B) => k(B)),
|
|
1076
1076
|
list: y.dataList && s.value,
|
|
1077
|
-
"aria-describedby": y.ariaDescribedBy ??
|
|
1078
|
-
}, null, 40,
|
|
1079
|
-
y.dataList ? (
|
|
1077
|
+
"aria-describedby": y.ariaDescribedBy ?? g.value
|
|
1078
|
+
}, null, 40, pt),
|
|
1079
|
+
y.dataList ? (m(), S("datalist", {
|
|
1080
1080
|
key: 0,
|
|
1081
1081
|
id: s.value
|
|
1082
1082
|
}, [
|
|
1083
|
-
(
|
|
1084
|
-
key: s.value + "-option-" +
|
|
1085
|
-
value:
|
|
1086
|
-
},
|
|
1087
|
-
], 8,
|
|
1083
|
+
(m(!0), S(W, null, ye(F(), (B) => (m(), S("option", {
|
|
1084
|
+
key: s.value + "-option-" + B.value,
|
|
1085
|
+
value: B.value
|
|
1086
|
+
}, $(B.label), 9, gt))), 128))
|
|
1087
|
+
], 8, ht)) : U("", !0),
|
|
1088
1088
|
A(y.$slots, "default"),
|
|
1089
|
-
n(x)(y.message, y.showMessage) ? (
|
|
1089
|
+
n(x)(y.message, y.showMessage) ? (m(), J(ae, {
|
|
1090
1090
|
key: 1,
|
|
1091
1091
|
size: "small",
|
|
1092
1092
|
icon: y.messageIcon,
|
|
1093
1093
|
id: u.value
|
|
1094
1094
|
}, {
|
|
1095
|
-
default:
|
|
1096
|
-
N(
|
|
1095
|
+
default: H(() => [
|
|
1096
|
+
N($(y.message), 1)
|
|
1097
1097
|
]),
|
|
1098
1098
|
_: 1
|
|
1099
|
-
}, 8, ["icon", "id"])) :
|
|
1100
|
-
|
|
1099
|
+
}, 8, ["icon", "id"])) : U("", !0),
|
|
1100
|
+
r() ? (m(), J(ae, {
|
|
1101
1101
|
key: 2,
|
|
1102
1102
|
size: "small",
|
|
1103
1103
|
semantic: "successful",
|
|
1104
1104
|
id: f.value
|
|
1105
1105
|
}, {
|
|
1106
|
-
default:
|
|
1107
|
-
N(
|
|
1106
|
+
default: H(() => [
|
|
1107
|
+
N($(y.validMessage || n(ge)), 1)
|
|
1108
1108
|
]),
|
|
1109
1109
|
_: 1
|
|
1110
|
-
}, 8, ["id"])) :
|
|
1110
|
+
}, 8, ["id"])) : U("", !0),
|
|
1111
1111
|
ee(ae, {
|
|
1112
1112
|
size: "small",
|
|
1113
1113
|
semantic: "critical",
|
|
1114
|
-
id:
|
|
1114
|
+
id: p.value
|
|
1115
1115
|
}, {
|
|
1116
|
-
default:
|
|
1117
|
-
N(
|
|
1116
|
+
default: H(() => [
|
|
1117
|
+
N($(v.value), 1)
|
|
1118
1118
|
]),
|
|
1119
1119
|
_: 1
|
|
1120
1120
|
}, 8, ["id"]),
|
|
1121
|
-
_("span",
|
|
1122
|
-
], 10,
|
|
1121
|
+
_("span", mt, $(w.value), 1)
|
|
1122
|
+
], 10, vt));
|
|
1123
1123
|
}
|
|
1124
|
-
}),
|
|
1124
|
+
}), yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ca = /* @__PURE__ */ G({
|
|
1125
1125
|
__name: "tooltip",
|
|
1126
1126
|
props: {
|
|
1127
1127
|
showArrow: { type: [Boolean, String], default: void 0 },
|
|
@@ -1138,21 +1138,21 @@ const xa = (t) => {
|
|
|
1138
1138
|
width: { default: void 0 }
|
|
1139
1139
|
},
|
|
1140
1140
|
setup(t) {
|
|
1141
|
-
const a = t,
|
|
1141
|
+
const a = t, o = d(Te), e = d(!1), i = d(void 0), u = d(void 0), f = d(null);
|
|
1142
1142
|
Y(() => {
|
|
1143
|
-
|
|
1143
|
+
o.value = a.id || "tooltip-" + Q(), e.value = !0;
|
|
1144
1144
|
}), D(
|
|
1145
1145
|
() => [f.value, e.value],
|
|
1146
1146
|
() => {
|
|
1147
|
-
if (f.value && e.value &&
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
}),
|
|
1152
|
-
|
|
1153
|
-
}),
|
|
1154
|
-
const
|
|
1155
|
-
|
|
1147
|
+
if (f.value && e.value && o.value) {
|
|
1148
|
+
const r = s();
|
|
1149
|
+
r && (["mouseenter", "focusin"].forEach((c) => {
|
|
1150
|
+
r.addEventListener(c, () => h(r));
|
|
1151
|
+
}), r.addEventListener("keydown", (c) => v(c)), ["mouseleave", "focusout"].forEach((c) => {
|
|
1152
|
+
r.addEventListener(c, () => w());
|
|
1153
|
+
}), r.dataset.hasTooltip = "true", a.variant === "label" ? r.setAttribute("aria-labelledby", o.value) : r.setAttribute("aria-describedby", o.value)), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((c) => {
|
|
1154
|
+
const L = c.find(({ target: C }) => C === s());
|
|
1155
|
+
L && !L.isIntersecting && v(!1);
|
|
1156
1156
|
})), e.value = !1;
|
|
1157
1157
|
}
|
|
1158
1158
|
},
|
|
@@ -1161,61 +1161,61 @@ const xa = (t) => {
|
|
|
1161
1161
|
flush: "post"
|
|
1162
1162
|
}
|
|
1163
1163
|
);
|
|
1164
|
-
function
|
|
1165
|
-
|
|
1164
|
+
function p(r) {
|
|
1165
|
+
r.stopPropagation();
|
|
1166
1166
|
}
|
|
1167
|
-
function r
|
|
1168
|
-
(!
|
|
1167
|
+
function v(r) {
|
|
1168
|
+
(!r || r.key === "Escape") && f.value && getComputedStyle(f.value).visibility === "visible" && s().blur();
|
|
1169
1169
|
}
|
|
1170
1170
|
function s() {
|
|
1171
|
-
let
|
|
1172
|
-
return
|
|
1171
|
+
let r = f.value.parentElement;
|
|
1172
|
+
return r && r.localName.includes("tooltip") && (r = r.parentElement), r;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1175
|
-
|
|
1176
|
-
|
|
1174
|
+
function g(r) {
|
|
1175
|
+
r && f.value && Z(() => {
|
|
1176
|
+
ra(
|
|
1177
1177
|
f.value,
|
|
1178
|
-
|
|
1178
|
+
r,
|
|
1179
1179
|
a.placement ?? "bottom"
|
|
1180
1180
|
);
|
|
1181
1181
|
}, 1);
|
|
1182
1182
|
}
|
|
1183
|
-
function T(
|
|
1184
|
-
var
|
|
1185
|
-
(
|
|
1183
|
+
function T(r, c) {
|
|
1184
|
+
var L, C;
|
|
1185
|
+
(L = r == null ? void 0 : r.target) != null && L.contains && ((C = r == null ? void 0 : r.target) != null && C.contains(f.value)) && g(c);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
var
|
|
1189
|
-
i.value && new
|
|
1187
|
+
function w() {
|
|
1188
|
+
var r;
|
|
1189
|
+
i.value && new Be().removeCallback(
|
|
1190
1190
|
i.value
|
|
1191
|
-
), (
|
|
1191
|
+
), (r = u.value) == null || r.unobserve(s());
|
|
1192
1192
|
}
|
|
1193
|
-
function h(
|
|
1193
|
+
function h(r) {
|
|
1194
1194
|
var c;
|
|
1195
|
-
i.value = new
|
|
1196
|
-
(
|
|
1197
|
-
),
|
|
1195
|
+
i.value = new Be().addCallback(
|
|
1196
|
+
(L) => T(L, r)
|
|
1197
|
+
), g(r), (c = u.value) == null || c.observe(s());
|
|
1198
1198
|
}
|
|
1199
|
-
return (
|
|
1199
|
+
return (r, c) => (m(), S("i", {
|
|
1200
1200
|
role: "tooltip",
|
|
1201
1201
|
"aria-hidden": "true",
|
|
1202
1202
|
"data-gap": "true",
|
|
1203
1203
|
ref_key: "_ref",
|
|
1204
1204
|
ref: f,
|
|
1205
|
-
class:
|
|
1206
|
-
id:
|
|
1207
|
-
"data-emphasis":
|
|
1208
|
-
"data-animation": n(
|
|
1209
|
-
"data-delay":
|
|
1210
|
-
"data-width":
|
|
1211
|
-
"data-show-arrow": n(
|
|
1212
|
-
"data-placement":
|
|
1213
|
-
onClick: c[0] || (c[0] = async (
|
|
1205
|
+
class: P(n(q)("db-tooltip", a.class)),
|
|
1206
|
+
id: o.value,
|
|
1207
|
+
"data-emphasis": r.emphasis,
|
|
1208
|
+
"data-animation": n(R)(r.animation ?? !0),
|
|
1209
|
+
"data-delay": r.delay,
|
|
1210
|
+
"data-width": r.width,
|
|
1211
|
+
"data-show-arrow": n(R)(r.showArrow ?? !0),
|
|
1212
|
+
"data-placement": r.placement,
|
|
1213
|
+
onClick: c[0] || (c[0] = async (L) => p(L))
|
|
1214
1214
|
}, [
|
|
1215
|
-
A(
|
|
1216
|
-
], 10,
|
|
1215
|
+
A(r.$slots, "default")
|
|
1216
|
+
], 10, yt));
|
|
1217
1217
|
}
|
|
1218
|
-
}),
|
|
1218
|
+
}), wt = ["id", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-show-icon", "data-no-text", "data-overflow"], kt = /* @__PURE__ */ G({
|
|
1219
1219
|
__name: "tag",
|
|
1220
1220
|
props: {
|
|
1221
1221
|
behavior: { default: void 0 },
|
|
@@ -1239,32 +1239,32 @@ const xa = (t) => {
|
|
|
1239
1239
|
remove: {}
|
|
1240
1240
|
},
|
|
1241
1241
|
setup(t) {
|
|
1242
|
-
const a = t,
|
|
1242
|
+
const a = t, o = d(null);
|
|
1243
1243
|
function e(u) {
|
|
1244
1244
|
u && (u.stopPropagation(), a.onRemove && a.onRemove(u));
|
|
1245
1245
|
}
|
|
1246
1246
|
function i() {
|
|
1247
|
-
return a.removeButton ? a.removeButton :
|
|
1247
|
+
return a.removeButton ? a.removeButton : ia;
|
|
1248
1248
|
}
|
|
1249
|
-
return (u, f) => (
|
|
1249
|
+
return (u, f) => (m(), S("div", {
|
|
1250
1250
|
ref_key: "_ref",
|
|
1251
|
-
ref:
|
|
1251
|
+
ref: o,
|
|
1252
1252
|
id: u.id,
|
|
1253
|
-
class:
|
|
1253
|
+
class: P(n(q)("db-tag", a.class)),
|
|
1254
1254
|
"data-semantic": u.semantic,
|
|
1255
1255
|
"data-emphasis": u.emphasis,
|
|
1256
1256
|
"data-icon": u.icon,
|
|
1257
|
-
"data-show-check-state": n(
|
|
1258
|
-
"data-show-icon": n(
|
|
1259
|
-
"data-no-text": n(
|
|
1260
|
-
"data-overflow": n(
|
|
1257
|
+
"data-show-check-state": n(R)(u.showCheckState ?? !0),
|
|
1258
|
+
"data-show-icon": n(R)(u.showIcon),
|
|
1259
|
+
"data-no-text": n(R)(u.noText),
|
|
1260
|
+
"data-overflow": n(R)(u.overflow)
|
|
1261
1261
|
}, [
|
|
1262
1262
|
A(u.$slots, "content"),
|
|
1263
1263
|
A(u.$slots, "default"),
|
|
1264
|
-
u.text ? (
|
|
1265
|
-
N(
|
|
1266
|
-
], 64)) :
|
|
1267
|
-
u.behavior === "removable" ? (
|
|
1264
|
+
u.text ? (m(), S(W, { key: 0 }, [
|
|
1265
|
+
N($(u.text), 1)
|
|
1266
|
+
], 64)) : U("", !0),
|
|
1267
|
+
u.behavior === "removable" ? (m(), S("button", {
|
|
1268
1268
|
key: 1,
|
|
1269
1269
|
class: "db-button db-tab-remove-button",
|
|
1270
1270
|
"data-icon": "cross",
|
|
@@ -1272,21 +1272,21 @@ const xa = (t) => {
|
|
|
1272
1272
|
"data-no-text": "true",
|
|
1273
1273
|
"data-variant": "ghost",
|
|
1274
1274
|
type: "button",
|
|
1275
|
-
onClick: f[0] || (f[0] = async (
|
|
1275
|
+
onClick: f[0] || (f[0] = async (p) => e(p))
|
|
1276
1276
|
}, [
|
|
1277
|
-
ee(
|
|
1278
|
-
default:
|
|
1279
|
-
N(
|
|
1277
|
+
ee(ca, { variant: "label" }, {
|
|
1278
|
+
default: H(() => [
|
|
1279
|
+
N($(i()), 1)
|
|
1280
1280
|
]),
|
|
1281
1281
|
_: 1
|
|
1282
1282
|
})
|
|
1283
|
-
])) :
|
|
1284
|
-
], 10,
|
|
1283
|
+
])) : U("", !0)
|
|
1284
|
+
], 10, wt));
|
|
1285
1285
|
}
|
|
1286
|
-
}),
|
|
1286
|
+
}), St = ["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"], Bt = ["id"], Lt = ["id", "form", "name", "multiple", "disabled", "required"], It = ["disabled", "value"], $t = ["open"], Tt = ["id", "aria-disabled", "aria-labelledby"], _t = ["data-visually-hidden", "id"], Ct = { key: 1 }, Et = { key: 0 }, At = { key: 0 }, Dt = { class: "db-checkbox db-custom-select-list-item" }, Nt = ["form", "checked"], Ft = ["aria-hidden", "id"], Mt = {
|
|
1287
1287
|
"data-visually-hidden": "true",
|
|
1288
1288
|
role: "status"
|
|
1289
|
-
},
|
|
1289
|
+
}, mo = /* @__PURE__ */ G({
|
|
1290
1290
|
__name: "custom-select",
|
|
1291
1291
|
props: {
|
|
1292
1292
|
children: { default: void 0 },
|
|
@@ -1351,21 +1351,21 @@ const xa = (t) => {
|
|
|
1351
1351
|
},
|
|
1352
1352
|
emits: ["update:values"],
|
|
1353
1353
|
setup(t, { emit: a }) {
|
|
1354
|
-
const
|
|
1354
|
+
const o = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(void 0), T = d(void 0), w = d(void 0), h = d(void 0), r = d("no-validation"), c = d(!1), L = d(void 0), C = d(""), b = d(void 0), k = d(""), F = d([]), y = d(!1), X = d(!1), B = d(0), M = d([]), oe = d([]), K = d(!1), _e = d(void 0), Le = d(0), Ce = d(void 0), Ve = d(void 0), Pe = d(void 0), qe = d(!1), Ee = d(!1), va = d(null), z = d(null), ve = d(null), Fe = d(null), Ue = d(null);
|
|
1355
1355
|
Y(() => {
|
|
1356
|
-
const
|
|
1357
|
-
i.value =
|
|
1358
|
-
if (
|
|
1359
|
-
const E =
|
|
1360
|
-
E && !E.isIntersecting &&
|
|
1356
|
+
const l = e.id ?? `custom-select-${Q()}`;
|
|
1357
|
+
i.value = l, u.value = l + fe, f.value = l + pe, p.value = l + he, s.value = l + Ze, g.value = l + Qe, T.value = l + "-summary", w.value = l + Re, b.value = l + "-selected-labels", h.value = l + "-info", v.value = e.invalidMessage || te, typeof window < "u" && "IntersectionObserver" in window && (Ve.value = new IntersectionObserver((I) => {
|
|
1358
|
+
if (z.value) {
|
|
1359
|
+
const E = I.find(({ target: j }) => j === z.value);
|
|
1360
|
+
E && !E.isIntersecting && z.value.open && (z.value.open = !1);
|
|
1361
1361
|
}
|
|
1362
1362
|
}));
|
|
1363
1363
|
}), D(
|
|
1364
|
-
() => [
|
|
1364
|
+
() => [z.value],
|
|
1365
1365
|
() => {
|
|
1366
|
-
|
|
1366
|
+
z.value && z.value.addEventListener(
|
|
1367
1367
|
"focusout",
|
|
1368
|
-
(
|
|
1368
|
+
(l) => Ae(l)
|
|
1369
1369
|
);
|
|
1370
1370
|
},
|
|
1371
1371
|
{
|
|
@@ -1376,8 +1376,8 @@ const xa = (t) => {
|
|
|
1376
1376
|
() => [i.value],
|
|
1377
1377
|
() => {
|
|
1378
1378
|
if (i.value) {
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1379
|
+
const l = i.value + fe;
|
|
1380
|
+
g.value = i.value + Qe, s.value = i.value + Ze, f.value = i.value + pe, p.value = i.value + he, w.value = i.value + Re, x(e.message, e.showMessage) ? He(l) : He();
|
|
1381
1381
|
}
|
|
1382
1382
|
},
|
|
1383
1383
|
{
|
|
@@ -1385,13 +1385,13 @@ const xa = (t) => {
|
|
|
1385
1385
|
flush: "post"
|
|
1386
1386
|
}
|
|
1387
1387
|
), D(
|
|
1388
|
-
() => [
|
|
1388
|
+
() => [z.value, L.value],
|
|
1389
1389
|
() => {
|
|
1390
|
-
if (
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1390
|
+
if (z.value) {
|
|
1391
|
+
const l = z.value.querySelector("summary");
|
|
1392
|
+
l && l.setAttribute(
|
|
1393
1393
|
"aria-describedby",
|
|
1394
|
-
e.ariaDescribedBy ?? (
|
|
1394
|
+
e.ariaDescribedBy ?? (L.value || "")
|
|
1395
1395
|
);
|
|
1396
1396
|
}
|
|
1397
1397
|
},
|
|
@@ -1400,27 +1400,27 @@ const xa = (t) => {
|
|
|
1400
1400
|
flush: "post"
|
|
1401
1401
|
}
|
|
1402
1402
|
), D(
|
|
1403
|
-
() => [e.showNoResults,
|
|
1403
|
+
() => [e.showNoResults, e.showLoading, oe.value],
|
|
1404
1404
|
() => {
|
|
1405
|
-
e.showNoResults !== void 0 ?
|
|
1405
|
+
e.showNoResults !== void 0 ? K.value = e.showNoResults : oe.value && (K.value = oe.value.length === 0);
|
|
1406
1406
|
},
|
|
1407
1407
|
{
|
|
1408
1408
|
immediate: !0,
|
|
1409
1409
|
flush: "post"
|
|
1410
1410
|
}
|
|
1411
1411
|
), D(
|
|
1412
|
-
() => [e.showSelectAll,
|
|
1412
|
+
() => [e.showSelectAll, B.value, e.multiple],
|
|
1413
1413
|
() => {
|
|
1414
|
-
|
|
1414
|
+
y.value = !!(e.multiple && (e.showSelectAll ?? B.value > 5));
|
|
1415
1415
|
},
|
|
1416
1416
|
{
|
|
1417
1417
|
immediate: !0,
|
|
1418
1418
|
flush: "post"
|
|
1419
1419
|
}
|
|
1420
1420
|
), D(
|
|
1421
|
-
() => [e.showSearch,
|
|
1421
|
+
() => [e.showSearch, B.value],
|
|
1422
1422
|
() => {
|
|
1423
|
-
|
|
1423
|
+
X.value = e.showSearch ?? B.value > 9;
|
|
1424
1424
|
},
|
|
1425
1425
|
{
|
|
1426
1426
|
immediate: !0,
|
|
@@ -1429,16 +1429,16 @@ const xa = (t) => {
|
|
|
1429
1429
|
), D(
|
|
1430
1430
|
() => [e.values],
|
|
1431
1431
|
() => {
|
|
1432
|
-
e.values && Array.isArray(e.values) && e.values !==
|
|
1432
|
+
e.values && Array.isArray(e.values) && e.values !== M.value && (M.value = e.values ?? []);
|
|
1433
1433
|
},
|
|
1434
1434
|
{
|
|
1435
1435
|
immediate: !0,
|
|
1436
1436
|
flush: "post"
|
|
1437
1437
|
}
|
|
1438
1438
|
), D(
|
|
1439
|
-
() => [
|
|
1439
|
+
() => [M.value, ve.value],
|
|
1440
1440
|
() => {
|
|
1441
|
-
|
|
1441
|
+
ve.value && pa();
|
|
1442
1442
|
},
|
|
1443
1443
|
{
|
|
1444
1444
|
immediate: !0,
|
|
@@ -1447,17 +1447,17 @@ const xa = (t) => {
|
|
|
1447
1447
|
), D(
|
|
1448
1448
|
() => [e.validation],
|
|
1449
1449
|
() => {
|
|
1450
|
-
|
|
1450
|
+
r.value = e.validation;
|
|
1451
1451
|
},
|
|
1452
1452
|
{
|
|
1453
1453
|
immediate: !0,
|
|
1454
1454
|
flush: "post"
|
|
1455
1455
|
}
|
|
1456
1456
|
), D(
|
|
1457
|
-
() => [
|
|
1457
|
+
() => [M.value, B.value],
|
|
1458
1458
|
() => {
|
|
1459
|
-
var
|
|
1460
|
-
((
|
|
1459
|
+
var l, I;
|
|
1460
|
+
((l = M.value) == null ? void 0 : l.length) === 0 ? (qe.value = !1, Ee.value = !1) : ((I = M.value) == null ? void 0 : I.length) === B.value ? (Ee.value = !1, qe.value = !0) : M.value && (Ee.value = !0);
|
|
1461
1461
|
},
|
|
1462
1462
|
{
|
|
1463
1463
|
immediate: !0,
|
|
@@ -1466,8 +1466,8 @@ const xa = (t) => {
|
|
|
1466
1466
|
), D(
|
|
1467
1467
|
() => [e.options],
|
|
1468
1468
|
() => {
|
|
1469
|
-
var
|
|
1470
|
-
|
|
1469
|
+
var l;
|
|
1470
|
+
oe.value = e.options, B.value = ((l = e.options) == null ? void 0 : l.filter((I) => !I.isGroupTitle).length) ?? 0;
|
|
1471
1471
|
},
|
|
1472
1472
|
{
|
|
1473
1473
|
immediate: !0,
|
|
@@ -1476,9 +1476,9 @@ const xa = (t) => {
|
|
|
1476
1476
|
), D(
|
|
1477
1477
|
() => [e.searchValue],
|
|
1478
1478
|
() => {
|
|
1479
|
-
if (
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1479
|
+
if (Pe.value = e.searchValue, e.searchValue) {
|
|
1480
|
+
const l = e.searchValue;
|
|
1481
|
+
Ye(l);
|
|
1482
1482
|
}
|
|
1483
1483
|
},
|
|
1484
1484
|
{
|
|
@@ -1486,13 +1486,13 @@ const xa = (t) => {
|
|
|
1486
1486
|
flush: "post"
|
|
1487
1487
|
}
|
|
1488
1488
|
), D(
|
|
1489
|
-
() => [e.options,
|
|
1489
|
+
() => [e.options, M.value],
|
|
1490
1490
|
() => {
|
|
1491
|
-
var
|
|
1492
|
-
(
|
|
1491
|
+
var l, I;
|
|
1492
|
+
(l = e.options) != null && l.length && (F.value = (I = e.options) == null ? void 0 : I.filter(
|
|
1493
1493
|
(E) => {
|
|
1494
|
-
var j,
|
|
1495
|
-
return !E.value || !((j =
|
|
1494
|
+
var j, le;
|
|
1495
|
+
return !E.value || !((j = M.value) != null && j.includes) ? !1 : !E.isGroupTitle && ((le = M.value) == null ? void 0 : le.includes(E.value));
|
|
1496
1496
|
}
|
|
1497
1497
|
));
|
|
1498
1498
|
},
|
|
@@ -1502,366 +1502,366 @@ const xa = (t) => {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
), D(
|
|
1504
1504
|
() => [
|
|
1505
|
-
|
|
1505
|
+
F.value,
|
|
1506
1506
|
e.selectedType,
|
|
1507
1507
|
e.amountText,
|
|
1508
1508
|
e.selectedLabels,
|
|
1509
1509
|
e.transformSelectedLabels
|
|
1510
1510
|
],
|
|
1511
1511
|
() => {
|
|
1512
|
-
var
|
|
1512
|
+
var l, I, E;
|
|
1513
1513
|
if (e.selectedLabels) {
|
|
1514
|
-
|
|
1514
|
+
C.value = e.selectedLabels;
|
|
1515
1515
|
return;
|
|
1516
1516
|
}
|
|
1517
|
-
if ((
|
|
1517
|
+
if ((l = F.value) != null && l.length) {
|
|
1518
1518
|
if (e.transformSelectedLabels) {
|
|
1519
|
-
const j =
|
|
1520
|
-
|
|
1519
|
+
const j = F.value, le = e.transformSelectedLabels;
|
|
1520
|
+
C.value = le(j);
|
|
1521
1521
|
return;
|
|
1522
1522
|
}
|
|
1523
|
-
e.selectedType === "amount" ?
|
|
1523
|
+
e.selectedType === "amount" ? C.value = e.amountText ? e.amountText : `${(I = F.value) == null ? void 0 : I.length} ${Da}` : C.value = (E = F.value) == null ? void 0 : E.map((j) => Ie(j)).join(", ");
|
|
1524
1524
|
} else
|
|
1525
|
-
|
|
1525
|
+
C.value = "";
|
|
1526
1526
|
},
|
|
1527
1527
|
{
|
|
1528
1528
|
immediate: !0,
|
|
1529
1529
|
flush: "post"
|
|
1530
1530
|
}
|
|
1531
1531
|
), D(
|
|
1532
|
-
() => [
|
|
1532
|
+
() => [F.value],
|
|
1533
1533
|
() => {
|
|
1534
|
-
var
|
|
1535
|
-
e.onAmountChange && e.onAmountChange(((
|
|
1534
|
+
var l;
|
|
1535
|
+
e.onAmountChange && e.onAmountChange(((l = F.value) == null ? void 0 : l.length) ?? 0);
|
|
1536
1536
|
},
|
|
1537
1537
|
{
|
|
1538
1538
|
immediate: !0,
|
|
1539
1539
|
flush: "post"
|
|
1540
1540
|
}
|
|
1541
1541
|
), D(
|
|
1542
|
-
() => [
|
|
1542
|
+
() => [Ee.value, Fe.value],
|
|
1543
1543
|
() => {
|
|
1544
|
-
Fe.value && (Fe.value.indeterminate = !!
|
|
1544
|
+
Fe.value && (Fe.value.indeterminate = !!Ee.value);
|
|
1545
1545
|
},
|
|
1546
1546
|
{
|
|
1547
1547
|
immediate: !0,
|
|
1548
1548
|
flush: "post"
|
|
1549
1549
|
}
|
|
1550
1550
|
), D(
|
|
1551
|
-
() => [
|
|
1551
|
+
() => [ve.value, e.invalidMessage],
|
|
1552
1552
|
() => {
|
|
1553
|
-
var
|
|
1554
|
-
|
|
1553
|
+
var l;
|
|
1554
|
+
v.value = e.invalidMessage || ((l = ve.value) == null ? void 0 : l.validationMessage) || te;
|
|
1555
1555
|
},
|
|
1556
1556
|
{
|
|
1557
1557
|
immediate: !0,
|
|
1558
1558
|
flush: "post"
|
|
1559
1559
|
}
|
|
1560
1560
|
);
|
|
1561
|
-
function
|
|
1562
|
-
var
|
|
1563
|
-
(
|
|
1561
|
+
function fa(l) {
|
|
1562
|
+
var I, E;
|
|
1563
|
+
(I = l == null ? void 0 : l.target) != null && I.contains && ((E = l == null ? void 0 : l.target) != null && E.contains(z.value)) && Ge();
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function Oe() {
|
|
1566
1566
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1569
|
-
var
|
|
1570
|
-
|
|
1571
|
-
}
|
|
1572
|
-
function
|
|
1573
|
-
var
|
|
1574
|
-
e.onDropdownToggle && (
|
|
1575
|
-
(j) =>
|
|
1576
|
-
),
|
|
1577
|
-
(j) =>
|
|
1578
|
-
),
|
|
1579
|
-
|
|
1580
|
-
),
|
|
1581
|
-
|
|
1582
|
-
), (E =
|
|
1583
|
-
}
|
|
1584
|
-
function ha() {
|
|
1585
|
-
var o;
|
|
1586
|
-
return (o = k.value) != null && o.length ? k.value.at(0) ?? "" : "";
|
|
1587
|
-
}
|
|
1588
|
-
function Oe(o) {
|
|
1589
|
-
var E;
|
|
1590
|
-
const $ = [];
|
|
1591
|
-
o && $.push(o), C.value && ((E = I.value) != null && E.length) && $.push(C.value), c.value = $.join(" ");
|
|
1568
|
+
function pa() {
|
|
1569
|
+
var l, I, E;
|
|
1570
|
+
ve.value && (ve.value.value = ga()), !((l = ve.value) != null && l.validity.valid) || e.validation === "invalid" ? (L.value = p.value, v.value = e.invalidMessage || ((I = ve.value) == null ? void 0 : I.validationMessage) || te, me() && (k.value = v.value, Z(() => k.value = "", 1e3)), c.value && (r.value = e.validation ?? "invalid")) : Oe() && ((E = ve.value) != null && E.validity.valid) && e.required ? (L.value = f.value, me() && (k.value = e.validMessage ?? ge, Z(() => k.value = "", 1e3)), r.value = e.validation ?? "valid") : x(e.message, e.showMessage) ? (L.value = u.value, r.value = e.validation ?? "no-validation") : (L.value = w.value, r.value = e.validation ?? "no-validation");
|
|
1571
|
+
}
|
|
1572
|
+
function ha(l) {
|
|
1573
|
+
var I, E;
|
|
1574
|
+
e.onDropdownToggle && (l.stopPropagation(), e.onDropdownToggle(l)), l.target instanceof HTMLDetailsElement && l.target.open ? (_e.value = new ze().addCallback(
|
|
1575
|
+
(j) => Ba(j)
|
|
1576
|
+
), Ce.value = new Be().addCallback(
|
|
1577
|
+
(j) => fa(j)
|
|
1578
|
+
), Ge(), (I = Ve.value) == null || I.observe(z.value), l.target.dataset.test || je()) : (_e.value && new ze().removeCallback(
|
|
1579
|
+
_e.value
|
|
1580
|
+
), Ce.value && new Be().removeCallback(
|
|
1581
|
+
Ce.value
|
|
1582
|
+
), (E = Ve.value) == null || E.unobserve(z.value));
|
|
1592
1583
|
}
|
|
1593
1584
|
function ga() {
|
|
1594
|
-
|
|
1585
|
+
var l;
|
|
1586
|
+
return (l = M.value) != null && l.length ? M.value.at(0) ?? "" : "";
|
|
1587
|
+
}
|
|
1588
|
+
function He(l) {
|
|
1589
|
+
var E;
|
|
1590
|
+
const I = [];
|
|
1591
|
+
l && I.push(l), b.value && ((E = C.value) != null && E.length) && I.push(b.value), L.value = I.join(" ");
|
|
1595
1592
|
}
|
|
1596
|
-
function
|
|
1597
|
-
|
|
1598
|
-
return o.label ?? (($ = o.value) == null ? void 0 : $.toString()) ?? "";
|
|
1593
|
+
function ma() {
|
|
1594
|
+
return e.selectAllLabel ?? we;
|
|
1599
1595
|
}
|
|
1600
|
-
function
|
|
1601
|
-
var
|
|
1602
|
-
return
|
|
1596
|
+
function Ie(l) {
|
|
1597
|
+
var I;
|
|
1598
|
+
return l.label ?? ((I = l.value) == null ? void 0 : I.toString()) ?? "";
|
|
1603
1599
|
}
|
|
1604
|
-
function ba(
|
|
1605
|
-
|
|
1600
|
+
function ba(l) {
|
|
1601
|
+
var I, E;
|
|
1602
|
+
return l && ((I = M.value) != null && I.includes) ? (E = M.value) == null ? void 0 : E.includes(l) : !1;
|
|
1606
1603
|
}
|
|
1607
|
-
function ya(
|
|
1608
|
-
|
|
1604
|
+
function ya(l) {
|
|
1605
|
+
return e.removeTagsTexts && e.removeTagsTexts.length > l ? e.removeTagsTexts.at(l) : `${ia} ${F.value ? Ie(F.value[l]) : ""}`;
|
|
1609
1606
|
}
|
|
1610
|
-
function
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1607
|
+
function wa(l, I) {
|
|
1608
|
+
I && I.stopPropagation(), Xe(l.value), De();
|
|
1609
|
+
}
|
|
1610
|
+
function Ge() {
|
|
1611
|
+
if (z.value) {
|
|
1612
|
+
const l = z.value.querySelector("article");
|
|
1613
|
+
l && Z(() => {
|
|
1614
|
+
tt(
|
|
1615
|
+
l,
|
|
1616
|
+
z.value,
|
|
1617
1617
|
e.placement ?? "bottom"
|
|
1618
1618
|
);
|
|
1619
1619
|
}, 1);
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1623
|
-
var
|
|
1624
|
-
if ((
|
|
1622
|
+
function ka(l) {
|
|
1623
|
+
var I, E, j, le, O, be, Ne;
|
|
1624
|
+
if ((I = z.value) != null && I.open) {
|
|
1625
1625
|
if (self.document) {
|
|
1626
1626
|
const ue = self.document.activeElement;
|
|
1627
1627
|
if (ue)
|
|
1628
1628
|
if (ue.getAttribute("type") === "checkbox" || ue.getAttribute("type") === "radio") {
|
|
1629
1629
|
const se = ue == null ? void 0 : ue.closest("li");
|
|
1630
|
-
if (
|
|
1630
|
+
if (l.key === "ArrowDown" || l.key === "ArrowRight")
|
|
1631
1631
|
se != null && se.nextElementSibling ? (j = (E = se == null ? void 0 : se.nextElementSibling) == null ? void 0 : E.querySelector("input")) == null || j.focus() : Me(ue);
|
|
1632
1632
|
else if (se != null && se.previousElementSibling)
|
|
1633
|
-
(
|
|
1634
|
-
else if (
|
|
1633
|
+
(O = (le = se == null ? void 0 : se.previousElementSibling) == null ? void 0 : le.querySelector("input")) == null || O.focus();
|
|
1634
|
+
else if (z.value.querySelector('input[type="checkbox"]') !== ue)
|
|
1635
1635
|
Me(ue);
|
|
1636
1636
|
else {
|
|
1637
|
-
const
|
|
1638
|
-
if (
|
|
1637
|
+
const Ke = aa(z.value);
|
|
1638
|
+
if (Ke)
|
|
1639
1639
|
Z(() => {
|
|
1640
|
-
|
|
1640
|
+
Ke.focus();
|
|
1641
1641
|
}, 100);
|
|
1642
1642
|
else {
|
|
1643
|
-
const
|
|
1644
|
-
(
|
|
1643
|
+
const Je = Array.from(
|
|
1644
|
+
(be = z.value) == null ? void 0 : be.querySelectorAll(
|
|
1645
1645
|
'input[type="checkbox"],input[type="radio"]'
|
|
1646
1646
|
)
|
|
1647
1647
|
);
|
|
1648
|
-
|
|
1648
|
+
Je.length && ((Ne = Je.at(-1)) == null || Ne.focus());
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
1651
|
} else
|
|
1652
|
-
ue.getAttribute("type") === "search" && (
|
|
1652
|
+
ue.getAttribute("type") === "search" && (l.key === "ArrowUp" || l.key === "ArrowLeft") ? (Ae(void 0, !0), De()) : Me(ue);
|
|
1653
1653
|
}
|
|
1654
|
-
} else (
|
|
1655
|
-
|
|
1656
|
-
}
|
|
1657
|
-
function
|
|
1658
|
-
var
|
|
1659
|
-
|
|
1660
|
-
}
|
|
1661
|
-
function
|
|
1662
|
-
if (
|
|
1663
|
-
if (
|
|
1664
|
-
|
|
1665
|
-
else if (
|
|
1666
|
-
const E =
|
|
1667
|
-
|
|
1654
|
+
} else (l.key === "ArrowDown" || l.key === "ArrowRight") && (Ge(), z.value && (z.value.open = !0), je());
|
|
1655
|
+
l.stopPropagation(), l.preventDefault();
|
|
1656
|
+
}
|
|
1657
|
+
function Sa(l) {
|
|
1658
|
+
var I;
|
|
1659
|
+
l.stopPropagation(), l.key === "Escape" && ((I = z.value) != null && I.open) ? (Ae(void 0, !0), De()) : (l.key === "ArrowDown" || l.key === "ArrowUp" || l.key === "ArrowLeft" || l.key === "ArrowRight") && ka(l);
|
|
1660
|
+
}
|
|
1661
|
+
function Ae(l, I) {
|
|
1662
|
+
if (z.value) {
|
|
1663
|
+
if (I)
|
|
1664
|
+
z.value.open = !1, De();
|
|
1665
|
+
else if (z.value.open && l && l.relatedTarget) {
|
|
1666
|
+
const E = l.relatedTarget;
|
|
1667
|
+
z.value.contains(E) || Z(() => z.value.open = !1, 1);
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1672
|
-
var
|
|
1673
|
-
if (
|
|
1674
|
-
const E =
|
|
1675
|
-
(
|
|
1671
|
+
function Ba(l) {
|
|
1672
|
+
var I;
|
|
1673
|
+
if (l) {
|
|
1674
|
+
const E = l.target;
|
|
1675
|
+
(I = z.value) != null && I.open && !z.value.contains(E) && (z.value.open = !1);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1679
|
-
(/* @__PURE__ */ new Date()).getTime() -
|
|
1680
|
-
|
|
1678
|
+
function $e(l) {
|
|
1679
|
+
(/* @__PURE__ */ new Date()).getTime() - Le.value < 200 || (M.value = l, c.value = !0, e.onOptionSelected && e.onOptionSelected(l ?? []), de(
|
|
1680
|
+
o,
|
|
1681
1681
|
{
|
|
1682
1682
|
target: {
|
|
1683
|
-
values:
|
|
1683
|
+
values: l
|
|
1684
1684
|
}
|
|
1685
1685
|
},
|
|
1686
1686
|
"values"
|
|
1687
|
-
),
|
|
1687
|
+
), Le.value = (/* @__PURE__ */ new Date()).getTime());
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1690
|
-
var
|
|
1691
|
-
|
|
1689
|
+
function Xe(l) {
|
|
1690
|
+
var I;
|
|
1691
|
+
l && (e.multiple ? (I = M.value) != null && I.includes(l) ? $e(M.value.filter((E) => E !== l)) : $e([...M.value || [], l]) : ($e([l]), Ae(void 0, !0)));
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1694
|
-
var
|
|
1695
|
-
if (
|
|
1696
|
-
|
|
1693
|
+
function La(l) {
|
|
1694
|
+
var I;
|
|
1695
|
+
if (l.stopPropagation(), ((I = M.value) == null ? void 0 : I.length) === B.value)
|
|
1696
|
+
$e([]);
|
|
1697
1697
|
else {
|
|
1698
|
-
const E =
|
|
1699
|
-
|
|
1698
|
+
const E = X.value && Ue.value ? Ue.value.value : void 0;
|
|
1699
|
+
$e(
|
|
1700
1700
|
e.options ? e.options.filter(
|
|
1701
1701
|
(j) => {
|
|
1702
|
-
var
|
|
1703
|
-
return !j.isGroupTitle && (!E || ((
|
|
1702
|
+
var le;
|
|
1703
|
+
return !j.isGroupTitle && (!E || ((le = j.value) == null ? void 0 : le.toLowerCase().includes(E.toLowerCase())));
|
|
1704
1704
|
}
|
|
1705
1705
|
).map((j) => j.value ?? "") : []
|
|
1706
1706
|
);
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
function Me(
|
|
1710
|
-
if (
|
|
1711
|
-
const
|
|
1712
|
-
|
|
1709
|
+
function Me(l) {
|
|
1710
|
+
if (z.value) {
|
|
1711
|
+
const I = Array.from(
|
|
1712
|
+
z.value.querySelectorAll(
|
|
1713
1713
|
'input[type="checkbox"],input[type="radio"]'
|
|
1714
1714
|
)
|
|
1715
1715
|
);
|
|
1716
|
-
if (
|
|
1717
|
-
const E =
|
|
1716
|
+
if (I.length) {
|
|
1717
|
+
const E = I.at(0), j = E === l && I.length > 1 ? I.at(1) : E;
|
|
1718
1718
|
j && Z(() => {
|
|
1719
1719
|
j.focus();
|
|
1720
1720
|
}, 1);
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
if (
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1728
|
-
|
|
1724
|
+
function je() {
|
|
1725
|
+
if (z.value) {
|
|
1726
|
+
const l = aa(z.value);
|
|
1727
|
+
l ? Z(() => {
|
|
1728
|
+
l.focus();
|
|
1729
1729
|
}, 1) : Me();
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1733
|
-
if (
|
|
1732
|
+
function Ye(l) {
|
|
1733
|
+
if (l === void 0)
|
|
1734
1734
|
return;
|
|
1735
|
-
let
|
|
1736
|
-
if (typeof
|
|
1737
|
-
|
|
1735
|
+
let I;
|
|
1736
|
+
if (typeof l == "string")
|
|
1737
|
+
I = l;
|
|
1738
1738
|
else {
|
|
1739
|
-
const E =
|
|
1740
|
-
E.stopPropagation(), e.onSearch && e.onSearch(E),
|
|
1739
|
+
const E = l;
|
|
1740
|
+
E.stopPropagation(), e.onSearch && e.onSearch(E), I = E.target.value, Pe.value = I;
|
|
1741
1741
|
}
|
|
1742
|
-
!e.options ||
|
|
1743
|
-
(E) => e.searchFilter(E,
|
|
1744
|
-
) :
|
|
1745
|
-
(E) => !E.isGroupTitle &&
|
|
1742
|
+
!e.options || !I || I.length === 0 ? oe.value = e.options : e.searchFilter ? oe.value = e.options.filter(
|
|
1743
|
+
(E) => e.searchFilter(E, I)
|
|
1744
|
+
) : oe.value = e.options.filter(
|
|
1745
|
+
(E) => !E.isGroupTitle && Ie(E).toLowerCase().includes(I.toLowerCase())
|
|
1746
1746
|
);
|
|
1747
1747
|
}
|
|
1748
|
-
function Ia(
|
|
1749
|
-
|
|
1748
|
+
function Ia(l) {
|
|
1749
|
+
l.stopPropagation(), $e([]), De();
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1752
|
-
var
|
|
1753
|
-
|
|
1751
|
+
function De() {
|
|
1752
|
+
var l;
|
|
1753
|
+
z.value && ((l = z.value.querySelector("summary")) == null || l.focus());
|
|
1754
1754
|
}
|
|
1755
|
-
function $a(
|
|
1756
|
-
|
|
1755
|
+
function $a(l) {
|
|
1756
|
+
l.stopPropagation();
|
|
1757
1757
|
}
|
|
1758
|
-
return (
|
|
1759
|
-
var E, j,
|
|
1760
|
-
return
|
|
1758
|
+
return (l, I) => {
|
|
1759
|
+
var E, j, le;
|
|
1760
|
+
return m(), S("div", {
|
|
1761
1761
|
id: i.value,
|
|
1762
1762
|
ref_key: "_ref",
|
|
1763
|
-
ref:
|
|
1764
|
-
class:
|
|
1765
|
-
"aria-invalid":
|
|
1766
|
-
"data-custom-validity":
|
|
1767
|
-
"data-width":
|
|
1768
|
-
"data-variant":
|
|
1769
|
-
"data-required": n(
|
|
1770
|
-
"data-hide-asterisk": n(ie)(
|
|
1771
|
-
"data-placement":
|
|
1772
|
-
"data-selected-type":
|
|
1773
|
-
"data-hide-label": n(ie)(
|
|
1774
|
-
"data-icon":
|
|
1775
|
-
"data-show-icon": n(
|
|
1763
|
+
ref: va,
|
|
1764
|
+
class: P(n(q)("db-custom-select", e.class)),
|
|
1765
|
+
"aria-invalid": r.value === "invalid",
|
|
1766
|
+
"data-custom-validity": r.value,
|
|
1767
|
+
"data-width": l.formFieldWidth,
|
|
1768
|
+
"data-variant": l.variant === "floating" && l.selectedType === "tag" && l.multiple ? "above" : l.variant,
|
|
1769
|
+
"data-required": n(R)(l.required),
|
|
1770
|
+
"data-hide-asterisk": n(ie)(l.showRequiredAsterisk),
|
|
1771
|
+
"data-placement": l.placement,
|
|
1772
|
+
"data-selected-type": l.multiple ? l.selectedType : "text",
|
|
1773
|
+
"data-hide-label": n(ie)(l.showLabel),
|
|
1774
|
+
"data-icon": l.icon,
|
|
1775
|
+
"data-show-icon": n(R)(l.showIcon)
|
|
1776
1776
|
}, [
|
|
1777
|
-
_("label", { id:
|
|
1778
|
-
N(
|
|
1777
|
+
_("label", { id: g.value }, [
|
|
1778
|
+
N($(l.label ?? n(we)), 1),
|
|
1779
1779
|
_("select", {
|
|
1780
1780
|
role: "none",
|
|
1781
1781
|
hidden: !0,
|
|
1782
1782
|
id: s.value,
|
|
1783
1783
|
tabIndex: -1,
|
|
1784
1784
|
ref_key: "selectRef",
|
|
1785
|
-
ref:
|
|
1786
|
-
form:
|
|
1787
|
-
name:
|
|
1788
|
-
multiple: n(
|
|
1789
|
-
disabled: n(
|
|
1790
|
-
required: n(
|
|
1791
|
-
onChange:
|
|
1785
|
+
ref: ve,
|
|
1786
|
+
form: l.form,
|
|
1787
|
+
name: l.name,
|
|
1788
|
+
multiple: n(V)(l.multiple, "multiple"),
|
|
1789
|
+
disabled: n(V)(l.disabled, "disabled"),
|
|
1790
|
+
required: n(V)(l.required, "required"),
|
|
1791
|
+
onChange: I[0] || (I[0] = async (O) => $a(O))
|
|
1792
1792
|
}, [
|
|
1793
|
-
(E =
|
|
1794
|
-
key:
|
|
1795
|
-
disabled:
|
|
1796
|
-
value:
|
|
1797
|
-
},
|
|
1798
|
-
], 40,
|
|
1799
|
-
], 8,
|
|
1793
|
+
(E = l.options) != null && E.length ? (m(!0), S(W, { key: 0 }, ye(l.options, (O, be) => (m(), S("option", {
|
|
1794
|
+
key: be,
|
|
1795
|
+
disabled: O.disabled,
|
|
1796
|
+
value: O.value
|
|
1797
|
+
}, $(Ie(O)), 9, It))), 128)) : U("", !0)
|
|
1798
|
+
], 40, Lt)
|
|
1799
|
+
], 8, Bt),
|
|
1800
1800
|
_("details", {
|
|
1801
1801
|
ref_key: "detailsRef",
|
|
1802
|
-
ref:
|
|
1803
|
-
open:
|
|
1804
|
-
onToggle:
|
|
1805
|
-
onKeydown:
|
|
1802
|
+
ref: z,
|
|
1803
|
+
open: l.open,
|
|
1804
|
+
onToggle: I[2] || (I[2] = async (O) => ha(O)),
|
|
1805
|
+
onKeydown: I[3] || (I[3] = async (O) => Sa(O))
|
|
1806
1806
|
}, [
|
|
1807
|
-
A(
|
|
1808
|
-
|
|
1807
|
+
A(l.$slots, "default"),
|
|
1808
|
+
l.options ? (m(), S(W, { key: 0 }, [
|
|
1809
1809
|
_("summary", {
|
|
1810
1810
|
class: "db-custom-select-form-field",
|
|
1811
1811
|
id: T.value,
|
|
1812
|
-
"aria-disabled": n(
|
|
1813
|
-
"aria-labelledby":
|
|
1812
|
+
"aria-disabled": n(R)(l.disabled),
|
|
1813
|
+
"aria-labelledby": g.value
|
|
1814
1814
|
}, [
|
|
1815
|
-
(j =
|
|
1815
|
+
(j = C.value) != null && j.length ? (m(), S("span", {
|
|
1816
1816
|
key: 0,
|
|
1817
|
-
"data-visually-hidden": n(
|
|
1818
|
-
id:
|
|
1819
|
-
},
|
|
1820
|
-
|
|
1821
|
-
(
|
|
1822
|
-
key:
|
|
1817
|
+
"data-visually-hidden": n(R)(l.selectedType === "tag"),
|
|
1818
|
+
id: b.value
|
|
1819
|
+
}, $(C.value), 9, _t)) : U("", !0),
|
|
1820
|
+
l.selectedType === "tag" ? (m(), S("div", Ct, [
|
|
1821
|
+
(m(!0), S(W, null, ye(F.value, (O, be) => (m(), J(kt, {
|
|
1822
|
+
key: be,
|
|
1823
1823
|
emphasis: "strong",
|
|
1824
1824
|
behavior: "removable",
|
|
1825
|
-
removeButton:
|
|
1826
|
-
onRemove: (
|
|
1825
|
+
removeButton: ya(be),
|
|
1826
|
+
onRemove: (Ne) => wa(O, Ne)
|
|
1827
1827
|
}, {
|
|
1828
|
-
default:
|
|
1829
|
-
N(
|
|
1828
|
+
default: H(() => [
|
|
1829
|
+
N($(Ie(O)), 1)
|
|
1830
1830
|
]),
|
|
1831
1831
|
_: 2
|
|
1832
1832
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
1833
|
-
])) :
|
|
1834
|
-
], 8,
|
|
1835
|
-
ee(
|
|
1836
|
-
default:
|
|
1837
|
-
|
|
1838
|
-
ee(
|
|
1833
|
+
])) : U("", !0)
|
|
1834
|
+
], 8, Tt),
|
|
1835
|
+
ee(ot, { width: l.dropdownWidth }, {
|
|
1836
|
+
default: H(() => [
|
|
1837
|
+
X.value ? (m(), S("div", Et, [
|
|
1838
|
+
ee(bt, {
|
|
1839
1839
|
type: "search",
|
|
1840
1840
|
ref_key: "searchInputRef",
|
|
1841
|
-
ref:
|
|
1841
|
+
ref: Ue,
|
|
1842
1842
|
name: i.value,
|
|
1843
1843
|
form: i.value,
|
|
1844
1844
|
showLabel: !1,
|
|
1845
|
-
value:
|
|
1846
|
-
label:
|
|
1847
|
-
placeholder:
|
|
1848
|
-
ariaDescribedBy:
|
|
1849
|
-
onInput: (
|
|
1845
|
+
value: Pe.value,
|
|
1846
|
+
label: l.searchLabel ?? n(we),
|
|
1847
|
+
placeholder: l.searchPlaceholder ?? l.searchLabel,
|
|
1848
|
+
ariaDescribedBy: K.value || l.showLoading ? h.value : void 0,
|
|
1849
|
+
onInput: (O) => Ye(O)
|
|
1850
1850
|
}, null, 8, ["name", "form", "value", "label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
1851
|
-
])) :
|
|
1852
|
-
|
|
1851
|
+
])) : U("", !0),
|
|
1852
|
+
K.value || l.showLoading ? (m(), J(ae, {
|
|
1853
1853
|
key: 1,
|
|
1854
1854
|
id: h.value,
|
|
1855
|
-
icon:
|
|
1856
|
-
semantic:
|
|
1855
|
+
icon: l.showLoading ? "circular_arrows" : void 0,
|
|
1856
|
+
semantic: l.showLoading ? "informational" : "warning"
|
|
1857
1857
|
}, {
|
|
1858
|
-
default:
|
|
1859
|
-
N(
|
|
1858
|
+
default: H(() => [
|
|
1859
|
+
N($((l.showLoading ? l.loadingText : l.noResultsText) ?? n(Ea)), 1)
|
|
1860
1860
|
]),
|
|
1861
1861
|
_: 1
|
|
1862
|
-
}, 8, ["id", "icon", "semantic"])) : (
|
|
1863
|
-
|
|
1864
|
-
_("div",
|
|
1862
|
+
}, 8, ["id", "icon", "semantic"])) : (m(), S(W, { key: 2 }, [
|
|
1863
|
+
y.value ? (m(), S("div", At, [
|
|
1864
|
+
_("div", Dt, [
|
|
1865
1865
|
_("label", null, [
|
|
1866
1866
|
_("input", {
|
|
1867
1867
|
type: "checkbox",
|
|
@@ -1869,34 +1869,34 @@ const xa = (t) => {
|
|
|
1869
1869
|
ref_key: "selectAllRef",
|
|
1870
1870
|
ref: Fe,
|
|
1871
1871
|
form: i.value,
|
|
1872
|
-
checked:
|
|
1873
|
-
onChange:
|
|
1874
|
-
}, null, 40,
|
|
1875
|
-
N(
|
|
1872
|
+
checked: qe.value,
|
|
1873
|
+
onChange: I[1] || (I[1] = async (O) => La(O))
|
|
1874
|
+
}, null, 40, Nt),
|
|
1875
|
+
N($(ma()), 1)
|
|
1876
1876
|
])
|
|
1877
1877
|
])
|
|
1878
|
-
])) :
|
|
1879
|
-
ee(
|
|
1880
|
-
multiple: n(
|
|
1881
|
-
label:
|
|
1878
|
+
])) : U("", !0),
|
|
1879
|
+
ee(ct, {
|
|
1880
|
+
multiple: n(V)(l.multiple, "multiple"),
|
|
1881
|
+
label: l.ariaListLabel ?? l.label ?? n(we)
|
|
1882
1882
|
}, {
|
|
1883
|
-
default:
|
|
1884
|
-
(
|
|
1885
|
-
key:
|
|
1886
|
-
type:
|
|
1887
|
-
showDivider:
|
|
1888
|
-
icon:
|
|
1889
|
-
isGroupTitle:
|
|
1890
|
-
groupTitle:
|
|
1883
|
+
default: H(() => [
|
|
1884
|
+
(m(!0), S(W, null, ye(oe.value, (O, be) => (m(), J(ut, {
|
|
1885
|
+
key: be,
|
|
1886
|
+
type: l.multiple ? "checkbox" : "radio",
|
|
1887
|
+
showDivider: O.showDivider,
|
|
1888
|
+
icon: O.icon,
|
|
1889
|
+
isGroupTitle: O.isGroupTitle,
|
|
1890
|
+
groupTitle: Ie(O),
|
|
1891
1891
|
name: i.value,
|
|
1892
|
-
checked:
|
|
1893
|
-
disabled:
|
|
1894
|
-
value:
|
|
1895
|
-
onChange: (
|
|
1892
|
+
checked: ba(O.value),
|
|
1893
|
+
disabled: O.disabled,
|
|
1894
|
+
value: O.value,
|
|
1895
|
+
onChange: (Ne) => Xe(O.value)
|
|
1896
1896
|
}, {
|
|
1897
|
-
default:
|
|
1898
|
-
|
|
1899
|
-
N(
|
|
1897
|
+
default: H(() => [
|
|
1898
|
+
O.isGroupTitle ? U("", !0) : (m(), S(W, { key: 0 }, [
|
|
1899
|
+
N($(Ie(O)), 1)
|
|
1900
1900
|
], 64))
|
|
1901
1901
|
]),
|
|
1902
1902
|
_: 2
|
|
@@ -1906,17 +1906,17 @@ const xa = (t) => {
|
|
|
1906
1906
|
}, 8, ["multiple", "label"])
|
|
1907
1907
|
], 64)),
|
|
1908
1908
|
_("div", null, [
|
|
1909
|
-
ee(
|
|
1909
|
+
ee(Se, {
|
|
1910
1910
|
variant: "ghost",
|
|
1911
1911
|
width: "full",
|
|
1912
1912
|
icon: "cross",
|
|
1913
1913
|
size: "small",
|
|
1914
1914
|
name: i.value,
|
|
1915
1915
|
form: i.value,
|
|
1916
|
-
onClick: (
|
|
1916
|
+
onClick: (O) => Ae(void 0, !0)
|
|
1917
1917
|
}, {
|
|
1918
|
-
default:
|
|
1919
|
-
N(
|
|
1918
|
+
default: H(() => [
|
|
1919
|
+
N($(l.mobileCloseButtonText ?? n(We)), 1)
|
|
1920
1920
|
]),
|
|
1921
1921
|
_: 1
|
|
1922
1922
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -1924,9 +1924,9 @@ const xa = (t) => {
|
|
|
1924
1924
|
]),
|
|
1925
1925
|
_: 1
|
|
1926
1926
|
}, 8, ["width"])
|
|
1927
|
-
], 64)) :
|
|
1927
|
+
], 64)) : U("", !0)
|
|
1928
1928
|
], 40, $t),
|
|
1929
|
-
(
|
|
1929
|
+
(l.showClearSelection ?? !0) && ((le = M.value) != null && le.length) ? (m(), J(Se, {
|
|
1930
1930
|
key: 0,
|
|
1931
1931
|
icon: "cross",
|
|
1932
1932
|
variant: "ghost",
|
|
@@ -1934,60 +1934,60 @@ const xa = (t) => {
|
|
|
1934
1934
|
noText: !0,
|
|
1935
1935
|
name: i.value,
|
|
1936
1936
|
form: i.value,
|
|
1937
|
-
onClick: (
|
|
1937
|
+
onClick: (O) => Ia(O)
|
|
1938
1938
|
}, {
|
|
1939
|
-
default:
|
|
1940
|
-
N(
|
|
1941
|
-
ee(
|
|
1942
|
-
default:
|
|
1943
|
-
N(
|
|
1939
|
+
default: H(() => [
|
|
1940
|
+
N($(l.clearSelectionText), 1),
|
|
1941
|
+
ee(ca, { placement: "top" }, {
|
|
1942
|
+
default: H(() => [
|
|
1943
|
+
N($(l.clearSelectionText), 1)
|
|
1944
1944
|
]),
|
|
1945
1945
|
_: 1
|
|
1946
1946
|
})
|
|
1947
1947
|
]),
|
|
1948
1948
|
_: 1
|
|
1949
|
-
}, 8, ["name", "form", "onClick"])) :
|
|
1949
|
+
}, 8, ["name", "form", "onClick"])) : U("", !0),
|
|
1950
1950
|
_("span", {
|
|
1951
|
-
"aria-hidden": n(
|
|
1952
|
-
id:
|
|
1953
|
-
},
|
|
1954
|
-
n(x)(
|
|
1951
|
+
"aria-hidden": n(R)(!0),
|
|
1952
|
+
id: w.value
|
|
1953
|
+
}, $(l.placeholder ?? l.label), 9, Ft),
|
|
1954
|
+
n(x)(l.message, l.showMessage) ? (m(), J(ae, {
|
|
1955
1955
|
key: 1,
|
|
1956
1956
|
size: "small",
|
|
1957
|
-
icon:
|
|
1957
|
+
icon: l.messageIcon,
|
|
1958
1958
|
id: u.value
|
|
1959
1959
|
}, {
|
|
1960
|
-
default:
|
|
1961
|
-
N(
|
|
1960
|
+
default: H(() => [
|
|
1961
|
+
N($(l.message), 1)
|
|
1962
1962
|
]),
|
|
1963
1963
|
_: 1
|
|
1964
|
-
}, 8, ["icon", "id"])) :
|
|
1965
|
-
|
|
1964
|
+
}, 8, ["icon", "id"])) : U("", !0),
|
|
1965
|
+
Oe() ? (m(), J(ae, {
|
|
1966
1966
|
key: 2,
|
|
1967
1967
|
size: "small",
|
|
1968
1968
|
semantic: "successful",
|
|
1969
1969
|
id: f.value
|
|
1970
1970
|
}, {
|
|
1971
|
-
default:
|
|
1972
|
-
N(
|
|
1971
|
+
default: H(() => [
|
|
1972
|
+
N($(l.validMessage || n(ge)), 1)
|
|
1973
1973
|
]),
|
|
1974
1974
|
_: 1
|
|
1975
|
-
}, 8, ["id"])) :
|
|
1975
|
+
}, 8, ["id"])) : U("", !0),
|
|
1976
1976
|
ee(ae, {
|
|
1977
1977
|
size: "small",
|
|
1978
1978
|
semantic: "critical",
|
|
1979
|
-
id:
|
|
1979
|
+
id: p.value
|
|
1980
1980
|
}, {
|
|
1981
|
-
default:
|
|
1982
|
-
N(
|
|
1981
|
+
default: H(() => [
|
|
1982
|
+
N($(v.value), 1)
|
|
1983
1983
|
]),
|
|
1984
1984
|
_: 1
|
|
1985
1985
|
}, 8, ["id"]),
|
|
1986
|
-
_("span",
|
|
1987
|
-
], 10,
|
|
1986
|
+
_("span", Mt, $(k.value), 1)
|
|
1987
|
+
], 10, St);
|
|
1988
1988
|
};
|
|
1989
1989
|
}
|
|
1990
|
-
}),
|
|
1990
|
+
}), bo = ["fixed", "auto", "full"], Rt = ["id"], yo = /* @__PURE__ */ G({
|
|
1991
1991
|
__name: "custom-select-form-field",
|
|
1992
1992
|
props: {
|
|
1993
1993
|
children: { default: void 0 },
|
|
@@ -1997,17 +1997,17 @@ const xa = (t) => {
|
|
|
1997
1997
|
autofocus: { type: [Boolean, String] }
|
|
1998
1998
|
},
|
|
1999
1999
|
setup(t) {
|
|
2000
|
-
const a = t,
|
|
2001
|
-
return (e, i) => (
|
|
2000
|
+
const a = t, o = d(null);
|
|
2001
|
+
return (e, i) => (m(), S("summary", {
|
|
2002
2002
|
ref_key: "_ref",
|
|
2003
|
-
ref:
|
|
2003
|
+
ref: o,
|
|
2004
2004
|
id: e.id,
|
|
2005
|
-
class:
|
|
2005
|
+
class: P(n(q)("db-custom-select-form-field", a.class))
|
|
2006
2006
|
}, [
|
|
2007
2007
|
A(e.$slots, "default")
|
|
2008
|
-
], 10,
|
|
2008
|
+
], 10, Rt));
|
|
2009
2009
|
}
|
|
2010
|
-
}),
|
|
2010
|
+
}), wo = ["checkbox", "radio"], ko = ["amount", "text", "tag"], zt = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], So = /* @__PURE__ */ G({
|
|
2011
2011
|
__name: "divider",
|
|
2012
2012
|
props: {
|
|
2013
2013
|
margin: { default: void 0 },
|
|
@@ -2021,19 +2021,19 @@ const xa = (t) => {
|
|
|
2021
2021
|
width: { default: void 0 }
|
|
2022
2022
|
},
|
|
2023
2023
|
setup(t) {
|
|
2024
|
-
const a = t,
|
|
2025
|
-
return (e, i) => (
|
|
2024
|
+
const a = t, o = d(null);
|
|
2025
|
+
return (e, i) => (m(), S("div", {
|
|
2026
2026
|
ref_key: "_ref",
|
|
2027
|
-
ref:
|
|
2027
|
+
ref: o,
|
|
2028
2028
|
id: e.id,
|
|
2029
2029
|
"data-margin": e.margin,
|
|
2030
2030
|
"data-variant": e.variant,
|
|
2031
2031
|
"data-emphasis": e.emphasis,
|
|
2032
2032
|
"data-width": e.width,
|
|
2033
|
-
class:
|
|
2034
|
-
}, null, 10,
|
|
2033
|
+
class: P(n(q)("db-divider", a.class))
|
|
2034
|
+
}, null, 10, zt));
|
|
2035
2035
|
}
|
|
2036
|
-
}),
|
|
2036
|
+
}), Bo = ["none", "_"], Lo = ["horizontal", "vertical"], Vt = ["id", "data-position", "data-backdrop", "data-direction", "data-variant"], Pt = ["data-spacing", "data-width", "data-direction", "data-rounded"], qt = { class: "db-drawer-header" }, Ut = { class: "db-drawer-header-text" }, Gt = { class: "db-drawer-content" }, Wt = /* @__PURE__ */ G({
|
|
2037
2037
|
__name: "drawer",
|
|
2038
2038
|
props: {
|
|
2039
2039
|
backdrop: { default: void 0 },
|
|
@@ -2056,9 +2056,9 @@ const xa = (t) => {
|
|
|
2056
2056
|
spacing: { default: void 0 }
|
|
2057
2057
|
},
|
|
2058
2058
|
setup(t) {
|
|
2059
|
-
const a = t,
|
|
2059
|
+
const a = t, o = d(!1), e = d(null), i = d(null);
|
|
2060
2060
|
Y(() => {
|
|
2061
|
-
f(),
|
|
2061
|
+
f(), o.value = !0;
|
|
2062
2062
|
}), D(
|
|
2063
2063
|
() => [a.open],
|
|
2064
2064
|
() => {
|
|
@@ -2069,11 +2069,11 @@ const xa = (t) => {
|
|
|
2069
2069
|
flush: "post"
|
|
2070
2070
|
}
|
|
2071
2071
|
), D(
|
|
2072
|
-
() => [e.value,
|
|
2072
|
+
() => [e.value, o.value, a.position],
|
|
2073
2073
|
() => {
|
|
2074
|
-
if (e.value &&
|
|
2075
|
-
const
|
|
2076
|
-
|
|
2074
|
+
if (e.value && o.value && a.position === "absolute") {
|
|
2075
|
+
const v = e.value.parentElement;
|
|
2076
|
+
v && (v.style.position = "relative");
|
|
2077
2077
|
}
|
|
2078
2078
|
},
|
|
2079
2079
|
{
|
|
@@ -2081,73 +2081,73 @@ const xa = (t) => {
|
|
|
2081
2081
|
flush: "post"
|
|
2082
2082
|
}
|
|
2083
2083
|
);
|
|
2084
|
-
function u(
|
|
2084
|
+
function u(p, v) {
|
|
2085
2085
|
var s;
|
|
2086
|
-
|
|
2086
|
+
p && (qa(p) ? p.key === "Escape" && (p.preventDefault(), a.onClose && a.onClose(p)) : (v && (p.stopPropagation(), a.onClose && a.onClose(p)), ((s = p.target) == null ? void 0 : s.nodeName) === "DIALOG" && p.type === "click" && a.backdrop !== "none" && a.onClose && a.onClose(p)));
|
|
2087
2087
|
}
|
|
2088
2088
|
function f() {
|
|
2089
2089
|
if (e.value) {
|
|
2090
|
-
const
|
|
2091
|
-
|
|
2092
|
-
var
|
|
2093
|
-
i.value && (i.value.hidden = !1), (
|
|
2090
|
+
const p = !!a.open;
|
|
2091
|
+
p && !e.value.open && (i.value && (i.value.hidden = !1), a.position === "absolute" || a.backdrop === "none" || a.variant === "inside" ? e.value.show() : e.value.showModal()), !p && e.value.open && (i.value && (i.value.hidden = !0), Z(() => {
|
|
2092
|
+
var v;
|
|
2093
|
+
i.value && (i.value.hidden = !1), (v = e.value) == null || v.close();
|
|
2094
2094
|
}, 401));
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
|
-
return (
|
|
2097
|
+
return (p, v) => (m(), S("dialog", {
|
|
2098
2098
|
class: "db-drawer",
|
|
2099
|
-
id:
|
|
2099
|
+
id: p.id,
|
|
2100
2100
|
ref_key: "_ref",
|
|
2101
2101
|
ref: e,
|
|
2102
|
-
onClick:
|
|
2103
|
-
onKeydown:
|
|
2104
|
-
"data-position":
|
|
2105
|
-
"data-backdrop":
|
|
2106
|
-
"data-direction":
|
|
2107
|
-
"data-variant":
|
|
2102
|
+
onClick: v[0] || (v[0] = async (s) => u(s)),
|
|
2103
|
+
onKeydown: v[1] || (v[1] = async (s) => u(s)),
|
|
2104
|
+
"data-position": p.position,
|
|
2105
|
+
"data-backdrop": p.backdrop,
|
|
2106
|
+
"data-direction": p.direction,
|
|
2107
|
+
"data-variant": p.variant
|
|
2108
2108
|
}, [
|
|
2109
2109
|
_("article", {
|
|
2110
2110
|
ref_key: "dialogContainerRef",
|
|
2111
2111
|
ref: i,
|
|
2112
|
-
class:
|
|
2113
|
-
"data-spacing":
|
|
2114
|
-
"data-width":
|
|
2115
|
-
"data-direction":
|
|
2116
|
-
"data-rounded": n(
|
|
2112
|
+
class: P(n(q)("db-drawer-container", a.class)),
|
|
2113
|
+
"data-spacing": p.spacing,
|
|
2114
|
+
"data-width": p.width,
|
|
2115
|
+
"data-direction": p.direction,
|
|
2116
|
+
"data-rounded": n(R)(p.rounded)
|
|
2117
2117
|
}, [
|
|
2118
|
-
_("header",
|
|
2119
|
-
_("div",
|
|
2120
|
-
A(
|
|
2118
|
+
_("header", qt, [
|
|
2119
|
+
_("div", Ut, [
|
|
2120
|
+
A(p.$slots, "drawer-header")
|
|
2121
2121
|
]),
|
|
2122
|
-
ee(
|
|
2122
|
+
ee(Se, {
|
|
2123
2123
|
class: "button-close-drawer",
|
|
2124
2124
|
icon: "cross",
|
|
2125
2125
|
variant: "ghost",
|
|
2126
|
-
id:
|
|
2126
|
+
id: p.closeButtonId,
|
|
2127
2127
|
noText: !0,
|
|
2128
2128
|
onClick: (s) => u(s, !0)
|
|
2129
2129
|
}, {
|
|
2130
|
-
default:
|
|
2131
|
-
N(
|
|
2130
|
+
default: H(() => [
|
|
2131
|
+
N($(p.closeButtonText ?? n(We)), 1)
|
|
2132
2132
|
]),
|
|
2133
2133
|
_: 1
|
|
2134
2134
|
}, 8, ["id", "onClick"])
|
|
2135
2135
|
]),
|
|
2136
|
-
_("div",
|
|
2137
|
-
A(
|
|
2136
|
+
_("div", Gt, [
|
|
2137
|
+
A(p.$slots, "default")
|
|
2138
2138
|
])
|
|
2139
|
-
], 10,
|
|
2140
|
-
], 40,
|
|
2139
|
+
], 10, Pt)
|
|
2140
|
+
], 40, Vt));
|
|
2141
2141
|
}
|
|
2142
|
-
}),
|
|
2143
|
-
var
|
|
2142
|
+
}), Io = ["none", "strong", "weak", "invisible"], $o = ["left", "right", "up", "down"], To = ["modal", "inside"], _o = ["fixed", "absolute"], Ot = (t) => {
|
|
2143
|
+
var o, e;
|
|
2144
2144
|
const {
|
|
2145
2145
|
target: a
|
|
2146
2146
|
} = t;
|
|
2147
|
-
return !!(!((
|
|
2147
|
+
return !!(!((o = a == null ? void 0 : a.classList) != null && o.contains("db-navigation-item-expand-button")) && ((e = a == null ? void 0 : a.parentElement) != null && e.classList.contains("db-navigation-item")));
|
|
2148
2148
|
};
|
|
2149
|
-
class
|
|
2150
|
-
constructor(a,
|
|
2149
|
+
class Ht {
|
|
2150
|
+
constructor(a, o) {
|
|
2151
2151
|
ne(this, "element");
|
|
2152
2152
|
ne(this, "subNavigation");
|
|
2153
2153
|
ne(this, "parentSubNavigation", null);
|
|
@@ -2156,23 +2156,23 @@ class Ot {
|
|
|
2156
2156
|
ne(this, "mouseX", 0);
|
|
2157
2157
|
ne(this, "mouseY", 0);
|
|
2158
2158
|
var e;
|
|
2159
|
-
this.element = a, this.subNavigation =
|
|
2159
|
+
this.element = a, this.subNavigation = o, !(!this.element || !this.subNavigation) && (this.parentSubNavigation = (e = this.element) == null ? void 0 : e.closest(".db-sub-navigation"), this.parentSubNavigation && !this.element.closest(".db-drawer") && this.init());
|
|
2160
2160
|
}
|
|
2161
2161
|
init() {
|
|
2162
|
-
var
|
|
2163
|
-
const a = ((
|
|
2162
|
+
var o, e;
|
|
2163
|
+
const a = ((o = this.parentSubNavigation) == null ? void 0 : o.getBoundingClientRect().width) ?? 0;
|
|
2164
2164
|
(e = this.element) == null || e.style.setProperty("--db-navigation-item-inline-size", `${a}px`), this.initialized = !0;
|
|
2165
2165
|
}
|
|
2166
2166
|
enableFollow() {
|
|
2167
2167
|
var i;
|
|
2168
2168
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation)
|
|
2169
2169
|
return;
|
|
2170
|
-
const a =
|
|
2170
|
+
const a = at(this.subNavigation), o = this.element.getBoundingClientRect(), e = ((i = this.parentSubNavigation) == null ? void 0 : i.getBoundingClientRect().width) ?? 0;
|
|
2171
2171
|
this.triangleData = {
|
|
2172
|
-
itemRect:
|
|
2172
|
+
itemRect: o,
|
|
2173
2173
|
parentElementWidth: e,
|
|
2174
2174
|
subNavigationHeight: this.subNavigation.getBoundingClientRect().height,
|
|
2175
|
-
padding: (e -
|
|
2175
|
+
padding: (e - o.width) / 2,
|
|
2176
2176
|
outsideVX: a.vx,
|
|
2177
2177
|
outsideVY: a.vy
|
|
2178
2178
|
};
|
|
@@ -2198,15 +2198,15 @@ class Ot {
|
|
|
2198
2198
|
if (!this.triangleData)
|
|
2199
2199
|
return;
|
|
2200
2200
|
if (a === "fill-gap") {
|
|
2201
|
-
const f = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`,
|
|
2201
|
+
const f = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, p = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
2202
2202
|
return {
|
|
2203
|
-
lb: `${
|
|
2204
|
-
lt: `${
|
|
2203
|
+
lb: `${p} ${f}`,
|
|
2204
|
+
lt: `${p} 0`,
|
|
2205
2205
|
rt: "100% 0",
|
|
2206
2206
|
rb: `100% ${f}`
|
|
2207
2207
|
};
|
|
2208
2208
|
}
|
|
2209
|
-
const
|
|
2209
|
+
const o = this.getTriangleTipX(), e = this.getTriangleTipY(), i = `${o}px ${e}px`, u = `${o}px ${e}px`;
|
|
2210
2210
|
return {
|
|
2211
2211
|
lb: i,
|
|
2212
2212
|
lt: u,
|
|
@@ -2218,11 +2218,11 @@ class Ot {
|
|
|
2218
2218
|
if (!this.initialized || !this.triangleData || !this.element || !this.subNavigation)
|
|
2219
2219
|
return;
|
|
2220
2220
|
this.mouseX = a.clientX - this.triangleData.itemRect.left, this.mouseY = a.clientY - this.triangleData.itemRect.top;
|
|
2221
|
-
const
|
|
2222
|
-
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`),
|
|
2221
|
+
const o = this.hasMouseEnteredSubNavigation(), e = this.getTriangleCoordinates(o ? "fill-gap" : "safe-triangle");
|
|
2222
|
+
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), o && (this.triangleData = void 0));
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
|
-
const
|
|
2225
|
+
const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-header-drawer-navigation" }, Yt = { class: "db-header-meta-navigation" }, Kt = { class: "db-header-secondary-action" }, Jt = { class: "db-header-meta-navigation" }, Qt = { class: "db-header-navigation-bar" }, Zt = { class: "db-header-brand-container" }, xt = { class: "db-header-navigation-container" }, ei = { class: "db-header-navigation" }, ai = { class: "db-header-primary-action" }, ti = { class: "db-header-action-container" }, ii = { class: "db-header-burger-menu-container" }, oi = { class: "db-header-secondary-action" }, Co = /* @__PURE__ */ G({
|
|
2226
2226
|
__name: "header",
|
|
2227
2227
|
props: {
|
|
2228
2228
|
brand: {},
|
|
@@ -2242,105 +2242,99 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2242
2242
|
width: { default: void 0 }
|
|
2243
2243
|
},
|
|
2244
2244
|
setup(t) {
|
|
2245
|
-
const a = t,
|
|
2245
|
+
const a = t, o = d(!1), e = d(!1), i = d(null);
|
|
2246
2246
|
Y(() => {
|
|
2247
|
-
|
|
2247
|
+
o.value = !0;
|
|
2248
2248
|
}), D(
|
|
2249
|
-
() => [
|
|
2249
|
+
() => [o.value, i.value],
|
|
2250
2250
|
() => {
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
r && sa(r, {
|
|
2256
|
-
key: "data-force-mobile",
|
|
2257
|
-
value: "true"
|
|
2258
|
-
}), i.value = !0;
|
|
2259
|
-
}
|
|
2251
|
+
o.value && i.value && a.forceMobile && (da(i.value, {
|
|
2252
|
+
key: "data-force-mobile",
|
|
2253
|
+
value: "true"
|
|
2254
|
+
}), e.value = !0);
|
|
2260
2255
|
},
|
|
2261
2256
|
{
|
|
2262
2257
|
immediate: !0,
|
|
2263
2258
|
flush: "post"
|
|
2264
2259
|
}
|
|
2265
2260
|
);
|
|
2266
|
-
function
|
|
2267
|
-
const
|
|
2268
|
-
a.onToggle && a.onToggle(
|
|
2261
|
+
function u(p) {
|
|
2262
|
+
const v = !V(a.drawerOpen, "drawerOpen");
|
|
2263
|
+
a.onToggle && a.onToggle(v);
|
|
2269
2264
|
}
|
|
2270
|
-
function
|
|
2271
|
-
|
|
2265
|
+
function f(p) {
|
|
2266
|
+
Ot(p) && u();
|
|
2272
2267
|
}
|
|
2273
|
-
return (
|
|
2268
|
+
return (p, v) => (m(), S("header", {
|
|
2274
2269
|
ref_key: "_ref",
|
|
2275
|
-
ref:
|
|
2276
|
-
class:
|
|
2277
|
-
id:
|
|
2278
|
-
"data-width":
|
|
2279
|
-
"data-on-forcing-mobile":
|
|
2270
|
+
ref: i,
|
|
2271
|
+
class: P(n(q)("db-header", a.class)),
|
|
2272
|
+
id: p.id,
|
|
2273
|
+
"data-width": p.width,
|
|
2274
|
+
"data-on-forcing-mobile": p.forceMobile && !e.value
|
|
2280
2275
|
}, [
|
|
2281
|
-
ee(
|
|
2276
|
+
ee(Wt, {
|
|
2282
2277
|
class: "db-header-drawer",
|
|
2283
2278
|
spacing: "small",
|
|
2284
2279
|
rounded: !0,
|
|
2285
|
-
open: n(
|
|
2286
|
-
onClose: (
|
|
2280
|
+
open: n(V)(p.drawerOpen),
|
|
2281
|
+
onClose: (s) => u()
|
|
2287
2282
|
}, {
|
|
2288
|
-
default:
|
|
2289
|
-
_("div",
|
|
2283
|
+
default: H(() => [
|
|
2284
|
+
_("div", jt, [
|
|
2290
2285
|
_("div", {
|
|
2291
2286
|
class: "db-header-navigation",
|
|
2292
|
-
onClick:
|
|
2287
|
+
onClick: v[0] || (v[0] = async (s) => f(s))
|
|
2293
2288
|
}, [
|
|
2294
|
-
A(
|
|
2289
|
+
A(p.$slots, "default")
|
|
2295
2290
|
]),
|
|
2296
|
-
_("div",
|
|
2297
|
-
A(
|
|
2291
|
+
_("div", Yt, [
|
|
2292
|
+
A(p.$slots, "meta-navigation")
|
|
2298
2293
|
])
|
|
2299
2294
|
]),
|
|
2300
|
-
_("div",
|
|
2301
|
-
A(
|
|
2295
|
+
_("div", Kt, [
|
|
2296
|
+
A(p.$slots, "secondary-action")
|
|
2302
2297
|
])
|
|
2303
2298
|
]),
|
|
2304
2299
|
_: 3
|
|
2305
2300
|
}, 8, ["open", "onClose"]),
|
|
2306
|
-
_("div", Kt, [
|
|
2307
|
-
A(r.$slots, "meta-navigation")
|
|
2308
|
-
]),
|
|
2309
2301
|
_("div", Jt, [
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2302
|
+
A(p.$slots, "meta-navigation")
|
|
2303
|
+
]),
|
|
2304
|
+
_("div", Qt, [
|
|
2313
2305
|
_("div", Zt, [
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2306
|
+
A(p.$slots, "brand")
|
|
2307
|
+
]),
|
|
2308
|
+
_("div", xt, [
|
|
2317
2309
|
_("div", ei, [
|
|
2318
|
-
A(
|
|
2310
|
+
A(p.$slots, "default")
|
|
2311
|
+
]),
|
|
2312
|
+
_("div", ai, [
|
|
2313
|
+
A(p.$slots, "primary-action")
|
|
2319
2314
|
])
|
|
2320
2315
|
]),
|
|
2321
|
-
_("div",
|
|
2322
|
-
_("div",
|
|
2323
|
-
ee(
|
|
2316
|
+
_("div", ti, [
|
|
2317
|
+
_("div", ii, [
|
|
2318
|
+
ee(Se, {
|
|
2324
2319
|
icon: "menu",
|
|
2325
2320
|
variant: "ghost",
|
|
2326
|
-
id: l.value + "-burger-menu",
|
|
2327
2321
|
noText: !0,
|
|
2328
|
-
onClick: (
|
|
2322
|
+
onClick: (s) => u()
|
|
2329
2323
|
}, {
|
|
2330
|
-
default:
|
|
2331
|
-
N(
|
|
2324
|
+
default: H(() => [
|
|
2325
|
+
N($(p.burgerMenuLabel ?? n(Na)), 1)
|
|
2332
2326
|
]),
|
|
2333
2327
|
_: 1
|
|
2334
|
-
}, 8, ["
|
|
2328
|
+
}, 8, ["onClick"])
|
|
2335
2329
|
]),
|
|
2336
|
-
_("div",
|
|
2337
|
-
A(
|
|
2330
|
+
_("div", oi, [
|
|
2331
|
+
A(p.$slots, "secondary-action")
|
|
2338
2332
|
])
|
|
2339
2333
|
])
|
|
2340
2334
|
])
|
|
2341
|
-
], 10,
|
|
2335
|
+
], 10, Xt));
|
|
2342
2336
|
}
|
|
2343
|
-
}), li = ["id", "data-icon", "data-icon-weight", "data-icon-variant"],
|
|
2337
|
+
}), li = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], Eo = /* @__PURE__ */ G({
|
|
2344
2338
|
__name: "icon",
|
|
2345
2339
|
props: {
|
|
2346
2340
|
variant: { default: void 0 },
|
|
@@ -2354,23 +2348,42 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2354
2348
|
text: { default: void 0 }
|
|
2355
2349
|
},
|
|
2356
2350
|
setup(t) {
|
|
2357
|
-
const a = t,
|
|
2358
|
-
return (e, i) => (
|
|
2351
|
+
const a = t, o = d(null);
|
|
2352
|
+
return (e, i) => (m(), S("span", {
|
|
2359
2353
|
"aria-hidden": "true",
|
|
2360
2354
|
ref_key: "_ref",
|
|
2361
|
-
ref:
|
|
2355
|
+
ref: o,
|
|
2362
2356
|
id: e.id,
|
|
2363
|
-
class:
|
|
2357
|
+
class: P(n(q)("db-icon", a.class)),
|
|
2364
2358
|
"data-icon": e.icon,
|
|
2365
2359
|
"data-icon-weight": e.weight,
|
|
2366
2360
|
"data-icon-variant": e.variant
|
|
2367
2361
|
}, [
|
|
2368
|
-
e.text ? (
|
|
2369
|
-
N(
|
|
2362
|
+
e.text ? (m(), S(W, { key: 0 }, [
|
|
2363
|
+
N($(e.text), 1)
|
|
2370
2364
|
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
2371
2365
|
], 10, li));
|
|
2372
2366
|
}
|
|
2373
|
-
}),
|
|
2367
|
+
}), Ao = ["16", "20", "24", "32", "48", "64"], Do = [
|
|
2368
|
+
"color",
|
|
2369
|
+
"date",
|
|
2370
|
+
"datetime-local",
|
|
2371
|
+
"email",
|
|
2372
|
+
"file",
|
|
2373
|
+
// TODO: move this to own component
|
|
2374
|
+
"hidden",
|
|
2375
|
+
"month",
|
|
2376
|
+
"number",
|
|
2377
|
+
"password",
|
|
2378
|
+
"range",
|
|
2379
|
+
// TODO: move this to own component
|
|
2380
|
+
"search",
|
|
2381
|
+
"tel",
|
|
2382
|
+
"text",
|
|
2383
|
+
"time",
|
|
2384
|
+
"url",
|
|
2385
|
+
"week"
|
|
2386
|
+
], ni = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "data-size", "data-show-icon-trailing", "data-variant", "data-content", "data-wrap"], No = /* @__PURE__ */ G({
|
|
2374
2387
|
__name: "link",
|
|
2375
2388
|
props: {
|
|
2376
2389
|
content: { default: void 0 },
|
|
@@ -2394,35 +2407,35 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2394
2407
|
wrap: { type: [Boolean, String], default: void 0 }
|
|
2395
2408
|
},
|
|
2396
2409
|
setup(t) {
|
|
2397
|
-
const a = t,
|
|
2410
|
+
const a = t, o = d(null);
|
|
2398
2411
|
function e(i) {
|
|
2399
2412
|
a.onClick && a.onClick(i);
|
|
2400
2413
|
}
|
|
2401
|
-
return (i, u) => (
|
|
2414
|
+
return (i, u) => (m(), S("a", {
|
|
2402
2415
|
ref_key: "_ref",
|
|
2403
|
-
ref:
|
|
2416
|
+
ref: o,
|
|
2404
2417
|
id: i.id,
|
|
2405
|
-
class:
|
|
2418
|
+
class: P(n(q)("db-link", a.class)),
|
|
2406
2419
|
href: i.href,
|
|
2407
2420
|
target: i.target,
|
|
2408
2421
|
rel: i.rel,
|
|
2409
2422
|
role: i.role,
|
|
2410
2423
|
hrefLang: i.hreflang,
|
|
2411
|
-
"aria-disabled": n(
|
|
2424
|
+
"aria-disabled": n(R)(i.disabled),
|
|
2412
2425
|
tabIndex: i.disabled ? -1 : 0,
|
|
2413
2426
|
"data-size": i.size,
|
|
2414
|
-
"data-show-icon-trailing": n(
|
|
2427
|
+
"data-show-icon-trailing": n(R)(i.showIcon ?? !0),
|
|
2415
2428
|
"data-variant": i.variant,
|
|
2416
2429
|
"data-content": i.content || "internal",
|
|
2417
|
-
"data-wrap": n(
|
|
2430
|
+
"data-wrap": n(R)(i.wrap),
|
|
2418
2431
|
onClick: u[0] || (u[0] = async (f) => e(f))
|
|
2419
2432
|
}, [
|
|
2420
|
-
i.text ? (
|
|
2421
|
-
N(
|
|
2433
|
+
i.text ? (m(), S(W, { key: 0 }, [
|
|
2434
|
+
N($(i.text), 1)
|
|
2422
2435
|
], 64)) : A(i.$slots, "default", { key: 1 })
|
|
2423
|
-
], 10,
|
|
2436
|
+
], 10, ni));
|
|
2424
2437
|
}
|
|
2425
|
-
}),
|
|
2438
|
+
}), Fo = ["adaptive", "brand", "inline"], Mo = ["medium", "small"], Ro = ["external", "internal"], si = ["id"], zo = /* @__PURE__ */ G({
|
|
2426
2439
|
__name: "navigation",
|
|
2427
2440
|
props: {
|
|
2428
2441
|
children: { default: void 0 },
|
|
@@ -2432,24 +2445,24 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2432
2445
|
autofocus: { type: [Boolean, String] }
|
|
2433
2446
|
},
|
|
2434
2447
|
setup(t) {
|
|
2435
|
-
const a = t,
|
|
2448
|
+
const a = t, o = d(Te), e = d(null);
|
|
2436
2449
|
return Y(() => {
|
|
2437
|
-
|
|
2438
|
-
}), (i, u) => (
|
|
2450
|
+
o.value = a.id || "navigation-" + Q();
|
|
2451
|
+
}), (i, u) => (m(), S("nav", {
|
|
2439
2452
|
ref_key: "_ref",
|
|
2440
2453
|
ref: e,
|
|
2441
|
-
id:
|
|
2442
|
-
class:
|
|
2454
|
+
id: o.value,
|
|
2455
|
+
class: P(n(q)("db-navigation", a.class))
|
|
2443
2456
|
}, [
|
|
2444
2457
|
_("menu", null, [
|
|
2445
2458
|
A(i.$slots, "default")
|
|
2446
2459
|
])
|
|
2447
|
-
], 10,
|
|
2460
|
+
], 10, si));
|
|
2448
2461
|
}
|
|
2449
|
-
}),
|
|
2462
|
+
}), di = ["id", "data-width", "data-icon", "data-show-icon", "data-active", "data-wrap", "aria-disabled"], ui = ["aria-haspopup", "aria-expanded", "disabled"], ri = ["data-force-close", "id"], ci = {
|
|
2450
2463
|
key: 0,
|
|
2451
2464
|
class: "db-mobile-navigation-back"
|
|
2452
|
-
},
|
|
2465
|
+
}, Vo = /* @__PURE__ */ G({
|
|
2453
2466
|
__name: "navigation-item",
|
|
2454
2467
|
props: {
|
|
2455
2468
|
active: { type: Boolean, default: void 0 },
|
|
@@ -2471,15 +2484,15 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2471
2484
|
text: { default: void 0 }
|
|
2472
2485
|
},
|
|
2473
2486
|
setup(t) {
|
|
2474
|
-
const a = t,
|
|
2475
|
-
"sub-navigation-" +
|
|
2476
|
-
),
|
|
2487
|
+
const a = t, o = d(!1), e = d(!1), i = d(!0), u = d(!1), f = d(!1), p = d(
|
|
2488
|
+
"sub-navigation-" + Q()
|
|
2489
|
+
), v = d(void 0), s = d(null);
|
|
2477
2490
|
Y(() => {
|
|
2478
|
-
|
|
2491
|
+
o.value = !0;
|
|
2479
2492
|
}), D(
|
|
2480
2493
|
() => [a.subNavigationExpanded],
|
|
2481
2494
|
() => {
|
|
2482
|
-
a.subNavigationExpanded !== void 0 && (u.value = !!
|
|
2495
|
+
a.subNavigationExpanded !== void 0 && (u.value = !!V(
|
|
2483
2496
|
a.subNavigationExpanded,
|
|
2484
2497
|
"subNavigationExpanded"
|
|
2485
2498
|
));
|
|
@@ -2489,14 +2502,14 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2489
2502
|
flush: "post"
|
|
2490
2503
|
}
|
|
2491
2504
|
), D(
|
|
2492
|
-
() => [
|
|
2505
|
+
() => [o.value, s.value],
|
|
2493
2506
|
() => {
|
|
2494
2507
|
var h;
|
|
2495
|
-
if (
|
|
2496
|
-
const
|
|
2497
|
-
|
|
2508
|
+
if (o.value && s.value) {
|
|
2509
|
+
const r = s.value.querySelector("menu");
|
|
2510
|
+
r && (((h = r.children) == null ? void 0 : h.length) > 0 ? (e.value = !0, v.value || (v.value = new Ht(
|
|
2498
2511
|
s.value,
|
|
2499
|
-
|
|
2512
|
+
r
|
|
2500
2513
|
))) : i.value = !1);
|
|
2501
2514
|
}
|
|
2502
2515
|
},
|
|
@@ -2505,84 +2518,84 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2505
2518
|
flush: "post"
|
|
2506
2519
|
}
|
|
2507
2520
|
);
|
|
2508
|
-
function
|
|
2509
|
-
var
|
|
2510
|
-
((
|
|
2521
|
+
function g(h) {
|
|
2522
|
+
var r;
|
|
2523
|
+
((r = h == null ? void 0 : h.target) == null ? void 0 : r.nodeName) === "A" && (f.value = !0, Z(() => {
|
|
2511
2524
|
f.value = !1;
|
|
2512
2525
|
}, 1e3));
|
|
2513
2526
|
}
|
|
2514
2527
|
function T(h) {
|
|
2515
2528
|
a.onClick && (h.stopPropagation(), a.onClick(h)), e.value && (u.value = !0);
|
|
2516
2529
|
}
|
|
2517
|
-
function
|
|
2530
|
+
function w(h) {
|
|
2518
2531
|
h.stopPropagation(), u.value = !1;
|
|
2519
2532
|
}
|
|
2520
|
-
return (h,
|
|
2533
|
+
return (h, r) => (m(), S("li", {
|
|
2521
2534
|
ref_key: "_ref",
|
|
2522
2535
|
ref: s,
|
|
2523
2536
|
id: h.id,
|
|
2524
|
-
onMouseover:
|
|
2525
|
-
var
|
|
2526
|
-
return (
|
|
2537
|
+
onMouseover: r[2] || (r[2] = async (c) => {
|
|
2538
|
+
var L;
|
|
2539
|
+
return (L = v.value) == null ? void 0 : L.enableFollow();
|
|
2527
2540
|
}),
|
|
2528
|
-
onMouseleave:
|
|
2529
|
-
var
|
|
2530
|
-
return (
|
|
2541
|
+
onMouseleave: r[3] || (r[3] = async (c) => {
|
|
2542
|
+
var L;
|
|
2543
|
+
return (L = v.value) == null ? void 0 : L.disableFollow();
|
|
2531
2544
|
}),
|
|
2532
|
-
onMousemove:
|
|
2533
|
-
var
|
|
2534
|
-
return (
|
|
2545
|
+
onMousemove: r[4] || (r[4] = async (c) => {
|
|
2546
|
+
var L;
|
|
2547
|
+
return (L = v.value) == null ? void 0 : L.followByMouseEvent(c);
|
|
2535
2548
|
}),
|
|
2536
|
-
class:
|
|
2549
|
+
class: P(n(q)("db-navigation-item", a.class)),
|
|
2537
2550
|
"data-width": h.width,
|
|
2538
2551
|
"data-icon": h.icon,
|
|
2539
|
-
"data-show-icon": n(
|
|
2552
|
+
"data-show-icon": n(R)(h.showIcon),
|
|
2540
2553
|
"data-active": h.active,
|
|
2541
|
-
"data-wrap": n(
|
|
2542
|
-
"aria-disabled": n(
|
|
2554
|
+
"data-wrap": n(R)(h.wrap),
|
|
2555
|
+
"aria-disabled": n(R)(h.disabled)
|
|
2543
2556
|
}, [
|
|
2544
|
-
i.value ?
|
|
2545
|
-
h.text ? (
|
|
2546
|
-
N(
|
|
2557
|
+
i.value ? U("", !0) : (m(), S(W, { key: 0 }, [
|
|
2558
|
+
h.text ? (m(), S(W, { key: 0 }, [
|
|
2559
|
+
N($(h.text), 1)
|
|
2547
2560
|
], 64)) : A(h.$slots, "default", { key: 1 })
|
|
2548
2561
|
], 64)),
|
|
2549
|
-
i.value ? (
|
|
2562
|
+
i.value ? (m(), S(W, { key: 1 }, [
|
|
2550
2563
|
_("button", {
|
|
2551
2564
|
class: "db-navigation-item-expand-button",
|
|
2552
2565
|
"aria-haspopup": e.value,
|
|
2553
2566
|
"aria-expanded": u.value,
|
|
2554
|
-
disabled: n(
|
|
2555
|
-
onClick:
|
|
2567
|
+
disabled: n(V)(h.disabled, "disabled"),
|
|
2568
|
+
onClick: r[0] || (r[0] = async (c) => T(c))
|
|
2556
2569
|
}, [
|
|
2557
|
-
h.text ? (
|
|
2558
|
-
N(
|
|
2570
|
+
h.text ? (m(), S(W, { key: 0 }, [
|
|
2571
|
+
N($(h.text), 1)
|
|
2559
2572
|
], 64)) : A(h.$slots, "default", { key: 1 })
|
|
2560
|
-
], 8,
|
|
2573
|
+
], 8, ui),
|
|
2561
2574
|
_("menu", {
|
|
2562
2575
|
class: "db-sub-navigation",
|
|
2563
2576
|
"data-force-close": f.value,
|
|
2564
|
-
id:
|
|
2565
|
-
onClick:
|
|
2577
|
+
id: p.value,
|
|
2578
|
+
onClick: r[1] || (r[1] = async (c) => g(c))
|
|
2566
2579
|
}, [
|
|
2567
|
-
e.value ? (
|
|
2568
|
-
ee(
|
|
2580
|
+
e.value ? (m(), S("div", ci, [
|
|
2581
|
+
ee(Se, {
|
|
2569
2582
|
icon: "arrow_left",
|
|
2570
2583
|
variant: "ghost",
|
|
2571
2584
|
id: h.backButtonId,
|
|
2572
|
-
onClick: (c) =>
|
|
2585
|
+
onClick: (c) => w(c)
|
|
2573
2586
|
}, {
|
|
2574
|
-
default:
|
|
2575
|
-
N(
|
|
2587
|
+
default: H(() => [
|
|
2588
|
+
N($(h.backButtonText ?? n(Aa)), 1)
|
|
2576
2589
|
]),
|
|
2577
2590
|
_: 1
|
|
2578
2591
|
}, 8, ["id", "onClick"])
|
|
2579
|
-
])) :
|
|
2592
|
+
])) : U("", !0),
|
|
2580
2593
|
A(h.$slots, "sub-navigation")
|
|
2581
|
-
], 8,
|
|
2582
|
-
], 64)) :
|
|
2583
|
-
], 42,
|
|
2594
|
+
], 8, ri)
|
|
2595
|
+
], 64)) : U("", !0)
|
|
2596
|
+
], 42, di));
|
|
2584
2597
|
}
|
|
2585
|
-
}),
|
|
2598
|
+
}), vi = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-show-icon", "data-link-variant"], fi = { key: 0 }, pi = { key: 1 }, Po = /* @__PURE__ */ G({
|
|
2586
2599
|
__name: "notification",
|
|
2587
2600
|
props: {
|
|
2588
2601
|
ariaLive: { default: void 0 },
|
|
@@ -2613,32 +2626,32 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2613
2626
|
text: { default: void 0 }
|
|
2614
2627
|
},
|
|
2615
2628
|
setup(t) {
|
|
2616
|
-
const a = t,
|
|
2629
|
+
const a = t, o = d(null);
|
|
2617
2630
|
function e(i) {
|
|
2618
2631
|
i && (i.stopPropagation(), a.onClose && a.onClose(i));
|
|
2619
2632
|
}
|
|
2620
|
-
return (i, u) => (
|
|
2633
|
+
return (i, u) => (m(), S("article", {
|
|
2621
2634
|
ref_key: "_ref",
|
|
2622
|
-
ref:
|
|
2635
|
+
ref: o,
|
|
2623
2636
|
id: i.id,
|
|
2624
|
-
class:
|
|
2637
|
+
class: P(n(q)("db-notification", a.class)),
|
|
2625
2638
|
"aria-live": i.ariaLive,
|
|
2626
2639
|
"data-semantic": i.semantic,
|
|
2627
2640
|
"data-variant": i.variant,
|
|
2628
2641
|
"data-icon": i.icon,
|
|
2629
|
-
"data-show-icon": n(
|
|
2642
|
+
"data-show-icon": n(R)(i.showIcon),
|
|
2630
2643
|
"data-link-variant": i.linkVariant
|
|
2631
2644
|
}, [
|
|
2632
2645
|
A(i.$slots, "image"),
|
|
2633
|
-
n(x)(i.headline, i.showHeadline) ? (
|
|
2646
|
+
n(x)(i.headline, i.showHeadline) ? (m(), S("header", fi, $(i.headline), 1)) : U("", !0),
|
|
2634
2647
|
_("p", null, [
|
|
2635
|
-
i.text ? (
|
|
2636
|
-
N(
|
|
2648
|
+
i.text ? (m(), S(W, { key: 0 }, [
|
|
2649
|
+
N($(i.text), 1)
|
|
2637
2650
|
], 64)) : A(i.$slots, "default", { key: 1 })
|
|
2638
2651
|
]),
|
|
2639
|
-
n(x)(i.timestamp, i.showTimestamp) ? (
|
|
2652
|
+
n(x)(i.timestamp, i.showTimestamp) ? (m(), S("span", pi, $(i.timestamp), 1)) : U("", !0),
|
|
2640
2653
|
A(i.$slots, "link"),
|
|
2641
|
-
n(
|
|
2654
|
+
n(V)(i.closeable, "closeable") ? (m(), J(Se, {
|
|
2642
2655
|
key: 2,
|
|
2643
2656
|
icon: "cross",
|
|
2644
2657
|
variant: "ghost",
|
|
@@ -2647,14 +2660,14 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2647
2660
|
noText: !0,
|
|
2648
2661
|
onClick: (f) => e(f)
|
|
2649
2662
|
}, {
|
|
2650
|
-
default:
|
|
2651
|
-
N(
|
|
2663
|
+
default: H(() => [
|
|
2664
|
+
N($(i.closeButtonText ?? n(We)), 1)
|
|
2652
2665
|
]),
|
|
2653
2666
|
_: 1
|
|
2654
|
-
}, 8, ["id", "onClick"])) :
|
|
2655
|
-
], 10,
|
|
2667
|
+
}, 8, ["id", "onClick"])) : U("", !0)
|
|
2668
|
+
], 10, vi));
|
|
2656
2669
|
}
|
|
2657
|
-
}),
|
|
2670
|
+
}), qo = ["docked", "standalone", "overlay"], Uo = ["block", "inline"], Go = ["assertive", "polite", "off"], hi = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], Wo = /* @__PURE__ */ G({
|
|
2658
2671
|
__name: "page",
|
|
2659
2672
|
props: {
|
|
2660
2673
|
documentOverflow: { default: void 0 },
|
|
@@ -2670,32 +2683,32 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2670
2683
|
autofocus: { type: [Boolean, String] }
|
|
2671
2684
|
},
|
|
2672
2685
|
setup(t) {
|
|
2673
|
-
const a = t,
|
|
2686
|
+
const a = t, o = d(!1), e = d(null);
|
|
2674
2687
|
return typeof window < "u" && document && (a.documentOverflow === "hidden" || a.variant === "fixed" && a.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), Y(() => {
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
}) :
|
|
2678
|
-
}),
|
|
2688
|
+
o.value = !a.fadeIn, document && a.fadeIn ? document.fonts.ready.then(() => {
|
|
2689
|
+
o.value = !0;
|
|
2690
|
+
}) : o.value = !0;
|
|
2691
|
+
}), Ca(() => {
|
|
2679
2692
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
2680
|
-
}), (i, u) => (
|
|
2693
|
+
}), (i, u) => (m(), S("div", {
|
|
2681
2694
|
ref_key: "_ref",
|
|
2682
2695
|
ref: e,
|
|
2683
2696
|
id: i.id,
|
|
2684
|
-
class:
|
|
2697
|
+
class: P(n(q)("db-page", a.class)),
|
|
2685
2698
|
"data-variant": i.variant,
|
|
2686
|
-
"data-fade-in": n(
|
|
2687
|
-
"data-fonts-loaded": n(
|
|
2699
|
+
"data-fade-in": n(R)(i.fadeIn),
|
|
2700
|
+
"data-fonts-loaded": n(R)(o.value)
|
|
2688
2701
|
}, [
|
|
2689
2702
|
A(i.$slots, "header"),
|
|
2690
2703
|
_("main", {
|
|
2691
|
-
class:
|
|
2704
|
+
class: P(n(q)("db-main", i.mainClass))
|
|
2692
2705
|
}, [
|
|
2693
2706
|
A(i.$slots, "default")
|
|
2694
2707
|
], 2),
|
|
2695
2708
|
A(i.$slots, "footer")
|
|
2696
|
-
], 10,
|
|
2709
|
+
], 10, hi));
|
|
2697
2710
|
}
|
|
2698
|
-
}),
|
|
2711
|
+
}), Oo = ["auto", "fixed"], Ho = ["hidden", "auto"], gi = ["id"], mi = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Xo = /* @__PURE__ */ G({
|
|
2699
2712
|
__name: "popover",
|
|
2700
2713
|
props: {
|
|
2701
2714
|
open: { type: [Boolean, String], default: void 0 },
|
|
@@ -2713,25 +2726,25 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2713
2726
|
width: { default: void 0 }
|
|
2714
2727
|
},
|
|
2715
2728
|
setup(t) {
|
|
2716
|
-
const a = t,
|
|
2729
|
+
const a = t, o = d(!1), e = d(!1), i = d(void 0), u = d(void 0), f = d(null);
|
|
2717
2730
|
Y(() => {
|
|
2718
|
-
|
|
2731
|
+
o.value = !0;
|
|
2719
2732
|
}), D(
|
|
2720
|
-
() => [f.value,
|
|
2733
|
+
() => [f.value, o.value],
|
|
2721
2734
|
() => {
|
|
2722
|
-
if (f.value &&
|
|
2723
|
-
|
|
2724
|
-
const h =
|
|
2725
|
-
h && (h.ariaHasPopup = "true"),
|
|
2735
|
+
if (f.value && o.value) {
|
|
2736
|
+
o.value = !1;
|
|
2737
|
+
const h = w();
|
|
2738
|
+
h && (h.ariaHasPopup = "true"), v(), f.value.addEventListener(
|
|
2726
2739
|
"keydown",
|
|
2727
|
-
(
|
|
2728
|
-
), ["mouseenter", "focusin"].forEach((
|
|
2729
|
-
f.value.addEventListener(
|
|
2730
|
-
}), ["mouseleave", "focusout"].forEach((
|
|
2731
|
-
f.value.addEventListener(
|
|
2732
|
-
}), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((
|
|
2733
|
-
const c =
|
|
2734
|
-
c && !c.isIntersecting &&
|
|
2740
|
+
(r) => p(r)
|
|
2741
|
+
), ["mouseenter", "focusin"].forEach((r) => {
|
|
2742
|
+
f.value.addEventListener(r, () => g());
|
|
2743
|
+
}), ["mouseleave", "focusout"].forEach((r) => {
|
|
2744
|
+
f.value.addEventListener(r, () => T());
|
|
2745
|
+
}), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((r) => {
|
|
2746
|
+
const c = r.find(({ target: L }) => L === w());
|
|
2747
|
+
c && !c.isIntersecting && p(!1);
|
|
2735
2748
|
}));
|
|
2736
2749
|
}
|
|
2737
2750
|
},
|
|
@@ -2743,7 +2756,7 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2743
2756
|
() => [f.value, e.value],
|
|
2744
2757
|
() => {
|
|
2745
2758
|
if (f.value) {
|
|
2746
|
-
const h =
|
|
2759
|
+
const h = w();
|
|
2747
2760
|
h && (h.ariaExpanded = (!!e.value).toString());
|
|
2748
2761
|
}
|
|
2749
2762
|
},
|
|
@@ -2752,16 +2765,16 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2752
2765
|
flush: "post"
|
|
2753
2766
|
}
|
|
2754
2767
|
);
|
|
2755
|
-
function
|
|
2768
|
+
function p(h) {
|
|
2756
2769
|
if (!h || h.key === "Escape")
|
|
2757
|
-
for (const
|
|
2758
|
-
|
|
2770
|
+
for (const r of Array.from(f.value.children))
|
|
2771
|
+
r.blur();
|
|
2759
2772
|
}
|
|
2760
|
-
function
|
|
2773
|
+
function v() {
|
|
2761
2774
|
if (!f.value) return;
|
|
2762
2775
|
const h = f.value.querySelector("article");
|
|
2763
2776
|
h && Z(() => {
|
|
2764
|
-
|
|
2777
|
+
ra(
|
|
2765
2778
|
h,
|
|
2766
2779
|
f.value,
|
|
2767
2780
|
a.placement ?? "bottom"
|
|
@@ -2769,60 +2782,60 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2769
2782
|
}, 1);
|
|
2770
2783
|
}
|
|
2771
2784
|
function s(h) {
|
|
2772
|
-
var
|
|
2773
|
-
(
|
|
2785
|
+
var r, c;
|
|
2786
|
+
(r = h == null ? void 0 : h.target) != null && r.contains && ((c = h == null ? void 0 : h.target) != null && c.contains(f.value)) && v();
|
|
2774
2787
|
}
|
|
2775
|
-
function
|
|
2776
|
-
var
|
|
2777
|
-
e.value = !0, i.value = new
|
|
2788
|
+
function g() {
|
|
2789
|
+
var r;
|
|
2790
|
+
e.value = !0, i.value = new Be().addCallback(
|
|
2778
2791
|
(c) => s(c)
|
|
2779
|
-
),
|
|
2780
|
-
const h =
|
|
2781
|
-
h && ((
|
|
2792
|
+
), v();
|
|
2793
|
+
const h = w();
|
|
2794
|
+
h && ((r = u.value) == null || r.observe(h));
|
|
2782
2795
|
}
|
|
2783
2796
|
function T(h) {
|
|
2784
|
-
var
|
|
2797
|
+
var r;
|
|
2785
2798
|
{
|
|
2786
|
-
e.value = !1, i.value && new
|
|
2799
|
+
e.value = !1, i.value && new Be().removeCallback(
|
|
2787
2800
|
i.value
|
|
2788
2801
|
);
|
|
2789
|
-
const c =
|
|
2790
|
-
c && ((
|
|
2802
|
+
const c = w();
|
|
2803
|
+
c && ((r = u.value) == null || r.unobserve(c));
|
|
2791
2804
|
}
|
|
2792
2805
|
}
|
|
2793
|
-
function
|
|
2806
|
+
function w() {
|
|
2794
2807
|
var h;
|
|
2795
2808
|
if (f.value) {
|
|
2796
|
-
const
|
|
2797
|
-
if (
|
|
2798
|
-
const c =
|
|
2809
|
+
const r = Array.from(f.value.children);
|
|
2810
|
+
if (r.length >= 2) {
|
|
2811
|
+
const c = r[0];
|
|
2799
2812
|
return c.tagName.includes("-") ? ((h = c.children) == null ? void 0 : h.length) > 0 ? c.children[0] : null : c;
|
|
2800
2813
|
}
|
|
2801
2814
|
}
|
|
2802
2815
|
return null;
|
|
2803
2816
|
}
|
|
2804
|
-
return (h,
|
|
2817
|
+
return (h, r) => (m(), S("div", {
|
|
2805
2818
|
ref_key: "_ref",
|
|
2806
2819
|
ref: f,
|
|
2807
2820
|
id: h.id,
|
|
2808
|
-
class:
|
|
2821
|
+
class: P(n(q)("db-popover", a.class))
|
|
2809
2822
|
}, [
|
|
2810
2823
|
A(h.$slots, "trigger"),
|
|
2811
2824
|
_("article", {
|
|
2812
2825
|
class: "db-popover-content",
|
|
2813
2826
|
"data-spacing": h.spacing,
|
|
2814
|
-
"data-gap": n(
|
|
2815
|
-
"data-animation": n(
|
|
2816
|
-
"data-open": n(
|
|
2827
|
+
"data-gap": n(R)(h.gap),
|
|
2828
|
+
"data-animation": n(R)(h.animation ?? !0),
|
|
2829
|
+
"data-open": n(R)(h.open),
|
|
2817
2830
|
"data-delay": h.delay,
|
|
2818
2831
|
"data-width": h.width,
|
|
2819
2832
|
"data-placement": h.placement
|
|
2820
2833
|
}, [
|
|
2821
2834
|
A(h.$slots, "default")
|
|
2822
|
-
], 8,
|
|
2823
|
-
], 10,
|
|
2835
|
+
], 8, mi)
|
|
2836
|
+
], 10, gi));
|
|
2824
2837
|
}
|
|
2825
|
-
}),
|
|
2838
|
+
}), bi = ["data-size", "data-hide-label", "data-hide-asterisk", "for"], yi = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required"], jo = /* @__PURE__ */ G({
|
|
2826
2839
|
__name: "radio",
|
|
2827
2840
|
props: {
|
|
2828
2841
|
children: { default: void 0 },
|
|
@@ -2851,9 +2864,9 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2851
2864
|
},
|
|
2852
2865
|
emits: ["update:value"],
|
|
2853
2866
|
setup(t, { emit: a }) {
|
|
2854
|
-
const
|
|
2867
|
+
const o = a, e = t, i = d(!1), u = d(void 0), f = d(null);
|
|
2855
2868
|
Y(() => {
|
|
2856
|
-
i.value = !0, u.value = e.id ?? `radio-${
|
|
2869
|
+
i.value = !0, u.value = e.id ?? `radio-${Q()}`;
|
|
2857
2870
|
}), D(
|
|
2858
2871
|
() => [i.value, f.value, e.checked],
|
|
2859
2872
|
() => {
|
|
@@ -2864,44 +2877,44 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2864
2877
|
flush: "post"
|
|
2865
2878
|
}
|
|
2866
2879
|
);
|
|
2867
|
-
function
|
|
2868
|
-
e.onChange && e.onChange(
|
|
2880
|
+
function p(g) {
|
|
2881
|
+
e.onChange && e.onChange(g), de(o, g);
|
|
2869
2882
|
}
|
|
2870
|
-
function
|
|
2871
|
-
e.onBlur && e.onBlur(
|
|
2883
|
+
function v(g) {
|
|
2884
|
+
e.onBlur && e.onBlur(g);
|
|
2872
2885
|
}
|
|
2873
|
-
function s(
|
|
2874
|
-
e.onFocus && e.onFocus(
|
|
2886
|
+
function s(g) {
|
|
2887
|
+
e.onFocus && e.onFocus(g);
|
|
2875
2888
|
}
|
|
2876
|
-
return (
|
|
2877
|
-
"data-size":
|
|
2878
|
-
"data-hide-label": n(ie)(
|
|
2879
|
-
"data-hide-asterisk": n(ie)(
|
|
2880
|
-
class:
|
|
2889
|
+
return (g, T) => (m(), S("label", {
|
|
2890
|
+
"data-size": g.size,
|
|
2891
|
+
"data-hide-label": n(ie)(g.showLabel),
|
|
2892
|
+
"data-hide-asterisk": n(ie)(g.showRequiredAsterisk),
|
|
2893
|
+
class: P(n(q)("db-radio", e.class)),
|
|
2881
2894
|
for: u.value
|
|
2882
2895
|
}, [
|
|
2883
2896
|
_("input", {
|
|
2884
2897
|
type: "radio",
|
|
2885
|
-
"aria-invalid":
|
|
2886
|
-
"data-custom-validity":
|
|
2898
|
+
"aria-invalid": g.validation === "invalid",
|
|
2899
|
+
"data-custom-validity": g.validation,
|
|
2887
2900
|
ref_key: "_ref",
|
|
2888
2901
|
ref: f,
|
|
2889
2902
|
id: u.value,
|
|
2890
|
-
name:
|
|
2891
|
-
checked: n(
|
|
2892
|
-
disabled: n(
|
|
2893
|
-
value:
|
|
2894
|
-
required: n(
|
|
2895
|
-
onChange: T[0] || (T[0] = async (
|
|
2896
|
-
onBlur: T[1] || (T[1] = async (
|
|
2897
|
-
onFocus: T[2] || (T[2] = async (
|
|
2898
|
-
}, null, 40,
|
|
2899
|
-
|
|
2900
|
-
N(
|
|
2901
|
-
], 64)) : A(
|
|
2902
|
-
], 10,
|
|
2903
|
+
name: g.name,
|
|
2904
|
+
checked: n(V)(g.checked, "checked"),
|
|
2905
|
+
disabled: n(V)(g.disabled, "disabled"),
|
|
2906
|
+
value: g.value,
|
|
2907
|
+
required: n(V)(g.required, "required"),
|
|
2908
|
+
onChange: T[0] || (T[0] = async (w) => p(w)),
|
|
2909
|
+
onBlur: T[1] || (T[1] = async (w) => v(w)),
|
|
2910
|
+
onFocus: T[2] || (T[2] = async (w) => s(w))
|
|
2911
|
+
}, null, 40, yi),
|
|
2912
|
+
g.label ? (m(), S(W, { key: 0 }, [
|
|
2913
|
+
N($(g.label), 1)
|
|
2914
|
+
], 64)) : A(g.$slots, "default", { key: 1 })
|
|
2915
|
+
], 10, bi));
|
|
2903
2916
|
}
|
|
2904
|
-
}),
|
|
2917
|
+
}), wi = ["id", "data-spacing", "data-width"], Yo = /* @__PURE__ */ G({
|
|
2905
2918
|
__name: "section",
|
|
2906
2919
|
props: {
|
|
2907
2920
|
children: { default: void 0 },
|
|
@@ -2913,24 +2926,24 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2913
2926
|
width: { default: void 0 }
|
|
2914
2927
|
},
|
|
2915
2928
|
setup(t) {
|
|
2916
|
-
const a = t,
|
|
2929
|
+
const a = t, o = d(Te), e = d(null);
|
|
2917
2930
|
return Y(() => {
|
|
2918
|
-
|
|
2919
|
-
}), (i, u) => (
|
|
2931
|
+
o.value = a.id || "section-" + Q();
|
|
2932
|
+
}), (i, u) => (m(), S("section", {
|
|
2920
2933
|
ref_key: "_ref",
|
|
2921
2934
|
ref: e,
|
|
2922
|
-
id:
|
|
2923
|
-
class:
|
|
2935
|
+
id: o.value,
|
|
2936
|
+
class: P(n(q)("db-section", a.class)),
|
|
2924
2937
|
"data-spacing": i.spacing || "medium",
|
|
2925
2938
|
"data-width": i.width
|
|
2926
2939
|
}, [
|
|
2927
2940
|
A(i.$slots, "default")
|
|
2928
|
-
], 10,
|
|
2941
|
+
], 10, wi));
|
|
2929
2942
|
}
|
|
2930
|
-
}),
|
|
2943
|
+
}), ki = ["data-variant", "data-hide-label", "data-hide-asterisk", "data-icon", "data-show-icon"], Si = ["for"], Bi = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Li = ["label"], Ii = ["value", "selected", "disabled"], $i = ["value", "disabled", "selected"], Ti = ["id"], _i = {
|
|
2931
2944
|
"data-visually-hidden": "true",
|
|
2932
2945
|
role: "status"
|
|
2933
|
-
},
|
|
2946
|
+
}, Ko = /* @__PURE__ */ G({
|
|
2934
2947
|
__name: "select",
|
|
2935
2948
|
props: {
|
|
2936
2949
|
children: { default: void 0 },
|
|
@@ -2973,27 +2986,27 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
2973
2986
|
},
|
|
2974
2987
|
emits: ["update:value"],
|
|
2975
2988
|
setup(t, { emit: a }) {
|
|
2976
|
-
const
|
|
2989
|
+
const o = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(""), g = d(void 0), T = d(""), w = d(!1), h = d(""), r = d(null);
|
|
2977
2990
|
Y(() => {
|
|
2978
|
-
|
|
2979
|
-
const
|
|
2980
|
-
i.value =
|
|
2991
|
+
w.value = !0;
|
|
2992
|
+
const B = e.id ?? `select-${Q()}`;
|
|
2993
|
+
i.value = B, u.value = B + fe, f.value = B + pe, p.value = B + he, s.value = B + Re, v.value = e.invalidMessage || te;
|
|
2981
2994
|
}), D(
|
|
2982
|
-
() => [
|
|
2995
|
+
() => [r.value, e.invalidMessage],
|
|
2983
2996
|
() => {
|
|
2984
|
-
var
|
|
2985
|
-
|
|
2997
|
+
var B;
|
|
2998
|
+
v.value = e.invalidMessage || ((B = r.value) == null ? void 0 : B.validationMessage) || te;
|
|
2986
2999
|
},
|
|
2987
3000
|
{
|
|
2988
3001
|
immediate: !0,
|
|
2989
3002
|
flush: "post"
|
|
2990
3003
|
}
|
|
2991
3004
|
), D(
|
|
2992
|
-
() => [i.value,
|
|
3005
|
+
() => [i.value, w.value],
|
|
2993
3006
|
() => {
|
|
2994
|
-
if (i.value &&
|
|
2995
|
-
const
|
|
2996
|
-
u.value =
|
|
3007
|
+
if (i.value && w.value) {
|
|
3008
|
+
const B = i.value + fe, M = i.value + Re;
|
|
3009
|
+
u.value = B, f.value = i.value + pe, p.value = i.value + he, s.value = M, x(e.message, e.showMessage) ? g.value = B : g.value = M, L(), w.value = !1;
|
|
2997
3010
|
}
|
|
2998
3011
|
},
|
|
2999
3012
|
{
|
|
@@ -3013,118 +3026,118 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3013
3026
|
function c() {
|
|
3014
3027
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3015
3028
|
}
|
|
3016
|
-
function
|
|
3017
|
-
var
|
|
3018
|
-
!((
|
|
3029
|
+
function L() {
|
|
3030
|
+
var B, M, oe;
|
|
3031
|
+
!((B = r.value) != null && B.validity.valid) || e.validation === "invalid" ? (g.value = p.value, v.value = e.invalidMessage || ((M = r.value) == null ? void 0 : M.validationMessage) || te, me() && (h.value = v.value, Z(() => h.value = "", 1e3))) : c() && ((oe = r.value) != null && oe.validity.valid) && e.required ? (g.value = f.value, me() && (h.value = e.validMessage ?? ge, Z(() => h.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = u.value : g.value = s.value;
|
|
3019
3032
|
}
|
|
3020
|
-
function C(
|
|
3021
|
-
e.onClick && e.onClick(
|
|
3033
|
+
function C(B) {
|
|
3034
|
+
e.onClick && e.onClick(B);
|
|
3022
3035
|
}
|
|
3023
|
-
function b(
|
|
3024
|
-
e.input && e.input(
|
|
3036
|
+
function b(B) {
|
|
3037
|
+
e.input && e.input(B), T.value = B.target.value, e.onInput && e.onInput(B), de(o, B), L();
|
|
3025
3038
|
}
|
|
3026
|
-
function
|
|
3027
|
-
e.onChange && e.onChange(
|
|
3039
|
+
function k(B) {
|
|
3040
|
+
e.onChange && e.onChange(B), de(o, B), L();
|
|
3028
3041
|
}
|
|
3029
|
-
function
|
|
3030
|
-
e.onBlur && e.onBlur(
|
|
3042
|
+
function F(B) {
|
|
3043
|
+
e.onBlur && e.onBlur(B);
|
|
3031
3044
|
}
|
|
3032
|
-
function y(
|
|
3033
|
-
e.onFocus && e.onFocus(
|
|
3045
|
+
function y(B) {
|
|
3046
|
+
e.onFocus && e.onFocus(B);
|
|
3047
|
+
}
|
|
3048
|
+
function X(B) {
|
|
3049
|
+
var M;
|
|
3050
|
+
return B.label ?? ((M = B.value) == null ? void 0 : M.toString());
|
|
3034
3051
|
}
|
|
3035
|
-
|
|
3036
|
-
var
|
|
3037
|
-
return
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
"data-
|
|
3044
|
-
"data-hide-label": n(ie)(k.showLabel),
|
|
3045
|
-
"data-hide-asterisk": n(ie)(k.showRequiredAsterisk),
|
|
3046
|
-
"data-icon": k.icon,
|
|
3047
|
-
"data-show-icon": n(F)(k.showIcon)
|
|
3052
|
+
return (B, M) => {
|
|
3053
|
+
var oe;
|
|
3054
|
+
return m(), S("div", {
|
|
3055
|
+
class: P(n(q)("db-select", e.class)),
|
|
3056
|
+
"data-variant": B.variant,
|
|
3057
|
+
"data-hide-label": n(ie)(B.showLabel),
|
|
3058
|
+
"data-hide-asterisk": n(ie)(B.showRequiredAsterisk),
|
|
3059
|
+
"data-icon": B.icon,
|
|
3060
|
+
"data-show-icon": n(R)(B.showIcon)
|
|
3048
3061
|
}, [
|
|
3049
|
-
_("label", { for: i.value },
|
|
3062
|
+
_("label", { for: i.value }, $(B.label ?? n(we)), 9, Si),
|
|
3050
3063
|
_("select", {
|
|
3051
|
-
"aria-invalid":
|
|
3052
|
-
"data-custom-validity":
|
|
3064
|
+
"aria-invalid": B.validation === "invalid",
|
|
3065
|
+
"data-custom-validity": B.validation,
|
|
3053
3066
|
ref_key: "_ref",
|
|
3054
|
-
ref:
|
|
3055
|
-
required: n(
|
|
3056
|
-
disabled: n(
|
|
3067
|
+
ref: r,
|
|
3068
|
+
required: n(V)(B.required, "required"),
|
|
3069
|
+
disabled: n(V)(B.disabled, "disabled"),
|
|
3057
3070
|
id: i.value,
|
|
3058
|
-
name:
|
|
3059
|
-
size:
|
|
3060
|
-
value:
|
|
3061
|
-
autocomplete:
|
|
3062
|
-
multiple:
|
|
3063
|
-
onInput:
|
|
3064
|
-
onClick:
|
|
3065
|
-
onChange:
|
|
3066
|
-
onBlur:
|
|
3067
|
-
onFocus:
|
|
3068
|
-
"aria-describedby":
|
|
3071
|
+
name: B.name,
|
|
3072
|
+
size: B.size,
|
|
3073
|
+
value: B.value ?? T.value,
|
|
3074
|
+
autocomplete: B.autocomplete,
|
|
3075
|
+
multiple: B.multiple,
|
|
3076
|
+
onInput: M[0] || (M[0] = async (K) => b(K)),
|
|
3077
|
+
onClick: M[1] || (M[1] = async (K) => C(K)),
|
|
3078
|
+
onChange: M[2] || (M[2] = async (K) => k(K)),
|
|
3079
|
+
onBlur: M[3] || (M[3] = async (K) => F(K)),
|
|
3080
|
+
onFocus: M[4] || (M[4] = async (K) => y(K)),
|
|
3081
|
+
"aria-describedby": B.ariaDescribedBy ?? g.value
|
|
3069
3082
|
}, [
|
|
3070
|
-
|
|
3071
|
-
(
|
|
3072
|
-
K.options ? (
|
|
3083
|
+
M[5] || (M[5] = _("option", { hidden: !0 }, null, -1)),
|
|
3084
|
+
(oe = B.options) != null && oe.length ? (m(!0), S(W, { key: 0 }, ye(B.options, (K, _e) => (m(), S(W, { key: _e }, [
|
|
3085
|
+
K.options ? (m(), S("optgroup", {
|
|
3073
3086
|
key: 0,
|
|
3074
|
-
label:
|
|
3087
|
+
label: X(K)
|
|
3075
3088
|
}, [
|
|
3076
|
-
(
|
|
3077
|
-
key:
|
|
3078
|
-
value:
|
|
3079
|
-
selected:
|
|
3080
|
-
disabled:
|
|
3081
|
-
},
|
|
3082
|
-
], 8,
|
|
3089
|
+
(m(!0), S(W, null, ye(K.options, (Le, Ce) => (m(), S("option", {
|
|
3090
|
+
key: Ce,
|
|
3091
|
+
value: Le.value,
|
|
3092
|
+
selected: Le.selected,
|
|
3093
|
+
disabled: Le.disabled
|
|
3094
|
+
}, $(X(Le)), 9, Ii))), 128))
|
|
3095
|
+
], 8, Li)) : (m(), S("option", {
|
|
3083
3096
|
key: 1,
|
|
3084
3097
|
value: K.value,
|
|
3085
3098
|
disabled: K.disabled,
|
|
3086
3099
|
selected: K.selected
|
|
3087
|
-
},
|
|
3088
|
-
], 64))), 128)) : A(
|
|
3089
|
-
], 40,
|
|
3090
|
-
_("span", { id: s.value },
|
|
3091
|
-
n(x)(
|
|
3100
|
+
}, $(X(K)), 9, $i))
|
|
3101
|
+
], 64))), 128)) : A(B.$slots, "default", { key: 1 })
|
|
3102
|
+
], 40, Bi),
|
|
3103
|
+
_("span", { id: s.value }, $(B.placeholder ?? B.label), 9, Ti),
|
|
3104
|
+
n(x)(B.message, B.showMessage) ? (m(), J(ae, {
|
|
3092
3105
|
key: 0,
|
|
3093
3106
|
size: "small",
|
|
3094
|
-
icon:
|
|
3107
|
+
icon: B.messageIcon,
|
|
3095
3108
|
id: u.value
|
|
3096
3109
|
}, {
|
|
3097
|
-
default:
|
|
3098
|
-
N(
|
|
3110
|
+
default: H(() => [
|
|
3111
|
+
N($(B.message), 1)
|
|
3099
3112
|
]),
|
|
3100
3113
|
_: 1
|
|
3101
|
-
}, 8, ["icon", "id"])) :
|
|
3102
|
-
c() ? (
|
|
3114
|
+
}, 8, ["icon", "id"])) : U("", !0),
|
|
3115
|
+
c() ? (m(), J(ae, {
|
|
3103
3116
|
key: 1,
|
|
3104
3117
|
size: "small",
|
|
3105
3118
|
semantic: "successful",
|
|
3106
3119
|
id: f.value
|
|
3107
3120
|
}, {
|
|
3108
|
-
default:
|
|
3109
|
-
N(
|
|
3121
|
+
default: H(() => [
|
|
3122
|
+
N($(B.validMessage || n(ge)), 1)
|
|
3110
3123
|
]),
|
|
3111
3124
|
_: 1
|
|
3112
|
-
}, 8, ["id"])) :
|
|
3125
|
+
}, 8, ["id"])) : U("", !0),
|
|
3113
3126
|
ee(ae, {
|
|
3114
3127
|
size: "small",
|
|
3115
3128
|
semantic: "critical",
|
|
3116
|
-
id:
|
|
3129
|
+
id: p.value
|
|
3117
3130
|
}, {
|
|
3118
|
-
default:
|
|
3119
|
-
N(
|
|
3131
|
+
default: H(() => [
|
|
3132
|
+
N($(v.value), 1)
|
|
3120
3133
|
]),
|
|
3121
3134
|
_: 1
|
|
3122
3135
|
}, 8, ["id"]),
|
|
3123
|
-
_("span",
|
|
3124
|
-
], 10,
|
|
3136
|
+
_("span", _i, $(h.value), 1)
|
|
3137
|
+
], 10, ki);
|
|
3125
3138
|
};
|
|
3126
3139
|
}
|
|
3127
|
-
}),
|
|
3140
|
+
}), Ci = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Jo = /* @__PURE__ */ G({
|
|
3128
3141
|
__name: "stack",
|
|
3129
3142
|
props: {
|
|
3130
3143
|
variant: { default: void 0 },
|
|
@@ -3140,23 +3153,23 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3140
3153
|
gap: { default: void 0 }
|
|
3141
3154
|
},
|
|
3142
3155
|
setup(t) {
|
|
3143
|
-
const a = t,
|
|
3144
|
-
return (e, i) => (
|
|
3156
|
+
const a = t, o = d(null);
|
|
3157
|
+
return (e, i) => (m(), S("div", {
|
|
3145
3158
|
ref_key: "_ref",
|
|
3146
|
-
ref:
|
|
3159
|
+
ref: o,
|
|
3147
3160
|
id: e.id,
|
|
3148
|
-
class:
|
|
3161
|
+
class: P(n(q)("db-stack", a.class)),
|
|
3149
3162
|
"data-gap": e.gap,
|
|
3150
3163
|
"data-variant": e.variant,
|
|
3151
3164
|
"data-direction": e.direction,
|
|
3152
3165
|
"data-alignment": e.alignment,
|
|
3153
3166
|
"data-justify-content": e.justifyContent,
|
|
3154
|
-
"data-wrap": n(
|
|
3167
|
+
"data-wrap": n(R)(e.wrap)
|
|
3155
3168
|
}, [
|
|
3156
3169
|
A(e.$slots, "default")
|
|
3157
|
-
], 10,
|
|
3170
|
+
], 10, Ci));
|
|
3158
3171
|
}
|
|
3159
|
-
}),
|
|
3172
|
+
}), Qo = ["simple", "divider"], Zo = ["row", "column"], xo = ["stretch", "start", "end", "center"], el = ["space-between", "start", "end", "center"], Ei = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for", "data-hide-asterisk"], Ai = ["id", "checked", "value", "disabled", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-trailing"], al = /* @__PURE__ */ G({
|
|
3160
3173
|
__name: "switch",
|
|
3161
3174
|
props: {
|
|
3162
3175
|
visualAid: { type: [Boolean, String], default: void 0 },
|
|
@@ -3190,27 +3203,27 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3190
3203
|
},
|
|
3191
3204
|
emits: ["update:checked"],
|
|
3192
3205
|
setup(t, { emit: a }) {
|
|
3193
|
-
const
|
|
3206
|
+
const o = a, e = t, i = d(void 0), u = d(null);
|
|
3194
3207
|
Y(() => {
|
|
3195
|
-
i.value = e.id ?? `switch-${
|
|
3208
|
+
i.value = e.id ?? `switch-${Q()}`;
|
|
3196
3209
|
});
|
|
3197
3210
|
function f(s) {
|
|
3198
|
-
e.onChange && e.onChange(s), de(
|
|
3211
|
+
e.onChange && e.onChange(s), de(o, s, "checked");
|
|
3199
3212
|
}
|
|
3200
|
-
function
|
|
3213
|
+
function p(s) {
|
|
3201
3214
|
e.onBlur && e.onBlur(s);
|
|
3202
3215
|
}
|
|
3203
|
-
function
|
|
3216
|
+
function v(s) {
|
|
3204
3217
|
e.onFocus && e.onFocus(s);
|
|
3205
3218
|
}
|
|
3206
|
-
return (s,
|
|
3207
|
-
"data-visual-aid": n(
|
|
3219
|
+
return (s, g) => (m(), S("label", {
|
|
3220
|
+
"data-visual-aid": n(R)(s.visualAid),
|
|
3208
3221
|
"data-size": s.size,
|
|
3209
3222
|
"data-hide-label": n(ie)(s.showLabel),
|
|
3210
3223
|
"data-emphasis": s.emphasis,
|
|
3211
3224
|
for: i.value,
|
|
3212
3225
|
"data-hide-asterisk": n(ie)(s.showRequiredAsterisk),
|
|
3213
|
-
class:
|
|
3226
|
+
class: P(n(q)("db-switch", e.class))
|
|
3214
3227
|
}, [
|
|
3215
3228
|
_("input", {
|
|
3216
3229
|
type: "checkbox",
|
|
@@ -3218,25 +3231,25 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3218
3231
|
id: i.value,
|
|
3219
3232
|
ref_key: "_ref",
|
|
3220
3233
|
ref: u,
|
|
3221
|
-
checked: n(
|
|
3234
|
+
checked: n(V)(s.checked, "checked"),
|
|
3222
3235
|
value: s.value,
|
|
3223
|
-
disabled: n(
|
|
3236
|
+
disabled: n(V)(s.disabled, "disabled"),
|
|
3224
3237
|
"aria-invalid": s.validation === "invalid",
|
|
3225
3238
|
"data-custom-validity": s.validation,
|
|
3226
3239
|
name: s.name,
|
|
3227
|
-
required: n(
|
|
3240
|
+
required: n(V)(s.required, "required"),
|
|
3228
3241
|
"data-aid-icon": s.iconLeading ?? s.icon,
|
|
3229
3242
|
"data-aid-icon-trailing": s.iconTrailing,
|
|
3230
|
-
onChange:
|
|
3231
|
-
onBlur:
|
|
3232
|
-
onFocus:
|
|
3233
|
-
}, null, 40,
|
|
3234
|
-
s.label ? (
|
|
3235
|
-
N(
|
|
3243
|
+
onChange: g[0] || (g[0] = async (T) => f(T)),
|
|
3244
|
+
onBlur: g[1] || (g[1] = async (T) => p(T)),
|
|
3245
|
+
onFocus: g[2] || (g[2] = async (T) => v(T))
|
|
3246
|
+
}, null, 40, Ai),
|
|
3247
|
+
s.label ? (m(), S(W, { key: 0 }, [
|
|
3248
|
+
N($(s.label), 1)
|
|
3236
3249
|
], 64)) : A(s.$slots, "default", { key: 1 })
|
|
3237
|
-
], 10,
|
|
3250
|
+
], 10, Ei));
|
|
3238
3251
|
}
|
|
3239
|
-
}),
|
|
3252
|
+
}), Di = ["for", "data-icon", "data-icon-trailing", "data-show-icon", "data-show-icon-trailing", "data-no-text"], Ni = ["disabled", "aria-selected", "checked", "name", "id"], Fi = /* @__PURE__ */ G({
|
|
3240
3253
|
__name: "tab-item",
|
|
3241
3254
|
props: {
|
|
3242
3255
|
children: { default: void 0 },
|
|
@@ -3261,13 +3274,13 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3261
3274
|
},
|
|
3262
3275
|
emits: ["update:checked"],
|
|
3263
3276
|
setup(t, { emit: a }) {
|
|
3264
|
-
const
|
|
3277
|
+
const o = a, e = t, i = d(!1), u = d(void 0), f = d(!1), p = d(null);
|
|
3265
3278
|
Y(() => {
|
|
3266
3279
|
f.value = !0;
|
|
3267
3280
|
}), D(
|
|
3268
|
-
() => [
|
|
3281
|
+
() => [p.value, f.value],
|
|
3269
3282
|
() => {
|
|
3270
|
-
f.value &&
|
|
3283
|
+
f.value && p.value && (e.active && p.value.click(), f.value = !1);
|
|
3271
3284
|
},
|
|
3272
3285
|
{
|
|
3273
3286
|
immediate: !0,
|
|
@@ -3283,42 +3296,42 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3283
3296
|
flush: "post"
|
|
3284
3297
|
}
|
|
3285
3298
|
);
|
|
3286
|
-
function
|
|
3287
|
-
var
|
|
3288
|
-
s.stopPropagation(), e.onChange && e.onChange(s), i.value = (
|
|
3299
|
+
function v(s) {
|
|
3300
|
+
var g;
|
|
3301
|
+
s.stopPropagation(), e.onChange && e.onChange(s), i.value = (g = s.target) == null ? void 0 : g.checked, de(o, s, "checked");
|
|
3289
3302
|
}
|
|
3290
|
-
return (s,
|
|
3303
|
+
return (s, g) => (m(), S("li", {
|
|
3291
3304
|
role: "none",
|
|
3292
|
-
class:
|
|
3305
|
+
class: P(n(q)("db-tab-item", e.class))
|
|
3293
3306
|
}, [
|
|
3294
3307
|
_("label", {
|
|
3295
3308
|
for: s.id,
|
|
3296
3309
|
"data-icon": s.iconLeading ?? s.icon,
|
|
3297
3310
|
"data-icon-trailing": s.iconTrailing,
|
|
3298
|
-
"data-show-icon": n(
|
|
3299
|
-
"data-show-icon-trailing": n(
|
|
3300
|
-
"data-no-text": n(
|
|
3311
|
+
"data-show-icon": n(R)(s.showIconLeading ?? s.showIcon),
|
|
3312
|
+
"data-show-icon-trailing": n(R)(s.showIconTrailing),
|
|
3313
|
+
"data-no-text": n(R)(s.noText)
|
|
3301
3314
|
}, [
|
|
3302
3315
|
_("input", {
|
|
3303
3316
|
type: "radio",
|
|
3304
3317
|
role: "tab",
|
|
3305
|
-
disabled: n(
|
|
3318
|
+
disabled: n(V)(s.disabled, "disabled"),
|
|
3306
3319
|
"aria-selected": i.value,
|
|
3307
|
-
checked: n(
|
|
3320
|
+
checked: n(V)(s.checked, "checked"),
|
|
3308
3321
|
ref_key: "_ref",
|
|
3309
|
-
ref:
|
|
3322
|
+
ref: p,
|
|
3310
3323
|
name: u.value,
|
|
3311
3324
|
id: s.id,
|
|
3312
|
-
onInput:
|
|
3313
|
-
}, null, 40,
|
|
3314
|
-
s.label ? (
|
|
3315
|
-
N(
|
|
3316
|
-
], 64)) :
|
|
3325
|
+
onInput: g[0] || (g[0] = async (T) => v(T))
|
|
3326
|
+
}, null, 40, Ni),
|
|
3327
|
+
s.label ? (m(), S(W, { key: 0 }, [
|
|
3328
|
+
N($(s.label), 1)
|
|
3329
|
+
], 64)) : U("", !0),
|
|
3317
3330
|
A(s.$slots, "default")
|
|
3318
|
-
], 8,
|
|
3331
|
+
], 8, Di)
|
|
3319
3332
|
], 2));
|
|
3320
3333
|
}
|
|
3321
|
-
}),
|
|
3334
|
+
}), Mi = ["id"], Ri = { role: "tablist" }, zi = /* @__PURE__ */ G({
|
|
3322
3335
|
__name: "tab-list",
|
|
3323
3336
|
props: {
|
|
3324
3337
|
children: { default: void 0 },
|
|
@@ -3328,21 +3341,21 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3328
3341
|
autofocus: { type: [Boolean, String] }
|
|
3329
3342
|
},
|
|
3330
3343
|
setup(t) {
|
|
3331
|
-
const a = t,
|
|
3344
|
+
const a = t, o = d(Te), e = d(null);
|
|
3332
3345
|
return Y(() => {
|
|
3333
|
-
|
|
3334
|
-
}), (i, u) => (
|
|
3346
|
+
o.value = a.id || "tab-list-" + Q();
|
|
3347
|
+
}), (i, u) => (m(), S("div", {
|
|
3335
3348
|
ref_key: "_ref",
|
|
3336
3349
|
ref: e,
|
|
3337
|
-
id:
|
|
3338
|
-
class:
|
|
3350
|
+
id: o.value,
|
|
3351
|
+
class: P(n(q)("db-tab-list", a.class))
|
|
3339
3352
|
}, [
|
|
3340
|
-
_("ul",
|
|
3353
|
+
_("ul", Ri, [
|
|
3341
3354
|
A(i.$slots, "default")
|
|
3342
3355
|
])
|
|
3343
|
-
], 10,
|
|
3356
|
+
], 10, Mi));
|
|
3344
3357
|
}
|
|
3345
|
-
}),
|
|
3358
|
+
}), Vi = ["id"], Pi = /* @__PURE__ */ G({
|
|
3346
3359
|
__name: "tab-panel",
|
|
3347
3360
|
props: {
|
|
3348
3361
|
content: { default: void 0 },
|
|
@@ -3353,22 +3366,22 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3353
3366
|
autofocus: { type: [Boolean, String] }
|
|
3354
3367
|
},
|
|
3355
3368
|
setup(t) {
|
|
3356
|
-
const a = t,
|
|
3369
|
+
const a = t, o = d(null);
|
|
3357
3370
|
return Y(() => {
|
|
3358
|
-
}), (e, i) => (
|
|
3371
|
+
}), (e, i) => (m(), S("section", {
|
|
3359
3372
|
role: "tabpanel",
|
|
3360
3373
|
ref_key: "_ref",
|
|
3361
|
-
ref:
|
|
3362
|
-
class:
|
|
3374
|
+
ref: o,
|
|
3375
|
+
class: P(n(q)("db-tab-panel", a.class)),
|
|
3363
3376
|
id: e.id
|
|
3364
3377
|
}, [
|
|
3365
|
-
e.content ? (
|
|
3366
|
-
N(
|
|
3367
|
-
], 64)) :
|
|
3378
|
+
e.content ? (m(), S(W, { key: 0 }, [
|
|
3379
|
+
N($(e.content), 1)
|
|
3380
|
+
], 64)) : U("", !0),
|
|
3368
3381
|
A(e.$slots, "default")
|
|
3369
|
-
], 10,
|
|
3382
|
+
], 10, Vi));
|
|
3370
3383
|
}
|
|
3371
|
-
}),
|
|
3384
|
+
}), qi = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], tl = /* @__PURE__ */ G({
|
|
3372
3385
|
__name: "tabs",
|
|
3373
3386
|
props: {
|
|
3374
3387
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -3391,18 +3404,18 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3391
3404
|
tabSelect: {}
|
|
3392
3405
|
},
|
|
3393
3406
|
setup(t) {
|
|
3394
|
-
const a = t,
|
|
3407
|
+
const a = t, o = d("tabs-" + Q()), e = d(""), i = d(!1), u = d(!1), f = d(!1), p = d(null), v = d(null);
|
|
3395
3408
|
Y(() => {
|
|
3396
|
-
|
|
3409
|
+
o.value = a.id || o.value, e.value = `tabs-${a.name || Q()}`, i.value = !0;
|
|
3397
3410
|
}), D(
|
|
3398
|
-
() => [
|
|
3411
|
+
() => [v.value, i.value],
|
|
3399
3412
|
() => {
|
|
3400
|
-
if (
|
|
3401
|
-
|
|
3402
|
-
const c =
|
|
3413
|
+
if (v.value && i.value) {
|
|
3414
|
+
w(), h(!0);
|
|
3415
|
+
const c = v.value.querySelector(".db-tab-list");
|
|
3403
3416
|
c && new MutationObserver((C) => {
|
|
3404
3417
|
C.forEach((b) => {
|
|
3405
|
-
(b.removedNodes.length || b.addedNodes.length) && (
|
|
3418
|
+
(b.removedNodes.length || b.addedNodes.length) && (w(), h());
|
|
3406
3419
|
});
|
|
3407
3420
|
}).observe(c, {
|
|
3408
3421
|
childList: !0,
|
|
@@ -3423,92 +3436,94 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3423
3436
|
}
|
|
3424
3437
|
return [];
|
|
3425
3438
|
}
|
|
3426
|
-
function
|
|
3427
|
-
const
|
|
3428
|
-
u.value =
|
|
3439
|
+
function g(c) {
|
|
3440
|
+
const L = c.scrollWidth > c.clientWidth;
|
|
3441
|
+
u.value = L && c.scrollLeft > 1, f.value = L && c.scrollLeft < c.scrollWidth - c.clientWidth;
|
|
3429
3442
|
}
|
|
3430
3443
|
function T(c) {
|
|
3431
3444
|
var C;
|
|
3432
|
-
let
|
|
3433
|
-
c && (
|
|
3445
|
+
let L = Number(a.arrowScrollDistance) || 100;
|
|
3446
|
+
c && (L *= -1), (C = p.value) == null || C.scrollBy({
|
|
3434
3447
|
top: 0,
|
|
3435
|
-
left:
|
|
3448
|
+
left: L,
|
|
3436
3449
|
behavior: "smooth"
|
|
3437
3450
|
});
|
|
3438
3451
|
}
|
|
3439
|
-
function
|
|
3440
|
-
if (
|
|
3441
|
-
const c =
|
|
3452
|
+
function w() {
|
|
3453
|
+
if (v.value) {
|
|
3454
|
+
const c = v.value.querySelector(".db-tab-list");
|
|
3442
3455
|
if (c) {
|
|
3443
|
-
const
|
|
3444
|
-
|
|
3456
|
+
const L = c.querySelector('[role="tablist"]');
|
|
3457
|
+
L && (L.setAttribute(
|
|
3445
3458
|
"aria-orientation",
|
|
3446
3459
|
a.orientation || "horizontal"
|
|
3447
|
-
), a.behavior === "arrows" && (
|
|
3448
|
-
|
|
3460
|
+
), a.behavior === "arrows" && (p.value = L, g(L), L.addEventListener("scroll", () => {
|
|
3461
|
+
g(L);
|
|
3449
3462
|
})));
|
|
3450
3463
|
}
|
|
3451
3464
|
}
|
|
3452
3465
|
}
|
|
3453
3466
|
function h(c) {
|
|
3454
|
-
if (
|
|
3455
|
-
const
|
|
3456
|
-
|
|
3467
|
+
if (v.value) {
|
|
3468
|
+
const L = Array.from(
|
|
3469
|
+
v.value.getElementsByClassName("db-tab-item")
|
|
3457
3470
|
), C = Array.from(
|
|
3458
|
-
|
|
3471
|
+
v.value.querySelectorAll(
|
|
3459
3472
|
":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
|
|
3460
3473
|
)
|
|
3461
3474
|
);
|
|
3462
|
-
for (const b of
|
|
3463
|
-
const
|
|
3464
|
-
if (y &&
|
|
3475
|
+
for (const b of L) {
|
|
3476
|
+
const k = L.indexOf(b), F = b.querySelector("label"), y = b.querySelector("input");
|
|
3477
|
+
if (y && F) {
|
|
3465
3478
|
if (!y.id) {
|
|
3466
|
-
const
|
|
3467
|
-
|
|
3479
|
+
const X = `${e.value}-tab-${k}`;
|
|
3480
|
+
F.setAttribute("for", X), y.id = X, y.setAttribute("name", e.value), C.length > k && y.setAttribute(
|
|
3468
3481
|
"aria-controls",
|
|
3469
|
-
`${e.value}-tab-panel-${
|
|
3482
|
+
`${e.value}-tab-panel-${k}`
|
|
3470
3483
|
);
|
|
3471
3484
|
}
|
|
3472
3485
|
if (c) {
|
|
3473
|
-
const
|
|
3474
|
-
|
|
3486
|
+
const X = !a.initialSelectedMode || a.initialSelectedMode === "auto", B = a.initialSelectedIndex == null && k === 0 || Number(a.initialSelectedIndex) === k;
|
|
3487
|
+
X && B && y.click();
|
|
3475
3488
|
}
|
|
3476
3489
|
}
|
|
3477
3490
|
}
|
|
3478
3491
|
for (const b of C) {
|
|
3479
3492
|
if (b.id) continue;
|
|
3480
|
-
const
|
|
3481
|
-
b.id = `${e.value}-tab-panel-${
|
|
3493
|
+
const k = C.indexOf(b);
|
|
3494
|
+
b.id = `${e.value}-tab-panel-${k}`, b.setAttribute("aria-labelledby", `${e.value}-tab-${k}`);
|
|
3482
3495
|
}
|
|
3483
3496
|
}
|
|
3484
3497
|
}
|
|
3485
|
-
function
|
|
3486
|
-
var
|
|
3487
|
-
c.stopPropagation()
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3498
|
+
function r(c) {
|
|
3499
|
+
var L;
|
|
3500
|
+
if (c.stopPropagation(), c.target) {
|
|
3501
|
+
const b = c.target.parentElement;
|
|
3502
|
+
if (b && b.parentElement && ((L = b.parentElement) == null ? void 0 : L.nodeName) === "LI") {
|
|
3503
|
+
const k = b.parentElement;
|
|
3504
|
+
if (k) {
|
|
3505
|
+
const F = k.parentElement;
|
|
3506
|
+
if (F) {
|
|
3507
|
+
const y = Array.from(F.childNodes).indexOf(k);
|
|
3508
|
+
a.onIndexChange && a.onIndexChange(y), a.onTabSelect && a.onTabSelect(c);
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3497
3512
|
}
|
|
3498
|
-
a.onTabSelect && a.onTabSelect(c);
|
|
3499
3513
|
}
|
|
3500
|
-
return (c,
|
|
3514
|
+
return (c, L) => (m(), S("div", {
|
|
3501
3515
|
ref_key: "_ref",
|
|
3502
|
-
ref:
|
|
3503
|
-
id:
|
|
3504
|
-
class:
|
|
3516
|
+
ref: v,
|
|
3517
|
+
id: o.value,
|
|
3518
|
+
class: P(n(q)("db-tabs", a.class)),
|
|
3505
3519
|
"data-orientation": c.orientation,
|
|
3506
3520
|
"data-scroll-behavior": c.behavior,
|
|
3507
3521
|
"data-alignment": c.alignment ?? "start",
|
|
3508
3522
|
"data-width": c.width ?? "auto",
|
|
3509
|
-
onInput:
|
|
3523
|
+
onInput: L[0] || (L[0] = async (C) => r(C)),
|
|
3524
|
+
onChange: L[1] || (L[1] = async (C) => r(C))
|
|
3510
3525
|
}, [
|
|
3511
|
-
u.value ? (
|
|
3526
|
+
u.value ? (m(), J(Se, {
|
|
3512
3527
|
key: 0,
|
|
3513
3528
|
class: "tabs-scroll-left",
|
|
3514
3529
|
variant: "ghost",
|
|
@@ -3517,16 +3532,16 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3517
3532
|
noText: !0,
|
|
3518
3533
|
onClick: (C) => T(!0)
|
|
3519
3534
|
}, {
|
|
3520
|
-
default:
|
|
3521
|
-
N(" Scroll left ")
|
|
3535
|
+
default: H(() => L[2] || (L[2] = [
|
|
3536
|
+
N(" Scroll left ", -1)
|
|
3522
3537
|
])),
|
|
3523
3538
|
_: 1,
|
|
3524
|
-
__: [
|
|
3525
|
-
}, 8, ["onClick"])) :
|
|
3526
|
-
c.tabs ? (
|
|
3527
|
-
ee(
|
|
3528
|
-
default:
|
|
3529
|
-
(
|
|
3539
|
+
__: [2]
|
|
3540
|
+
}, 8, ["onClick"])) : U("", !0),
|
|
3541
|
+
c.tabs ? (m(), S(W, { key: 1 }, [
|
|
3542
|
+
ee(zi, null, {
|
|
3543
|
+
default: H(() => [
|
|
3544
|
+
(m(!0), S(W, null, ye(s(), (C, b) => (m(), J(Fi, {
|
|
3530
3545
|
key: c.name + "tab-item" + b,
|
|
3531
3546
|
active: C.active,
|
|
3532
3547
|
label: C.label,
|
|
@@ -3537,17 +3552,17 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3537
3552
|
]),
|
|
3538
3553
|
_: 1
|
|
3539
3554
|
}),
|
|
3540
|
-
(
|
|
3555
|
+
(m(!0), S(W, null, ye(s(), (C, b) => (m(), J(Pi, {
|
|
3541
3556
|
key: c.name + "tab-panel" + b,
|
|
3542
3557
|
content: C.content
|
|
3543
3558
|
}, {
|
|
3544
|
-
default:
|
|
3545
|
-
N(
|
|
3559
|
+
default: H(() => [
|
|
3560
|
+
N($(C.children), 1)
|
|
3546
3561
|
]),
|
|
3547
3562
|
_: 2
|
|
3548
3563
|
}, 1032, ["content"]))), 128))
|
|
3549
|
-
], 64)) :
|
|
3550
|
-
f.value ? (
|
|
3564
|
+
], 64)) : U("", !0),
|
|
3565
|
+
f.value ? (m(), J(Se, {
|
|
3551
3566
|
key: 2,
|
|
3552
3567
|
class: "tabs-scroll-right",
|
|
3553
3568
|
variant: "ghost",
|
|
@@ -3556,19 +3571,19 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3556
3571
|
noText: !0,
|
|
3557
3572
|
onClick: (C) => T()
|
|
3558
3573
|
}, {
|
|
3559
|
-
default:
|
|
3560
|
-
N(" Scroll right ")
|
|
3574
|
+
default: H(() => L[3] || (L[3] = [
|
|
3575
|
+
N(" Scroll right ", -1)
|
|
3561
3576
|
])),
|
|
3562
3577
|
_: 1,
|
|
3563
|
-
__: [
|
|
3564
|
-
}, 8, ["onClick"])) :
|
|
3578
|
+
__: [3]
|
|
3579
|
+
}, 8, ["onClick"])) : U("", !0),
|
|
3565
3580
|
A(c.$slots, "default")
|
|
3566
|
-
], 42,
|
|
3581
|
+
], 42, qi));
|
|
3567
3582
|
}
|
|
3568
|
-
}),
|
|
3583
|
+
}), il = ["scrollbar", "arrows"], ol = ["auto", "manually"], ll = ["static", "removable"], Ui = ["data-variant", "data-hide-asterisk", "data-hide-label"], Gi = ["for"], Wi = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "data-resize", "data-hide-resizer", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Oi = {
|
|
3569
3584
|
"data-visually-hidden": "true",
|
|
3570
3585
|
role: "status"
|
|
3571
|
-
},
|
|
3586
|
+
}, nl = /* @__PURE__ */ G({
|
|
3572
3587
|
__name: "textarea",
|
|
3573
3588
|
props: {
|
|
3574
3589
|
cols: { default: void 0 },
|
|
@@ -3618,15 +3633,15 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3618
3633
|
},
|
|
3619
3634
|
emits: ["update:value"],
|
|
3620
3635
|
setup(t, { emit: a }) {
|
|
3621
|
-
const
|
|
3636
|
+
const o = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(""), T = d(""), w = d(null);
|
|
3622
3637
|
Y(() => {
|
|
3623
|
-
const
|
|
3624
|
-
i.value =
|
|
3638
|
+
const k = e.id ?? `textarea-${Q()}`;
|
|
3639
|
+
i.value = k, u.value = k + fe, f.value = k + pe, p.value = k + he, v.value = e.invalidMessage || te;
|
|
3625
3640
|
}), D(
|
|
3626
|
-
() => [
|
|
3641
|
+
() => [w.value, e.invalidMessage],
|
|
3627
3642
|
() => {
|
|
3628
|
-
var
|
|
3629
|
-
|
|
3643
|
+
var k;
|
|
3644
|
+
v.value = e.invalidMessage || ((k = w.value) == null ? void 0 : k.validationMessage) || te;
|
|
3630
3645
|
},
|
|
3631
3646
|
{
|
|
3632
3647
|
immediate: !0,
|
|
@@ -3636,8 +3651,8 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3636
3651
|
() => [i.value],
|
|
3637
3652
|
() => {
|
|
3638
3653
|
if (i.value) {
|
|
3639
|
-
const
|
|
3640
|
-
u.value =
|
|
3654
|
+
const k = i.value + fe;
|
|
3655
|
+
u.value = k, f.value = i.value + pe, p.value = i.value + he, x(e.message, e.showMessage) && (s.value = k), r();
|
|
3641
3656
|
}
|
|
3642
3657
|
},
|
|
3643
3658
|
{
|
|
@@ -3647,7 +3662,7 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3647
3662
|
), D(
|
|
3648
3663
|
() => [e.value],
|
|
3649
3664
|
() => {
|
|
3650
|
-
|
|
3665
|
+
g.value = e.value;
|
|
3651
3666
|
},
|
|
3652
3667
|
{
|
|
3653
3668
|
immediate: !0,
|
|
@@ -3657,200 +3672,242 @@ const Ht = ["id", "data-width", "data-on-forcing-mobile"], Xt = { class: "db-hea
|
|
|
3657
3672
|
function h() {
|
|
3658
3673
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3659
3674
|
}
|
|
3660
|
-
function
|
|
3661
|
-
var
|
|
3662
|
-
!((
|
|
3675
|
+
function r() {
|
|
3676
|
+
var k, F, y;
|
|
3677
|
+
!((k = w.value) != null && k.validity.valid) || e.validation === "invalid" ? (s.value = p.value, v.value = e.invalidMessage || ((F = w.value) == null ? void 0 : F.validationMessage) || te, me() && (T.value = v.value, Z(() => T.value = "", 1e3))) : h() && ((y = w.value) != null && y.validity.valid) && (e.required || e.minLength || e.maxLength) ? (s.value = f.value, me() && (T.value = e.validMessage ?? ge, Z(() => T.value = "", 1e3))) : x(e.message, e.showMessage) ? s.value = u.value : s.value = void 0;
|
|
3663
3678
|
}
|
|
3664
|
-
function c(
|
|
3665
|
-
e.input && e.input(
|
|
3679
|
+
function c(k) {
|
|
3680
|
+
e.input && e.input(k), g.value = k.target.value, e.onInput && e.onInput(k), de(o, k), r();
|
|
3666
3681
|
}
|
|
3667
|
-
function
|
|
3668
|
-
e.onChange && e.onChange(
|
|
3682
|
+
function L(k) {
|
|
3683
|
+
e.onChange && e.onChange(k), de(o, k), r();
|
|
3669
3684
|
}
|
|
3670
|
-
function C(
|
|
3671
|
-
e.onBlur && e.onBlur(
|
|
3685
|
+
function C(k) {
|
|
3686
|
+
e.onBlur && e.onBlur(k);
|
|
3672
3687
|
}
|
|
3673
|
-
function b(
|
|
3674
|
-
e.onFocus && e.onFocus(
|
|
3688
|
+
function b(k) {
|
|
3689
|
+
e.onFocus && e.onFocus(k);
|
|
3675
3690
|
}
|
|
3676
|
-
return (
|
|
3677
|
-
class:
|
|
3678
|
-
"data-variant":
|
|
3679
|
-
"data-hide-asterisk": n(ie)(
|
|
3680
|
-
"data-hide-label": n(ie)(
|
|
3691
|
+
return (k, F) => (m(), S("div", {
|
|
3692
|
+
class: P(n(q)("db-textarea", e.class)),
|
|
3693
|
+
"data-variant": k.variant,
|
|
3694
|
+
"data-hide-asterisk": n(ie)(k.showRequiredAsterisk),
|
|
3695
|
+
"data-hide-label": n(ie)(k.showLabel)
|
|
3681
3696
|
}, [
|
|
3682
|
-
_("label", { for: i.value },
|
|
3697
|
+
_("label", { for: i.value }, $(k.label ?? n(we)), 9, Gi),
|
|
3683
3698
|
_("textarea", {
|
|
3684
|
-
"aria-invalid":
|
|
3685
|
-
"data-custom-validity":
|
|
3686
|
-
"data-field-sizing":
|
|
3699
|
+
"aria-invalid": k.validation === "invalid",
|
|
3700
|
+
"data-custom-validity": k.validation,
|
|
3701
|
+
"data-field-sizing": k.fieldSizing,
|
|
3687
3702
|
ref_key: "_ref",
|
|
3688
|
-
ref:
|
|
3703
|
+
ref: w,
|
|
3689
3704
|
id: i.value,
|
|
3690
|
-
"data-resize":
|
|
3691
|
-
"data-hide-resizer": n(ie)(
|
|
3692
|
-
disabled: n(
|
|
3693
|
-
required: n(
|
|
3694
|
-
readOnly: n(
|
|
3695
|
-
form:
|
|
3696
|
-
maxLength: n(
|
|
3697
|
-
minLength: n(
|
|
3698
|
-
name:
|
|
3699
|
-
wrap:
|
|
3700
|
-
spellcheck:
|
|
3701
|
-
autocomplete:
|
|
3702
|
-
onInput:
|
|
3703
|
-
onChange:
|
|
3704
|
-
onBlur:
|
|
3705
|
-
onFocus:
|
|
3706
|
-
value:
|
|
3707
|
-
"aria-describedby":
|
|
3708
|
-
placeholder:
|
|
3709
|
-
rows: n(
|
|
3710
|
-
cols: n(
|
|
3711
|
-
}, null, 40,
|
|
3712
|
-
n(x)(
|
|
3705
|
+
"data-resize": k.resize,
|
|
3706
|
+
"data-hide-resizer": n(ie)(k.showResizer ?? !0),
|
|
3707
|
+
disabled: n(V)(k.disabled, "disabled"),
|
|
3708
|
+
required: n(V)(k.required, "required"),
|
|
3709
|
+
readOnly: n(V)(k.readOnly, "readOnly") || n(V)(k.readonly, "readonly"),
|
|
3710
|
+
form: k.form,
|
|
3711
|
+
maxLength: n(ke)(k.maxLength, k.maxlength),
|
|
3712
|
+
minLength: n(ke)(k.minLength, k.minlength),
|
|
3713
|
+
name: k.name,
|
|
3714
|
+
wrap: k.wrap,
|
|
3715
|
+
spellcheck: k.spellCheck,
|
|
3716
|
+
autocomplete: k.autocomplete,
|
|
3717
|
+
onInput: F[0] || (F[0] = async (y) => c(y)),
|
|
3718
|
+
onChange: F[1] || (F[1] = async (y) => L(y)),
|
|
3719
|
+
onBlur: F[2] || (F[2] = async (y) => C(y)),
|
|
3720
|
+
onFocus: F[3] || (F[3] = async (y) => b(y)),
|
|
3721
|
+
value: k.value ?? g.value,
|
|
3722
|
+
"aria-describedby": k.ariaDescribedBy ?? s.value,
|
|
3723
|
+
placeholder: k.placeholder ?? n(ta),
|
|
3724
|
+
rows: n(ke)(k.rows, n(Ma)),
|
|
3725
|
+
cols: n(ke)(k.cols)
|
|
3726
|
+
}, null, 40, Wi),
|
|
3727
|
+
n(x)(k.message, k.showMessage) ? (m(), J(ae, {
|
|
3713
3728
|
key: 0,
|
|
3714
3729
|
size: "small",
|
|
3715
|
-
icon:
|
|
3730
|
+
icon: k.messageIcon,
|
|
3716
3731
|
id: u.value
|
|
3717
3732
|
}, {
|
|
3718
|
-
default:
|
|
3719
|
-
N(
|
|
3733
|
+
default: H(() => [
|
|
3734
|
+
N($(k.message), 1)
|
|
3720
3735
|
]),
|
|
3721
3736
|
_: 1
|
|
3722
|
-
}, 8, ["icon", "id"])) :
|
|
3723
|
-
h() ? (
|
|
3737
|
+
}, 8, ["icon", "id"])) : U("", !0),
|
|
3738
|
+
h() ? (m(), J(ae, {
|
|
3724
3739
|
key: 1,
|
|
3725
3740
|
size: "small",
|
|
3726
3741
|
semantic: "successful",
|
|
3727
3742
|
id: f.value
|
|
3728
3743
|
}, {
|
|
3729
|
-
default:
|
|
3730
|
-
N(
|
|
3744
|
+
default: H(() => [
|
|
3745
|
+
N($(k.validMessage || n(ge)), 1)
|
|
3731
3746
|
]),
|
|
3732
3747
|
_: 1
|
|
3733
|
-
}, 8, ["id"])) :
|
|
3748
|
+
}, 8, ["id"])) : U("", !0),
|
|
3734
3749
|
ee(ae, {
|
|
3735
3750
|
size: "small",
|
|
3736
3751
|
semantic: "critical",
|
|
3737
|
-
id:
|
|
3752
|
+
id: p.value
|
|
3738
3753
|
}, {
|
|
3739
|
-
default:
|
|
3740
|
-
N(
|
|
3754
|
+
default: H(() => [
|
|
3755
|
+
N($(v.value), 1)
|
|
3741
3756
|
]),
|
|
3742
3757
|
_: 1
|
|
3743
3758
|
}, 8, ["id"]),
|
|
3744
|
-
_("span",
|
|
3745
|
-
], 10,
|
|
3759
|
+
_("span", Oi, $(T.value), 1)
|
|
3760
|
+
], 10, Ui));
|
|
3746
3761
|
}
|
|
3747
|
-
}),
|
|
3762
|
+
}), sl = ["none", "both", "horizontal", "vertical"], dl = ["hard", "soft", "off"], ul = ["description", "label"], rl = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], cl = ["medium", "small", "large", "none"], vl = ["medium", "small", "large", "none"], Hi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], Xi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], fl = [...Hi, ...Xi], pl = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], hl = ["horizontal", "vertical"], gl = ["full", "auto"], ml = ["full", "medium", "large", "small"], bl = ["none", "slow", "fast"], yl = ["auto", "fixed"], wl = ["small", "medium"], kl = ["weak", "strong"], Sl = ["invalid", "valid", "no-validation"], Bl = ["fixed", "content"], Ll = ["above", "floating"], Il = ["off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "shipping", "billing", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo", "webauthn"], $l = ["_self", "_blank", "_parent", "_top"], Tl = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], _l = ["start", "center"];
|
|
3748
3763
|
export {
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3764
|
+
no as AccordionBehaviorList,
|
|
3765
|
+
lo as AccordionVariantList,
|
|
3766
|
+
_l as AlignmentList,
|
|
3767
|
+
Il as AutoCompleteList,
|
|
3768
|
+
uo as BadgePlacementList,
|
|
3769
|
+
vo as ButtonTypeList,
|
|
3770
|
+
co as ButtonVariantList,
|
|
3771
|
+
na as COLOR,
|
|
3772
|
+
xi as COLORS,
|
|
3773
|
+
eo as COLORS_SIMPLE,
|
|
3774
|
+
Qi as COLOR_CONST,
|
|
3755
3775
|
la as COLOR_SIMPLE,
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3776
|
+
po as CardBehaviorList,
|
|
3777
|
+
ho as CardElevationLevelList,
|
|
3778
|
+
bo as CustomSelectDropdownWidthList,
|
|
3779
|
+
wo as CustomSelectListItemTypeList,
|
|
3780
|
+
oo as DBAccordion,
|
|
3781
|
+
Wa as DBAccordionItem,
|
|
3782
|
+
so as DBBadge,
|
|
3783
|
+
ro as DBBrand,
|
|
3784
|
+
Se as DBButton,
|
|
3785
|
+
fo as DBCard,
|
|
3786
|
+
go as DBCheckbox,
|
|
3787
|
+
mo as DBCustomSelect,
|
|
3788
|
+
ot as DBCustomSelectDropdown,
|
|
3789
|
+
yo as DBCustomSelectFormField,
|
|
3790
|
+
ct as DBCustomSelectList,
|
|
3791
|
+
ut as DBCustomSelectListItem,
|
|
3792
|
+
So as DBDivider,
|
|
3793
|
+
Wt as DBDrawer,
|
|
3794
|
+
Co as DBHeader,
|
|
3795
|
+
Eo as DBIcon,
|
|
3772
3796
|
ae as DBInfotext,
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3797
|
+
bt as DBInput,
|
|
3798
|
+
No as DBLink,
|
|
3799
|
+
zo as DBNavigation,
|
|
3800
|
+
Vo as DBNavigationItem,
|
|
3801
|
+
Po as DBNotification,
|
|
3802
|
+
Wo as DBPage,
|
|
3803
|
+
Xo as DBPopover,
|
|
3804
|
+
jo as DBRadio,
|
|
3805
|
+
Yo as DBSection,
|
|
3806
|
+
Ko as DBSelect,
|
|
3807
|
+
Jo as DBStack,
|
|
3808
|
+
al as DBSwitch,
|
|
3809
|
+
Fi as DBTabItem,
|
|
3810
|
+
zi as DBTabList,
|
|
3811
|
+
Pi as DBTabPanel,
|
|
3812
|
+
tl as DBTabs,
|
|
3813
|
+
kt as DBTag,
|
|
3814
|
+
nl as DBTextarea,
|
|
3815
|
+
ca as DBTooltip,
|
|
3816
|
+
Aa as DEFAULT_BACK,
|
|
3817
|
+
Na as DEFAULT_BURGER_MENU,
|
|
3818
|
+
We as DEFAULT_CLOSE_BUTTON,
|
|
3819
|
+
xe as DEFAULT_DATALIST_ID_SUFFIX,
|
|
3820
|
+
Fa as DEFAULT_ICON,
|
|
3821
|
+
Te as DEFAULT_ID,
|
|
3798
3822
|
te as DEFAULT_INVALID_MESSAGE,
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3823
|
+
he as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
3824
|
+
we as DEFAULT_LABEL,
|
|
3825
|
+
Qe as DEFAULT_LABEL_ID_SUFFIX,
|
|
3826
|
+
Ea as DEFAULT_MESSAGE,
|
|
3827
|
+
fe as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
3828
|
+
ta as DEFAULT_PLACEHOLDER,
|
|
3805
3829
|
Re as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3830
|
+
ia as DEFAULT_REMOVE,
|
|
3831
|
+
Ma as DEFAULT_ROWS,
|
|
3832
|
+
Da as DEFAULT_SELECTED,
|
|
3833
|
+
Ze as DEFAULT_SELECT_ID_SUFFIX,
|
|
3834
|
+
ge as DEFAULT_VALID_MESSAGE,
|
|
3835
|
+
pe as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
3836
|
+
Ra as DEFAULT_VIEWPORT,
|
|
3837
|
+
Zi as DENSITIES,
|
|
3838
|
+
oa as DENSITY,
|
|
3839
|
+
Ji as DENSITY_CONST,
|
|
3840
|
+
za as DESKTOP_VIEWPORT,
|
|
3841
|
+
Bo as DividerMarginList,
|
|
3842
|
+
Lo as DividerVariantList,
|
|
3843
|
+
ze as DocumentClickListener,
|
|
3844
|
+
Be as DocumentScrollListener,
|
|
3845
|
+
Io as DrawerBackdropList,
|
|
3846
|
+
$o as DrawerDirectionList,
|
|
3847
|
+
_o as DrawerPositionList,
|
|
3848
|
+
To as DrawerVariantList,
|
|
3849
|
+
kl as EmphasisList,
|
|
3850
|
+
Bl as FieldSizingList,
|
|
3851
|
+
pl as GapSpacingList,
|
|
3852
|
+
Ao as IconWeightList,
|
|
3853
|
+
Do as InputTypeList,
|
|
3854
|
+
Ll as LabelVariantList,
|
|
3855
|
+
Ro as LinkContentList,
|
|
3856
|
+
Tl as LinkReferrerPolicyList,
|
|
3857
|
+
Mo as LinkSizeList,
|
|
3858
|
+
$l as LinkTargetList,
|
|
3859
|
+
Fo as LinkVariantList,
|
|
3860
|
+
vl as MarginList,
|
|
3861
|
+
ml as MaxWidthList,
|
|
3862
|
+
Ht as NavigationItemSafeTriangle,
|
|
3863
|
+
Go as NotificationAriaLiveList,
|
|
3864
|
+
Uo as NotificationLinkVariantList,
|
|
3865
|
+
qo as NotificationVariantList,
|
|
3866
|
+
hl as OrientationList,
|
|
3867
|
+
Ho as PageDocumentOverflowList,
|
|
3868
|
+
Oo as PageVariantList,
|
|
3869
|
+
Hi as PlacementHorizontalList,
|
|
3870
|
+
fl as PlacementList,
|
|
3871
|
+
Xi as PlacementVerticalList,
|
|
3872
|
+
bl as PopoverDelayList,
|
|
3873
|
+
yl as PopoverWidthList,
|
|
3874
|
+
sa as SEMANTIC,
|
|
3875
|
+
ao as SEMANTICS,
|
|
3876
|
+
ko as SelectedTypeList,
|
|
3877
|
+
rl as SemanticList,
|
|
3878
|
+
wl as SizeList,
|
|
3879
|
+
cl as SpacingList,
|
|
3880
|
+
xo as StackAlignmentList,
|
|
3881
|
+
Zo as StackDirectionList,
|
|
3882
|
+
el as StackJustifyContentList,
|
|
3883
|
+
Qo as StackVariantList,
|
|
3884
|
+
to as TESTING_VIEWPORTS,
|
|
3885
|
+
il as TabsBehaviorList,
|
|
3886
|
+
ol as TabsInitialSelectedModeList,
|
|
3887
|
+
ll as TagBehaviorList,
|
|
3888
|
+
sl as TextareaResizeList,
|
|
3889
|
+
dl as TextareaWrapList,
|
|
3890
|
+
ul as TooltipVariantList,
|
|
3891
|
+
Sl as ValidationList,
|
|
3892
|
+
gl as WidthList,
|
|
3893
|
+
da as addAttributeToChildren,
|
|
3841
3894
|
q as cls,
|
|
3842
3895
|
Z as delay,
|
|
3843
|
-
|
|
3844
|
-
|
|
3896
|
+
V as getBoolean,
|
|
3897
|
+
R as getBooleanAsString,
|
|
3898
|
+
ua as getFloatingProps,
|
|
3845
3899
|
ie as getHideProp,
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3900
|
+
ea as getInputValue,
|
|
3901
|
+
ke as getNumber,
|
|
3902
|
+
io as getOptionKey,
|
|
3903
|
+
aa as getSearchInput,
|
|
3904
|
+
at as handleDataOutside,
|
|
3905
|
+
tt as handleFixedDropdown,
|
|
3906
|
+
ra as handleFixedPopover,
|
|
3907
|
+
me as hasVoiceOver,
|
|
3908
|
+
Va as isArrayOfStrings,
|
|
3909
|
+
Ot as isEventTargetNavigationItem,
|
|
3910
|
+
qa as isKeyboardEvent,
|
|
3854
3911
|
x as stringPropVisible,
|
|
3855
|
-
|
|
3912
|
+
Q as uuid
|
|
3856
3913
|
};
|