@db-ux/v-core-components 4.10.2 → 4.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/components/table/examples/data.d.ts +9 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/model.d.ts +74 -0
- package/dist/components/table/table.vue.d.ts +30 -0
- package/dist/components/table-body/index.d.ts +1 -0
- package/dist/components/table-body/model.d.ts +8 -0
- package/dist/components/table-body/table-body.vue.d.ts +20 -0
- package/dist/components/table-caption/index.d.ts +1 -0
- package/dist/components/table-caption/model.d.ts +5 -0
- package/dist/components/table-caption/table-caption.vue.d.ts +17 -0
- package/dist/components/table-data-cell/index.d.ts +1 -0
- package/dist/components/table-data-cell/model.d.ts +5 -0
- package/dist/components/table-data-cell/table-data-cell.vue.d.ts +25 -0
- package/dist/components/table-footer/index.d.ts +1 -0
- package/dist/components/table-footer/model.d.ts +8 -0
- package/dist/components/table-footer/table-footer.vue.d.ts +20 -0
- package/dist/components/table-head/index.d.ts +1 -0
- package/dist/components/table-head/model.d.ts +10 -0
- package/dist/components/table-head/table-head.vue.d.ts +20 -0
- package/dist/components/table-header-cell/index.d.ts +1 -0
- package/dist/components/table-header-cell/model.d.ts +24 -0
- package/dist/components/table-header-cell/table-header-cell.vue.d.ts +28 -0
- package/dist/components/table-row/index.d.ts +1 -0
- package/dist/components/table-row/model.d.ts +30 -0
- package/dist/components/table-row/table-row.vue.d.ts +21 -0
- package/dist/components/textarea/textarea.vue.d.ts +1 -1
- package/dist/components/tooltip/model.d.ts +9 -0
- package/dist/db-ux.es.js +1596 -1029
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/shared/figma.d.ts +70 -18
- package/dist/shared/model.d.ts +44 -2
- package/dist/utils/index.d.ts +9 -4
- package/package.json +7 -7
package/dist/db-ux.es.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c,
|
|
1
|
+
import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useId as v, watch as y, withCtx as b } from "vue";
|
|
2
2
|
//#region src/utils/index.ts
|
|
3
|
-
var
|
|
3
|
+
var x = () => {
|
|
4
4
|
if (typeof window < "u") {
|
|
5
5
|
if (window.crypto?.randomUUID) return window.crypto.randomUUID();
|
|
6
6
|
if (window.crypto?.getRandomValues) return window.crypto.getRandomValues(new Uint32Array(3)).join("-");
|
|
7
7
|
}
|
|
8
8
|
return Math.random().toString().substring(2);
|
|
9
|
-
},
|
|
9
|
+
}, S = (e, t) => {
|
|
10
10
|
let n = e.children;
|
|
11
11
|
Object.values(n).forEach((e) => {
|
|
12
|
-
e.setAttribute(t.key, t.value), e.children.length > 0 &&
|
|
12
|
+
e.setAttribute(t.key, t.value), e.children.length > 0 && S(e, t);
|
|
13
13
|
});
|
|
14
|
-
},
|
|
14
|
+
}, C = (...e) => {
|
|
15
15
|
let t = "";
|
|
16
16
|
for (let n of e) if (n) if (typeof n == "string") t += `${n} `;
|
|
17
17
|
else for (let e in n) n[e] && (t += `${e} `);
|
|
18
18
|
return t.trim();
|
|
19
|
-
},
|
|
19
|
+
}, w = (e) => Array.isArray(e) && e.every((e) => typeof e == "string"), T = [
|
|
20
20
|
"Mac",
|
|
21
21
|
"iPhone",
|
|
22
22
|
"iPad",
|
|
23
23
|
"iPod"
|
|
24
|
-
],
|
|
24
|
+
], E = () => typeof window < "u" && T.some((e) => window.navigator.userAgent.includes(e)), D = () => {
|
|
25
25
|
if (typeof window > "u" || typeof navigator > "u") return !1;
|
|
26
26
|
let e = navigator.userAgent, t = /iP(ad|hone|od)/.test(e), n = !!e.match(/Safari/) && !e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);
|
|
27
27
|
return t && n;
|
|
28
|
-
},
|
|
29
|
-
if (e != null) return String(typeof e == "string" ? e === "true" : e);
|
|
30
|
-
}, k = (e, t) => {
|
|
31
|
-
if (e != null) return typeof e == "string" ? t === e || e === "true" : !!e;
|
|
28
|
+
}, O = (e, t) => new Promise(() => setTimeout(e, t)), k = (e, t) => {
|
|
29
|
+
if (e != null) return String(typeof e == "string" ? e === "" || e === "true" || t?.toLowerCase() === e.toLowerCase() : e);
|
|
32
30
|
}, A = (e, t) => {
|
|
31
|
+
if (e != null) return typeof e == "string" ? e === "" || e === "true" || t?.toLowerCase() === e.toLowerCase() : !!e;
|
|
32
|
+
}, j = (e, t) => {
|
|
33
33
|
if (!(e == null && t == null)) return Number(e ?? t);
|
|
34
|
-
},
|
|
34
|
+
}, M = (e) => {
|
|
35
35
|
if (e != null) return e === "any" ? "any" : Number(e);
|
|
36
|
-
},
|
|
37
|
-
if (e != null) return
|
|
38
|
-
},
|
|
36
|
+
}, N = (e, t) => t && ["number", "range"].includes(t) ? j(e) : e, P = (e) => typeof e == "string" ? e !== "false" : e, F = (e) => {
|
|
37
|
+
if (e != null) return k(!P(e), "show");
|
|
38
|
+
}, I = (e, t) => (t === void 0 || P(t)) && !!e, L = (e) => e.querySelector("input[type=\"search\"]"), R = (e, t) => `${t}${e.id ?? e.value ?? x()}`, z = (e) => e.key !== void 0, B = ({ semantic: e, role: t, ariaLive: n }) => {
|
|
39
39
|
if (t) return t;
|
|
40
40
|
if (n) return "article";
|
|
41
41
|
switch (e) {
|
|
@@ -45,11 +45,11 @@ var b = () => {
|
|
|
45
45
|
case "successful": return "status";
|
|
46
46
|
default: return "article";
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, V = ["id"], H = [
|
|
49
49
|
"aria-disabled",
|
|
50
50
|
"name",
|
|
51
51
|
"open"
|
|
52
|
-
],
|
|
52
|
+
], U = /* @__PURE__ */ s({
|
|
53
53
|
name: "DBAccordionItem",
|
|
54
54
|
__name: "accordion-item",
|
|
55
55
|
props: {
|
|
@@ -82,43 +82,43 @@ var b = () => {
|
|
|
82
82
|
name: { default: void 0 }
|
|
83
83
|
},
|
|
84
84
|
setup(t) {
|
|
85
|
-
let o = t, s =
|
|
86
|
-
|
|
87
|
-
o.defaultOpen && (s.value = o.defaultOpen),
|
|
88
|
-
}),
|
|
89
|
-
|
|
85
|
+
let o = t, s = p(!1), l = p(void 0), d = p(!1), m = p(null);
|
|
86
|
+
u(() => {
|
|
87
|
+
o.defaultOpen && (s.value = o.defaultOpen), d.value = !0;
|
|
88
|
+
}), y(() => [m.value, d.value], () => {
|
|
89
|
+
m.value && d.value;
|
|
90
90
|
}, {
|
|
91
91
|
immediate: !0,
|
|
92
92
|
flush: "post"
|
|
93
|
-
}),
|
|
94
|
-
o.name && (
|
|
93
|
+
}), y(() => [o.name], () => {
|
|
94
|
+
o.name && (l.value = o.name);
|
|
95
95
|
}, {
|
|
96
96
|
immediate: !0,
|
|
97
97
|
flush: "post"
|
|
98
|
-
}),
|
|
99
|
-
let e =
|
|
98
|
+
}), y(() => [o.open], () => {
|
|
99
|
+
let e = A(o.open, "open");
|
|
100
100
|
e !== void 0 && (s.value = e);
|
|
101
101
|
}, {
|
|
102
102
|
immediate: !0,
|
|
103
103
|
flush: "post"
|
|
104
104
|
});
|
|
105
|
-
function
|
|
105
|
+
function v(e) {
|
|
106
106
|
e?.preventDefault();
|
|
107
107
|
let t = !s.value;
|
|
108
108
|
o.onToggle && o.onToggle(t), o.open === void 0 && (s.value = t);
|
|
109
109
|
}
|
|
110
|
-
return (
|
|
110
|
+
return (u, d) => (f(), r("li", {
|
|
111
111
|
id: t.id ?? t.propOverrides?.id,
|
|
112
|
-
class: c(
|
|
112
|
+
class: c(_(C)("db-accordion-item", o.class))
|
|
113
113
|
}, [i("details", {
|
|
114
|
-
"aria-disabled":
|
|
114
|
+
"aria-disabled": _(k)(t.disabled, "disabled"),
|
|
115
115
|
ref_key: "_ref",
|
|
116
|
-
ref:
|
|
117
|
-
name:
|
|
116
|
+
ref: m,
|
|
117
|
+
name: l.value,
|
|
118
118
|
open: s.value
|
|
119
|
-
}, [i("summary", { onClick:
|
|
119
|
+
}, [i("summary", { onClick: d[0] ||= async (e) => v(e) }, [t.headlinePlain ? (f(), r(e, { key: 0 }, [a(g(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : h(u.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")])], 8, H)], 10, V));
|
|
120
120
|
}
|
|
121
|
-
}),
|
|
121
|
+
}), W = ["id", "data-variant"], ee = /* @__PURE__ */ s({
|
|
122
122
|
name: "DBAccordion",
|
|
123
123
|
__name: "accordion",
|
|
124
124
|
props: {
|
|
@@ -136,34 +136,34 @@ var b = () => {
|
|
|
136
136
|
propOverrides: { default: void 0 }
|
|
137
137
|
},
|
|
138
138
|
setup(i) {
|
|
139
|
-
let a =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}),
|
|
143
|
-
|
|
139
|
+
let a = v(), o = i, s = p(""), l = p(!1), d = p(!1), g = p(null);
|
|
140
|
+
u(() => {
|
|
141
|
+
l.value = !0, d.value = !0;
|
|
142
|
+
}), y(() => [
|
|
143
|
+
l.value,
|
|
144
144
|
o.name,
|
|
145
145
|
o.behavior
|
|
146
146
|
], () => {
|
|
147
|
-
|
|
147
|
+
l.value && g.value && (o.behavior === "single" ? o.name ? s.value !== o.name && (s.value = o.name) : s.value = `accordion-${a}` : s.value = "");
|
|
148
148
|
}, {
|
|
149
149
|
immediate: !0,
|
|
150
150
|
flush: "post"
|
|
151
|
-
}),
|
|
152
|
-
if (
|
|
153
|
-
let e =
|
|
151
|
+
}), y(() => [g.value, s.value], () => {
|
|
152
|
+
if (g.value) {
|
|
153
|
+
let e = g.value.getElementsByTagName("details");
|
|
154
154
|
if (e) for (let t of Array.from(e)) s.value === "" ? t.removeAttribute("name") : t.name = s.value ?? "";
|
|
155
155
|
}
|
|
156
156
|
}, {
|
|
157
157
|
immediate: !0,
|
|
158
158
|
flush: "post"
|
|
159
|
-
}),
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
}), y(() => [
|
|
160
|
+
g.value,
|
|
161
|
+
d.value,
|
|
162
162
|
o.initOpenIndex
|
|
163
163
|
], () => {
|
|
164
|
-
if (
|
|
164
|
+
if (g.value && d.value) {
|
|
165
165
|
if (o.initOpenIndex && o.initOpenIndex.length > 0) {
|
|
166
|
-
let e =
|
|
166
|
+
let e = g.value.getElementsByTagName("details");
|
|
167
167
|
if (e) {
|
|
168
168
|
let t = o.behavior === "single" && o.initOpenIndex.length > 1 ? [o.initOpenIndex[0]] : o.initOpenIndex;
|
|
169
169
|
Array.from(e).forEach((e, n) => {
|
|
@@ -171,7 +171,7 @@ var b = () => {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
d.value = !1;
|
|
175
175
|
}
|
|
176
176
|
}, {
|
|
177
177
|
immediate: !0,
|
|
@@ -185,13 +185,13 @@ var b = () => {
|
|
|
185
185
|
}
|
|
186
186
|
return [];
|
|
187
187
|
}
|
|
188
|
-
return (a, s) => (
|
|
188
|
+
return (a, s) => (f(), r("ul", {
|
|
189
189
|
ref_key: "_ref",
|
|
190
|
-
ref:
|
|
190
|
+
ref: g,
|
|
191
191
|
id: i.id ?? i.propOverrides?.id,
|
|
192
|
-
class: c(
|
|
192
|
+
class: c(_(C)("db-accordion", o.class)),
|
|
193
193
|
"data-variant": i.variant
|
|
194
|
-
}, [i.items ? n("", !0) :
|
|
194
|
+
}, [i.items ? n("", !0) : h(a.$slots, "default", { key: 0 }), i.items ? (f(!0), r(e, { key: 1 }, m(b(), (e, n) => (f(), t(U, {
|
|
195
195
|
key: `accordion-item-${n}`,
|
|
196
196
|
headlinePlain: e.headlinePlain,
|
|
197
197
|
disabled: e.disabled,
|
|
@@ -200,26 +200,26 @@ var b = () => {
|
|
|
200
200
|
"headlinePlain",
|
|
201
201
|
"disabled",
|
|
202
202
|
"text"
|
|
203
|
-
]))), 128)) : n("", !0)], 10,
|
|
203
|
+
]))), 128)) : n("", !0)], 10, W));
|
|
204
204
|
}
|
|
205
|
-
}),
|
|
205
|
+
}), G = ["divider", "card"], te = ["multiple", "single"], ne = "OVERWRITE_DEFAULT_ID", K = "LABEL SHOULD BE SET", re = " ", ie = "MESSAGE SHOULD BE SET", ae = "-label", oe = "-select", q = "-message", J = "-valid-message", se = "-invalid-message", ce = "-placeholder", le = "-datalist", Y = "TODO: Add a validMessage", ue = "TODO: Add an invalidMessage", de = "Remove", fe = "Back", pe = "Selected", me = "BurgerMenu", he = "brand", ge = 4, _e = "Close", ve = "density", ye = "color", be = /* @__PURE__ */ function(e) {
|
|
206
206
|
return e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e;
|
|
207
|
-
}({}),
|
|
207
|
+
}({}), xe = Object.entries(be).map(([, e]) => e), X = /* @__PURE__ */ function(e) {
|
|
208
208
|
return e.PRIMARY = "primary", e;
|
|
209
|
-
}({}),
|
|
209
|
+
}({}), Z = /* @__PURE__ */ function(e) {
|
|
210
210
|
return e.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", e.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", e.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", e.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", e.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", e.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", e.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", e.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", e.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", e.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", e.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", e.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", e.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", e.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", e.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", e.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", e.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", e.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", e.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", e.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", e.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", e.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", e.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", e.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", e.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", e.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", e.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", e.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", e.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", e.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", e;
|
|
211
|
-
}({}),
|
|
211
|
+
}({}), Se = Object.entries(Z).map(([, e]) => e), Ce = Object.entries(X).map(([, e]) => e), we = /* @__PURE__ */ function(e) {
|
|
212
212
|
return e.CRITICAL = "critical", e.INFORMATIONAL = "informational", e.WARNING = "warning", e.SUCCESSFUL = "successful", e;
|
|
213
|
-
}({}),
|
|
213
|
+
}({}), Te = Object.entries(we).map(([, e]) => e), Ee = {
|
|
214
214
|
width: 390,
|
|
215
215
|
height: 884
|
|
216
|
-
},
|
|
216
|
+
}, De = {
|
|
217
217
|
width: 1920,
|
|
218
218
|
height: 1280
|
|
219
|
-
},
|
|
219
|
+
}, Oe = [
|
|
220
220
|
{
|
|
221
221
|
name: "desktop",
|
|
222
|
-
...
|
|
222
|
+
...De
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
name: "tablet",
|
|
@@ -228,9 +228,9 @@ var b = () => {
|
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
name: "mobile",
|
|
231
|
-
...
|
|
231
|
+
...Ee
|
|
232
232
|
}
|
|
233
|
-
],
|
|
233
|
+
], ke = "db-ux-framework", Ae = "db-ux-mode", je = [
|
|
234
234
|
"id",
|
|
235
235
|
"data-semantic",
|
|
236
236
|
"data-size",
|
|
@@ -238,7 +238,7 @@ var b = () => {
|
|
|
238
238
|
"data-placement",
|
|
239
239
|
"data-wrap",
|
|
240
240
|
"data-label"
|
|
241
|
-
],
|
|
241
|
+
], Me = /* @__PURE__ */ s({
|
|
242
242
|
name: "DBBadge",
|
|
243
243
|
__name: "badge",
|
|
244
244
|
props: {
|
|
@@ -260,10 +260,10 @@ var b = () => {
|
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
262
|
setup(t) {
|
|
263
|
-
let i = t, o =
|
|
264
|
-
return
|
|
263
|
+
let i = t, o = p(!1), s = p(null);
|
|
264
|
+
return u(() => {
|
|
265
265
|
o.value = !0;
|
|
266
|
-
}),
|
|
266
|
+
}), y(() => [s.value, o.value], () => {
|
|
267
267
|
if (s.value && o.value && i.placement?.startsWith("corner")) {
|
|
268
268
|
let e = s.value.parentElement;
|
|
269
269
|
e && e.localName.includes("badge") && (e = e.parentElement), e && (e.dataset.hasBadge = "true");
|
|
@@ -271,20 +271,20 @@ var b = () => {
|
|
|
271
271
|
}, {
|
|
272
272
|
immediate: !0,
|
|
273
273
|
flush: "post"
|
|
274
|
-
}), (o, l) => (
|
|
274
|
+
}), (o, l) => (f(), r("span", {
|
|
275
275
|
ref_key: "_ref",
|
|
276
276
|
ref: s,
|
|
277
277
|
id: t.id ?? t.propOverrides?.id,
|
|
278
|
-
class: c(
|
|
278
|
+
class: c(_(C)("db-badge", i.class)),
|
|
279
279
|
"data-semantic": t.semantic,
|
|
280
280
|
"data-size": t.size,
|
|
281
281
|
"data-emphasis": t.emphasis,
|
|
282
282
|
"data-placement": t.placement,
|
|
283
|
-
"data-wrap":
|
|
284
|
-
"data-label": t.placement?.startsWith("corner") && (t.label ??
|
|
285
|
-
}, [t.text ? (
|
|
283
|
+
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
284
|
+
"data-label": t.placement?.startsWith("corner") && (t.label ?? _("LABEL SHOULD BE SET"))
|
|
285
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(o.$slots, "default")], 10, je));
|
|
286
286
|
}
|
|
287
|
-
}),
|
|
287
|
+
}), Ne = [
|
|
288
288
|
"inline",
|
|
289
289
|
"corner-top-left",
|
|
290
290
|
"corner-top-right",
|
|
@@ -292,11 +292,11 @@ var b = () => {
|
|
|
292
292
|
"corner-center-right",
|
|
293
293
|
"corner-bottom-left",
|
|
294
294
|
"corner-bottom-right"
|
|
295
|
-
],
|
|
295
|
+
], Pe = [
|
|
296
296
|
"data-icon",
|
|
297
297
|
"data-show-icon",
|
|
298
298
|
"id"
|
|
299
|
-
],
|
|
299
|
+
], Fe = /* @__PURE__ */ s({
|
|
300
300
|
name: "DBBrand",
|
|
301
301
|
__name: "brand",
|
|
302
302
|
props: {
|
|
@@ -318,17 +318,17 @@ var b = () => {
|
|
|
318
318
|
text: { default: void 0 }
|
|
319
319
|
},
|
|
320
320
|
setup(t) {
|
|
321
|
-
let i = t, o =
|
|
322
|
-
return (s, l) => (
|
|
321
|
+
let i = t, o = p(null);
|
|
322
|
+
return (s, l) => (f(), r("div", {
|
|
323
323
|
ref_key: "_ref",
|
|
324
324
|
ref: o,
|
|
325
|
-
"data-icon": t.hideLogo ? "none" : t.icon ??
|
|
326
|
-
"data-show-icon":
|
|
325
|
+
"data-icon": t.hideLogo ? "none" : t.icon ?? _("brand"),
|
|
326
|
+
"data-show-icon": _(k)(t.showIcon, "showIcon"),
|
|
327
327
|
id: t.id ?? t.propOverrides?.id,
|
|
328
|
-
class: c(
|
|
329
|
-
}, [
|
|
328
|
+
class: c(_(C)("db-brand", i.class))
|
|
329
|
+
}, [h(s.$slots, "default"), t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0)], 10, Pe));
|
|
330
330
|
}
|
|
331
|
-
}),
|
|
331
|
+
}), Ie = [
|
|
332
332
|
"id",
|
|
333
333
|
"type",
|
|
334
334
|
"disabled",
|
|
@@ -344,7 +344,7 @@ var b = () => {
|
|
|
344
344
|
"name",
|
|
345
345
|
"form",
|
|
346
346
|
"value"
|
|
347
|
-
],
|
|
347
|
+
], Le = /* @__PURE__ */ s({
|
|
348
348
|
name: "DBButton",
|
|
349
349
|
__name: "button",
|
|
350
350
|
props: {
|
|
@@ -396,50 +396,50 @@ var b = () => {
|
|
|
396
396
|
}
|
|
397
397
|
},
|
|
398
398
|
setup(t) {
|
|
399
|
-
let i = t, o =
|
|
399
|
+
let i = t, o = p(null);
|
|
400
400
|
function s() {
|
|
401
401
|
return i.type ? i.type : i.onClick ? "button" : "submit";
|
|
402
402
|
}
|
|
403
403
|
function l(e) {
|
|
404
404
|
i.onClick && i.onClick(e);
|
|
405
405
|
}
|
|
406
|
-
return (u,
|
|
406
|
+
return (u, d) => (f(), r("button", {
|
|
407
407
|
ref_key: "_ref",
|
|
408
408
|
ref: o,
|
|
409
409
|
id: t.id ?? t.propOverrides?.id,
|
|
410
|
-
class: c(
|
|
410
|
+
class: c(_(C)("db-button", i.class)),
|
|
411
411
|
type: s(),
|
|
412
|
-
disabled:
|
|
412
|
+
disabled: _(A)(t.disabled, "disabled"),
|
|
413
413
|
"data-icon": t.iconLeading ?? t.icon,
|
|
414
|
-
"data-show-icon":
|
|
414
|
+
"data-show-icon": _(k)(t.showIconLeading, "showIconLeading") || _(k)(t.showIcon, "showIcon"),
|
|
415
415
|
"data-icon-trailing": t.iconTrailing,
|
|
416
|
-
"data-show-icon-trailing":
|
|
416
|
+
"data-show-icon-trailing": _(k)(t.showIconTrailing, "showIconTrailing"),
|
|
417
417
|
"data-size": t.size,
|
|
418
418
|
"data-width": t.width,
|
|
419
419
|
"data-variant": t.variant,
|
|
420
|
-
"data-wrap":
|
|
421
|
-
"data-no-text":
|
|
420
|
+
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
421
|
+
"data-no-text": _(k)(t.noText, "noText"),
|
|
422
422
|
name: t.name,
|
|
423
423
|
form: t.form,
|
|
424
424
|
value: t.value,
|
|
425
|
-
onClick:
|
|
426
|
-
}, [t.text ? (
|
|
425
|
+
onClick: d[0] ||= async (e) => l(e)
|
|
426
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")], 10, Ie));
|
|
427
427
|
}
|
|
428
|
-
}),
|
|
428
|
+
}), Re = [
|
|
429
429
|
"outlined",
|
|
430
430
|
"brand",
|
|
431
431
|
"filled",
|
|
432
432
|
"ghost"
|
|
433
|
-
],
|
|
433
|
+
], ze = [
|
|
434
434
|
"button",
|
|
435
435
|
"reset",
|
|
436
436
|
"submit"
|
|
437
|
-
],
|
|
437
|
+
], Be = [
|
|
438
438
|
"id",
|
|
439
439
|
"data-behavior",
|
|
440
440
|
"data-elevation-level",
|
|
441
441
|
"data-spacing"
|
|
442
|
-
],
|
|
442
|
+
], Ve = /* @__PURE__ */ s({
|
|
443
443
|
name: "DBCard",
|
|
444
444
|
__name: "card",
|
|
445
445
|
props: {
|
|
@@ -459,34 +459,34 @@ var b = () => {
|
|
|
459
459
|
spacing: { default: void 0 }
|
|
460
460
|
},
|
|
461
461
|
setup(e) {
|
|
462
|
-
let t = e, n =
|
|
462
|
+
let t = e, n = p(null);
|
|
463
463
|
function i(e) {
|
|
464
464
|
t.onClick && t.onClick(e);
|
|
465
465
|
}
|
|
466
|
-
return (a, o) => (
|
|
466
|
+
return (a, o) => (f(), r("div", {
|
|
467
467
|
ref_key: "_ref",
|
|
468
468
|
ref: n,
|
|
469
469
|
id: e.id ?? e.propOverrides?.id,
|
|
470
|
-
class: c(
|
|
470
|
+
class: c(_(C)("db-card", t.class)),
|
|
471
471
|
"data-behavior": e.behavior,
|
|
472
472
|
"data-elevation-level": e.elevationLevel,
|
|
473
473
|
"data-spacing": e.spacing,
|
|
474
474
|
onClick: o[0] ||= async (e) => i(e)
|
|
475
|
-
}, [
|
|
475
|
+
}, [h(a.$slots, "default")], 10, Be));
|
|
476
476
|
}
|
|
477
|
-
}),
|
|
477
|
+
}), He = ["static", "interactive"], Ue = [
|
|
478
478
|
"1",
|
|
479
479
|
"2",
|
|
480
480
|
"3"
|
|
481
481
|
], Q = (e, t, n = "value") => {
|
|
482
482
|
e(`update:${n}`, t.target[n]);
|
|
483
|
-
},
|
|
483
|
+
}, We = (e, t, n) => {
|
|
484
484
|
e.form && !e._dbFormResetListenerAdded && (e.form.addEventListener("reset", (e) => {
|
|
485
485
|
t(e);
|
|
486
486
|
}, { signal: n }), e._dbFormResetListenerAdded = !0);
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
|
|
487
|
+
}, Ge = (e, t, n, r) => {
|
|
488
|
+
We(e, (r) => {
|
|
489
|
+
O(() => {
|
|
490
490
|
let i = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked;
|
|
491
491
|
n({
|
|
492
492
|
...r,
|
|
@@ -497,9 +497,9 @@ var b = () => {
|
|
|
497
497
|
});
|
|
498
498
|
}, 1);
|
|
499
499
|
}, r);
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
|
|
500
|
+
}, Ke = (e, t, n, r) => {
|
|
501
|
+
We(e, (r) => {
|
|
502
|
+
O(() => {
|
|
503
503
|
let i = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value;
|
|
504
504
|
n({
|
|
505
505
|
...r,
|
|
@@ -510,7 +510,7 @@ var b = () => {
|
|
|
510
510
|
});
|
|
511
511
|
}, 1);
|
|
512
512
|
}, r);
|
|
513
|
-
},
|
|
513
|
+
}, qe = [
|
|
514
514
|
"id",
|
|
515
515
|
"data-icon",
|
|
516
516
|
"data-semantic",
|
|
@@ -541,24 +541,24 @@ var b = () => {
|
|
|
541
541
|
}
|
|
542
542
|
},
|
|
543
543
|
setup(t) {
|
|
544
|
-
let i = t, o =
|
|
545
|
-
return (s, l) => (
|
|
544
|
+
let i = t, o = p(null);
|
|
545
|
+
return (s, l) => (f(), r("span", {
|
|
546
546
|
ref_key: "_ref",
|
|
547
547
|
ref: o,
|
|
548
548
|
id: t.id ?? t.propOverrides?.id,
|
|
549
|
-
class: c(
|
|
549
|
+
class: c(_(C)("db-infotext", i.class)),
|
|
550
550
|
"data-icon": t.icon,
|
|
551
551
|
"data-semantic": t.semantic,
|
|
552
552
|
"data-size": t.size,
|
|
553
|
-
"data-wrap":
|
|
554
|
-
"data-show-icon-leading":
|
|
555
|
-
}, [t.text ? (
|
|
553
|
+
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
554
|
+
"data-show-icon-leading": _(k)(t.showIcon ?? !0, "showIcon")
|
|
555
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, qe));
|
|
556
556
|
}
|
|
557
|
-
}),
|
|
557
|
+
}), Je = [
|
|
558
558
|
"data-size",
|
|
559
559
|
"data-hide-asterisk",
|
|
560
560
|
"data-hide-label"
|
|
561
|
-
],
|
|
561
|
+
], Ye = ["for"], Xe = [
|
|
562
562
|
"aria-invalid",
|
|
563
563
|
"data-custom-validity",
|
|
564
564
|
"id",
|
|
@@ -568,10 +568,10 @@ var b = () => {
|
|
|
568
568
|
"value",
|
|
569
569
|
"required",
|
|
570
570
|
"aria-describedby"
|
|
571
|
-
],
|
|
571
|
+
], Ze = {
|
|
572
572
|
"data-visually-hidden": "true",
|
|
573
573
|
role: "status"
|
|
574
|
-
},
|
|
574
|
+
}, Qe = /* @__PURE__ */ s({
|
|
575
575
|
name: "DBCheckbox",
|
|
576
576
|
__name: "checkbox",
|
|
577
577
|
props: {
|
|
@@ -640,53 +640,53 @@ var b = () => {
|
|
|
640
640
|
size: { default: void 0 }
|
|
641
641
|
},
|
|
642
642
|
emits: ["update:checked"],
|
|
643
|
-
setup(s, { emit:
|
|
644
|
-
let
|
|
645
|
-
|
|
646
|
-
w.value = !0,
|
|
647
|
-
}),
|
|
643
|
+
setup(s, { emit: l }) {
|
|
644
|
+
let m = v(), x = l, S = s, w = p(!1), T = p(void 0), D = p(void 0), k = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(""), L = p(void 0), R = p(null);
|
|
645
|
+
u(() => {
|
|
646
|
+
w.value = !0, W(), M.value = S.invalidMessage || "TODO: Add an invalidMessage";
|
|
647
|
+
}), d(() => {
|
|
648
648
|
L.value?.abort();
|
|
649
|
-
}),
|
|
650
|
-
(
|
|
649
|
+
}), y(() => [S.id, S.propOverrides?.id], () => {
|
|
650
|
+
(S.id ?? S.propOverrides?.id) && W();
|
|
651
651
|
}, {
|
|
652
652
|
immediate: !0,
|
|
653
653
|
flush: "post"
|
|
654
|
-
}),
|
|
655
|
-
M.value =
|
|
654
|
+
}), y(() => [R.value, S.invalidMessage], () => {
|
|
655
|
+
M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage";
|
|
656
656
|
}, {
|
|
657
657
|
immediate: !0,
|
|
658
658
|
flush: "post"
|
|
659
|
-
}),
|
|
660
|
-
if (
|
|
661
|
-
let e =
|
|
662
|
-
|
|
659
|
+
}), y(() => [T.value], () => {
|
|
660
|
+
if (T.value) {
|
|
661
|
+
let e = T.value + q;
|
|
662
|
+
D.value = e, k.value = T.value + J, j.value = T.value + se, I(S.message, S.showMessage) && (N.value = e), B();
|
|
663
663
|
}
|
|
664
664
|
}, {
|
|
665
665
|
immediate: !0,
|
|
666
666
|
flush: "post"
|
|
667
|
-
}),
|
|
667
|
+
}), y(() => [
|
|
668
668
|
w.value,
|
|
669
669
|
R.value,
|
|
670
|
-
|
|
670
|
+
S.indeterminate
|
|
671
671
|
], () => {
|
|
672
|
-
R.value &&
|
|
672
|
+
R.value && S.indeterminate !== void 0 && (R.value.indeterminate = !!A(S.indeterminate));
|
|
673
673
|
}, {
|
|
674
674
|
immediate: !0,
|
|
675
675
|
flush: "post"
|
|
676
|
-
}),
|
|
676
|
+
}), y(() => [
|
|
677
677
|
w.value,
|
|
678
678
|
R.value,
|
|
679
|
-
|
|
679
|
+
S.checked
|
|
680
680
|
], () => {
|
|
681
|
-
w.value && R.value && (
|
|
681
|
+
w.value && R.value && (S.checked != null && (R.value.checked = !!A(S.checked)), w.value = !1);
|
|
682
682
|
}, {
|
|
683
683
|
immediate: !0,
|
|
684
684
|
flush: "post"
|
|
685
|
-
}),
|
|
685
|
+
}), y(() => [R.value], () => {
|
|
686
686
|
if (R.value) {
|
|
687
687
|
let e = L.value;
|
|
688
|
-
e || (e = new AbortController(), L.value = e),
|
|
689
|
-
checked:
|
|
688
|
+
e || (e = new AbortController(), L.value = e), Ge(R.value, {
|
|
689
|
+
checked: S.checked,
|
|
690
690
|
defaultChecked: void 0
|
|
691
691
|
}, (e) => {
|
|
692
692
|
V(e, !0);
|
|
@@ -697,67 +697,67 @@ var b = () => {
|
|
|
697
697
|
flush: "post"
|
|
698
698
|
});
|
|
699
699
|
function z() {
|
|
700
|
-
return !!(
|
|
700
|
+
return !!(S.validMessage ?? S.validation === "valid");
|
|
701
701
|
}
|
|
702
702
|
function B() {
|
|
703
|
-
!R.value?.validity.valid ||
|
|
703
|
+
!R.value?.validity.valid || S.validation === "invalid" ? (N.value = j.value, M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage", E() && (P.value = M.value, O(() => P.value = "", 1e3))) : z() && R.value?.validity.valid && S.required ? (N.value = k.value, E() && (P.value = S.validMessage ?? "TODO: Add a validMessage", O(() => P.value = "", 1e3))) : I(S.message, S.showMessage) ? N.value = D.value : N.value = void 0;
|
|
704
704
|
}
|
|
705
705
|
function V(e, t) {
|
|
706
|
-
|
|
706
|
+
S.onChange && S.onChange(e), Q(x, e, "checked"), B();
|
|
707
707
|
}
|
|
708
708
|
function H(e) {
|
|
709
|
-
|
|
709
|
+
S.onBlur && S.onBlur(e);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
|
|
711
|
+
function U(e) {
|
|
712
|
+
S.onFocus && S.onFocus(e);
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
let e =
|
|
716
|
-
|
|
714
|
+
function W() {
|
|
715
|
+
let e = S.id ?? S.propOverrides?.id ?? `checkbox-${m}`;
|
|
716
|
+
T.value = e, D.value = e + q, k.value = e + J, j.value = e + se;
|
|
717
717
|
}
|
|
718
|
-
return (l, u) => (
|
|
719
|
-
class: c(
|
|
718
|
+
return (l, u) => (f(), r("div", {
|
|
719
|
+
class: c(_(C)("db-checkbox", S.class)),
|
|
720
720
|
"data-size": s.size,
|
|
721
|
-
"data-hide-asterisk":
|
|
722
|
-
"data-hide-label":
|
|
721
|
+
"data-hide-asterisk": _(F)(s.showRequiredAsterisk),
|
|
722
|
+
"data-hide-label": _(F)(s.showLabel)
|
|
723
723
|
}, [
|
|
724
|
-
i("label", { for:
|
|
724
|
+
i("label", { for: T.value }, [
|
|
725
725
|
i("input", {
|
|
726
726
|
type: "checkbox",
|
|
727
727
|
"aria-invalid": s.validation === "invalid",
|
|
728
728
|
"data-custom-validity": s.validation,
|
|
729
729
|
ref_key: "_ref",
|
|
730
730
|
ref: R,
|
|
731
|
-
id:
|
|
731
|
+
id: T.value,
|
|
732
732
|
name: s.name,
|
|
733
|
-
checked:
|
|
734
|
-
disabled:
|
|
733
|
+
checked: _(A)(s.checked, "checked"),
|
|
734
|
+
disabled: _(A)(s.disabled, "disabled"),
|
|
735
735
|
value: s.value,
|
|
736
|
-
required:
|
|
736
|
+
required: _(A)(s.required, "required"),
|
|
737
737
|
onChange: u[0] ||= async (e) => V(e),
|
|
738
738
|
onBlur: u[1] ||= async (e) => H(e),
|
|
739
|
-
onFocus: u[2] ||= async (e) =>
|
|
739
|
+
onFocus: u[2] ||= async (e) => U(e),
|
|
740
740
|
"aria-describedby": s.ariaDescribedBy ?? N.value
|
|
741
|
-
}, null, 40,
|
|
742
|
-
s.label ? (
|
|
743
|
-
|
|
744
|
-
], 8,
|
|
745
|
-
|
|
741
|
+
}, null, 40, Xe),
|
|
742
|
+
s.label ? (f(), r(e, { key: 0 }, [a(g(s.label), 1)], 64)) : n("", !0),
|
|
743
|
+
h(l.$slots, "default")
|
|
744
|
+
], 8, Ye),
|
|
745
|
+
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
746
746
|
key: 0,
|
|
747
747
|
size: "small",
|
|
748
748
|
icon: s.messageIcon,
|
|
749
|
-
id:
|
|
749
|
+
id: D.value
|
|
750
750
|
}, {
|
|
751
|
-
default:
|
|
751
|
+
default: b(() => [a(g(s.message), 1)]),
|
|
752
752
|
_: 1
|
|
753
753
|
}, 8, ["icon", "id"])) : n("", !0),
|
|
754
|
-
z() ? (
|
|
754
|
+
z() ? (f(), t($, {
|
|
755
755
|
key: 1,
|
|
756
756
|
size: "small",
|
|
757
757
|
semantic: "successful",
|
|
758
|
-
id:
|
|
758
|
+
id: k.value
|
|
759
759
|
}, {
|
|
760
|
-
default:
|
|
760
|
+
default: b(() => [a(g(s.validMessage || _("TODO: Add a validMessage")), 1)]),
|
|
761
761
|
_: 1
|
|
762
762
|
}, 8, ["id"])) : n("", !0),
|
|
763
763
|
o($, {
|
|
@@ -765,13 +765,13 @@ var b = () => {
|
|
|
765
765
|
semantic: "critical",
|
|
766
766
|
id: j.value
|
|
767
767
|
}, {
|
|
768
|
-
default:
|
|
768
|
+
default: b(() => [a(g(M.value), 1)]),
|
|
769
769
|
_: 1
|
|
770
770
|
}, 8, ["id"]),
|
|
771
|
-
i("span",
|
|
772
|
-
], 10,
|
|
771
|
+
i("span", Ze, g(P.value), 1)
|
|
772
|
+
], 10, Je));
|
|
773
773
|
}
|
|
774
|
-
}),
|
|
774
|
+
}), $e = [
|
|
775
775
|
"id",
|
|
776
776
|
"data-icon",
|
|
777
777
|
"data-show-icon",
|
|
@@ -781,7 +781,7 @@ var b = () => {
|
|
|
781
781
|
"data-width",
|
|
782
782
|
"data-variant",
|
|
783
783
|
"data-no-text"
|
|
784
|
-
],
|
|
784
|
+
], et = /* @__PURE__ */ s({
|
|
785
785
|
name: "DBCustomButton",
|
|
786
786
|
__name: "custom-button",
|
|
787
787
|
props: {
|
|
@@ -816,23 +816,23 @@ var b = () => {
|
|
|
816
816
|
wrap: { type: [Boolean, String] }
|
|
817
817
|
},
|
|
818
818
|
setup(e) {
|
|
819
|
-
let t = e, n =
|
|
820
|
-
return (i, a) => (
|
|
819
|
+
let t = e, n = p(null);
|
|
820
|
+
return (i, a) => (f(), r("div", {
|
|
821
821
|
ref_key: "_ref",
|
|
822
822
|
ref: n,
|
|
823
823
|
id: e.id ?? e.propOverrides?.id,
|
|
824
|
-
class: c(
|
|
824
|
+
class: c(_(C)("db-custom-button", t.class)),
|
|
825
825
|
"data-icon": e.iconLeading ?? e.icon,
|
|
826
|
-
"data-show-icon":
|
|
826
|
+
"data-show-icon": _(k)(e.showIconLeading, "showIconLeading") || _(k)(e.showIcon, "showIcon"),
|
|
827
827
|
"data-icon-trailing": e.iconTrailing,
|
|
828
|
-
"data-show-icon-trailing":
|
|
828
|
+
"data-show-icon-trailing": _(k)(e.showIconTrailing, "showIconTrailing"),
|
|
829
829
|
"data-size": e.size,
|
|
830
830
|
"data-width": e.width,
|
|
831
831
|
"data-variant": e.variant,
|
|
832
|
-
"data-no-text":
|
|
833
|
-
}, [
|
|
832
|
+
"data-no-text": _(k)(e.noText, "noText")
|
|
833
|
+
}, [h(i.$slots, "default")], 10, $e));
|
|
834
834
|
}
|
|
835
|
-
}),
|
|
835
|
+
}), tt = class e {
|
|
836
836
|
static callbacks = {};
|
|
837
837
|
static _instance = null;
|
|
838
838
|
static runCallbacks(t) {
|
|
@@ -843,13 +843,13 @@ var b = () => {
|
|
|
843
843
|
e._instance = this, self.document && self.document.addEventListener("click", (t) => e.runCallbacks(t));
|
|
844
844
|
}
|
|
845
845
|
addCallback(t) {
|
|
846
|
-
let n =
|
|
846
|
+
let n = x();
|
|
847
847
|
return e.callbacks[n] = t, n;
|
|
848
848
|
}
|
|
849
849
|
removeCallback(t) {
|
|
850
850
|
delete e.callbacks[t];
|
|
851
851
|
}
|
|
852
|
-
},
|
|
852
|
+
}, nt = class e {
|
|
853
853
|
static callbacks = {};
|
|
854
854
|
static _instance = null;
|
|
855
855
|
static runCallbacks(t) {
|
|
@@ -865,13 +865,13 @@ var b = () => {
|
|
|
865
865
|
}, !0);
|
|
866
866
|
}
|
|
867
867
|
addCallback(t) {
|
|
868
|
-
let n =
|
|
868
|
+
let n = x();
|
|
869
869
|
return e.callbacks[n] = t, n;
|
|
870
870
|
}
|
|
871
871
|
removeCallback(t) {
|
|
872
872
|
delete e.callbacks[t];
|
|
873
873
|
}
|
|
874
|
-
},
|
|
874
|
+
}, rt = (e) => {
|
|
875
875
|
let { top: t, bottom: n, left: r, right: i } = e.getBoundingClientRect(), { innerHeight: a, innerWidth: o } = window, s = t < 0, c = n > a, l = r < 0, u = i > o, d = e.dataset.outsideVy, f = e.dataset.outsideVx, p = e?.parentElement?.getBoundingClientRect();
|
|
876
876
|
return p && (d && (e.dataset.outsideVy === "top" ? s = p.top - (n - p.bottom) < 0 : c = p.bottom + (p.top - t) > a), f && (e.dataset.outsideVx === "left" ? l = p.left - (i - p.right) < 0 : u = p.right + (p.left - r) > o)), {
|
|
877
877
|
outTop: s,
|
|
@@ -879,17 +879,17 @@ var b = () => {
|
|
|
879
879
|
outLeft: l,
|
|
880
880
|
outRight: u
|
|
881
881
|
};
|
|
882
|
-
},
|
|
883
|
-
let { outTop: t, outBottom: n, outLeft: r, outRight: i } =
|
|
882
|
+
}, it = (e) => {
|
|
883
|
+
let { outTop: t, outBottom: n, outLeft: r, outRight: i } = rt(e), a = {};
|
|
884
884
|
return t || n ? (a = { vy: t ? "top" : "bottom" }, e.dataset.outsideVy = a.vy) : delete e.dataset.outsideVy, r || i ? (a = {
|
|
885
885
|
...a,
|
|
886
886
|
vx: i ? "right" : "left"
|
|
887
887
|
}, e.dataset.outsideVx = a.vx) : delete e.dataset.outsideVx, a;
|
|
888
|
-
},
|
|
888
|
+
}, at = (e, t, n) => {
|
|
889
889
|
if (!e || !t || getComputedStyle(e).zIndex === "9999") return;
|
|
890
|
-
let { top: r, bottom: i, childHeight: a, childWidth: o, width: s, right: c, left: l, correctedPlacement: u } =
|
|
890
|
+
let { top: r, bottom: i, childHeight: a, childWidth: o, width: s, right: c, left: l, correctedPlacement: u } = ot(e, t, n);
|
|
891
891
|
e.dataset.width === "full" && (e.style.inlineSize = `${s}px`), u === "top" || u === "bottom" || u === "top-start" || u === "bottom-start" ? e.style.insetInlineStart = `${l}px` : (u === "top-end" || u === "bottom-end") && (e.style.insetInlineStart = `${c - o}px`), u?.startsWith("top") ? e.style.insetBlockStart = `${r - a}px` : u?.startsWith("bottom") && (e.style.insetBlockStart = `${i}px`), e.style.position = "fixed";
|
|
892
|
-
},
|
|
892
|
+
}, ot = (e, t, n) => {
|
|
893
893
|
if (!e || !t) return {
|
|
894
894
|
top: 0,
|
|
895
895
|
bottom: 0,
|
|
@@ -919,17 +919,17 @@ var b = () => {
|
|
|
919
919
|
innerWidth: d,
|
|
920
920
|
innerHeight: u
|
|
921
921
|
};
|
|
922
|
-
},
|
|
923
|
-
if (
|
|
922
|
+
}, st = 10, ct = /* @__PURE__ */ new WeakMap(), lt = (e) => {
|
|
923
|
+
if (ct.has(e)) return ct.get(e);
|
|
924
924
|
let t = e.parentElement, n = 0;
|
|
925
|
-
for (; t && n <
|
|
926
|
-
if (t.dataset.correctedPlacement) return
|
|
925
|
+
for (; t && n < st;) {
|
|
926
|
+
if (t.dataset.correctedPlacement) return ct.set(e, t), t;
|
|
927
927
|
t = t.parentElement, n += 1;
|
|
928
928
|
}
|
|
929
|
-
return
|
|
930
|
-
},
|
|
929
|
+
return ct.set(e, null), null;
|
|
930
|
+
}, ut = (e, t, n) => {
|
|
931
931
|
if (!e || !t) return;
|
|
932
|
-
let r = getComputedStyle(t), i = ["absolute", "fixed"].includes(r.position), a =
|
|
932
|
+
let r = getComputedStyle(t), i = ["absolute", "fixed"].includes(r.position), a = lt(e), o = !a && !i, s = getComputedStyle(e)?.getPropertyValue("--db-popover-distance") ?? "0px", { top: c, height: l, width: u, childHeight: d, childWidth: f, right: p, left: m, bottom: h, correctedPlacement: g, innerWidth: _, innerHeight: v } = ot(e, t, n);
|
|
933
933
|
if (a) {
|
|
934
934
|
let e = a.getBoundingClientRect();
|
|
935
935
|
m = Math.abs(m - e.left), p = (u + Math.abs(p - e.right)) * 1.5, c = Math.abs(c - e.top), h = (l + Math.abs(h - e.bottom)) * 1.5;
|
|
@@ -975,7 +975,7 @@ var b = () => {
|
|
|
975
975
|
e.style.insetBlockStart = `calc(${i ? t : h}px + ${s})`, e.style.insetBlockEnd = `calc(${o && t > v ? v : t}px + ${s})`;
|
|
976
976
|
}
|
|
977
977
|
e.style.position = "fixed", e.dataset.correctedPlacement = g;
|
|
978
|
-
},
|
|
978
|
+
}, dt = ["id", "data-width"], ft = /* @__PURE__ */ s({
|
|
979
979
|
name: "DBCustomSelectDropdown",
|
|
980
980
|
__name: "custom-select-dropdown",
|
|
981
981
|
props: {
|
|
@@ -988,28 +988,28 @@ var b = () => {
|
|
|
988
988
|
propOverrides: { default: void 0 }
|
|
989
989
|
},
|
|
990
990
|
setup(e) {
|
|
991
|
-
let t = e, n =
|
|
992
|
-
return (i, a) => (
|
|
991
|
+
let t = e, n = p(null);
|
|
992
|
+
return (i, a) => (f(), r("article", {
|
|
993
993
|
"data-spacing": "none",
|
|
994
994
|
ref_key: "_ref",
|
|
995
995
|
ref: n,
|
|
996
996
|
id: e.id ?? e.propOverrides?.id,
|
|
997
|
-
class: c(
|
|
997
|
+
class: c(_(C)("db-custom-select-dropdown db-card", t.class)),
|
|
998
998
|
"data-width": e.width
|
|
999
|
-
}, [
|
|
999
|
+
}, [h(i.$slots, "default")], 10, dt));
|
|
1000
1000
|
}
|
|
1001
|
-
}),
|
|
1001
|
+
}), pt = ["id", "data-divider"], mt = [
|
|
1002
1002
|
"data-icon",
|
|
1003
1003
|
"data-show-icon",
|
|
1004
1004
|
"data-icon-trailing"
|
|
1005
|
-
],
|
|
1005
|
+
], ht = [
|
|
1006
1006
|
"type",
|
|
1007
1007
|
"name",
|
|
1008
1008
|
"form",
|
|
1009
1009
|
"checked",
|
|
1010
1010
|
"disabled",
|
|
1011
1011
|
"value"
|
|
1012
|
-
],
|
|
1012
|
+
], gt = { key: 1 }, _t = /* @__PURE__ */ s({
|
|
1013
1013
|
name: "DBCustomSelectListItem",
|
|
1014
1014
|
__name: "custom-select-list-item",
|
|
1015
1015
|
props: {
|
|
@@ -1053,33 +1053,33 @@ var b = () => {
|
|
|
1053
1053
|
},
|
|
1054
1054
|
emits: ["update:checked"],
|
|
1055
1055
|
setup(t, { emit: o }) {
|
|
1056
|
-
let s = o, l = t, u =
|
|
1057
|
-
|
|
1056
|
+
let s = o, l = t, u = p(!1), d = p(null);
|
|
1057
|
+
y(() => [l.isGroupTitle, l.showDivider], () => {
|
|
1058
1058
|
u.value = !!(l.isGroupTitle || l.showDivider);
|
|
1059
1059
|
}, {
|
|
1060
1060
|
immediate: !0,
|
|
1061
1061
|
flush: "post"
|
|
1062
1062
|
});
|
|
1063
|
-
function
|
|
1063
|
+
function m(e) {
|
|
1064
1064
|
e.stopPropagation(), l.onChange && l.onChange(e), Q(s, e, "checked");
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
if (!(l.isGroupTitle || l.type === "checkbox")) return
|
|
1066
|
+
function v() {
|
|
1067
|
+
if (!(l.isGroupTitle || l.type === "checkbox")) return A(l.checked, "checked") ? "check" : "x_placeholder";
|
|
1068
1068
|
}
|
|
1069
|
-
return (o, s) => (
|
|
1069
|
+
return (o, s) => (f(), r("li", {
|
|
1070
1070
|
ref_key: "_ref",
|
|
1071
|
-
ref:
|
|
1071
|
+
ref: d,
|
|
1072
1072
|
id: t.id ?? t.propOverrides?.id,
|
|
1073
|
-
class: c(
|
|
1073
|
+
class: c(_(C)("db-custom-select-list-item", l.class, {
|
|
1074
1074
|
"db-checkbox": t.type === "checkbox" && !t.isGroupTitle,
|
|
1075
1075
|
"db-radio": t.type !== "checkbox" && !t.isGroupTitle
|
|
1076
1076
|
})),
|
|
1077
|
-
"data-divider":
|
|
1078
|
-
}, [t.isGroupTitle ? (
|
|
1077
|
+
"data-divider": _(k)(u.value, "hasDivider")
|
|
1078
|
+
}, [t.isGroupTitle ? (f(), r("span", gt, g(t.groupTitle), 1)) : (f(), r("label", {
|
|
1079
1079
|
key: 0,
|
|
1080
1080
|
"data-icon": t.type !== "checkbox" && t.icon ? t.icon : void 0,
|
|
1081
|
-
"data-show-icon":
|
|
1082
|
-
"data-icon-trailing":
|
|
1081
|
+
"data-show-icon": _(k)(t.showIcon, "showIcon"),
|
|
1082
|
+
"data-icon-trailing": v()
|
|
1083
1083
|
}, [
|
|
1084
1084
|
i("input", {
|
|
1085
1085
|
class: "db-custom-select-list-item-checkbox",
|
|
@@ -1087,20 +1087,20 @@ var b = () => {
|
|
|
1087
1087
|
type: t.type,
|
|
1088
1088
|
name: t.name,
|
|
1089
1089
|
form: t.name,
|
|
1090
|
-
checked:
|
|
1091
|
-
disabled:
|
|
1090
|
+
checked: _(A)(t.checked, "checked"),
|
|
1091
|
+
disabled: _(A)(t.disabled, "disabled"),
|
|
1092
1092
|
value: t.value,
|
|
1093
|
-
onChange: s[0] ||= async (e) =>
|
|
1094
|
-
}, null, 40,
|
|
1095
|
-
t.label ? (
|
|
1096
|
-
|
|
1097
|
-
], 8,
|
|
1093
|
+
onChange: s[0] ||= async (e) => m(e)
|
|
1094
|
+
}, null, 40, ht),
|
|
1095
|
+
t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
|
|
1096
|
+
h(o.$slots, "default")
|
|
1097
|
+
], 8, mt))], 10, pt));
|
|
1098
1098
|
}
|
|
1099
|
-
}),
|
|
1099
|
+
}), vt = [
|
|
1100
1100
|
"role",
|
|
1101
1101
|
"aria-label",
|
|
1102
1102
|
"id"
|
|
1103
|
-
],
|
|
1103
|
+
], yt = /* @__PURE__ */ s({
|
|
1104
1104
|
name: "DBCustomSelectList",
|
|
1105
1105
|
__name: "custom-select-list",
|
|
1106
1106
|
props: {
|
|
@@ -1117,17 +1117,17 @@ var b = () => {
|
|
|
1117
1117
|
propOverrides: { default: void 0 }
|
|
1118
1118
|
},
|
|
1119
1119
|
setup(e) {
|
|
1120
|
-
let t = e, n =
|
|
1121
|
-
return (a, o) => (
|
|
1120
|
+
let t = e, n = p(null);
|
|
1121
|
+
return (a, o) => (f(), r("div", {
|
|
1122
1122
|
role: e.multiple ? "group" : "radiogroup",
|
|
1123
1123
|
"aria-label": e.label,
|
|
1124
1124
|
ref_key: "_ref",
|
|
1125
1125
|
ref: n,
|
|
1126
1126
|
id: e.id ?? e.propOverrides?.id,
|
|
1127
|
-
class: c(
|
|
1128
|
-
}, [i("ul", null, [
|
|
1127
|
+
class: c(_(C)("db-custom-select-list", t.class))
|
|
1128
|
+
}, [i("ul", null, [h(a.$slots, "default")])], 10, vt));
|
|
1129
1129
|
}
|
|
1130
|
-
}),
|
|
1130
|
+
}), bt = [
|
|
1131
1131
|
"data-variant",
|
|
1132
1132
|
"data-hide-label",
|
|
1133
1133
|
"data-show-icon",
|
|
@@ -1135,10 +1135,10 @@ var b = () => {
|
|
|
1135
1135
|
"data-icon-trailing",
|
|
1136
1136
|
"data-hide-asterisk",
|
|
1137
1137
|
"data-show-icon-trailing"
|
|
1138
|
-
],
|
|
1138
|
+
], xt = ["for"], St = /* @__PURE__ */ "aria-invalid.data-custom-validity.data-field-sizing.id.name.type.multiple.accept.placeholder.disabled.required.step.value.maxLength.minLength.max.min.readOnly.form.pattern.size.autoComplete.autoFocus.enterKeyHint.inputMode.list.aria-describedby.role".split("."), Ct = ["id"], wt = ["value"], Tt = {
|
|
1139
1139
|
"data-visually-hidden": "true",
|
|
1140
1140
|
role: "status"
|
|
1141
|
-
},
|
|
1141
|
+
}, Et = /* @__PURE__ */ s({
|
|
1142
1142
|
name: "DBInput",
|
|
1143
1143
|
__name: "input",
|
|
1144
1144
|
props: {
|
|
@@ -1255,121 +1255,121 @@ var b = () => {
|
|
|
1255
1255
|
size: { default: void 0 }
|
|
1256
1256
|
},
|
|
1257
1257
|
emits: ["update:value"],
|
|
1258
|
-
setup(s, { emit:
|
|
1259
|
-
let x =
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
}),
|
|
1263
|
-
|
|
1264
|
-
}),
|
|
1265
|
-
(
|
|
1258
|
+
setup(s, { emit: l }) {
|
|
1259
|
+
let x = v(), S = l, T = s, P = p(void 0), L = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p(void 0), U = p(""), W = p(""), ee = p(void 0), G = p(null);
|
|
1260
|
+
u(() => {
|
|
1261
|
+
ce(), B.value = T.invalidMessage || "TODO: Add an invalidMessage";
|
|
1262
|
+
}), d(() => {
|
|
1263
|
+
ee.value?.abort();
|
|
1264
|
+
}), y(() => [T.id, T.propOverrides?.id], () => {
|
|
1265
|
+
(T.id ?? T.propOverrides?.id) && ce();
|
|
1266
1266
|
}, {
|
|
1267
1267
|
immediate: !0,
|
|
1268
1268
|
flush: "post"
|
|
1269
|
-
}),
|
|
1270
|
-
B.value =
|
|
1269
|
+
}), y(() => [G.value, T.invalidMessage], () => {
|
|
1270
|
+
B.value = T.invalidMessage || G.value?.validationMessage || "TODO: Add an invalidMessage";
|
|
1271
1271
|
}, {
|
|
1272
1272
|
immediate: !0,
|
|
1273
1273
|
flush: "post"
|
|
1274
|
-
}),
|
|
1275
|
-
if (
|
|
1276
|
-
let e =
|
|
1277
|
-
L.value = e, R.value =
|
|
1274
|
+
}), y(() => [P.value], () => {
|
|
1275
|
+
if (P.value) {
|
|
1276
|
+
let e = P.value + q;
|
|
1277
|
+
L.value = e, R.value = P.value + J, z.value = P.value + se, V.value = T.dataListId ?? P.value + "-datalist", I(T.message, T.showMessage) && (H.value = e), ne();
|
|
1278
1278
|
}
|
|
1279
1279
|
}, {
|
|
1280
1280
|
immediate: !0,
|
|
1281
1281
|
flush: "post"
|
|
1282
|
-
}),
|
|
1283
|
-
|
|
1282
|
+
}), y(() => [T.value], () => {
|
|
1283
|
+
U.value = T.value;
|
|
1284
1284
|
}, {
|
|
1285
1285
|
immediate: !0,
|
|
1286
1286
|
flush: "post"
|
|
1287
|
-
}),
|
|
1288
|
-
if (
|
|
1289
|
-
let e =
|
|
1290
|
-
e || (e = new AbortController(),
|
|
1291
|
-
value:
|
|
1287
|
+
}), y(() => [G.value], () => {
|
|
1288
|
+
if (G.value) {
|
|
1289
|
+
let e = ee.value;
|
|
1290
|
+
e || (e = new AbortController(), ee.value = e), Ke(G.value, {
|
|
1291
|
+
value: T.value,
|
|
1292
1292
|
defaultValue: void 0
|
|
1293
1293
|
}, (e) => {
|
|
1294
|
-
|
|
1294
|
+
re(e, !0), K(e, !0);
|
|
1295
1295
|
}, e.signal);
|
|
1296
1296
|
}
|
|
1297
1297
|
}, {
|
|
1298
1298
|
immediate: !0,
|
|
1299
1299
|
flush: "post"
|
|
1300
1300
|
});
|
|
1301
|
+
function te() {
|
|
1302
|
+
return !!(T.validMessage ?? T.validation === "valid");
|
|
1303
|
+
}
|
|
1301
1304
|
function ne() {
|
|
1302
|
-
|
|
1305
|
+
!G.value?.validity.valid || T.validation === "invalid" ? (H.value = z.value, B.value = T.invalidMessage || G.value?.validationMessage || "TODO: Add an invalidMessage", E() && (W.value = B.value, O(() => W.value = "", 1e3))) : te() && G.value?.validity.valid && (T.required || T.minLength || T.maxLength || T.pattern) ? (H.value = R.value, E() && (W.value = T.validMessage ?? "TODO: Add a validMessage", O(() => W.value = "", 1e3))) : I(T.message, T.showMessage) ? H.value = L.value : H.value = void 0;
|
|
1303
1306
|
}
|
|
1304
|
-
function
|
|
1305
|
-
|
|
1307
|
+
function K(e, t) {
|
|
1308
|
+
T.input && T.input(e), U.value = e.target.value, T.onInput && T.onInput(e), Q(S, e), ne();
|
|
1306
1309
|
}
|
|
1307
|
-
function
|
|
1308
|
-
|
|
1310
|
+
function re(e, t) {
|
|
1311
|
+
T.onChange && T.onChange(e), Q(S, e), ne();
|
|
1309
1312
|
}
|
|
1310
|
-
function ie(e
|
|
1311
|
-
|
|
1313
|
+
function ie(e) {
|
|
1314
|
+
T.onBlur && T.onBlur(e);
|
|
1312
1315
|
}
|
|
1313
1316
|
function ae(e) {
|
|
1314
|
-
|
|
1317
|
+
T.onFocus && T.onFocus(e);
|
|
1315
1318
|
}
|
|
1316
|
-
function oe(
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
function se() {
|
|
1320
|
-
let e = N.dataList;
|
|
1321
|
-
return Array.from((C(e) ? e?.map((e) => ({
|
|
1319
|
+
function oe() {
|
|
1320
|
+
let e = T.dataList;
|
|
1321
|
+
return Array.from((w(e) ? e?.map((e) => ({
|
|
1322
1322
|
value: e,
|
|
1323
1323
|
label: void 0
|
|
1324
1324
|
})) : e) || []);
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1327
|
-
let e =
|
|
1328
|
-
|
|
1326
|
+
function ce() {
|
|
1327
|
+
let e = T.id ?? T.propOverrides?.id ?? `input-${x}`;
|
|
1328
|
+
P.value = e, L.value = e + q, R.value = e + J, z.value = e + se, V.value = e + le;
|
|
1329
1329
|
}
|
|
1330
|
-
return (l, u) => (
|
|
1331
|
-
class: c(
|
|
1330
|
+
return (l, u) => (f(), r("div", {
|
|
1331
|
+
class: c(_(C)("db-input", T.class)),
|
|
1332
1332
|
"data-variant": s.variant,
|
|
1333
|
-
"data-hide-label":
|
|
1334
|
-
"data-show-icon":
|
|
1333
|
+
"data-hide-label": _(F)(s.showLabel),
|
|
1334
|
+
"data-show-icon": _(k)(s.showIconLeading, "showIconLeading") || _(k)(s.showIcon, "showIcon"),
|
|
1335
1335
|
"data-icon": s.iconLeading ?? s.icon,
|
|
1336
1336
|
"data-icon-trailing": s.iconTrailing,
|
|
1337
|
-
"data-hide-asterisk":
|
|
1338
|
-
"data-show-icon-trailing":
|
|
1337
|
+
"data-hide-asterisk": _(F)(s.showRequiredAsterisk),
|
|
1338
|
+
"data-show-icon-trailing": _(k)(s.showIconTrailing, "showIconTrailing")
|
|
1339
1339
|
}, [
|
|
1340
|
-
i("label", { for:
|
|
1340
|
+
i("label", { for: P.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, xt),
|
|
1341
1341
|
i("input", {
|
|
1342
1342
|
"aria-invalid": s.validation === "invalid",
|
|
1343
1343
|
"data-custom-validity": s.validation,
|
|
1344
1344
|
"data-field-sizing": s.fieldSizing,
|
|
1345
1345
|
ref_key: "_ref",
|
|
1346
|
-
ref:
|
|
1347
|
-
id:
|
|
1346
|
+
ref: G,
|
|
1347
|
+
id: P.value,
|
|
1348
1348
|
name: s.name,
|
|
1349
1349
|
type: s.type || "text",
|
|
1350
|
-
multiple:
|
|
1350
|
+
multiple: _(A)(s.multiple, "multiple"),
|
|
1351
1351
|
accept: s.accept,
|
|
1352
|
-
placeholder: s.placeholder ??
|
|
1353
|
-
disabled:
|
|
1354
|
-
required:
|
|
1355
|
-
step:
|
|
1356
|
-
value: s.value ??
|
|
1357
|
-
maxLength:
|
|
1358
|
-
minLength:
|
|
1359
|
-
max:
|
|
1360
|
-
min:
|
|
1361
|
-
readOnly:
|
|
1352
|
+
placeholder: s.placeholder ?? _(" "),
|
|
1353
|
+
disabled: _(A)(s.disabled, "disabled"),
|
|
1354
|
+
required: _(A)(s.required, "required"),
|
|
1355
|
+
step: _(M)(s.step),
|
|
1356
|
+
value: s.value ?? U.value ?? "",
|
|
1357
|
+
maxLength: _(j)(s.maxLength, s.maxlength),
|
|
1358
|
+
minLength: _(j)(s.minLength, s.minlength),
|
|
1359
|
+
max: _(N)(s.max, s.type),
|
|
1360
|
+
min: _(N)(s.min, s.type),
|
|
1361
|
+
readOnly: _(A)(s.readOnly, "readOnly") || _(A)(s.readonly, "readonly") || void 0,
|
|
1362
1362
|
form: s.form,
|
|
1363
1363
|
pattern: s.pattern,
|
|
1364
1364
|
size: s.size,
|
|
1365
1365
|
autoComplete: s.autocomplete,
|
|
1366
|
-
autoFocus:
|
|
1366
|
+
autoFocus: _(A)(s.autofocus, "autofocus"),
|
|
1367
1367
|
enterKeyHint: s.enterkeyhint,
|
|
1368
1368
|
inputMode: s.inputmode,
|
|
1369
|
-
onInput: u[0] ||= async (e) =>
|
|
1370
|
-
onChange: u[1] ||= async (e) =>
|
|
1371
|
-
onBlur: u[2] ||= async (e) =>
|
|
1372
|
-
onFocus: u[3] ||= async (e) =>
|
|
1369
|
+
onInput: u[0] ||= async (e) => K(e),
|
|
1370
|
+
onChange: u[1] ||= async (e) => re(e),
|
|
1371
|
+
onBlur: u[2] ||= async (e) => ie(e),
|
|
1372
|
+
onFocus: u[3] ||= async (e) => ae(e),
|
|
1373
1373
|
list: s.dataList && V.value,
|
|
1374
1374
|
"aria-describedby": s.ariaDescribedBy ?? H.value,
|
|
1375
1375
|
role: [
|
|
@@ -1379,36 +1379,36 @@ var b = () => {
|
|
|
1379
1379
|
"week",
|
|
1380
1380
|
"month",
|
|
1381
1381
|
"color"
|
|
1382
|
-
].includes(s.type ?? "") &&
|
|
1383
|
-
}, null, 40,
|
|
1384
|
-
s.dataList ? (
|
|
1382
|
+
].includes(s.type ?? "") && _(D)() ? "textbox" : void 0
|
|
1383
|
+
}, null, 40, St),
|
|
1384
|
+
s.dataList ? (f(), r("datalist", {
|
|
1385
1385
|
key: 0,
|
|
1386
1386
|
id: V.value
|
|
1387
|
-
}, [(
|
|
1387
|
+
}, [(f(!0), r(e, null, m(oe(), (e) => (f(), r("option", {
|
|
1388
1388
|
key: V.value + "-option-" + e.value,
|
|
1389
1389
|
value: e.value
|
|
1390
|
-
},
|
|
1391
|
-
|
|
1392
|
-
|
|
1390
|
+
}, g(e.label), 9, wt))), 128))], 8, Ct)) : n("", !0),
|
|
1391
|
+
h(l.$slots, "default"),
|
|
1392
|
+
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
1393
1393
|
key: 1,
|
|
1394
1394
|
size: s.messageSize || "small",
|
|
1395
1395
|
icon: s.messageIcon,
|
|
1396
1396
|
id: L.value
|
|
1397
1397
|
}, {
|
|
1398
|
-
default:
|
|
1398
|
+
default: b(() => [a(g(s.message), 1)]),
|
|
1399
1399
|
_: 1
|
|
1400
1400
|
}, 8, [
|
|
1401
1401
|
"size",
|
|
1402
1402
|
"icon",
|
|
1403
1403
|
"id"
|
|
1404
1404
|
])) : n("", !0),
|
|
1405
|
-
|
|
1405
|
+
te() ? (f(), t($, {
|
|
1406
1406
|
key: 2,
|
|
1407
1407
|
semantic: "successful",
|
|
1408
1408
|
id: R.value,
|
|
1409
1409
|
size: s.validMessageSize || "small"
|
|
1410
1410
|
}, {
|
|
1411
|
-
default:
|
|
1411
|
+
default: b(() => [a(g(s.validMessage || _("TODO: Add a validMessage")), 1)]),
|
|
1412
1412
|
_: 1
|
|
1413
1413
|
}, 8, ["id", "size"])) : n("", !0),
|
|
1414
1414
|
o($, {
|
|
@@ -1416,13 +1416,13 @@ var b = () => {
|
|
|
1416
1416
|
id: z.value,
|
|
1417
1417
|
size: s.invalidMessageSize || "small"
|
|
1418
1418
|
}, {
|
|
1419
|
-
default:
|
|
1419
|
+
default: b(() => [a(g(B.value), 1)]),
|
|
1420
1420
|
_: 1
|
|
1421
1421
|
}, 8, ["id", "size"]),
|
|
1422
|
-
i("span",
|
|
1423
|
-
], 10,
|
|
1422
|
+
i("span", Tt, g(W.value), 1)
|
|
1423
|
+
], 10, bt));
|
|
1424
1424
|
}
|
|
1425
|
-
}),
|
|
1425
|
+
}), Dt = [
|
|
1426
1426
|
"id",
|
|
1427
1427
|
"data-emphasis",
|
|
1428
1428
|
"data-wrap",
|
|
@@ -1431,7 +1431,7 @@ var b = () => {
|
|
|
1431
1431
|
"data-width",
|
|
1432
1432
|
"data-show-arrow",
|
|
1433
1433
|
"data-placement"
|
|
1434
|
-
],
|
|
1434
|
+
], Ot = /* @__PURE__ */ s({
|
|
1435
1435
|
name: "DBTooltip",
|
|
1436
1436
|
__name: "tooltip",
|
|
1437
1437
|
props: {
|
|
@@ -1461,80 +1461,121 @@ var b = () => {
|
|
|
1461
1461
|
text: { default: void 0 }
|
|
1462
1462
|
},
|
|
1463
1463
|
setup(t) {
|
|
1464
|
-
let i =
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
}),
|
|
1468
|
-
(
|
|
1464
|
+
let i = v(), o = t, s = p(ne), l = p(!1), m = p(void 0), b = p(void 0), x = p(void 0), S = p(void 0), w = p(0), T = p([]), E = p(null);
|
|
1465
|
+
u(() => {
|
|
1466
|
+
I(), l.value = !0;
|
|
1467
|
+
}), d(() => {
|
|
1468
|
+
L();
|
|
1469
|
+
}), y(() => [o.id, o.propOverrides?.id], () => {
|
|
1470
|
+
(o.id ?? o.propOverrides?.id) && I();
|
|
1469
1471
|
}, {
|
|
1470
1472
|
immediate: !0,
|
|
1471
1473
|
flush: "post"
|
|
1472
|
-
}),
|
|
1473
|
-
|
|
1474
|
-
|
|
1474
|
+
}), y(() => [
|
|
1475
|
+
E.value,
|
|
1476
|
+
l.value,
|
|
1475
1477
|
s.value
|
|
1476
1478
|
], () => {
|
|
1477
|
-
if (
|
|
1478
|
-
let e =
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
e.addEventListener(t, ()
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1479
|
+
if (E.value && l.value && s.value) {
|
|
1480
|
+
let e = j();
|
|
1481
|
+
if (e) {
|
|
1482
|
+
M(e);
|
|
1483
|
+
let t = () => F(e), n = () => P(), r = (e) => A(e);
|
|
1484
|
+
e.addEventListener("mouseenter", t), e.addEventListener("focusin", t), e.addEventListener("keydown", r), e.addEventListener("mouseleave", n), e.addEventListener("focusout", n), T.value = [
|
|
1485
|
+
...T.value ?? [],
|
|
1486
|
+
{
|
|
1487
|
+
parent: e,
|
|
1488
|
+
type: "mouseenter",
|
|
1489
|
+
fn: t
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
parent: e,
|
|
1493
|
+
type: "focusin",
|
|
1494
|
+
fn: t
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
parent: e,
|
|
1498
|
+
type: "keydown",
|
|
1499
|
+
fn: r
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
parent: e,
|
|
1503
|
+
type: "mouseleave",
|
|
1504
|
+
fn: n
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
parent: e,
|
|
1508
|
+
type: "focusout",
|
|
1509
|
+
fn: n
|
|
1510
|
+
}
|
|
1511
|
+
], e.dataset.hasTooltip = "true", o.variant === "label" ? e.setAttribute("aria-labelledby", s.value) : e.setAttribute("aria-describedby", s.value), x.value = e, S.value = s.value;
|
|
1512
|
+
}
|
|
1513
|
+
typeof window < "u" && "IntersectionObserver" in window && (b.value = new IntersectionObserver((e) => {
|
|
1514
|
+
let t = e.find(({ target: e }) => e === j());
|
|
1515
|
+
t && !t.isIntersecting && A(!1);
|
|
1516
|
+
})), l.value = !1;
|
|
1487
1517
|
}
|
|
1488
1518
|
}, {
|
|
1489
1519
|
immediate: !0,
|
|
1490
1520
|
flush: "post"
|
|
1491
1521
|
});
|
|
1492
|
-
function
|
|
1522
|
+
function D(e) {
|
|
1493
1523
|
e.stopPropagation();
|
|
1494
1524
|
}
|
|
1495
|
-
function
|
|
1496
|
-
(!e || e.key === "Escape") &&
|
|
1525
|
+
function A(e) {
|
|
1526
|
+
(!e || e.key === "Escape") && E.value && getComputedStyle(E.value).visibility === "visible" && j().blur();
|
|
1497
1527
|
}
|
|
1498
|
-
function
|
|
1499
|
-
let e =
|
|
1528
|
+
function j() {
|
|
1529
|
+
let e = E.value.parentElement;
|
|
1500
1530
|
return e && e.localName.includes("tooltip") && (e = e.parentElement), e;
|
|
1501
1531
|
}
|
|
1502
|
-
function
|
|
1503
|
-
e &&
|
|
1504
|
-
|
|
1532
|
+
function M(e) {
|
|
1533
|
+
e && E.value && O(() => {
|
|
1534
|
+
E.value && ut(E.value, e, o.placement ?? "bottom");
|
|
1505
1535
|
}, 1);
|
|
1506
1536
|
}
|
|
1507
|
-
function
|
|
1508
|
-
e?.target?.contains && e?.target?.contains(
|
|
1537
|
+
function N(e, t) {
|
|
1538
|
+
e?.target?.contains && e?.target?.contains(E.value) && M(t);
|
|
1509
1539
|
}
|
|
1510
|
-
function
|
|
1511
|
-
|
|
1540
|
+
function P() {
|
|
1541
|
+
w.value = Math.max((w.value ?? 0) - 1, 0), !((w.value ?? 0) > 0) && (m.value &&= (new nt().removeCallback(m.value), void 0), b.value?.unobserve(j()));
|
|
1512
1542
|
}
|
|
1513
|
-
function
|
|
1514
|
-
|
|
1543
|
+
function F(e) {
|
|
1544
|
+
w.value = (w.value ?? 0) + 1, w.value === 1 && (m.value = new nt().addCallback((t) => N(t, e)), b.value?.observe(j())), M(e);
|
|
1515
1545
|
}
|
|
1516
|
-
function
|
|
1546
|
+
function I() {
|
|
1517
1547
|
s.value = o.id ?? o.propOverrides?.id ?? "tooltip-" + i;
|
|
1518
1548
|
}
|
|
1519
|
-
|
|
1549
|
+
function L() {
|
|
1550
|
+
let e = m.value;
|
|
1551
|
+
e && (new nt().removeCallback(e), m.value = void 0), b.value?.disconnect(), b.value = void 0, w.value = 0, (T.value ?? []).forEach((e) => {
|
|
1552
|
+
e.parent.removeEventListener(e.type, e.fn);
|
|
1553
|
+
}), T.value = [];
|
|
1554
|
+
let t = x.value;
|
|
1555
|
+
if (t) {
|
|
1556
|
+
let e = S.value ?? s.value, n = t.querySelectorAll(".db-tooltip"), r = Array.from(n).some((e) => e !== E.value);
|
|
1557
|
+
t.dataset.hasTooltip === "true" && !r && delete t.dataset.hasTooltip, t.getAttribute("aria-labelledby") === e && t.removeAttribute("aria-labelledby"), t.getAttribute("aria-describedby") === e && t.removeAttribute("aria-describedby"), x.value = void 0, S.value = void 0;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
return (i, l) => (f(), r("i", {
|
|
1520
1561
|
role: "tooltip",
|
|
1521
1562
|
"aria-hidden": "true",
|
|
1522
1563
|
"data-gap": "true",
|
|
1523
1564
|
ref_key: "_ref",
|
|
1524
|
-
ref:
|
|
1525
|
-
class: c(
|
|
1565
|
+
ref: E,
|
|
1566
|
+
class: c(_(C)("db-tooltip", o.class)),
|
|
1526
1567
|
id: s.value,
|
|
1527
1568
|
"data-emphasis": t.emphasis,
|
|
1528
|
-
"data-wrap":
|
|
1529
|
-
"data-animation":
|
|
1569
|
+
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
1570
|
+
"data-animation": _(k)(t.animation ?? !0, "animation"),
|
|
1530
1571
|
"data-delay": t.delay,
|
|
1531
1572
|
"data-width": t.width,
|
|
1532
|
-
"data-show-arrow":
|
|
1573
|
+
"data-show-arrow": _(k)(t.showArrow ?? !0, "showArrow"),
|
|
1533
1574
|
"data-placement": t.placement,
|
|
1534
|
-
onClick: l[0] ||= async (e) =>
|
|
1535
|
-
}, [t.text ? (
|
|
1575
|
+
onClick: l[0] ||= async (e) => D(e)
|
|
1576
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(i.$slots, "default")], 10, Dt));
|
|
1536
1577
|
}
|
|
1537
|
-
}),
|
|
1578
|
+
}), kt = [
|
|
1538
1579
|
"id",
|
|
1539
1580
|
"data-semantic",
|
|
1540
1581
|
"data-emphasis",
|
|
@@ -1543,7 +1584,7 @@ var b = () => {
|
|
|
1543
1584
|
"data-show-icon",
|
|
1544
1585
|
"data-no-text",
|
|
1545
1586
|
"data-overflow"
|
|
1546
|
-
],
|
|
1587
|
+
], At = /* @__PURE__ */ s({
|
|
1547
1588
|
name: "DBTag",
|
|
1548
1589
|
__name: "tag",
|
|
1549
1590
|
props: {
|
|
@@ -1584,30 +1625,30 @@ var b = () => {
|
|
|
1584
1625
|
}
|
|
1585
1626
|
},
|
|
1586
1627
|
setup(t) {
|
|
1587
|
-
let i = t, s =
|
|
1628
|
+
let i = t, s = p(null);
|
|
1588
1629
|
function l(e) {
|
|
1589
1630
|
e && (e.stopPropagation(), i.onRemove && i.onRemove(e));
|
|
1590
1631
|
}
|
|
1591
1632
|
function u() {
|
|
1592
|
-
return i.removeButton ? i.removeButton :
|
|
1633
|
+
return i.removeButton ? i.removeButton : de;
|
|
1593
1634
|
}
|
|
1594
|
-
return (
|
|
1635
|
+
return (d, p) => (f(), r("div", {
|
|
1595
1636
|
ref_key: "_ref",
|
|
1596
1637
|
ref: s,
|
|
1597
1638
|
id: t.id ?? t.propOverrides?.id,
|
|
1598
|
-
class: c(
|
|
1639
|
+
class: c(_(C)("db-tag", i.class)),
|
|
1599
1640
|
"data-semantic": t.semantic,
|
|
1600
1641
|
"data-emphasis": t.emphasis,
|
|
1601
1642
|
"data-icon": t.icon,
|
|
1602
|
-
"data-show-check-state":
|
|
1603
|
-
"data-show-icon":
|
|
1604
|
-
"data-no-text":
|
|
1605
|
-
"data-overflow":
|
|
1643
|
+
"data-show-check-state": _(k)(t.showCheckState ?? !0, "showCheckState"),
|
|
1644
|
+
"data-show-icon": _(k)(t.showIcon, "showIcon"),
|
|
1645
|
+
"data-no-text": _(k)(t.noText, "noText"),
|
|
1646
|
+
"data-overflow": _(k)(t.overflow, "overflow")
|
|
1606
1647
|
}, [
|
|
1607
|
-
|
|
1608
|
-
t.text ? (
|
|
1609
|
-
|
|
1610
|
-
t.behavior === "removable" ? (
|
|
1648
|
+
h(d.$slots, "content"),
|
|
1649
|
+
t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0),
|
|
1650
|
+
h(d.$slots, "default"),
|
|
1651
|
+
t.behavior === "removable" ? (f(), r("button", {
|
|
1611
1652
|
key: 1,
|
|
1612
1653
|
class: "db-button db-tab-remove-button",
|
|
1613
1654
|
"data-icon": "cross",
|
|
@@ -1616,13 +1657,13 @@ var b = () => {
|
|
|
1616
1657
|
"data-variant": "ghost",
|
|
1617
1658
|
type: "button",
|
|
1618
1659
|
onClick: p[0] ||= async (e) => l(e)
|
|
1619
|
-
}, [o(
|
|
1620
|
-
default:
|
|
1660
|
+
}, [o(Ot, { variant: "label" }, {
|
|
1661
|
+
default: b(() => [a(g(u()), 1)]),
|
|
1621
1662
|
_: 1
|
|
1622
1663
|
})])) : n("", !0)
|
|
1623
|
-
], 10,
|
|
1664
|
+
], 10, kt));
|
|
1624
1665
|
}
|
|
1625
|
-
}),
|
|
1666
|
+
}), jt = [
|
|
1626
1667
|
"id",
|
|
1627
1668
|
"aria-invalid",
|
|
1628
1669
|
"data-custom-validity",
|
|
@@ -1635,7 +1676,7 @@ var b = () => {
|
|
|
1635
1676
|
"data-hide-label",
|
|
1636
1677
|
"data-icon",
|
|
1637
1678
|
"data-show-icon"
|
|
1638
|
-
],
|
|
1679
|
+
], Mt = ["id"], Nt = [
|
|
1639
1680
|
"id",
|
|
1640
1681
|
"form",
|
|
1641
1682
|
"name",
|
|
@@ -1643,18 +1684,18 @@ var b = () => {
|
|
|
1643
1684
|
"multiple",
|
|
1644
1685
|
"disabled",
|
|
1645
1686
|
"required"
|
|
1646
|
-
],
|
|
1687
|
+
], Pt = ["disabled", "value"], Ft = ["open"], It = [
|
|
1647
1688
|
"id",
|
|
1648
1689
|
"aria-disabled",
|
|
1649
1690
|
"tabIndex",
|
|
1650
1691
|
"aria-labelledby"
|
|
1651
|
-
],
|
|
1692
|
+
], Lt = ["data-visually-hidden", "id"], Rt = {
|
|
1652
1693
|
key: 0,
|
|
1653
1694
|
"data-visually-hidden": "true"
|
|
1654
|
-
},
|
|
1695
|
+
}, zt = { key: 1 }, Bt = { key: 0 }, Vt = { key: 0 }, Ht = { class: "db-checkbox db-custom-select-list-item" }, Ut = ["form", "checked"], Wt = ["id"], Gt = {
|
|
1655
1696
|
"data-visually-hidden": "true",
|
|
1656
1697
|
role: "status"
|
|
1657
|
-
},
|
|
1698
|
+
}, Kt = /* @__PURE__ */ s({
|
|
1658
1699
|
name: "DBCustomSelect",
|
|
1659
1700
|
__name: "custom-select",
|
|
1660
1701
|
props: {
|
|
@@ -1778,105 +1819,105 @@ var b = () => {
|
|
|
1778
1819
|
}
|
|
1779
1820
|
},
|
|
1780
1821
|
emits: ["update:values"],
|
|
1781
|
-
setup(s, { emit:
|
|
1782
|
-
let x =
|
|
1783
|
-
|
|
1822
|
+
setup(s, { emit: l }) {
|
|
1823
|
+
let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p("no-validation"), U = p(!1), W = p(void 0), ee = p(void 0), G = p(""), te = p(void 0), ne = p(""), K = p([]), re = p(!1), ie = p(!1), le = p(0), Y = p([]), ue = p([]), fe = p(!1), me = p(void 0), he = p(0), ge = p(void 0), _e = p(void 0), ve = p(void 0), ye = p(!1), be = p(!1), xe = p(null), X = p(null), Z = p(null), Se = p(null), Ce = p(null);
|
|
1824
|
+
u(() => {
|
|
1784
1825
|
Xe(), N.value = w.invalidMessage || "TODO: Add an invalidMessage", typeof window < "u" && "IntersectionObserver" in window && (_e.value = new IntersectionObserver((e) => {
|
|
1785
1826
|
if (X.value) {
|
|
1786
1827
|
let t = e.find(({ target: e }) => e === X.value);
|
|
1787
1828
|
t && !t.isIntersecting && X.value.open && (X.value.open = !1);
|
|
1788
1829
|
}
|
|
1789
1830
|
}));
|
|
1790
|
-
}),
|
|
1791
|
-
|
|
1792
|
-
}),
|
|
1831
|
+
}), d(() => {
|
|
1832
|
+
W.value?.abort();
|
|
1833
|
+
}), y(() => [w.id, w.propOverrides?.id], () => {
|
|
1793
1834
|
(w.id ?? w.propOverrides?.id) && Xe();
|
|
1794
1835
|
}, {
|
|
1795
1836
|
immediate: !0,
|
|
1796
1837
|
flush: "post"
|
|
1797
|
-
}),
|
|
1838
|
+
}), y(() => [X.value], () => {
|
|
1798
1839
|
X.value && X.value.addEventListener("focusout", (e) => ze(e));
|
|
1799
1840
|
}, {
|
|
1800
1841
|
immediate: !0,
|
|
1801
1842
|
flush: "post"
|
|
1802
|
-
}),
|
|
1803
|
-
if (
|
|
1804
|
-
let e =
|
|
1805
|
-
R.value =
|
|
1843
|
+
}), y(() => [T.value], () => {
|
|
1844
|
+
if (T.value) {
|
|
1845
|
+
let e = T.value + q;
|
|
1846
|
+
R.value = T.value + ae, P.value = T.value + oe, j.value = T.value + J, M.value = T.value + se, B.value = T.value + ce, I(w.message, w.showMessage) ? ke(e) : ke();
|
|
1806
1847
|
}
|
|
1807
1848
|
}, {
|
|
1808
1849
|
immediate: !0,
|
|
1809
1850
|
flush: "post"
|
|
1810
|
-
}),
|
|
1851
|
+
}), y(() => [X.value, ee.value], () => {
|
|
1811
1852
|
if (X.value) {
|
|
1812
1853
|
let e = X.value.querySelector("summary");
|
|
1813
|
-
e && e.setAttribute("aria-describedby", w.ariaDescribedBy ?? (
|
|
1854
|
+
e && e.setAttribute("aria-describedby", w.ariaDescribedBy ?? (ee.value || ""));
|
|
1814
1855
|
}
|
|
1815
1856
|
}, {
|
|
1816
1857
|
immediate: !0,
|
|
1817
1858
|
flush: "post"
|
|
1818
|
-
}),
|
|
1859
|
+
}), y(() => [
|
|
1819
1860
|
w.showNoResults,
|
|
1820
1861
|
w.showLoading,
|
|
1821
|
-
|
|
1862
|
+
ue.value
|
|
1822
1863
|
], () => {
|
|
1823
|
-
w.showNoResults === void 0 ?
|
|
1864
|
+
w.showNoResults === void 0 ? ue.value && (fe.value = ue.value.length === 0) : fe.value = w.showNoResults;
|
|
1824
1865
|
}, {
|
|
1825
1866
|
immediate: !0,
|
|
1826
1867
|
flush: "post"
|
|
1827
|
-
}),
|
|
1868
|
+
}), y(() => [
|
|
1828
1869
|
w.showSelectAll,
|
|
1829
1870
|
le.value,
|
|
1830
1871
|
w.multiple
|
|
1831
1872
|
], () => {
|
|
1832
|
-
|
|
1873
|
+
re.value = !!(w.multiple && (w.showSelectAll ?? le.value > 5));
|
|
1833
1874
|
}, {
|
|
1834
1875
|
immediate: !0,
|
|
1835
1876
|
flush: "post"
|
|
1836
|
-
}),
|
|
1837
|
-
|
|
1877
|
+
}), y(() => [w.showSearch, le.value], () => {
|
|
1878
|
+
ie.value = w.showSearch ?? le.value > 9;
|
|
1838
1879
|
}, {
|
|
1839
1880
|
immediate: !0,
|
|
1840
1881
|
flush: "post"
|
|
1841
|
-
}),
|
|
1882
|
+
}), y(() => [w.values], () => {
|
|
1842
1883
|
let e = w.values;
|
|
1843
1884
|
Array.isArray(e) ? Y.value !== e && (Y.value = e) : e == null && Y.value?.length !== 0 && (Y.value = []);
|
|
1844
1885
|
}, {
|
|
1845
1886
|
immediate: !0,
|
|
1846
1887
|
flush: "post"
|
|
1847
|
-
}),
|
|
1888
|
+
}), y(() => [Y.value, Z.value], () => {
|
|
1848
1889
|
Z.value && Ee();
|
|
1849
1890
|
}, {
|
|
1850
1891
|
immediate: !0,
|
|
1851
1892
|
flush: "post"
|
|
1852
|
-
}),
|
|
1893
|
+
}), y(() => [Z.value], () => {
|
|
1853
1894
|
if (Z.value) {
|
|
1854
|
-
let e =
|
|
1855
|
-
e || (e = new AbortController(),
|
|
1895
|
+
let e = W.value;
|
|
1896
|
+
e || (e = new AbortController(), W.value = e);
|
|
1856
1897
|
let t = w.values;
|
|
1857
|
-
|
|
1898
|
+
We(Z.value, () => {
|
|
1858
1899
|
Ve(t || (Z.value.value ? [Z.value.value] : [])), Ee();
|
|
1859
1900
|
}, e.signal);
|
|
1860
1901
|
}
|
|
1861
1902
|
}, {
|
|
1862
1903
|
immediate: !0,
|
|
1863
1904
|
flush: "post"
|
|
1864
|
-
}),
|
|
1905
|
+
}), y(() => [w.validation], () => {
|
|
1865
1906
|
H.value = w.validation;
|
|
1866
1907
|
}, {
|
|
1867
1908
|
immediate: !0,
|
|
1868
1909
|
flush: "post"
|
|
1869
|
-
}),
|
|
1910
|
+
}), y(() => [Y.value, le.value], () => {
|
|
1870
1911
|
Y.value?.length === 0 ? (ye.value = !1, be.value = !1) : Y.value?.length === le.value ? (be.value = !1, ye.value = !0) : Y.value && (be.value = !0);
|
|
1871
1912
|
}, {
|
|
1872
1913
|
immediate: !0,
|
|
1873
1914
|
flush: "post"
|
|
1874
|
-
}),
|
|
1875
|
-
|
|
1915
|
+
}), y(() => [w.options], () => {
|
|
1916
|
+
ue.value = w.options, le.value = w.options?.filter((e) => !e.isGroupTitle).length ?? 0;
|
|
1876
1917
|
}, {
|
|
1877
1918
|
immediate: !0,
|
|
1878
1919
|
flush: "post"
|
|
1879
|
-
}),
|
|
1920
|
+
}), y(() => [w.searchValue], () => {
|
|
1880
1921
|
if (ve.value = w.searchValue, w.searchValue) {
|
|
1881
1922
|
let e = w.searchValue;
|
|
1882
1923
|
qe(e);
|
|
@@ -1884,44 +1925,44 @@ var b = () => {
|
|
|
1884
1925
|
}, {
|
|
1885
1926
|
immediate: !0,
|
|
1886
1927
|
flush: "post"
|
|
1887
|
-
}),
|
|
1888
|
-
w.options?.length && (
|
|
1928
|
+
}), y(() => [w.options, Y.value], () => {
|
|
1929
|
+
w.options?.length && (K.value = w.options?.filter((e) => !e.value || !Y.value?.includes ? !1 : !e.isGroupTitle && Y.value?.includes(e.value)));
|
|
1889
1930
|
}, {
|
|
1890
1931
|
immediate: !0,
|
|
1891
1932
|
flush: "post"
|
|
1892
|
-
}),
|
|
1893
|
-
|
|
1933
|
+
}), y(() => [
|
|
1934
|
+
K.value,
|
|
1894
1935
|
w.selectedType,
|
|
1895
1936
|
w.amountText,
|
|
1896
1937
|
w.selectedLabels,
|
|
1897
1938
|
w.transformSelectedLabels
|
|
1898
1939
|
], () => {
|
|
1899
1940
|
if (w.selectedLabels) {
|
|
1900
|
-
|
|
1941
|
+
G.value = w.selectedLabels;
|
|
1901
1942
|
return;
|
|
1902
1943
|
}
|
|
1903
|
-
if (
|
|
1944
|
+
if (K.value?.length) {
|
|
1904
1945
|
if (w.transformSelectedLabels) {
|
|
1905
|
-
let e =
|
|
1906
|
-
|
|
1946
|
+
let e = K.value, t = w.transformSelectedLabels;
|
|
1947
|
+
G.value = t(e);
|
|
1907
1948
|
return;
|
|
1908
1949
|
}
|
|
1909
|
-
w.selectedType === "amount" ?
|
|
1910
|
-
} else
|
|
1950
|
+
w.selectedType === "amount" ? G.value = w.amountText ? w.amountText : `${K.value?.length} ${pe}` : G.value = K.value?.map((e) => je(e)).join(", ");
|
|
1951
|
+
} else G.value = "";
|
|
1911
1952
|
}, {
|
|
1912
1953
|
immediate: !0,
|
|
1913
1954
|
flush: "post"
|
|
1914
|
-
}),
|
|
1915
|
-
w.onAmountChange && w.onAmountChange(
|
|
1955
|
+
}), y(() => [K.value], () => {
|
|
1956
|
+
w.onAmountChange && w.onAmountChange(K.value?.length ?? 0);
|
|
1916
1957
|
}, {
|
|
1917
1958
|
immediate: !0,
|
|
1918
1959
|
flush: "post"
|
|
1919
|
-
}),
|
|
1960
|
+
}), y(() => [be.value, Se.value], () => {
|
|
1920
1961
|
Se.value && (Se.value.indeterminate = !!be.value);
|
|
1921
1962
|
}, {
|
|
1922
1963
|
immediate: !0,
|
|
1923
1964
|
flush: "post"
|
|
1924
|
-
}),
|
|
1965
|
+
}), y(() => [Z.value, w.invalidMessage], () => {
|
|
1925
1966
|
N.value = w.invalidMessage || Z.value?.validationMessage || "TODO: Add an invalidMessage";
|
|
1926
1967
|
}, {
|
|
1927
1968
|
immediate: !0,
|
|
@@ -1934,17 +1975,17 @@ var b = () => {
|
|
|
1934
1975
|
return !!(w.validMessage ?? w.validation === "valid");
|
|
1935
1976
|
}
|
|
1936
1977
|
function Ee() {
|
|
1937
|
-
Z.value && (Z.value.value = Oe()), !Z.value?.validity.valid || w.validation === "invalid" ? (ke(M.value), N.value = w.invalidMessage || Z.value?.validationMessage || "TODO: Add an invalidMessage",
|
|
1978
|
+
Z.value && (Z.value.value = Oe()), !Z.value?.validity.valid || w.validation === "invalid" ? (ke(M.value), N.value = w.invalidMessage || Z.value?.validationMessage || "TODO: Add an invalidMessage", E() && (ne.value = N.value, O(() => ne.value = "", 1e3)), U.value && (H.value = w.validation ?? "invalid")) : Te() && Z.value?.validity.valid && w.required ? (ke(j.value), E() && (ne.value = w.validMessage ?? "TODO: Add a validMessage", O(() => ne.value = "", 1e3)), H.value = w.validation ?? "valid") : I(w.message, w.showMessage) ? (ke(D.value), H.value = w.validation ?? "no-validation") : (ke(B.value), H.value = w.validation ?? "no-validation");
|
|
1938
1979
|
}
|
|
1939
1980
|
function De(e) {
|
|
1940
|
-
w.onDropdownToggle && (e.stopPropagation(), w.onDropdownToggle(e)), e.target instanceof HTMLDetailsElement && e.target.open ? (me.value = new
|
|
1981
|
+
w.onDropdownToggle && (e.stopPropagation(), w.onDropdownToggle(e)), e.target instanceof HTMLDetailsElement && e.target.open ? (me.value = new tt().addCallback((e) => Be(e)), ge.value = new nt().addCallback((e) => we(e)), Fe(), _e.value?.observe(X.value), e.target.dataset.test || Ke()) : (me.value && new tt().removeCallback(me.value), ge.value && new nt().removeCallback(ge.value), _e.value?.unobserve(X.value));
|
|
1941
1982
|
}
|
|
1942
1983
|
function Oe() {
|
|
1943
1984
|
return Y.value?.length ? Y.value.at(0) ?? "" : "";
|
|
1944
1985
|
}
|
|
1945
1986
|
function ke(e) {
|
|
1946
1987
|
let t = [];
|
|
1947
|
-
e && t.push(e),
|
|
1988
|
+
e && t.push(e), te.value && G.value?.length && t.push(te.value), ee.value = t.join(" ");
|
|
1948
1989
|
}
|
|
1949
1990
|
function Ae() {
|
|
1950
1991
|
return w.selectAllLabel ?? "LABEL SHOULD BE SET";
|
|
@@ -1961,7 +2002,7 @@ var b = () => {
|
|
|
1961
2002
|
let r = n.findIndex((t) => t.value === e.value);
|
|
1962
2003
|
if (r >= 0 && r < t.length) return t[r];
|
|
1963
2004
|
}
|
|
1964
|
-
return `${
|
|
2005
|
+
return `${de} ${je(e)}`;
|
|
1965
2006
|
}
|
|
1966
2007
|
function Pe(e, t) {
|
|
1967
2008
|
t && t.stopPropagation(), He(e.value), Ye();
|
|
@@ -1969,12 +2010,12 @@ var b = () => {
|
|
|
1969
2010
|
function Fe() {
|
|
1970
2011
|
if (X.value) {
|
|
1971
2012
|
let e = X.value.querySelector("article");
|
|
1972
|
-
e &&
|
|
1973
|
-
|
|
2013
|
+
e && O(() => {
|
|
2014
|
+
at(e, X.value, w.placement ?? "bottom");
|
|
1974
2015
|
}, 1);
|
|
1975
2016
|
}
|
|
1976
2017
|
}
|
|
1977
|
-
function
|
|
2018
|
+
function Ie(e) {
|
|
1978
2019
|
if (X.value?.open) {
|
|
1979
2020
|
if (self.document) {
|
|
1980
2021
|
let t = self.document.activeElement;
|
|
@@ -2005,8 +2046,8 @@ var b = () => {
|
|
|
2005
2046
|
let e = X.value.querySelector("input[type=\"checkbox\"]");
|
|
2006
2047
|
if (e && e !== t) Ge(t);
|
|
2007
2048
|
else {
|
|
2008
|
-
let e =
|
|
2009
|
-
if (e)
|
|
2049
|
+
let e = L(X.value);
|
|
2050
|
+
if (e) O(() => {
|
|
2010
2051
|
e.focus();
|
|
2011
2052
|
}, 100);
|
|
2012
2053
|
else {
|
|
@@ -2028,18 +2069,18 @@ var b = () => {
|
|
|
2028
2069
|
let t = self.document.activeElement;
|
|
2029
2070
|
if (["checkbox", "radio"].includes(t.getAttribute("type") || "")) t.click(), e.preventDefault();
|
|
2030
2071
|
else if (t.getAttribute("type") === "search") {
|
|
2031
|
-
let t =
|
|
2072
|
+
let t = ue.value?.find((e) => !e.isGroupTitle && !e.disabled);
|
|
2032
2073
|
t?.value && (He(t.value), e.preventDefault());
|
|
2033
2074
|
}
|
|
2034
2075
|
}
|
|
2035
|
-
} else (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") &&
|
|
2076
|
+
} else (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") && Ie(e);
|
|
2036
2077
|
}
|
|
2037
2078
|
function ze(e, t) {
|
|
2038
2079
|
if (X.value) {
|
|
2039
2080
|
if (t) X.value.open = !1, Ye();
|
|
2040
2081
|
else if (X.value.open && e && e.relatedTarget) {
|
|
2041
2082
|
let t = e.relatedTarget;
|
|
2042
|
-
!X.value.contains(t) && t.localName !== "dialog" &&
|
|
2083
|
+
!X.value.contains(t) && t.localName !== "dialog" && O(() => X.value.open = !1, 1);
|
|
2043
2084
|
}
|
|
2044
2085
|
}
|
|
2045
2086
|
}
|
|
@@ -2050,15 +2091,15 @@ var b = () => {
|
|
|
2050
2091
|
}
|
|
2051
2092
|
}
|
|
2052
2093
|
function Ve(e) {
|
|
2053
|
-
(/* @__PURE__ */ new Date()).getTime() - he.value < 200 || (Y.value = e,
|
|
2094
|
+
(/* @__PURE__ */ new Date()).getTime() - he.value < 200 || (Y.value = e, U.value = !0, w.onOptionSelected && w.onOptionSelected(e ?? []), Q(S, { target: { values: e } }, "values"), he.value = (/* @__PURE__ */ new Date()).getTime());
|
|
2054
2095
|
}
|
|
2055
2096
|
function He(e) {
|
|
2056
2097
|
e && (w.multiple ? Y.value?.includes(e) ? Ve(Y.value.filter((t) => t !== e)) : Ve([...Y.value || [], e]) : (Ve([e]), ze(void 0, !0)));
|
|
2057
2098
|
}
|
|
2058
|
-
function
|
|
2099
|
+
function Ue(e) {
|
|
2059
2100
|
if (e.stopPropagation(), Y.value?.length === le.value) Ve([]);
|
|
2060
2101
|
else {
|
|
2061
|
-
let e =
|
|
2102
|
+
let e = ie.value && Ce.value ? Ce.value.value : void 0;
|
|
2062
2103
|
Ve(w.options ? w.options.filter((t) => !t.isGroupTitle && (!e || t.value?.toLowerCase().includes(e.toLowerCase()))).map((e) => e.value ?? "") : []);
|
|
2063
2104
|
}
|
|
2064
2105
|
}
|
|
@@ -2067,7 +2108,7 @@ var b = () => {
|
|
|
2067
2108
|
let t = Array.from(X.value.querySelectorAll("input[type=\"checkbox\"],input[type=\"radio\"]"));
|
|
2068
2109
|
if (t.length) {
|
|
2069
2110
|
let n = t.at(0), r = n === e && t.length > 1 ? t.at(1) : n;
|
|
2070
|
-
r &&
|
|
2111
|
+
r && O(() => {
|
|
2071
2112
|
r.focus();
|
|
2072
2113
|
}, 1);
|
|
2073
2114
|
}
|
|
@@ -2075,8 +2116,8 @@ var b = () => {
|
|
|
2075
2116
|
}
|
|
2076
2117
|
function Ke() {
|
|
2077
2118
|
if (X.value) {
|
|
2078
|
-
let e =
|
|
2079
|
-
e ?
|
|
2119
|
+
let e = L(X.value);
|
|
2120
|
+
e ? O(() => {
|
|
2080
2121
|
e.focus();
|
|
2081
2122
|
}, 1) : Ge();
|
|
2082
2123
|
}
|
|
@@ -2089,7 +2130,7 @@ var b = () => {
|
|
|
2089
2130
|
let n = e;
|
|
2090
2131
|
n.stopPropagation(), w.onSearch && w.onSearch(n), t = n.target.value, ve.value = t;
|
|
2091
2132
|
}
|
|
2092
|
-
!w.options || !t || t.length === 0 ?
|
|
2133
|
+
!w.options || !t || t.length === 0 ? ue.value = w.options : w.searchFilter ? ue.value = w.options.filter((e) => w.searchFilter(e, t)) : ue.value = w.options.filter((e) => !e.isGroupTitle && je(e).toLowerCase().includes(t.toLowerCase()));
|
|
2093
2134
|
}
|
|
2094
2135
|
function Je(e) {
|
|
2095
2136
|
e.stopPropagation(), Ve([]), Ye();
|
|
@@ -2099,85 +2140,85 @@ var b = () => {
|
|
|
2099
2140
|
}
|
|
2100
2141
|
function Xe() {
|
|
2101
2142
|
let e = w.id ?? w.propOverrides?.id ?? `custom-select-${x}`;
|
|
2102
|
-
|
|
2143
|
+
T.value = e, D.value = e + q, j.value = e + J, M.value = e + se, P.value = e + oe, R.value = e + ae, z.value = e + "-summary", B.value = e + ce, te.value = e + "-selected-labels", V.value = e + "-info";
|
|
2103
2144
|
}
|
|
2104
2145
|
function Ze(e) {
|
|
2105
2146
|
e.stopPropagation();
|
|
2106
2147
|
}
|
|
2107
|
-
return (l, u) => (
|
|
2108
|
-
id:
|
|
2148
|
+
return (l, u) => (f(), r("div", {
|
|
2149
|
+
id: T.value,
|
|
2109
2150
|
ref_key: "_ref",
|
|
2110
2151
|
ref: xe,
|
|
2111
|
-
class: c(
|
|
2152
|
+
class: c(_(C)("db-custom-select", w.class)),
|
|
2112
2153
|
"aria-invalid": H.value === "invalid",
|
|
2113
2154
|
"data-custom-validity": H.value,
|
|
2114
2155
|
"data-width": s.formFieldWidth,
|
|
2115
2156
|
"data-variant": s.variant === "floating" && s.selectedType === "tag" && s.multiple ? "above" : s.variant,
|
|
2116
|
-
"data-required":
|
|
2117
|
-
"data-hide-asterisk":
|
|
2157
|
+
"data-required": _(k)(s.required, "required"),
|
|
2158
|
+
"data-hide-asterisk": _(F)(s.showRequiredAsterisk),
|
|
2118
2159
|
"data-placement": s.placement,
|
|
2119
2160
|
"data-selected-type": s.multiple ? s.selectedType : "text",
|
|
2120
|
-
"data-hide-label":
|
|
2161
|
+
"data-hide-label": _(F)(s.showLabel),
|
|
2121
2162
|
"data-icon": s.icon,
|
|
2122
|
-
"data-show-icon":
|
|
2163
|
+
"data-show-icon": _(k)(s.showIcon, "showIcon")
|
|
2123
2164
|
}, [
|
|
2124
|
-
i("label", { id: R.value }, [a(
|
|
2165
|
+
i("label", { id: R.value }, [a(g(s.label ?? _("LABEL SHOULD BE SET")), 1), i("select", {
|
|
2125
2166
|
role: "none",
|
|
2126
2167
|
hidden: !0,
|
|
2127
|
-
id:
|
|
2168
|
+
id: P.value,
|
|
2128
2169
|
tabIndex: -1,
|
|
2129
2170
|
ref_key: "selectRef",
|
|
2130
2171
|
ref: Z,
|
|
2131
2172
|
form: s.form,
|
|
2132
2173
|
name: s.name,
|
|
2133
2174
|
"data-custom-validity": H.value,
|
|
2134
|
-
multiple:
|
|
2135
|
-
disabled:
|
|
2136
|
-
required:
|
|
2175
|
+
multiple: _(A)(s.multiple, "multiple"),
|
|
2176
|
+
disabled: _(A)(s.disabled, "disabled"),
|
|
2177
|
+
required: _(A)(s.required, "required"),
|
|
2137
2178
|
onChange: u[0] ||= async (e) => Ze(e)
|
|
2138
|
-
}, [s.options?.length ? (
|
|
2179
|
+
}, [s.options?.length ? (f(!0), r(e, { key: 0 }, m(s.options, (e, t) => (f(), r("option", {
|
|
2139
2180
|
key: t,
|
|
2140
2181
|
disabled: e.disabled,
|
|
2141
2182
|
value: e.value
|
|
2142
|
-
},
|
|
2183
|
+
}, g(je(e)), 9, Pt))), 128)) : n("", !0)], 40, Nt)], 8, Mt),
|
|
2143
2184
|
i("details", {
|
|
2144
2185
|
ref_key: "detailsRef",
|
|
2145
2186
|
ref: X,
|
|
2146
2187
|
open: s.open,
|
|
2147
2188
|
onToggle: u[2] ||= async (e) => De(e),
|
|
2148
2189
|
onKeydown: u[3] ||= async (e) => Re(e)
|
|
2149
|
-
}, [
|
|
2190
|
+
}, [h(l.$slots, "default"), s.options ? (f(), r(e, { key: 0 }, [i("summary", {
|
|
2150
2191
|
class: "db-custom-select-form-field",
|
|
2151
2192
|
id: z.value,
|
|
2152
|
-
"aria-disabled":
|
|
2193
|
+
"aria-disabled": _(k)(s.disabled, "disabled"),
|
|
2153
2194
|
tabIndex: s.disabled ? -1 : void 0,
|
|
2154
2195
|
"aria-labelledby": R.value
|
|
2155
|
-
}, [
|
|
2196
|
+
}, [G.value?.length ? (f(), r("span", {
|
|
2156
2197
|
key: 0,
|
|
2157
|
-
"data-visually-hidden":
|
|
2158
|
-
id:
|
|
2159
|
-
}, [s.selectedPrefix ? (
|
|
2198
|
+
"data-visually-hidden": _(k)(s.selectedType === "tag", "selectedType"),
|
|
2199
|
+
id: te.value
|
|
2200
|
+
}, [s.selectedPrefix ? (f(), r("span", Rt, g(s.selectedPrefix), 1)) : n("", !0), a(" " + g(G.value), 1)], 8, Lt)) : n("", !0), s.selectedType === "tag" ? (f(), r("div", zt, [(f(!0), r(e, null, m(K.value, (e, n) => (f(), t(At, {
|
|
2160
2201
|
key: n,
|
|
2161
2202
|
emphasis: "strong",
|
|
2162
2203
|
behavior: "removable",
|
|
2163
2204
|
removeButton: Ne(e),
|
|
2164
2205
|
onRemove: (t) => Pe(e, t)
|
|
2165
2206
|
}, {
|
|
2166
|
-
default:
|
|
2207
|
+
default: b(() => [a(g(je(e)), 1)]),
|
|
2167
2208
|
_: 2
|
|
2168
|
-
}, 1032, ["removeButton", "onRemove"]))), 128))])) : n("", !0)], 8,
|
|
2169
|
-
default:
|
|
2170
|
-
|
|
2209
|
+
}, 1032, ["removeButton", "onRemove"]))), 128))])) : n("", !0)], 8, It), o(ft, { width: s.dropdownWidth }, {
|
|
2210
|
+
default: b(() => [
|
|
2211
|
+
ie.value ? (f(), r("div", Bt, [o(Et, {
|
|
2171
2212
|
type: "search",
|
|
2172
2213
|
ref_key: "searchInputRef",
|
|
2173
2214
|
ref: Ce,
|
|
2174
|
-
name:
|
|
2175
|
-
form:
|
|
2215
|
+
name: T.value,
|
|
2216
|
+
form: T.value,
|
|
2176
2217
|
showLabel: !1,
|
|
2177
2218
|
value: ve.value,
|
|
2178
|
-
label: s.searchLabel ??
|
|
2219
|
+
label: s.searchLabel ?? _("LABEL SHOULD BE SET"),
|
|
2179
2220
|
placeholder: s.searchPlaceholder ?? s.searchLabel,
|
|
2180
|
-
ariaDescribedBy:
|
|
2221
|
+
ariaDescribedBy: fe.value || s.showLoading ? V.value : void 0,
|
|
2181
2222
|
onInput: (e) => qe(e)
|
|
2182
2223
|
}, null, 8, [
|
|
2183
2224
|
"name",
|
|
@@ -2188,44 +2229,44 @@ var b = () => {
|
|
|
2188
2229
|
"ariaDescribedBy",
|
|
2189
2230
|
"onInput"
|
|
2190
2231
|
])])) : n("", !0),
|
|
2191
|
-
|
|
2232
|
+
fe.value || s.showLoading ? (f(), t($, {
|
|
2192
2233
|
key: 1,
|
|
2193
2234
|
id: V.value,
|
|
2194
2235
|
icon: s.showLoading ? "circular_arrows" : void 0,
|
|
2195
2236
|
semantic: s.showLoading ? "informational" : "warning"
|
|
2196
2237
|
}, {
|
|
2197
|
-
default:
|
|
2238
|
+
default: b(() => [a(g((s.showLoading ? s.loadingText : s.noResultsText) ?? _("MESSAGE SHOULD BE SET")), 1)]),
|
|
2198
2239
|
_: 1
|
|
2199
2240
|
}, 8, [
|
|
2200
2241
|
"id",
|
|
2201
2242
|
"icon",
|
|
2202
2243
|
"semantic"
|
|
2203
|
-
])) : (
|
|
2244
|
+
])) : (f(), r(e, { key: 2 }, [re.value ? (f(), r("div", Vt, [i("div", Ht, [i("label", null, [i("input", {
|
|
2204
2245
|
type: "checkbox",
|
|
2205
2246
|
value: "select-all",
|
|
2206
2247
|
ref_key: "selectAllRef",
|
|
2207
2248
|
ref: Se,
|
|
2208
|
-
form:
|
|
2249
|
+
form: T.value,
|
|
2209
2250
|
checked: ye.value,
|
|
2210
|
-
onChange: u[1] ||= async (e) =>
|
|
2211
|
-
}, null, 40,
|
|
2212
|
-
multiple:
|
|
2213
|
-
label: s.listLabel ?? s.label ??
|
|
2251
|
+
onChange: u[1] ||= async (e) => Ue(e)
|
|
2252
|
+
}, null, 40, Ut), a(g(Ae()), 1)])])])) : n("", !0), o(yt, {
|
|
2253
|
+
multiple: _(A)(s.multiple, "multiple"),
|
|
2254
|
+
label: s.listLabel ?? s.label ?? _("LABEL SHOULD BE SET")
|
|
2214
2255
|
}, {
|
|
2215
|
-
default:
|
|
2256
|
+
default: b(() => [(f(!0), r(e, null, m(ue.value, (i, o) => (f(), t(_t, {
|
|
2216
2257
|
key: o,
|
|
2217
2258
|
type: s.multiple ? "checkbox" : "radio",
|
|
2218
2259
|
showDivider: i.showDivider,
|
|
2219
2260
|
icon: i.icon,
|
|
2220
2261
|
isGroupTitle: i.isGroupTitle,
|
|
2221
2262
|
groupTitle: je(i),
|
|
2222
|
-
name:
|
|
2263
|
+
name: T.value,
|
|
2223
2264
|
checked: Me(i.value),
|
|
2224
2265
|
disabled: i.disabled,
|
|
2225
2266
|
value: i.value,
|
|
2226
2267
|
onChange: (e) => He(i.value)
|
|
2227
2268
|
}, {
|
|
2228
|
-
default:
|
|
2269
|
+
default: b(() => [i.isGroupTitle ? n("", !0) : (f(), r(e, { key: 0 }, [a(g(je(i)), 1)], 64))]),
|
|
2229
2270
|
_: 2
|
|
2230
2271
|
}, 1032, [
|
|
2231
2272
|
"type",
|
|
@@ -2241,16 +2282,16 @@ var b = () => {
|
|
|
2241
2282
|
]))), 128))]),
|
|
2242
2283
|
_: 1
|
|
2243
2284
|
}, 8, ["multiple", "label"])], 64)),
|
|
2244
|
-
i("div", null, [o(
|
|
2285
|
+
i("div", null, [o(Le, {
|
|
2245
2286
|
variant: "ghost",
|
|
2246
2287
|
width: "full",
|
|
2247
2288
|
icon: "cross",
|
|
2248
2289
|
size: "small",
|
|
2249
|
-
name:
|
|
2250
|
-
form:
|
|
2290
|
+
name: T.value,
|
|
2291
|
+
form: T.value,
|
|
2251
2292
|
onClick: (e) => ze(void 0, !0)
|
|
2252
2293
|
}, {
|
|
2253
|
-
default:
|
|
2294
|
+
default: b(() => [a(g(s.mobileCloseButtonText ?? _("Close")), 1)]),
|
|
2254
2295
|
_: 1
|
|
2255
2296
|
}, 8, [
|
|
2256
2297
|
"name",
|
|
@@ -2259,20 +2300,20 @@ var b = () => {
|
|
|
2259
2300
|
])])
|
|
2260
2301
|
]),
|
|
2261
2302
|
_: 1
|
|
2262
|
-
}, 8, ["width"])], 64)) : n("", !0)], 40,
|
|
2263
|
-
(s.showClearSelection ?? !0) && Y.value?.length ? (
|
|
2303
|
+
}, 8, ["width"])], 64)) : n("", !0)], 40, Ft),
|
|
2304
|
+
(s.showClearSelection ?? !0) && Y.value?.length ? (f(), t(Le, {
|
|
2264
2305
|
key: 0,
|
|
2265
2306
|
icon: "cross",
|
|
2266
2307
|
variant: "ghost",
|
|
2267
2308
|
size: "small",
|
|
2268
2309
|
noText: !0,
|
|
2269
|
-
name:
|
|
2270
|
-
form:
|
|
2271
|
-
disabled:
|
|
2310
|
+
name: T.value,
|
|
2311
|
+
form: T.value,
|
|
2312
|
+
disabled: _(A)(s.disabled, "disabled"),
|
|
2272
2313
|
onClick: (e) => Je(e)
|
|
2273
2314
|
}, {
|
|
2274
|
-
default:
|
|
2275
|
-
default:
|
|
2315
|
+
default: b(() => [a(g(s.clearSelectionText), 1), o(Ot, { placement: "top" }, {
|
|
2316
|
+
default: b(() => [a(g(s.clearSelectionText), 1)]),
|
|
2276
2317
|
_: 1
|
|
2277
2318
|
})]),
|
|
2278
2319
|
_: 1
|
|
@@ -2284,25 +2325,25 @@ var b = () => {
|
|
|
2284
2325
|
])) : n("", !0),
|
|
2285
2326
|
i("span", {
|
|
2286
2327
|
class: "db-custom-select-placeholder",
|
|
2287
|
-
"aria-hidden":
|
|
2328
|
+
"aria-hidden": "true",
|
|
2288
2329
|
id: B.value
|
|
2289
|
-
},
|
|
2290
|
-
|
|
2330
|
+
}, g(s.placeholder ?? s.label), 9, Wt),
|
|
2331
|
+
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
2291
2332
|
key: 1,
|
|
2292
2333
|
size: "small",
|
|
2293
2334
|
icon: s.messageIcon,
|
|
2294
|
-
id:
|
|
2335
|
+
id: D.value
|
|
2295
2336
|
}, {
|
|
2296
|
-
default:
|
|
2337
|
+
default: b(() => [a(g(s.message), 1)]),
|
|
2297
2338
|
_: 1
|
|
2298
2339
|
}, 8, ["icon", "id"])) : n("", !0),
|
|
2299
|
-
Te() ? (
|
|
2340
|
+
Te() ? (f(), t($, {
|
|
2300
2341
|
key: 2,
|
|
2301
2342
|
size: "small",
|
|
2302
2343
|
semantic: "successful",
|
|
2303
2344
|
id: j.value
|
|
2304
2345
|
}, {
|
|
2305
|
-
default:
|
|
2346
|
+
default: b(() => [a(g(s.validMessage || _("TODO: Add a validMessage")), 1)]),
|
|
2306
2347
|
_: 1
|
|
2307
2348
|
}, 8, ["id"])) : n("", !0),
|
|
2308
2349
|
o($, {
|
|
@@ -2310,17 +2351,17 @@ var b = () => {
|
|
|
2310
2351
|
semantic: "critical",
|
|
2311
2352
|
id: M.value
|
|
2312
2353
|
}, {
|
|
2313
|
-
default:
|
|
2354
|
+
default: b(() => [a(g(N.value), 1)]),
|
|
2314
2355
|
_: 1
|
|
2315
2356
|
}, 8, ["id"]),
|
|
2316
|
-
i("span",
|
|
2317
|
-
], 10,
|
|
2357
|
+
i("span", Gt, g(ne.value), 1)
|
|
2358
|
+
], 10, jt));
|
|
2318
2359
|
}
|
|
2319
|
-
}),
|
|
2360
|
+
}), qt = [
|
|
2320
2361
|
"fixed",
|
|
2321
2362
|
"auto",
|
|
2322
2363
|
"full"
|
|
2323
|
-
],
|
|
2364
|
+
], Jt = ["id"], Yt = /* @__PURE__ */ s({
|
|
2324
2365
|
name: "DBCustomSelectFormField",
|
|
2325
2366
|
__name: "custom-select-form-field",
|
|
2326
2367
|
props: {
|
|
@@ -2332,25 +2373,25 @@ var b = () => {
|
|
|
2332
2373
|
propOverrides: { default: void 0 }
|
|
2333
2374
|
},
|
|
2334
2375
|
setup(e) {
|
|
2335
|
-
let t = e, n =
|
|
2336
|
-
return (i, a) => (
|
|
2376
|
+
let t = e, n = p(null);
|
|
2377
|
+
return (i, a) => (f(), r("summary", {
|
|
2337
2378
|
ref_key: "_ref",
|
|
2338
2379
|
ref: n,
|
|
2339
2380
|
id: e.id ?? e.propOverrides?.id,
|
|
2340
|
-
class: c(
|
|
2341
|
-
}, [
|
|
2381
|
+
class: c(_(C)("db-custom-select-form-field", t.class))
|
|
2382
|
+
}, [h(i.$slots, "default")], 10, Jt));
|
|
2342
2383
|
}
|
|
2343
|
-
}),
|
|
2384
|
+
}), Xt = ["checkbox", "radio"], Zt = [
|
|
2344
2385
|
"amount",
|
|
2345
2386
|
"text",
|
|
2346
2387
|
"tag"
|
|
2347
|
-
],
|
|
2388
|
+
], Qt = [
|
|
2348
2389
|
"id",
|
|
2349
2390
|
"data-margin",
|
|
2350
2391
|
"data-variant",
|
|
2351
2392
|
"data-emphasis",
|
|
2352
2393
|
"data-width"
|
|
2353
|
-
],
|
|
2394
|
+
], $t = /* @__PURE__ */ s({
|
|
2354
2395
|
name: "DBDivider",
|
|
2355
2396
|
__name: "divider",
|
|
2356
2397
|
props: {
|
|
@@ -2366,8 +2407,8 @@ var b = () => {
|
|
|
2366
2407
|
width: { default: void 0 }
|
|
2367
2408
|
},
|
|
2368
2409
|
setup(e) {
|
|
2369
|
-
let t = e, n =
|
|
2370
|
-
return (i, a) => (
|
|
2410
|
+
let t = e, n = p(null);
|
|
2411
|
+
return (i, a) => (f(), r("div", {
|
|
2371
2412
|
ref_key: "_ref",
|
|
2372
2413
|
ref: n,
|
|
2373
2414
|
id: e.id ?? e.propOverrides?.id,
|
|
@@ -2375,21 +2416,21 @@ var b = () => {
|
|
|
2375
2416
|
"data-variant": e.variant,
|
|
2376
2417
|
"data-emphasis": e.emphasis,
|
|
2377
2418
|
"data-width": e.width,
|
|
2378
|
-
class: c(
|
|
2379
|
-
}, null, 10,
|
|
2419
|
+
class: c(_(C)("db-divider", t.class))
|
|
2420
|
+
}, null, 10, Qt));
|
|
2380
2421
|
}
|
|
2381
|
-
}),
|
|
2422
|
+
}), en = ["none", "_"], tn = ["horizontal", "vertical"], nn = [
|
|
2382
2423
|
"id",
|
|
2383
2424
|
"data-position",
|
|
2384
2425
|
"data-backdrop",
|
|
2385
2426
|
"data-direction",
|
|
2386
2427
|
"data-variant"
|
|
2387
|
-
],
|
|
2428
|
+
], rn = [
|
|
2388
2429
|
"data-spacing",
|
|
2389
2430
|
"data-width",
|
|
2390
2431
|
"data-direction",
|
|
2391
2432
|
"data-rounded"
|
|
2392
|
-
],
|
|
2433
|
+
], an = { class: "db-drawer-header" }, on = { class: "db-drawer-header-text" }, sn = { class: "db-drawer-content" }, cn = /* @__PURE__ */ s({
|
|
2393
2434
|
name: "DBDrawer",
|
|
2394
2435
|
__name: "drawer",
|
|
2395
2436
|
props: {
|
|
@@ -2423,15 +2464,15 @@ var b = () => {
|
|
|
2423
2464
|
spacing: { default: void 0 }
|
|
2424
2465
|
},
|
|
2425
2466
|
setup(e) {
|
|
2426
|
-
let t = e, n =
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
}),
|
|
2430
|
-
|
|
2467
|
+
let t = e, n = p(!1), s = p(null), l = p(null);
|
|
2468
|
+
u(() => {
|
|
2469
|
+
m(), n.value = !0;
|
|
2470
|
+
}), y(() => [t.open], () => {
|
|
2471
|
+
m();
|
|
2431
2472
|
}, {
|
|
2432
2473
|
immediate: !0,
|
|
2433
2474
|
flush: "post"
|
|
2434
|
-
}),
|
|
2475
|
+
}), y(() => [
|
|
2435
2476
|
s.value,
|
|
2436
2477
|
n.value,
|
|
2437
2478
|
t.position
|
|
@@ -2444,64 +2485,64 @@ var b = () => {
|
|
|
2444
2485
|
immediate: !0,
|
|
2445
2486
|
flush: "post"
|
|
2446
2487
|
});
|
|
2447
|
-
function
|
|
2448
|
-
e && (
|
|
2488
|
+
function d(e, n) {
|
|
2489
|
+
e && (z(e) ? e.key === "Escape" && (e.preventDefault(), t.onClose && t.onClose(e)) : (n && (e.stopPropagation(), t.onClose && t.onClose(e)), e.target?.nodeName === "DIALOG" && e.type === "click" && t.backdrop !== "none" && t.onClose && t.onClose(e)));
|
|
2449
2490
|
}
|
|
2450
|
-
function
|
|
2491
|
+
function m() {
|
|
2451
2492
|
if (s.value) {
|
|
2452
|
-
let e =
|
|
2453
|
-
e && !s.value.open && (
|
|
2454
|
-
|
|
2455
|
-
}, 1)), !e && s.value.open && (
|
|
2493
|
+
let e = A(t.open, "open");
|
|
2494
|
+
e && !s.value.open && (l.value && l.value.removeAttribute("data-transition"), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? s.value.show() : s.value.showModal(), O(() => {
|
|
2495
|
+
l.value && (l.value.dataset.transition = "open");
|
|
2496
|
+
}, 1)), !e && s.value.open && (l.value && (l.value.dataset.transition = "close"), O(() => {
|
|
2456
2497
|
s.value?.close();
|
|
2457
2498
|
}, 401));
|
|
2458
2499
|
}
|
|
2459
2500
|
}
|
|
2460
|
-
return (n,
|
|
2501
|
+
return (n, u) => (f(), r("dialog", {
|
|
2461
2502
|
class: "db-drawer",
|
|
2462
2503
|
id: e.id ?? e.propOverrides?.id,
|
|
2463
2504
|
ref_key: "_ref",
|
|
2464
2505
|
ref: s,
|
|
2465
|
-
onClick:
|
|
2466
|
-
onKeydown:
|
|
2506
|
+
onClick: u[0] ||= async (e) => d(e),
|
|
2507
|
+
onKeydown: u[1] ||= async (e) => d(e),
|
|
2467
2508
|
"data-position": e.position,
|
|
2468
2509
|
"data-backdrop": e.backdrop,
|
|
2469
2510
|
"data-direction": e.direction,
|
|
2470
2511
|
"data-variant": e.variant
|
|
2471
2512
|
}, [i("article", {
|
|
2472
2513
|
ref_key: "dialogContainerRef",
|
|
2473
|
-
ref:
|
|
2474
|
-
class: c(
|
|
2514
|
+
ref: l,
|
|
2515
|
+
class: c(_(C)("db-drawer-container", t.class)),
|
|
2475
2516
|
"data-spacing": e.spacing,
|
|
2476
2517
|
"data-width": e.width,
|
|
2477
2518
|
"data-direction": e.direction,
|
|
2478
|
-
"data-rounded":
|
|
2479
|
-
}, [i("header",
|
|
2519
|
+
"data-rounded": _(k)(e.rounded, "rounded")
|
|
2520
|
+
}, [i("header", an, [i("div", on, [h(n.$slots, "drawer-header")]), o(Le, {
|
|
2480
2521
|
class: "button-close-drawer",
|
|
2481
2522
|
icon: "cross",
|
|
2482
2523
|
variant: "ghost",
|
|
2483
2524
|
id: e.closeButtonId,
|
|
2484
2525
|
noText: !0,
|
|
2485
|
-
onClick: (e) =>
|
|
2526
|
+
onClick: (e) => d(e, !0)
|
|
2486
2527
|
}, {
|
|
2487
|
-
default:
|
|
2528
|
+
default: b(() => [a(g(e.closeButtonText ?? _("Close")), 1)]),
|
|
2488
2529
|
_: 1
|
|
2489
|
-
}, 8, ["id", "onClick"])]), i("div",
|
|
2530
|
+
}, 8, ["id", "onClick"])]), i("div", sn, [h(n.$slots, "default")])], 10, rn)], 40, nn));
|
|
2490
2531
|
}
|
|
2491
|
-
}),
|
|
2532
|
+
}), ln = [
|
|
2492
2533
|
"none",
|
|
2493
2534
|
"strong",
|
|
2494
2535
|
"weak",
|
|
2495
2536
|
"invisible"
|
|
2496
|
-
],
|
|
2537
|
+
], un = [
|
|
2497
2538
|
"left",
|
|
2498
2539
|
"right",
|
|
2499
2540
|
"up",
|
|
2500
2541
|
"down"
|
|
2501
|
-
],
|
|
2542
|
+
], dn = ["modal", "inside"], fn = ["fixed", "absolute"], pn = (e) => {
|
|
2502
2543
|
let { target: t } = e;
|
|
2503
2544
|
return !!(!t?.classList?.contains("db-navigation-item-expand-button") && t?.parentElement?.classList.contains("db-navigation-item"));
|
|
2504
|
-
},
|
|
2545
|
+
}, mn = class {
|
|
2505
2546
|
element;
|
|
2506
2547
|
subNavigation;
|
|
2507
2548
|
parentSubNavigation = null;
|
|
@@ -2518,7 +2559,7 @@ var b = () => {
|
|
|
2518
2559
|
}
|
|
2519
2560
|
enableFollow() {
|
|
2520
2561
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation) return;
|
|
2521
|
-
let e =
|
|
2562
|
+
let e = it(this.subNavigation), t = this.element.getBoundingClientRect(), n = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
|
|
2522
2563
|
this.triangleData = {
|
|
2523
2564
|
itemRect: t,
|
|
2524
2565
|
parentElementWidth: n,
|
|
@@ -2569,11 +2610,11 @@ var b = () => {
|
|
|
2569
2610
|
let t = this.hasMouseEnteredSubNavigation(), n = this.getTriangleCoordinates(t ? "fill-gap" : "safe-triangle");
|
|
2570
2611
|
n && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${n.lb}, ${n.lt}, ${n.rt}, ${n.rb})`), t && (this.triangleData = void 0));
|
|
2571
2612
|
}
|
|
2572
|
-
},
|
|
2613
|
+
}, hn = [
|
|
2573
2614
|
"id",
|
|
2574
2615
|
"data-width",
|
|
2575
2616
|
"data-on-forcing-mobile"
|
|
2576
|
-
],
|
|
2617
|
+
], gn = { class: "db-header-meta-navigation" }, _n = { class: "db-header-navigation-bar" }, vn = { class: "db-header-brand-container" }, yn = { class: "db-header-navigation-container" }, bn = { class: "db-header-navigation" }, xn = { class: "db-header-primary-action" }, Sn = { class: "db-header-action-container" }, Cn = { class: "db-header-burger-menu-container" }, wn = { class: "db-header-secondary-action" }, Tn = { class: "db-header-drawer-navigation" }, En = { class: "db-header-meta-navigation" }, Dn = { class: "db-header-secondary-action" }, On = /* @__PURE__ */ s({
|
|
2577
2618
|
name: "DBHeader",
|
|
2578
2619
|
__name: "header",
|
|
2579
2620
|
props: {
|
|
@@ -2606,11 +2647,11 @@ var b = () => {
|
|
|
2606
2647
|
width: { default: void 0 }
|
|
2607
2648
|
},
|
|
2608
2649
|
setup(e) {
|
|
2609
|
-
let t = e, n =
|
|
2610
|
-
|
|
2650
|
+
let t = e, n = p(!1), s = p(!1), l = p(null);
|
|
2651
|
+
u(() => {
|
|
2611
2652
|
n.value = !0;
|
|
2612
|
-
}),
|
|
2613
|
-
n.value &&
|
|
2653
|
+
}), y(() => [n.value, l.value], () => {
|
|
2654
|
+
n.value && l.value && t.forceMobile && (S(l.value, {
|
|
2614
2655
|
key: "data-force-mobile",
|
|
2615
2656
|
value: "true"
|
|
2616
2657
|
}), s.value = !0);
|
|
@@ -2618,49 +2659,49 @@ var b = () => {
|
|
|
2618
2659
|
immediate: !0,
|
|
2619
2660
|
flush: "post"
|
|
2620
2661
|
});
|
|
2621
|
-
function
|
|
2662
|
+
function d(e) {
|
|
2622
2663
|
e && e.stopPropagation && e.stopPropagation();
|
|
2623
|
-
let n = !
|
|
2664
|
+
let n = !A(t.drawerOpen, "drawerOpen");
|
|
2624
2665
|
t.onToggle && t.onToggle(n);
|
|
2625
2666
|
}
|
|
2626
|
-
function
|
|
2627
|
-
|
|
2667
|
+
function m(e) {
|
|
2668
|
+
pn(e) && d();
|
|
2628
2669
|
}
|
|
2629
|
-
return (n,
|
|
2670
|
+
return (n, u) => (f(), r("header", {
|
|
2630
2671
|
ref_key: "_ref",
|
|
2631
|
-
ref:
|
|
2632
|
-
class: c(
|
|
2672
|
+
ref: l,
|
|
2673
|
+
class: c(_(C)("db-header", t.class)),
|
|
2633
2674
|
id: e.id ?? e.propOverrides?.id,
|
|
2634
2675
|
"data-width": e.width,
|
|
2635
2676
|
"data-on-forcing-mobile": e.forceMobile && !s.value
|
|
2636
2677
|
}, [
|
|
2637
|
-
i("div",
|
|
2638
|
-
i("div",
|
|
2639
|
-
i("div",
|
|
2640
|
-
i("div",
|
|
2641
|
-
i("div",
|
|
2678
|
+
i("div", gn, [h(n.$slots, "meta-navigation")]),
|
|
2679
|
+
i("div", _n, [
|
|
2680
|
+
i("div", vn, [h(n.$slots, "brand")]),
|
|
2681
|
+
i("div", yn, [i("div", bn, [h(n.$slots, "default")]), i("div", xn, [h(n.$slots, "primary-action")])]),
|
|
2682
|
+
i("div", Sn, [i("div", Cn, [o(Le, {
|
|
2642
2683
|
icon: "menu",
|
|
2643
2684
|
variant: "ghost",
|
|
2644
2685
|
noText: !0,
|
|
2645
|
-
onClick: (e) =>
|
|
2686
|
+
onClick: (e) => d()
|
|
2646
2687
|
}, {
|
|
2647
|
-
default:
|
|
2688
|
+
default: b(() => [a(g(e.burgerMenuLabel ?? _("BurgerMenu")), 1)]),
|
|
2648
2689
|
_: 1
|
|
2649
|
-
}, 8, ["onClick"])]), i("div",
|
|
2690
|
+
}, 8, ["onClick"])]), i("div", wn, [h(n.$slots, "secondary-action")])])
|
|
2650
2691
|
]),
|
|
2651
|
-
o(
|
|
2692
|
+
o(cn, {
|
|
2652
2693
|
class: "db-header-drawer",
|
|
2653
2694
|
spacing: "small",
|
|
2654
2695
|
rounded: !0,
|
|
2655
2696
|
closeButtonId: e.closeButtonId,
|
|
2656
2697
|
closeButtonText: e.closeButtonText,
|
|
2657
|
-
open:
|
|
2658
|
-
onClose: (e) =>
|
|
2698
|
+
open: _(A)(e.drawerOpen),
|
|
2699
|
+
onClose: (e) => d()
|
|
2659
2700
|
}, {
|
|
2660
|
-
default:
|
|
2701
|
+
default: b(() => [i("div", Tn, [i("div", {
|
|
2661
2702
|
class: "db-header-navigation",
|
|
2662
|
-
onClick:
|
|
2663
|
-
}, [
|
|
2703
|
+
onClick: u[0] ||= async (e) => m(e)
|
|
2704
|
+
}, [h(n.$slots, "default")]), i("div", En, [h(n.$slots, "meta-navigation")])]), i("div", Dn, [h(n.$slots, "secondary-action")])]),
|
|
2664
2705
|
_: 3
|
|
2665
2706
|
}, 8, [
|
|
2666
2707
|
"closeButtonId",
|
|
@@ -2668,14 +2709,14 @@ var b = () => {
|
|
|
2668
2709
|
"open",
|
|
2669
2710
|
"onClose"
|
|
2670
2711
|
])
|
|
2671
|
-
], 10,
|
|
2712
|
+
], 10, hn));
|
|
2672
2713
|
}
|
|
2673
|
-
}),
|
|
2714
|
+
}), kn = [
|
|
2674
2715
|
"id",
|
|
2675
2716
|
"data-icon",
|
|
2676
2717
|
"data-icon-weight",
|
|
2677
2718
|
"data-icon-variant"
|
|
2678
|
-
],
|
|
2719
|
+
], An = /* @__PURE__ */ s({
|
|
2679
2720
|
name: "DBIcon",
|
|
2680
2721
|
__name: "icon",
|
|
2681
2722
|
props: {
|
|
@@ -2691,26 +2732,26 @@ var b = () => {
|
|
|
2691
2732
|
text: { default: void 0 }
|
|
2692
2733
|
},
|
|
2693
2734
|
setup(t) {
|
|
2694
|
-
let i = t, o =
|
|
2695
|
-
return (s, l) => (
|
|
2735
|
+
let i = t, o = p(null);
|
|
2736
|
+
return (s, l) => (f(), r("span", {
|
|
2696
2737
|
"aria-hidden": "true",
|
|
2697
2738
|
ref_key: "_ref",
|
|
2698
2739
|
ref: o,
|
|
2699
2740
|
id: t.id ?? t.propOverrides?.id,
|
|
2700
|
-
class: c(
|
|
2741
|
+
class: c(_(C)("db-icon", i.class)),
|
|
2701
2742
|
"data-icon": t.icon,
|
|
2702
2743
|
"data-icon-weight": t.weight,
|
|
2703
2744
|
"data-icon-variant": t.variant
|
|
2704
|
-
}, [t.text ? (
|
|
2745
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, kn));
|
|
2705
2746
|
}
|
|
2706
|
-
}),
|
|
2747
|
+
}), jn = [
|
|
2707
2748
|
"16",
|
|
2708
2749
|
"20",
|
|
2709
2750
|
"24",
|
|
2710
2751
|
"32",
|
|
2711
2752
|
"48",
|
|
2712
2753
|
"64"
|
|
2713
|
-
],
|
|
2754
|
+
], Mn = [
|
|
2714
2755
|
"color",
|
|
2715
2756
|
"date",
|
|
2716
2757
|
"datetime-local",
|
|
@@ -2727,7 +2768,7 @@ var b = () => {
|
|
|
2727
2768
|
"time",
|
|
2728
2769
|
"url",
|
|
2729
2770
|
"week"
|
|
2730
|
-
],
|
|
2771
|
+
], Nn = [
|
|
2731
2772
|
"id",
|
|
2732
2773
|
"href",
|
|
2733
2774
|
"target",
|
|
@@ -2742,7 +2783,7 @@ var b = () => {
|
|
|
2742
2783
|
"data-variant",
|
|
2743
2784
|
"data-content",
|
|
2744
2785
|
"data-wrap"
|
|
2745
|
-
],
|
|
2786
|
+
], Pn = /* @__PURE__ */ s({
|
|
2746
2787
|
name: "DBLink",
|
|
2747
2788
|
__name: "link",
|
|
2748
2789
|
props: {
|
|
@@ -2782,36 +2823,36 @@ var b = () => {
|
|
|
2782
2823
|
}
|
|
2783
2824
|
},
|
|
2784
2825
|
setup(t) {
|
|
2785
|
-
let i = t, o =
|
|
2826
|
+
let i = t, o = p(null);
|
|
2786
2827
|
function s(e) {
|
|
2787
2828
|
i.onClick && i.onClick(e);
|
|
2788
2829
|
}
|
|
2789
|
-
return (l, u) => (
|
|
2830
|
+
return (l, u) => (f(), r("a", {
|
|
2790
2831
|
ref_key: "_ref",
|
|
2791
2832
|
ref: o,
|
|
2792
2833
|
id: t.id ?? t.propOverrides?.id,
|
|
2793
|
-
class: c(
|
|
2834
|
+
class: c(_(C)("db-link", i.class)),
|
|
2794
2835
|
href: t.href,
|
|
2795
2836
|
target: t.target,
|
|
2796
2837
|
rel: t.rel,
|
|
2797
2838
|
role: t.role,
|
|
2798
2839
|
referrerPolicy: t.referrerpolicy ?? t.referrerPolicy,
|
|
2799
2840
|
hrefLang: t.hreflang,
|
|
2800
|
-
"aria-disabled":
|
|
2841
|
+
"aria-disabled": _(k)(t.disabled, "disabled"),
|
|
2801
2842
|
tabIndex: t.disabled ? -1 : 0,
|
|
2802
2843
|
"data-size": t.size,
|
|
2803
|
-
"data-show-icon-trailing":
|
|
2844
|
+
"data-show-icon-trailing": _(k)(t.showIcon ?? !0, "showIcon"),
|
|
2804
2845
|
"data-variant": t.variant,
|
|
2805
2846
|
"data-content": t.content || "internal",
|
|
2806
|
-
"data-wrap":
|
|
2847
|
+
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
2807
2848
|
onClick: u[0] ||= async (e) => s(e)
|
|
2808
|
-
}, [t.text ? (
|
|
2849
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(l.$slots, "default")], 10, Nn));
|
|
2809
2850
|
}
|
|
2810
|
-
}),
|
|
2851
|
+
}), Fn = [
|
|
2811
2852
|
"adaptive",
|
|
2812
2853
|
"brand",
|
|
2813
2854
|
"inline"
|
|
2814
|
-
],
|
|
2855
|
+
], In = ["medium", "small"], Ln = ["external", "internal"], Rn = ["id"], zn = /* @__PURE__ */ s({
|
|
2815
2856
|
name: "DBNavigation",
|
|
2816
2857
|
__name: "navigation",
|
|
2817
2858
|
props: {
|
|
@@ -2823,15 +2864,15 @@ var b = () => {
|
|
|
2823
2864
|
propOverrides: { default: void 0 }
|
|
2824
2865
|
},
|
|
2825
2866
|
setup(e) {
|
|
2826
|
-
let t = e, n =
|
|
2827
|
-
return (a, o) => (
|
|
2867
|
+
let t = e, n = p(null);
|
|
2868
|
+
return (a, o) => (f(), r("nav", {
|
|
2828
2869
|
ref_key: "_ref",
|
|
2829
2870
|
ref: n,
|
|
2830
2871
|
id: e.id ?? e.propOverrides?.id,
|
|
2831
|
-
class: c(
|
|
2832
|
-
}, [i("menu", null, [
|
|
2872
|
+
class: c(_(C)("db-navigation", t.class))
|
|
2873
|
+
}, [i("menu", null, [h(a.$slots, "default")])], 10, Rn));
|
|
2833
2874
|
}
|
|
2834
|
-
}),
|
|
2875
|
+
}), Bn = [
|
|
2835
2876
|
"id",
|
|
2836
2877
|
"data-width",
|
|
2837
2878
|
"data-icon",
|
|
@@ -2839,20 +2880,20 @@ var b = () => {
|
|
|
2839
2880
|
"data-active",
|
|
2840
2881
|
"data-wrap",
|
|
2841
2882
|
"aria-disabled"
|
|
2842
|
-
],
|
|
2883
|
+
], Vn = [
|
|
2843
2884
|
"id",
|
|
2844
2885
|
"aria-haspopup",
|
|
2845
2886
|
"aria-expanded",
|
|
2846
2887
|
"aria-controls",
|
|
2847
2888
|
"disabled"
|
|
2848
|
-
],
|
|
2889
|
+
], Hn = [
|
|
2849
2890
|
"id",
|
|
2850
2891
|
"aria-labelledby",
|
|
2851
2892
|
"data-force-close"
|
|
2852
|
-
],
|
|
2893
|
+
], Un = {
|
|
2853
2894
|
key: 0,
|
|
2854
2895
|
class: "db-mobile-navigation-back"
|
|
2855
|
-
},
|
|
2896
|
+
}, Wn = /* @__PURE__ */ s({
|
|
2856
2897
|
name: "DBNavigationItem",
|
|
2857
2898
|
__name: "navigation-item",
|
|
2858
2899
|
props: {
|
|
@@ -2899,75 +2940,75 @@ var b = () => {
|
|
|
2899
2940
|
text: { default: void 0 }
|
|
2900
2941
|
},
|
|
2901
2942
|
setup(t) {
|
|
2902
|
-
let s =
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
let e = `sub-nav-${
|
|
2906
|
-
E.value = e,
|
|
2907
|
-
}),
|
|
2908
|
-
|
|
2943
|
+
let s = v(), l = t, d = p(!1), m = p(!1), x = p(!0), S = p(!1), w = p(!1), T = p(void 0), E = p(void 0), D = p(void 0), j = p(null);
|
|
2944
|
+
u(() => {
|
|
2945
|
+
d.value = !0;
|
|
2946
|
+
let e = `sub-nav-${l.id ?? s}`;
|
|
2947
|
+
E.value = e, D.value = `${e}-toggle`;
|
|
2948
|
+
}), y(() => [l.subNavigationExpanded], () => {
|
|
2949
|
+
l.subNavigationExpanded !== void 0 && (S.value = !!A(l.subNavigationExpanded, "subNavigationExpanded"));
|
|
2909
2950
|
}, {
|
|
2910
2951
|
immediate: !0,
|
|
2911
2952
|
flush: "post"
|
|
2912
|
-
}),
|
|
2913
|
-
if (
|
|
2953
|
+
}), y(() => [d.value, j.value], () => {
|
|
2954
|
+
if (d.value && j.value) {
|
|
2914
2955
|
let e = j.value.querySelector("menu");
|
|
2915
|
-
e && (e.children?.length > 0 ? (
|
|
2956
|
+
e && (e.children?.length > 0 ? (m.value = !0, T.value ||= new mn(j.value, e)) : x.value = !1);
|
|
2916
2957
|
}
|
|
2917
2958
|
}, {
|
|
2918
2959
|
immediate: !0,
|
|
2919
2960
|
flush: "post"
|
|
2920
2961
|
});
|
|
2921
2962
|
function M(e) {
|
|
2922
|
-
e?.target?.nodeName === "A" && (w.value = !0,
|
|
2963
|
+
e?.target?.nodeName === "A" && (w.value = !0, O(() => {
|
|
2923
2964
|
w.value = !1;
|
|
2924
2965
|
}, 1e3));
|
|
2925
2966
|
}
|
|
2926
2967
|
function N(e) {
|
|
2927
|
-
|
|
2968
|
+
l.onClick && (e.stopPropagation(), l.onClick(e)), m.value && (S.value = !0);
|
|
2928
2969
|
}
|
|
2929
2970
|
function P(e) {
|
|
2930
|
-
e.stopPropagation(),
|
|
2971
|
+
e.stopPropagation(), S.value = !1;
|
|
2931
2972
|
}
|
|
2932
|
-
return (s,
|
|
2973
|
+
return (s, u) => (f(), r("li", {
|
|
2933
2974
|
ref_key: "_ref",
|
|
2934
2975
|
ref: j,
|
|
2935
2976
|
id: t.id ?? t.propOverrides?.id,
|
|
2936
|
-
onMouseover:
|
|
2937
|
-
onMouseleave:
|
|
2938
|
-
onMousemove:
|
|
2939
|
-
class: c(
|
|
2977
|
+
onMouseover: u[2] ||= async (e) => T.value?.enableFollow(),
|
|
2978
|
+
onMouseleave: u[3] ||= async (e) => T.value?.disableFollow(),
|
|
2979
|
+
onMousemove: u[4] ||= async (e) => T.value?.followByMouseEvent(e),
|
|
2980
|
+
class: c(_(C)("db-navigation-item", l.class)),
|
|
2940
2981
|
"data-width": t.width,
|
|
2941
2982
|
"data-icon": t.icon,
|
|
2942
|
-
"data-show-icon":
|
|
2983
|
+
"data-show-icon": _(k)(t.showIcon, "showIcon"),
|
|
2943
2984
|
"data-active": t.active,
|
|
2944
|
-
"data-wrap":
|
|
2945
|
-
"aria-disabled":
|
|
2946
|
-
}, [!
|
|
2985
|
+
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
2986
|
+
"aria-disabled": _(k)(t.disabled, "disabled")
|
|
2987
|
+
}, [!_(A)(t.hideSubNavigation, "hideSubNavigation") && x.value ? (f(), r(e, { key: 0 }, [i("button", {
|
|
2947
2988
|
class: "db-navigation-item-expand-button",
|
|
2948
|
-
id:
|
|
2949
|
-
"aria-haspopup":
|
|
2950
|
-
"aria-expanded":
|
|
2989
|
+
id: D.value,
|
|
2990
|
+
"aria-haspopup": m.value ? "true" : void 0,
|
|
2991
|
+
"aria-expanded": S.value,
|
|
2951
2992
|
"aria-controls": E.value,
|
|
2952
|
-
disabled:
|
|
2953
|
-
onClick:
|
|
2954
|
-
}, [t.text ? (
|
|
2993
|
+
disabled: _(A)(t.disabled, "disabled"),
|
|
2994
|
+
onClick: u[0] ||= async (e) => N(e)
|
|
2995
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 8, Vn), i("menu", {
|
|
2955
2996
|
class: "db-sub-navigation",
|
|
2956
2997
|
id: E.value,
|
|
2957
|
-
"aria-labelledby":
|
|
2998
|
+
"aria-labelledby": D.value,
|
|
2958
2999
|
"data-force-close": w.value,
|
|
2959
|
-
onClick:
|
|
2960
|
-
}, [
|
|
3000
|
+
onClick: u[1] ||= async (e) => M(e)
|
|
3001
|
+
}, [m.value ? (f(), r("div", Un, [o(Le, {
|
|
2961
3002
|
icon: "arrow_left",
|
|
2962
3003
|
variant: "ghost",
|
|
2963
3004
|
id: t.backButtonId,
|
|
2964
3005
|
onClick: (e) => P(e)
|
|
2965
3006
|
}, {
|
|
2966
|
-
default:
|
|
3007
|
+
default: b(() => [a(g(t.backButtonText ?? _("Back")), 1)]),
|
|
2967
3008
|
_: 1
|
|
2968
|
-
}, 8, ["id", "onClick"])])) : n("", !0),
|
|
3009
|
+
}, 8, ["id", "onClick"])])) : n("", !0), h(s.$slots, "sub-navigation")], 8, Hn)], 64)) : (f(), r(e, { key: 1 }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 64))], 42, Bn));
|
|
2969
3010
|
}
|
|
2970
|
-
}),
|
|
3011
|
+
}), Gn = [
|
|
2971
3012
|
"id",
|
|
2972
3013
|
"role",
|
|
2973
3014
|
"aria-live",
|
|
@@ -2976,10 +3017,10 @@ var b = () => {
|
|
|
2976
3017
|
"data-icon",
|
|
2977
3018
|
"data-show-icon",
|
|
2978
3019
|
"data-link-variant"
|
|
2979
|
-
],
|
|
3020
|
+
], Kn = {
|
|
2980
3021
|
key: 0,
|
|
2981
3022
|
"data-area": "head"
|
|
2982
|
-
},
|
|
3023
|
+
}, qn = { "data-area": "content" }, Jn = ["dateTime"], Yn = /* @__PURE__ */ s({
|
|
2983
3024
|
name: "DBNotification",
|
|
2984
3025
|
__name: "notification",
|
|
2985
3026
|
props: {
|
|
@@ -3026,16 +3067,16 @@ var b = () => {
|
|
|
3026
3067
|
text: { default: void 0 }
|
|
3027
3068
|
},
|
|
3028
3069
|
setup(o) {
|
|
3029
|
-
let s = o, l =
|
|
3070
|
+
let s = o, l = p(null);
|
|
3030
3071
|
function u(e) {
|
|
3031
3072
|
e && (e.stopPropagation(), s.onClose && s.onClose(e));
|
|
3032
3073
|
}
|
|
3033
|
-
return (
|
|
3074
|
+
return (d, p) => (f(), r("div", {
|
|
3034
3075
|
ref_key: "_ref",
|
|
3035
3076
|
ref: l,
|
|
3036
3077
|
id: o.id ?? o.propOverrides?.id,
|
|
3037
|
-
class: c(
|
|
3038
|
-
role:
|
|
3078
|
+
class: c(_(C)("db-notification", s.class)),
|
|
3079
|
+
role: _(B)({
|
|
3039
3080
|
semantic: o.semantic,
|
|
3040
3081
|
role: o.role,
|
|
3041
3082
|
ariaLive: o.ariaLive
|
|
@@ -3043,20 +3084,20 @@ var b = () => {
|
|
|
3043
3084
|
"aria-live": o.ariaLive,
|
|
3044
3085
|
"data-semantic": o.semantic,
|
|
3045
3086
|
"data-variant": o.variant,
|
|
3046
|
-
"data-icon":
|
|
3047
|
-
"data-show-icon":
|
|
3087
|
+
"data-icon": _(A)(o.showIcon) === !1 ? void 0 : o.icon,
|
|
3088
|
+
"data-show-icon": _(k)(o.showIcon, "showIcon"),
|
|
3048
3089
|
"data-link-variant": o.linkVariant
|
|
3049
3090
|
}, [
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
i("div",
|
|
3053
|
-
|
|
3091
|
+
h(d.$slots, "image"),
|
|
3092
|
+
_(I)(o.headline, o.showHeadline) ? (f(), r("header", Kn, g(o.headline), 1)) : n("", !0),
|
|
3093
|
+
i("div", qn, [o.text ? (f(), r(e, { key: 0 }, [a(g(o.text), 1)], 64)) : n("", !0), h(d.$slots, "default")]),
|
|
3094
|
+
_(I)(o.timestamp, o.showTimestamp) ? (f(), r("time", {
|
|
3054
3095
|
key: 1,
|
|
3055
3096
|
"data-area": "timestamp",
|
|
3056
3097
|
dateTime: o.timestampDatetime
|
|
3057
|
-
},
|
|
3058
|
-
|
|
3059
|
-
|
|
3098
|
+
}, g(o.timestamp), 9, Jn)) : n("", !0),
|
|
3099
|
+
h(d.$slots, "link"),
|
|
3100
|
+
_(A)(o.closeable, "closeable") ? (f(), t(Le, {
|
|
3060
3101
|
key: 2,
|
|
3061
3102
|
icon: "cross",
|
|
3062
3103
|
variant: "ghost",
|
|
@@ -3065,25 +3106,25 @@ var b = () => {
|
|
|
3065
3106
|
noText: !0,
|
|
3066
3107
|
onClick: (e) => u(e)
|
|
3067
3108
|
}, {
|
|
3068
|
-
default:
|
|
3109
|
+
default: b(() => [a(g(o.closeButtonText ?? _("Close")), 1)]),
|
|
3069
3110
|
_: 1
|
|
3070
3111
|
}, 8, ["id", "onClick"])) : n("", !0)
|
|
3071
|
-
], 10,
|
|
3112
|
+
], 10, Gn));
|
|
3072
3113
|
}
|
|
3073
|
-
}),
|
|
3114
|
+
}), Xn = [
|
|
3074
3115
|
"docked",
|
|
3075
3116
|
"standalone",
|
|
3076
3117
|
"overlay"
|
|
3077
|
-
],
|
|
3118
|
+
], Zn = ["block", "inline"], Qn = [
|
|
3078
3119
|
"assertive",
|
|
3079
3120
|
"polite",
|
|
3080
3121
|
"off"
|
|
3081
|
-
],
|
|
3122
|
+
], $n = [
|
|
3082
3123
|
"id",
|
|
3083
3124
|
"data-variant",
|
|
3084
3125
|
"data-fade-in",
|
|
3085
3126
|
"data-fonts-loaded"
|
|
3086
|
-
],
|
|
3127
|
+
], er = /* @__PURE__ */ s({
|
|
3087
3128
|
name: "DBPage",
|
|
3088
3129
|
__name: "page",
|
|
3089
3130
|
props: {
|
|
@@ -3104,28 +3145,28 @@ var b = () => {
|
|
|
3104
3145
|
propOverrides: { default: void 0 }
|
|
3105
3146
|
},
|
|
3106
3147
|
setup(e) {
|
|
3107
|
-
let t = e, n =
|
|
3108
|
-
return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"),
|
|
3148
|
+
let t = e, n = p(!1), a = p(null);
|
|
3149
|
+
return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), u(() => {
|
|
3109
3150
|
n.value = !t.fadeIn, document && t.fadeIn ? document.fonts.ready.then(() => {
|
|
3110
3151
|
n.value = !0;
|
|
3111
3152
|
}) : n.value = !0;
|
|
3112
|
-
}),
|
|
3153
|
+
}), d(() => {
|
|
3113
3154
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
3114
|
-
}), (o, s) => (
|
|
3155
|
+
}), (o, s) => (f(), r("div", {
|
|
3115
3156
|
ref_key: "_ref",
|
|
3116
3157
|
ref: a,
|
|
3117
3158
|
id: e.id ?? e.propOverrides?.id,
|
|
3118
|
-
class: c(
|
|
3159
|
+
class: c(_(C)("db-page", t.class)),
|
|
3119
3160
|
"data-variant": e.variant,
|
|
3120
|
-
"data-fade-in":
|
|
3121
|
-
"data-fonts-loaded":
|
|
3161
|
+
"data-fade-in": _(k)(e.fadeIn, "fadeIn"),
|
|
3162
|
+
"data-fonts-loaded": _(k)(n.value, "fontsLoaded")
|
|
3122
3163
|
}, [
|
|
3123
|
-
|
|
3124
|
-
i("main", { class: c(
|
|
3125
|
-
|
|
3126
|
-
], 10,
|
|
3164
|
+
h(o.$slots, "header"),
|
|
3165
|
+
i("main", { class: c(_(C)("db-main", e.mainClass)) }, [h(o.$slots, "default")], 2),
|
|
3166
|
+
h(o.$slots, "footer")
|
|
3167
|
+
], 10, $n));
|
|
3127
3168
|
}
|
|
3128
|
-
}),
|
|
3169
|
+
}), tr = ["auto", "fixed"], nr = ["hidden", "auto"], rr = ["id"], ir = [
|
|
3129
3170
|
"data-spacing",
|
|
3130
3171
|
"data-gap",
|
|
3131
3172
|
"data-animation",
|
|
@@ -3133,7 +3174,7 @@ var b = () => {
|
|
|
3133
3174
|
"data-delay",
|
|
3134
3175
|
"data-width",
|
|
3135
3176
|
"data-placement"
|
|
3136
|
-
],
|
|
3177
|
+
], ar = /* @__PURE__ */ s({
|
|
3137
3178
|
name: "DBPopover",
|
|
3138
3179
|
__name: "popover",
|
|
3139
3180
|
props: {
|
|
@@ -3162,27 +3203,27 @@ var b = () => {
|
|
|
3162
3203
|
width: { default: void 0 }
|
|
3163
3204
|
},
|
|
3164
3205
|
setup(e) {
|
|
3165
|
-
let t = e, n =
|
|
3166
|
-
|
|
3206
|
+
let t = e, n = p(!1), a = p(!1), o = p(void 0), s = p(void 0), l = p(null);
|
|
3207
|
+
u(() => {
|
|
3167
3208
|
n.value = !0;
|
|
3168
|
-
}),
|
|
3169
|
-
if (
|
|
3209
|
+
}), y(() => [l.value, n.value], () => {
|
|
3210
|
+
if (l.value && n.value) {
|
|
3170
3211
|
n.value = !1;
|
|
3171
3212
|
let e = x();
|
|
3172
|
-
e && (e.ariaHasPopup = "true"),
|
|
3173
|
-
|
|
3213
|
+
e && (e.ariaHasPopup = "true"), m(), l.value.addEventListener("keydown", (e) => d(e)), ["mouseenter", "focusin"].forEach((e) => {
|
|
3214
|
+
l.value.addEventListener(e, () => v());
|
|
3174
3215
|
}), ["mouseleave", "focusout"].forEach((e) => {
|
|
3175
|
-
|
|
3216
|
+
l.value.addEventListener(e, () => b());
|
|
3176
3217
|
}), typeof window < "u" && "IntersectionObserver" in window && (s.value = new IntersectionObserver((e) => {
|
|
3177
3218
|
let t = e.find(({ target: e }) => e === x());
|
|
3178
|
-
t && !t.isIntersecting &&
|
|
3219
|
+
t && !t.isIntersecting && d(!1);
|
|
3179
3220
|
}));
|
|
3180
3221
|
}
|
|
3181
3222
|
}, {
|
|
3182
3223
|
immediate: !0,
|
|
3183
3224
|
flush: "post"
|
|
3184
|
-
}),
|
|
3185
|
-
if (
|
|
3225
|
+
}), y(() => [l.value, a.value], () => {
|
|
3226
|
+
if (l.value) {
|
|
3186
3227
|
let e = x();
|
|
3187
3228
|
e && (e.ariaExpanded = (!!a.value).toString());
|
|
3188
3229
|
}
|
|
@@ -3190,35 +3231,35 @@ var b = () => {
|
|
|
3190
3231
|
immediate: !0,
|
|
3191
3232
|
flush: "post"
|
|
3192
3233
|
});
|
|
3193
|
-
function
|
|
3194
|
-
if (!e || e.key === "Escape") for (let e of Array.from(
|
|
3234
|
+
function d(e) {
|
|
3235
|
+
if (!e || e.key === "Escape") for (let e of Array.from(l.value.children)) e.blur();
|
|
3195
3236
|
}
|
|
3196
|
-
function
|
|
3197
|
-
if (!
|
|
3198
|
-
let e =
|
|
3199
|
-
e &&
|
|
3200
|
-
|
|
3237
|
+
function m() {
|
|
3238
|
+
if (!l.value) return;
|
|
3239
|
+
let e = l.value.querySelector("article");
|
|
3240
|
+
e && O(() => {
|
|
3241
|
+
ut(e, l.value, t.placement ?? "bottom");
|
|
3201
3242
|
}, 1);
|
|
3202
3243
|
}
|
|
3203
|
-
function
|
|
3204
|
-
e?.target?.contains && e?.target?.contains(
|
|
3244
|
+
function g(e) {
|
|
3245
|
+
e?.target?.contains && e?.target?.contains(l.value) && m();
|
|
3205
3246
|
}
|
|
3206
|
-
function
|
|
3207
|
-
a.value = !0, o.value = new
|
|
3247
|
+
function v() {
|
|
3248
|
+
a.value = !0, o.value = new nt().addCallback((e) => g(e)), m();
|
|
3208
3249
|
let e = x();
|
|
3209
3250
|
e && s.value?.observe(e);
|
|
3210
3251
|
}
|
|
3211
3252
|
function b(e) {
|
|
3212
3253
|
let t = e?.target;
|
|
3213
3254
|
if (!t?.parentNode || t.parentNode.querySelector(":focus") !== t && t.parentNode.querySelector(":focus-within") !== t && t.parentNode.querySelector(":hover") !== t) {
|
|
3214
|
-
a.value = !1, o.value && new
|
|
3255
|
+
a.value = !1, o.value && new nt().removeCallback(o.value);
|
|
3215
3256
|
let e = x();
|
|
3216
3257
|
e && s.value?.unobserve(e);
|
|
3217
3258
|
}
|
|
3218
3259
|
}
|
|
3219
3260
|
function x() {
|
|
3220
|
-
if (
|
|
3221
|
-
let e = Array.from(
|
|
3261
|
+
if (l.value) {
|
|
3262
|
+
let e = Array.from(l.value.children);
|
|
3222
3263
|
if (e.length >= 2) {
|
|
3223
3264
|
let t = e[0];
|
|
3224
3265
|
return t.tagName.includes("-") ? t.children?.length > 0 ? t.children[0] : null : t;
|
|
@@ -3226,28 +3267,28 @@ var b = () => {
|
|
|
3226
3267
|
}
|
|
3227
3268
|
return null;
|
|
3228
3269
|
}
|
|
3229
|
-
return (n, a) => (
|
|
3270
|
+
return (n, a) => (f(), r("div", {
|
|
3230
3271
|
ref_key: "_ref",
|
|
3231
|
-
ref:
|
|
3272
|
+
ref: l,
|
|
3232
3273
|
id: e.id ?? e.propOverrides?.id,
|
|
3233
|
-
class: c(
|
|
3234
|
-
}, [
|
|
3274
|
+
class: c(_(C)("db-popover", t.class))
|
|
3275
|
+
}, [h(n.$slots, "trigger"), i("article", {
|
|
3235
3276
|
class: "db-popover-content",
|
|
3236
3277
|
"data-spacing": e.spacing,
|
|
3237
|
-
"data-gap":
|
|
3238
|
-
"data-animation":
|
|
3239
|
-
"data-open":
|
|
3278
|
+
"data-gap": _(k)(e.gap, "gap"),
|
|
3279
|
+
"data-animation": _(k)(e.animation ?? !0, "animation"),
|
|
3280
|
+
"data-open": _(k)(e.open, "open"),
|
|
3240
3281
|
"data-delay": e.delay,
|
|
3241
3282
|
"data-width": e.width,
|
|
3242
3283
|
"data-placement": e.placement
|
|
3243
|
-
}, [
|
|
3284
|
+
}, [h(n.$slots, "default")], 8, ir)], 10, rr));
|
|
3244
3285
|
}
|
|
3245
|
-
}),
|
|
3286
|
+
}), or = [
|
|
3246
3287
|
"data-size",
|
|
3247
3288
|
"data-hide-label",
|
|
3248
3289
|
"data-hide-asterisk",
|
|
3249
3290
|
"for"
|
|
3250
|
-
],
|
|
3291
|
+
], sr = [
|
|
3251
3292
|
"aria-invalid",
|
|
3252
3293
|
"data-custom-validity",
|
|
3253
3294
|
"id",
|
|
@@ -3256,7 +3297,7 @@ var b = () => {
|
|
|
3256
3297
|
"disabled",
|
|
3257
3298
|
"value",
|
|
3258
3299
|
"required"
|
|
3259
|
-
],
|
|
3300
|
+
], cr = /* @__PURE__ */ s({
|
|
3260
3301
|
name: "DBRadio",
|
|
3261
3302
|
__name: "radio",
|
|
3262
3303
|
props: {
|
|
@@ -3319,31 +3360,31 @@ var b = () => {
|
|
|
3319
3360
|
},
|
|
3320
3361
|
emits: ["update:value"],
|
|
3321
3362
|
setup(t, { emit: o }) {
|
|
3322
|
-
let s =
|
|
3323
|
-
|
|
3363
|
+
let s = v(), l = o, m = t, b = p(!1), x = p(void 0), S = p(void 0), w = p(null);
|
|
3364
|
+
u(() => {
|
|
3324
3365
|
b.value = !0, j();
|
|
3325
|
-
}),
|
|
3326
|
-
|
|
3327
|
-
}),
|
|
3328
|
-
(
|
|
3366
|
+
}), d(() => {
|
|
3367
|
+
S.value?.abort();
|
|
3368
|
+
}), y(() => [m.id, m.propOverrides?.id], () => {
|
|
3369
|
+
(m.id ?? m.propOverrides?.id) && j();
|
|
3329
3370
|
}, {
|
|
3330
3371
|
immediate: !0,
|
|
3331
3372
|
flush: "post"
|
|
3332
|
-
}),
|
|
3373
|
+
}), y(() => [
|
|
3333
3374
|
b.value,
|
|
3334
3375
|
w.value,
|
|
3335
|
-
|
|
3376
|
+
m.checked
|
|
3336
3377
|
], () => {
|
|
3337
|
-
|
|
3378
|
+
m.checked && b.value && w.value && (w.value.checked = !0);
|
|
3338
3379
|
}, {
|
|
3339
3380
|
immediate: !0,
|
|
3340
3381
|
flush: "post"
|
|
3341
|
-
}),
|
|
3382
|
+
}), y(() => [w.value], () => {
|
|
3342
3383
|
if (w.value) {
|
|
3343
|
-
let e =
|
|
3344
|
-
e || (e = new AbortController(),
|
|
3345
|
-
|
|
3346
|
-
let t =
|
|
3384
|
+
let e = S.value;
|
|
3385
|
+
e || (e = new AbortController(), S.value = e), We(w.value, (e) => {
|
|
3386
|
+
O(() => {
|
|
3387
|
+
let t = m.checked ? m.checked : w.value.checked, n = {
|
|
3347
3388
|
...e,
|
|
3348
3389
|
target: {
|
|
3349
3390
|
...e.target,
|
|
@@ -3360,25 +3401,25 @@ var b = () => {
|
|
|
3360
3401
|
flush: "post"
|
|
3361
3402
|
});
|
|
3362
3403
|
function T(e, t) {
|
|
3363
|
-
|
|
3404
|
+
m.input && m.input(e), m.onInput && m.onInput(e), Q(l, e);
|
|
3364
3405
|
}
|
|
3365
3406
|
function E(e, t) {
|
|
3366
|
-
|
|
3407
|
+
m.onChange && m.onChange(e), Q(l, e);
|
|
3367
3408
|
}
|
|
3368
|
-
function
|
|
3369
|
-
|
|
3409
|
+
function D(e) {
|
|
3410
|
+
m.onBlur && m.onBlur(e);
|
|
3370
3411
|
}
|
|
3371
|
-
function
|
|
3372
|
-
|
|
3412
|
+
function k(e) {
|
|
3413
|
+
m.onFocus && m.onFocus(e);
|
|
3373
3414
|
}
|
|
3374
3415
|
function j() {
|
|
3375
|
-
x.value =
|
|
3416
|
+
x.value = m.id ?? m.propOverrides?.id ?? `radio-${s}`;
|
|
3376
3417
|
}
|
|
3377
|
-
return (o, s) => (
|
|
3418
|
+
return (o, s) => (f(), r("label", {
|
|
3378
3419
|
"data-size": t.size,
|
|
3379
|
-
"data-hide-label":
|
|
3380
|
-
"data-hide-asterisk":
|
|
3381
|
-
class: c(
|
|
3420
|
+
"data-hide-label": _(F)(t.showLabel),
|
|
3421
|
+
"data-hide-asterisk": _(F)(t.showRequiredAsterisk),
|
|
3422
|
+
class: c(_(C)("db-radio", m.class)),
|
|
3382
3423
|
for: x.value
|
|
3383
3424
|
}, [
|
|
3384
3425
|
i("input", {
|
|
@@ -3389,24 +3430,24 @@ var b = () => {
|
|
|
3389
3430
|
ref: w,
|
|
3390
3431
|
id: x.value,
|
|
3391
3432
|
name: t.name,
|
|
3392
|
-
checked:
|
|
3393
|
-
disabled:
|
|
3433
|
+
checked: _(A)(t.checked, "checked"),
|
|
3434
|
+
disabled: _(A)(t.disabled, "disabled"),
|
|
3394
3435
|
value: t.value,
|
|
3395
|
-
required:
|
|
3436
|
+
required: _(A)(t.required, "required"),
|
|
3396
3437
|
onInput: s[0] ||= async (e) => T(e),
|
|
3397
3438
|
onChange: s[1] ||= async (e) => E(e),
|
|
3398
|
-
onBlur: s[2] ||= async (e) =>
|
|
3399
|
-
onFocus: s[3] ||= async (e) =>
|
|
3400
|
-
}, null, 40,
|
|
3401
|
-
t.label ? (
|
|
3402
|
-
|
|
3403
|
-
], 10,
|
|
3439
|
+
onBlur: s[2] ||= async (e) => D(e),
|
|
3440
|
+
onFocus: s[3] ||= async (e) => k(e)
|
|
3441
|
+
}, null, 40, sr),
|
|
3442
|
+
t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
|
|
3443
|
+
h(o.$slots, "default")
|
|
3444
|
+
], 10, or));
|
|
3404
3445
|
}
|
|
3405
|
-
}),
|
|
3446
|
+
}), lr = [
|
|
3406
3447
|
"id",
|
|
3407
3448
|
"data-spacing",
|
|
3408
3449
|
"data-width"
|
|
3409
|
-
],
|
|
3450
|
+
], ur = /* @__PURE__ */ s({
|
|
3410
3451
|
name: "DBSection",
|
|
3411
3452
|
__name: "section",
|
|
3412
3453
|
props: {
|
|
@@ -3420,23 +3461,23 @@ var b = () => {
|
|
|
3420
3461
|
width: { default: void 0 }
|
|
3421
3462
|
},
|
|
3422
3463
|
setup(e) {
|
|
3423
|
-
let t = e, n =
|
|
3424
|
-
return (i, a) => (
|
|
3464
|
+
let t = e, n = p(null);
|
|
3465
|
+
return (i, a) => (f(), r("section", {
|
|
3425
3466
|
ref_key: "_ref",
|
|
3426
3467
|
ref: n,
|
|
3427
3468
|
id: e.id ?? e.propOverrides?.id,
|
|
3428
|
-
class: c(
|
|
3469
|
+
class: c(_(C)("db-section", t.class)),
|
|
3429
3470
|
"data-spacing": e.spacing || "medium",
|
|
3430
3471
|
"data-width": e.width
|
|
3431
|
-
}, [
|
|
3472
|
+
}, [h(i.$slots, "default")], 10, lr));
|
|
3432
3473
|
}
|
|
3433
|
-
}),
|
|
3474
|
+
}), dr = [
|
|
3434
3475
|
"data-variant",
|
|
3435
3476
|
"data-hide-label",
|
|
3436
3477
|
"data-hide-asterisk",
|
|
3437
3478
|
"data-icon",
|
|
3438
3479
|
"data-show-icon"
|
|
3439
|
-
],
|
|
3480
|
+
], fr = ["for"], pr = [
|
|
3440
3481
|
"aria-invalid",
|
|
3441
3482
|
"data-custom-validity",
|
|
3442
3483
|
"required",
|
|
@@ -3448,18 +3489,18 @@ var b = () => {
|
|
|
3448
3489
|
"autocomplete",
|
|
3449
3490
|
"multiple",
|
|
3450
3491
|
"aria-describedby"
|
|
3451
|
-
],
|
|
3492
|
+
], mr = ["data-show-empty-option"], hr = ["label"], gr = [
|
|
3452
3493
|
"value",
|
|
3453
3494
|
"selected",
|
|
3454
3495
|
"disabled"
|
|
3455
|
-
],
|
|
3496
|
+
], _r = [
|
|
3456
3497
|
"value",
|
|
3457
3498
|
"disabled",
|
|
3458
3499
|
"selected"
|
|
3459
|
-
],
|
|
3500
|
+
], vr = ["id"], yr = {
|
|
3460
3501
|
"data-visually-hidden": "true",
|
|
3461
3502
|
role: "status"
|
|
3462
|
-
},
|
|
3503
|
+
}, br = /* @__PURE__ */ s({
|
|
3463
3504
|
name: "DBSelect",
|
|
3464
3505
|
__name: "select",
|
|
3465
3506
|
props: {
|
|
@@ -3547,148 +3588,148 @@ var b = () => {
|
|
|
3547
3588
|
size: { default: void 0 }
|
|
3548
3589
|
},
|
|
3549
3590
|
emits: ["update:value"],
|
|
3550
|
-
setup(s, { emit:
|
|
3551
|
-
let x =
|
|
3552
|
-
|
|
3553
|
-
z.value = !0,
|
|
3554
|
-
}),
|
|
3591
|
+
setup(s, { emit: l }) {
|
|
3592
|
+
let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(""), L = p(void 0), R = p(""), z = p(!1), B = p(""), V = p(void 0), H = p(null);
|
|
3593
|
+
u(() => {
|
|
3594
|
+
z.value = !0, ae(), N.value = w.invalidMessage || "TODO: Add an invalidMessage";
|
|
3595
|
+
}), d(() => {
|
|
3555
3596
|
V.value?.abort();
|
|
3556
|
-
}),
|
|
3557
|
-
(w.id ?? w.propOverrides?.id) &&
|
|
3597
|
+
}), y(() => [w.id, w.propOverrides?.id], () => {
|
|
3598
|
+
(w.id ?? w.propOverrides?.id) && ae();
|
|
3558
3599
|
}, {
|
|
3559
3600
|
immediate: !0,
|
|
3560
3601
|
flush: "post"
|
|
3561
|
-
}),
|
|
3602
|
+
}), y(() => [H.value, w.invalidMessage], () => {
|
|
3562
3603
|
N.value = w.invalidMessage || H.value?.validationMessage || "TODO: Add an invalidMessage";
|
|
3563
3604
|
}, {
|
|
3564
3605
|
immediate: !0,
|
|
3565
3606
|
flush: "post"
|
|
3566
|
-
}),
|
|
3567
|
-
if (
|
|
3568
|
-
let e =
|
|
3569
|
-
|
|
3607
|
+
}), y(() => [T.value, z.value], () => {
|
|
3608
|
+
if (T.value && z.value) {
|
|
3609
|
+
let e = T.value + q, t = T.value + ce;
|
|
3610
|
+
D.value = e, j.value = T.value + J, M.value = T.value + se, P.value = t, I(w.message, w.showMessage) ? L.value = e : w.placeholder ? L.value = t : L.value = void 0, W(), z.value = !1;
|
|
3570
3611
|
}
|
|
3571
3612
|
}, {
|
|
3572
3613
|
immediate: !0,
|
|
3573
3614
|
flush: "post"
|
|
3574
|
-
}),
|
|
3615
|
+
}), y(() => [w.value], () => {
|
|
3575
3616
|
R.value = w.value;
|
|
3576
3617
|
}, {
|
|
3577
3618
|
immediate: !0,
|
|
3578
3619
|
flush: "post"
|
|
3579
|
-
}),
|
|
3620
|
+
}), y(() => [H.value], () => {
|
|
3580
3621
|
if (H.value) {
|
|
3581
3622
|
let e = V.value;
|
|
3582
|
-
e || (e = new AbortController(), V.value = e),
|
|
3623
|
+
e || (e = new AbortController(), V.value = e), Ke(H.value, {
|
|
3583
3624
|
value: w.value,
|
|
3584
3625
|
defaultValue: void 0
|
|
3585
3626
|
}, (e) => {
|
|
3586
|
-
|
|
3627
|
+
te(e, !0), G(e, !0);
|
|
3587
3628
|
}, e.signal);
|
|
3588
3629
|
}
|
|
3589
3630
|
}, {
|
|
3590
3631
|
immediate: !0,
|
|
3591
3632
|
flush: "post"
|
|
3592
3633
|
});
|
|
3593
|
-
function
|
|
3634
|
+
function U() {
|
|
3594
3635
|
return !!(w.validMessage ?? w.validation === "valid");
|
|
3595
3636
|
}
|
|
3596
|
-
function
|
|
3597
|
-
!H.value?.validity.valid || w.validation === "invalid" ? (L.value = M.value, N.value = w.invalidMessage || H.value?.validationMessage || "TODO: Add an invalidMessage",
|
|
3637
|
+
function W() {
|
|
3638
|
+
!H.value?.validity.valid || w.validation === "invalid" ? (L.value = M.value, N.value = w.invalidMessage || H.value?.validationMessage || "TODO: Add an invalidMessage", E() && (B.value = N.value, O(() => B.value = "", 1e3))) : U() && H.value?.validity.valid && w.required ? (L.value = j.value, E() && (B.value = w.validMessage ?? "TODO: Add a validMessage", O(() => B.value = "", 1e3))) : I(w.message, w.showMessage) ? L.value = D.value : w.placeholder ? L.value = P.value : L.value = void 0;
|
|
3598
3639
|
}
|
|
3599
|
-
function
|
|
3640
|
+
function ee(e) {
|
|
3600
3641
|
w.onClick && w.onClick(e);
|
|
3601
3642
|
}
|
|
3602
|
-
function
|
|
3603
|
-
w.input && w.input(e), R.value = e.target.value, w.onInput && w.onInput(e), Q(
|
|
3643
|
+
function G(e, t) {
|
|
3644
|
+
w.input && w.input(e), R.value = e.target.value, w.onInput && w.onInput(e), Q(S, e), W();
|
|
3604
3645
|
}
|
|
3605
|
-
function
|
|
3606
|
-
w.onChange && w.onChange(e), Q(
|
|
3646
|
+
function te(e, t) {
|
|
3647
|
+
w.onChange && w.onChange(e), Q(S, e), W();
|
|
3607
3648
|
}
|
|
3608
|
-
function
|
|
3649
|
+
function ne(e) {
|
|
3609
3650
|
w.onBlur && w.onBlur(e);
|
|
3610
3651
|
}
|
|
3611
|
-
function
|
|
3652
|
+
function K(e) {
|
|
3612
3653
|
w.onFocus && w.onFocus(e);
|
|
3613
3654
|
}
|
|
3614
|
-
function
|
|
3655
|
+
function re(e) {
|
|
3615
3656
|
return e.label ?? e.value?.toString();
|
|
3616
3657
|
}
|
|
3617
|
-
function
|
|
3658
|
+
function ie() {
|
|
3618
3659
|
return w.variant === "floating" || w.placeholder ? w.showEmptyOption === void 0 ? !w.required : w.showEmptyOption : !1;
|
|
3619
3660
|
}
|
|
3620
|
-
function
|
|
3661
|
+
function ae() {
|
|
3621
3662
|
let e = w.id ?? w.propOverrides?.id ?? `select-${x}`;
|
|
3622
|
-
|
|
3663
|
+
T.value = e, D.value = e + q, j.value = e + J, M.value = e + se, P.value = e + ce;
|
|
3623
3664
|
}
|
|
3624
|
-
return (l, u) => (
|
|
3625
|
-
class: c(
|
|
3665
|
+
return (l, u) => (f(), r("div", {
|
|
3666
|
+
class: c(_(C)("db-select", w.class)),
|
|
3626
3667
|
"data-variant": s.variant,
|
|
3627
|
-
"data-hide-label":
|
|
3628
|
-
"data-hide-asterisk":
|
|
3668
|
+
"data-hide-label": _(F)(s.showLabel),
|
|
3669
|
+
"data-hide-asterisk": _(F)(s.showRequiredAsterisk),
|
|
3629
3670
|
"data-icon": s.icon,
|
|
3630
|
-
"data-show-icon":
|
|
3671
|
+
"data-show-icon": _(k)(s.showIcon, "showIcon")
|
|
3631
3672
|
}, [
|
|
3632
|
-
i("label", { for:
|
|
3673
|
+
i("label", { for: T.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, fr),
|
|
3633
3674
|
i("select", {
|
|
3634
3675
|
"aria-invalid": s.validation === "invalid",
|
|
3635
3676
|
"data-custom-validity": s.validation,
|
|
3636
3677
|
ref_key: "_ref",
|
|
3637
3678
|
ref: H,
|
|
3638
|
-
required:
|
|
3639
|
-
disabled:
|
|
3640
|
-
id:
|
|
3679
|
+
required: _(A)(s.required, "required"),
|
|
3680
|
+
disabled: _(A)(s.disabled, "disabled"),
|
|
3681
|
+
id: T.value,
|
|
3641
3682
|
name: s.name,
|
|
3642
3683
|
size: s.size,
|
|
3643
3684
|
value: s.value ?? R.value ?? "",
|
|
3644
3685
|
autocomplete: s.autocomplete,
|
|
3645
3686
|
multiple: s.multiple,
|
|
3646
|
-
onInput: u[0] ||= async (e) =>
|
|
3647
|
-
onClick: u[1] ||= async (e) =>
|
|
3648
|
-
onChange: u[2] ||= async (e) =>
|
|
3649
|
-
onBlur: u[3] ||= async (e) =>
|
|
3650
|
-
onFocus: u[4] ||= async (e) =>
|
|
3687
|
+
onInput: u[0] ||= async (e) => G(e),
|
|
3688
|
+
onClick: u[1] ||= async (e) => ee(e),
|
|
3689
|
+
onChange: u[2] ||= async (e) => te(e),
|
|
3690
|
+
onBlur: u[3] ||= async (e) => ne(e),
|
|
3691
|
+
onFocus: u[4] ||= async (e) => K(e),
|
|
3651
3692
|
"aria-describedby": s.ariaDescribedBy ?? L.value
|
|
3652
|
-
}, [s.variant === "floating" || s.placeholder ? (
|
|
3693
|
+
}, [s.variant === "floating" || s.placeholder ? (f(), r("option", {
|
|
3653
3694
|
key: 0,
|
|
3654
3695
|
class: "placeholder",
|
|
3655
3696
|
value: "",
|
|
3656
|
-
"data-show-empty-option":
|
|
3657
|
-
}, null, 8,
|
|
3697
|
+
"data-show-empty-option": _(k)(ie(), "showEmptyOption")
|
|
3698
|
+
}, null, 8, mr)) : n("", !0), s.options?.length ? (f(!0), r(e, { key: 1 }, m(s.options, (t, n) => (f(), r(e, { key: n }, [t.options ? (f(), r("optgroup", {
|
|
3658
3699
|
key: 0,
|
|
3659
|
-
label:
|
|
3660
|
-
}, [(
|
|
3700
|
+
label: re(t)
|
|
3701
|
+
}, [(f(!0), r(e, null, m(t.options, (e, t) => (f(), r("option", {
|
|
3661
3702
|
key: t,
|
|
3662
3703
|
value: e.value,
|
|
3663
3704
|
selected: e.selected,
|
|
3664
3705
|
disabled: e.disabled
|
|
3665
|
-
},
|
|
3706
|
+
}, g(re(e)), 9, gr))), 128))], 8, hr)) : (f(), r("option", {
|
|
3666
3707
|
key: 1,
|
|
3667
3708
|
value: t.value,
|
|
3668
3709
|
disabled: t.disabled,
|
|
3669
3710
|
selected: t.selected
|
|
3670
|
-
},
|
|
3671
|
-
s.placeholder ? (
|
|
3711
|
+
}, g(re(t)), 9, _r))], 64))), 128)) : h(l.$slots, "default", { key: 2 })], 40, pr),
|
|
3712
|
+
s.placeholder ? (f(), r("span", {
|
|
3672
3713
|
key: 0,
|
|
3673
3714
|
class: "db-select-placeholder",
|
|
3674
|
-
id:
|
|
3675
|
-
},
|
|
3676
|
-
|
|
3715
|
+
id: P.value
|
|
3716
|
+
}, g(s.placeholder), 9, vr)) : n("", !0),
|
|
3717
|
+
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
3677
3718
|
key: 1,
|
|
3678
3719
|
size: "small",
|
|
3679
3720
|
icon: s.messageIcon,
|
|
3680
|
-
id:
|
|
3721
|
+
id: D.value
|
|
3681
3722
|
}, {
|
|
3682
|
-
default:
|
|
3723
|
+
default: b(() => [a(g(s.message), 1)]),
|
|
3683
3724
|
_: 1
|
|
3684
3725
|
}, 8, ["icon", "id"])) : n("", !0),
|
|
3685
|
-
|
|
3726
|
+
U() ? (f(), t($, {
|
|
3686
3727
|
key: 2,
|
|
3687
3728
|
size: "small",
|
|
3688
3729
|
semantic: "successful",
|
|
3689
3730
|
id: j.value
|
|
3690
3731
|
}, {
|
|
3691
|
-
default:
|
|
3732
|
+
default: b(() => [a(g(s.validMessage || _("TODO: Add a validMessage")), 1)]),
|
|
3692
3733
|
_: 1
|
|
3693
3734
|
}, 8, ["id"])) : n("", !0),
|
|
3694
3735
|
o($, {
|
|
@@ -3696,13 +3737,13 @@ var b = () => {
|
|
|
3696
3737
|
semantic: "critical",
|
|
3697
3738
|
id: M.value
|
|
3698
3739
|
}, {
|
|
3699
|
-
default:
|
|
3740
|
+
default: b(() => [a(g(N.value), 1)]),
|
|
3700
3741
|
_: 1
|
|
3701
3742
|
}, 8, ["id"]),
|
|
3702
|
-
i("span",
|
|
3703
|
-
], 10,
|
|
3743
|
+
i("span", yr, g(B.value), 1)
|
|
3744
|
+
], 10, dr));
|
|
3704
3745
|
}
|
|
3705
|
-
}),
|
|
3746
|
+
}), xr = [
|
|
3706
3747
|
"id",
|
|
3707
3748
|
"data-gap",
|
|
3708
3749
|
"data-variant",
|
|
@@ -3710,7 +3751,7 @@ var b = () => {
|
|
|
3710
3751
|
"data-alignment",
|
|
3711
3752
|
"data-justify-content",
|
|
3712
3753
|
"data-wrap"
|
|
3713
|
-
],
|
|
3754
|
+
], Sr = /* @__PURE__ */ s({
|
|
3714
3755
|
name: "DBStack",
|
|
3715
3756
|
__name: "stack",
|
|
3716
3757
|
props: {
|
|
@@ -3731,38 +3772,38 @@ var b = () => {
|
|
|
3731
3772
|
gap: { default: void 0 }
|
|
3732
3773
|
},
|
|
3733
3774
|
setup(e) {
|
|
3734
|
-
let t = e, n =
|
|
3735
|
-
return (i, a) => (
|
|
3775
|
+
let t = e, n = p(null);
|
|
3776
|
+
return (i, a) => (f(), r("div", {
|
|
3736
3777
|
ref_key: "_ref",
|
|
3737
3778
|
ref: n,
|
|
3738
3779
|
id: e.id ?? e.propOverrides?.id,
|
|
3739
|
-
class: c(
|
|
3780
|
+
class: c(_(C)("db-stack", t.class)),
|
|
3740
3781
|
"data-gap": e.gap,
|
|
3741
3782
|
"data-variant": e.variant,
|
|
3742
3783
|
"data-direction": e.direction,
|
|
3743
3784
|
"data-alignment": e.alignment,
|
|
3744
3785
|
"data-justify-content": e.justifyContent,
|
|
3745
|
-
"data-wrap":
|
|
3746
|
-
}, [
|
|
3786
|
+
"data-wrap": _(k)(e.wrap, "wrap")
|
|
3787
|
+
}, [h(i.$slots, "default")], 10, xr));
|
|
3747
3788
|
}
|
|
3748
|
-
}),
|
|
3789
|
+
}), Cr = ["simple", "divider"], wr = ["row", "column"], Tr = [
|
|
3749
3790
|
"stretch",
|
|
3750
3791
|
"start",
|
|
3751
3792
|
"end",
|
|
3752
3793
|
"center"
|
|
3753
|
-
],
|
|
3794
|
+
], Er = [
|
|
3754
3795
|
"space-between",
|
|
3755
3796
|
"start",
|
|
3756
3797
|
"end",
|
|
3757
3798
|
"center"
|
|
3758
|
-
],
|
|
3799
|
+
], Dr = [
|
|
3759
3800
|
"data-visual-aid",
|
|
3760
3801
|
"data-size",
|
|
3761
3802
|
"data-hide-label",
|
|
3762
3803
|
"data-variant",
|
|
3763
3804
|
"data-hide-asterisk",
|
|
3764
3805
|
"data-custom-validity"
|
|
3765
|
-
],
|
|
3806
|
+
], Or = ["for"], kr = [
|
|
3766
3807
|
"id",
|
|
3767
3808
|
"checked",
|
|
3768
3809
|
"value",
|
|
@@ -3773,10 +3814,10 @@ var b = () => {
|
|
|
3773
3814
|
"required",
|
|
3774
3815
|
"data-aid-icon",
|
|
3775
3816
|
"data-aid-icon-trailing"
|
|
3776
|
-
],
|
|
3817
|
+
], Ar = {
|
|
3777
3818
|
"data-visually-hidden": "true",
|
|
3778
3819
|
role: "status"
|
|
3779
|
-
},
|
|
3820
|
+
}, jr = /* @__PURE__ */ s({
|
|
3780
3821
|
name: "DBSwitch",
|
|
3781
3822
|
__name: "switch",
|
|
3782
3823
|
props: {
|
|
@@ -3848,40 +3889,40 @@ var b = () => {
|
|
|
3848
3889
|
variant: { default: void 0 }
|
|
3849
3890
|
},
|
|
3850
3891
|
emits: ["update:checked"],
|
|
3851
|
-
setup(s, { emit:
|
|
3852
|
-
let
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
}),
|
|
3892
|
+
setup(s, { emit: l }) {
|
|
3893
|
+
let m = v(), x = l, S = s, w = p(void 0), T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(""), L = p(void 0), R = p(null);
|
|
3894
|
+
u(() => {
|
|
3895
|
+
ee(), B(), M.value = S.invalidMessage || "TODO: Add an invalidMessage";
|
|
3896
|
+
}), d(() => {
|
|
3856
3897
|
L.value?.abort();
|
|
3857
|
-
}),
|
|
3858
|
-
(
|
|
3898
|
+
}), y(() => [S.id, S.propOverrides?.id], () => {
|
|
3899
|
+
(S.id ?? S.propOverrides?.id) && ee();
|
|
3859
3900
|
}, {
|
|
3860
3901
|
immediate: !0,
|
|
3861
3902
|
flush: "post"
|
|
3862
|
-
}),
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3903
|
+
}), y(() => [
|
|
3904
|
+
S.validation,
|
|
3905
|
+
S.required,
|
|
3906
|
+
S.message,
|
|
3907
|
+
S.showMessage,
|
|
3908
|
+
S.validMessage,
|
|
3909
|
+
S.invalidMessage,
|
|
3910
|
+
S.checked
|
|
3870
3911
|
], () => {
|
|
3871
3912
|
B();
|
|
3872
3913
|
}, {
|
|
3873
3914
|
immediate: !0,
|
|
3874
3915
|
flush: "post"
|
|
3875
|
-
}),
|
|
3876
|
-
M.value =
|
|
3916
|
+
}), y(() => [R.value, S.invalidMessage], () => {
|
|
3917
|
+
M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage";
|
|
3877
3918
|
}, {
|
|
3878
3919
|
immediate: !0,
|
|
3879
3920
|
flush: "post"
|
|
3880
|
-
}),
|
|
3921
|
+
}), y(() => [R.value], () => {
|
|
3881
3922
|
if (R.value) {
|
|
3882
3923
|
let e = L.value;
|
|
3883
|
-
e || (e = new AbortController(), L.value = e),
|
|
3884
|
-
checked:
|
|
3924
|
+
e || (e = new AbortController(), L.value = e), Ge(R.value, {
|
|
3925
|
+
checked: S.checked,
|
|
3885
3926
|
defaultChecked: void 0
|
|
3886
3927
|
}, (e) => {
|
|
3887
3928
|
V(e, !0);
|
|
@@ -3892,51 +3933,51 @@ var b = () => {
|
|
|
3892
3933
|
flush: "post"
|
|
3893
3934
|
});
|
|
3894
3935
|
function z() {
|
|
3895
|
-
return !!(
|
|
3936
|
+
return !!(S.validMessage ?? S.validation === "valid");
|
|
3896
3937
|
}
|
|
3897
3938
|
function B() {
|
|
3898
|
-
if (!R.value?.validity?.valid ||
|
|
3899
|
-
N.value = j.value, M.value =
|
|
3900
|
-
|
|
3939
|
+
if (!R.value?.validity?.valid || S.validation === "invalid") {
|
|
3940
|
+
N.value = j.value, M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage", E() && (P.value = M.value || "TODO: Add an invalidMessage", O(() => {
|
|
3941
|
+
P.value = "";
|
|
3901
3942
|
}, 1e3));
|
|
3902
3943
|
return;
|
|
3903
3944
|
}
|
|
3904
|
-
if (z() && R.value?.validity?.valid &&
|
|
3905
|
-
N.value =
|
|
3906
|
-
|
|
3945
|
+
if (z() && R.value?.validity?.valid && S.required) {
|
|
3946
|
+
N.value = D.value, E() && (P.value = S.validMessage ?? "TODO: Add a validMessage", O(() => {
|
|
3947
|
+
P.value = "";
|
|
3907
3948
|
}, 1e3));
|
|
3908
3949
|
return;
|
|
3909
3950
|
}
|
|
3910
|
-
if (
|
|
3911
|
-
N.value =
|
|
3951
|
+
if (I(S.message, S.showMessage)) {
|
|
3952
|
+
N.value = T.value;
|
|
3912
3953
|
return;
|
|
3913
3954
|
}
|
|
3914
3955
|
N.value = void 0;
|
|
3915
3956
|
}
|
|
3916
3957
|
function V(e, t) {
|
|
3917
|
-
|
|
3958
|
+
S.onChange && S.onChange(e), B(), Q(x, e, "checked");
|
|
3918
3959
|
}
|
|
3919
3960
|
function H(e) {
|
|
3920
|
-
|
|
3921
|
-
}
|
|
3922
|
-
function ee(e) {
|
|
3923
|
-
C.onFocus && C.onFocus(e);
|
|
3961
|
+
S.onBlur && S.onBlur(e);
|
|
3924
3962
|
}
|
|
3925
3963
|
function U(e) {
|
|
3926
|
-
|
|
3964
|
+
S.onFocus && S.onFocus(e);
|
|
3927
3965
|
}
|
|
3928
|
-
function
|
|
3929
|
-
|
|
3930
|
-
|
|
3966
|
+
function W(e) {
|
|
3967
|
+
e.key === "Enter" && (e.preventDefault(), S.disabled || R.value?.click());
|
|
3968
|
+
}
|
|
3969
|
+
function ee() {
|
|
3970
|
+
let e = S.id ?? S.propOverrides?.id ?? `switch-${m}`;
|
|
3971
|
+
w.value = e, T.value = `${e}${q}`, D.value = `${e}${J}`, j.value = `${e}${se}`;
|
|
3931
3972
|
}
|
|
3932
|
-
return (l, u) => (
|
|
3933
|
-
"data-visual-aid":
|
|
3973
|
+
return (l, u) => (f(), r("div", {
|
|
3974
|
+
"data-visual-aid": _(k)(s.visualAid, "visualAid"),
|
|
3934
3975
|
"data-size": s.size,
|
|
3935
|
-
"data-hide-label":
|
|
3976
|
+
"data-hide-label": _(F)(s.showLabel),
|
|
3936
3977
|
"data-variant": s.variant,
|
|
3937
|
-
"data-hide-asterisk":
|
|
3978
|
+
"data-hide-asterisk": _(F)(s.showRequiredAsterisk),
|
|
3938
3979
|
"data-custom-validity": s.validation,
|
|
3939
|
-
class: c(
|
|
3980
|
+
class: c(_(C)("db-switch", S.class))
|
|
3940
3981
|
}, [
|
|
3941
3982
|
i("label", { for: w.value }, [
|
|
3942
3983
|
i("input", {
|
|
@@ -3945,40 +3986,40 @@ var b = () => {
|
|
|
3945
3986
|
id: w.value,
|
|
3946
3987
|
ref_key: "_ref",
|
|
3947
3988
|
ref: R,
|
|
3948
|
-
checked:
|
|
3989
|
+
checked: _(A)(s.checked, "checked"),
|
|
3949
3990
|
value: s.value,
|
|
3950
|
-
disabled:
|
|
3991
|
+
disabled: _(A)(s.disabled, "disabled"),
|
|
3951
3992
|
"aria-invalid": s.validation === "invalid" ? "true" : void 0,
|
|
3952
3993
|
"aria-describedby": N.value,
|
|
3953
3994
|
name: s.name,
|
|
3954
|
-
required:
|
|
3995
|
+
required: _(A)(s.required, "required"),
|
|
3955
3996
|
"data-aid-icon": s.iconLeading ?? s.icon,
|
|
3956
3997
|
"data-aid-icon-trailing": s.iconTrailing,
|
|
3957
3998
|
onChange: u[0] ||= async (e) => V(e),
|
|
3958
3999
|
onBlur: u[1] ||= async (e) => H(e),
|
|
3959
|
-
onFocus: u[2] ||= async (e) =>
|
|
3960
|
-
onKeydown: u[3] ||= async (e) =>
|
|
3961
|
-
}, null, 40,
|
|
3962
|
-
s.label ? (
|
|
3963
|
-
|
|
3964
|
-
], 8,
|
|
3965
|
-
|
|
4000
|
+
onFocus: u[2] ||= async (e) => U(e),
|
|
4001
|
+
onKeydown: u[3] ||= async (e) => W(e)
|
|
4002
|
+
}, null, 40, kr),
|
|
4003
|
+
s.label ? (f(), r(e, { key: 0 }, [a(g(s.label), 1)], 64)) : n("", !0),
|
|
4004
|
+
h(l.$slots, "default")
|
|
4005
|
+
], 8, Or),
|
|
4006
|
+
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
3966
4007
|
key: 0,
|
|
3967
4008
|
size: "small",
|
|
3968
4009
|
semantic: "adaptive",
|
|
3969
|
-
id:
|
|
4010
|
+
id: T.value,
|
|
3970
4011
|
icon: s.messageIcon
|
|
3971
4012
|
}, {
|
|
3972
|
-
default:
|
|
4013
|
+
default: b(() => [a(g(s.message), 1)]),
|
|
3973
4014
|
_: 1
|
|
3974
4015
|
}, 8, ["id", "icon"])) : n("", !0),
|
|
3975
|
-
z() ? (
|
|
4016
|
+
z() ? (f(), t($, {
|
|
3976
4017
|
key: 1,
|
|
3977
4018
|
size: "small",
|
|
3978
4019
|
semantic: "successful",
|
|
3979
|
-
id:
|
|
4020
|
+
id: D.value
|
|
3980
4021
|
}, {
|
|
3981
|
-
default:
|
|
4022
|
+
default: b(() => [a(g(s.validMessage ?? _("TODO: Add a validMessage")), 1)]),
|
|
3982
4023
|
_: 1
|
|
3983
4024
|
}, 8, ["id"])) : n("", !0),
|
|
3984
4025
|
o($, {
|
|
@@ -3986,26 +4027,26 @@ var b = () => {
|
|
|
3986
4027
|
semantic: "critical",
|
|
3987
4028
|
id: j.value
|
|
3988
4029
|
}, {
|
|
3989
|
-
default:
|
|
4030
|
+
default: b(() => [a(g(M.value), 1)]),
|
|
3990
4031
|
_: 1
|
|
3991
4032
|
}, 8, ["id"]),
|
|
3992
|
-
i("span",
|
|
3993
|
-
], 10,
|
|
4033
|
+
i("span", Ar, g(P.value), 1)
|
|
4034
|
+
], 10, Dr));
|
|
3994
4035
|
}
|
|
3995
|
-
}),
|
|
4036
|
+
}), Mr = [
|
|
3996
4037
|
"for",
|
|
3997
4038
|
"data-icon",
|
|
3998
4039
|
"data-icon-trailing",
|
|
3999
4040
|
"data-show-icon",
|
|
4000
4041
|
"data-show-icon-trailing",
|
|
4001
4042
|
"data-no-text"
|
|
4002
|
-
],
|
|
4043
|
+
], Nr = [
|
|
4003
4044
|
"disabled",
|
|
4004
4045
|
"aria-selected",
|
|
4005
4046
|
"checked",
|
|
4006
4047
|
"name",
|
|
4007
4048
|
"id"
|
|
4008
|
-
],
|
|
4049
|
+
], Pr = /* @__PURE__ */ s({
|
|
4009
4050
|
name: "DBTabItem",
|
|
4010
4051
|
__name: "tab-item",
|
|
4011
4052
|
props: {
|
|
@@ -4056,60 +4097,60 @@ var b = () => {
|
|
|
4056
4097
|
},
|
|
4057
4098
|
emits: ["update:checked"],
|
|
4058
4099
|
setup(t, { emit: o }) {
|
|
4059
|
-
let s = o,
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
}),
|
|
4063
|
-
x.value && w.value &&
|
|
4064
|
-
}),
|
|
4100
|
+
let s = o, l = t, m = p(!1), v = p(void 0), b = p(!1), x = p(!1), S = p(void 0), w = p(null);
|
|
4101
|
+
u(() => {
|
|
4102
|
+
S.value = T, b.value = !0;
|
|
4103
|
+
}), d(() => {
|
|
4104
|
+
x.value && w.value && S.value && (w.value.closest("[role=tablist]")?.removeEventListener("change", S.value), x.value = !1);
|
|
4105
|
+
}), y(() => [
|
|
4065
4106
|
w.value,
|
|
4066
4107
|
b.value,
|
|
4067
|
-
|
|
4108
|
+
S.value
|
|
4068
4109
|
], () => {
|
|
4069
|
-
w.value && b.value &&
|
|
4110
|
+
w.value && b.value && S.value && (b.value = !1, x.value ||= (w.value.closest("[role=tablist]")?.addEventListener("change", S.value), !0), (l.active || w.value.checked) && (m.value = !0, w.value.click()));
|
|
4070
4111
|
}, {
|
|
4071
4112
|
immediate: !0,
|
|
4072
4113
|
flush: "post"
|
|
4073
|
-
}),
|
|
4074
|
-
|
|
4114
|
+
}), y(() => [l.name], () => {
|
|
4115
|
+
l.name && (v.value = l.name);
|
|
4075
4116
|
}, {
|
|
4076
4117
|
immediate: !0,
|
|
4077
4118
|
flush: "post"
|
|
4078
4119
|
});
|
|
4079
4120
|
function T(e) {
|
|
4080
|
-
e.stopPropagation(),
|
|
4121
|
+
e.stopPropagation(), m.value = e.target === w.value;
|
|
4081
4122
|
}
|
|
4082
4123
|
function E(e) {
|
|
4083
|
-
|
|
4124
|
+
l.onChange && l.onChange(e), Q(s, e, "checked");
|
|
4084
4125
|
}
|
|
4085
|
-
return (o, s) => (
|
|
4126
|
+
return (o, s) => (f(), r("li", {
|
|
4086
4127
|
role: "none",
|
|
4087
|
-
class: c(
|
|
4128
|
+
class: c(_(C)("db-tab-item", l.class))
|
|
4088
4129
|
}, [i("label", {
|
|
4089
4130
|
for: t.id ?? t.propOverrides?.id,
|
|
4090
4131
|
"data-icon": t.iconLeading ?? t.icon,
|
|
4091
4132
|
"data-icon-trailing": t.iconTrailing,
|
|
4092
|
-
"data-show-icon":
|
|
4093
|
-
"data-show-icon-trailing":
|
|
4094
|
-
"data-no-text":
|
|
4133
|
+
"data-show-icon": _(k)(t.showIconLeading, "showIconLeading") || _(k)(t.showIcon, "showIcon"),
|
|
4134
|
+
"data-show-icon-trailing": _(k)(t.showIconTrailing, "showIconTrailing"),
|
|
4135
|
+
"data-no-text": _(k)(t.noText, "noText")
|
|
4095
4136
|
}, [
|
|
4096
4137
|
i("input", {
|
|
4097
4138
|
type: "radio",
|
|
4098
4139
|
role: "tab",
|
|
4099
|
-
disabled:
|
|
4100
|
-
"aria-selected":
|
|
4101
|
-
checked:
|
|
4140
|
+
disabled: _(A)(t.disabled, "disabled"),
|
|
4141
|
+
"aria-selected": m.value,
|
|
4142
|
+
checked: _(A)(t.checked, "checked"),
|
|
4102
4143
|
ref_key: "_ref",
|
|
4103
4144
|
ref: w,
|
|
4104
|
-
name:
|
|
4145
|
+
name: v.value,
|
|
4105
4146
|
id: t.id ?? t.propOverrides?.id,
|
|
4106
4147
|
onInput: s[0] ||= async (e) => E(e)
|
|
4107
|
-
}, null, 40,
|
|
4108
|
-
t.label ? (
|
|
4109
|
-
|
|
4110
|
-
], 8,
|
|
4148
|
+
}, null, 40, Nr),
|
|
4149
|
+
t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
|
|
4150
|
+
h(o.$slots, "default")
|
|
4151
|
+
], 8, Mr)], 2));
|
|
4111
4152
|
}
|
|
4112
|
-
}),
|
|
4153
|
+
}), Fr = ["id"], Ir = { role: "tablist" }, Lr = /* @__PURE__ */ s({
|
|
4113
4154
|
name: "DBTabList",
|
|
4114
4155
|
__name: "tab-list",
|
|
4115
4156
|
props: {
|
|
@@ -4121,15 +4162,15 @@ var b = () => {
|
|
|
4121
4162
|
propOverrides: { default: void 0 }
|
|
4122
4163
|
},
|
|
4123
4164
|
setup(e) {
|
|
4124
|
-
let t = e, n =
|
|
4125
|
-
return (a, o) => (
|
|
4165
|
+
let t = e, n = p(null);
|
|
4166
|
+
return (a, o) => (f(), r("div", {
|
|
4126
4167
|
ref_key: "_ref",
|
|
4127
4168
|
ref: n,
|
|
4128
4169
|
id: e.id ?? e.propOverrides?.id,
|
|
4129
|
-
class: c(
|
|
4130
|
-
}, [i("ul",
|
|
4170
|
+
class: c(_(C)("db-tab-list", t.class))
|
|
4171
|
+
}, [i("ul", Ir, [h(a.$slots, "default")])], 10, Fr));
|
|
4131
4172
|
}
|
|
4132
|
-
}),
|
|
4173
|
+
}), Rr = ["id"], zr = /* @__PURE__ */ s({
|
|
4133
4174
|
name: "DBTabPanel",
|
|
4134
4175
|
__name: "tab-panel",
|
|
4135
4176
|
props: {
|
|
@@ -4142,22 +4183,544 @@ var b = () => {
|
|
|
4142
4183
|
propOverrides: { default: void 0 }
|
|
4143
4184
|
},
|
|
4144
4185
|
setup(t) {
|
|
4145
|
-
let i = t, o =
|
|
4146
|
-
return
|
|
4186
|
+
let i = t, o = p(null);
|
|
4187
|
+
return u(() => {}), (s, l) => (f(), r("section", {
|
|
4147
4188
|
role: "tabpanel",
|
|
4148
4189
|
ref_key: "_ref",
|
|
4149
4190
|
ref: o,
|
|
4150
|
-
class: c(
|
|
4191
|
+
class: c(_(C)("db-tab-panel", i.class)),
|
|
4151
4192
|
id: t.id ?? t.propOverrides?.id
|
|
4152
|
-
}, [t.content ? (
|
|
4193
|
+
}, [t.content ? (f(), r(e, { key: 0 }, [a(g(t.content), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Rr));
|
|
4194
|
+
}
|
|
4195
|
+
}), Br = [
|
|
4196
|
+
"id",
|
|
4197
|
+
"data-horizontal-alignment",
|
|
4198
|
+
"data-vertical-alignment",
|
|
4199
|
+
"colSpan",
|
|
4200
|
+
"rowSpan",
|
|
4201
|
+
"headers"
|
|
4202
|
+
], Vr = /* @__PURE__ */ s({
|
|
4203
|
+
name: "DBTableDataCell",
|
|
4204
|
+
__name: "table-data-cell",
|
|
4205
|
+
props: {
|
|
4206
|
+
children: { default: void 0 },
|
|
4207
|
+
className: { default: void 0 },
|
|
4208
|
+
class: {},
|
|
4209
|
+
id: { default: void 0 },
|
|
4210
|
+
autofocus: { type: [Boolean, String] },
|
|
4211
|
+
propOverrides: {},
|
|
4212
|
+
colSpan: { default: void 0 },
|
|
4213
|
+
colspan: { default: void 0 },
|
|
4214
|
+
headers: { default: void 0 },
|
|
4215
|
+
rowSpan: { default: void 0 },
|
|
4216
|
+
rowspan: { default: void 0 },
|
|
4217
|
+
horizontalAlignment: { default: void 0 },
|
|
4218
|
+
verticalAlignment: { default: void 0 }
|
|
4219
|
+
},
|
|
4220
|
+
setup(e) {
|
|
4221
|
+
let t = e, n = p(null);
|
|
4222
|
+
return (i, a) => (f(), r("td", {
|
|
4223
|
+
ref_key: "_ref",
|
|
4224
|
+
ref: n,
|
|
4225
|
+
id: e.id,
|
|
4226
|
+
class: c(_(C)("db-table-data-cell", t.class)),
|
|
4227
|
+
"data-horizontal-alignment": e.horizontalAlignment,
|
|
4228
|
+
"data-vertical-alignment": e.verticalAlignment,
|
|
4229
|
+
colSpan: _(j)(e.colSpan, e.colspan),
|
|
4230
|
+
rowSpan: _(j)(e.rowSpan, e.rowspan),
|
|
4231
|
+
headers: e.headers
|
|
4232
|
+
}, [h(i.$slots, "default")], 10, Br));
|
|
4233
|
+
}
|
|
4234
|
+
}), Hr = [
|
|
4235
|
+
"id",
|
|
4236
|
+
"data-horizontal-alignment",
|
|
4237
|
+
"data-vertical-alignment",
|
|
4238
|
+
"data-no-text",
|
|
4239
|
+
"scope",
|
|
4240
|
+
"colSpan",
|
|
4241
|
+
"rowSpan",
|
|
4242
|
+
"headers",
|
|
4243
|
+
"abbr"
|
|
4244
|
+
], Ur = /* @__PURE__ */ s({
|
|
4245
|
+
name: "DBTableHeaderCell",
|
|
4246
|
+
__name: "table-header-cell",
|
|
4247
|
+
props: {
|
|
4248
|
+
abbr: { default: void 0 },
|
|
4249
|
+
scope: { default: void 0 },
|
|
4250
|
+
noText: {
|
|
4251
|
+
type: [Boolean, String],
|
|
4252
|
+
default: void 0
|
|
4253
|
+
},
|
|
4254
|
+
children: { default: void 0 },
|
|
4255
|
+
className: { default: void 0 },
|
|
4256
|
+
class: {},
|
|
4257
|
+
id: { default: void 0 },
|
|
4258
|
+
autofocus: { type: [Boolean, String] },
|
|
4259
|
+
propOverrides: {},
|
|
4260
|
+
colSpan: { default: void 0 },
|
|
4261
|
+
colspan: { default: void 0 },
|
|
4262
|
+
headers: { default: void 0 },
|
|
4263
|
+
rowSpan: { default: void 0 },
|
|
4264
|
+
rowspan: { default: void 0 },
|
|
4265
|
+
horizontalAlignment: { default: void 0 },
|
|
4266
|
+
verticalAlignment: { default: void 0 }
|
|
4267
|
+
},
|
|
4268
|
+
setup(e) {
|
|
4269
|
+
let t = e, n = p(null);
|
|
4270
|
+
return (i, a) => (f(), r("th", {
|
|
4271
|
+
ref_key: "_ref",
|
|
4272
|
+
ref: n,
|
|
4273
|
+
id: e.id,
|
|
4274
|
+
class: c(_(C)("db-table-header-cell", t.class)),
|
|
4275
|
+
"data-horizontal-alignment": e.horizontalAlignment,
|
|
4276
|
+
"data-vertical-alignment": e.verticalAlignment,
|
|
4277
|
+
"data-no-text": _(k)(e.noText),
|
|
4278
|
+
scope: e.scope,
|
|
4279
|
+
colSpan: _(j)(e.colSpan, e.colspan),
|
|
4280
|
+
rowSpan: _(j)(e.rowSpan, e.rowspan),
|
|
4281
|
+
headers: e.headers,
|
|
4282
|
+
abbr: e.abbr
|
|
4283
|
+
}, [h(i.$slots, "default")], 10, Hr));
|
|
4284
|
+
}
|
|
4285
|
+
}), Wr = [
|
|
4286
|
+
"id",
|
|
4287
|
+
"data-interactive",
|
|
4288
|
+
"data-sub-header-emphasis"
|
|
4289
|
+
], Gr = /* @__PURE__ */ s({
|
|
4290
|
+
name: "DBTableRow",
|
|
4291
|
+
__name: "table-row",
|
|
4292
|
+
props: {
|
|
4293
|
+
cells: { default: void 0 },
|
|
4294
|
+
subHeaderEmphasis: { default: void 0 },
|
|
4295
|
+
interactive: {
|
|
4296
|
+
type: [Boolean, String],
|
|
4297
|
+
default: void 0
|
|
4298
|
+
},
|
|
4299
|
+
children: { default: void 0 },
|
|
4300
|
+
className: { default: void 0 },
|
|
4301
|
+
class: {},
|
|
4302
|
+
id: { default: void 0 },
|
|
4303
|
+
autofocus: { type: [Boolean, String] },
|
|
4304
|
+
propOverrides: {}
|
|
4305
|
+
},
|
|
4306
|
+
setup(n) {
|
|
4307
|
+
let i = v(), o = n, s = p(null);
|
|
4308
|
+
function l(e) {
|
|
4309
|
+
if (e.headerCell) return e;
|
|
4310
|
+
}
|
|
4311
|
+
return (u, d) => (f(), r("tr", {
|
|
4312
|
+
ref_key: "_ref",
|
|
4313
|
+
ref: s,
|
|
4314
|
+
id: n.id,
|
|
4315
|
+
class: c(_(C)("db-table-row", o.class)),
|
|
4316
|
+
"data-interactive": _(k)(n.interactive),
|
|
4317
|
+
"data-sub-header-emphasis": n.subHeaderEmphasis
|
|
4318
|
+
}, [n.cells ? (f(!0), r(e, { key: 0 }, m(n.cells, (o, s) => (f(), r(e, { key: s }, [o.headerCell ? (f(), t(Ur, {
|
|
4319
|
+
key: `${o.id ?? n.id ?? _(i)}-table-row-header-cell-${s}`,
|
|
4320
|
+
id: o.id,
|
|
4321
|
+
abbr: l(o)?.abbr,
|
|
4322
|
+
scope: l(o)?.scope,
|
|
4323
|
+
noText: l(o)?.noText,
|
|
4324
|
+
className: o.className ?? o.class,
|
|
4325
|
+
horizontalAlignment: o.horizontalAlignment,
|
|
4326
|
+
verticalAlignment: o.verticalAlignment,
|
|
4327
|
+
headers: o.headers,
|
|
4328
|
+
colSpan: o.colSpan,
|
|
4329
|
+
colspan: o.colspan,
|
|
4330
|
+
rowSpan: o.rowSpan,
|
|
4331
|
+
rowspan: o.rowspan
|
|
4332
|
+
}, {
|
|
4333
|
+
default: b(() => [o.link ? (f(), t(Pn, {
|
|
4334
|
+
key: 0,
|
|
4335
|
+
content: o.link?.content,
|
|
4336
|
+
size: o.link?.size,
|
|
4337
|
+
variant: o.link?.variant,
|
|
4338
|
+
className: o.link?.className ?? o.link?.class,
|
|
4339
|
+
id: o.link?.id,
|
|
4340
|
+
autofocus: o.link?.autofocus,
|
|
4341
|
+
disabled: o.link?.disabled,
|
|
4342
|
+
href: o.link?.href,
|
|
4343
|
+
hreflang: o.link?.hreflang,
|
|
4344
|
+
target: o.link?.target,
|
|
4345
|
+
rel: o.link?.rel,
|
|
4346
|
+
referrerPolicy: o.link?.referrerPolicy,
|
|
4347
|
+
role: o.link?.role,
|
|
4348
|
+
showIcon: o.link?.showIcon,
|
|
4349
|
+
text: o.link?.text,
|
|
4350
|
+
wrap: o.link?.wrap
|
|
4351
|
+
}, {
|
|
4352
|
+
default: b(() => [a(g(o.link?.children), 1)]),
|
|
4353
|
+
_: 2
|
|
4354
|
+
}, 1032, [
|
|
4355
|
+
"content",
|
|
4356
|
+
"size",
|
|
4357
|
+
"variant",
|
|
4358
|
+
"className",
|
|
4359
|
+
"id",
|
|
4360
|
+
"autofocus",
|
|
4361
|
+
"disabled",
|
|
4362
|
+
"href",
|
|
4363
|
+
"hreflang",
|
|
4364
|
+
"target",
|
|
4365
|
+
"rel",
|
|
4366
|
+
"referrerPolicy",
|
|
4367
|
+
"role",
|
|
4368
|
+
"showIcon",
|
|
4369
|
+
"text",
|
|
4370
|
+
"wrap"
|
|
4371
|
+
])) : (f(), r(e, { key: 1 }, [a(g(o.content), 1)], 64))]),
|
|
4372
|
+
_: 2
|
|
4373
|
+
}, 1032, [
|
|
4374
|
+
"id",
|
|
4375
|
+
"abbr",
|
|
4376
|
+
"scope",
|
|
4377
|
+
"noText",
|
|
4378
|
+
"className",
|
|
4379
|
+
"horizontalAlignment",
|
|
4380
|
+
"verticalAlignment",
|
|
4381
|
+
"headers",
|
|
4382
|
+
"colSpan",
|
|
4383
|
+
"colspan",
|
|
4384
|
+
"rowSpan",
|
|
4385
|
+
"rowspan"
|
|
4386
|
+
])) : (f(), t(Vr, {
|
|
4387
|
+
key: `${o.id ?? n.id ?? _(i)}-table-row-data-cell-${s}`,
|
|
4388
|
+
id: o.id,
|
|
4389
|
+
className: o.className ?? o.class,
|
|
4390
|
+
horizontalAlignment: o.horizontalAlignment,
|
|
4391
|
+
verticalAlignment: o.verticalAlignment,
|
|
4392
|
+
headers: o.headers,
|
|
4393
|
+
colSpan: o.colSpan,
|
|
4394
|
+
colspan: o.colspan,
|
|
4395
|
+
rowSpan: o.rowSpan,
|
|
4396
|
+
rowspan: o.rowspan
|
|
4397
|
+
}, {
|
|
4398
|
+
default: b(() => [o.link ? (f(), t(Pn, {
|
|
4399
|
+
key: 0,
|
|
4400
|
+
content: o.link?.content,
|
|
4401
|
+
size: o.link?.size,
|
|
4402
|
+
variant: o.link?.variant,
|
|
4403
|
+
className: o.link?.className ?? o.link?.class,
|
|
4404
|
+
id: o.link?.id,
|
|
4405
|
+
autofocus: o.link?.autofocus,
|
|
4406
|
+
disabled: o.link?.disabled,
|
|
4407
|
+
href: o.link?.href,
|
|
4408
|
+
hreflang: o.link?.hreflang,
|
|
4409
|
+
target: o.link?.target,
|
|
4410
|
+
rel: o.link?.rel,
|
|
4411
|
+
referrerPolicy: o.link?.referrerPolicy,
|
|
4412
|
+
role: o.link?.role,
|
|
4413
|
+
showIcon: o.link?.showIcon,
|
|
4414
|
+
text: o.link?.text,
|
|
4415
|
+
wrap: o.link?.wrap
|
|
4416
|
+
}, {
|
|
4417
|
+
default: b(() => [a(g(o.link?.children), 1)]),
|
|
4418
|
+
_: 2
|
|
4419
|
+
}, 1032, [
|
|
4420
|
+
"content",
|
|
4421
|
+
"size",
|
|
4422
|
+
"variant",
|
|
4423
|
+
"className",
|
|
4424
|
+
"id",
|
|
4425
|
+
"autofocus",
|
|
4426
|
+
"disabled",
|
|
4427
|
+
"href",
|
|
4428
|
+
"hreflang",
|
|
4429
|
+
"target",
|
|
4430
|
+
"rel",
|
|
4431
|
+
"referrerPolicy",
|
|
4432
|
+
"role",
|
|
4433
|
+
"showIcon",
|
|
4434
|
+
"text",
|
|
4435
|
+
"wrap"
|
|
4436
|
+
])) : (f(), r(e, { key: 1 }, [a(g(o.content), 1)], 64))]),
|
|
4437
|
+
_: 2
|
|
4438
|
+
}, 1032, [
|
|
4439
|
+
"id",
|
|
4440
|
+
"className",
|
|
4441
|
+
"horizontalAlignment",
|
|
4442
|
+
"verticalAlignment",
|
|
4443
|
+
"headers",
|
|
4444
|
+
"colSpan",
|
|
4445
|
+
"colspan",
|
|
4446
|
+
"rowSpan",
|
|
4447
|
+
"rowspan"
|
|
4448
|
+
]))], 64))), 128)) : h(u.$slots, "default", { key: 1 })], 10, Wr));
|
|
4449
|
+
}
|
|
4450
|
+
}), Kr = ["id"], qr = /* @__PURE__ */ s({
|
|
4451
|
+
name: "DBTableBody",
|
|
4452
|
+
__name: "table-body",
|
|
4453
|
+
props: {
|
|
4454
|
+
rows: { default: void 0 },
|
|
4455
|
+
children: { default: void 0 },
|
|
4456
|
+
className: { default: void 0 },
|
|
4457
|
+
class: {},
|
|
4458
|
+
id: { default: void 0 },
|
|
4459
|
+
autofocus: { type: [Boolean, String] },
|
|
4460
|
+
propOverrides: {}
|
|
4461
|
+
},
|
|
4462
|
+
setup(n) {
|
|
4463
|
+
let i = v(), a = n, o = p(null);
|
|
4464
|
+
return (s, l) => (f(), r("tbody", {
|
|
4465
|
+
ref_key: "_ref",
|
|
4466
|
+
ref: o,
|
|
4467
|
+
id: n.id,
|
|
4468
|
+
class: c(_(C)("db-table-body", a.class))
|
|
4469
|
+
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(Gr, {
|
|
4470
|
+
key: `${e.id ?? n.id ?? _(i)}-table-body-row-${r}`,
|
|
4471
|
+
cells: e.cells,
|
|
4472
|
+
className: e.className ?? e.class,
|
|
4473
|
+
interactive: e.interactive,
|
|
4474
|
+
id: e.id
|
|
4475
|
+
}, null, 8, [
|
|
4476
|
+
"cells",
|
|
4477
|
+
"className",
|
|
4478
|
+
"interactive",
|
|
4479
|
+
"id"
|
|
4480
|
+
]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, Kr));
|
|
4481
|
+
}
|
|
4482
|
+
}), Jr = ["id"], Yr = /* @__PURE__ */ s({
|
|
4483
|
+
name: "DBTableFooter",
|
|
4484
|
+
__name: "table-footer",
|
|
4485
|
+
props: {
|
|
4486
|
+
rows: { default: void 0 },
|
|
4487
|
+
children: { default: void 0 },
|
|
4488
|
+
className: { default: void 0 },
|
|
4489
|
+
class: {},
|
|
4490
|
+
id: { default: void 0 },
|
|
4491
|
+
autofocus: { type: [Boolean, String] },
|
|
4492
|
+
propOverrides: {}
|
|
4493
|
+
},
|
|
4494
|
+
setup(n) {
|
|
4495
|
+
let i = v(), a = n, o = p(null);
|
|
4496
|
+
return (s, l) => (f(), r("tfoot", {
|
|
4497
|
+
ref_key: "_ref",
|
|
4498
|
+
ref: o,
|
|
4499
|
+
id: n.id,
|
|
4500
|
+
class: c(_(C)("db-table-footer", a.class))
|
|
4501
|
+
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(Gr, {
|
|
4502
|
+
key: `${e.id ?? n.id ?? _(i)}-table-footer-row-${r}`,
|
|
4503
|
+
cells: e.cells,
|
|
4504
|
+
className: e.className ?? e.class,
|
|
4505
|
+
interactive: e.interactive,
|
|
4506
|
+
id: e.id
|
|
4507
|
+
}, null, 8, [
|
|
4508
|
+
"cells",
|
|
4509
|
+
"className",
|
|
4510
|
+
"interactive",
|
|
4511
|
+
"id"
|
|
4512
|
+
]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, Jr));
|
|
4513
|
+
}
|
|
4514
|
+
}), Xr = ["id"], Zr = /* @__PURE__ */ s({
|
|
4515
|
+
name: "DBTableHead",
|
|
4516
|
+
__name: "table-head",
|
|
4517
|
+
props: {
|
|
4518
|
+
rows: { default: void 0 },
|
|
4519
|
+
children: { default: void 0 },
|
|
4520
|
+
className: { default: void 0 },
|
|
4521
|
+
class: {},
|
|
4522
|
+
id: { default: void 0 },
|
|
4523
|
+
autofocus: { type: [Boolean, String] },
|
|
4524
|
+
propOverrides: {}
|
|
4525
|
+
},
|
|
4526
|
+
setup(n) {
|
|
4527
|
+
let i = v(), a = n, o = p(null);
|
|
4528
|
+
function s(e) {
|
|
4529
|
+
return e?.map((e) => ({
|
|
4530
|
+
...e,
|
|
4531
|
+
headerCell: !0
|
|
4532
|
+
}));
|
|
4533
|
+
}
|
|
4534
|
+
return (l, u) => (f(), r("thead", {
|
|
4535
|
+
ref_key: "_ref",
|
|
4536
|
+
ref: o,
|
|
4537
|
+
id: n.id,
|
|
4538
|
+
class: c(_(C)("db-table-head", a.class))
|
|
4539
|
+
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(Gr, {
|
|
4540
|
+
key: `${e.id ?? n.id ?? _(i)}-table-head-row-${r}`,
|
|
4541
|
+
cells: s(e.cells),
|
|
4542
|
+
className: e.className ?? e.class,
|
|
4543
|
+
subHeaderEmphasis: e.subHeaderEmphasis,
|
|
4544
|
+
interactive: e.interactive,
|
|
4545
|
+
id: e.id
|
|
4546
|
+
}, null, 8, [
|
|
4547
|
+
"cells",
|
|
4548
|
+
"className",
|
|
4549
|
+
"subHeaderEmphasis",
|
|
4550
|
+
"interactive",
|
|
4551
|
+
"id"
|
|
4552
|
+
]))), 128)) : h(l.$slots, "default", { key: 1 })], 10, Xr));
|
|
4153
4553
|
}
|
|
4154
|
-
}),
|
|
4554
|
+
}), Qr = [
|
|
4555
|
+
"data-width",
|
|
4556
|
+
"data-size",
|
|
4557
|
+
"data-divider",
|
|
4558
|
+
"data-variant",
|
|
4559
|
+
"data-mobile-variant",
|
|
4560
|
+
"data-show-caption",
|
|
4561
|
+
"data-sticky-header"
|
|
4562
|
+
], $r = ["id"], ei = { key: 0 }, ti = /* @__PURE__ */ s({
|
|
4563
|
+
name: "DBTable",
|
|
4564
|
+
__name: "table",
|
|
4565
|
+
props: {
|
|
4566
|
+
caption: {},
|
|
4567
|
+
captionPlain: { default: void 0 },
|
|
4568
|
+
data: { default: void 0 },
|
|
4569
|
+
divider: { default: void 0 },
|
|
4570
|
+
showCaption: {
|
|
4571
|
+
type: [Boolean, String],
|
|
4572
|
+
default: void 0
|
|
4573
|
+
},
|
|
4574
|
+
size: { default: void 0 },
|
|
4575
|
+
variant: { default: void 0 },
|
|
4576
|
+
mobileVariant: { default: void 0 },
|
|
4577
|
+
stickyHeader: { default: void 0 },
|
|
4578
|
+
columnSizes: { default: void 0 },
|
|
4579
|
+
children: { default: void 0 },
|
|
4580
|
+
className: { default: void 0 },
|
|
4581
|
+
class: {},
|
|
4582
|
+
id: { default: void 0 },
|
|
4583
|
+
autofocus: { type: [Boolean, String] },
|
|
4584
|
+
propOverrides: {},
|
|
4585
|
+
width: { default: void 0 }
|
|
4586
|
+
},
|
|
4587
|
+
setup(a) {
|
|
4588
|
+
let o = a, s = p(void 0), u = p(void 0), d = p(null);
|
|
4589
|
+
y(() => [o.data], () => {
|
|
4590
|
+
o.data ? s.value = m() : s.value = void 0;
|
|
4591
|
+
}, {
|
|
4592
|
+
immediate: !0,
|
|
4593
|
+
flush: "post"
|
|
4594
|
+
}), y(() => [
|
|
4595
|
+
o.mobileVariant,
|
|
4596
|
+
d.value,
|
|
4597
|
+
s.value
|
|
4598
|
+
], () => {
|
|
4599
|
+
d.value && o.mobileVariant === "list" && O(() => {
|
|
4600
|
+
let e = d.value;
|
|
4601
|
+
if (!e) return;
|
|
4602
|
+
let t = e.querySelectorAll("thead tr th");
|
|
4603
|
+
t.length && e.querySelectorAll(":is(tbody,tfoot) tr").forEach((e) => {
|
|
4604
|
+
e.querySelectorAll(":is(td,th)").forEach((e, n) => {
|
|
4605
|
+
let r = t[n];
|
|
4606
|
+
if (r) {
|
|
4607
|
+
let t = Array.from(r.childNodes).filter((e) => e.nodeType === Node.TEXT_NODE).map((e) => e.textContent?.trim()).filter(Boolean).join(" ");
|
|
4608
|
+
t && (e.dataset.header = t);
|
|
4609
|
+
}
|
|
4610
|
+
});
|
|
4611
|
+
});
|
|
4612
|
+
}, 1);
|
|
4613
|
+
}, {
|
|
4614
|
+
immediate: !0,
|
|
4615
|
+
flush: "post"
|
|
4616
|
+
}), y(() => [o.columnSizes], () => {
|
|
4617
|
+
if (o.columnSizes) {
|
|
4618
|
+
let e = {};
|
|
4619
|
+
Object.entries(o.columnSizes).forEach(([t, n]) => {
|
|
4620
|
+
e[`--db-table-column-size-${t}`] = n;
|
|
4621
|
+
}), u.value = e;
|
|
4622
|
+
} else u.value = void 0;
|
|
4623
|
+
}, {
|
|
4624
|
+
immediate: !0,
|
|
4625
|
+
flush: "post"
|
|
4626
|
+
});
|
|
4627
|
+
function m() {
|
|
4628
|
+
try {
|
|
4629
|
+
return typeof o.data == "string" ? JSON.parse(o.data) : o.data;
|
|
4630
|
+
} catch (e) {
|
|
4631
|
+
console.error(e);
|
|
4632
|
+
}
|
|
4633
|
+
return {};
|
|
4634
|
+
}
|
|
4635
|
+
return (p, m) => (f(), r("div", {
|
|
4636
|
+
class: c(_(C)("db-table", o.class)),
|
|
4637
|
+
style: l(u.value),
|
|
4638
|
+
"data-width": a.width,
|
|
4639
|
+
"data-size": a.size,
|
|
4640
|
+
"data-divider": a.divider,
|
|
4641
|
+
"data-variant": a.variant,
|
|
4642
|
+
"data-mobile-variant": a.mobileVariant,
|
|
4643
|
+
"data-show-caption": _(k)(a.showCaption),
|
|
4644
|
+
"data-sticky-header": a.stickyHeader
|
|
4645
|
+
}, [i("table", {
|
|
4646
|
+
ref_key: "_ref",
|
|
4647
|
+
ref: d,
|
|
4648
|
+
id: a.id
|
|
4649
|
+
}, [a.captionPlain ? (f(), r("caption", ei, g(a.captionPlain), 1)) : h(p.$slots, "caption", { key: 1 }), s.value ? (f(), r(e, { key: 2 }, [
|
|
4650
|
+
s.value?.header ? (f(), t(Zr, {
|
|
4651
|
+
key: 0,
|
|
4652
|
+
rows: s.value?.header
|
|
4653
|
+
}, null, 8, ["rows"])) : n("", !0),
|
|
4654
|
+
s.value?.body ? (f(), t(qr, {
|
|
4655
|
+
key: 1,
|
|
4656
|
+
rows: s.value?.body
|
|
4657
|
+
}, null, 8, ["rows"])) : n("", !0),
|
|
4658
|
+
s.value?.footer ? (f(), t(Yr, {
|
|
4659
|
+
key: 2,
|
|
4660
|
+
rows: s.value?.footer
|
|
4661
|
+
}, null, 8, ["rows"])) : n("", !0)
|
|
4662
|
+
], 64)) : h(p.$slots, "default", { key: 3 })], 8, $r)], 14, Qr));
|
|
4663
|
+
}
|
|
4664
|
+
}), ni = ["id"], ri = /* @__PURE__ */ s({
|
|
4665
|
+
name: "DBTableCaption",
|
|
4666
|
+
__name: "table-caption",
|
|
4667
|
+
props: {
|
|
4668
|
+
children: { default: void 0 },
|
|
4669
|
+
className: { default: void 0 },
|
|
4670
|
+
class: {},
|
|
4671
|
+
id: { default: void 0 },
|
|
4672
|
+
autofocus: { type: [Boolean, String] },
|
|
4673
|
+
propOverrides: {}
|
|
4674
|
+
},
|
|
4675
|
+
setup(e) {
|
|
4676
|
+
let t = e, n = p(null);
|
|
4677
|
+
return (i, a) => (f(), r("caption", {
|
|
4678
|
+
ref_key: "_ref",
|
|
4679
|
+
ref: n,
|
|
4680
|
+
id: e.id,
|
|
4681
|
+
class: c(_(C)("db-table-caption", t.class))
|
|
4682
|
+
}, [h(i.$slots, "default")], 10, ni));
|
|
4683
|
+
}
|
|
4684
|
+
}), ii = [
|
|
4685
|
+
"row",
|
|
4686
|
+
"col",
|
|
4687
|
+
"rowgroup",
|
|
4688
|
+
"colgroup"
|
|
4689
|
+
], ai = [
|
|
4690
|
+
"none",
|
|
4691
|
+
"weak",
|
|
4692
|
+
"strong"
|
|
4693
|
+
], oi = [
|
|
4694
|
+
"x-small",
|
|
4695
|
+
"small",
|
|
4696
|
+
"medium",
|
|
4697
|
+
"large"
|
|
4698
|
+
], si = [
|
|
4699
|
+
"flat",
|
|
4700
|
+
"zebra",
|
|
4701
|
+
"spaced"
|
|
4702
|
+
], ci = [
|
|
4703
|
+
"none",
|
|
4704
|
+
"both",
|
|
4705
|
+
"horizontal",
|
|
4706
|
+
"vertical"
|
|
4707
|
+
], li = ["table", "list"], ui = [
|
|
4708
|
+
"none",
|
|
4709
|
+
"both",
|
|
4710
|
+
"horizontal",
|
|
4711
|
+
"vertical"
|
|
4712
|
+
], di = [
|
|
4713
|
+
"auto",
|
|
4714
|
+
"1fr",
|
|
4715
|
+
"min-content",
|
|
4716
|
+
"max-content"
|
|
4717
|
+
], fi = [
|
|
4155
4718
|
"id",
|
|
4156
4719
|
"data-orientation",
|
|
4157
4720
|
"data-scroll-behavior",
|
|
4158
4721
|
"data-alignment",
|
|
4159
4722
|
"data-width"
|
|
4160
|
-
],
|
|
4723
|
+
], pi = /* @__PURE__ */ s({
|
|
4161
4724
|
name: "DBTabs",
|
|
4162
4725
|
__name: "tabs",
|
|
4163
4726
|
props: {
|
|
@@ -4188,13 +4751,13 @@ var b = () => {
|
|
|
4188
4751
|
tabSelect: {}
|
|
4189
4752
|
},
|
|
4190
4753
|
setup(i) {
|
|
4191
|
-
let s =
|
|
4192
|
-
|
|
4193
|
-
x.value = `tabs-${
|
|
4194
|
-
}),
|
|
4754
|
+
let s = v(), l = i, x = p(""), S = p(!1), w = p(!1), T = p(!1), E = p(null), D = p(void 0), O = p(null);
|
|
4755
|
+
u(() => {
|
|
4756
|
+
x.value = `tabs-${l.name || s}`, S.value = !0;
|
|
4757
|
+
}), d(() => {
|
|
4195
4758
|
D.value?.disconnect(), D.value = void 0;
|
|
4196
|
-
}),
|
|
4197
|
-
if (O.value &&
|
|
4759
|
+
}), y(() => [O.value, S.value], () => {
|
|
4760
|
+
if (O.value && S.value) {
|
|
4198
4761
|
M(), N(!0);
|
|
4199
4762
|
let e = O.value.querySelector(".db-tab-list");
|
|
4200
4763
|
e && new MutationObserver((e) => {
|
|
@@ -4204,7 +4767,7 @@ var b = () => {
|
|
|
4204
4767
|
}).observe(e, {
|
|
4205
4768
|
childList: !0,
|
|
4206
4769
|
subtree: !0
|
|
4207
|
-
}),
|
|
4770
|
+
}), S.value = !1;
|
|
4208
4771
|
}
|
|
4209
4772
|
}, {
|
|
4210
4773
|
immediate: !0,
|
|
@@ -4212,7 +4775,7 @@ var b = () => {
|
|
|
4212
4775
|
});
|
|
4213
4776
|
function k() {
|
|
4214
4777
|
try {
|
|
4215
|
-
return typeof
|
|
4778
|
+
return typeof l.tabs == "string" ? JSON.parse(l.tabs) : l.tabs;
|
|
4216
4779
|
} catch (e) {
|
|
4217
4780
|
console.error(e);
|
|
4218
4781
|
}
|
|
@@ -4223,7 +4786,7 @@ var b = () => {
|
|
|
4223
4786
|
w.value = t && e.scrollLeft > 1, T.value = t && e.scrollLeft < e.scrollWidth - e.clientWidth;
|
|
4224
4787
|
}
|
|
4225
4788
|
function j(e) {
|
|
4226
|
-
let t = Number(
|
|
4789
|
+
let t = Number(l.arrowScrollDistance) || 100;
|
|
4227
4790
|
e && (t *= -1), E.value?.scrollBy({
|
|
4228
4791
|
top: 0,
|
|
4229
4792
|
left: t,
|
|
@@ -4235,7 +4798,7 @@ var b = () => {
|
|
|
4235
4798
|
let e = O.value.querySelector(".db-tab-list");
|
|
4236
4799
|
if (e) {
|
|
4237
4800
|
let t = e.querySelector("[role=\"tablist\"]");
|
|
4238
|
-
if (t && (t.setAttribute("aria-orientation",
|
|
4801
|
+
if (t && (t.setAttribute("aria-orientation", l.orientation || "horizontal"), l.behavior === "arrows" && (E.value = t, A(t), t.addEventListener("scroll", () => {
|
|
4239
4802
|
A(t);
|
|
4240
4803
|
}), !D.value))) {
|
|
4241
4804
|
let e = new ResizeObserver(() => {
|
|
@@ -4257,7 +4820,7 @@ var b = () => {
|
|
|
4257
4820
|
a.setAttribute("for", e), o.id = e, o.setAttribute("name", x.value), n.length > i && o.setAttribute("aria-controls", `${x.value}-tab-panel-${i}`);
|
|
4258
4821
|
}
|
|
4259
4822
|
if (e) {
|
|
4260
|
-
let e = !
|
|
4823
|
+
let e = !l.initialSelectedMode || l.initialSelectedMode === "auto", t = l.initialSelectedIndex == null && i === 0 || Number(l.initialSelectedIndex) === i;
|
|
4261
4824
|
e && t && o.click();
|
|
4262
4825
|
}
|
|
4263
4826
|
}
|
|
@@ -4278,25 +4841,25 @@ var b = () => {
|
|
|
4278
4841
|
let t = n.parentElement;
|
|
4279
4842
|
if (t) {
|
|
4280
4843
|
let r = Array.from(t.children).indexOf(n);
|
|
4281
|
-
|
|
4844
|
+
l.onIndexChange && l.onIndexChange(r), l.onTabSelect && l.onTabSelect(e);
|
|
4282
4845
|
}
|
|
4283
4846
|
}
|
|
4284
4847
|
}
|
|
4285
4848
|
}
|
|
4286
4849
|
}
|
|
4287
|
-
return (s,
|
|
4850
|
+
return (s, u) => (f(), r("div", {
|
|
4288
4851
|
ref_key: "_ref",
|
|
4289
4852
|
ref: O,
|
|
4290
4853
|
id: i.id ?? i.propOverrides?.id,
|
|
4291
|
-
class: c(
|
|
4854
|
+
class: c(_(C)("db-tabs", l.class)),
|
|
4292
4855
|
"data-orientation": i.orientation,
|
|
4293
4856
|
"data-scroll-behavior": i.behavior,
|
|
4294
4857
|
"data-alignment": i.alignment ?? "start",
|
|
4295
4858
|
"data-width": i.width ?? "auto",
|
|
4296
|
-
onInput:
|
|
4297
|
-
onChange:
|
|
4859
|
+
onInput: u[0] ||= async (e) => P(e),
|
|
4860
|
+
onChange: u[1] ||= async (e) => P(e)
|
|
4298
4861
|
}, [
|
|
4299
|
-
w.value ? (
|
|
4862
|
+
w.value ? (f(), t(Le, {
|
|
4300
4863
|
key: 0,
|
|
4301
4864
|
class: "tabs-scroll-left",
|
|
4302
4865
|
variant: "ghost",
|
|
@@ -4305,11 +4868,11 @@ var b = () => {
|
|
|
4305
4868
|
noText: !0,
|
|
4306
4869
|
onClick: (e) => j(!0)
|
|
4307
4870
|
}, {
|
|
4308
|
-
default:
|
|
4871
|
+
default: b(() => [...u[2] ||= [a(" Scroll left ", -1)]]),
|
|
4309
4872
|
_: 1
|
|
4310
4873
|
}, 8, ["onClick"])) : n("", !0),
|
|
4311
|
-
i.tabs ? (
|
|
4312
|
-
default:
|
|
4874
|
+
i.tabs ? (f(), r(e, { key: 1 }, [o(Lr, null, {
|
|
4875
|
+
default: b(() => [(f(!0), r(e, null, m(k(), (e, n) => (f(), t(Pr, {
|
|
4313
4876
|
key: i.name + "tab-item" + n,
|
|
4314
4877
|
active: e.active,
|
|
4315
4878
|
label: e.label,
|
|
@@ -4324,14 +4887,14 @@ var b = () => {
|
|
|
4324
4887
|
"noText"
|
|
4325
4888
|
]))), 128))]),
|
|
4326
4889
|
_: 1
|
|
4327
|
-
}), (
|
|
4890
|
+
}), (f(!0), r(e, null, m(k(), (e, n) => (f(), t(zr, {
|
|
4328
4891
|
key: i.name + "tab-panel" + n,
|
|
4329
4892
|
content: e.content
|
|
4330
4893
|
}, {
|
|
4331
|
-
default:
|
|
4894
|
+
default: b(() => [a(g(e.children), 1)]),
|
|
4332
4895
|
_: 2
|
|
4333
4896
|
}, 1032, ["content"]))), 128))], 64)) : n("", !0),
|
|
4334
|
-
T.value ? (
|
|
4897
|
+
T.value ? (f(), t(Le, {
|
|
4335
4898
|
key: 2,
|
|
4336
4899
|
class: "tabs-scroll-right",
|
|
4337
4900
|
variant: "ghost",
|
|
@@ -4340,17 +4903,17 @@ var b = () => {
|
|
|
4340
4903
|
noText: !0,
|
|
4341
4904
|
onClick: (e) => j()
|
|
4342
4905
|
}, {
|
|
4343
|
-
default:
|
|
4906
|
+
default: b(() => [...u[3] ||= [a(" Scroll right ", -1)]]),
|
|
4344
4907
|
_: 1
|
|
4345
4908
|
}, 8, ["onClick"])) : n("", !0),
|
|
4346
|
-
|
|
4347
|
-
], 42,
|
|
4909
|
+
h(s.$slots, "default")
|
|
4910
|
+
], 42, fi));
|
|
4348
4911
|
}
|
|
4349
|
-
}),
|
|
4912
|
+
}), mi = ["scrollbar", "arrows"], hi = ["auto", "manually"], gi = ["static", "removable"], _i = [
|
|
4350
4913
|
"data-variant",
|
|
4351
4914
|
"data-hide-asterisk",
|
|
4352
4915
|
"data-hide-label"
|
|
4353
|
-
],
|
|
4916
|
+
], vi = ["for"], yi = [
|
|
4354
4917
|
"aria-invalid",
|
|
4355
4918
|
"data-custom-validity",
|
|
4356
4919
|
"data-field-sizing",
|
|
@@ -4372,10 +4935,10 @@ var b = () => {
|
|
|
4372
4935
|
"placeholder",
|
|
4373
4936
|
"rows",
|
|
4374
4937
|
"cols"
|
|
4375
|
-
],
|
|
4938
|
+
], bi = {
|
|
4376
4939
|
"data-visually-hidden": "true",
|
|
4377
4940
|
role: "status"
|
|
4378
|
-
},
|
|
4941
|
+
}, xi = /* @__PURE__ */ s({
|
|
4379
4942
|
name: "DBTextarea",
|
|
4380
4943
|
__name: "textarea",
|
|
4381
4944
|
props: {
|
|
@@ -4469,39 +5032,39 @@ var b = () => {
|
|
|
4469
5032
|
},
|
|
4470
5033
|
emits: ["update:value"],
|
|
4471
5034
|
setup(e, { emit: s }) {
|
|
4472
|
-
let
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
}),
|
|
4476
|
-
|
|
4477
|
-
}),
|
|
4478
|
-
(
|
|
5035
|
+
let l = v(), m = s, h = e, x = p(void 0), S = p(void 0), w = p(void 0), T = p(void 0), D = p(void 0), k = p(void 0), M = p(""), N = p(""), P = p(void 0), L = p(null);
|
|
5036
|
+
u(() => {
|
|
5037
|
+
W(), D.value = h.invalidMessage || "TODO: Add an invalidMessage";
|
|
5038
|
+
}), d(() => {
|
|
5039
|
+
P.value?.abort();
|
|
5040
|
+
}), y(() => [h.id, h.propOverrides?.id], () => {
|
|
5041
|
+
(h.id ?? h.propOverrides?.id) && W();
|
|
4479
5042
|
}, {
|
|
4480
5043
|
immediate: !0,
|
|
4481
5044
|
flush: "post"
|
|
4482
|
-
}),
|
|
4483
|
-
|
|
5045
|
+
}), y(() => [L.value, h.invalidMessage], () => {
|
|
5046
|
+
D.value = h.invalidMessage || L.value?.validationMessage || "TODO: Add an invalidMessage";
|
|
4484
5047
|
}, {
|
|
4485
5048
|
immediate: !0,
|
|
4486
5049
|
flush: "post"
|
|
4487
|
-
}),
|
|
5050
|
+
}), y(() => [x.value], () => {
|
|
4488
5051
|
if (x.value) {
|
|
4489
|
-
let e = x.value +
|
|
4490
|
-
|
|
5052
|
+
let e = x.value + q;
|
|
5053
|
+
S.value = e, w.value = x.value + J, T.value = x.value + se, I(h.message, h.showMessage) && (k.value = e), z();
|
|
4491
5054
|
}
|
|
4492
5055
|
}, {
|
|
4493
5056
|
immediate: !0,
|
|
4494
5057
|
flush: "post"
|
|
4495
|
-
}),
|
|
4496
|
-
M.value =
|
|
5058
|
+
}), y(() => [h.value], () => {
|
|
5059
|
+
M.value = h.value;
|
|
4497
5060
|
}, {
|
|
4498
5061
|
immediate: !0,
|
|
4499
5062
|
flush: "post"
|
|
4500
|
-
}),
|
|
5063
|
+
}), y(() => [L.value], () => {
|
|
4501
5064
|
if (L.value) {
|
|
4502
|
-
let e =
|
|
4503
|
-
e || (e = new AbortController(),
|
|
4504
|
-
value:
|
|
5065
|
+
let e = P.value;
|
|
5066
|
+
e || (e = new AbortController(), P.value = e), Ke(L.value, {
|
|
5067
|
+
value: h.value,
|
|
4505
5068
|
defaultValue: void 0
|
|
4506
5069
|
}, (e) => {
|
|
4507
5070
|
V(e, !0), B(e, !0);
|
|
@@ -4512,34 +5075,34 @@ var b = () => {
|
|
|
4512
5075
|
flush: "post"
|
|
4513
5076
|
});
|
|
4514
5077
|
function R() {
|
|
4515
|
-
return !!(
|
|
5078
|
+
return !!(h.validMessage ?? h.validation === "valid");
|
|
4516
5079
|
}
|
|
4517
5080
|
function z() {
|
|
4518
|
-
!L.value?.validity.valid ||
|
|
5081
|
+
!L.value?.validity.valid || h.validation === "invalid" ? (k.value = T.value, D.value = h.invalidMessage || L.value?.validationMessage || "TODO: Add an invalidMessage", E() && (N.value = D.value, O(() => N.value = "", 1e3))) : R() && L.value?.validity.valid && (h.required || h.minLength || h.maxLength) ? (k.value = w.value, E() && (N.value = h.validMessage ?? "TODO: Add a validMessage", O(() => N.value = "", 1e3))) : I(h.message, h.showMessage) ? k.value = S.value : k.value = void 0;
|
|
4519
5082
|
}
|
|
4520
5083
|
function B(e, t) {
|
|
4521
|
-
|
|
5084
|
+
h.input && h.input(e), M.value = e.target.value, h.onInput && h.onInput(e), Q(m, e), z();
|
|
4522
5085
|
}
|
|
4523
5086
|
function V(e, t) {
|
|
4524
|
-
|
|
5087
|
+
h.onChange && h.onChange(e), Q(m, e), z();
|
|
4525
5088
|
}
|
|
4526
5089
|
function H(e) {
|
|
4527
|
-
|
|
5090
|
+
h.onBlur && h.onBlur(e);
|
|
4528
5091
|
}
|
|
4529
|
-
function
|
|
4530
|
-
|
|
5092
|
+
function U(e) {
|
|
5093
|
+
h.onFocus && h.onFocus(e);
|
|
4531
5094
|
}
|
|
4532
|
-
function
|
|
4533
|
-
let e =
|
|
4534
|
-
x.value = e,
|
|
5095
|
+
function W() {
|
|
5096
|
+
let e = h.id ?? h.propOverrides?.id ?? `textarea-${l}`;
|
|
5097
|
+
x.value = e, S.value = e + q, w.value = e + J, T.value = e + se;
|
|
4535
5098
|
}
|
|
4536
|
-
return (s, l) => (
|
|
4537
|
-
class: c(
|
|
5099
|
+
return (s, l) => (f(), r("div", {
|
|
5100
|
+
class: c(_(C)("db-textarea", h.class)),
|
|
4538
5101
|
"data-variant": e.variant,
|
|
4539
|
-
"data-hide-asterisk":
|
|
4540
|
-
"data-hide-label":
|
|
5102
|
+
"data-hide-asterisk": _(F)(e.showRequiredAsterisk),
|
|
5103
|
+
"data-hide-label": _(F)(e.showLabel)
|
|
4541
5104
|
}, [
|
|
4542
|
-
i("label", { for: x.value },
|
|
5105
|
+
i("label", { for: x.value }, g(e.label ?? _("LABEL SHOULD BE SET")), 9, vi),
|
|
4543
5106
|
i("textarea", {
|
|
4544
5107
|
"aria-invalid": e.validation === "invalid",
|
|
4545
5108
|
"data-custom-validity": e.validation,
|
|
@@ -4548,13 +5111,13 @@ var b = () => {
|
|
|
4548
5111
|
ref: L,
|
|
4549
5112
|
id: x.value,
|
|
4550
5113
|
"data-resize": e.resize,
|
|
4551
|
-
"data-hide-resizer":
|
|
4552
|
-
disabled:
|
|
4553
|
-
required:
|
|
4554
|
-
readOnly:
|
|
5114
|
+
"data-hide-resizer": _(F)(e.showResizer ?? !0),
|
|
5115
|
+
disabled: _(A)(e.disabled, "disabled"),
|
|
5116
|
+
required: _(A)(e.required, "required"),
|
|
5117
|
+
readOnly: _(A)(e.readOnly, "readOnly") || _(A)(e.readonly, "readonly") || void 0,
|
|
4555
5118
|
form: e.form,
|
|
4556
|
-
maxLength:
|
|
4557
|
-
minLength:
|
|
5119
|
+
maxLength: _(j)(e.maxLength, e.maxlength),
|
|
5120
|
+
minLength: _(j)(e.minLength, e.minlength),
|
|
4558
5121
|
name: e.name,
|
|
4559
5122
|
wrap: e.wrap,
|
|
4560
5123
|
spellcheck: e.spellCheck,
|
|
@@ -4562,83 +5125,83 @@ var b = () => {
|
|
|
4562
5125
|
onInput: l[0] ||= async (e) => B(e),
|
|
4563
5126
|
onChange: l[1] ||= async (e) => V(e),
|
|
4564
5127
|
onBlur: l[2] ||= async (e) => H(e),
|
|
4565
|
-
onFocus: l[3] ||= async (e) =>
|
|
5128
|
+
onFocus: l[3] ||= async (e) => U(e),
|
|
4566
5129
|
value: e.value ?? M.value ?? "",
|
|
4567
|
-
"aria-describedby": e.ariaDescribedBy ??
|
|
4568
|
-
placeholder: e.placeholder ??
|
|
4569
|
-
rows:
|
|
4570
|
-
cols:
|
|
4571
|
-
},
|
|
4572
|
-
|
|
5130
|
+
"aria-describedby": e.ariaDescribedBy ?? k.value,
|
|
5131
|
+
placeholder: e.placeholder ?? _(" "),
|
|
5132
|
+
rows: _(j)(e.rows, _(4)),
|
|
5133
|
+
cols: _(j)(e.cols)
|
|
5134
|
+
}, g(e.value), 41, yi),
|
|
5135
|
+
_(I)(e.message, e.showMessage) ? (f(), t($, {
|
|
4573
5136
|
key: 0,
|
|
4574
5137
|
size: "small",
|
|
4575
5138
|
icon: e.messageIcon,
|
|
4576
|
-
id:
|
|
5139
|
+
id: S.value
|
|
4577
5140
|
}, {
|
|
4578
|
-
default:
|
|
5141
|
+
default: b(() => [a(g(e.message), 1)]),
|
|
4579
5142
|
_: 1
|
|
4580
5143
|
}, 8, ["icon", "id"])) : n("", !0),
|
|
4581
|
-
R() ? (
|
|
5144
|
+
R() ? (f(), t($, {
|
|
4582
5145
|
key: 1,
|
|
4583
5146
|
size: "small",
|
|
4584
5147
|
semantic: "successful",
|
|
4585
5148
|
id: w.value
|
|
4586
5149
|
}, {
|
|
4587
|
-
default:
|
|
5150
|
+
default: b(() => [a(g(e.validMessage || _("TODO: Add a validMessage")), 1)]),
|
|
4588
5151
|
_: 1
|
|
4589
5152
|
}, 8, ["id"])) : n("", !0),
|
|
4590
5153
|
o($, {
|
|
4591
5154
|
size: "small",
|
|
4592
5155
|
semantic: "critical",
|
|
4593
|
-
id:
|
|
5156
|
+
id: T.value
|
|
4594
5157
|
}, {
|
|
4595
|
-
default:
|
|
5158
|
+
default: b(() => [a(g(D.value), 1)]),
|
|
4596
5159
|
_: 1
|
|
4597
5160
|
}, 8, ["id"]),
|
|
4598
|
-
i("span",
|
|
4599
|
-
], 10,
|
|
5161
|
+
i("span", bi, g(N.value), 1)
|
|
5162
|
+
], 10, _i));
|
|
4600
5163
|
}
|
|
4601
|
-
}),
|
|
5164
|
+
}), Si = [
|
|
4602
5165
|
"none",
|
|
4603
5166
|
"both",
|
|
4604
5167
|
"horizontal",
|
|
4605
5168
|
"vertical"
|
|
4606
|
-
],
|
|
5169
|
+
], Ci = [
|
|
4607
5170
|
"hard",
|
|
4608
5171
|
"soft",
|
|
4609
5172
|
"off"
|
|
4610
|
-
],
|
|
5173
|
+
], wi = ["description", "label"], Ti = [
|
|
4611
5174
|
"adaptive",
|
|
4612
5175
|
"neutral",
|
|
4613
5176
|
"critical",
|
|
4614
5177
|
"informational",
|
|
4615
5178
|
"warning",
|
|
4616
5179
|
"successful"
|
|
4617
|
-
],
|
|
5180
|
+
], Ei = [
|
|
4618
5181
|
"medium",
|
|
4619
5182
|
"small",
|
|
4620
5183
|
"large",
|
|
4621
5184
|
"none"
|
|
4622
|
-
],
|
|
5185
|
+
], Di = [
|
|
4623
5186
|
"medium",
|
|
4624
5187
|
"small",
|
|
4625
5188
|
"large",
|
|
4626
5189
|
"none"
|
|
4627
|
-
],
|
|
5190
|
+
], Oi = [
|
|
4628
5191
|
"left",
|
|
4629
5192
|
"right",
|
|
4630
5193
|
"left-start",
|
|
4631
5194
|
"left-end",
|
|
4632
5195
|
"right-start",
|
|
4633
5196
|
"right-end"
|
|
4634
|
-
],
|
|
5197
|
+
], ki = [
|
|
4635
5198
|
"top",
|
|
4636
5199
|
"bottom",
|
|
4637
5200
|
"top-start",
|
|
4638
5201
|
"top-end",
|
|
4639
5202
|
"bottom-start",
|
|
4640
5203
|
"bottom-end"
|
|
4641
|
-
],
|
|
5204
|
+
], Ai = [...Oi, ...ki], ji = [
|
|
4642
5205
|
"none",
|
|
4643
5206
|
"3x-large",
|
|
4644
5207
|
"2x-large",
|
|
@@ -4649,25 +5212,25 @@ var b = () => {
|
|
|
4649
5212
|
"x-small",
|
|
4650
5213
|
"2x-small",
|
|
4651
5214
|
"3x-small"
|
|
4652
|
-
],
|
|
5215
|
+
], Mi = ["horizontal", "vertical"], Ni = ["full", "auto"], Pi = [
|
|
4653
5216
|
"full",
|
|
4654
5217
|
"medium",
|
|
4655
5218
|
"large",
|
|
4656
5219
|
"small"
|
|
4657
|
-
],
|
|
5220
|
+
], Fi = [
|
|
4658
5221
|
"none",
|
|
4659
5222
|
"slow",
|
|
4660
5223
|
"fast"
|
|
4661
|
-
],
|
|
5224
|
+
], Ii = ["auto", "fixed"], Li = ["small", "medium"], Ri = ["weak", "strong"], zi = [
|
|
4662
5225
|
"invalid",
|
|
4663
5226
|
"valid",
|
|
4664
5227
|
"no-validation"
|
|
4665
|
-
],
|
|
5228
|
+
], Bi = ["fixed", "content"], Vi = ["above", "floating"], Hi = ["leading", "trailing"], Ui = /* @__PURE__ */ "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".split("."), Wi = [
|
|
4666
5229
|
"_self",
|
|
4667
5230
|
"_blank",
|
|
4668
5231
|
"_parent",
|
|
4669
5232
|
"_top"
|
|
4670
|
-
],
|
|
5233
|
+
], Gi = [
|
|
4671
5234
|
"no-referrer",
|
|
4672
5235
|
"no-referrer-when-downgrade",
|
|
4673
5236
|
"origin",
|
|
@@ -4676,6 +5239,10 @@ var b = () => {
|
|
|
4676
5239
|
"strict-origin",
|
|
4677
5240
|
"strict-origin-when-cross-origin",
|
|
4678
5241
|
"unsafe-url"
|
|
4679
|
-
],
|
|
5242
|
+
], Ki = [
|
|
5243
|
+
"start",
|
|
5244
|
+
"center",
|
|
5245
|
+
"end"
|
|
5246
|
+
];
|
|
4680
5247
|
//#endregion
|
|
4681
|
-
export {
|
|
5248
|
+
export { te as AccordionBehaviorList, G as AccordionVariantList, Ki as AlignmentList, Ui as AutoCompleteList, Ne as BadgePlacementList, ze as ButtonTypeList, Re as ButtonVariantList, Z as COLOR, Se as COLORS, Ce as COLORS_SIMPLE, ye as COLOR_CONST, X as COLOR_SIMPLE, He as CardBehaviorList, Ue as CardElevationLevelList, qt as CustomSelectDropdownWidthList, Xt as CustomSelectListItemTypeList, ee as DBAccordion, U as DBAccordionItem, Me as DBBadge, Fe as DBBrand, Le as DBButton, Ve as DBCard, Qe as DBCheckbox, et as DBCustomButton, Kt as DBCustomSelect, ft as DBCustomSelectDropdown, Yt as DBCustomSelectFormField, yt as DBCustomSelectList, _t as DBCustomSelectListItem, $t as DBDivider, cn as DBDrawer, On as DBHeader, An as DBIcon, $ as DBInfotext, Et as DBInput, Pn as DBLink, zn as DBNavigation, Wn as DBNavigationItem, Yn as DBNotification, er as DBPage, ar as DBPopover, cr as DBRadio, ur as DBSection, br as DBSelect, Sr as DBStack, jr as DBSwitch, Pr as DBTabItem, Lr as DBTabList, zr as DBTabPanel, ti as DBTable, qr as DBTableBody, ri as DBTableCaption, di as DBTableColumnsSizeList, Vr as DBTableDataCell, ci as DBTableDividerList, Yr as DBTableFooter, Zr as DBTableHead, Ur as DBTableHeaderCell, ii as DBTableHeaderCellScopeList, li as DBTableMobileVariantList, Gr as DBTableRow, oi as DBTableRowSizeList, ai as DBTableRowSubHeaderEmphasisList, ui as DBTableStickyHeaderList, si as DBTableVariantList, pi as DBTabs, At as DBTag, xi as DBTextarea, Ot as DBTooltip, ke as DB_UX_LOCAL_STORAGE_FRAMEWORK, Ae as DB_UX_LOCAL_STORAGE_MODE, fe as DEFAULT_BACK, me as DEFAULT_BURGER_MENU, _e as DEFAULT_CLOSE_BUTTON, le as DEFAULT_DATALIST_ID_SUFFIX, he as DEFAULT_ICON, ne as DEFAULT_ID, ue as DEFAULT_INVALID_MESSAGE, se as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, K as DEFAULT_LABEL, ae as DEFAULT_LABEL_ID_SUFFIX, ie as DEFAULT_MESSAGE, q as DEFAULT_MESSAGE_ID_SUFFIX, re as DEFAULT_PLACEHOLDER, ce as DEFAULT_PLACEHOLDER_ID_SUFFIX, de as DEFAULT_REMOVE, ge as DEFAULT_ROWS, pe as DEFAULT_SELECTED, oe as DEFAULT_SELECT_ID_SUFFIX, Y as DEFAULT_VALID_MESSAGE, J as DEFAULT_VALID_MESSAGE_ID_SUFFIX, Ee as DEFAULT_VIEWPORT, xe as DENSITIES, be as DENSITY, ve as DENSITY_CONST, De as DESKTOP_VIEWPORT, en as DividerMarginList, tn as DividerVariantList, tt as DocumentClickListener, nt as DocumentScrollListener, ln as DrawerBackdropList, un as DrawerDirectionList, fn as DrawerPositionList, dn as DrawerVariantList, Ri as EmphasisList, Bi as FieldSizingList, ji as GapSpacingList, jn as IconWeightList, Mn as InputTypeList, Hi as LabelVariantHorizontalList, Vi as LabelVariantList, Ln as LinkContentList, Gi as LinkReferrerPolicyList, In as LinkSizeList, Wi as LinkTargetList, Fn as LinkVariantList, Di as MarginList, Pi as MaxWidthList, mn as NavigationItemSafeTriangle, Qn as NotificationAriaLiveList, Zn as NotificationLinkVariantList, Xn as NotificationVariantList, Mi as OrientationList, nr as PageDocumentOverflowList, tr as PageVariantList, Oi as PlacementHorizontalList, Ai as PlacementList, ki as PlacementVerticalList, Fi as PopoverDelayList, Ii as PopoverWidthList, we as SEMANTIC, Te as SEMANTICS, Zt as SelectedTypeList, Ti as SemanticList, Li as SizeList, Ei as SpacingList, Tr as StackAlignmentList, wr as StackDirectionList, Er as StackJustifyContentList, Cr as StackVariantList, Oe as TESTING_VIEWPORTS, mi as TabsBehaviorList, hi as TabsInitialSelectedModeList, gi as TagBehaviorList, Si as TextareaResizeList, Ci as TextareaWrapList, wi as TooltipVariantList, zi as ValidationList, Ni as WidthList, S as addAttributeToChildren, C as cls, O as delay, A as getBoolean, k as getBooleanAsString, ot as getFloatingProps, F as getHideProp, N as getInputValue, B as getNotificationRole, j as getNumber, R as getOptionKey, L as getSearchInput, M as getStep, it as handleDataOutside, at as handleFixedDropdown, ut as handleFixedPopover, E as hasVoiceOver, w as isArrayOfStrings, pn as isEventTargetNavigationItem, D as isIOSSafari, z as isKeyboardEvent, I as stringPropVisible, x as uuid };
|