@db-ux/v-core-components 1.1.1 → 2.0.0-0-custom-select-16b8cce
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -1
- package/dist/components/badge/badge.vue.d.ts +1 -1
- package/dist/components/brand/brand.vue.d.ts +1 -1
- package/dist/components/button/button.vue.d.ts +3 -3
- package/dist/components/card/card.vue.d.ts +1 -1
- package/dist/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/components/custom-select/custom-select.vue.d.ts +60 -0
- package/dist/components/custom-select/index.d.ts +1 -0
- package/dist/components/custom-select/model.d.ts +173 -0
- package/dist/components/custom-select-dropdown/custom-select-dropdown.vue.d.ts +15 -0
- package/dist/components/custom-select-dropdown/index.d.ts +1 -0
- package/dist/components/custom-select-dropdown/model.d.ts +15 -0
- package/dist/components/custom-select-form-field/custom-select-form-field.vue.d.ts +13 -0
- package/dist/components/custom-select-form-field/index.d.ts +1 -0
- package/dist/components/custom-select-form-field/model.d.ts +5 -0
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +16 -0
- package/dist/components/custom-select-list/index.d.ts +1 -0
- package/dist/components/custom-select-list/model.d.ts +8 -0
- package/dist/components/custom-select-list-item/custom-select-list-item.vue.d.ts +31 -0
- package/dist/components/custom-select-list-item/index.d.ts +1 -0
- package/dist/components/custom-select-list-item/model.d.ts +29 -0
- package/dist/components/divider/divider.vue.d.ts +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +2 -2
- package/dist/components/icon/icon.vue.d.ts +1 -1
- package/dist/components/infotext/infotext.vue.d.ts +1 -1
- package/dist/components/input/input.vue.d.ts +5 -4
- package/dist/components/link/link.vue.d.ts +2 -2
- package/dist/components/navigation-item/navigation-item.vue.d.ts +2 -2
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/page/model.d.ts +4 -0
- package/dist/components/page/page.vue.d.ts +1 -0
- package/dist/components/popover/popover.vue.d.ts +2 -2
- package/dist/components/radio/radio.vue.d.ts +1 -1
- package/dist/components/section/section.vue.d.ts +1 -1
- package/dist/components/select/model.d.ts +3 -3
- package/dist/components/select/select.vue.d.ts +3 -2
- package/dist/components/switch/switch.vue.d.ts +1 -1
- package/dist/components/tab-item/tab-item.vue.d.ts +1 -1
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/components/tag/model.d.ts +3 -3
- package/dist/components/tag/tag.vue.d.ts +2 -2
- package/dist/components/textarea/textarea.vue.d.ts +3 -3
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/db-ux.es.js +2042 -1240
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/shared/constants.d.ts +5 -0
- package/dist/shared/model.d.ts +36 -19
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/react.d.ts +4 -4
- package/package.json +5 -5
package/dist/db-ux.es.js
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
const
|
|
6
|
-
var
|
|
1
|
+
var sa = Object.defineProperty;
|
|
2
|
+
var ua = (i, t, l) => t in i ? sa(i, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[t] = l;
|
|
3
|
+
var pe = (i, t, l) => ua(i, typeof t != "symbol" ? t + "" : t, l);
|
|
4
|
+
import { defineComponent as M, ref as n, createElementBlock as g, openBlock as m, unref as c, normalizeClass as F, renderSlot as L, Fragment as G, createTextVNode as $, toDisplayString as w, createCommentVNode as R, createElementVNode as I, createBlock as x, withCtx as V, onMounted as W, watch as A, createVNode as j, renderList as ce, onUnmounted as qe } from "vue";
|
|
5
|
+
const Y = () => {
|
|
6
|
+
var i, t;
|
|
7
7
|
if (typeof window < "u") {
|
|
8
|
-
if ((
|
|
8
|
+
if ((i = window.crypto) != null && i.randomUUID)
|
|
9
9
|
return window.crypto.randomUUID();
|
|
10
|
-
if ((
|
|
10
|
+
if ((t = window.crypto) != null && t.getRandomValues)
|
|
11
11
|
return window.crypto.getRandomValues(new Uint32Array(3)).join("-");
|
|
12
12
|
}
|
|
13
13
|
return Math.random().toString().substring(2);
|
|
14
|
-
},
|
|
15
|
-
const
|
|
16
|
-
Object.values(
|
|
17
|
-
e.setAttribute(
|
|
14
|
+
}, Ve = (i, t) => {
|
|
15
|
+
const l = i.children;
|
|
16
|
+
Object.values(l).forEach((e) => {
|
|
17
|
+
e.setAttribute(t.key, t.value), e.children.length > 0 && Ve(e, t);
|
|
18
18
|
});
|
|
19
|
-
},
|
|
20
|
-
let
|
|
21
|
-
for (const
|
|
22
|
-
if (
|
|
23
|
-
if (typeof
|
|
24
|
-
|
|
19
|
+
}, D = (...i) => {
|
|
20
|
+
let t = "";
|
|
21
|
+
for (const l of i)
|
|
22
|
+
if (l)
|
|
23
|
+
if (typeof l == "string")
|
|
24
|
+
t += `${l} `;
|
|
25
25
|
else
|
|
26
|
-
for (const e in
|
|
27
|
-
|
|
28
|
-
return
|
|
29
|
-
},
|
|
26
|
+
for (const e in l)
|
|
27
|
+
l[e] && (t += `${e} `);
|
|
28
|
+
return t.trim();
|
|
29
|
+
}, Si = (i) => {
|
|
30
30
|
const {
|
|
31
|
-
left:
|
|
32
|
-
right:
|
|
33
|
-
} =
|
|
31
|
+
left: t,
|
|
32
|
+
right: l
|
|
33
|
+
} = i.getBoundingClientRect(), {
|
|
34
34
|
innerWidth: e
|
|
35
35
|
} = window;
|
|
36
|
-
return
|
|
37
|
-
},
|
|
36
|
+
return t >= 0 && l <= e;
|
|
37
|
+
}, Ei = (i) => {
|
|
38
38
|
const {
|
|
39
|
-
top:
|
|
40
|
-
bottom:
|
|
41
|
-
} =
|
|
39
|
+
top: t,
|
|
40
|
+
bottom: l
|
|
41
|
+
} = i.getBoundingClientRect(), {
|
|
42
42
|
innerHeight: e
|
|
43
43
|
} = window;
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
var
|
|
44
|
+
return t >= 0 && l <= e;
|
|
45
|
+
}, ra = (i) => {
|
|
46
|
+
var T;
|
|
47
47
|
const {
|
|
48
|
-
top:
|
|
49
|
-
bottom:
|
|
48
|
+
top: t,
|
|
49
|
+
bottom: l,
|
|
50
50
|
left: e,
|
|
51
51
|
right: a
|
|
52
|
-
} =
|
|
53
|
-
innerHeight:
|
|
54
|
-
innerWidth:
|
|
52
|
+
} = i.getBoundingClientRect(), {
|
|
53
|
+
innerHeight: u,
|
|
54
|
+
innerWidth: s
|
|
55
55
|
} = window;
|
|
56
|
-
let
|
|
57
|
-
const
|
|
58
|
-
return
|
|
59
|
-
outTop:
|
|
60
|
-
outBottom:
|
|
61
|
-
outLeft:
|
|
62
|
-
outRight:
|
|
56
|
+
let b = t < 0, d = l > u, v = e < 0, r = a > s;
|
|
57
|
+
const _ = i.hasAttribute("data-outside-vy"), S = i.hasAttribute("data-outside-vx"), O = (T = i == null ? void 0 : i.parentElement) == null ? void 0 : T.getBoundingClientRect();
|
|
58
|
+
return O && (_ && (i.getAttribute("data-outside-vy") === "top" ? b = O.top - (l - O.bottom) < 0 : d = O.bottom + (O.top - t) > u), S && (i.getAttribute("data-outside-vx") === "left" ? v = O.left - (a - O.right) < 0 : r = O.right + (O.left - e) > s)), {
|
|
59
|
+
outTop: b,
|
|
60
|
+
outBottom: d,
|
|
61
|
+
outLeft: v,
|
|
62
|
+
outRight: r
|
|
63
63
|
};
|
|
64
|
-
},
|
|
64
|
+
}, Se = (i) => {
|
|
65
65
|
const {
|
|
66
|
-
outTop:
|
|
67
|
-
outBottom:
|
|
66
|
+
outTop: t,
|
|
67
|
+
outBottom: l,
|
|
68
68
|
outLeft: e,
|
|
69
69
|
outRight: a
|
|
70
|
-
} =
|
|
71
|
-
let
|
|
72
|
-
return
|
|
73
|
-
vy:
|
|
74
|
-
},
|
|
75
|
-
...
|
|
70
|
+
} = ra(i);
|
|
71
|
+
let u = {};
|
|
72
|
+
return t || l ? (u = {
|
|
73
|
+
vy: t ? "top" : "bottom"
|
|
74
|
+
}, i.setAttribute("data-outside-vy", u.vy)) : i.removeAttribute("data-outside-vy"), e || a ? (u = {
|
|
75
|
+
...u,
|
|
76
76
|
vx: a ? "right" : "left"
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
},
|
|
77
|
+
}, i.setAttribute("data-outside-vx", u.vx)) : i.removeAttribute("data-outside-vx"), u;
|
|
78
|
+
}, ca = (i) => Array.isArray(i) && i.every((t) => typeof t == "string"), va = ["Mac", "iPhone", "iPad", "iPod"], le = () => typeof window < "u" && va.some((i) => window.navigator.userAgent.includes(i)), J = (i, t) => new Promise(() => setTimeout(i, t)), X = (i) => i && String(i), H = (i) => {
|
|
79
|
+
if (i != null)
|
|
80
|
+
return X(!i);
|
|
81
|
+
}, ee = (i, t) => t === void 0 ? !!i : t && i, ze = (i) => i.querySelector('input[type="search"]'), fa = ["id", "type", "disabled", "aria-label", "data-icon", "data-hide-icon", "data-size", "data-state", "data-width", "data-variant", "data-no-text", "name", "value", "aria-describedby", "aria-expanded", "aria-pressed"], he = /* @__PURE__ */ M({
|
|
82
82
|
__name: "button",
|
|
83
83
|
props: {
|
|
84
84
|
ariaexpanded: { type: Boolean, default: void 0 },
|
|
@@ -104,61 +104,61 @@ const G = () => {
|
|
|
104
104
|
showIcon: { type: Boolean, default: void 0 },
|
|
105
105
|
text: { default: void 0 }
|
|
106
106
|
},
|
|
107
|
-
setup(
|
|
108
|
-
const
|
|
107
|
+
setup(i) {
|
|
108
|
+
const t = i, l = n(null);
|
|
109
109
|
function e(a) {
|
|
110
|
-
|
|
110
|
+
t.onClick && t.onClick(a);
|
|
111
111
|
}
|
|
112
|
-
return (a,
|
|
112
|
+
return (a, u) => (m(), g("button", {
|
|
113
113
|
ref_key: "_ref",
|
|
114
|
-
ref:
|
|
114
|
+
ref: l,
|
|
115
115
|
id: a.id,
|
|
116
|
-
class:
|
|
116
|
+
class: F(c(D)("db-button", t.class)),
|
|
117
117
|
type: a.type || "button",
|
|
118
118
|
disabled: a.disabled,
|
|
119
119
|
"aria-label": a.label,
|
|
120
120
|
"data-icon": a.icon,
|
|
121
|
-
"data-hide-icon":
|
|
121
|
+
"data-hide-icon": c(H)(a.showIcon),
|
|
122
122
|
"data-size": a.size,
|
|
123
123
|
"data-state": a.state,
|
|
124
124
|
"data-width": a.width,
|
|
125
125
|
"data-variant": a.variant,
|
|
126
|
-
"data-no-text":
|
|
126
|
+
"data-no-text": c(X)(a.noText),
|
|
127
127
|
name: a.name,
|
|
128
128
|
value: a.value,
|
|
129
129
|
"aria-describedby": a.describedbyid,
|
|
130
130
|
"aria-expanded": a.ariaexpanded,
|
|
131
131
|
"aria-pressed": a.ariapressed,
|
|
132
|
-
onClick:
|
|
132
|
+
onClick: u[0] || (u[0] = async (s) => e(s))
|
|
133
133
|
}, [
|
|
134
|
-
a.text ? (m(), g(
|
|
135
|
-
|
|
136
|
-
], 64)) :
|
|
137
|
-
], 10,
|
|
134
|
+
a.text ? (m(), g(G, { key: 0 }, [
|
|
135
|
+
$(w(a.text), 1)
|
|
136
|
+
], 64)) : L(a.$slots, "default", { key: 1 })
|
|
137
|
+
], 10, fa));
|
|
138
138
|
}
|
|
139
|
-
}),
|
|
140
|
-
var
|
|
141
|
-
const
|
|
142
|
-
var
|
|
143
|
-
const
|
|
144
|
-
var
|
|
145
|
-
const
|
|
139
|
+
}), ye = "OVERWRITE_DEFAULT_ID", ie = "LABEL SHOULD BE SET", Oe = " ", pa = "MESSAGE SHOULD BE SET", Ue = "-label", Ge = "-select", oe = "-message", de = "-valid-message", ne = "-invalid-message", Ae = "-placeholder", Pe = "-datalist", se = "TODO: Add a validMessage", ue = "TODO: Add an invalidMessage", We = "Remove", ha = "Back", ma = "Selected", ba = "BurgerMenu", ga = "brand", ya = 4, Ce = "Close", Ci = "density", Fi = "color";
|
|
140
|
+
var Xe = /* @__PURE__ */ ((i) => (i.FUNCTIONAL = "functional", i.REGULAR = "regular", i.EXPRESSIVE = "expressive", i))(Xe || {});
|
|
141
|
+
const Di = Object.entries(Xe).map(([, i]) => i);
|
|
142
|
+
var He = /* @__PURE__ */ ((i) => (i.PRIMARY = "primary", i))(He || {}), je = /* @__PURE__ */ ((i) => (i.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", i.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", i.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", i.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", i.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", i.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", i.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", i.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", i.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", i.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", i.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", i.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", i.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", i.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", i.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", i.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", i.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", i.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", i.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", i.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", i.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", i.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", i.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", i.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", i.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", i.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", i.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", i.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", i.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", i.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", i))(je || {});
|
|
143
|
+
const Ni = Object.entries(je).map(([, i]) => i), Mi = Object.entries(He).map(([, i]) => i);
|
|
144
|
+
var Ye = /* @__PURE__ */ ((i) => (i.CRITICAL = "critical", i.INFORMATIONAL = "informational", i.WARNING = "warning", i.SUCCESSFUL = "successful", i))(Ye || {});
|
|
145
|
+
const Ri = Object.entries(Ye).map(([, i]) => i), ka = {
|
|
146
146
|
width: 390,
|
|
147
147
|
height: 884
|
|
148
|
-
},
|
|
148
|
+
}, Ba = {
|
|
149
149
|
width: 1920,
|
|
150
150
|
height: 1280
|
|
151
|
-
},
|
|
151
|
+
}, zi = [{
|
|
152
152
|
name: "desktop",
|
|
153
|
-
...
|
|
153
|
+
...Ba
|
|
154
154
|
}, {
|
|
155
155
|
name: "tablet",
|
|
156
156
|
width: 768,
|
|
157
157
|
height: 1024
|
|
158
158
|
}, {
|
|
159
159
|
name: "mobile",
|
|
160
|
-
...
|
|
161
|
-
}],
|
|
160
|
+
...ka
|
|
161
|
+
}], wa = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], _a = { key: 0 }, Ia = { key: 1 }, Ui = /* @__PURE__ */ M({
|
|
162
162
|
__name: "notification",
|
|
163
163
|
props: {
|
|
164
164
|
ariaLive: { default: void 0 },
|
|
@@ -188,49 +188,49 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
188
188
|
showIcon: { type: Boolean, default: void 0 },
|
|
189
189
|
text: { default: void 0 }
|
|
190
190
|
},
|
|
191
|
-
setup(
|
|
192
|
-
const
|
|
191
|
+
setup(i) {
|
|
192
|
+
const t = i, l = n(null);
|
|
193
193
|
function e(a) {
|
|
194
|
-
|
|
194
|
+
t.onClose && t.onClose();
|
|
195
195
|
}
|
|
196
|
-
return (a,
|
|
196
|
+
return (a, u) => (m(), g("article", {
|
|
197
197
|
ref_key: "_ref",
|
|
198
|
-
ref:
|
|
198
|
+
ref: l,
|
|
199
199
|
id: a.id,
|
|
200
|
-
class:
|
|
200
|
+
class: F(c(D)("db-notification", t.class)),
|
|
201
201
|
"aria-live": a.ariaLive,
|
|
202
202
|
"data-semantic": a.semantic,
|
|
203
203
|
"data-variant": a.variant,
|
|
204
204
|
"data-icon": a.icon,
|
|
205
|
-
"data-hide-icon":
|
|
205
|
+
"data-hide-icon": c(H)(a.showIcon),
|
|
206
206
|
"data-link-variant": a.linkVariant
|
|
207
207
|
}, [
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
L(a.$slots, "image"),
|
|
209
|
+
c(ee)(a.headline, a.showHeadline) ? (m(), g("header", _a, w(a.headline), 1)) : R("", !0),
|
|
210
210
|
I("p", null, [
|
|
211
|
-
a.text ? (m(), g(
|
|
212
|
-
|
|
213
|
-
], 64)) :
|
|
211
|
+
a.text ? (m(), g(G, { key: 0 }, [
|
|
212
|
+
$(w(a.text), 1)
|
|
213
|
+
], 64)) : L(a.$slots, "default", { key: 1 })
|
|
214
214
|
]),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
a.closeable ? (m(),
|
|
215
|
+
c(ee)(a.timestamp, a.showTimestamp) ? (m(), g("span", Ia, w(a.timestamp), 1)) : R("", !0),
|
|
216
|
+
L(a.$slots, "link"),
|
|
217
|
+
a.closeable ? (m(), x(he, {
|
|
218
218
|
key: 2,
|
|
219
219
|
icon: "cross",
|
|
220
220
|
variant: "ghost",
|
|
221
221
|
size: "small",
|
|
222
222
|
id: a.closeButtonId,
|
|
223
223
|
noText: !0,
|
|
224
|
-
onClick: (
|
|
224
|
+
onClick: (s) => e()
|
|
225
225
|
}, {
|
|
226
|
-
default:
|
|
227
|
-
|
|
226
|
+
default: V(() => [
|
|
227
|
+
$(w(a.closeButtonText ?? c(Ce)), 1)
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
|
-
}, 8, ["id", "onClick"])) :
|
|
231
|
-
], 10,
|
|
230
|
+
}, 8, ["id", "onClick"])) : R("", !0)
|
|
231
|
+
], 10, wa));
|
|
232
232
|
}
|
|
233
|
-
}),
|
|
233
|
+
}), La = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], Gi = /* @__PURE__ */ M({
|
|
234
234
|
__name: "badge",
|
|
235
235
|
props: {
|
|
236
236
|
placement: { default: void 0 },
|
|
@@ -246,43 +246,43 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
246
246
|
emphasis: { default: void 0 },
|
|
247
247
|
text: { default: void 0 }
|
|
248
248
|
},
|
|
249
|
-
setup(
|
|
250
|
-
const
|
|
251
|
-
return
|
|
252
|
-
|
|
253
|
-
}),
|
|
254
|
-
() => [e.value,
|
|
249
|
+
setup(i) {
|
|
250
|
+
const t = i, l = n(!1), e = n(null);
|
|
251
|
+
return W(() => {
|
|
252
|
+
l.value = !0;
|
|
253
|
+
}), A(
|
|
254
|
+
() => [e.value, l.value],
|
|
255
255
|
() => {
|
|
256
256
|
var a;
|
|
257
|
-
if (e.value &&
|
|
258
|
-
let
|
|
259
|
-
|
|
257
|
+
if (e.value && l.value && (a = t.placement) != null && a.startsWith("corner")) {
|
|
258
|
+
let u = e.value.parentElement;
|
|
259
|
+
u && u.localName.includes("badge") && (u = u.parentElement), u && u.setAttribute("data-has-badge", "true");
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
immediate: !0,
|
|
264
264
|
flush: "post"
|
|
265
265
|
}
|
|
266
|
-
), (a,
|
|
267
|
-
var
|
|
266
|
+
), (a, u) => {
|
|
267
|
+
var s;
|
|
268
268
|
return m(), g("span", {
|
|
269
269
|
ref_key: "_ref",
|
|
270
270
|
ref: e,
|
|
271
271
|
id: a.id,
|
|
272
|
-
class:
|
|
272
|
+
class: F(c(D)("db-badge", t.class)),
|
|
273
273
|
"data-semantic": a.semantic,
|
|
274
274
|
"data-size": a.size,
|
|
275
275
|
"data-emphasis": a.emphasis,
|
|
276
276
|
"data-placement": a.placement,
|
|
277
|
-
"data-label": ((
|
|
277
|
+
"data-label": ((s = a.placement) == null ? void 0 : s.startsWith("corner")) && (a.label ?? c(ie))
|
|
278
278
|
}, [
|
|
279
|
-
a.text ? (m(), g(
|
|
280
|
-
|
|
281
|
-
], 64)) :
|
|
282
|
-
], 10,
|
|
279
|
+
a.text ? (m(), g(G, { key: 0 }, [
|
|
280
|
+
$(w(a.text), 1)
|
|
281
|
+
], 64)) : L(a.$slots, "default", { key: 1 })
|
|
282
|
+
], 10, La);
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), $a = ["data-icon", "data-hide-icon", "id"], Pi = /* @__PURE__ */ M({
|
|
286
286
|
__name: "brand",
|
|
287
287
|
props: {
|
|
288
288
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -296,22 +296,22 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
296
296
|
showIcon: { type: Boolean, default: void 0 },
|
|
297
297
|
text: { default: void 0 }
|
|
298
298
|
},
|
|
299
|
-
setup(
|
|
300
|
-
const
|
|
299
|
+
setup(i) {
|
|
300
|
+
const t = i, l = n(null);
|
|
301
301
|
return (e, a) => (m(), g("div", {
|
|
302
302
|
ref_key: "_ref",
|
|
303
|
-
ref:
|
|
304
|
-
"data-icon": e.hideLogo ? "none" : e.icon ??
|
|
305
|
-
"data-hide-icon":
|
|
303
|
+
ref: l,
|
|
304
|
+
"data-icon": e.hideLogo ? "none" : e.icon ?? c(ga),
|
|
305
|
+
"data-hide-icon": c(H)(e.showIcon),
|
|
306
306
|
id: e.id,
|
|
307
|
-
class:
|
|
307
|
+
class: F(c(D)("db-brand", t.class))
|
|
308
308
|
}, [
|
|
309
|
-
e.text ? (m(), g(
|
|
310
|
-
|
|
311
|
-
], 64)) :
|
|
312
|
-
], 10,
|
|
309
|
+
e.text ? (m(), g(G, { key: 0 }, [
|
|
310
|
+
$(w(e.text), 1)
|
|
311
|
+
], 64)) : L(e.$slots, "default", { key: 1 })
|
|
312
|
+
], 10, $a));
|
|
313
313
|
}
|
|
314
|
-
}),
|
|
314
|
+
}), Ta = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], qi = /* @__PURE__ */ M({
|
|
315
315
|
__name: "card",
|
|
316
316
|
props: {
|
|
317
317
|
behavior: { default: void 0 },
|
|
@@ -325,29 +325,29 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
325
325
|
onClick: { type: Function, default: void 0 },
|
|
326
326
|
spacing: { default: void 0 }
|
|
327
327
|
},
|
|
328
|
-
setup(
|
|
329
|
-
const
|
|
328
|
+
setup(i) {
|
|
329
|
+
const t = i, l = n(null);
|
|
330
330
|
function e(a) {
|
|
331
|
-
|
|
331
|
+
t.onClick && t.onClick(a);
|
|
332
332
|
}
|
|
333
|
-
return (a,
|
|
333
|
+
return (a, u) => (m(), g("div", {
|
|
334
334
|
ref_key: "_ref",
|
|
335
|
-
ref:
|
|
335
|
+
ref: l,
|
|
336
336
|
id: a.id,
|
|
337
|
-
class:
|
|
337
|
+
class: F(c(D)("db-card", t.class)),
|
|
338
338
|
"data-behavior": a.behavior,
|
|
339
339
|
"data-elevation-level": a.elevationLevel,
|
|
340
340
|
"data-spacing": a.spacing,
|
|
341
341
|
role: a.behavior === "interactive" ? "button" : void 0,
|
|
342
342
|
tabIndex: a.behavior === "interactive" ? 0 : void 0,
|
|
343
|
-
onClick:
|
|
343
|
+
onClick: u[0] || (u[0] = async (s) => e(s))
|
|
344
344
|
}, [
|
|
345
|
-
|
|
346
|
-
], 10,
|
|
345
|
+
L(a.$slots, "default")
|
|
346
|
+
], 10, Ta));
|
|
347
347
|
}
|
|
348
|
-
}),
|
|
349
|
-
|
|
350
|
-
},
|
|
348
|
+
}), ve = (i, t, l = "value") => {
|
|
349
|
+
i(`update:${l}`, t.target[l]);
|
|
350
|
+
}, Aa = ["id", "data-icon", "data-semantic", "data-size", "data-hide-icon-before"], Q = /* @__PURE__ */ M({
|
|
351
351
|
__name: "infotext",
|
|
352
352
|
props: {
|
|
353
353
|
children: { default: void 0 },
|
|
@@ -362,27 +362,27 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
362
362
|
showIcon: { type: Boolean, default: void 0 },
|
|
363
363
|
text: { default: void 0 }
|
|
364
364
|
},
|
|
365
|
-
setup(
|
|
366
|
-
const
|
|
365
|
+
setup(i) {
|
|
366
|
+
const t = i, l = n(null);
|
|
367
367
|
return (e, a) => (m(), g("span", {
|
|
368
368
|
ref_key: "_ref",
|
|
369
|
-
ref:
|
|
369
|
+
ref: l,
|
|
370
370
|
id: e.id,
|
|
371
|
-
class:
|
|
371
|
+
class: F(c(D)("db-infotext", t.class)),
|
|
372
372
|
"data-icon": e.icon,
|
|
373
373
|
"data-semantic": e.semantic,
|
|
374
374
|
"data-size": e.size,
|
|
375
|
-
"data-hide-icon-before":
|
|
375
|
+
"data-hide-icon-before": c(H)(e.showIcon ?? !0)
|
|
376
376
|
}, [
|
|
377
|
-
e.text ? (m(), g(
|
|
378
|
-
|
|
379
|
-
], 64)) :
|
|
380
|
-
], 10,
|
|
377
|
+
e.text ? (m(), g(G, { key: 0 }, [
|
|
378
|
+
$(w(e.text), 1)
|
|
379
|
+
], 64)) : L(e.$slots, "default", { key: 1 })
|
|
380
|
+
], 10, Aa));
|
|
381
381
|
}
|
|
382
|
-
}),
|
|
382
|
+
}), Sa = ["data-size", "data-hide-label"], Ea = ["for"], Ca = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Fa = {
|
|
383
383
|
"data-visually-hidden": "true",
|
|
384
384
|
role: "status"
|
|
385
|
-
},
|
|
385
|
+
}, Vi = /* @__PURE__ */ M({
|
|
386
386
|
__name: "checkbox",
|
|
387
387
|
props: {
|
|
388
388
|
indeterminate: { type: Boolean, default: void 0 },
|
|
@@ -398,9 +398,10 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
398
398
|
onBlur: { type: Function, default: void 0 },
|
|
399
399
|
focus: { type: Function, default: void 0 },
|
|
400
400
|
onFocus: { type: Function, default: void 0 },
|
|
401
|
+
ariaDescribedBy: {},
|
|
402
|
+
form: {},
|
|
401
403
|
validation: { default: void 0 },
|
|
402
404
|
disabled: { type: Boolean, default: void 0 },
|
|
403
|
-
form: {},
|
|
404
405
|
label: { default: void 0 },
|
|
405
406
|
name: { default: void 0 },
|
|
406
407
|
required: { type: Boolean, default: void 0 },
|
|
@@ -418,118 +419,118 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
418
419
|
size: { default: void 0 }
|
|
419
420
|
},
|
|
420
421
|
emits: ["update:checked"],
|
|
421
|
-
setup(
|
|
422
|
-
const
|
|
423
|
-
|
|
422
|
+
setup(i, { emit: t }) {
|
|
423
|
+
const l = t, e = i, a = n(!1), u = n(void 0), s = n(void 0), b = n(void 0), d = n(void 0), v = n(""), r = n(""), _ = n(null);
|
|
424
|
+
W(() => {
|
|
424
425
|
a.value = !0;
|
|
425
|
-
const
|
|
426
|
-
|
|
427
|
-
}),
|
|
428
|
-
() => [
|
|
426
|
+
const h = e.id ?? `checkbox-${Y()}`;
|
|
427
|
+
u.value = h, s.value = h + oe, b.value = h + de, d.value = h + ne;
|
|
428
|
+
}), A(
|
|
429
|
+
() => [u.value],
|
|
429
430
|
() => {
|
|
430
|
-
if (
|
|
431
|
-
const
|
|
432
|
-
|
|
431
|
+
if (u.value) {
|
|
432
|
+
const h = u.value + oe;
|
|
433
|
+
s.value = h, b.value = u.value + de, d.value = u.value + ne, ee(e.message, e.showMessage) && (v.value = h);
|
|
433
434
|
}
|
|
434
435
|
},
|
|
435
436
|
{
|
|
436
437
|
immediate: !0,
|
|
437
438
|
flush: "post"
|
|
438
439
|
}
|
|
439
|
-
),
|
|
440
|
-
() => [a.value,
|
|
440
|
+
), A(
|
|
441
|
+
() => [a.value, _.value, e.indeterminate],
|
|
441
442
|
() => {
|
|
442
|
-
|
|
443
|
+
_.value && e.indeterminate !== void 0 && (_.value.indeterminate = e.indeterminate);
|
|
443
444
|
},
|
|
444
445
|
{
|
|
445
446
|
immediate: !0,
|
|
446
447
|
flush: "post"
|
|
447
448
|
}
|
|
448
|
-
),
|
|
449
|
-
() => [a.value,
|
|
449
|
+
), A(
|
|
450
|
+
() => [a.value, _.value, e.checked],
|
|
450
451
|
() => {
|
|
451
|
-
a.value &&
|
|
452
|
+
a.value && _.value && (e.checked != null && (_.value.checked = e.checked), a.value = !1);
|
|
452
453
|
},
|
|
453
454
|
{
|
|
454
455
|
immediate: !0,
|
|
455
456
|
flush: "post"
|
|
456
457
|
}
|
|
457
458
|
);
|
|
458
|
-
function
|
|
459
|
-
var
|
|
460
|
-
e.onChange && e.onChange(
|
|
459
|
+
function S(h) {
|
|
460
|
+
var f, B, p;
|
|
461
|
+
e.onChange && e.onChange(h), e.change && e.change(h), ve(l, h, "checked"), !((f = _.value) != null && f.validity.valid) || e.validation === "invalid" ? (v.value = d.value, le() && (r.value = e.invalidMessage ?? ((B = _.value) == null ? void 0 : B.validationMessage) ?? ue, J(() => r.value = "", 1e3))) : e.validation === "valid" || (p = _.value) != null && p.validity.valid && e.required ? (v.value = b.value, le() && (r.value = e.validMessage ?? se, J(() => r.value = "", 1e3))) : ee(e.message, e.showMessage) ? v.value = s.value : v.value = "";
|
|
461
462
|
}
|
|
462
|
-
function
|
|
463
|
-
e.onBlur && e.onBlur(
|
|
463
|
+
function O(h) {
|
|
464
|
+
e.onBlur && e.onBlur(h), e.blur && e.blur(h);
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
-
e.onFocus && e.onFocus(
|
|
466
|
+
function T(h) {
|
|
467
|
+
e.onFocus && e.onFocus(h), e.focus && e.focus(h);
|
|
467
468
|
}
|
|
468
|
-
return (
|
|
469
|
-
class:
|
|
470
|
-
"data-size":
|
|
471
|
-
"data-hide-label":
|
|
469
|
+
return (h, f) => (m(), g("div", {
|
|
470
|
+
class: F(c(D)("db-checkbox", e.class)),
|
|
471
|
+
"data-size": h.size,
|
|
472
|
+
"data-hide-label": c(H)(h.showLabel)
|
|
472
473
|
}, [
|
|
473
|
-
I("label", { for:
|
|
474
|
+
I("label", { for: u.value }, [
|
|
474
475
|
I("input", {
|
|
475
476
|
type: "checkbox",
|
|
476
|
-
"aria-invalid":
|
|
477
|
-
"data-custom-validity":
|
|
477
|
+
"aria-invalid": h.validation === "invalid",
|
|
478
|
+
"data-custom-validity": h.validation,
|
|
478
479
|
ref_key: "_ref",
|
|
479
|
-
ref:
|
|
480
|
-
id:
|
|
481
|
-
name:
|
|
482
|
-
checked:
|
|
483
|
-
disabled:
|
|
484
|
-
value:
|
|
485
|
-
required:
|
|
486
|
-
onChange:
|
|
487
|
-
onBlur:
|
|
488
|
-
onFocus:
|
|
489
|
-
"aria-describedby":
|
|
490
|
-
}, null, 40,
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
], 64)) :
|
|
494
|
-
], 8,
|
|
495
|
-
|
|
480
|
+
ref: _,
|
|
481
|
+
id: u.value,
|
|
482
|
+
name: h.name,
|
|
483
|
+
checked: h.checked,
|
|
484
|
+
disabled: h.disabled,
|
|
485
|
+
value: h.value,
|
|
486
|
+
required: h.required,
|
|
487
|
+
onChange: f[0] || (f[0] = async (B) => S(B)),
|
|
488
|
+
onBlur: f[1] || (f[1] = async (B) => O(B)),
|
|
489
|
+
onFocus: f[2] || (f[2] = async (B) => T(B)),
|
|
490
|
+
"aria-describedby": v.value
|
|
491
|
+
}, null, 40, Ca),
|
|
492
|
+
h.label ? (m(), g(G, { key: 0 }, [
|
|
493
|
+
$(w(h.label), 1)
|
|
494
|
+
], 64)) : L(h.$slots, "default", { key: 1 })
|
|
495
|
+
], 8, Ea),
|
|
496
|
+
c(ee)(h.message, h.showMessage) ? (m(), x(Q, {
|
|
496
497
|
key: 0,
|
|
497
498
|
size: "small",
|
|
498
|
-
icon:
|
|
499
|
-
id:
|
|
499
|
+
icon: h.messageIcon,
|
|
500
|
+
id: s.value
|
|
500
501
|
}, {
|
|
501
|
-
default:
|
|
502
|
-
|
|
502
|
+
default: V(() => [
|
|
503
|
+
$(w(h.message), 1)
|
|
503
504
|
]),
|
|
504
505
|
_: 1
|
|
505
|
-
}, 8, ["icon", "id"])) :
|
|
506
|
-
|
|
506
|
+
}, 8, ["icon", "id"])) : R("", !0),
|
|
507
|
+
j(Q, {
|
|
507
508
|
size: "small",
|
|
508
509
|
semantic: "successful",
|
|
509
|
-
id:
|
|
510
|
+
id: b.value
|
|
510
511
|
}, {
|
|
511
|
-
default:
|
|
512
|
-
|
|
512
|
+
default: V(() => [
|
|
513
|
+
$(w(h.validMessage ?? c(se)), 1)
|
|
513
514
|
]),
|
|
514
515
|
_: 1
|
|
515
516
|
}, 8, ["id"]),
|
|
516
|
-
|
|
517
|
+
j(Q, {
|
|
517
518
|
size: "small",
|
|
518
519
|
semantic: "critical",
|
|
519
|
-
id:
|
|
520
|
+
id: d.value
|
|
520
521
|
}, {
|
|
521
|
-
default:
|
|
522
|
-
var
|
|
522
|
+
default: V(() => {
|
|
523
|
+
var B;
|
|
523
524
|
return [
|
|
524
|
-
|
|
525
|
+
$(w(h.invalidMessage ?? (((B = _.value) == null ? void 0 : B.validationMessage) || c(ue))), 1)
|
|
525
526
|
];
|
|
526
527
|
}),
|
|
527
528
|
_: 1
|
|
528
529
|
}, 8, ["id"]),
|
|
529
|
-
I("span",
|
|
530
|
-
], 10,
|
|
530
|
+
I("span", Fa, w(r.value), 1)
|
|
531
|
+
], 10, Sa));
|
|
531
532
|
}
|
|
532
|
-
}),
|
|
533
|
+
}), Da = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], Oi = /* @__PURE__ */ M({
|
|
533
534
|
__name: "divider",
|
|
534
535
|
props: {
|
|
535
536
|
margin: { default: void 0 },
|
|
@@ -543,20 +544,20 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
543
544
|
emphasis: { default: void 0 },
|
|
544
545
|
width: { default: void 0 }
|
|
545
546
|
},
|
|
546
|
-
setup(
|
|
547
|
-
const
|
|
547
|
+
setup(i) {
|
|
548
|
+
const t = i, l = n(null);
|
|
548
549
|
return (e, a) => (m(), g("div", {
|
|
549
550
|
ref_key: "_ref",
|
|
550
|
-
ref:
|
|
551
|
+
ref: l,
|
|
551
552
|
id: e.id,
|
|
552
553
|
"data-margin": e.margin,
|
|
553
554
|
"data-variant": e.variant,
|
|
554
555
|
"data-emphasis": e.emphasis,
|
|
555
556
|
"data-width": e.width,
|
|
556
|
-
class:
|
|
557
|
-
}, null, 10,
|
|
557
|
+
class: F(c(D)("db-divider", t.class))
|
|
558
|
+
}, null, 10, Da));
|
|
558
559
|
}
|
|
559
|
-
}),
|
|
560
|
+
}), Na = ["id", "data-backdrop", "data-variant"], Ma = ["data-spacing", "data-width", "data-direction", "data-rounded"], Ra = { class: "db-drawer-header" }, za = { class: "db-drawer-header-text" }, Ua = { class: "db-drawer-content" }, Ga = /* @__PURE__ */ M({
|
|
560
561
|
__name: "drawer",
|
|
561
562
|
props: {
|
|
562
563
|
backdrop: { default: void 0 },
|
|
@@ -577,110 +578,110 @@ const gn = Object.entries(me).map(([, t]) => t), Ae = {
|
|
|
577
578
|
width: { default: void 0 },
|
|
578
579
|
spacing: { default: void 0 }
|
|
579
580
|
},
|
|
580
|
-
setup(
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}),
|
|
585
|
-
() => [
|
|
581
|
+
setup(i) {
|
|
582
|
+
const t = i, l = n(null), e = n(null);
|
|
583
|
+
W(() => {
|
|
584
|
+
u();
|
|
585
|
+
}), A(
|
|
586
|
+
() => [t.open],
|
|
586
587
|
() => {
|
|
587
|
-
|
|
588
|
+
u();
|
|
588
589
|
},
|
|
589
590
|
{
|
|
590
591
|
immediate: !0,
|
|
591
592
|
flush: "post"
|
|
592
593
|
}
|
|
593
594
|
);
|
|
594
|
-
function a(
|
|
595
|
-
|
|
595
|
+
function a(s) {
|
|
596
|
+
s.key === "Escape" && s.preventDefault(), (s === "close" || s.key === "Escape" || s.target.nodeName === "DIALOG" && s.type === "click" && t.backdrop !== "none") && t.onClose && t.onClose(s);
|
|
596
597
|
}
|
|
597
|
-
function
|
|
598
|
-
|
|
599
|
-
var
|
|
600
|
-
e.value && (e.value.hidden = !1), (
|
|
598
|
+
function u() {
|
|
599
|
+
l.value && (t.open && !l.value.open && (e.value && (e.value.hidden = !1), t.backdrop === "none" || t.variant === "inside" ? l.value.show() : l.value.showModal()), !t.open && l.value.open && (e.value && (e.value.hidden = !0), J(() => {
|
|
600
|
+
var s;
|
|
601
|
+
e.value && (e.value.hidden = !1), (s = l.value) == null || s.close();
|
|
601
602
|
}, 401)));
|
|
602
603
|
}
|
|
603
|
-
return (
|
|
604
|
+
return (s, b) => (m(), g("dialog", {
|
|
604
605
|
class: "db-drawer",
|
|
605
|
-
id:
|
|
606
|
+
id: s.id,
|
|
606
607
|
ref_key: "_ref",
|
|
607
|
-
ref:
|
|
608
|
-
onClick:
|
|
609
|
-
a(
|
|
608
|
+
ref: l,
|
|
609
|
+
onClick: b[0] || (b[0] = async (d) => {
|
|
610
|
+
a(d);
|
|
610
611
|
}),
|
|
611
|
-
onKeydown:
|
|
612
|
-
"data-backdrop":
|
|
613
|
-
"data-variant":
|
|
612
|
+
onKeydown: b[1] || (b[1] = async (d) => a(d)),
|
|
613
|
+
"data-backdrop": s.backdrop,
|
|
614
|
+
"data-variant": s.variant
|
|
614
615
|
}, [
|
|
615
616
|
I("article", {
|
|
616
617
|
ref_key: "dialogContainerRef",
|
|
617
618
|
ref: e,
|
|
618
|
-
class:
|
|
619
|
-
"data-spacing":
|
|
620
|
-
"data-width":
|
|
621
|
-
"data-direction":
|
|
622
|
-
"data-rounded":
|
|
619
|
+
class: F(c(D)("db-drawer-container", t.class)),
|
|
620
|
+
"data-spacing": s.spacing,
|
|
621
|
+
"data-width": s.width,
|
|
622
|
+
"data-direction": s.direction,
|
|
623
|
+
"data-rounded": s.rounded
|
|
623
624
|
}, [
|
|
624
|
-
I("header",
|
|
625
|
-
I("div",
|
|
626
|
-
|
|
625
|
+
I("header", Ra, [
|
|
626
|
+
I("div", za, [
|
|
627
|
+
L(s.$slots, "drawer-header")
|
|
627
628
|
]),
|
|
628
|
-
|
|
629
|
+
j(he, {
|
|
629
630
|
class: "button-close-drawer",
|
|
630
631
|
icon: "cross",
|
|
631
632
|
variant: "ghost",
|
|
632
|
-
id:
|
|
633
|
+
id: s.closeButtonId,
|
|
633
634
|
noText: !0,
|
|
634
|
-
onClick: (
|
|
635
|
+
onClick: (d) => a("close")
|
|
635
636
|
}, {
|
|
636
|
-
default:
|
|
637
|
-
|
|
637
|
+
default: V(() => [
|
|
638
|
+
$(w(s.closeButtonText ?? c(Ce)), 1)
|
|
638
639
|
]),
|
|
639
640
|
_: 1
|
|
640
641
|
}, 8, ["id", "onClick"])
|
|
641
642
|
]),
|
|
642
|
-
I("div",
|
|
643
|
-
|
|
643
|
+
I("div", Ua, [
|
|
644
|
+
L(s.$slots, "default")
|
|
644
645
|
])
|
|
645
|
-
], 10,
|
|
646
|
-
], 40,
|
|
646
|
+
], 10, Ma)
|
|
647
|
+
], 40, Na));
|
|
647
648
|
}
|
|
648
|
-
}),
|
|
649
|
-
var
|
|
649
|
+
}), Ke = (i) => {
|
|
650
|
+
var l, e;
|
|
650
651
|
const {
|
|
651
|
-
target:
|
|
652
|
-
} =
|
|
653
|
-
return !!(!((
|
|
652
|
+
target: t
|
|
653
|
+
} = i;
|
|
654
|
+
return !!(!((l = t == null ? void 0 : t.classList) != null && l.contains("db-navigation-item-expand-button")) && ((e = t == null ? void 0 : t.parentElement) != null && e.classList.contains("db-navigation-item")));
|
|
654
655
|
};
|
|
655
|
-
class
|
|
656
|
-
constructor(
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
656
|
+
class Pa {
|
|
657
|
+
constructor(t, l) {
|
|
658
|
+
pe(this, "element");
|
|
659
|
+
pe(this, "subNavigation");
|
|
660
|
+
pe(this, "parentSubNavigation", null);
|
|
661
|
+
pe(this, "triangleData");
|
|
662
|
+
pe(this, "initialized", !1);
|
|
663
|
+
pe(this, "mouseX", 0);
|
|
664
|
+
pe(this, "mouseY", 0);
|
|
664
665
|
var e;
|
|
665
|
-
this.element =
|
|
666
|
+
this.element = t, this.subNavigation = l, !(!this.element || !this.subNavigation) && (this.parentSubNavigation = (e = this.element) == null ? void 0 : e.closest(".db-sub-navigation"), this.parentSubNavigation && !this.element.closest(".db-drawer") && this.init());
|
|
666
667
|
}
|
|
667
668
|
init() {
|
|
668
|
-
var
|
|
669
|
-
const
|
|
670
|
-
(e = this.element) == null || e.style.setProperty("--db-navigation-item-inline-size", `${
|
|
669
|
+
var l, e;
|
|
670
|
+
const t = ((l = this.parentSubNavigation) == null ? void 0 : l.getBoundingClientRect().width) ?? 0;
|
|
671
|
+
(e = this.element) == null || e.style.setProperty("--db-navigation-item-inline-size", `${t}px`), this.initialized = !0;
|
|
671
672
|
}
|
|
672
673
|
enableFollow() {
|
|
673
674
|
var a;
|
|
674
675
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation)
|
|
675
676
|
return;
|
|
676
|
-
const
|
|
677
|
+
const t = Se(this.subNavigation), l = this.element.getBoundingClientRect(), e = ((a = this.parentSubNavigation) == null ? void 0 : a.getBoundingClientRect().width) ?? 0;
|
|
677
678
|
this.triangleData = {
|
|
678
|
-
itemRect:
|
|
679
|
+
itemRect: l,
|
|
679
680
|
parentElementWidth: e,
|
|
680
681
|
subNavigationHeight: this.subNavigation.getBoundingClientRect().height,
|
|
681
|
-
padding: (e -
|
|
682
|
-
outsideVX:
|
|
683
|
-
outsideVY:
|
|
682
|
+
padding: (e - l.width) / 2,
|
|
683
|
+
outsideVX: t.vx,
|
|
684
|
+
outsideVY: t.vy
|
|
684
685
|
};
|
|
685
686
|
}
|
|
686
687
|
disableFollow() {
|
|
@@ -691,44 +692,44 @@ class Ke {
|
|
|
691
692
|
}
|
|
692
693
|
getTriangleTipY() {
|
|
693
694
|
if (!this.triangleData) return 0;
|
|
694
|
-
const
|
|
695
|
-
return this.triangleData.outsideVY === "bottom" ?
|
|
695
|
+
const t = Math.max(Math.min(this.mouseY, this.triangleData.itemRect.height), 0) + this.triangleData.padding;
|
|
696
|
+
return this.triangleData.outsideVY === "bottom" ? t + (this.triangleData.subNavigationHeight - this.triangleData.padding * 2 - this.triangleData.itemRect.height) : t;
|
|
696
697
|
}
|
|
697
698
|
hasMouseEnteredSubNavigation() {
|
|
698
699
|
if (!this.triangleData)
|
|
699
700
|
return !1;
|
|
700
|
-
const
|
|
701
|
-
return !!(
|
|
701
|
+
const t = this.triangleData.outsideVX === "right";
|
|
702
|
+
return !!(t && this.mouseX < -1 * this.triangleData.padding || !t && this.mouseX > this.triangleData.parentElementWidth - this.triangleData.padding);
|
|
702
703
|
}
|
|
703
|
-
getTriangleCoordinates(
|
|
704
|
+
getTriangleCoordinates(t) {
|
|
704
705
|
if (!this.triangleData)
|
|
705
706
|
return;
|
|
706
|
-
if (
|
|
707
|
-
const
|
|
707
|
+
if (t === "fill-gap") {
|
|
708
|
+
const s = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, b = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
708
709
|
return {
|
|
709
|
-
lb: `${
|
|
710
|
-
lt: `${
|
|
710
|
+
lb: `${b} ${s}`,
|
|
711
|
+
lt: `${b} 0`,
|
|
711
712
|
rt: "100% 0",
|
|
712
|
-
rb: `100% ${
|
|
713
|
+
rb: `100% ${s}`
|
|
713
714
|
};
|
|
714
715
|
}
|
|
715
|
-
const
|
|
716
|
+
const l = this.getTriangleTipX(), e = this.getTriangleTipY(), a = `${l}px ${e}px`, u = `${l}px ${e}px`;
|
|
716
717
|
return {
|
|
717
718
|
lb: a,
|
|
718
|
-
lt:
|
|
719
|
+
lt: u,
|
|
719
720
|
rt: "100% 0",
|
|
720
721
|
rb: "100% 100%"
|
|
721
722
|
};
|
|
722
723
|
}
|
|
723
|
-
followByMouseEvent(
|
|
724
|
+
followByMouseEvent(t) {
|
|
724
725
|
if (!this.initialized || !this.triangleData || !this.element || !this.subNavigation)
|
|
725
726
|
return;
|
|
726
|
-
this.mouseX =
|
|
727
|
-
const
|
|
728
|
-
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`),
|
|
727
|
+
this.mouseX = t.clientX - this.triangleData.itemRect.left, this.mouseY = t.clientY - this.triangleData.itemRect.top;
|
|
728
|
+
const l = this.hasMouseEnteredSubNavigation(), e = this.getTriangleCoordinates(l ? "fill-gap" : "safe-triangle");
|
|
729
|
+
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), l && (this.triangleData = void 0));
|
|
729
730
|
}
|
|
730
731
|
}
|
|
731
|
-
const
|
|
732
|
+
const qa = ["id", "data-width", "data-on-forcing-mobile"], Va = { class: "db-header-drawer-navigation" }, Oa = { class: "db-header-meta-navigation" }, Wa = { class: "db-header-secondary-action" }, Xa = { class: "db-header-meta-navigation" }, Ha = { class: "db-header-navigation-bar" }, ja = { class: "db-header-brand-container" }, Ya = { class: "db-header-navigation-container" }, Ka = { class: "db-header-navigation" }, Ja = { class: "db-header-primary-action" }, Qa = { class: "db-header-action-container" }, Za = { class: "db-header-burger-menu-container" }, xa = { class: "db-header-secondary-action" }, Wi = /* @__PURE__ */ M({
|
|
732
733
|
__name: "header",
|
|
733
734
|
props: {
|
|
734
735
|
brand: {},
|
|
@@ -747,16 +748,16 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
747
748
|
onToggle: { type: Function, default: void 0 },
|
|
748
749
|
width: { default: void 0 }
|
|
749
750
|
},
|
|
750
|
-
setup(
|
|
751
|
-
const
|
|
752
|
-
|
|
753
|
-
e.value = !0,
|
|
754
|
-
}),
|
|
751
|
+
setup(i) {
|
|
752
|
+
const t = i, l = n(ye), e = n(!1), a = n(!1), u = n(null);
|
|
753
|
+
W(() => {
|
|
754
|
+
e.value = !0, l.value = t.id || "header-" + Y();
|
|
755
|
+
}), A(
|
|
755
756
|
() => [e.value],
|
|
756
757
|
() => {
|
|
757
|
-
if (e.value && document &&
|
|
758
|
-
const
|
|
759
|
-
|
|
758
|
+
if (e.value && document && l.value && t.forceMobile) {
|
|
759
|
+
const d = document.getElementById(l.value);
|
|
760
|
+
d && Ve(d, {
|
|
760
761
|
key: "data-force-mobile",
|
|
761
762
|
value: "true"
|
|
762
763
|
}), a.value = !0;
|
|
@@ -767,83 +768,83 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
767
768
|
flush: "post"
|
|
768
769
|
}
|
|
769
770
|
);
|
|
770
|
-
function
|
|
771
|
-
|
|
771
|
+
function s() {
|
|
772
|
+
t.onToggle && t.onToggle(!t.drawerOpen);
|
|
772
773
|
}
|
|
773
|
-
function
|
|
774
|
-
|
|
774
|
+
function b(d) {
|
|
775
|
+
Ke(d) && s();
|
|
775
776
|
}
|
|
776
|
-
return (
|
|
777
|
+
return (d, v) => (m(), g("header", {
|
|
777
778
|
ref_key: "_ref",
|
|
778
|
-
ref:
|
|
779
|
-
class:
|
|
780
|
-
id:
|
|
781
|
-
"data-width":
|
|
782
|
-
"data-on-forcing-mobile":
|
|
779
|
+
ref: u,
|
|
780
|
+
class: F(c(D)("db-header", t.class)),
|
|
781
|
+
id: l.value,
|
|
782
|
+
"data-width": d.width,
|
|
783
|
+
"data-on-forcing-mobile": d.forceMobile && !a.value
|
|
783
784
|
}, [
|
|
784
|
-
|
|
785
|
+
j(Ga, {
|
|
785
786
|
class: "db-header-drawer",
|
|
786
787
|
spacing: "small",
|
|
787
788
|
rounded: !0,
|
|
788
|
-
open:
|
|
789
|
-
onClose: () =>
|
|
789
|
+
open: d.drawerOpen,
|
|
790
|
+
onClose: () => s()
|
|
790
791
|
}, {
|
|
791
|
-
default:
|
|
792
|
-
I("div",
|
|
792
|
+
default: V(() => [
|
|
793
|
+
I("div", Va, [
|
|
793
794
|
I("div", {
|
|
794
795
|
class: "db-header-navigation",
|
|
795
|
-
onClick:
|
|
796
|
+
onClick: v[0] || (v[0] = async (r) => b(r))
|
|
796
797
|
}, [
|
|
797
|
-
|
|
798
|
+
L(d.$slots, "default")
|
|
798
799
|
]),
|
|
799
|
-
I("div",
|
|
800
|
-
|
|
800
|
+
I("div", Oa, [
|
|
801
|
+
L(d.$slots, "meta-navigation")
|
|
801
802
|
])
|
|
802
803
|
]),
|
|
803
|
-
I("div",
|
|
804
|
-
|
|
804
|
+
I("div", Wa, [
|
|
805
|
+
L(d.$slots, "secondary-action")
|
|
805
806
|
])
|
|
806
807
|
]),
|
|
807
808
|
_: 3
|
|
808
809
|
}, 8, ["open", "onClose"]),
|
|
809
|
-
I("div",
|
|
810
|
-
|
|
810
|
+
I("div", Xa, [
|
|
811
|
+
L(d.$slots, "meta-navigation")
|
|
811
812
|
]),
|
|
812
|
-
I("div",
|
|
813
|
-
I("div",
|
|
814
|
-
|
|
813
|
+
I("div", Ha, [
|
|
814
|
+
I("div", ja, [
|
|
815
|
+
L(d.$slots, "brand")
|
|
815
816
|
]),
|
|
816
|
-
I("div",
|
|
817
|
-
I("div",
|
|
818
|
-
|
|
817
|
+
I("div", Ya, [
|
|
818
|
+
I("div", Ka, [
|
|
819
|
+
L(d.$slots, "default")
|
|
819
820
|
]),
|
|
820
|
-
I("div",
|
|
821
|
-
|
|
821
|
+
I("div", Ja, [
|
|
822
|
+
L(d.$slots, "primary-action")
|
|
822
823
|
])
|
|
823
824
|
]),
|
|
824
|
-
I("div",
|
|
825
|
-
I("div",
|
|
826
|
-
|
|
825
|
+
I("div", Qa, [
|
|
826
|
+
I("div", Za, [
|
|
827
|
+
j(he, {
|
|
827
828
|
icon: "menu",
|
|
828
829
|
variant: "ghost",
|
|
829
|
-
id:
|
|
830
|
+
id: l.value + "-burger-menu",
|
|
830
831
|
noText: !0,
|
|
831
|
-
onClick: () =>
|
|
832
|
+
onClick: () => s()
|
|
832
833
|
}, {
|
|
833
|
-
default:
|
|
834
|
-
|
|
834
|
+
default: V(() => [
|
|
835
|
+
$(w(d.burgerMenuLabel ?? c(ba)), 1)
|
|
835
836
|
]),
|
|
836
837
|
_: 1
|
|
837
838
|
}, 8, ["id", "onClick"])
|
|
838
839
|
]),
|
|
839
|
-
I("div",
|
|
840
|
-
|
|
840
|
+
I("div", xa, [
|
|
841
|
+
L(d.$slots, "secondary-action")
|
|
841
842
|
])
|
|
842
843
|
])
|
|
843
844
|
])
|
|
844
|
-
], 10,
|
|
845
|
+
], 10, qa));
|
|
845
846
|
}
|
|
846
|
-
}),
|
|
847
|
+
}), et = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], Xi = /* @__PURE__ */ M({
|
|
847
848
|
__name: "icon",
|
|
848
849
|
props: {
|
|
849
850
|
variant: { default: void 0 },
|
|
@@ -857,27 +858,27 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
857
858
|
icon: { default: void 0 },
|
|
858
859
|
text: { default: void 0 }
|
|
859
860
|
},
|
|
860
|
-
setup(
|
|
861
|
-
const
|
|
861
|
+
setup(i) {
|
|
862
|
+
const t = i, l = n(null);
|
|
862
863
|
return (e, a) => (m(), g("span", {
|
|
863
864
|
"aria-hidden": "true",
|
|
864
865
|
ref_key: "_ref",
|
|
865
|
-
ref:
|
|
866
|
+
ref: l,
|
|
866
867
|
id: e.id,
|
|
867
|
-
class:
|
|
868
|
+
class: F(c(D)("db-icon", t.class)),
|
|
868
869
|
"data-icon": e.icon,
|
|
869
870
|
"data-icon-weight": e.weight,
|
|
870
871
|
"data-icon-variant": e.variant
|
|
871
872
|
}, [
|
|
872
|
-
e.text ? (m(), g(
|
|
873
|
-
|
|
874
|
-
], 64)) :
|
|
875
|
-
], 10,
|
|
873
|
+
e.text ? (m(), g(G, { key: 0 }, [
|
|
874
|
+
$(w(e.text), 1)
|
|
875
|
+
], 64)) : L(e.$slots, "default", { key: 1 })
|
|
876
|
+
], 10, et));
|
|
876
877
|
}
|
|
877
|
-
}),
|
|
878
|
+
}), at = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], tt = ["for"], it = ["aria-invalid", "data-custom-validity", "id", "name", "type", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "list", "aria-describedby"], lt = ["id"], ot = ["value"], dt = {
|
|
878
879
|
"data-visually-hidden": "true",
|
|
879
880
|
role: "status"
|
|
880
|
-
},
|
|
881
|
+
}, nt = /* @__PURE__ */ M({
|
|
881
882
|
__name: "input",
|
|
882
883
|
props: {
|
|
883
884
|
dataList: { default: void 0 },
|
|
@@ -904,9 +905,10 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
904
905
|
onBlur: { type: Function, default: void 0 },
|
|
905
906
|
focus: { type: Function, default: void 0 },
|
|
906
907
|
onFocus: { type: Function, default: void 0 },
|
|
908
|
+
ariaDescribedBy: { default: void 0 },
|
|
909
|
+
form: { default: void 0 },
|
|
907
910
|
validation: { default: void 0 },
|
|
908
911
|
disabled: { type: Boolean, default: void 0 },
|
|
909
|
-
form: { default: void 0 },
|
|
910
912
|
label: { default: void 0 },
|
|
911
913
|
name: { default: void 0 },
|
|
912
914
|
required: { type: Boolean, default: void 0 },
|
|
@@ -926,142 +928,142 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
926
928
|
size: { default: void 0 }
|
|
927
929
|
},
|
|
928
930
|
emits: ["update:value"],
|
|
929
|
-
setup(
|
|
930
|
-
const
|
|
931
|
-
|
|
932
|
-
const
|
|
933
|
-
a.value =
|
|
934
|
-
}),
|
|
931
|
+
setup(i, { emit: t }) {
|
|
932
|
+
const l = t, e = i, a = n(void 0), u = n(void 0), s = n(void 0), b = n(void 0), d = n(void 0), v = n(""), r = n(""), _ = n(""), S = n(null);
|
|
933
|
+
W(() => {
|
|
934
|
+
const p = e.id ?? `input-${Y()}`;
|
|
935
|
+
a.value = p, u.value = p + oe, s.value = p + de, b.value = p + ne, d.value = p + Pe;
|
|
936
|
+
}), A(
|
|
935
937
|
() => [a.value],
|
|
936
938
|
() => {
|
|
937
939
|
if (a.value) {
|
|
938
|
-
const
|
|
939
|
-
|
|
940
|
+
const p = a.value + oe;
|
|
941
|
+
u.value = p, s.value = a.value + de, b.value = a.value + ne, d.value = e.dataListId ?? a.value + Pe, ee(e.message, e.showMessage) && (v.value = p);
|
|
940
942
|
}
|
|
941
943
|
},
|
|
942
944
|
{
|
|
943
945
|
immediate: !0,
|
|
944
946
|
flush: "post"
|
|
945
947
|
}
|
|
946
|
-
),
|
|
948
|
+
), A(
|
|
947
949
|
() => [e.value],
|
|
948
950
|
() => {
|
|
949
|
-
|
|
951
|
+
r.value = e.value;
|
|
950
952
|
},
|
|
951
953
|
{
|
|
952
954
|
immediate: !0,
|
|
953
955
|
flush: "post"
|
|
954
956
|
}
|
|
955
957
|
);
|
|
956
|
-
function
|
|
957
|
-
|
|
958
|
+
function O(p) {
|
|
959
|
+
r.value = p.target.value, e.onInput && e.onInput(p), e.input && e.input(p);
|
|
958
960
|
}
|
|
959
|
-
function
|
|
960
|
-
var
|
|
961
|
-
e.onChange && e.onChange(
|
|
961
|
+
function T(p) {
|
|
962
|
+
var E, y, z;
|
|
963
|
+
e.onChange && e.onChange(p), e.change && e.change(p), ve(l, p), !((E = S.value) != null && E.validity.valid) || e.validation === "invalid" ? (v.value = b.value, le() && (_.value = e.invalidMessage ?? ((y = S.value) == null ? void 0 : y.validationMessage) ?? ue, J(() => _.value = "", 1e3))) : e.validation === "valid" || (z = S.value) != null && z.validity.valid && (e.required || e.minLength || e.maxLength || e.pattern) ? (v.value = s.value, le() && (_.value = e.validMessage ?? se, J(() => _.value = "", 1e3))) : ee(e.message, e.showMessage) ? v.value = u.value : v.value = "";
|
|
962
964
|
}
|
|
963
|
-
function
|
|
964
|
-
e.onBlur && e.onBlur(
|
|
965
|
+
function h(p) {
|
|
966
|
+
e.onBlur && e.onBlur(p), e.blur && e.blur(p);
|
|
965
967
|
}
|
|
966
|
-
function
|
|
967
|
-
e.onFocus && e.onFocus(
|
|
968
|
+
function f(p) {
|
|
969
|
+
e.onFocus && e.onFocus(p), e.focus && e.focus(p);
|
|
968
970
|
}
|
|
969
|
-
function
|
|
971
|
+
function B(p) {
|
|
970
972
|
return Array.from(
|
|
971
|
-
(
|
|
972
|
-
value:
|
|
973
|
+
(ca(p) ? p.map((E) => ({
|
|
974
|
+
value: E,
|
|
973
975
|
label: void 0
|
|
974
|
-
})) :
|
|
976
|
+
})) : p) || []
|
|
975
977
|
);
|
|
976
978
|
}
|
|
977
|
-
return (
|
|
978
|
-
class:
|
|
979
|
-
"data-variant":
|
|
980
|
-
"data-hide-label":
|
|
981
|
-
"data-hide-icon":
|
|
982
|
-
"data-icon":
|
|
983
|
-
"data-icon-after":
|
|
984
|
-
"data-hide-icon-after":
|
|
979
|
+
return (p, E) => (m(), g("div", {
|
|
980
|
+
class: F(c(D)("db-input", e.class)),
|
|
981
|
+
"data-variant": p.variant,
|
|
982
|
+
"data-hide-label": c(H)(p.showLabel),
|
|
983
|
+
"data-hide-icon": c(H)(p.showIcon),
|
|
984
|
+
"data-icon": p.icon,
|
|
985
|
+
"data-icon-after": p.iconAfter,
|
|
986
|
+
"data-hide-icon-after": c(H)(p.showIcon)
|
|
985
987
|
}, [
|
|
986
|
-
I("label", { for: a.value },
|
|
988
|
+
I("label", { for: a.value }, w(p.label ?? c(ie)), 9, tt),
|
|
987
989
|
I("input", {
|
|
988
|
-
"aria-invalid":
|
|
989
|
-
"data-custom-validity":
|
|
990
|
+
"aria-invalid": p.validation === "invalid",
|
|
991
|
+
"data-custom-validity": p.validation,
|
|
990
992
|
ref_key: "_ref",
|
|
991
|
-
ref:
|
|
993
|
+
ref: S,
|
|
992
994
|
id: a.value,
|
|
993
|
-
name:
|
|
994
|
-
type:
|
|
995
|
-
placeholder:
|
|
996
|
-
disabled:
|
|
997
|
-
required:
|
|
998
|
-
step:
|
|
999
|
-
value:
|
|
1000
|
-
maxLength:
|
|
1001
|
-
minLength:
|
|
1002
|
-
max:
|
|
1003
|
-
min:
|
|
1004
|
-
readOnly:
|
|
1005
|
-
form:
|
|
1006
|
-
pattern:
|
|
1007
|
-
size:
|
|
1008
|
-
autoComplete:
|
|
1009
|
-
autoFocus:
|
|
1010
|
-
onInput:
|
|
1011
|
-
onChange:
|
|
1012
|
-
onBlur:
|
|
1013
|
-
onFocus:
|
|
1014
|
-
list:
|
|
1015
|
-
"aria-describedby":
|
|
1016
|
-
}, null, 40,
|
|
1017
|
-
|
|
995
|
+
name: p.name,
|
|
996
|
+
type: p.type || "text",
|
|
997
|
+
placeholder: p.placeholder ?? c(Oe),
|
|
998
|
+
disabled: p.disabled,
|
|
999
|
+
required: p.required,
|
|
1000
|
+
step: p.step,
|
|
1001
|
+
value: p.value ?? r.value,
|
|
1002
|
+
maxLength: p.maxLength,
|
|
1003
|
+
minLength: p.minLength,
|
|
1004
|
+
max: p.max,
|
|
1005
|
+
min: p.min,
|
|
1006
|
+
readOnly: p.readOnly,
|
|
1007
|
+
form: p.form,
|
|
1008
|
+
pattern: p.pattern,
|
|
1009
|
+
size: p.size,
|
|
1010
|
+
autoComplete: p.autocomplete,
|
|
1011
|
+
autoFocus: p.autofocus,
|
|
1012
|
+
onInput: E[0] || (E[0] = async (y) => O(y)),
|
|
1013
|
+
onChange: E[1] || (E[1] = async (y) => T(y)),
|
|
1014
|
+
onBlur: E[2] || (E[2] = async (y) => h(y)),
|
|
1015
|
+
onFocus: E[3] || (E[3] = async (y) => f(y)),
|
|
1016
|
+
list: p.dataList && d.value,
|
|
1017
|
+
"aria-describedby": p.ariaDescribedBy ?? v.value
|
|
1018
|
+
}, null, 40, it),
|
|
1019
|
+
p.dataList ? (m(), g("datalist", {
|
|
1018
1020
|
key: 0,
|
|
1019
|
-
id:
|
|
1021
|
+
id: d.value
|
|
1020
1022
|
}, [
|
|
1021
|
-
(m(!0), g(
|
|
1022
|
-
key:
|
|
1023
|
-
value:
|
|
1024
|
-
},
|
|
1025
|
-
], 8,
|
|
1026
|
-
|
|
1027
|
-
|
|
1023
|
+
(m(!0), g(G, null, ce(B(p.dataList), (y) => (m(), g("option", {
|
|
1024
|
+
key: d.value + "-option-" + y.value,
|
|
1025
|
+
value: y.value
|
|
1026
|
+
}, w(y.label), 9, ot))), 128))
|
|
1027
|
+
], 8, lt)) : R("", !0),
|
|
1028
|
+
L(p.$slots, "default"),
|
|
1029
|
+
c(ee)(p.message, p.showMessage) ? (m(), x(Q, {
|
|
1028
1030
|
key: 1,
|
|
1029
1031
|
size: "small",
|
|
1030
|
-
icon:
|
|
1031
|
-
id:
|
|
1032
|
+
icon: p.messageIcon,
|
|
1033
|
+
id: u.value
|
|
1032
1034
|
}, {
|
|
1033
|
-
default:
|
|
1034
|
-
|
|
1035
|
+
default: V(() => [
|
|
1036
|
+
$(w(p.message), 1)
|
|
1035
1037
|
]),
|
|
1036
1038
|
_: 1
|
|
1037
|
-
}, 8, ["icon", "id"])) :
|
|
1038
|
-
|
|
1039
|
+
}, 8, ["icon", "id"])) : R("", !0),
|
|
1040
|
+
j(Q, {
|
|
1039
1041
|
size: "small",
|
|
1040
1042
|
semantic: "successful",
|
|
1041
|
-
id:
|
|
1043
|
+
id: s.value
|
|
1042
1044
|
}, {
|
|
1043
|
-
default:
|
|
1044
|
-
|
|
1045
|
+
default: V(() => [
|
|
1046
|
+
$(w(p.validMessage ?? c(se)), 1)
|
|
1045
1047
|
]),
|
|
1046
1048
|
_: 1
|
|
1047
1049
|
}, 8, ["id"]),
|
|
1048
|
-
|
|
1050
|
+
j(Q, {
|
|
1049
1051
|
size: "small",
|
|
1050
1052
|
semantic: "critical",
|
|
1051
|
-
id:
|
|
1053
|
+
id: b.value
|
|
1052
1054
|
}, {
|
|
1053
|
-
default:
|
|
1054
|
-
var
|
|
1055
|
+
default: V(() => {
|
|
1056
|
+
var y;
|
|
1055
1057
|
return [
|
|
1056
|
-
|
|
1058
|
+
$(w(p.invalidMessage ?? (((y = S.value) == null ? void 0 : y.validationMessage) || c(ue))), 1)
|
|
1057
1059
|
];
|
|
1058
1060
|
}),
|
|
1059
1061
|
_: 1
|
|
1060
1062
|
}, 8, ["id"]),
|
|
1061
|
-
I("span",
|
|
1062
|
-
], 10,
|
|
1063
|
+
I("span", dt, w(_.value), 1)
|
|
1064
|
+
], 10, at));
|
|
1063
1065
|
}
|
|
1064
|
-
}),
|
|
1066
|
+
}), st = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "aria-selected", "aria-label", "aria-current", "data-size", "data-hide-icon-after", "data-variant", "data-content"], Hi = /* @__PURE__ */ M({
|
|
1065
1067
|
__name: "link",
|
|
1066
1068
|
props: {
|
|
1067
1069
|
content: { default: void 0 },
|
|
@@ -1087,44 +1089,45 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1087
1089
|
showIcon: { type: Boolean, default: void 0 },
|
|
1088
1090
|
text: { default: void 0 }
|
|
1089
1091
|
},
|
|
1090
|
-
setup(
|
|
1091
|
-
const
|
|
1092
|
+
setup(i) {
|
|
1093
|
+
const t = i, l = n(null);
|
|
1092
1094
|
function e(a) {
|
|
1093
|
-
|
|
1095
|
+
t.onClick && t.onClick(a);
|
|
1094
1096
|
}
|
|
1095
|
-
return (a,
|
|
1097
|
+
return (a, u) => (m(), g("a", {
|
|
1096
1098
|
ref_key: "_ref",
|
|
1097
|
-
ref:
|
|
1099
|
+
ref: l,
|
|
1098
1100
|
id: a.id,
|
|
1099
|
-
class:
|
|
1101
|
+
class: F(c(D)("db-link", t.class)),
|
|
1100
1102
|
href: a.href,
|
|
1101
1103
|
target: a.target,
|
|
1102
1104
|
rel: a.rel,
|
|
1103
1105
|
role: a.role,
|
|
1104
1106
|
hrefLang: a.hreflang,
|
|
1105
|
-
"aria-disabled":
|
|
1107
|
+
"aria-disabled": c(X)(a.disabled),
|
|
1106
1108
|
tabIndex: a.disabled ? -1 : 0,
|
|
1107
1109
|
"aria-selected": a.selected,
|
|
1108
1110
|
"aria-label": a.label,
|
|
1109
1111
|
"aria-current": a.current,
|
|
1110
1112
|
"data-size": a.size,
|
|
1111
|
-
"data-hide-icon-after":
|
|
1113
|
+
"data-hide-icon-after": c(H)(a.showIcon ?? !0),
|
|
1112
1114
|
"data-variant": a.variant,
|
|
1113
1115
|
"data-content": a.content || "internal",
|
|
1114
|
-
onClick:
|
|
1116
|
+
onClick: u[0] || (u[0] = async (s) => e(s))
|
|
1115
1117
|
}, [
|
|
1116
|
-
a.text ? (m(), g(
|
|
1117
|
-
|
|
1118
|
-
], 64)) :
|
|
1119
|
-
], 10,
|
|
1118
|
+
a.text ? (m(), g(G, { key: 0 }, [
|
|
1119
|
+
$(w(a.text), 1)
|
|
1120
|
+
], 64)) : L(a.$slots, "default", { key: 1 })
|
|
1121
|
+
], 10, st));
|
|
1120
1122
|
}
|
|
1121
|
-
}),
|
|
1123
|
+
}), ut = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], ji = /* @__PURE__ */ M({
|
|
1122
1124
|
__name: "page",
|
|
1123
1125
|
props: {
|
|
1124
1126
|
documentOverflow: { default: void 0 },
|
|
1125
1127
|
fadeIn: { type: Boolean, default: void 0 },
|
|
1126
1128
|
footer: {},
|
|
1127
1129
|
header: {},
|
|
1130
|
+
mainClass: { default: void 0 },
|
|
1128
1131
|
variant: { default: void 0 },
|
|
1129
1132
|
children: { default: void 0 },
|
|
1130
1133
|
className: { default: void 0 },
|
|
@@ -1133,31 +1136,33 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1133
1136
|
id: { default: void 0 },
|
|
1134
1137
|
autofocus: { type: Boolean }
|
|
1135
1138
|
},
|
|
1136
|
-
setup(
|
|
1137
|
-
const
|
|
1138
|
-
return typeof window < "u" && document && (
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
}) :
|
|
1142
|
-
}),
|
|
1139
|
+
setup(i) {
|
|
1140
|
+
const t = i, l = n(!1), e = n(null);
|
|
1141
|
+
return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), W(() => {
|
|
1142
|
+
l.value = !t.fadeIn, document && t.fadeIn ? document.fonts.ready.then(() => {
|
|
1143
|
+
l.value = !0;
|
|
1144
|
+
}) : l.value = !0;
|
|
1145
|
+
}), qe(() => {
|
|
1143
1146
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
1144
|
-
}), (a,
|
|
1147
|
+
}), (a, u) => (m(), g("div", {
|
|
1145
1148
|
ref_key: "_ref",
|
|
1146
1149
|
ref: e,
|
|
1147
1150
|
id: a.id,
|
|
1148
|
-
class:
|
|
1151
|
+
class: F(c(D)("db-page", t.class)),
|
|
1149
1152
|
"data-variant": a.variant,
|
|
1150
1153
|
"data-fade-in": a.fadeIn,
|
|
1151
|
-
"data-fonts-loaded":
|
|
1154
|
+
"data-fonts-loaded": c(X)(l.value)
|
|
1152
1155
|
}, [
|
|
1153
|
-
|
|
1154
|
-
I("main",
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1156
|
+
L(a.$slots, "header"),
|
|
1157
|
+
I("main", {
|
|
1158
|
+
class: F(c(D)("db-main", a.mainClass))
|
|
1159
|
+
}, [
|
|
1160
|
+
L(a.$slots, "default")
|
|
1161
|
+
], 2),
|
|
1162
|
+
L(a.$slots, "footer")
|
|
1163
|
+
], 10, ut));
|
|
1159
1164
|
}
|
|
1160
|
-
}),
|
|
1165
|
+
}), rt = ["data-size", "data-hide-label", "for"], ct = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], Yi = /* @__PURE__ */ M({
|
|
1161
1166
|
__name: "radio",
|
|
1162
1167
|
props: {
|
|
1163
1168
|
describedbyid: { default: void 0 },
|
|
@@ -1172,9 +1177,10 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1172
1177
|
onBlur: { type: Function, default: void 0 },
|
|
1173
1178
|
focus: { type: Function, default: void 0 },
|
|
1174
1179
|
onFocus: { type: Function, default: void 0 },
|
|
1180
|
+
ariaDescribedBy: {},
|
|
1181
|
+
form: {},
|
|
1175
1182
|
validation: { default: void 0 },
|
|
1176
1183
|
disabled: { type: Boolean, default: void 0 },
|
|
1177
|
-
form: {},
|
|
1178
1184
|
label: { default: void 0 },
|
|
1179
1185
|
name: { default: void 0 },
|
|
1180
1186
|
required: { type: Boolean, default: void 0 },
|
|
@@ -1184,58 +1190,58 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1184
1190
|
size: { default: void 0 }
|
|
1185
1191
|
},
|
|
1186
1192
|
emits: ["update:value"],
|
|
1187
|
-
setup(
|
|
1188
|
-
const
|
|
1189
|
-
|
|
1190
|
-
a.value = !0,
|
|
1191
|
-
}),
|
|
1192
|
-
() => [a.value,
|
|
1193
|
+
setup(i, { emit: t }) {
|
|
1194
|
+
const l = t, e = i, a = n(!1), u = n(void 0), s = n(null);
|
|
1195
|
+
W(() => {
|
|
1196
|
+
a.value = !0, u.value = e.id ?? `radio-${Y()}`;
|
|
1197
|
+
}), A(
|
|
1198
|
+
() => [a.value, s.value, e.checked],
|
|
1193
1199
|
() => {
|
|
1194
|
-
e.checked && a.value &&
|
|
1200
|
+
e.checked && a.value && s.value && (s.value.checked = !0);
|
|
1195
1201
|
},
|
|
1196
1202
|
{
|
|
1197
1203
|
immediate: !0,
|
|
1198
1204
|
flush: "post"
|
|
1199
1205
|
}
|
|
1200
1206
|
);
|
|
1201
|
-
function
|
|
1202
|
-
e.onChange && e.onChange(
|
|
1207
|
+
function b(r) {
|
|
1208
|
+
e.onChange && e.onChange(r), e.change && e.change(r), ve(l, r);
|
|
1203
1209
|
}
|
|
1204
|
-
function
|
|
1205
|
-
e.onBlur && e.onBlur(
|
|
1210
|
+
function d(r) {
|
|
1211
|
+
e.onBlur && e.onBlur(r), e.blur && e.blur(r);
|
|
1206
1212
|
}
|
|
1207
|
-
function
|
|
1208
|
-
e.onFocus && e.onFocus(
|
|
1213
|
+
function v(r) {
|
|
1214
|
+
e.onFocus && e.onFocus(r), e.focus && e.focus(r);
|
|
1209
1215
|
}
|
|
1210
|
-
return (
|
|
1211
|
-
"data-size":
|
|
1212
|
-
"data-hide-label":
|
|
1213
|
-
class:
|
|
1214
|
-
for:
|
|
1216
|
+
return (r, _) => (m(), g("label", {
|
|
1217
|
+
"data-size": r.size,
|
|
1218
|
+
"data-hide-label": c(H)(r.showLabel),
|
|
1219
|
+
class: F(c(D)("db-radio", e.class)),
|
|
1220
|
+
for: u.value
|
|
1215
1221
|
}, [
|
|
1216
1222
|
I("input", {
|
|
1217
1223
|
type: "radio",
|
|
1218
|
-
"aria-invalid":
|
|
1219
|
-
"data-custom-validity":
|
|
1224
|
+
"aria-invalid": r.validation === "invalid",
|
|
1225
|
+
"data-custom-validity": r.validation,
|
|
1220
1226
|
ref_key: "_ref",
|
|
1221
|
-
ref:
|
|
1222
|
-
id:
|
|
1223
|
-
name:
|
|
1224
|
-
checked:
|
|
1225
|
-
disabled:
|
|
1226
|
-
"aria-describedby":
|
|
1227
|
-
value:
|
|
1228
|
-
required:
|
|
1229
|
-
onChange:
|
|
1230
|
-
onBlur:
|
|
1231
|
-
onFocus:
|
|
1232
|
-
}, null, 40,
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
], 64)) :
|
|
1236
|
-
], 10,
|
|
1227
|
+
ref: s,
|
|
1228
|
+
id: u.value,
|
|
1229
|
+
name: r.name,
|
|
1230
|
+
checked: r.checked,
|
|
1231
|
+
disabled: r.disabled,
|
|
1232
|
+
"aria-describedby": r.describedbyid,
|
|
1233
|
+
value: r.value,
|
|
1234
|
+
required: r.required,
|
|
1235
|
+
onChange: _[0] || (_[0] = async (S) => b(S)),
|
|
1236
|
+
onBlur: _[1] || (_[1] = async (S) => d(S)),
|
|
1237
|
+
onFocus: _[2] || (_[2] = async (S) => v(S))
|
|
1238
|
+
}, null, 40, ct),
|
|
1239
|
+
r.label ? (m(), g(G, { key: 0 }, [
|
|
1240
|
+
$(w(r.label), 1)
|
|
1241
|
+
], 64)) : L(r.$slots, "default", { key: 1 })
|
|
1242
|
+
], 10, rt));
|
|
1237
1243
|
}
|
|
1238
|
-
}),
|
|
1244
|
+
}), vt = ["id", "data-spacing", "data-width"], Ki = /* @__PURE__ */ M({
|
|
1239
1245
|
__name: "section",
|
|
1240
1246
|
props: {
|
|
1241
1247
|
children: { default: void 0 },
|
|
@@ -1247,29 +1253,27 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1247
1253
|
spacing: { default: void 0 },
|
|
1248
1254
|
width: { default: void 0 }
|
|
1249
1255
|
},
|
|
1250
|
-
setup(
|
|
1251
|
-
const
|
|
1252
|
-
return
|
|
1253
|
-
|
|
1254
|
-
}), (a,
|
|
1256
|
+
setup(i) {
|
|
1257
|
+
const t = i, l = n(ye), e = n(null);
|
|
1258
|
+
return W(() => {
|
|
1259
|
+
l.value = t.id || "section-" + Y();
|
|
1260
|
+
}), (a, u) => (m(), g("section", {
|
|
1255
1261
|
ref_key: "_ref",
|
|
1256
1262
|
ref: e,
|
|
1257
|
-
id:
|
|
1258
|
-
class:
|
|
1263
|
+
id: l.value,
|
|
1264
|
+
class: F(c(D)("db-section", t.class)),
|
|
1259
1265
|
"data-spacing": a.spacing || "medium",
|
|
1260
1266
|
"data-width": a.width
|
|
1261
1267
|
}, [
|
|
1262
|
-
|
|
1263
|
-
], 10,
|
|
1268
|
+
L(a.$slots, "default")
|
|
1269
|
+
], 10, vt));
|
|
1264
1270
|
}
|
|
1265
|
-
}),
|
|
1271
|
+
}), ft = ["data-variant", "data-hide-label", "data-icon", "data-hide-icon"], pt = ["for"], ht = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], mt = ["label"], bt = ["value", "selected", "disabled"], gt = ["value", "disabled", "selected"], yt = ["id"], kt = {
|
|
1266
1272
|
"data-visually-hidden": "true",
|
|
1267
1273
|
role: "status"
|
|
1268
|
-
},
|
|
1274
|
+
}, Ji = /* @__PURE__ */ M({
|
|
1269
1275
|
__name: "select",
|
|
1270
1276
|
props: {
|
|
1271
|
-
description: {},
|
|
1272
|
-
options: { default: void 0 },
|
|
1273
1277
|
children: { default: void 0 },
|
|
1274
1278
|
className: { default: void 0 },
|
|
1275
1279
|
class: {},
|
|
@@ -1285,9 +1289,10 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1285
1289
|
onFocus: { type: Function, default: void 0 },
|
|
1286
1290
|
input: { type: Function, default: void 0 },
|
|
1287
1291
|
onInput: { type: Function, default: void 0 },
|
|
1292
|
+
ariaDescribedBy: {},
|
|
1293
|
+
form: {},
|
|
1288
1294
|
validation: { default: void 0 },
|
|
1289
1295
|
disabled: { type: Boolean, default: void 0 },
|
|
1290
|
-
form: {},
|
|
1291
1296
|
label: { default: void 0 },
|
|
1292
1297
|
name: { default: void 0 },
|
|
1293
1298
|
required: { type: Boolean, default: void 0 },
|
|
@@ -1302,145 +1307,149 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1302
1307
|
messageIcon: { default: void 0 },
|
|
1303
1308
|
autocomplete: { default: void 0 },
|
|
1304
1309
|
showMessage: { type: Boolean, default: void 0 },
|
|
1310
|
+
multiple: { type: Boolean, default: void 0 },
|
|
1311
|
+
options: { default: void 0 },
|
|
1305
1312
|
showIcon: { type: Boolean, default: void 0 },
|
|
1306
1313
|
size: { default: void 0 }
|
|
1307
1314
|
},
|
|
1308
1315
|
emits: ["update:value"],
|
|
1309
|
-
setup(
|
|
1310
|
-
const
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
const
|
|
1314
|
-
a.value =
|
|
1315
|
-
}),
|
|
1316
|
-
() => [a.value,
|
|
1316
|
+
setup(i, { emit: t }) {
|
|
1317
|
+
const l = t, e = i, a = n(void 0), u = n(void 0), s = n(void 0), b = n(void 0), d = n(""), v = n(""), r = n(""), _ = n(!1), S = n(""), O = n(null);
|
|
1318
|
+
W(() => {
|
|
1319
|
+
_.value = !0;
|
|
1320
|
+
const y = e.id ?? `select-${Y()}`;
|
|
1321
|
+
a.value = y, u.value = y + oe, s.value = y + de, b.value = y + ne, d.value = y + Ae;
|
|
1322
|
+
}), A(
|
|
1323
|
+
() => [a.value, _.value],
|
|
1317
1324
|
() => {
|
|
1318
|
-
if (a.value &&
|
|
1319
|
-
const
|
|
1320
|
-
|
|
1325
|
+
if (a.value && _.value) {
|
|
1326
|
+
const y = a.value + oe, z = a.value + Ae;
|
|
1327
|
+
u.value = y, s.value = a.value + de, b.value = a.value + ne, d.value = z, ee(e.message, e.showMessage) ? v.value = y : v.value = z, _.value = !1;
|
|
1321
1328
|
}
|
|
1322
1329
|
},
|
|
1323
1330
|
{
|
|
1324
1331
|
immediate: !0,
|
|
1325
1332
|
flush: "post"
|
|
1326
1333
|
}
|
|
1327
|
-
),
|
|
1334
|
+
), A(
|
|
1328
1335
|
() => [e.value],
|
|
1329
1336
|
() => {
|
|
1330
|
-
|
|
1337
|
+
r.value = e.value;
|
|
1331
1338
|
},
|
|
1332
1339
|
{
|
|
1333
1340
|
immediate: !0,
|
|
1334
1341
|
flush: "post"
|
|
1335
1342
|
}
|
|
1336
1343
|
);
|
|
1337
|
-
function
|
|
1338
|
-
e.onClick && e.onClick(
|
|
1344
|
+
function T(y) {
|
|
1345
|
+
e.onClick && e.onClick(y);
|
|
1339
1346
|
}
|
|
1340
|
-
function
|
|
1341
|
-
|
|
1347
|
+
function h(y) {
|
|
1348
|
+
r.value = y.target.value, e.onInput && e.onInput(y), e.input && e.input(y);
|
|
1342
1349
|
}
|
|
1343
|
-
function
|
|
1344
|
-
var
|
|
1345
|
-
e.onChange && e.onChange(
|
|
1350
|
+
function f(y) {
|
|
1351
|
+
var z, C, U;
|
|
1352
|
+
e.onChange && e.onChange(y), e.change && e.change(y), ve(l, y), !((z = O.value) != null && z.validity.valid) || e.validation === "invalid" ? (v.value = b.value, le() && (S.value = e.invalidMessage ?? ((C = O.value) == null ? void 0 : C.validationMessage) ?? ue, J(() => S.value = "", 1e3))) : e.validation === "valid" || (U = O.value) != null && U.validity.valid && e.required ? (v.value = s.value, le() && (S.value = e.validMessage ?? se, J(() => S.value = "", 1e3))) : ee(e.message, e.showMessage) ? v.value = u.value : v.value = d.value;
|
|
1346
1353
|
}
|
|
1347
|
-
function y
|
|
1348
|
-
e.onBlur && e.onBlur(
|
|
1354
|
+
function B(y) {
|
|
1355
|
+
e.onBlur && e.onBlur(y), e.blur && e.blur(y);
|
|
1349
1356
|
}
|
|
1350
|
-
function
|
|
1351
|
-
e.onFocus && e.onFocus(
|
|
1357
|
+
function p(y) {
|
|
1358
|
+
e.onFocus && e.onFocus(y), e.focus && e.focus(y);
|
|
1352
1359
|
}
|
|
1353
|
-
function
|
|
1354
|
-
|
|
1360
|
+
function E(y) {
|
|
1361
|
+
var z;
|
|
1362
|
+
return y.label ?? ((z = y.value) == null ? void 0 : z.toString());
|
|
1355
1363
|
}
|
|
1356
|
-
return (
|
|
1357
|
-
class:
|
|
1358
|
-
"data-variant":
|
|
1359
|
-
"data-hide-label":
|
|
1360
|
-
"data-icon":
|
|
1361
|
-
"data-hide-icon":
|
|
1364
|
+
return (y, z) => (m(), g("div", {
|
|
1365
|
+
class: F(c(D)("db-select", e.class)),
|
|
1366
|
+
"data-variant": y.variant,
|
|
1367
|
+
"data-hide-label": c(H)(y.showLabel),
|
|
1368
|
+
"data-icon": y.icon,
|
|
1369
|
+
"data-hide-icon": c(H)(y.showIcon)
|
|
1362
1370
|
}, [
|
|
1363
|
-
I("label", { for: a.value },
|
|
1371
|
+
I("label", { for: a.value }, w(y.label ?? c(ie)), 9, pt),
|
|
1364
1372
|
I("select", {
|
|
1365
|
-
"aria-invalid":
|
|
1366
|
-
"data-custom-validity":
|
|
1373
|
+
"aria-invalid": y.validation === "invalid",
|
|
1374
|
+
"data-custom-validity": y.validation,
|
|
1367
1375
|
ref_key: "_ref",
|
|
1368
|
-
ref:
|
|
1369
|
-
required:
|
|
1370
|
-
disabled:
|
|
1376
|
+
ref: O,
|
|
1377
|
+
required: y.required,
|
|
1378
|
+
disabled: y.disabled,
|
|
1371
1379
|
id: a.value,
|
|
1372
|
-
name:
|
|
1373
|
-
size:
|
|
1374
|
-
value:
|
|
1375
|
-
autocomplete:
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1380
|
+
name: y.name,
|
|
1381
|
+
size: y.size,
|
|
1382
|
+
value: y.value ?? r.value,
|
|
1383
|
+
autocomplete: y.autocomplete,
|
|
1384
|
+
multiple: y.multiple,
|
|
1385
|
+
onInput: z[0] || (z[0] = async (C) => h(C)),
|
|
1386
|
+
onClick: z[1] || (z[1] = async (C) => T(C)),
|
|
1387
|
+
onChange: z[2] || (z[2] = async (C) => f(C)),
|
|
1388
|
+
onBlur: z[3] || (z[3] = async (C) => B(C)),
|
|
1389
|
+
onFocus: z[4] || (z[4] = async (C) => p(C)),
|
|
1390
|
+
"aria-describedby": v.value
|
|
1382
1391
|
}, [
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1392
|
+
z[5] || (z[5] = I("option", { hidden: !0 }, null, -1)),
|
|
1393
|
+
y.options ? (m(!0), g(G, { key: 0 }, ce(y.options, (C, U) => (m(), g(G, { key: U }, [
|
|
1394
|
+
C.options ? (m(), g("optgroup", {
|
|
1386
1395
|
key: 0,
|
|
1387
|
-
label:
|
|
1396
|
+
label: E(C)
|
|
1388
1397
|
}, [
|
|
1389
|
-
(m(!0), g(
|
|
1390
|
-
key:
|
|
1391
|
-
value:
|
|
1392
|
-
selected:
|
|
1393
|
-
disabled:
|
|
1394
|
-
},
|
|
1395
|
-
], 8,
|
|
1396
|
-
|
|
1398
|
+
(m(!0), g(G, null, ce(C.options, (K, fe) => (m(), g("option", {
|
|
1399
|
+
key: K.value.toString(),
|
|
1400
|
+
value: K.value,
|
|
1401
|
+
selected: K.selected,
|
|
1402
|
+
disabled: K.disabled
|
|
1403
|
+
}, w(E(K)), 9, bt))), 128))
|
|
1404
|
+
], 8, mt)) : R("", !0),
|
|
1405
|
+
C.options ? R("", !0) : (m(), g("option", {
|
|
1397
1406
|
key: 1,
|
|
1398
|
-
value:
|
|
1399
|
-
disabled:
|
|
1400
|
-
selected:
|
|
1401
|
-
},
|
|
1402
|
-
], 64))), 128)) :
|
|
1403
|
-
|
|
1404
|
-
], 40,
|
|
1405
|
-
I("span", { id:
|
|
1406
|
-
|
|
1407
|
+
value: C.value,
|
|
1408
|
+
disabled: C.disabled,
|
|
1409
|
+
selected: C.selected
|
|
1410
|
+
}, w(E(C)), 9, gt))
|
|
1411
|
+
], 64))), 128)) : R("", !0),
|
|
1412
|
+
L(y.$slots, "default")
|
|
1413
|
+
], 40, ht),
|
|
1414
|
+
I("span", { id: d.value }, w(y.placeholder ?? y.label), 9, yt),
|
|
1415
|
+
c(ee)(y.message, y.showMessage) ? (m(), x(Q, {
|
|
1407
1416
|
key: 0,
|
|
1408
1417
|
size: "small",
|
|
1409
|
-
icon:
|
|
1410
|
-
id:
|
|
1418
|
+
icon: y.messageIcon,
|
|
1419
|
+
id: u.value
|
|
1411
1420
|
}, {
|
|
1412
|
-
default:
|
|
1413
|
-
|
|
1421
|
+
default: V(() => [
|
|
1422
|
+
$(w(y.message), 1)
|
|
1414
1423
|
]),
|
|
1415
1424
|
_: 1
|
|
1416
|
-
}, 8, ["icon", "id"])) :
|
|
1417
|
-
|
|
1425
|
+
}, 8, ["icon", "id"])) : R("", !0),
|
|
1426
|
+
j(Q, {
|
|
1418
1427
|
size: "small",
|
|
1419
1428
|
semantic: "successful",
|
|
1420
|
-
id:
|
|
1429
|
+
id: s.value
|
|
1421
1430
|
}, {
|
|
1422
|
-
default:
|
|
1423
|
-
|
|
1431
|
+
default: V(() => [
|
|
1432
|
+
$(w(y.validMessage ?? c(se)), 1)
|
|
1424
1433
|
]),
|
|
1425
1434
|
_: 1
|
|
1426
1435
|
}, 8, ["id"]),
|
|
1427
|
-
|
|
1436
|
+
j(Q, {
|
|
1428
1437
|
size: "small",
|
|
1429
1438
|
semantic: "critical",
|
|
1430
|
-
id:
|
|
1439
|
+
id: b.value
|
|
1431
1440
|
}, {
|
|
1432
|
-
default:
|
|
1433
|
-
var
|
|
1441
|
+
default: V(() => {
|
|
1442
|
+
var C;
|
|
1434
1443
|
return [
|
|
1435
|
-
|
|
1444
|
+
$(w(y.invalidMessage ?? (((C = O.value) == null ? void 0 : C.validationMessage) || c(ue))), 1)
|
|
1436
1445
|
];
|
|
1437
1446
|
}),
|
|
1438
1447
|
_: 1
|
|
1439
1448
|
}, 8, ["id"]),
|
|
1440
|
-
I("span",
|
|
1441
|
-
], 10,
|
|
1449
|
+
I("span", kt, w(S.value), 1)
|
|
1450
|
+
], 10, ft));
|
|
1442
1451
|
}
|
|
1443
|
-
}),
|
|
1452
|
+
}), Bt = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], wt = ["id", "aria-checked", "checked", "value", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], Qi = /* @__PURE__ */ M({
|
|
1444
1453
|
__name: "switch",
|
|
1445
1454
|
props: {
|
|
1446
1455
|
visualAid: { type: Boolean, default: void 0 },
|
|
@@ -1456,9 +1465,10 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1456
1465
|
onBlur: { type: Function, default: void 0 },
|
|
1457
1466
|
focus: { type: Function, default: void 0 },
|
|
1458
1467
|
onFocus: { type: Function, default: void 0 },
|
|
1468
|
+
ariaDescribedBy: {},
|
|
1469
|
+
form: {},
|
|
1459
1470
|
validation: { default: void 0 },
|
|
1460
1471
|
disabled: { type: Boolean, default: void 0 },
|
|
1461
|
-
form: {},
|
|
1462
1472
|
label: { default: void 0 },
|
|
1463
1473
|
name: { default: void 0 },
|
|
1464
1474
|
required: { type: Boolean, default: void 0 },
|
|
@@ -1471,65 +1481,65 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1471
1481
|
iconAfter: { default: void 0 }
|
|
1472
1482
|
},
|
|
1473
1483
|
emits: ["update:checked"],
|
|
1474
|
-
setup(
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1477
|
-
a.value = e.id ?? `switch-${
|
|
1478
|
-
}),
|
|
1484
|
+
setup(i, { emit: t }) {
|
|
1485
|
+
const l = t, e = i, a = n(void 0), u = n(!1), s = n(null);
|
|
1486
|
+
W(() => {
|
|
1487
|
+
a.value = e.id ?? `switch-${Y()}`;
|
|
1488
|
+
}), A(
|
|
1479
1489
|
() => [e.checked],
|
|
1480
1490
|
() => {
|
|
1481
|
-
e.checked !== void 0 && e.checked !== null && (
|
|
1491
|
+
e.checked !== void 0 && e.checked !== null && (u.value = !!e.checked);
|
|
1482
1492
|
},
|
|
1483
1493
|
{
|
|
1484
1494
|
immediate: !0,
|
|
1485
1495
|
flush: "post"
|
|
1486
1496
|
}
|
|
1487
1497
|
);
|
|
1488
|
-
function
|
|
1489
|
-
var
|
|
1490
|
-
e.onChange && e.onChange(
|
|
1498
|
+
function b(r) {
|
|
1499
|
+
var _;
|
|
1500
|
+
e.onChange && e.onChange(r), e.change && e.change(r), u.value = (_ = r.target) == null ? void 0 : _.checked, ve(l, r, "checked");
|
|
1491
1501
|
}
|
|
1492
|
-
function
|
|
1493
|
-
e.onBlur && e.onBlur(
|
|
1502
|
+
function d(r) {
|
|
1503
|
+
e.onBlur && e.onBlur(r), e.blur && e.blur(r);
|
|
1494
1504
|
}
|
|
1495
|
-
function
|
|
1496
|
-
e.onFocus && e.onFocus(
|
|
1505
|
+
function v(r) {
|
|
1506
|
+
e.onFocus && e.onFocus(r), e.focus && e.focus(r);
|
|
1497
1507
|
}
|
|
1498
|
-
return (
|
|
1499
|
-
"data-visual-aid":
|
|
1500
|
-
"data-size":
|
|
1501
|
-
"data-hide-label":
|
|
1502
|
-
"data-emphasis":
|
|
1508
|
+
return (r, _) => (m(), g("label", {
|
|
1509
|
+
"data-visual-aid": c(X)(r.visualAid),
|
|
1510
|
+
"data-size": r.size,
|
|
1511
|
+
"data-hide-label": c(H)(r.showLabel),
|
|
1512
|
+
"data-emphasis": r.emphasis,
|
|
1503
1513
|
for: a.value,
|
|
1504
|
-
class:
|
|
1514
|
+
class: F(c(D)("db-switch", e.class))
|
|
1505
1515
|
}, [
|
|
1506
1516
|
I("input", {
|
|
1507
1517
|
type: "checkbox",
|
|
1508
1518
|
role: "switch",
|
|
1509
1519
|
id: a.value,
|
|
1510
|
-
"aria-checked":
|
|
1520
|
+
"aria-checked": c(X)(u.value),
|
|
1511
1521
|
ref_key: "_ref",
|
|
1512
|
-
ref:
|
|
1513
|
-
checked:
|
|
1514
|
-
value:
|
|
1515
|
-
disabled:
|
|
1516
|
-
"aria-describedby":
|
|
1517
|
-
"aria-invalid":
|
|
1518
|
-
"data-custom-validity":
|
|
1519
|
-
name:
|
|
1520
|
-
required:
|
|
1521
|
-
"data-aid-icon":
|
|
1522
|
-
"data-aid-icon-after":
|
|
1523
|
-
onChange:
|
|
1524
|
-
onBlur:
|
|
1525
|
-
onFocus:
|
|
1526
|
-
}, null, 40,
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
], 64)) :
|
|
1530
|
-
], 10,
|
|
1522
|
+
ref: s,
|
|
1523
|
+
checked: r.checked,
|
|
1524
|
+
value: r.value,
|
|
1525
|
+
disabled: r.disabled,
|
|
1526
|
+
"aria-describedby": r.describedbyid,
|
|
1527
|
+
"aria-invalid": r.validation === "invalid",
|
|
1528
|
+
"data-custom-validity": r.validation,
|
|
1529
|
+
name: r.name,
|
|
1530
|
+
required: r.required,
|
|
1531
|
+
"data-aid-icon": r.icon,
|
|
1532
|
+
"data-aid-icon-after": r.iconAfter,
|
|
1533
|
+
onChange: _[0] || (_[0] = async (S) => b(S)),
|
|
1534
|
+
onBlur: _[1] || (_[1] = async (S) => d(S)),
|
|
1535
|
+
onFocus: _[2] || (_[2] = async (S) => v(S))
|
|
1536
|
+
}, null, 40, wt),
|
|
1537
|
+
r.label ? (m(), g(G, { key: 0 }, [
|
|
1538
|
+
$(w(r.label), 1)
|
|
1539
|
+
], 64)) : L(r.$slots, "default", { key: 1 })
|
|
1540
|
+
], 10, Bt));
|
|
1531
1541
|
}
|
|
1532
|
-
}),
|
|
1542
|
+
}), _t = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], It = ["disabled", "aria-selected", "aria-controls", "checked", "id"], Lt = /* @__PURE__ */ M({
|
|
1533
1543
|
__name: "tab-item",
|
|
1534
1544
|
props: {
|
|
1535
1545
|
children: { default: void 0 },
|
|
@@ -1551,56 +1561,56 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1551
1561
|
showIcon: { type: Boolean, default: void 0 }
|
|
1552
1562
|
},
|
|
1553
1563
|
emits: ["update:checked"],
|
|
1554
|
-
setup(
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1564
|
+
setup(i, { emit: t }) {
|
|
1565
|
+
const l = t, e = i, a = n(!1), u = n(!1), s = n(null);
|
|
1566
|
+
W(() => {
|
|
1557
1567
|
a.value = !0;
|
|
1558
|
-
}),
|
|
1559
|
-
() => [
|
|
1568
|
+
}), A(
|
|
1569
|
+
() => [s.value, a.value],
|
|
1560
1570
|
() => {
|
|
1561
|
-
e.active && a.value &&
|
|
1571
|
+
e.active && a.value && s.value && (s.value.click(), a.value = !1);
|
|
1562
1572
|
},
|
|
1563
1573
|
{
|
|
1564
1574
|
immediate: !0,
|
|
1565
1575
|
flush: "post"
|
|
1566
1576
|
}
|
|
1567
1577
|
);
|
|
1568
|
-
function
|
|
1569
|
-
var
|
|
1570
|
-
e.onChange && e.onChange(
|
|
1578
|
+
function b(d) {
|
|
1579
|
+
var v;
|
|
1580
|
+
e.onChange && e.onChange(d), e.change && e.change(d), u.value = (v = d.target) == null ? void 0 : v.checked, ve(l, d, "checked");
|
|
1571
1581
|
}
|
|
1572
|
-
return (
|
|
1582
|
+
return (d, v) => (m(), g("li", {
|
|
1573
1583
|
role: "none",
|
|
1574
|
-
class:
|
|
1584
|
+
class: F(c(D)("db-tab-item", e.class))
|
|
1575
1585
|
}, [
|
|
1576
1586
|
I("label", {
|
|
1577
|
-
for:
|
|
1578
|
-
"data-icon":
|
|
1579
|
-
"data-icon-after":
|
|
1580
|
-
"data-hide-icon":
|
|
1581
|
-
"data-hide-icon-after":
|
|
1582
|
-
"data-no-text":
|
|
1587
|
+
for: d.id,
|
|
1588
|
+
"data-icon": d.icon,
|
|
1589
|
+
"data-icon-after": d.iconAfter,
|
|
1590
|
+
"data-hide-icon": c(H)(d.showIcon),
|
|
1591
|
+
"data-hide-icon-after": c(H)(d.showIcon),
|
|
1592
|
+
"data-no-text": d.noText
|
|
1583
1593
|
}, [
|
|
1584
1594
|
I("input", {
|
|
1585
1595
|
type: "radio",
|
|
1586
1596
|
role: "tab",
|
|
1587
|
-
disabled:
|
|
1588
|
-
"aria-selected":
|
|
1589
|
-
"aria-controls":
|
|
1590
|
-
checked:
|
|
1597
|
+
disabled: d.disabled,
|
|
1598
|
+
"aria-selected": u.value,
|
|
1599
|
+
"aria-controls": d.controls,
|
|
1600
|
+
checked: d.checked,
|
|
1591
1601
|
ref_key: "_ref",
|
|
1592
|
-
ref:
|
|
1593
|
-
id:
|
|
1594
|
-
onInput:
|
|
1595
|
-
}, null, 40,
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
], 64)) :
|
|
1599
|
-
|
|
1600
|
-
], 8,
|
|
1602
|
+
ref: s,
|
|
1603
|
+
id: d.id,
|
|
1604
|
+
onInput: v[0] || (v[0] = async (r) => b(r))
|
|
1605
|
+
}, null, 40, It),
|
|
1606
|
+
d.label ? (m(), g(G, { key: 0 }, [
|
|
1607
|
+
$(w(d.label), 1)
|
|
1608
|
+
], 64)) : R("", !0),
|
|
1609
|
+
L(d.$slots, "default")
|
|
1610
|
+
], 8, _t)
|
|
1601
1611
|
], 2));
|
|
1602
1612
|
}
|
|
1603
|
-
}),
|
|
1613
|
+
}), $t = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], Tt = ["title"], At = /* @__PURE__ */ M({
|
|
1604
1614
|
__name: "tag",
|
|
1605
1615
|
props: {
|
|
1606
1616
|
behavior: { default: void 0 },
|
|
@@ -1624,18 +1634,18 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1624
1634
|
showIcon: { type: Boolean, default: void 0 },
|
|
1625
1635
|
content: {}
|
|
1626
1636
|
},
|
|
1627
|
-
setup(
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1630
|
-
() => [
|
|
1637
|
+
setup(i) {
|
|
1638
|
+
const t = i, l = n(!1), e = n(null);
|
|
1639
|
+
l.value = !0, A(
|
|
1640
|
+
() => [l.value, t.disabled, e.value],
|
|
1631
1641
|
() => {
|
|
1632
|
-
var
|
|
1633
|
-
if (
|
|
1634
|
-
const
|
|
1642
|
+
var s, b;
|
|
1643
|
+
if (l.value && e.value && t.disabled !== void 0) {
|
|
1644
|
+
const d = (s = e.value) == null ? void 0 : s.querySelector(
|
|
1635
1645
|
"button:not(.db-tab-remove-button)"
|
|
1636
|
-
),
|
|
1637
|
-
for (const
|
|
1638
|
-
|
|
1646
|
+
), v = (b = e.value) == null ? void 0 : b.querySelector("input");
|
|
1647
|
+
for (const r of [d, v])
|
|
1648
|
+
r && (r.disabled = t.disabled);
|
|
1639
1649
|
}
|
|
1640
1650
|
},
|
|
1641
1651
|
{
|
|
@@ -1643,47 +1653,47 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1643
1653
|
flush: "post"
|
|
1644
1654
|
}
|
|
1645
1655
|
);
|
|
1646
|
-
function a() {
|
|
1647
|
-
|
|
1656
|
+
function a(s) {
|
|
1657
|
+
t.onRemove && t.onRemove(s);
|
|
1648
1658
|
}
|
|
1649
|
-
function
|
|
1650
|
-
return
|
|
1659
|
+
function u() {
|
|
1660
|
+
return t.removeButton ? t.removeButton : We;
|
|
1651
1661
|
}
|
|
1652
|
-
return (
|
|
1662
|
+
return (s, b) => (m(), g("div", {
|
|
1653
1663
|
ref_key: "_ref",
|
|
1654
1664
|
ref: e,
|
|
1655
|
-
id:
|
|
1656
|
-
class:
|
|
1657
|
-
"data-disabled":
|
|
1658
|
-
"data-semantic":
|
|
1659
|
-
"data-emphasis":
|
|
1660
|
-
"data-icon":
|
|
1661
|
-
"data-show-check-state":
|
|
1662
|
-
"data-hide-icon":
|
|
1663
|
-
"data-no-text":
|
|
1664
|
-
"data-overflow":
|
|
1665
|
+
id: s.id,
|
|
1666
|
+
class: F(c(D)("db-tag", t.class)),
|
|
1667
|
+
"data-disabled": c(X)(s.disabled),
|
|
1668
|
+
"data-semantic": s.semantic,
|
|
1669
|
+
"data-emphasis": s.emphasis,
|
|
1670
|
+
"data-icon": s.icon,
|
|
1671
|
+
"data-show-check-state": c(X)(s.showCheckState ?? !0),
|
|
1672
|
+
"data-hide-icon": c(H)(s.showIcon),
|
|
1673
|
+
"data-no-text": c(X)(s.noText),
|
|
1674
|
+
"data-overflow": c(X)(s.overflow)
|
|
1665
1675
|
}, [
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
], 64)) :
|
|
1671
|
-
|
|
1676
|
+
L(s.$slots, "content"),
|
|
1677
|
+
L(s.$slots, "default"),
|
|
1678
|
+
s.text ? (m(), g(G, { key: 0 }, [
|
|
1679
|
+
$(w(s.text), 1)
|
|
1680
|
+
], 64)) : R("", !0),
|
|
1681
|
+
s.behavior === "removable" ? (m(), g("button", {
|
|
1672
1682
|
key: 1,
|
|
1673
1683
|
class: "db-button db-tab-remove-button",
|
|
1674
1684
|
"data-icon": "cross",
|
|
1675
1685
|
"data-size": "small",
|
|
1676
1686
|
"data-no-text": "true",
|
|
1677
1687
|
"data-variant": "ghost",
|
|
1678
|
-
onClick:
|
|
1679
|
-
title:
|
|
1680
|
-
},
|
|
1681
|
-
], 10,
|
|
1688
|
+
onClick: b[0] || (b[0] = async (d) => a(d)),
|
|
1689
|
+
title: u()
|
|
1690
|
+
}, w(u()), 9, Tt)) : R("", !0)
|
|
1691
|
+
], 10, $t));
|
|
1682
1692
|
}
|
|
1683
|
-
}),
|
|
1693
|
+
}), St = ["data-variant", "data-hide-label"], Et = ["for"], Ct = ["aria-invalid", "data-custom-validity", "id", "data-resize", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Ft = {
|
|
1684
1694
|
"data-visually-hidden": "true",
|
|
1685
1695
|
role: "status"
|
|
1686
|
-
},
|
|
1696
|
+
}, Zi = /* @__PURE__ */ M({
|
|
1687
1697
|
__name: "textarea",
|
|
1688
1698
|
props: {
|
|
1689
1699
|
cols: { default: void 0 },
|
|
@@ -1699,9 +1709,10 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1699
1709
|
onBlur: { type: Function, default: void 0 },
|
|
1700
1710
|
focus: { type: Function, default: void 0 },
|
|
1701
1711
|
onFocus: { type: Function, default: void 0 },
|
|
1712
|
+
ariaDescribedBy: {},
|
|
1713
|
+
form: { default: void 0 },
|
|
1702
1714
|
validation: { default: void 0 },
|
|
1703
1715
|
disabled: { type: Boolean, default: void 0 },
|
|
1704
|
-
form: { default: void 0 },
|
|
1705
1716
|
label: { default: void 0 },
|
|
1706
1717
|
name: { default: void 0 },
|
|
1707
1718
|
required: { type: Boolean, default: void 0 },
|
|
@@ -1726,120 +1737,120 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1726
1737
|
showMessage: { type: Boolean, default: void 0 }
|
|
1727
1738
|
},
|
|
1728
1739
|
emits: ["update:value"],
|
|
1729
|
-
setup(
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1732
|
-
const
|
|
1733
|
-
a.value =
|
|
1734
|
-
}),
|
|
1740
|
+
setup(i, { emit: t }) {
|
|
1741
|
+
const l = t, e = i, a = n(void 0), u = n(void 0), s = n(void 0), b = n(void 0), d = n(""), v = n(""), r = n(""), _ = n(null);
|
|
1742
|
+
W(() => {
|
|
1743
|
+
const f = e.id ?? `textarea-${Y()}`;
|
|
1744
|
+
a.value = f, u.value = f + oe, s.value = f + de, b.value = f + ne;
|
|
1745
|
+
}), A(
|
|
1735
1746
|
() => [a.value],
|
|
1736
1747
|
() => {
|
|
1737
1748
|
if (a.value) {
|
|
1738
|
-
const
|
|
1739
|
-
|
|
1749
|
+
const f = a.value + oe;
|
|
1750
|
+
u.value = f, s.value = a.value + de, b.value = a.value + ne, ee(e.message, e.showMessage) && (d.value = f);
|
|
1740
1751
|
}
|
|
1741
1752
|
},
|
|
1742
1753
|
{
|
|
1743
1754
|
immediate: !0,
|
|
1744
1755
|
flush: "post"
|
|
1745
1756
|
}
|
|
1746
|
-
),
|
|
1757
|
+
), A(
|
|
1747
1758
|
() => [e.value],
|
|
1748
1759
|
() => {
|
|
1749
|
-
|
|
1760
|
+
v.value = e.value;
|
|
1750
1761
|
},
|
|
1751
1762
|
{
|
|
1752
1763
|
immediate: !0,
|
|
1753
1764
|
flush: "post"
|
|
1754
1765
|
}
|
|
1755
1766
|
);
|
|
1756
|
-
function
|
|
1757
|
-
|
|
1767
|
+
function S(f) {
|
|
1768
|
+
v.value = f.target.value, e.onInput && e.onInput(f), e.input && e.input(f);
|
|
1758
1769
|
}
|
|
1759
|
-
function
|
|
1760
|
-
var
|
|
1761
|
-
e.onChange && e.onChange(
|
|
1770
|
+
function O(f) {
|
|
1771
|
+
var B, p, E;
|
|
1772
|
+
e.onChange && e.onChange(f), e.change && e.change(f), ve(l, f), !((B = _.value) != null && B.validity.valid) || e.validation === "invalid" ? (d.value = b.value, le() && (r.value = e.invalidMessage ?? ((p = _.value) == null ? void 0 : p.validationMessage) ?? ue, J(() => r.value = "", 1e3))) : e.validation === "valid" || (E = _.value) != null && E.validity.valid && (e.required || e.minLength || e.maxLength) ? (d.value = s.value, le() && (r.value = e.validMessage ?? se, J(() => r.value = "", 1e3))) : ee(e.message, e.showMessage) ? d.value = u.value : d.value = "";
|
|
1762
1773
|
}
|
|
1763
|
-
function
|
|
1764
|
-
e.onBlur && e.onBlur(
|
|
1774
|
+
function T(f) {
|
|
1775
|
+
e.onBlur && e.onBlur(f), e.blur && e.blur(f);
|
|
1765
1776
|
}
|
|
1766
|
-
function f
|
|
1767
|
-
e.onFocus && e.onFocus(
|
|
1777
|
+
function h(f) {
|
|
1778
|
+
e.onFocus && e.onFocus(f), e.focus && e.focus(f);
|
|
1768
1779
|
}
|
|
1769
|
-
return (
|
|
1770
|
-
class:
|
|
1771
|
-
"data-variant":
|
|
1772
|
-
"data-hide-label":
|
|
1780
|
+
return (f, B) => (m(), g("div", {
|
|
1781
|
+
class: F(c(D)("db-textarea", e.class)),
|
|
1782
|
+
"data-variant": f.variant,
|
|
1783
|
+
"data-hide-label": c(H)(f.showLabel)
|
|
1773
1784
|
}, [
|
|
1774
|
-
I("label", { for: a.value },
|
|
1785
|
+
I("label", { for: a.value }, w(f.label ?? c(ie)), 9, Et),
|
|
1775
1786
|
I("textarea", {
|
|
1776
|
-
"aria-invalid":
|
|
1777
|
-
"data-custom-validity":
|
|
1787
|
+
"aria-invalid": f.validation === "invalid",
|
|
1788
|
+
"data-custom-validity": f.validation,
|
|
1778
1789
|
ref_key: "_ref",
|
|
1779
|
-
ref:
|
|
1790
|
+
ref: _,
|
|
1780
1791
|
id: a.value,
|
|
1781
|
-
"data-resize":
|
|
1782
|
-
disabled:
|
|
1783
|
-
required:
|
|
1784
|
-
readOnly:
|
|
1785
|
-
form:
|
|
1786
|
-
maxLength:
|
|
1787
|
-
minLength:
|
|
1788
|
-
name:
|
|
1789
|
-
wrap:
|
|
1790
|
-
spellcheck:
|
|
1791
|
-
autocomplete:
|
|
1792
|
-
onInput:
|
|
1793
|
-
onChange:
|
|
1794
|
-
onBlur:
|
|
1795
|
-
onFocus:
|
|
1796
|
-
value:
|
|
1797
|
-
"aria-describedby":
|
|
1798
|
-
placeholder:
|
|
1799
|
-
rows:
|
|
1800
|
-
cols:
|
|
1801
|
-
}, null, 40,
|
|
1802
|
-
|
|
1792
|
+
"data-resize": f.resize,
|
|
1793
|
+
disabled: f.disabled,
|
|
1794
|
+
required: f.required,
|
|
1795
|
+
readOnly: f.readOnly,
|
|
1796
|
+
form: f.form,
|
|
1797
|
+
maxLength: f.maxLength,
|
|
1798
|
+
minLength: f.minLength,
|
|
1799
|
+
name: f.name,
|
|
1800
|
+
wrap: f.wrap,
|
|
1801
|
+
spellcheck: f.spellCheck,
|
|
1802
|
+
autocomplete: f.autocomplete,
|
|
1803
|
+
onInput: B[0] || (B[0] = async (p) => S(p)),
|
|
1804
|
+
onChange: B[1] || (B[1] = async (p) => O(p)),
|
|
1805
|
+
onBlur: B[2] || (B[2] = async (p) => T(p)),
|
|
1806
|
+
onFocus: B[3] || (B[3] = async (p) => h(p)),
|
|
1807
|
+
value: f.value ?? v.value,
|
|
1808
|
+
"aria-describedby": d.value,
|
|
1809
|
+
placeholder: f.placeholder ?? c(Oe),
|
|
1810
|
+
rows: f.rows ?? c(ya),
|
|
1811
|
+
cols: f.cols
|
|
1812
|
+
}, null, 40, Ct),
|
|
1813
|
+
c(ee)(f.message, f.showMessage) ? (m(), x(Q, {
|
|
1803
1814
|
key: 0,
|
|
1804
1815
|
size: "small",
|
|
1805
|
-
icon:
|
|
1806
|
-
id:
|
|
1816
|
+
icon: f.messageIcon,
|
|
1817
|
+
id: u.value
|
|
1807
1818
|
}, {
|
|
1808
|
-
default:
|
|
1809
|
-
|
|
1819
|
+
default: V(() => [
|
|
1820
|
+
$(w(f.message), 1)
|
|
1810
1821
|
]),
|
|
1811
1822
|
_: 1
|
|
1812
|
-
}, 8, ["icon", "id"])) :
|
|
1813
|
-
|
|
1823
|
+
}, 8, ["icon", "id"])) : R("", !0),
|
|
1824
|
+
j(Q, {
|
|
1814
1825
|
size: "small",
|
|
1815
1826
|
semantic: "successful",
|
|
1816
|
-
id:
|
|
1827
|
+
id: s.value
|
|
1817
1828
|
}, {
|
|
1818
|
-
default:
|
|
1819
|
-
|
|
1829
|
+
default: V(() => [
|
|
1830
|
+
$(w(f.validMessage ?? c(se)), 1)
|
|
1820
1831
|
]),
|
|
1821
1832
|
_: 1
|
|
1822
1833
|
}, 8, ["id"]),
|
|
1823
|
-
|
|
1834
|
+
j(Q, {
|
|
1824
1835
|
size: "small",
|
|
1825
1836
|
semantic: "critical",
|
|
1826
|
-
id:
|
|
1837
|
+
id: b.value
|
|
1827
1838
|
}, {
|
|
1828
|
-
default:
|
|
1829
|
-
var
|
|
1839
|
+
default: V(() => {
|
|
1840
|
+
var p;
|
|
1830
1841
|
return [
|
|
1831
|
-
|
|
1842
|
+
$(w(f.invalidMessage ?? (((p = _.value) == null ? void 0 : p.validationMessage) || c(ue))), 1)
|
|
1832
1843
|
];
|
|
1833
1844
|
}),
|
|
1834
1845
|
_: 1
|
|
1835
1846
|
}, 8, ["id"]),
|
|
1836
|
-
I("span",
|
|
1837
|
-
], 10,
|
|
1847
|
+
I("span", Ft, w(r.value), 1)
|
|
1848
|
+
], 10, St));
|
|
1838
1849
|
}
|
|
1839
|
-
}),
|
|
1850
|
+
}), Dt = ["id", "data-width", "data-icon", "data-hide-icon", "data-active", "aria-disabled"], Nt = ["aria-haspopup", "aria-expanded", "disabled"], Mt = ["data-auto-close", "id"], Rt = {
|
|
1840
1851
|
key: 0,
|
|
1841
1852
|
class: "db-mobile-navigation-back"
|
|
1842
|
-
},
|
|
1853
|
+
}, xi = /* @__PURE__ */ M({
|
|
1843
1854
|
__name: "navigation-item",
|
|
1844
1855
|
props: {
|
|
1845
1856
|
active: { type: Boolean, default: void 0 },
|
|
@@ -1860,119 +1871,119 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1860
1871
|
showIcon: { type: Boolean, default: void 0 },
|
|
1861
1872
|
text: { default: void 0 }
|
|
1862
1873
|
},
|
|
1863
|
-
setup(
|
|
1864
|
-
const
|
|
1865
|
-
"sub-navigation-" +
|
|
1866
|
-
),
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
}),
|
|
1870
|
-
() => [
|
|
1874
|
+
setup(i) {
|
|
1875
|
+
const t = i, l = n(!1), e = n(!1), a = n(!0), u = n(!1), s = n(!1), b = n(
|
|
1876
|
+
"sub-navigation-" + Y()
|
|
1877
|
+
), d = n(void 0), v = n(null);
|
|
1878
|
+
W(() => {
|
|
1879
|
+
l.value = !0;
|
|
1880
|
+
}), A(
|
|
1881
|
+
() => [t.subNavigationExpanded],
|
|
1871
1882
|
() => {
|
|
1872
|
-
|
|
1883
|
+
t.subNavigationExpanded !== void 0 && (u.value = !!t.subNavigationExpanded);
|
|
1873
1884
|
},
|
|
1874
1885
|
{
|
|
1875
1886
|
immediate: !0,
|
|
1876
1887
|
flush: "post"
|
|
1877
1888
|
}
|
|
1878
|
-
),
|
|
1879
|
-
() => [
|
|
1889
|
+
), A(
|
|
1890
|
+
() => [l.value],
|
|
1880
1891
|
() => {
|
|
1881
|
-
|
|
1892
|
+
O();
|
|
1882
1893
|
},
|
|
1883
1894
|
{
|
|
1884
1895
|
immediate: !0,
|
|
1885
1896
|
flush: "post"
|
|
1886
1897
|
}
|
|
1887
1898
|
);
|
|
1888
|
-
function
|
|
1889
|
-
|
|
1890
|
-
|
|
1899
|
+
function r(T) {
|
|
1900
|
+
Ke(T) && (s.value = !0, J(() => {
|
|
1901
|
+
s.value = !1;
|
|
1891
1902
|
}, 300));
|
|
1892
1903
|
}
|
|
1893
|
-
function
|
|
1894
|
-
|
|
1904
|
+
function _(T) {
|
|
1905
|
+
t.onClick && t.onClick(T), e.value && (u.value = !0);
|
|
1895
1906
|
}
|
|
1896
|
-
function
|
|
1897
|
-
|
|
1907
|
+
function S(T) {
|
|
1908
|
+
T.stopPropagation(), u.value = !1;
|
|
1898
1909
|
}
|
|
1899
|
-
function
|
|
1900
|
-
var
|
|
1901
|
-
if (
|
|
1902
|
-
const
|
|
1903
|
-
|
|
1910
|
+
function O() {
|
|
1911
|
+
var T;
|
|
1912
|
+
if (l.value && document && b.value) {
|
|
1913
|
+
const h = document == null ? void 0 : document.getElementById(
|
|
1914
|
+
b.value
|
|
1904
1915
|
);
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1916
|
+
h && (((T = h.children) == null ? void 0 : T.length) > 0 ? (e.value = !0, d.value || (d.value = new Pa(
|
|
1917
|
+
v.value,
|
|
1918
|
+
h
|
|
1908
1919
|
))) : a.value = !1);
|
|
1909
1920
|
}
|
|
1910
1921
|
}
|
|
1911
|
-
return (
|
|
1922
|
+
return (T, h) => (m(), g("li", {
|
|
1912
1923
|
ref_key: "_ref",
|
|
1913
|
-
ref:
|
|
1914
|
-
id:
|
|
1915
|
-
onMouseover:
|
|
1916
|
-
var
|
|
1917
|
-
return (
|
|
1924
|
+
ref: v,
|
|
1925
|
+
id: T.id,
|
|
1926
|
+
onMouseover: h[2] || (h[2] = async (f) => {
|
|
1927
|
+
var B;
|
|
1928
|
+
return (B = d.value) == null ? void 0 : B.enableFollow();
|
|
1918
1929
|
}),
|
|
1919
|
-
onMouseleave:
|
|
1920
|
-
var
|
|
1921
|
-
return (
|
|
1930
|
+
onMouseleave: h[3] || (h[3] = async (f) => {
|
|
1931
|
+
var B;
|
|
1932
|
+
return (B = d.value) == null ? void 0 : B.disableFollow();
|
|
1922
1933
|
}),
|
|
1923
|
-
onMousemove:
|
|
1924
|
-
var
|
|
1925
|
-
return (
|
|
1934
|
+
onMousemove: h[4] || (h[4] = async (f) => {
|
|
1935
|
+
var B;
|
|
1936
|
+
return (B = d.value) == null ? void 0 : B.followByMouseEvent(f);
|
|
1926
1937
|
}),
|
|
1927
|
-
class:
|
|
1928
|
-
"data-width":
|
|
1929
|
-
"data-icon":
|
|
1930
|
-
"data-hide-icon":
|
|
1931
|
-
"data-active":
|
|
1932
|
-
"aria-disabled":
|
|
1938
|
+
class: F(c(D)("db-navigation-item", t.class)),
|
|
1939
|
+
"data-width": T.width,
|
|
1940
|
+
"data-icon": T.icon,
|
|
1941
|
+
"data-hide-icon": c(H)(T.showIcon),
|
|
1942
|
+
"data-active": T.active,
|
|
1943
|
+
"aria-disabled": c(X)(T.disabled)
|
|
1933
1944
|
}, [
|
|
1934
|
-
a.value ?
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
], 64)) :
|
|
1945
|
+
a.value ? R("", !0) : (m(), g(G, { key: 0 }, [
|
|
1946
|
+
T.text ? (m(), g(G, { key: 0 }, [
|
|
1947
|
+
$(w(T.text), 1)
|
|
1948
|
+
], 64)) : L(T.$slots, "default", { key: 1 })
|
|
1938
1949
|
], 64)),
|
|
1939
|
-
a.value ? (m(), g(
|
|
1950
|
+
a.value ? (m(), g(G, { key: 1 }, [
|
|
1940
1951
|
I("button", {
|
|
1941
1952
|
class: "db-navigation-item-expand-button",
|
|
1942
1953
|
"aria-haspopup": e.value,
|
|
1943
|
-
"aria-expanded":
|
|
1944
|
-
disabled:
|
|
1945
|
-
onClick:
|
|
1954
|
+
"aria-expanded": u.value,
|
|
1955
|
+
disabled: T.disabled,
|
|
1956
|
+
onClick: h[0] || (h[0] = async (f) => _(f))
|
|
1946
1957
|
}, [
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
], 64)) :
|
|
1950
|
-
], 8,
|
|
1958
|
+
T.text ? (m(), g(G, { key: 0 }, [
|
|
1959
|
+
$(w(T.text), 1)
|
|
1960
|
+
], 64)) : L(T.$slots, "default", { key: 1 })
|
|
1961
|
+
], 8, Nt),
|
|
1951
1962
|
I("menu", {
|
|
1952
1963
|
class: "db-sub-navigation",
|
|
1953
|
-
"data-auto-close":
|
|
1954
|
-
id:
|
|
1955
|
-
onClick:
|
|
1964
|
+
"data-auto-close": s.value,
|
|
1965
|
+
id: b.value,
|
|
1966
|
+
onClick: h[1] || (h[1] = async (f) => r(f))
|
|
1956
1967
|
}, [
|
|
1957
|
-
e.value ? (m(), g("div",
|
|
1958
|
-
|
|
1968
|
+
e.value ? (m(), g("div", Rt, [
|
|
1969
|
+
j(he, {
|
|
1959
1970
|
icon: "arrow_left",
|
|
1960
1971
|
variant: "ghost",
|
|
1961
|
-
id:
|
|
1962
|
-
onClick: (
|
|
1972
|
+
id: T.backButtonId,
|
|
1973
|
+
onClick: (f) => S(f)
|
|
1963
1974
|
}, {
|
|
1964
|
-
default:
|
|
1965
|
-
|
|
1975
|
+
default: V(() => [
|
|
1976
|
+
$(w(T.backButtonText ?? c(ha)), 1)
|
|
1966
1977
|
]),
|
|
1967
1978
|
_: 1
|
|
1968
1979
|
}, 8, ["id", "onClick"])
|
|
1969
|
-
])) :
|
|
1970
|
-
|
|
1971
|
-
], 8,
|
|
1972
|
-
], 64)) :
|
|
1973
|
-
], 42,
|
|
1980
|
+
])) : R("", !0),
|
|
1981
|
+
L(T.$slots, "sub-navigation")
|
|
1982
|
+
], 8, Mt)
|
|
1983
|
+
], 64)) : R("", !0)
|
|
1984
|
+
], 42, Dt));
|
|
1974
1985
|
}
|
|
1975
|
-
}),
|
|
1986
|
+
}), zt = ["id"], Ut = ["aria-disabled", "open"], Gt = /* @__PURE__ */ M({
|
|
1976
1987
|
__name: "accordion-item",
|
|
1977
1988
|
props: {
|
|
1978
1989
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -1988,43 +1999,43 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
1988
1999
|
autofocus: { type: Boolean },
|
|
1989
2000
|
onToggle: { type: Function, default: void 0 }
|
|
1990
2001
|
},
|
|
1991
|
-
setup(
|
|
1992
|
-
const
|
|
1993
|
-
|
|
1994
|
-
|
|
2002
|
+
setup(i) {
|
|
2003
|
+
const t = i, l = n(ye), e = n(!1), a = n(null);
|
|
2004
|
+
W(() => {
|
|
2005
|
+
l.value = t.id || "accordion-item-" + Y(), t.defaultOpen && (e.value = t.defaultOpen);
|
|
1995
2006
|
});
|
|
1996
|
-
function
|
|
1997
|
-
|
|
1998
|
-
const
|
|
1999
|
-
|
|
2000
|
-
}
|
|
2001
|
-
return (
|
|
2002
|
-
id:
|
|
2003
|
-
class:
|
|
2007
|
+
function u(s) {
|
|
2008
|
+
s == null || s.preventDefault();
|
|
2009
|
+
const b = !e.value;
|
|
2010
|
+
t.onToggle && t.onToggle(b), e.value = b;
|
|
2011
|
+
}
|
|
2012
|
+
return (s, b) => (m(), g("li", {
|
|
2013
|
+
id: l.value,
|
|
2014
|
+
class: F(c(D)("db-accordion-item", t.class))
|
|
2004
2015
|
}, [
|
|
2005
2016
|
I("details", {
|
|
2006
|
-
"aria-disabled":
|
|
2017
|
+
"aria-disabled": c(X)(s.disabled),
|
|
2007
2018
|
ref_key: "_ref",
|
|
2008
2019
|
ref: a,
|
|
2009
2020
|
open: e.value
|
|
2010
2021
|
}, [
|
|
2011
2022
|
I("summary", {
|
|
2012
|
-
onClick:
|
|
2023
|
+
onClick: b[0] || (b[0] = async (d) => u(d))
|
|
2013
2024
|
}, [
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
], 64)) :
|
|
2017
|
-
|
|
2025
|
+
s.headlinePlain ? (m(), g(G, { key: 0 }, [
|
|
2026
|
+
$(w(s.headlinePlain), 1)
|
|
2027
|
+
], 64)) : R("", !0),
|
|
2028
|
+
s.headlinePlain ? R("", !0) : L(s.$slots, "headline", { key: 1 })
|
|
2018
2029
|
]),
|
|
2019
2030
|
I("div", null, [
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
], 64)) :
|
|
2031
|
+
s.text ? (m(), g(G, { key: 0 }, [
|
|
2032
|
+
$(w(s.text), 1)
|
|
2033
|
+
], 64)) : L(s.$slots, "default", { key: 1 })
|
|
2023
2034
|
])
|
|
2024
|
-
], 8,
|
|
2025
|
-
], 10,
|
|
2035
|
+
], 8, Ut)
|
|
2036
|
+
], 10, zt));
|
|
2026
2037
|
}
|
|
2027
|
-
}),
|
|
2038
|
+
}), Pt = ["id", "data-variant"], el = /* @__PURE__ */ M({
|
|
2028
2039
|
__name: "accordion",
|
|
2029
2040
|
props: {
|
|
2030
2041
|
behavior: { default: void 0 },
|
|
@@ -2040,50 +2051,50 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2040
2051
|
id: { default: void 0 },
|
|
2041
2052
|
autofocus: { type: Boolean }
|
|
2042
2053
|
},
|
|
2043
|
-
setup(
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
}),
|
|
2048
|
-
() => [a.value,
|
|
2054
|
+
setup(i) {
|
|
2055
|
+
const t = i, l = n(ye), e = n(""), a = n(!1), u = n(!1), s = n(null);
|
|
2056
|
+
W(() => {
|
|
2057
|
+
l.value = t.id || "accordion-" + Y(), a.value = !0, u.value = !0;
|
|
2058
|
+
}), A(
|
|
2059
|
+
() => [a.value, t.name, t.behavior, l.value],
|
|
2049
2060
|
() => {
|
|
2050
|
-
a.value && (
|
|
2061
|
+
a.value && (t.behavior === "single" ? t.name ? e.value !== t.name && (e.value = t.name) : e.value !== l.value && l.value && (e.value = l.value) : e.value = "");
|
|
2051
2062
|
},
|
|
2052
2063
|
{
|
|
2053
2064
|
immediate: !0,
|
|
2054
2065
|
flush: "post"
|
|
2055
2066
|
}
|
|
2056
|
-
),
|
|
2057
|
-
() => [
|
|
2067
|
+
), A(
|
|
2068
|
+
() => [s.value, e.value],
|
|
2058
2069
|
() => {
|
|
2059
|
-
if (
|
|
2060
|
-
const
|
|
2061
|
-
if (
|
|
2062
|
-
for (const
|
|
2063
|
-
e.value === "" ?
|
|
2070
|
+
if (s.value) {
|
|
2071
|
+
const d = s.value.getElementsByTagName("details");
|
|
2072
|
+
if (d)
|
|
2073
|
+
for (const v of Array.from(d))
|
|
2074
|
+
e.value === "" ? v.removeAttribute("name") : v.name = e.value;
|
|
2064
2075
|
}
|
|
2065
2076
|
},
|
|
2066
2077
|
{
|
|
2067
2078
|
immediate: !0,
|
|
2068
2079
|
flush: "post"
|
|
2069
2080
|
}
|
|
2070
|
-
),
|
|
2071
|
-
() => [
|
|
2081
|
+
), A(
|
|
2082
|
+
() => [s.value, u.value, t.initOpenIndex],
|
|
2072
2083
|
() => {
|
|
2073
|
-
var
|
|
2074
|
-
if (
|
|
2075
|
-
if (
|
|
2076
|
-
const
|
|
2077
|
-
if (
|
|
2078
|
-
const
|
|
2079
|
-
Array.from(
|
|
2080
|
-
(
|
|
2081
|
-
|
|
2084
|
+
var d;
|
|
2085
|
+
if (s.value && u.value) {
|
|
2086
|
+
if (t.initOpenIndex && ((d = t.initOpenIndex) == null ? void 0 : d.length) > 0) {
|
|
2087
|
+
const v = s.value.getElementsByTagName("details");
|
|
2088
|
+
if (v) {
|
|
2089
|
+
const r = t.behavior === "single" && t.initOpenIndex.length > 1 ? [t.initOpenIndex[0]] : t.initOpenIndex;
|
|
2090
|
+
Array.from(v).forEach(
|
|
2091
|
+
(_, S) => {
|
|
2092
|
+
r.includes(S) && (_.open = !0);
|
|
2082
2093
|
}
|
|
2083
2094
|
);
|
|
2084
2095
|
}
|
|
2085
2096
|
}
|
|
2086
|
-
|
|
2097
|
+
u.value = !1;
|
|
2087
2098
|
}
|
|
2088
2099
|
},
|
|
2089
2100
|
{
|
|
@@ -2091,31 +2102,31 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2091
2102
|
flush: "post"
|
|
2092
2103
|
}
|
|
2093
2104
|
);
|
|
2094
|
-
function
|
|
2105
|
+
function b(d) {
|
|
2095
2106
|
try {
|
|
2096
|
-
return typeof
|
|
2097
|
-
} catch (
|
|
2098
|
-
console.error(
|
|
2107
|
+
return typeof d == "string" ? JSON.parse(d) : d;
|
|
2108
|
+
} catch (v) {
|
|
2109
|
+
console.error(v);
|
|
2099
2110
|
}
|
|
2100
2111
|
return [];
|
|
2101
2112
|
}
|
|
2102
|
-
return (
|
|
2113
|
+
return (d, v) => (m(), g("ul", {
|
|
2103
2114
|
ref_key: "_ref",
|
|
2104
|
-
ref:
|
|
2105
|
-
id:
|
|
2106
|
-
class:
|
|
2107
|
-
"data-variant":
|
|
2115
|
+
ref: s,
|
|
2116
|
+
id: l.value,
|
|
2117
|
+
class: F(c(D)("db-accordion", t.class)),
|
|
2118
|
+
"data-variant": d.variant
|
|
2108
2119
|
}, [
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
key: `accordion-item-${
|
|
2112
|
-
headlinePlain:
|
|
2113
|
-
disabled:
|
|
2114
|
-
text:
|
|
2115
|
-
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) :
|
|
2116
|
-
], 10,
|
|
2120
|
+
d.items ? R("", !0) : L(d.$slots, "default", { key: 0 }),
|
|
2121
|
+
d.items ? (m(!0), g(G, { key: 1 }, ce(b(d.items), (r, _) => (m(), x(Gt, {
|
|
2122
|
+
key: `accordion-item-${_}`,
|
|
2123
|
+
headlinePlain: r.headlinePlain,
|
|
2124
|
+
disabled: r.disabled,
|
|
2125
|
+
text: r.text
|
|
2126
|
+
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : R("", !0)
|
|
2127
|
+
], 10, Pt));
|
|
2117
2128
|
}
|
|
2118
|
-
}),
|
|
2129
|
+
}), qt = ["id", "aria-labelledby"], al = /* @__PURE__ */ M({
|
|
2119
2130
|
__name: "navigation",
|
|
2120
2131
|
props: {
|
|
2121
2132
|
children: { default: void 0 },
|
|
@@ -2126,23 +2137,23 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2126
2137
|
autofocus: { type: Boolean },
|
|
2127
2138
|
labelledBy: { default: void 0 }
|
|
2128
2139
|
},
|
|
2129
|
-
setup(
|
|
2130
|
-
const
|
|
2131
|
-
return
|
|
2132
|
-
|
|
2133
|
-
}), (a,
|
|
2140
|
+
setup(i) {
|
|
2141
|
+
const t = i, l = n(ye), e = n(null);
|
|
2142
|
+
return W(() => {
|
|
2143
|
+
l.value = t.id || "navigation-" + Y();
|
|
2144
|
+
}), (a, u) => (m(), g("nav", {
|
|
2134
2145
|
ref_key: "_ref",
|
|
2135
2146
|
ref: e,
|
|
2136
|
-
id:
|
|
2147
|
+
id: l.value,
|
|
2137
2148
|
"aria-labelledby": a.labelledBy,
|
|
2138
|
-
class:
|
|
2149
|
+
class: F(c(D)("db-navigation", t.class))
|
|
2139
2150
|
}, [
|
|
2140
2151
|
I("menu", null, [
|
|
2141
|
-
|
|
2152
|
+
L(a.$slots, "default")
|
|
2142
2153
|
])
|
|
2143
|
-
], 10,
|
|
2154
|
+
], 10, qt));
|
|
2144
2155
|
}
|
|
2145
|
-
}),
|
|
2156
|
+
}), Vt = ["id"], Ot = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], tl = /* @__PURE__ */ M({
|
|
2146
2157
|
__name: "popover",
|
|
2147
2158
|
props: {
|
|
2148
2159
|
open: { type: Boolean, default: void 0 },
|
|
@@ -2160,28 +2171,28 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2160
2171
|
animation: { type: Boolean, default: void 0 },
|
|
2161
2172
|
width: { default: void 0 }
|
|
2162
2173
|
},
|
|
2163
|
-
setup(
|
|
2164
|
-
const
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
}),
|
|
2168
|
-
() => [a.value,
|
|
2174
|
+
setup(i) {
|
|
2175
|
+
const t = i, l = n(!1), e = n(!1), a = n(null);
|
|
2176
|
+
W(() => {
|
|
2177
|
+
l.value = !0;
|
|
2178
|
+
}), A(
|
|
2179
|
+
() => [a.value, l.value],
|
|
2169
2180
|
() => {
|
|
2170
|
-
if (a.value &&
|
|
2171
|
-
const
|
|
2172
|
-
|
|
2181
|
+
if (a.value && l.value) {
|
|
2182
|
+
const d = b();
|
|
2183
|
+
d && (d.ariaHasPopup = "true"), l.value = !1;
|
|
2173
2184
|
}
|
|
2174
2185
|
},
|
|
2175
2186
|
{
|
|
2176
2187
|
immediate: !0,
|
|
2177
2188
|
flush: "post"
|
|
2178
2189
|
}
|
|
2179
|
-
),
|
|
2190
|
+
), A(
|
|
2180
2191
|
() => [a.value, e.value],
|
|
2181
2192
|
() => {
|
|
2182
2193
|
if (a.value) {
|
|
2183
|
-
const
|
|
2184
|
-
|
|
2194
|
+
const d = b();
|
|
2195
|
+
d && (d.ariaExpanded = (!!e.value).toString());
|
|
2185
2196
|
}
|
|
2186
2197
|
},
|
|
2187
2198
|
{
|
|
@@ -2189,52 +2200,52 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2189
2200
|
flush: "post"
|
|
2190
2201
|
}
|
|
2191
2202
|
);
|
|
2192
|
-
function
|
|
2203
|
+
function u() {
|
|
2193
2204
|
if (e.value = !0, !a.value) return;
|
|
2194
|
-
const
|
|
2195
|
-
|
|
2205
|
+
const d = a.value.querySelector("article");
|
|
2206
|
+
d && Se(d);
|
|
2196
2207
|
}
|
|
2197
|
-
function
|
|
2198
|
-
const
|
|
2199
|
-
(!
|
|
2208
|
+
function s(d) {
|
|
2209
|
+
const v = d.target;
|
|
2210
|
+
(!v.parentNode || v.parentNode.querySelector(":focus") !== v && v.parentNode.querySelector(":focus-within") !== v && v.parentNode.querySelector(":hover") !== v) && (e.value = !1);
|
|
2200
2211
|
}
|
|
2201
|
-
function
|
|
2202
|
-
var
|
|
2212
|
+
function b() {
|
|
2213
|
+
var d;
|
|
2203
2214
|
if (a.value) {
|
|
2204
|
-
const
|
|
2205
|
-
if (
|
|
2206
|
-
const
|
|
2207
|
-
return
|
|
2215
|
+
const v = Array.from(a.value.children);
|
|
2216
|
+
if (v.length >= 2) {
|
|
2217
|
+
const r = v[0];
|
|
2218
|
+
return r.tagName.includes("-") ? ((d = r.children) == null ? void 0 : d.length) > 0 ? r.children[0] : null : r;
|
|
2208
2219
|
}
|
|
2209
2220
|
}
|
|
2210
2221
|
return null;
|
|
2211
2222
|
}
|
|
2212
|
-
return (
|
|
2223
|
+
return (d, v) => (m(), g("div", {
|
|
2213
2224
|
ref_key: "_ref",
|
|
2214
2225
|
ref: a,
|
|
2215
|
-
id:
|
|
2216
|
-
class:
|
|
2217
|
-
onFocus:
|
|
2218
|
-
onBlur:
|
|
2219
|
-
onMouseenter:
|
|
2220
|
-
onMouseleave:
|
|
2226
|
+
id: d.id,
|
|
2227
|
+
class: F(c(D)("db-popover", t.class)),
|
|
2228
|
+
onFocus: v[0] || (v[0] = async (r) => u()),
|
|
2229
|
+
onBlur: v[1] || (v[1] = async (r) => s(r)),
|
|
2230
|
+
onMouseenter: v[2] || (v[2] = async (r) => u()),
|
|
2231
|
+
onMouseleave: v[3] || (v[3] = async (r) => s(r))
|
|
2221
2232
|
}, [
|
|
2222
|
-
|
|
2233
|
+
L(d.$slots, "trigger"),
|
|
2223
2234
|
I("article", {
|
|
2224
2235
|
class: "db-popover-content",
|
|
2225
|
-
"data-spacing":
|
|
2226
|
-
"data-gap":
|
|
2227
|
-
"data-animation":
|
|
2228
|
-
"data-open":
|
|
2229
|
-
"data-delay":
|
|
2230
|
-
"data-width":
|
|
2231
|
-
"data-placement":
|
|
2236
|
+
"data-spacing": d.spacing,
|
|
2237
|
+
"data-gap": c(X)(d.gap),
|
|
2238
|
+
"data-animation": c(X)(d.animation ?? !0),
|
|
2239
|
+
"data-open": d.open,
|
|
2240
|
+
"data-delay": d.delay,
|
|
2241
|
+
"data-width": d.width,
|
|
2242
|
+
"data-placement": d.placement
|
|
2232
2243
|
}, [
|
|
2233
|
-
|
|
2234
|
-
], 8,
|
|
2235
|
-
], 42,
|
|
2244
|
+
L(d.$slots, "default")
|
|
2245
|
+
], 8, Ot)
|
|
2246
|
+
], 42, Vt));
|
|
2236
2247
|
}
|
|
2237
|
-
}),
|
|
2248
|
+
}), Wt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], Xt = /* @__PURE__ */ M({
|
|
2238
2249
|
__name: "tooltip",
|
|
2239
2250
|
props: {
|
|
2240
2251
|
showArrow: { type: Boolean, default: void 0 },
|
|
@@ -2250,18 +2261,18 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2250
2261
|
animation: { type: Boolean, default: void 0 },
|
|
2251
2262
|
width: { default: void 0 }
|
|
2252
2263
|
},
|
|
2253
|
-
setup(
|
|
2254
|
-
const
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
}),
|
|
2264
|
+
setup(i) {
|
|
2265
|
+
const t = i, l = n(ye), e = n(!1), a = n(null);
|
|
2266
|
+
W(() => {
|
|
2267
|
+
l.value = t.id || "tooltip-" + Y(), e.value = !0;
|
|
2268
|
+
}), A(
|
|
2258
2269
|
() => [a.value, e.value],
|
|
2259
2270
|
() => {
|
|
2260
|
-
if (a.value && e.value &&
|
|
2261
|
-
let
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
}),
|
|
2271
|
+
if (a.value && e.value && l.value) {
|
|
2272
|
+
let b = a.value.parentElement;
|
|
2273
|
+
b && b.localName.includes("tooltip") && (b = b.parentElement), b && (["mouseenter", "focus"].forEach((d) => {
|
|
2274
|
+
b.addEventListener(d, () => s());
|
|
2275
|
+
}), b.setAttribute("data-has-tooltip", "true"), b.setAttribute("aria-describedby", l.value)), e.value = !1;
|
|
2265
2276
|
}
|
|
2266
2277
|
},
|
|
2267
2278
|
{
|
|
@@ -2269,32 +2280,32 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2269
2280
|
flush: "post"
|
|
2270
2281
|
}
|
|
2271
2282
|
);
|
|
2272
|
-
function
|
|
2273
|
-
|
|
2283
|
+
function u(b) {
|
|
2284
|
+
b.stopPropagation();
|
|
2274
2285
|
}
|
|
2275
|
-
function
|
|
2276
|
-
a.value &&
|
|
2286
|
+
function s() {
|
|
2287
|
+
a.value && Se(a.value);
|
|
2277
2288
|
}
|
|
2278
|
-
return (
|
|
2289
|
+
return (b, d) => (m(), g("i", {
|
|
2279
2290
|
role: "tooltip",
|
|
2280
2291
|
"aria-hidden": "true",
|
|
2281
2292
|
"data-gap": "true",
|
|
2282
2293
|
ref_key: "_ref",
|
|
2283
2294
|
ref: a,
|
|
2284
|
-
class:
|
|
2285
|
-
id:
|
|
2286
|
-
"data-emphasis":
|
|
2287
|
-
"data-animation":
|
|
2288
|
-
"data-delay":
|
|
2289
|
-
"data-width":
|
|
2290
|
-
"data-show-arrow":
|
|
2291
|
-
"data-placement":
|
|
2292
|
-
onClick:
|
|
2295
|
+
class: F(c(D)("db-tooltip", t.class)),
|
|
2296
|
+
id: l.value,
|
|
2297
|
+
"data-emphasis": b.emphasis,
|
|
2298
|
+
"data-animation": c(X)(b.animation ?? !0),
|
|
2299
|
+
"data-delay": b.delay,
|
|
2300
|
+
"data-width": b.width,
|
|
2301
|
+
"data-show-arrow": c(X)(b.showArrow ?? !0),
|
|
2302
|
+
"data-placement": b.placement,
|
|
2303
|
+
onClick: d[0] || (d[0] = async (v) => u(v))
|
|
2293
2304
|
}, [
|
|
2294
|
-
|
|
2295
|
-
], 10,
|
|
2305
|
+
L(b.$slots, "default")
|
|
2306
|
+
], 10, Wt));
|
|
2296
2307
|
}
|
|
2297
|
-
}),
|
|
2308
|
+
}), Ht = ["id"], jt = { role: "tablist" }, Yt = /* @__PURE__ */ M({
|
|
2298
2309
|
__name: "tab-list",
|
|
2299
2310
|
props: {
|
|
2300
2311
|
children: { default: void 0 },
|
|
@@ -2304,22 +2315,22 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2304
2315
|
id: { default: void 0 },
|
|
2305
2316
|
autofocus: { type: Boolean }
|
|
2306
2317
|
},
|
|
2307
|
-
setup(
|
|
2308
|
-
const
|
|
2309
|
-
return
|
|
2310
|
-
|
|
2311
|
-
}), (a,
|
|
2318
|
+
setup(i) {
|
|
2319
|
+
const t = i, l = n(ye), e = n(null);
|
|
2320
|
+
return W(() => {
|
|
2321
|
+
l.value = t.id || "tab-list-" + Y();
|
|
2322
|
+
}), (a, u) => (m(), g("div", {
|
|
2312
2323
|
ref_key: "_ref",
|
|
2313
2324
|
ref: e,
|
|
2314
|
-
id:
|
|
2315
|
-
class:
|
|
2325
|
+
id: l.value,
|
|
2326
|
+
class: F(c(D)("db-tab-list", t.class))
|
|
2316
2327
|
}, [
|
|
2317
|
-
I("ul",
|
|
2318
|
-
|
|
2328
|
+
I("ul", jt, [
|
|
2329
|
+
L(a.$slots, "default")
|
|
2319
2330
|
])
|
|
2320
|
-
], 10,
|
|
2331
|
+
], 10, Ht));
|
|
2321
2332
|
}
|
|
2322
|
-
}),
|
|
2333
|
+
}), Kt = ["id", "aria-labelledby"], Jt = /* @__PURE__ */ M({
|
|
2323
2334
|
__name: "tab-panel",
|
|
2324
2335
|
props: {
|
|
2325
2336
|
content: { default: void 0 },
|
|
@@ -2331,24 +2342,24 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2331
2342
|
autofocus: { type: Boolean },
|
|
2332
2343
|
labelledBy: { default: void 0 }
|
|
2333
2344
|
},
|
|
2334
|
-
setup(
|
|
2335
|
-
const
|
|
2336
|
-
return
|
|
2345
|
+
setup(i) {
|
|
2346
|
+
const t = i, l = n(null);
|
|
2347
|
+
return W(() => {
|
|
2337
2348
|
}), (e, a) => (m(), g("section", {
|
|
2338
2349
|
role: "tabpanel",
|
|
2339
2350
|
ref_key: "_ref",
|
|
2340
|
-
ref:
|
|
2341
|
-
class:
|
|
2351
|
+
ref: l,
|
|
2352
|
+
class: F(c(D)("db-tab-panel", t.class)),
|
|
2342
2353
|
id: e.id,
|
|
2343
2354
|
"aria-labelledby": e.labelledBy
|
|
2344
2355
|
}, [
|
|
2345
|
-
e.content ? (m(), g(
|
|
2346
|
-
|
|
2347
|
-
], 64)) :
|
|
2348
|
-
|
|
2349
|
-
], 10,
|
|
2356
|
+
e.content ? (m(), g(G, { key: 0 }, [
|
|
2357
|
+
$(w(e.content), 1)
|
|
2358
|
+
], 64)) : R("", !0),
|
|
2359
|
+
L(e.$slots, "default")
|
|
2360
|
+
], 10, Kt));
|
|
2350
2361
|
}
|
|
2351
|
-
}),
|
|
2362
|
+
}), Qt = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], il = /* @__PURE__ */ M({
|
|
2352
2363
|
__name: "tabs",
|
|
2353
2364
|
props: {
|
|
2354
2365
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -2369,21 +2380,21 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2369
2380
|
width: { default: void 0 },
|
|
2370
2381
|
alignment: { default: void 0 }
|
|
2371
2382
|
},
|
|
2372
|
-
setup(
|
|
2373
|
-
const
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
}),
|
|
2377
|
-
() => [
|
|
2383
|
+
setup(i) {
|
|
2384
|
+
const t = i, l = n("tabs-" + Y()), e = n(""), a = n(!1), u = n(!1), s = n(!1), b = n(null), d = n(null);
|
|
2385
|
+
W(() => {
|
|
2386
|
+
l.value = t.id || l.value, e.value = `tabs-${t.name || Y()}`, a.value = !0;
|
|
2387
|
+
}), A(
|
|
2388
|
+
() => [d.value, a.value],
|
|
2378
2389
|
() => {
|
|
2379
|
-
if (
|
|
2380
|
-
|
|
2381
|
-
const
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
(
|
|
2390
|
+
if (d.value && a.value) {
|
|
2391
|
+
S(), O(!0);
|
|
2392
|
+
const h = d.value.querySelector(".db-tab-list");
|
|
2393
|
+
h && new MutationObserver((B) => {
|
|
2394
|
+
B.forEach((p) => {
|
|
2395
|
+
(p.removedNodes.length || p.addedNodes.length) && (S(), O());
|
|
2385
2396
|
});
|
|
2386
|
-
}).observe(
|
|
2397
|
+
}).observe(h, {
|
|
2387
2398
|
childList: !0,
|
|
2388
2399
|
subtree: !0
|
|
2389
2400
|
}), a.value = !1;
|
|
@@ -2394,151 +2405,151 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2394
2405
|
flush: "post"
|
|
2395
2406
|
}
|
|
2396
2407
|
);
|
|
2397
|
-
function h
|
|
2408
|
+
function v(h) {
|
|
2398
2409
|
try {
|
|
2399
|
-
return typeof
|
|
2400
|
-
} catch (
|
|
2401
|
-
console.error(
|
|
2410
|
+
return typeof h == "string" ? JSON.parse(h) : h;
|
|
2411
|
+
} catch (f) {
|
|
2412
|
+
console.error(f);
|
|
2402
2413
|
}
|
|
2403
2414
|
return [];
|
|
2404
2415
|
}
|
|
2405
|
-
function
|
|
2406
|
-
const
|
|
2407
|
-
|
|
2416
|
+
function r(h) {
|
|
2417
|
+
const f = h.scrollWidth > h.clientWidth;
|
|
2418
|
+
u.value = f && h.scrollLeft > 1, s.value = f && h.scrollLeft < h.scrollWidth - h.clientWidth;
|
|
2408
2419
|
}
|
|
2409
|
-
function
|
|
2410
|
-
var
|
|
2411
|
-
let
|
|
2412
|
-
|
|
2420
|
+
function _(h) {
|
|
2421
|
+
var B;
|
|
2422
|
+
let f = t.arrowScrollDistance || 100;
|
|
2423
|
+
h && (f *= -1), (B = b.value) == null || B.scrollBy({
|
|
2413
2424
|
top: 0,
|
|
2414
|
-
left:
|
|
2425
|
+
left: f,
|
|
2415
2426
|
behavior: "smooth"
|
|
2416
2427
|
});
|
|
2417
2428
|
}
|
|
2418
|
-
function
|
|
2419
|
-
if (
|
|
2420
|
-
const
|
|
2421
|
-
if (
|
|
2422
|
-
const
|
|
2423
|
-
|
|
2429
|
+
function S() {
|
|
2430
|
+
if (d.value) {
|
|
2431
|
+
const h = d.value.querySelector(".db-tab-list");
|
|
2432
|
+
if (h) {
|
|
2433
|
+
const f = h.querySelector('[role="tablist"]');
|
|
2434
|
+
f && (f.setAttribute(
|
|
2424
2435
|
"aria-orientation",
|
|
2425
|
-
|
|
2426
|
-
),
|
|
2427
|
-
|
|
2436
|
+
t.orientation || "horizontal"
|
|
2437
|
+
), t.behavior === "arrows" && (b.value = f, r(f), f.addEventListener("scroll", () => {
|
|
2438
|
+
r(f);
|
|
2428
2439
|
})));
|
|
2429
2440
|
}
|
|
2430
2441
|
}
|
|
2431
2442
|
}
|
|
2432
|
-
function
|
|
2433
|
-
if (
|
|
2434
|
-
const
|
|
2435
|
-
|
|
2443
|
+
function O(h) {
|
|
2444
|
+
if (d.value) {
|
|
2445
|
+
const f = Array.from(
|
|
2446
|
+
d.value.getElementsByClassName("db-tab-item")
|
|
2436
2447
|
);
|
|
2437
|
-
for (const
|
|
2438
|
-
const
|
|
2439
|
-
if (
|
|
2440
|
-
if (!
|
|
2441
|
-
const
|
|
2442
|
-
|
|
2448
|
+
for (const p of f) {
|
|
2449
|
+
const E = f.indexOf(p), y = p.querySelector("label"), z = p.querySelector("input");
|
|
2450
|
+
if (z && y) {
|
|
2451
|
+
if (!z.id) {
|
|
2452
|
+
const C = `${e.value}-tab-${E}`;
|
|
2453
|
+
y.setAttribute("for", C), z.setAttribute(
|
|
2443
2454
|
"aria-controls",
|
|
2444
|
-
`${e.value}-tab-panel-${
|
|
2445
|
-
),
|
|
2455
|
+
`${e.value}-tab-panel-${E}`
|
|
2456
|
+
), z.id = C, z.setAttribute("name", e.value);
|
|
2446
2457
|
}
|
|
2447
|
-
if (
|
|
2448
|
-
const
|
|
2449
|
-
|
|
2458
|
+
if (h) {
|
|
2459
|
+
const C = !t.initialSelectedMode || t.initialSelectedMode === "auto", U = t.initialSelectedIndex == null && E === 0 || t.initialSelectedIndex === E;
|
|
2460
|
+
C && U && z.click();
|
|
2450
2461
|
}
|
|
2451
2462
|
}
|
|
2452
2463
|
}
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2464
|
+
const B = Array.from(
|
|
2465
|
+
d.value.querySelectorAll(
|
|
2455
2466
|
":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
|
|
2456
2467
|
)
|
|
2457
2468
|
);
|
|
2458
|
-
for (const
|
|
2459
|
-
if (
|
|
2460
|
-
const
|
|
2461
|
-
|
|
2469
|
+
for (const p of B) {
|
|
2470
|
+
if (p.id) continue;
|
|
2471
|
+
const E = B.indexOf(p);
|
|
2472
|
+
p.id = `${e.value}-tab-panel-${E}`, p.setAttribute("aria-labelledby", `${e.value}-tab-${E}`);
|
|
2462
2473
|
}
|
|
2463
2474
|
}
|
|
2464
2475
|
}
|
|
2465
|
-
function
|
|
2466
|
-
if (
|
|
2467
|
-
const
|
|
2476
|
+
function T(h) {
|
|
2477
|
+
if (t.onIndexChange && h.target) {
|
|
2478
|
+
const f = h.target.closest("ul"), B = (
|
|
2468
2479
|
// db-tab-item for angular and stencil wrapping elements
|
|
2469
|
-
|
|
2480
|
+
h.target.closest("db-tab-item") ?? h.target.closest("li")
|
|
2470
2481
|
);
|
|
2471
|
-
|
|
2482
|
+
f !== null && B !== null && t.onIndexChange(Array.from(f.childNodes).indexOf(B));
|
|
2472
2483
|
}
|
|
2473
|
-
|
|
2484
|
+
t.onTabSelect && t.onTabSelect(h);
|
|
2474
2485
|
}
|
|
2475
|
-
return (
|
|
2486
|
+
return (h, f) => (m(), g("div", {
|
|
2476
2487
|
ref_key: "_ref",
|
|
2477
|
-
ref:
|
|
2478
|
-
id:
|
|
2479
|
-
class:
|
|
2480
|
-
"data-orientation":
|
|
2481
|
-
"data-scroll-behavior":
|
|
2482
|
-
"data-alignment":
|
|
2483
|
-
"data-width":
|
|
2484
|
-
onInput:
|
|
2488
|
+
ref: d,
|
|
2489
|
+
id: l.value,
|
|
2490
|
+
class: F(c(D)("db-tabs", t.class)),
|
|
2491
|
+
"data-orientation": h.orientation,
|
|
2492
|
+
"data-scroll-behavior": h.behavior,
|
|
2493
|
+
"data-alignment": h.alignment ?? "start",
|
|
2494
|
+
"data-width": h.width ?? "auto",
|
|
2495
|
+
onInput: f[0] || (f[0] = async (B) => T(B))
|
|
2485
2496
|
}, [
|
|
2486
|
-
|
|
2497
|
+
u.value ? (m(), x(he, {
|
|
2487
2498
|
key: 0,
|
|
2488
2499
|
class: "tabs-scroll-left",
|
|
2489
2500
|
variant: "ghost",
|
|
2490
2501
|
icon: "chevron_left",
|
|
2491
2502
|
type: "button",
|
|
2492
2503
|
noText: !0,
|
|
2493
|
-
onClick: (
|
|
2504
|
+
onClick: (B) => _(!0)
|
|
2494
2505
|
}, {
|
|
2495
|
-
default:
|
|
2496
|
-
|
|
2506
|
+
default: V(() => f[1] || (f[1] = [
|
|
2507
|
+
$(" Scroll left ")
|
|
2497
2508
|
])),
|
|
2498
2509
|
_: 1
|
|
2499
|
-
}, 8, ["onClick"])) :
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
default:
|
|
2503
|
-
(m(!0), g(
|
|
2504
|
-
key:
|
|
2505
|
-
active:
|
|
2506
|
-
label:
|
|
2507
|
-
iconAfter:
|
|
2508
|
-
icon:
|
|
2509
|
-
noText:
|
|
2510
|
+
}, 8, ["onClick"])) : R("", !0),
|
|
2511
|
+
h.tabs ? (m(), g(G, { key: 1 }, [
|
|
2512
|
+
j(Yt, null, {
|
|
2513
|
+
default: V(() => [
|
|
2514
|
+
(m(!0), g(G, null, ce(v(h.tabs), (B, p) => (m(), x(Lt, {
|
|
2515
|
+
key: h.name + "tab-item" + p,
|
|
2516
|
+
active: B.active,
|
|
2517
|
+
label: B.label,
|
|
2518
|
+
iconAfter: B.iconAfter,
|
|
2519
|
+
icon: B.icon,
|
|
2520
|
+
noText: B.noText
|
|
2510
2521
|
}, null, 8, ["active", "label", "iconAfter", "icon", "noText"]))), 128))
|
|
2511
2522
|
]),
|
|
2512
2523
|
_: 1
|
|
2513
2524
|
}),
|
|
2514
|
-
(m(!0), g(
|
|
2515
|
-
key:
|
|
2516
|
-
content:
|
|
2525
|
+
(m(!0), g(G, null, ce(v(h.tabs), (B, p) => (m(), x(Jt, {
|
|
2526
|
+
key: h.name + "tab-panel" + p,
|
|
2527
|
+
content: B.content
|
|
2517
2528
|
}, {
|
|
2518
|
-
default:
|
|
2519
|
-
|
|
2529
|
+
default: V(() => [
|
|
2530
|
+
$(w(B.children), 1)
|
|
2520
2531
|
]),
|
|
2521
2532
|
_: 2
|
|
2522
2533
|
}, 1032, ["content"]))), 128))
|
|
2523
|
-
], 64)) :
|
|
2524
|
-
|
|
2534
|
+
], 64)) : R("", !0),
|
|
2535
|
+
s.value ? (m(), x(he, {
|
|
2525
2536
|
key: 2,
|
|
2526
2537
|
class: "tabs-scroll-right",
|
|
2527
2538
|
variant: "ghost",
|
|
2528
2539
|
icon: "chevron_right",
|
|
2529
2540
|
type: "button",
|
|
2530
2541
|
noText: !0,
|
|
2531
|
-
onClick: (
|
|
2542
|
+
onClick: (B) => _()
|
|
2532
2543
|
}, {
|
|
2533
|
-
default:
|
|
2534
|
-
|
|
2544
|
+
default: V(() => f[2] || (f[2] = [
|
|
2545
|
+
$(" Scroll right ")
|
|
2535
2546
|
])),
|
|
2536
2547
|
_: 1
|
|
2537
|
-
}, 8, ["onClick"])) :
|
|
2538
|
-
|
|
2539
|
-
], 42,
|
|
2548
|
+
}, 8, ["onClick"])) : R("", !0),
|
|
2549
|
+
L(h.$slots, "default")
|
|
2550
|
+
], 42, Qt));
|
|
2540
2551
|
}
|
|
2541
|
-
}),
|
|
2552
|
+
}), ll = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], ol = ["medium", "small", "large", "none"], dl = ["medium", "small", "large", "none"], Zt = ["left", "right", "left-start", "left-end", "right-start", "right-end"], xt = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], nl = [...Zt, ...xt], sl = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], ul = ["horizontal", "vertical"], rl = ["full", "auto"], cl = ["full", "medium", "large", "small"], vl = ["none", "slow", "fast"], fl = ["auto", "fixed"], pl = ["small", "medium"], ei = ["weak", "strong"], hl = [...ei, "origin"], ml = ["invalid", "valid", "no-validation"], bl = ["above", "floating"], gl = ["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"], yl = ["time", "true", "false", "date", "page", "step", "location"], kl = ["_self", "_blank", "_parent", "_top"], Bl = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], wl = ["start", "center"], ai = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], _l = /* @__PURE__ */ M({
|
|
2542
2553
|
__name: "stack",
|
|
2543
2554
|
props: {
|
|
2544
2555
|
variant: { default: void 0 },
|
|
@@ -2554,117 +2565,908 @@ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-hea
|
|
|
2554
2565
|
autofocus: { type: Boolean },
|
|
2555
2566
|
gap: { default: void 0 }
|
|
2556
2567
|
},
|
|
2557
|
-
setup(
|
|
2558
|
-
const
|
|
2568
|
+
setup(i) {
|
|
2569
|
+
const t = i, l = n(null);
|
|
2559
2570
|
return (e, a) => (m(), g("div", {
|
|
2560
2571
|
ref_key: "_ref",
|
|
2561
|
-
ref:
|
|
2572
|
+
ref: l,
|
|
2562
2573
|
id: e.id,
|
|
2563
|
-
class:
|
|
2574
|
+
class: F(c(D)("db-stack", t.class)),
|
|
2564
2575
|
"data-gap": e.gap,
|
|
2565
2576
|
"data-variant": e.variant,
|
|
2566
2577
|
"data-direction": e.direction,
|
|
2567
2578
|
"data-alignment": e.alignment,
|
|
2568
2579
|
"data-justify-content": e.justifyContent,
|
|
2569
|
-
"data-wrap":
|
|
2580
|
+
"data-wrap": c(X)(e.wrap)
|
|
2581
|
+
}, [
|
|
2582
|
+
L(e.$slots, "default")
|
|
2583
|
+
], 10, ai));
|
|
2584
|
+
}
|
|
2585
|
+
}), ti = ["role", "aria-label", "id"], ii = /* @__PURE__ */ M({
|
|
2586
|
+
__name: "custom-select-list",
|
|
2587
|
+
props: {
|
|
2588
|
+
label: { default: void 0 },
|
|
2589
|
+
multiple: { type: Boolean, default: void 0 },
|
|
2590
|
+
children: { default: void 0 },
|
|
2591
|
+
className: { default: void 0 },
|
|
2592
|
+
class: {},
|
|
2593
|
+
describedbyid: {},
|
|
2594
|
+
id: { default: void 0 },
|
|
2595
|
+
autofocus: { type: Boolean }
|
|
2596
|
+
},
|
|
2597
|
+
setup(i) {
|
|
2598
|
+
const t = i, l = n(null);
|
|
2599
|
+
return (e, a) => (m(), g("div", {
|
|
2600
|
+
role: e.multiple ? "group" : "radiogroup",
|
|
2601
|
+
"aria-label": e.label,
|
|
2602
|
+
ref_key: "_ref",
|
|
2603
|
+
ref: l,
|
|
2604
|
+
id: e.id,
|
|
2605
|
+
class: F(c(D)("db-custom-select-list", t.class))
|
|
2606
|
+
}, [
|
|
2607
|
+
I("ul", null, [
|
|
2608
|
+
L(e.$slots, "default")
|
|
2609
|
+
])
|
|
2610
|
+
], 10, ti));
|
|
2611
|
+
}
|
|
2612
|
+
}), li = ["id", "data-divider"], oi = ["data-icon", "data-hide-icon", "data-icon-after"], di = ["type", "name", "checked", "disabled", "value"], ni = { key: 1 }, si = /* @__PURE__ */ M({
|
|
2613
|
+
__name: "custom-select-list-item",
|
|
2614
|
+
props: {
|
|
2615
|
+
groupTitle: { default: void 0 },
|
|
2616
|
+
type: { default: void 0 },
|
|
2617
|
+
children: { default: void 0 },
|
|
2618
|
+
className: { default: void 0 },
|
|
2619
|
+
class: {},
|
|
2620
|
+
describedbyid: {},
|
|
2621
|
+
id: { default: void 0 },
|
|
2622
|
+
autofocus: { type: Boolean },
|
|
2623
|
+
disabled: { type: Boolean, default: void 0 },
|
|
2624
|
+
label: { default: void 0 },
|
|
2625
|
+
name: { default: void 0 },
|
|
2626
|
+
value: { default: void 0 },
|
|
2627
|
+
checked: { type: Boolean, default: void 0 },
|
|
2628
|
+
change: { type: Function, default: void 0 },
|
|
2629
|
+
onChange: { type: Function, default: void 0 },
|
|
2630
|
+
isGroupTitle: { type: Boolean, default: void 0 },
|
|
2631
|
+
showDivider: { type: Boolean, default: void 0 },
|
|
2632
|
+
icon: { default: void 0 },
|
|
2633
|
+
showIcon: { type: Boolean, default: void 0 }
|
|
2634
|
+
},
|
|
2635
|
+
emits: ["update:checked"],
|
|
2636
|
+
setup(i, { emit: t }) {
|
|
2637
|
+
const l = t, e = i, a = n(void 0), u = n(!1), s = n(null);
|
|
2638
|
+
W(() => {
|
|
2639
|
+
a.value = e.id ?? `custom-select-list-item-${Y()}`;
|
|
2640
|
+
}), A(
|
|
2641
|
+
() => [e.isGroupTitle, e.showDivider],
|
|
2642
|
+
() => {
|
|
2643
|
+
u.value = !!(e.isGroupTitle || e.showDivider);
|
|
2644
|
+
},
|
|
2645
|
+
{
|
|
2646
|
+
immediate: !0,
|
|
2647
|
+
flush: "post"
|
|
2648
|
+
}
|
|
2649
|
+
);
|
|
2650
|
+
function b(v) {
|
|
2651
|
+
e.onChange && e.onChange(v), e.change && e.change(v), ve(l, v, "checked");
|
|
2652
|
+
}
|
|
2653
|
+
function d() {
|
|
2654
|
+
if (!(e.isGroupTitle || e.type === "checkbox"))
|
|
2655
|
+
return e.checked ? "check" : "x_placeholder";
|
|
2656
|
+
}
|
|
2657
|
+
return (v, r) => (m(), g("li", {
|
|
2658
|
+
ref_key: "_ref",
|
|
2659
|
+
ref: s,
|
|
2660
|
+
id: a.value,
|
|
2661
|
+
class: F(
|
|
2662
|
+
c(D)("db-custom-select-list-item", e.class, {
|
|
2663
|
+
"db-checkbox": v.type === "checkbox" && !v.isGroupTitle,
|
|
2664
|
+
"db-radio": v.type !== "checkbox" && !v.isGroupTitle
|
|
2665
|
+
})
|
|
2666
|
+
),
|
|
2667
|
+
"data-divider": c(X)(u.value)
|
|
2668
|
+
}, [
|
|
2669
|
+
v.isGroupTitle ? (m(), g("span", ni, w(v.groupTitle), 1)) : (m(), g("label", {
|
|
2670
|
+
key: 0,
|
|
2671
|
+
"data-icon": v.type !== "checkbox" && v.icon ? v.icon : void 0,
|
|
2672
|
+
"data-hide-icon": c(H)(v.showIcon),
|
|
2673
|
+
"data-icon-after": d()
|
|
2674
|
+
}, [
|
|
2675
|
+
I("input", {
|
|
2676
|
+
class: "db-custom-select-list-item-checkbox",
|
|
2677
|
+
"data-disable-focus": "true",
|
|
2678
|
+
type: v.type,
|
|
2679
|
+
name: v.name,
|
|
2680
|
+
checked: v.checked,
|
|
2681
|
+
disabled: v.disabled,
|
|
2682
|
+
value: v.value,
|
|
2683
|
+
onChange: r[0] || (r[0] = async (_) => b(_))
|
|
2684
|
+
}, null, 40, di),
|
|
2685
|
+
v.label ? (m(), g(G, { key: 0 }, [
|
|
2686
|
+
$(w(v.label), 1)
|
|
2687
|
+
], 64)) : R("", !0),
|
|
2688
|
+
v.label ? R("", !0) : L(v.$slots, "default", { key: 1 })
|
|
2689
|
+
], 8, oi))
|
|
2690
|
+
], 10, li));
|
|
2691
|
+
}
|
|
2692
|
+
}), ui = ["id", "data-width"], ri = /* @__PURE__ */ M({
|
|
2693
|
+
__name: "custom-select-dropdown",
|
|
2694
|
+
props: {
|
|
2695
|
+
width: { default: "fixed" },
|
|
2696
|
+
children: { default: void 0 },
|
|
2697
|
+
className: { default: void 0 },
|
|
2698
|
+
class: {},
|
|
2699
|
+
describedbyid: {},
|
|
2700
|
+
id: { default: void 0 },
|
|
2701
|
+
autofocus: { type: Boolean }
|
|
2702
|
+
},
|
|
2703
|
+
setup(i) {
|
|
2704
|
+
const t = i, l = n(null);
|
|
2705
|
+
return (e, a) => (m(), g("article", {
|
|
2706
|
+
"data-spacing": "none",
|
|
2707
|
+
ref_key: "_ref",
|
|
2708
|
+
ref: l,
|
|
2709
|
+
id: e.id,
|
|
2710
|
+
class: F(c(D)("db-custom-select-dropdown db-card", t.class)),
|
|
2711
|
+
"data-width": e.width
|
|
2712
|
+
}, [
|
|
2713
|
+
L(e.$slots, "default")
|
|
2714
|
+
], 10, ui));
|
|
2715
|
+
}
|
|
2716
|
+
}), ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-hide-icon"], vi = ["id"], fi = ["id", "form", "disabled", "multiple", "required"], pi = ["disabled", "value"], hi = ["open", "aria-disabled"], mi = ["id", "aria-labelledby"], bi = ["data-visually-hidden", "id"], gi = { key: 1 }, yi = { key: 0 }, ki = { key: 0 }, Bi = { class: "db-checkbox db-custom-select-list-item" }, wi = ["form", "checked"], _i = ["aria-hidden", "id"], Ii = {
|
|
2717
|
+
"data-visually-hidden": "true",
|
|
2718
|
+
role: "status"
|
|
2719
|
+
}, Il = /* @__PURE__ */ M({
|
|
2720
|
+
__name: "custom-select",
|
|
2721
|
+
props: {
|
|
2722
|
+
children: { default: void 0 },
|
|
2723
|
+
className: { default: void 0 },
|
|
2724
|
+
class: {},
|
|
2725
|
+
describedbyid: {},
|
|
2726
|
+
id: { default: void 0 },
|
|
2727
|
+
autofocus: { type: Boolean },
|
|
2728
|
+
ariaDescribedBy: {},
|
|
2729
|
+
form: { default: void 0 },
|
|
2730
|
+
validation: { default: void 0 },
|
|
2731
|
+
disabled: { type: Boolean, default: void 0 },
|
|
2732
|
+
label: { default: void 0 },
|
|
2733
|
+
name: { default: void 0 },
|
|
2734
|
+
required: { type: Boolean, default: void 0 },
|
|
2735
|
+
variant: { default: void 0 },
|
|
2736
|
+
placeholder: { default: void 0 },
|
|
2737
|
+
message: { default: void 0 },
|
|
2738
|
+
validMessage: { default: void 0 },
|
|
2739
|
+
invalidMessage: { default: void 0 },
|
|
2740
|
+
messageIcon: { default: void 0 },
|
|
2741
|
+
autocomplete: {},
|
|
2742
|
+
showMessage: { type: Boolean, default: void 0 },
|
|
2743
|
+
amountText: { default: void 0 },
|
|
2744
|
+
clearSelectionLabel: { default: "Clear selection" },
|
|
2745
|
+
deSelectAllLabel: { default: void 0 },
|
|
2746
|
+
dropdownWidth: { default: void 0 },
|
|
2747
|
+
loadingText: { default: void 0 },
|
|
2748
|
+
mobileCloseButtonText: { default: void 0 },
|
|
2749
|
+
multiple: { type: Boolean, default: void 0 },
|
|
2750
|
+
noResultsText: { default: void 0 },
|
|
2751
|
+
onAmountChange: { type: Function, default: void 0 },
|
|
2752
|
+
onSelect: { type: Function, default: void 0 },
|
|
2753
|
+
options: { default: void 0 },
|
|
2754
|
+
placement: { default: void 0 },
|
|
2755
|
+
removeTagsTexts: { default: void 0 },
|
|
2756
|
+
searchLabel: { default: void 0 },
|
|
2757
|
+
searchPlaceholder: { default: void 0 },
|
|
2758
|
+
selectAllLabel: { default: void 0 },
|
|
2759
|
+
selectedType: { default: void 0 },
|
|
2760
|
+
showClearSelection: { type: Boolean, default: !0 },
|
|
2761
|
+
showLoading: { type: Boolean, default: void 0 },
|
|
2762
|
+
showNoResults: { type: Boolean, default: void 0 },
|
|
2763
|
+
showSearch: { type: Boolean, default: void 0 },
|
|
2764
|
+
showSelectAll: { type: Boolean, default: void 0 },
|
|
2765
|
+
values: { default: void 0 },
|
|
2766
|
+
open: { type: Boolean, default: void 0 },
|
|
2767
|
+
onDropdownToggle: { type: Function, default: void 0 },
|
|
2768
|
+
width: { default: void 0 },
|
|
2769
|
+
icon: { default: void 0 },
|
|
2770
|
+
showIcon: { type: Boolean, default: void 0 },
|
|
2771
|
+
showLabel: { type: Boolean, default: void 0 }
|
|
2772
|
+
},
|
|
2773
|
+
emits: ["update:values"],
|
|
2774
|
+
setup(i, { emit: t }) {
|
|
2775
|
+
const l = t, e = i, a = n(void 0), u = n(void 0), s = n(void 0), b = n(void 0), d = n(void 0), v = n(void 0), r = n(void 0), _ = n(void 0), S = n(void 0), O = n(void 0), T = n("no-validation"), h = n(""), f = n(""), B = n(void 0), p = n(""), E = n([]), y = n(!1), z = n(!1), C = n(0), U = n([]), K = n([]), fe = n(!1), me = n(-1), ke = n(-1), $e = n(!1), _e = n(!1), Je = n(null), P = n(null), be = n(null), Be = n(null);
|
|
2776
|
+
W(() => {
|
|
2777
|
+
const o = e.id ?? `custom-select-${Y()}`;
|
|
2778
|
+
u.value = o, s.value = o + oe, b.value = o + de, d.value = o + ne, v.value = o + Ge, r.value = o + Ue, _.value = o + "-summary", S.value = o + Ae, B.value = o + "-selected-labels", O.value = o + "-info", document && document.addEventListener("click", De);
|
|
2779
|
+
}), qe(() => {
|
|
2780
|
+
document && document.removeEventListener("click", De);
|
|
2781
|
+
}), A(
|
|
2782
|
+
() => [e.name, u.value],
|
|
2783
|
+
() => {
|
|
2784
|
+
a.value = e.name ?? u.value;
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
immediate: !0,
|
|
2788
|
+
flush: "post"
|
|
2789
|
+
}
|
|
2790
|
+
), A(
|
|
2791
|
+
() => [u.value],
|
|
2792
|
+
() => {
|
|
2793
|
+
if (u.value) {
|
|
2794
|
+
const o = u.value + oe;
|
|
2795
|
+
r.value = u.value + Ue, v.value = u.value + Ge, b.value = u.value + de, d.value = u.value + ne, S.value = u.value + Ae, ee(e.message, e.showMessage) ? we(o) : we();
|
|
2796
|
+
}
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
immediate: !0,
|
|
2800
|
+
flush: "post"
|
|
2801
|
+
}
|
|
2802
|
+
), A(
|
|
2803
|
+
() => [P.value, h.value],
|
|
2804
|
+
() => {
|
|
2805
|
+
if (P.value) {
|
|
2806
|
+
const o = P.value.querySelector("summary");
|
|
2807
|
+
o && o.setAttribute("aria-describedby", h.value || "");
|
|
2808
|
+
}
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
immediate: !0,
|
|
2812
|
+
flush: "post"
|
|
2813
|
+
}
|
|
2814
|
+
), A(
|
|
2815
|
+
() => [P.value],
|
|
2816
|
+
() => {
|
|
2817
|
+
if (P.value) {
|
|
2818
|
+
const o = P.value.querySelector("summary");
|
|
2819
|
+
o && (o.addEventListener("click", () => {
|
|
2820
|
+
Fe(), Ee(!0);
|
|
2821
|
+
}), o.addEventListener("keydown", (k) => {
|
|
2822
|
+
var q;
|
|
2823
|
+
k.code === "Space" && !((q = P.value) != null && q.open) && Ee();
|
|
2824
|
+
})), P.value.addEventListener(
|
|
2825
|
+
"focusout",
|
|
2826
|
+
(k) => Ie(k)
|
|
2827
|
+
);
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
immediate: !0,
|
|
2832
|
+
flush: "post"
|
|
2833
|
+
}
|
|
2834
|
+
), A(
|
|
2835
|
+
() => [e.showNoResults, K.value],
|
|
2836
|
+
() => {
|
|
2837
|
+
e.showNoResults !== void 0 ? fe.value = e.showNoResults : K.value && (fe.value = K.value.length === 0);
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
immediate: !0,
|
|
2841
|
+
flush: "post"
|
|
2842
|
+
}
|
|
2843
|
+
), A(
|
|
2844
|
+
() => [e.showSelectAll, C.value, e.multiple],
|
|
2845
|
+
() => {
|
|
2846
|
+
y.value = !!(e.multiple && (e.showSelectAll || C.value > 5));
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
immediate: !0,
|
|
2850
|
+
flush: "post"
|
|
2851
|
+
}
|
|
2852
|
+
), A(
|
|
2853
|
+
() => [e.showSearch, C.value],
|
|
2854
|
+
() => {
|
|
2855
|
+
z.value = e.showSearch || C.value > 9;
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
immediate: !0,
|
|
2859
|
+
flush: "post"
|
|
2860
|
+
}
|
|
2861
|
+
), A(
|
|
2862
|
+
() => [
|
|
2863
|
+
ke.value,
|
|
2864
|
+
me.value,
|
|
2865
|
+
e.onSelect
|
|
2866
|
+
],
|
|
2867
|
+
() => {
|
|
2868
|
+
if (e.onSelect && (ke.value || me.value)) {
|
|
2869
|
+
const o = me.value && !ke.value, k = me.value && ke.value && me.value > ke.value;
|
|
2870
|
+
if (o || k) {
|
|
2871
|
+
e.onSelect(U.value ?? []);
|
|
2872
|
+
const q = {
|
|
2873
|
+
target: {
|
|
2874
|
+
values: U.value
|
|
2875
|
+
}
|
|
2876
|
+
};
|
|
2877
|
+
ve(l, q, "values");
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
},
|
|
2881
|
+
{
|
|
2882
|
+
immediate: !0,
|
|
2883
|
+
flush: "post"
|
|
2884
|
+
}
|
|
2885
|
+
), A(
|
|
2886
|
+
() => [e.values],
|
|
2887
|
+
() => {
|
|
2888
|
+
e.values && Array.isArray(e.values) && (U.value = e.values ?? [], ke.value = (/* @__PURE__ */ new Date()).getTime());
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
immediate: !0,
|
|
2892
|
+
flush: "post"
|
|
2893
|
+
}
|
|
2894
|
+
), A(
|
|
2895
|
+
() => [U.value],
|
|
2896
|
+
() => {
|
|
2897
|
+
var o, k, q;
|
|
2898
|
+
be.value && (be.value.value = Ze()), !((o = be.value) != null && o.validity.valid) || e.validation === "invalid" ? (T.value = "invalid", we(d.value), le() && (p.value = e.invalidMessage ?? ((k = be.value) == null ? void 0 : k.validationMessage) ?? ue, J(() => p.value = "", 1e3))) : e.validation === "valid" || (q = be.value) != null && q.validity.valid && e.required ? (T.value = "valid", we(b.value), le() && (p.value = e.validMessage ?? se, J(() => p.value = "", 1e3))) : e.message ? (T.value = "no-validation", we(s.value)) : (T.value = "no-validation", we(S.value));
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
immediate: !0,
|
|
2902
|
+
flush: "post"
|
|
2903
|
+
}
|
|
2904
|
+
), A(
|
|
2905
|
+
() => [e.validation],
|
|
2906
|
+
() => {
|
|
2907
|
+
T.value = e.validation;
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
immediate: !0,
|
|
2911
|
+
flush: "post"
|
|
2912
|
+
}
|
|
2913
|
+
), A(
|
|
2914
|
+
() => [U.value, C.value],
|
|
2915
|
+
() => {
|
|
2916
|
+
var o, k;
|
|
2917
|
+
((o = U.value) == null ? void 0 : o.length) === 0 ? ($e.value = !1, _e.value = !1) : ((k = U.value) == null ? void 0 : k.length) === C.value ? (_e.value = !1, $e.value = !0) : U.value && (_e.value = !0);
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
immediate: !0,
|
|
2921
|
+
flush: "post"
|
|
2922
|
+
}
|
|
2923
|
+
), A(
|
|
2924
|
+
() => [e.options],
|
|
2925
|
+
() => {
|
|
2926
|
+
var o;
|
|
2927
|
+
K.value = e.options, C.value = ((o = e.options) == null ? void 0 : o.filter((k) => !k.isGroupTitle).length) ?? 0;
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
immediate: !0,
|
|
2931
|
+
flush: "post"
|
|
2932
|
+
}
|
|
2933
|
+
), A(
|
|
2934
|
+
() => [K.value, U.value],
|
|
2935
|
+
() => {
|
|
2936
|
+
var o, k;
|
|
2937
|
+
(o = K.value) != null && o.length && (E.value = (k = K.value) == null ? void 0 : k.filter(
|
|
2938
|
+
(q) => {
|
|
2939
|
+
var Z, N;
|
|
2940
|
+
return !q.value || !((Z = U.value) != null && Z.includes) ? !1 : !q.isGroupTitle && ((N = U.value) == null ? void 0 : N.includes(q.value));
|
|
2941
|
+
}
|
|
2942
|
+
));
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
immediate: !0,
|
|
2946
|
+
flush: "post"
|
|
2947
|
+
}
|
|
2948
|
+
), A(
|
|
2949
|
+
() => [E.value, e.selectedType, e.amountText],
|
|
2950
|
+
() => {
|
|
2951
|
+
var o, k, q;
|
|
2952
|
+
(o = E.value) != null && o.length ? e.selectedType === "amount" ? f.value = e.amountText ? e.amountText : `${(k = E.value) == null ? void 0 : k.length} ${ma}` : f.value = (q = E.value) == null ? void 0 : q.map((Z) => ge(Z)).join(", ") : f.value = "";
|
|
2953
|
+
},
|
|
2954
|
+
{
|
|
2955
|
+
immediate: !0,
|
|
2956
|
+
flush: "post"
|
|
2957
|
+
}
|
|
2958
|
+
), A(
|
|
2959
|
+
() => [E.value],
|
|
2960
|
+
() => {
|
|
2961
|
+
var o;
|
|
2962
|
+
e.onAmountChange && e.onAmountChange(((o = E.value) == null ? void 0 : o.length) ?? 0);
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
immediate: !0,
|
|
2966
|
+
flush: "post"
|
|
2967
|
+
}
|
|
2968
|
+
), A(
|
|
2969
|
+
() => [_e.value, Be.value],
|
|
2970
|
+
() => {
|
|
2971
|
+
Be.value && (Be.value.indeterminate = !!_e.value);
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
immediate: !0,
|
|
2975
|
+
flush: "post"
|
|
2976
|
+
}
|
|
2977
|
+
);
|
|
2978
|
+
function Qe(o) {
|
|
2979
|
+
e.onDropdownToggle && e.onDropdownToggle(o);
|
|
2980
|
+
}
|
|
2981
|
+
function Ze() {
|
|
2982
|
+
var o;
|
|
2983
|
+
return (o = U.value) != null && o.length ? U.value.at(0) ?? "" : "";
|
|
2984
|
+
}
|
|
2985
|
+
function we(o) {
|
|
2986
|
+
var q;
|
|
2987
|
+
const k = [];
|
|
2988
|
+
o && k.push(o), B.value && ((q = f.value) != null && q.length) && k.push(B.value), h.value = k.join(" ");
|
|
2989
|
+
}
|
|
2990
|
+
function xe() {
|
|
2991
|
+
return !Be.value || Be.value.indeterminate || !$e.value ? e.selectAllLabel ?? ie : e.deSelectAllLabel ?? ie;
|
|
2992
|
+
}
|
|
2993
|
+
function ge(o) {
|
|
2994
|
+
var k;
|
|
2995
|
+
return o.label ?? ((k = o.value) == null ? void 0 : k.toString()) ?? "";
|
|
2996
|
+
}
|
|
2997
|
+
function ea(o) {
|
|
2998
|
+
var k;
|
|
2999
|
+
return o && U.value && U.value.includes ? (k = U.value) == null ? void 0 : k.includes(o) : !1;
|
|
3000
|
+
}
|
|
3001
|
+
function aa(o) {
|
|
3002
|
+
return e.removeTagsTexts && e.removeTagsTexts.length > o ? e.removeTagsTexts.at(o) : `${We} ${E.value ? ge(E.value[o]) : ""}`;
|
|
3003
|
+
}
|
|
3004
|
+
function ta(o, k) {
|
|
3005
|
+
k.stopPropagation(), Ne(o.value), Le();
|
|
3006
|
+
}
|
|
3007
|
+
function Fe() {
|
|
3008
|
+
if (P.value) {
|
|
3009
|
+
const o = P.value.querySelector("article");
|
|
3010
|
+
o && J(() => {
|
|
3011
|
+
Se(o);
|
|
3012
|
+
}, 100);
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
function ia(o) {
|
|
3016
|
+
var k, q, Z, N, re;
|
|
3017
|
+
if ((k = P.value) != null && k.open) {
|
|
3018
|
+
if (document) {
|
|
3019
|
+
const ae = document.activeElement;
|
|
3020
|
+
if (ae)
|
|
3021
|
+
if (ae.getAttribute("type") === "checkbox" || ae.getAttribute("type") === "radio") {
|
|
3022
|
+
const te = ae == null ? void 0 : ae.closest("li");
|
|
3023
|
+
if (o.key === "ArrowDown" || o.key === "ArrowRight")
|
|
3024
|
+
te != null && te.nextElementSibling ? (q = te == null ? void 0 : te.nextElementSibling.querySelector("input")) == null || q.focus() : Te(ae);
|
|
3025
|
+
else if (te != null && te.previousElementSibling)
|
|
3026
|
+
(Z = te == null ? void 0 : te.previousElementSibling.querySelector("input")) == null || Z.focus();
|
|
3027
|
+
else if (P.value.querySelector('input[type="checkbox"]') !== ae)
|
|
3028
|
+
Te(ae);
|
|
3029
|
+
else {
|
|
3030
|
+
const Me = ze(P.value);
|
|
3031
|
+
if (Me)
|
|
3032
|
+
J(() => {
|
|
3033
|
+
Me.focus();
|
|
3034
|
+
}, 100);
|
|
3035
|
+
else {
|
|
3036
|
+
const Re = Array.from(
|
|
3037
|
+
(N = P.value) == null ? void 0 : N.querySelectorAll(
|
|
3038
|
+
'input[type="checkbox"],input[type="radio"]'
|
|
3039
|
+
)
|
|
3040
|
+
);
|
|
3041
|
+
Re.length && ((re = Re.at(-1)) == null || re.focus());
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
} else
|
|
3045
|
+
ae.getAttribute("type") === "search" && (o.key === "ArrowUp" || o.key === "ArrowLeft") ? (Ie("close"), Le()) : Te(ae);
|
|
3046
|
+
}
|
|
3047
|
+
o.stopPropagation(), o.preventDefault();
|
|
3048
|
+
} else (o.key === "ArrowDown" || o.key === "ArrowRight") && (Fe(), P.value && (P.value.open = !0), Ee(), o.stopPropagation(), o.preventDefault());
|
|
3049
|
+
}
|
|
3050
|
+
function la(o) {
|
|
3051
|
+
var k;
|
|
3052
|
+
o.key === "Escape" && P.value && ((k = P.value) != null && k.open) ? (Ie("close"), Le()) : (o.key === "ArrowDown" || o.key === "ArrowUp" || o.key === "ArrowLeft" || o.key === "ArrowRight") && ia(o);
|
|
3053
|
+
}
|
|
3054
|
+
function Ie(o) {
|
|
3055
|
+
if (P.value) {
|
|
3056
|
+
if (o === "close")
|
|
3057
|
+
P.value.open = !1, Le();
|
|
3058
|
+
else if (P.value.open && (o != null && o.relatedTarget)) {
|
|
3059
|
+
const k = o.relatedTarget;
|
|
3060
|
+
P.value.contains(k) || (P.value.open = !1);
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3064
|
+
function De(o) {
|
|
3065
|
+
var k;
|
|
3066
|
+
(k = P.value) != null && k.open && !P.value.contains(o.target) && (P.value.open = !1);
|
|
3067
|
+
}
|
|
3068
|
+
function Ne(o) {
|
|
3069
|
+
var k, q;
|
|
3070
|
+
o && (e.multiple ? (k = U.value) != null && k.includes(o) ? U.value = (q = U.value) == null ? void 0 : q.filter((Z) => Z !== o) : U.value = [...U.value || [], o] : (U.value = [o], Ie("close")), me.value = (/* @__PURE__ */ new Date()).getTime());
|
|
3071
|
+
}
|
|
3072
|
+
function oa() {
|
|
3073
|
+
var o;
|
|
3074
|
+
((o = U.value) == null ? void 0 : o.length) === C.value ? U.value = [] : U.value = e.options ? e.options.filter((k) => !k.isGroupTitle).map((k) => k.value ?? "") : [], me.value = (/* @__PURE__ */ new Date()).getTime();
|
|
3075
|
+
}
|
|
3076
|
+
function Te(o) {
|
|
3077
|
+
if (P.value) {
|
|
3078
|
+
const k = Array.from(
|
|
3079
|
+
P.value.querySelectorAll(
|
|
3080
|
+
'input[type="checkbox"],input[type="radio"]'
|
|
3081
|
+
)
|
|
3082
|
+
);
|
|
3083
|
+
if (k.length) {
|
|
3084
|
+
const q = k.at(0), Z = q === o && k.length > 1 ? k.at(1) : q;
|
|
3085
|
+
Z && J(() => {
|
|
3086
|
+
Z.focus();
|
|
3087
|
+
}, 100);
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
function Ee(o) {
|
|
3092
|
+
if (P.value) {
|
|
3093
|
+
const k = ze(P.value);
|
|
3094
|
+
k ? J(() => {
|
|
3095
|
+
k.focus();
|
|
3096
|
+
}, 100) : o || Te();
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
function da(o) {
|
|
3100
|
+
const k = o.target.value;
|
|
3101
|
+
K.value = !e.options || !k || k.length === 0 ? e.options : e.options.filter(
|
|
3102
|
+
(q) => !q.isGroupTitle && ge(q).toLowerCase().includes(k.toLowerCase())
|
|
3103
|
+
);
|
|
3104
|
+
}
|
|
3105
|
+
function na() {
|
|
3106
|
+
U.value = [], Le();
|
|
3107
|
+
}
|
|
3108
|
+
function Le() {
|
|
3109
|
+
var o, k;
|
|
3110
|
+
(k = (o = P.value) == null ? void 0 : o.querySelector("summary")) == null || k.focus();
|
|
3111
|
+
}
|
|
3112
|
+
return (o, k) => {
|
|
3113
|
+
var q, Z;
|
|
3114
|
+
return m(), g("div", {
|
|
3115
|
+
id: u.value,
|
|
3116
|
+
ref_key: "_ref",
|
|
3117
|
+
ref: Je,
|
|
3118
|
+
class: F(c(D)("db-custom-select", e.class)),
|
|
3119
|
+
"aria-invalid": T.value === "invalid",
|
|
3120
|
+
"data-custom-validity": T.value,
|
|
3121
|
+
"data-width": o.width,
|
|
3122
|
+
"data-variant": o.variant,
|
|
3123
|
+
"data-required": c(X)(o.required),
|
|
3124
|
+
"data-placement": o.placement,
|
|
3125
|
+
"data-selected-type": o.multiple ? o.selectedType : "text",
|
|
3126
|
+
"data-hide-label": c(H)(o.showLabel),
|
|
3127
|
+
"data-icon": o.icon,
|
|
3128
|
+
"data-hide-icon": c(H)(o.showIcon)
|
|
3129
|
+
}, [
|
|
3130
|
+
I("label", { id: r.value }, [
|
|
3131
|
+
$(w(o.label ?? c(ie)), 1),
|
|
3132
|
+
I("select", {
|
|
3133
|
+
role: "none",
|
|
3134
|
+
hidden: !0,
|
|
3135
|
+
id: v.value,
|
|
3136
|
+
tabIndex: -1,
|
|
3137
|
+
ref_key: "selectRef",
|
|
3138
|
+
ref: be,
|
|
3139
|
+
form: o.form,
|
|
3140
|
+
disabled: o.disabled,
|
|
3141
|
+
multiple: o.multiple,
|
|
3142
|
+
required: o.required,
|
|
3143
|
+
onChange: k[0] || (k[0] = async (N) => {
|
|
3144
|
+
})
|
|
3145
|
+
}, [
|
|
3146
|
+
(m(!0), g(G, null, ce(K.value, (N, re) => (m(), g("option", {
|
|
3147
|
+
key: re,
|
|
3148
|
+
disabled: N.disabled,
|
|
3149
|
+
value: N.value
|
|
3150
|
+
}, w(ge(N)), 9, pi))), 128))
|
|
3151
|
+
], 40, fi)
|
|
3152
|
+
], 8, vi),
|
|
3153
|
+
I("details", {
|
|
3154
|
+
ref_key: "detailsRef",
|
|
3155
|
+
ref: P,
|
|
3156
|
+
open: o.open,
|
|
3157
|
+
"aria-disabled": o.disabled,
|
|
3158
|
+
onToggle: k[2] || (k[2] = async (N) => Qe(N)),
|
|
3159
|
+
onKeydown: k[3] || (k[3] = async (N) => la(N))
|
|
3160
|
+
}, [
|
|
3161
|
+
L(o.$slots, "default"),
|
|
3162
|
+
o.options ? (m(), g(G, { key: 0 }, [
|
|
3163
|
+
I("summary", {
|
|
3164
|
+
class: "db-custom-select-form-field",
|
|
3165
|
+
id: _.value,
|
|
3166
|
+
"aria-labelledby": r.value
|
|
3167
|
+
}, [
|
|
3168
|
+
(q = f.value) != null && q.length ? (m(), g("span", {
|
|
3169
|
+
key: 0,
|
|
3170
|
+
"data-visually-hidden": c(X)(o.selectedType === "tag"),
|
|
3171
|
+
id: B.value
|
|
3172
|
+
}, w(f.value), 9, bi)) : R("", !0),
|
|
3173
|
+
o.selectedType === "tag" ? (m(), g("div", gi, [
|
|
3174
|
+
(m(!0), g(G, null, ce(E.value, (N, re) => (m(), x(At, {
|
|
3175
|
+
key: re,
|
|
3176
|
+
emphasis: "strong",
|
|
3177
|
+
behavior: "removable",
|
|
3178
|
+
removeButton: aa(re),
|
|
3179
|
+
onRemove: (ae) => {
|
|
3180
|
+
ta(N, ae);
|
|
3181
|
+
}
|
|
3182
|
+
}, {
|
|
3183
|
+
default: V(() => [
|
|
3184
|
+
$(w(ge(N)), 1)
|
|
3185
|
+
]),
|
|
3186
|
+
_: 2
|
|
3187
|
+
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
3188
|
+
])) : R("", !0)
|
|
3189
|
+
], 8, mi),
|
|
3190
|
+
j(ri, { width: o.dropdownWidth }, {
|
|
3191
|
+
default: V(() => [
|
|
3192
|
+
z.value ? (m(), g("div", yi, [
|
|
3193
|
+
j(nt, {
|
|
3194
|
+
type: "search",
|
|
3195
|
+
showLabel: !1,
|
|
3196
|
+
label: o.searchLabel ?? c(ie),
|
|
3197
|
+
placeholder: o.searchPlaceholder ?? o.searchLabel,
|
|
3198
|
+
ariaDescribedBy: fe.value || o.showLoading ? O.value : void 0,
|
|
3199
|
+
onInput: (N) => da(N)
|
|
3200
|
+
}, null, 8, ["label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
3201
|
+
])) : R("", !0),
|
|
3202
|
+
fe.value || o.showLoading ? (m(), x(Q, {
|
|
3203
|
+
key: 1,
|
|
3204
|
+
id: O.value,
|
|
3205
|
+
icon: fe.value ? void 0 : "circular_arrows",
|
|
3206
|
+
semantic: fe.value ? "warning" : "informational"
|
|
3207
|
+
}, {
|
|
3208
|
+
default: V(() => [
|
|
3209
|
+
$(w((fe.value ? o.noResultsText : o.loadingText) ?? c(pa)), 1)
|
|
3210
|
+
]),
|
|
3211
|
+
_: 1
|
|
3212
|
+
}, 8, ["id", "icon", "semantic"])) : (m(), g(G, { key: 2 }, [
|
|
3213
|
+
y.value ? (m(), g("div", ki, [
|
|
3214
|
+
I("div", Bi, [
|
|
3215
|
+
I("label", null, [
|
|
3216
|
+
I("input", {
|
|
3217
|
+
type: "checkbox",
|
|
3218
|
+
value: "select-all",
|
|
3219
|
+
ref_key: "selectAllRef",
|
|
3220
|
+
ref: Be,
|
|
3221
|
+
form: u.value,
|
|
3222
|
+
checked: $e.value,
|
|
3223
|
+
onChange: k[1] || (k[1] = async (N) => oa())
|
|
3224
|
+
}, null, 40, wi),
|
|
3225
|
+
$(w(xe()), 1)
|
|
3226
|
+
])
|
|
3227
|
+
])
|
|
3228
|
+
])) : R("", !0),
|
|
3229
|
+
j(ii, {
|
|
3230
|
+
multiple: o.multiple,
|
|
3231
|
+
label: o.label ?? c(ie)
|
|
3232
|
+
}, {
|
|
3233
|
+
default: V(() => [
|
|
3234
|
+
(m(!0), g(G, null, ce(K.value, (N, re) => (m(), x(si, {
|
|
3235
|
+
key: re,
|
|
3236
|
+
type: o.multiple ? "checkbox" : "radio",
|
|
3237
|
+
showDivider: N.showDivider,
|
|
3238
|
+
icon: N.icon,
|
|
3239
|
+
isGroupTitle: N.isGroupTitle,
|
|
3240
|
+
groupTitle: ge(N),
|
|
3241
|
+
name: a.value,
|
|
3242
|
+
checked: ea(N.value),
|
|
3243
|
+
disabled: N.disabled,
|
|
3244
|
+
value: N.value,
|
|
3245
|
+
onChange: (ae) => {
|
|
3246
|
+
Ne(N.value);
|
|
3247
|
+
}
|
|
3248
|
+
}, {
|
|
3249
|
+
default: V(() => [
|
|
3250
|
+
N.isGroupTitle ? R("", !0) : (m(), g(G, { key: 0 }, [
|
|
3251
|
+
$(w(ge(N)), 1)
|
|
3252
|
+
], 64))
|
|
3253
|
+
]),
|
|
3254
|
+
_: 2
|
|
3255
|
+
}, 1032, ["type", "showDivider", "icon", "isGroupTitle", "groupTitle", "name", "checked", "disabled", "value", "onChange"]))), 128))
|
|
3256
|
+
]),
|
|
3257
|
+
_: 1
|
|
3258
|
+
}, 8, ["multiple", "label"])
|
|
3259
|
+
], 64)),
|
|
3260
|
+
I("div", null, [
|
|
3261
|
+
j(he, {
|
|
3262
|
+
variant: "ghost",
|
|
3263
|
+
width: "full",
|
|
3264
|
+
icon: "cross",
|
|
3265
|
+
size: "small",
|
|
3266
|
+
onClick: (N) => {
|
|
3267
|
+
Ie("close");
|
|
3268
|
+
}
|
|
3269
|
+
}, {
|
|
3270
|
+
default: V(() => [
|
|
3271
|
+
$(w(o.mobileCloseButtonText ?? c(Ce)), 1)
|
|
3272
|
+
]),
|
|
3273
|
+
_: 1
|
|
3274
|
+
}, 8, ["onClick"])
|
|
3275
|
+
])
|
|
3276
|
+
]),
|
|
3277
|
+
_: 1
|
|
3278
|
+
}, 8, ["width"])
|
|
3279
|
+
], 64)) : R("", !0)
|
|
3280
|
+
], 40, hi),
|
|
3281
|
+
(o.showClearSelection ?? !0) && ((Z = U.value) != null && Z.length) ? (m(), x(he, {
|
|
3282
|
+
key: 0,
|
|
3283
|
+
icon: "cross",
|
|
3284
|
+
variant: "ghost",
|
|
3285
|
+
size: "small",
|
|
3286
|
+
noText: !0,
|
|
3287
|
+
onClick: (N) => na()
|
|
3288
|
+
}, {
|
|
3289
|
+
default: V(() => [
|
|
3290
|
+
$(w(o.clearSelectionLabel), 1),
|
|
3291
|
+
j(Xt, { placement: "top" }, {
|
|
3292
|
+
default: V(() => [
|
|
3293
|
+
$(w(o.clearSelectionLabel), 1)
|
|
3294
|
+
]),
|
|
3295
|
+
_: 1
|
|
3296
|
+
})
|
|
3297
|
+
]),
|
|
3298
|
+
_: 1
|
|
3299
|
+
}, 8, ["onClick"])) : R("", !0),
|
|
3300
|
+
I("span", {
|
|
3301
|
+
"aria-hidden": c(X)(!0),
|
|
3302
|
+
id: S.value
|
|
3303
|
+
}, w(o.placeholder ?? o.label), 9, _i),
|
|
3304
|
+
o.message ? (m(), x(Q, {
|
|
3305
|
+
key: 1,
|
|
3306
|
+
size: "small",
|
|
3307
|
+
icon: o.messageIcon,
|
|
3308
|
+
id: s.value
|
|
3309
|
+
}, {
|
|
3310
|
+
default: V(() => [
|
|
3311
|
+
$(w(o.message), 1)
|
|
3312
|
+
]),
|
|
3313
|
+
_: 1
|
|
3314
|
+
}, 8, ["icon", "id"])) : R("", !0),
|
|
3315
|
+
j(Q, {
|
|
3316
|
+
size: "small",
|
|
3317
|
+
semantic: "successful",
|
|
3318
|
+
id: b.value
|
|
3319
|
+
}, {
|
|
3320
|
+
default: V(() => [
|
|
3321
|
+
$(w(o.validMessage ?? c(se)), 1)
|
|
3322
|
+
]),
|
|
3323
|
+
_: 1
|
|
3324
|
+
}, 8, ["id"]),
|
|
3325
|
+
j(Q, {
|
|
3326
|
+
size: "small",
|
|
3327
|
+
semantic: "critical",
|
|
3328
|
+
id: d.value
|
|
3329
|
+
}, {
|
|
3330
|
+
default: V(() => {
|
|
3331
|
+
var N;
|
|
3332
|
+
return [
|
|
3333
|
+
$(w(o.invalidMessage ?? (((N = be.value) == null ? void 0 : N.validationMessage) || c(ue))), 1)
|
|
3334
|
+
];
|
|
3335
|
+
}),
|
|
3336
|
+
_: 1
|
|
3337
|
+
}, 8, ["id"]),
|
|
3338
|
+
I("span", Ii, w(p.value), 1)
|
|
3339
|
+
], 10, ci);
|
|
3340
|
+
};
|
|
3341
|
+
}
|
|
3342
|
+
}), Li = ["id"], Ll = /* @__PURE__ */ M({
|
|
3343
|
+
__name: "custom-select-form-field",
|
|
3344
|
+
props: {
|
|
3345
|
+
children: { default: void 0 },
|
|
3346
|
+
className: { default: void 0 },
|
|
3347
|
+
class: {},
|
|
3348
|
+
describedbyid: {},
|
|
3349
|
+
id: { default: void 0 },
|
|
3350
|
+
autofocus: { type: Boolean }
|
|
3351
|
+
},
|
|
3352
|
+
setup(i) {
|
|
3353
|
+
const t = i, l = n(null);
|
|
3354
|
+
return (e, a) => (m(), g("summary", {
|
|
3355
|
+
ref_key: "_ref",
|
|
3356
|
+
ref: l,
|
|
3357
|
+
id: e.id,
|
|
3358
|
+
class: F(c(D)("db-custom-select-form-field", t.class))
|
|
2570
3359
|
}, [
|
|
2571
|
-
|
|
2572
|
-
], 10,
|
|
3360
|
+
L(e.$slots, "default")
|
|
3361
|
+
], 10, Li));
|
|
2573
3362
|
}
|
|
2574
3363
|
});
|
|
2575
3364
|
export {
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
3365
|
+
wl as AlignmentList,
|
|
3366
|
+
gl as AutoCompleteList,
|
|
3367
|
+
je as COLOR,
|
|
3368
|
+
Ni as COLORS,
|
|
3369
|
+
Mi as COLORS_SIMPLE,
|
|
3370
|
+
Fi as COLOR_CONST,
|
|
3371
|
+
He as COLOR_SIMPLE,
|
|
3372
|
+
el as DBAccordion,
|
|
3373
|
+
Gt as DBAccordionItem,
|
|
3374
|
+
Gi as DBBadge,
|
|
3375
|
+
Pi as DBBrand,
|
|
3376
|
+
he as DBButton,
|
|
3377
|
+
qi as DBCard,
|
|
3378
|
+
Vi as DBCheckbox,
|
|
3379
|
+
Il as DBCustomSelect,
|
|
3380
|
+
ri as DBCustomSelectDropdown,
|
|
3381
|
+
Ll as DBCustomSelectFormField,
|
|
3382
|
+
ii as DBCustomSelectList,
|
|
3383
|
+
si as DBCustomSelectListItem,
|
|
3384
|
+
Oi as DBDivider,
|
|
3385
|
+
Ga as DBDrawer,
|
|
3386
|
+
Wi as DBHeader,
|
|
3387
|
+
Xi as DBIcon,
|
|
3388
|
+
Q as DBInfotext,
|
|
3389
|
+
nt as DBInput,
|
|
3390
|
+
Hi as DBLink,
|
|
3391
|
+
al as DBNavigation,
|
|
3392
|
+
xi as DBNavigationItem,
|
|
3393
|
+
Ui as DBNotification,
|
|
3394
|
+
ji as DBPage,
|
|
3395
|
+
tl as DBPopover,
|
|
3396
|
+
Yi as DBRadio,
|
|
3397
|
+
Ki as DBSection,
|
|
3398
|
+
Ji as DBSelect,
|
|
3399
|
+
_l as DBStack,
|
|
3400
|
+
Qi as DBSwitch,
|
|
3401
|
+
Lt as DBTabItem,
|
|
3402
|
+
Yt as DBTabList,
|
|
3403
|
+
Jt as DBTabPanel,
|
|
3404
|
+
il as DBTabs,
|
|
3405
|
+
At as DBTag,
|
|
3406
|
+
Zi as DBTextarea,
|
|
3407
|
+
Xt as DBTooltip,
|
|
3408
|
+
ha as DEFAULT_BACK,
|
|
3409
|
+
ba as DEFAULT_BURGER_MENU,
|
|
3410
|
+
Ce as DEFAULT_CLOSE_BUTTON,
|
|
3411
|
+
Pe as DEFAULT_DATALIST_ID_SUFFIX,
|
|
3412
|
+
ga as DEFAULT_ICON,
|
|
3413
|
+
ye as DEFAULT_ID,
|
|
3414
|
+
ue as DEFAULT_INVALID_MESSAGE,
|
|
3415
|
+
ne as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
3416
|
+
ie as DEFAULT_LABEL,
|
|
3417
|
+
Ue as DEFAULT_LABEL_ID_SUFFIX,
|
|
3418
|
+
pa as DEFAULT_MESSAGE,
|
|
3419
|
+
oe as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
3420
|
+
Oe as DEFAULT_PLACEHOLDER,
|
|
3421
|
+
Ae as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
3422
|
+
We as DEFAULT_REMOVE,
|
|
3423
|
+
ya as DEFAULT_ROWS,
|
|
3424
|
+
ma as DEFAULT_SELECTED,
|
|
3425
|
+
Ge as DEFAULT_SELECT_ID_SUFFIX,
|
|
3426
|
+
se as DEFAULT_VALID_MESSAGE,
|
|
3427
|
+
de as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
3428
|
+
ka as DEFAULT_VIEWPORT,
|
|
3429
|
+
Di as DENSITIES,
|
|
3430
|
+
Xe as DENSITY,
|
|
3431
|
+
Ci as DENSITY_CONST,
|
|
3432
|
+
Ba as DESKTOP_VIEWPORT,
|
|
3433
|
+
ei as EmphasisList,
|
|
3434
|
+
sl as GapSpacingList,
|
|
3435
|
+
bl as LabelVariantList,
|
|
3436
|
+
yl as LinkCurrentList,
|
|
3437
|
+
Bl as LinkReferrerPolicyList,
|
|
3438
|
+
kl as LinkTargetList,
|
|
3439
|
+
dl as MarginList,
|
|
3440
|
+
cl as MaxWidthList,
|
|
3441
|
+
Pa as NavigationItemSafeTriangle,
|
|
3442
|
+
ul as OrientationList,
|
|
3443
|
+
Zt as PlacementHorizontalList,
|
|
3444
|
+
nl as PlacementList,
|
|
3445
|
+
xt as PlacementVerticalList,
|
|
3446
|
+
vl as PopoverDelayList,
|
|
3447
|
+
fl as PopoverWidthList,
|
|
3448
|
+
Ye as SEMANTIC,
|
|
3449
|
+
Ri as SEMANTICS,
|
|
3450
|
+
ll as SemanticList,
|
|
3451
|
+
pl as SizeList,
|
|
3452
|
+
ol as SpacingList,
|
|
3453
|
+
zi as TESTING_VIEWPORTS,
|
|
3454
|
+
hl as TagEmphasisList,
|
|
3455
|
+
ml as ValidationList,
|
|
3456
|
+
rl as WidthList,
|
|
3457
|
+
Ve as addAttributeToChildren,
|
|
3458
|
+
D as cls,
|
|
3459
|
+
J as delay,
|
|
3460
|
+
X as getBooleanAsString,
|
|
3461
|
+
H as getHideProp,
|
|
3462
|
+
ze as getSearchInput,
|
|
3463
|
+
Se as handleDataOutside,
|
|
3464
|
+
le as hasVoiceOver,
|
|
3465
|
+
ca as isArrayOfStrings,
|
|
3466
|
+
Ke as isEventTargetNavigationItem,
|
|
3467
|
+
ra as isInView,
|
|
3468
|
+
ee as stringPropVisible,
|
|
3469
|
+
Y as uuid,
|
|
3470
|
+
Si as visibleInVX,
|
|
3471
|
+
Ei as visibleInVY
|
|
2670
3472
|
};
|