@salesql/sql_components_vue3 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/composables/useViewportClamp.d.ts +9 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +623 -611
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.types.d.ts +1 -1
- package/dist/ui/DsPill/DsPill.types.d.ts +1 -1
- package/dist/ui/DsPopover/DsPopover.types.d.ts +20 -1
- package/dist/ui/DsSelect/DsSelect.types.d.ts +1 -1
- package/llms-full.txt +64 -14
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, computed as
|
|
1
|
+
import { defineComponent as B, computed as k, openBlock as a, createElementBlock as l, normalizeStyle as U, normalizeClass as L, createBlock as K, unref as D, createCommentVNode as g, createElementVNode as s, renderSlot as C, toDisplayString as w, withModifiers as ue, useModel as ve, ref as V, onMounted as nt, watch as Z, withDirectives as Me, vModelCheckbox as bt, createTextVNode as q, mergeModels as ae, onBeforeUnmount as de, nextTick as se, createVNode as Y, Fragment as H, renderList as Q, useSlots as he, vModelDynamic as yt, useAttrs as mt, mergeProps as ke, vModelText as ht, Transition as me, withCtx as ie, Teleport as Pe, useId as ge, withKeys as st, reactive as gt, resolveDynamicComponent as pt } from "vue";
|
|
2
2
|
const $e = {
|
|
3
3
|
DARK: "dark",
|
|
4
4
|
// slate ring — for light surfaces (default)
|
|
@@ -32,13 +32,13 @@ const $e = {
|
|
|
32
32
|
[De.SMALL]: 20,
|
|
33
33
|
[De.MEDIUM]: 32,
|
|
34
34
|
[De.LARGE]: 48
|
|
35
|
-
}, t = e, o =
|
|
35
|
+
}, t = e, o = k(
|
|
36
36
|
() => {
|
|
37
37
|
var i;
|
|
38
38
|
return typeof t.size == "string" ? (i = n[t.size]) != null ? i : 24 : t.size;
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
return (i,
|
|
41
|
+
return (i, d) => (a(), l("span", {
|
|
42
42
|
class: L(["ds-spinner", `ds-spinner--${e.tone}`]),
|
|
43
43
|
role: "status",
|
|
44
44
|
style: U({ width: `${o.value}px`, height: `${o.value}px` }),
|
|
@@ -50,7 +50,7 @@ const $e = {
|
|
|
50
50
|
for (const [o, i] of n)
|
|
51
51
|
t[o] = i;
|
|
52
52
|
return t;
|
|
53
|
-
}, ye = /* @__PURE__ */ O(kt, [["__scopeId", "data-v-aaf2f048"]]),
|
|
53
|
+
}, ye = /* @__PURE__ */ O(kt, [["__scopeId", "data-v-aaf2f048"]]), te = "click", J = "close", Te = "focus", Ee = "blur", ze = "change", Fe = "field-blur", we = "copy", Le = "correct", _e = "incorrect", Ve = "sort", Ue = "edit", Ge = "select-all", He = "page-change", We = "page-size-change", Re = "search", Ke = "select", Ae = "step", Ye = "final-step", qe = "navigate", je = "resize-start", Xe = "resize", Ze = "resize-end", Ne = "update:open", Be = {
|
|
54
54
|
DEFAULT: "default",
|
|
55
55
|
// white surface, dark text (the default value; == tertiary)
|
|
56
56
|
PRIMARY: "primary",
|
|
@@ -86,20 +86,20 @@ const $e = {
|
|
|
86
86
|
BUTTON: "button",
|
|
87
87
|
SUBMIT: "submit",
|
|
88
88
|
RESET: "reset"
|
|
89
|
-
},
|
|
89
|
+
}, Tt = ["type", "disabled", "autofocus", "aria-busy", "aria-disabled", "aria-pressed", "aria-label"], Et = ["aria-hidden"], wt = {
|
|
90
90
|
key: 0,
|
|
91
91
|
class: "ds-button__icon ds-button__icon--leading"
|
|
92
92
|
}, Lt = {
|
|
93
|
-
class: "material-
|
|
93
|
+
class: "material-symbols-filled",
|
|
94
94
|
"aria-hidden": "true"
|
|
95
|
-
},
|
|
95
|
+
}, _t = {
|
|
96
96
|
key: 1,
|
|
97
97
|
class: "ds-button__label"
|
|
98
|
-
},
|
|
98
|
+
}, Ct = {
|
|
99
99
|
key: 2,
|
|
100
100
|
class: "ds-button__icon ds-button__icon--trailing"
|
|
101
101
|
}, It = {
|
|
102
|
-
class: "material-
|
|
102
|
+
class: "material-symbols-filled",
|
|
103
103
|
"aria-hidden": "true"
|
|
104
104
|
}, Dt = /* @__PURE__ */ B({
|
|
105
105
|
__name: "DsButton",
|
|
@@ -110,7 +110,7 @@ const $e = {
|
|
|
110
110
|
type: String,
|
|
111
111
|
default: $t.BUTTON
|
|
112
112
|
},
|
|
113
|
-
// Material Icon names (rendered via <i class="material-
|
|
113
|
+
// Material Icon names (rendered via <i class="material-symbols-filled">); a leading/
|
|
114
114
|
// trailing slot overrides. Icon-only buttons (circle/square) need ariaLabel.
|
|
115
115
|
leftIcon: { type: String, default: "" },
|
|
116
116
|
rightIcon: { type: String, default: "" },
|
|
@@ -129,15 +129,15 @@ const $e = {
|
|
|
129
129
|
selected: Boolean,
|
|
130
130
|
autofocus: Boolean
|
|
131
131
|
},
|
|
132
|
-
emits: [
|
|
132
|
+
emits: [te],
|
|
133
133
|
setup(e, { emit: n }) {
|
|
134
|
-
const t = e, o = n, i =
|
|
134
|
+
const t = e, o = n, i = k(() => t.size === Qe.SMALL ? 14 : 20), d = k(
|
|
135
135
|
() => t.variant === Be.PRIMARY || t.variant === Be.WARNING ? $e.LIGHT : $e.DARK
|
|
136
136
|
);
|
|
137
|
-
function E(
|
|
138
|
-
t.disabled || t.loading || o(
|
|
137
|
+
function E(v) {
|
|
138
|
+
t.disabled || t.loading || o(te, v);
|
|
139
139
|
}
|
|
140
|
-
return (
|
|
140
|
+
return (v, y) => (a(), l("button", {
|
|
141
141
|
class: L(["ds-button", [
|
|
142
142
|
`ds-button--${e.variant}`,
|
|
143
143
|
`ds-button--${e.size}`,
|
|
@@ -163,29 +163,29 @@ const $e = {
|
|
|
163
163
|
key: 0,
|
|
164
164
|
class: "ds-button__spinner",
|
|
165
165
|
size: i.value,
|
|
166
|
-
tone:
|
|
166
|
+
tone: d.value
|
|
167
167
|
}, null, 8, ["size", "tone"])) : g("", !0),
|
|
168
168
|
s("span", {
|
|
169
169
|
class: "ds-button__content",
|
|
170
170
|
"aria-hidden": e.loading || void 0
|
|
171
171
|
}, [
|
|
172
|
-
e.leftIcon ||
|
|
173
|
-
|
|
174
|
-
s("i", Lt,
|
|
172
|
+
e.leftIcon || v.$slots.leading ? (a(), l("span", wt, [
|
|
173
|
+
C(v.$slots, "leading", {}, () => [
|
|
174
|
+
s("i", Lt, w(e.leftIcon), 1)
|
|
175
175
|
], !0)
|
|
176
176
|
])) : g("", !0),
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
v.$slots.default && !e.circle && !e.square ? (a(), l("span", _t, [
|
|
178
|
+
C(v.$slots, "default", {}, void 0, !0)
|
|
179
179
|
])) : g("", !0),
|
|
180
|
-
e.rightIcon ||
|
|
181
|
-
|
|
182
|
-
s("i", It,
|
|
180
|
+
e.rightIcon || v.$slots.trailing ? (a(), l("span", Ct, [
|
|
181
|
+
C(v.$slots, "trailing", {}, () => [
|
|
182
|
+
s("i", It, w(e.rightIcon), 1)
|
|
183
183
|
], !0)
|
|
184
184
|
])) : g("", !0)
|
|
185
185
|
], 8, Et)
|
|
186
|
-
], 10,
|
|
186
|
+
], 10, Tt));
|
|
187
187
|
}
|
|
188
|
-
}), fe = /* @__PURE__ */ O(Dt, [["__scopeId", "data-v-
|
|
188
|
+
}), fe = /* @__PURE__ */ O(Dt, [["__scopeId", "data-v-4df2f2ae"]]), Rt = {
|
|
189
189
|
DEFAULT: "default",
|
|
190
190
|
// white bg, slate-tint border, muted text
|
|
191
191
|
GREY: "grey",
|
|
@@ -233,23 +233,23 @@ const $e = {
|
|
|
233
233
|
]])
|
|
234
234
|
}, [
|
|
235
235
|
s("span", At, [
|
|
236
|
-
|
|
236
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
237
237
|
]),
|
|
238
238
|
e.closable ? (a(), l("button", {
|
|
239
239
|
key: 0,
|
|
240
240
|
type: "button",
|
|
241
241
|
class: "ds-tag__close",
|
|
242
242
|
"aria-label": e.closeLabel || void 0,
|
|
243
|
-
onClick: i[0] || (i[0] = ue((
|
|
243
|
+
onClick: i[0] || (i[0] = ue((d) => t(D(J)), ["stop"]))
|
|
244
244
|
}, [...i[1] || (i[1] = [
|
|
245
245
|
s("i", {
|
|
246
|
-
class: "material-
|
|
246
|
+
class: "material-symbols-filled",
|
|
247
247
|
"aria-hidden": "true"
|
|
248
248
|
}, "close", -1)
|
|
249
249
|
])], 8, Nt)) : g("", !0)
|
|
250
250
|
], 2));
|
|
251
251
|
}
|
|
252
|
-
}), tn = /* @__PURE__ */ O(Bt, [["__scopeId", "data-v-
|
|
252
|
+
}), tn = /* @__PURE__ */ O(Bt, [["__scopeId", "data-v-23118dd1"]]), xe = {
|
|
253
253
|
ACCENT: "accent",
|
|
254
254
|
// e.g. Work (purple)
|
|
255
255
|
GREY: "grey",
|
|
@@ -274,7 +274,7 @@ const $e = {
|
|
|
274
274
|
return (n, t) => (a(), l("span", {
|
|
275
275
|
class: L(["ds-badge", `ds-badge--${e.tone}`])
|
|
276
276
|
}, [
|
|
277
|
-
|
|
277
|
+
C(n.$slots, "default", {}, void 0, !0)
|
|
278
278
|
], 2));
|
|
279
279
|
}
|
|
280
280
|
}), xt = /* @__PURE__ */ O(Ot, [["__scopeId", "data-v-f10a17a0"]]), Mt = ["src", "alt"], Pt = ["aria-label"], zt = /* @__PURE__ */ B({
|
|
@@ -303,58 +303,58 @@ const $e = {
|
|
|
303
303
|
alt: { type: String, default: void 0 }
|
|
304
304
|
},
|
|
305
305
|
setup(e) {
|
|
306
|
-
const n = e, t =
|
|
307
|
-
var
|
|
308
|
-
return (
|
|
309
|
-
}),
|
|
310
|
-
var
|
|
311
|
-
return (
|
|
312
|
-
}), E =
|
|
313
|
-
var
|
|
314
|
-
return (
|
|
315
|
-
}),
|
|
306
|
+
const n = e, t = k(() => n.letters ? n.letters : n.firstName && n.lastName ? (n.firstName.charAt(0) + n.lastName.charAt(0)).toUpperCase() : ""), o = k(() => `${n.firstName} ${n.lastName}`.trim() || n.letters), i = k(() => {
|
|
307
|
+
var r;
|
|
308
|
+
return (r = n.alt) != null ? r : o.value;
|
|
309
|
+
}), d = k(() => {
|
|
310
|
+
var r;
|
|
311
|
+
return (r = n.width) != null ? r : n.size;
|
|
312
|
+
}), E = k(() => {
|
|
313
|
+
var r;
|
|
314
|
+
return (r = n.height) != null ? r : n.size;
|
|
315
|
+
}), v = k(() => ({ width: `${d.value}px`, height: `${E.value}px` })), y = k(
|
|
316
316
|
() => {
|
|
317
|
-
var
|
|
318
|
-
return (
|
|
317
|
+
var r;
|
|
318
|
+
return (r = n.textSize) != null ? r : Math.round(Math.min(d.value, E.value) * 0.4);
|
|
319
319
|
}
|
|
320
|
-
),
|
|
321
|
-
const
|
|
320
|
+
), f = k(() => {
|
|
321
|
+
const r = n.uid || n.firstName + n.lastName || n.letters;
|
|
322
322
|
let c = 0;
|
|
323
|
-
for (let
|
|
324
|
-
c =
|
|
323
|
+
for (let T = 0; T < r.length; T++)
|
|
324
|
+
c = r.charCodeAt(T) + ((c << 5) - c), c = c & c;
|
|
325
325
|
const m = [0, 0, 0];
|
|
326
|
-
for (let
|
|
327
|
-
const
|
|
328
|
-
return { bg: `rgb(${m[0]}, ${m[1]}, ${m[2]})`, fg:
|
|
326
|
+
for (let T = 0; T < 3; T++) m[T] = c >> T * 8 & 255;
|
|
327
|
+
const p = m[0] >= 200 && m[1] >= 200 && m[2] >= 200;
|
|
328
|
+
return { bg: `rgb(${m[0]}, ${m[1]}, ${m[2]})`, fg: p ? "#323f4b" : "#fff" };
|
|
329
329
|
});
|
|
330
|
-
return (
|
|
330
|
+
return (r, c) => e.image ? (a(), l("img", {
|
|
331
331
|
key: 0,
|
|
332
332
|
class: L(["ds-avatar", { "is-circular": e.circular }]),
|
|
333
333
|
src: e.image,
|
|
334
334
|
alt: i.value,
|
|
335
|
-
style: U(
|
|
335
|
+
style: U(v.value)
|
|
336
336
|
}, null, 14, Mt)) : t.value ? (a(), l("div", {
|
|
337
337
|
key: 1,
|
|
338
338
|
class: L(["ds-avatar ds-avatar--initials", { "is-circular": e.circular }]),
|
|
339
339
|
role: "img",
|
|
340
340
|
"aria-label": i.value || void 0,
|
|
341
341
|
style: U([
|
|
342
|
-
|
|
342
|
+
v.value,
|
|
343
343
|
{
|
|
344
|
-
background:
|
|
345
|
-
color:
|
|
344
|
+
background: f.value.bg,
|
|
345
|
+
color: f.value.fg,
|
|
346
346
|
fontSize: `${y.value}px`,
|
|
347
347
|
fontWeight: e.fontWeight
|
|
348
348
|
}
|
|
349
349
|
])
|
|
350
|
-
},
|
|
350
|
+
}, w(t.value), 15, Pt)) : (a(), l("div", {
|
|
351
351
|
key: 2,
|
|
352
352
|
class: L(["ds-avatar ds-avatar--placeholder", { "is-circular": e.circular }]),
|
|
353
|
-
style: U(
|
|
353
|
+
style: U(v.value),
|
|
354
354
|
"aria-hidden": "true"
|
|
355
355
|
}, null, 6));
|
|
356
356
|
}
|
|
357
|
-
}), an = /* @__PURE__ */ O(zt, [["__scopeId", "data-v-4faae4da"]]),
|
|
357
|
+
}), an = /* @__PURE__ */ O(zt, [["__scopeId", "data-v-4faae4da"]]), Ft = ["disabled", "name", "aria-label"], Vt = {
|
|
358
358
|
key: 0,
|
|
359
359
|
class: "ds-checkbox__mark",
|
|
360
360
|
viewBox: "0 0 16 16",
|
|
@@ -371,9 +371,9 @@ const $e = {
|
|
|
371
371
|
}, Gt = {
|
|
372
372
|
key: 0,
|
|
373
373
|
class: "ds-checkbox__label"
|
|
374
|
-
},
|
|
374
|
+
}, Ht = /* @__PURE__ */ B({
|
|
375
375
|
__name: "DsCheckbox",
|
|
376
|
-
props: /* @__PURE__ */
|
|
376
|
+
props: /* @__PURE__ */ ae({
|
|
377
377
|
indeterminate: Boolean,
|
|
378
378
|
disabled: Boolean,
|
|
379
379
|
name: { type: String, default: "" },
|
|
@@ -387,30 +387,30 @@ const $e = {
|
|
|
387
387
|
}),
|
|
388
388
|
emits: ["update:modelValue"],
|
|
389
389
|
setup(e) {
|
|
390
|
-
const n = ve(e, "modelValue"), t = e, o =
|
|
390
|
+
const n = ve(e, "modelValue"), t = e, o = V(null);
|
|
391
391
|
function i() {
|
|
392
392
|
o.value && (o.value.indeterminate = t.indeterminate);
|
|
393
393
|
}
|
|
394
|
-
return nt(i), Z(() => t.indeterminate, i), (
|
|
394
|
+
return nt(i), Z(() => t.indeterminate, i), (d, E) => (a(), l("label", {
|
|
395
395
|
class: L(["ds-checkbox", { "is-disabled": e.disabled }])
|
|
396
396
|
}, [
|
|
397
397
|
Me(s("input", {
|
|
398
398
|
ref_key: "inputRef",
|
|
399
399
|
ref: o,
|
|
400
|
-
"onUpdate:modelValue": E[0] || (E[0] = (
|
|
400
|
+
"onUpdate:modelValue": E[0] || (E[0] = (v) => n.value = v),
|
|
401
401
|
type: "checkbox",
|
|
402
402
|
class: "ds-checkbox__native",
|
|
403
403
|
disabled: e.disabled,
|
|
404
404
|
name: e.name || void 0,
|
|
405
405
|
"aria-label": e.ariaLabel || void 0
|
|
406
|
-
}, null, 8,
|
|
406
|
+
}, null, 8, Ft), [
|
|
407
407
|
[bt, n.value]
|
|
408
408
|
]),
|
|
409
409
|
s("span", {
|
|
410
410
|
class: L(["ds-checkbox__box", { "is-active": n.value || e.indeterminate }]),
|
|
411
411
|
"aria-hidden": "true"
|
|
412
412
|
}, [
|
|
413
|
-
e.indeterminate ? (a(), l("svg",
|
|
413
|
+
e.indeterminate ? (a(), l("svg", Vt, [...E[1] || (E[1] = [
|
|
414
414
|
s("line", {
|
|
415
415
|
x1: "4",
|
|
416
416
|
y1: "8",
|
|
@@ -421,21 +421,21 @@ const $e = {
|
|
|
421
421
|
s("path", { d: "M3.5 8.5l3 3 6-6" }, null, -1)
|
|
422
422
|
])])) : g("", !0)
|
|
423
423
|
], 2),
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
q(
|
|
424
|
+
d.$slots.default || e.label ? (a(), l("span", Gt, [
|
|
425
|
+
C(d.$slots, "default", {}, () => [
|
|
426
|
+
q(w(e.label), 1)
|
|
427
427
|
], !0)
|
|
428
428
|
])) : g("", !0)
|
|
429
429
|
], 2));
|
|
430
430
|
}
|
|
431
|
-
}), ot = /* @__PURE__ */ O(
|
|
431
|
+
}), ot = /* @__PURE__ */ O(Ht, [["__scopeId", "data-v-2da3772e"]]), Je = {
|
|
432
432
|
LEFT: "left",
|
|
433
433
|
CENTER: "center",
|
|
434
434
|
RIGHT: "right"
|
|
435
435
|
}, ne = {
|
|
436
436
|
LEFT: "left",
|
|
437
437
|
RIGHT: "right"
|
|
438
|
-
},
|
|
438
|
+
}, Wt = ["aria-busy"], Kt = { class: "ds-table__table" }, Yt = { class: "ds-table__head" }, qt = {
|
|
439
439
|
key: 0,
|
|
440
440
|
class: "ds-table__select-all"
|
|
441
441
|
}, jt = { key: 0 }, Xt = ["colspan"], Zt = ["aria-busy"], Qt = { key: 0 }, Jt = ["colspan"], ea = { key: 1 }, ta = ["colspan"], aa = ["title"], la = /* @__PURE__ */ B({
|
|
@@ -495,16 +495,16 @@ const $e = {
|
|
|
495
495
|
},
|
|
496
496
|
emits: [Ge],
|
|
497
497
|
setup(e, { emit: n }) {
|
|
498
|
-
const t = e, o = n, i =
|
|
498
|
+
const t = e, o = n, i = k(
|
|
499
499
|
() => Math.max(1, t.headers.length + (t.selectable ? 1 : 0))
|
|
500
|
-
),
|
|
500
|
+
), d = k(
|
|
501
501
|
() => t.rowHeight == null ? void 0 : {
|
|
502
502
|
"--ds-table-row-height": typeof t.rowHeight == "number" ? `${t.rowHeight}px` : t.rowHeight
|
|
503
503
|
}
|
|
504
|
-
), E =
|
|
504
|
+
), E = k(
|
|
505
505
|
() => t.height == null ? void 0 : { height: typeof t.height == "number" ? `${t.height}px` : t.height }
|
|
506
506
|
);
|
|
507
|
-
function
|
|
507
|
+
function v(b) {
|
|
508
508
|
o(Ge, b);
|
|
509
509
|
}
|
|
510
510
|
function y(b) {
|
|
@@ -512,19 +512,19 @@ const $e = {
|
|
|
512
512
|
const R = /^(\d+(?:\.\d+)?)px$/.exec(b.trim());
|
|
513
513
|
return R ? parseFloat(R[1]) : 0;
|
|
514
514
|
}
|
|
515
|
-
const
|
|
515
|
+
const f = k(() => {
|
|
516
516
|
const b = {};
|
|
517
517
|
let R = 0;
|
|
518
|
-
for (const
|
|
519
|
-
|
|
518
|
+
for (const S of t.columns)
|
|
519
|
+
S.pinned === ne.LEFT && (b[S.key] = { position: "sticky", left: `${R}px` }, R += y(S.width));
|
|
520
520
|
let u = 0;
|
|
521
|
-
for (let
|
|
522
|
-
const x = t.columns[
|
|
521
|
+
for (let S = t.columns.length - 1; S >= 0; S--) {
|
|
522
|
+
const x = t.columns[S];
|
|
523
523
|
x.pinned === ne.RIGHT && (b[x.key] = { position: "sticky", right: `${u}px` }, u += y(x.width));
|
|
524
524
|
}
|
|
525
525
|
return b;
|
|
526
|
-
}),
|
|
527
|
-
const b = t.columns.filter((
|
|
526
|
+
}), r = k(() => {
|
|
527
|
+
const b = t.columns.filter((S) => S.pinned === ne.LEFT), R = t.columns.filter((S) => S.pinned === ne.RIGHT), u = /* @__PURE__ */ new Set();
|
|
528
528
|
return b.length && u.add(b[b.length - 1].key), R.length && u.add(R[0].key), u;
|
|
529
529
|
});
|
|
530
530
|
function c(b) {
|
|
@@ -532,64 +532,64 @@ const $e = {
|
|
|
532
532
|
return {
|
|
533
533
|
"ds-table__pin": !0,
|
|
534
534
|
[`ds-table__pin--${b.pinned}`]: !0,
|
|
535
|
-
"ds-table__pin--edge":
|
|
535
|
+
"ds-table__pin--edge": r.value.has(b.key)
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
function m(b) {
|
|
539
|
-
const R =
|
|
539
|
+
const R = f.value[b.key], u = b.width ? { width: b.width } : void 0;
|
|
540
540
|
if (!(!R && !u))
|
|
541
541
|
return { ...u, ...R };
|
|
542
542
|
}
|
|
543
|
-
function
|
|
544
|
-
const R =
|
|
543
|
+
function p(b) {
|
|
544
|
+
const R = f.value[b.key];
|
|
545
545
|
if (R)
|
|
546
546
|
return b.width ? { ...R, width: b.width } : R;
|
|
547
547
|
}
|
|
548
|
-
const
|
|
548
|
+
const T = k(
|
|
549
549
|
() => t.headers.map((b) => typeof b == "string" ? { label: b } : b)
|
|
550
|
-
), N =
|
|
551
|
-
const b = {}, R =
|
|
550
|
+
), N = k(() => {
|
|
551
|
+
const b = {}, R = T.value;
|
|
552
552
|
let u = 0;
|
|
553
553
|
R.forEach((x, le) => {
|
|
554
554
|
x.pinned === ne.LEFT && (b[le] = { position: "sticky", left: `${u}px` }, u += y(x.width));
|
|
555
555
|
});
|
|
556
|
-
let
|
|
556
|
+
let S = 0;
|
|
557
557
|
for (let x = R.length - 1; x >= 0; x--)
|
|
558
|
-
R[x].pinned === ne.RIGHT && (b[x] = { position: "sticky", right: `${
|
|
558
|
+
R[x].pinned === ne.RIGHT && (b[x] = { position: "sticky", right: `${S}px` }, S += y(R[x].width));
|
|
559
559
|
return b;
|
|
560
|
-
}),
|
|
561
|
-
const b =
|
|
562
|
-
return R.length &&
|
|
560
|
+
}), _ = k(() => {
|
|
561
|
+
const b = T.value, R = b.map((x, le) => ({ h: x, i: le })).filter(({ h: x }) => x.pinned === ne.LEFT), u = b.map((x, le) => ({ h: x, i: le })).filter(({ h: x }) => x.pinned === ne.RIGHT), S = /* @__PURE__ */ new Set();
|
|
562
|
+
return R.length && S.add(R[R.length - 1].i), u.length && S.add(u[0].i), S;
|
|
563
563
|
});
|
|
564
564
|
function $(b, R) {
|
|
565
565
|
if (b.pinned)
|
|
566
566
|
return {
|
|
567
567
|
"ds-table__pin": !0,
|
|
568
568
|
[`ds-table__pin--${b.pinned}`]: !0,
|
|
569
|
-
"ds-table__pin--edge":
|
|
569
|
+
"ds-table__pin--edge": _.value.has(R)
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
572
|
function A(b, R) {
|
|
573
|
-
const u = N.value[R],
|
|
574
|
-
if (!(!u && !
|
|
575
|
-
return { ...
|
|
573
|
+
const u = N.value[R], S = b.width ? { width: b.width } : void 0;
|
|
574
|
+
if (!(!u && !S))
|
|
575
|
+
return { ...S, ...u };
|
|
576
576
|
}
|
|
577
|
-
const
|
|
577
|
+
const F = V(null), W = V(!1), ee = V(!1);
|
|
578
578
|
let G = null;
|
|
579
579
|
function M() {
|
|
580
|
-
const b =
|
|
581
|
-
b && (
|
|
580
|
+
const b = F.value;
|
|
581
|
+
b && (W.value = b.scrollLeft > 0, ee.value = b.scrollLeft + b.clientWidth < b.scrollWidth - 1);
|
|
582
582
|
}
|
|
583
583
|
function j(b) {
|
|
584
584
|
b == null || b.removeEventListener("scroll", M), G == null || G.disconnect(), G = null;
|
|
585
585
|
}
|
|
586
586
|
return Z(
|
|
587
|
-
|
|
587
|
+
F,
|
|
588
588
|
(b, R) => {
|
|
589
589
|
j(R != null ? R : null), b && (b.addEventListener("scroll", M, { passive: !0 }), typeof ResizeObserver != "undefined" && (G = new ResizeObserver(M), G.observe(b)), M());
|
|
590
590
|
},
|
|
591
591
|
{ immediate: !0 }
|
|
592
|
-
), de(() => j(
|
|
592
|
+
), de(() => j(F.value)), Z(
|
|
593
593
|
() => [t.columns.length, t.rows.length, t.headers.length, t.compound],
|
|
594
594
|
() => se(M)
|
|
595
595
|
), (b, R) => e.compound ? (a(), l("div", {
|
|
@@ -599,8 +599,8 @@ const $e = {
|
|
|
599
599
|
}, [
|
|
600
600
|
s("div", {
|
|
601
601
|
ref_key: "wrapperRef",
|
|
602
|
-
ref:
|
|
603
|
-
class: L(["ds-table__wrapper", { "is-scrolled-start":
|
|
602
|
+
ref: F,
|
|
603
|
+
class: L(["ds-table__wrapper", { "is-scrolled-start": W.value, "is-scrolled-end": ee.value }]),
|
|
604
604
|
style: U(E.value)
|
|
605
605
|
}, [
|
|
606
606
|
s("table", Kt, [
|
|
@@ -611,14 +611,14 @@ const $e = {
|
|
|
611
611
|
"model-value": e.allSelected,
|
|
612
612
|
indeterminate: !e.allSelected && e.someSelected,
|
|
613
613
|
"aria-label": e.selectAllLabel || void 0,
|
|
614
|
-
"onUpdate:modelValue":
|
|
614
|
+
"onUpdate:modelValue": v
|
|
615
615
|
}, null, 8, ["model-value", "indeterminate", "aria-label"])
|
|
616
616
|
])) : g("", !0),
|
|
617
|
-
(a(!0), l(
|
|
617
|
+
(a(!0), l(H, null, Q(T.value, (u, S) => (a(), l("th", {
|
|
618
618
|
key: u.label,
|
|
619
|
-
class: L($(u,
|
|
620
|
-
style: U(A(u,
|
|
621
|
-
},
|
|
619
|
+
class: L($(u, S)),
|
|
620
|
+
style: U(A(u, S))
|
|
621
|
+
}, w(u.label), 7))), 128))
|
|
622
622
|
])
|
|
623
623
|
]),
|
|
624
624
|
s("tbody", null, [
|
|
@@ -628,42 +628,42 @@ const $e = {
|
|
|
628
628
|
colspan: i.value,
|
|
629
629
|
"data-testid": "ds-table-loading"
|
|
630
630
|
}, [
|
|
631
|
-
|
|
631
|
+
C(b.$slots, "loading", {}, () => [
|
|
632
632
|
Y(D(ye), {
|
|
633
633
|
label: e.loadingLabel || void 0
|
|
634
634
|
}, null, 8, ["label"])
|
|
635
635
|
], !0)
|
|
636
636
|
], 8, Xt)
|
|
637
|
-
])) :
|
|
637
|
+
])) : C(b.$slots, "default", { key: 1 }, void 0, !0)
|
|
638
638
|
])
|
|
639
639
|
])
|
|
640
640
|
], 6)
|
|
641
|
-
], 8,
|
|
641
|
+
], 8, Wt)) : (a(), l("div", {
|
|
642
642
|
key: 1,
|
|
643
643
|
class: "ds-table",
|
|
644
644
|
"aria-busy": e.loading ? "true" : void 0
|
|
645
645
|
}, [
|
|
646
646
|
s("div", {
|
|
647
647
|
ref_key: "wrapperRef",
|
|
648
|
-
ref:
|
|
649
|
-
class: L(["ds-table__wrapper", { "is-scrolled-start":
|
|
648
|
+
ref: F,
|
|
649
|
+
class: L(["ds-table__wrapper", { "is-scrolled-start": W.value, "is-scrolled-end": ee.value }])
|
|
650
650
|
}, [
|
|
651
651
|
s("table", {
|
|
652
652
|
class: L(["ds-table__table", { "has-row-height": e.rowHeight != null }]),
|
|
653
|
-
style: U(
|
|
653
|
+
style: U(d.value)
|
|
654
654
|
}, [
|
|
655
655
|
s("thead", null, [
|
|
656
656
|
s("tr", null, [
|
|
657
|
-
(a(!0), l(
|
|
658
|
-
var
|
|
657
|
+
(a(!0), l(H, null, Q(e.columns, (u) => {
|
|
658
|
+
var S;
|
|
659
659
|
return a(), l("th", {
|
|
660
660
|
key: u.key,
|
|
661
661
|
class: L([
|
|
662
|
-
`ds-table__th--${(
|
|
662
|
+
`ds-table__th--${(S = u.align) != null ? S : D(Je).LEFT}`,
|
|
663
663
|
c(u)
|
|
664
664
|
]),
|
|
665
665
|
style: U(m(u))
|
|
666
|
-
},
|
|
666
|
+
}, w(u.label), 7);
|
|
667
667
|
}), 128))
|
|
668
668
|
])
|
|
669
669
|
]),
|
|
@@ -674,7 +674,7 @@ const $e = {
|
|
|
674
674
|
colspan: Math.max(1, e.columns.length),
|
|
675
675
|
"data-testid": "ds-table-loading"
|
|
676
676
|
}, [
|
|
677
|
-
|
|
677
|
+
C(b.$slots, "loading", {}, () => [
|
|
678
678
|
Y(D(ye), {
|
|
679
679
|
label: e.loadingLabel || void 0
|
|
680
680
|
}, null, 8, ["label"])
|
|
@@ -686,28 +686,28 @@ const $e = {
|
|
|
686
686
|
colspan: Math.max(1, e.columns.length),
|
|
687
687
|
"data-testid": "ds-table-empty"
|
|
688
688
|
}, [
|
|
689
|
-
|
|
690
|
-
q(
|
|
689
|
+
C(b.$slots, "empty", {}, () => [
|
|
690
|
+
q(w(e.emptyMessage), 1)
|
|
691
691
|
], !0)
|
|
692
692
|
], 8, ta)
|
|
693
|
-
])) : (a(!0), l(
|
|
693
|
+
])) : (a(!0), l(H, { key: 2 }, Q(e.rows, (u) => (a(), l("tr", {
|
|
694
694
|
key: u.id,
|
|
695
695
|
class: L({ "is-highlighted": u.id === e.highlightRowId }),
|
|
696
696
|
"data-testid": "ds-table-row"
|
|
697
697
|
}, [
|
|
698
|
-
(a(!0), l(
|
|
698
|
+
(a(!0), l(H, null, Q(e.columns, (S) => {
|
|
699
699
|
var x;
|
|
700
700
|
return a(), l("td", {
|
|
701
|
-
key:
|
|
701
|
+
key: S.key,
|
|
702
702
|
class: L([
|
|
703
|
-
`ds-table__td--${(x =
|
|
704
|
-
c(
|
|
703
|
+
`ds-table__td--${(x = S.align) != null ? x : D(Je).LEFT}`,
|
|
704
|
+
c(S)
|
|
705
705
|
]),
|
|
706
|
-
style: U(
|
|
707
|
-
title: e.rowHeight != null && !b.$slots[`cell-${
|
|
706
|
+
style: U(p(S)),
|
|
707
|
+
title: e.rowHeight != null && !b.$slots[`cell-${S.key}`] && u[S.key] != null ? String(u[S.key]) : void 0
|
|
708
708
|
}, [
|
|
709
|
-
|
|
710
|
-
q(
|
|
709
|
+
C(b.$slots, `cell-${S.key}`, { row: u }, () => [
|
|
710
|
+
q(w(u[S.key]), 1)
|
|
711
711
|
], !0)
|
|
712
712
|
], 14, aa);
|
|
713
713
|
}), 128))
|
|
@@ -732,21 +732,21 @@ const $e = {
|
|
|
732
732
|
// 48px
|
|
733
733
|
}, na = { class: "ds-input__wrap" }, sa = {
|
|
734
734
|
key: 0,
|
|
735
|
-
class: "material-
|
|
735
|
+
class: "material-symbols-filled ds-input__search-icon",
|
|
736
736
|
"aria-hidden": "true"
|
|
737
737
|
}, oa = ["id", "type", "placeholder", "min", "max", "step", "disabled", "name", "autocomplete", "aria-invalid", "aria-describedby"], da = {
|
|
738
738
|
key: 1,
|
|
739
739
|
class: "ds-input__suffix"
|
|
740
740
|
}, ra = {
|
|
741
741
|
key: 0,
|
|
742
|
-
class: "material-
|
|
742
|
+
class: "material-symbols-filled ds-input__error-icon",
|
|
743
743
|
"aria-hidden": "true"
|
|
744
744
|
}, ca = ["disabled", "aria-label", "aria-pressed"], ua = {
|
|
745
|
-
class: "material-
|
|
745
|
+
class: "material-symbols-filled",
|
|
746
746
|
"aria-hidden": "true"
|
|
747
747
|
}, fa = ["id"], va = /* @__PURE__ */ B({
|
|
748
748
|
__name: "DsInput",
|
|
749
|
-
props: /* @__PURE__ */
|
|
749
|
+
props: /* @__PURE__ */ ae({
|
|
750
750
|
type: { type: String, default: be.TEXT },
|
|
751
751
|
size: { type: String, default: ia.SM },
|
|
752
752
|
placeholder: { type: String, default: "" },
|
|
@@ -768,42 +768,42 @@ const $e = {
|
|
|
768
768
|
modelValue: { default: "" },
|
|
769
769
|
modelModifiers: {}
|
|
770
770
|
}),
|
|
771
|
-
emits: /* @__PURE__ */
|
|
771
|
+
emits: /* @__PURE__ */ ae([Te, Ee, ze, Fe], ["update:modelValue"]),
|
|
772
772
|
setup(e, { expose: n, emit: t }) {
|
|
773
|
-
const o = ve(e, "modelValue"), i = e,
|
|
774
|
-
function
|
|
775
|
-
const $ =
|
|
776
|
-
$ && (A != null && A.contains($)) ||
|
|
773
|
+
const o = ve(e, "modelValue"), i = e, d = t, E = V();
|
|
774
|
+
function v(_) {
|
|
775
|
+
const $ = _.relatedTarget, A = _.currentTarget;
|
|
776
|
+
$ && (A != null && A.contains($)) || d(Fe, _);
|
|
777
777
|
}
|
|
778
|
-
const y = he(),
|
|
779
|
-
function
|
|
780
|
-
i.disabled || (
|
|
778
|
+
const y = he(), f = V(!1);
|
|
779
|
+
function r() {
|
|
780
|
+
i.disabled || (f.value = !f.value);
|
|
781
781
|
}
|
|
782
|
-
const c =
|
|
783
|
-
() => !!y.suffix || i.error && i.showErrorIcon ||
|
|
782
|
+
const c = k(() => i.type === be.PASSWORD), m = k(() => i.type === be.SEARCH), p = k(() => c.value ? f.value ? be.TEXT : be.PASSWORD : m.value ? be.TEXT : i.type), T = k(() => c.value && !!i.toggleLabel), N = k(
|
|
783
|
+
() => !!y.suffix || i.error && i.showErrorIcon || T.value
|
|
784
784
|
);
|
|
785
785
|
return n({
|
|
786
786
|
focus: () => {
|
|
787
|
-
var
|
|
788
|
-
return (
|
|
787
|
+
var _;
|
|
788
|
+
return (_ = E.value) == null ? void 0 : _.focus();
|
|
789
789
|
},
|
|
790
790
|
focusAtEnd: async () => {
|
|
791
791
|
await se();
|
|
792
|
-
const
|
|
793
|
-
if (!
|
|
794
|
-
|
|
795
|
-
const $ =
|
|
792
|
+
const _ = E.value;
|
|
793
|
+
if (!_) return;
|
|
794
|
+
_.focus();
|
|
795
|
+
const $ = _.value.length;
|
|
796
796
|
try {
|
|
797
|
-
|
|
797
|
+
_.setSelectionRange($, $);
|
|
798
798
|
} catch {
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
}), (
|
|
801
|
+
}), (_, $) => (a(), l("div", {
|
|
802
802
|
class: L(["ds-input", [
|
|
803
803
|
`ds-input--${e.size}`,
|
|
804
804
|
{ "is-error": e.error, "is-disabled": e.disabled, "is-search": m.value }
|
|
805
805
|
]]),
|
|
806
|
-
onFocusout:
|
|
806
|
+
onFocusout: v
|
|
807
807
|
}, [
|
|
808
808
|
s("div", na, [
|
|
809
809
|
m.value ? (a(), l("i", sa, "search")) : g("", !0),
|
|
@@ -813,7 +813,7 @@ const $e = {
|
|
|
813
813
|
ref: E,
|
|
814
814
|
"onUpdate:modelValue": $[0] || ($[0] = (A) => o.value = A),
|
|
815
815
|
class: L(["ds-input__control", { "has-suffix": N.value }]),
|
|
816
|
-
type:
|
|
816
|
+
type: p.value,
|
|
817
817
|
placeholder: e.placeholder,
|
|
818
818
|
min: e.min,
|
|
819
819
|
max: e.max,
|
|
@@ -823,24 +823,24 @@ const $e = {
|
|
|
823
823
|
autocomplete: e.autocomplete || void 0,
|
|
824
824
|
"aria-invalid": e.error || void 0,
|
|
825
825
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
826
|
-
onFocus: $[1] || ($[1] = (A) =>
|
|
827
|
-
onBlur: $[2] || ($[2] = (A) =>
|
|
828
|
-
onChange: $[3] || ($[3] = (A) =>
|
|
826
|
+
onFocus: $[1] || ($[1] = (A) => d(D(Te), A)),
|
|
827
|
+
onBlur: $[2] || ($[2] = (A) => d(D(Ee), A)),
|
|
828
|
+
onChange: $[3] || ($[3] = (A) => d(D(ze), A))
|
|
829
829
|
}, null, 42, oa), [
|
|
830
830
|
[yt, o.value]
|
|
831
831
|
]),
|
|
832
832
|
N.value ? (a(), l("div", da, [
|
|
833
|
-
_
|
|
834
|
-
e.error && e.showErrorIcon ? (a(), l("i", ra, "warning")) :
|
|
833
|
+
C(_.$slots, "suffix", {}, void 0, !0),
|
|
834
|
+
e.error && e.showErrorIcon ? (a(), l("i", ra, "warning")) : T.value ? (a(), l("button", {
|
|
835
835
|
key: 1,
|
|
836
836
|
type: "button",
|
|
837
837
|
class: "ds-input__toggle",
|
|
838
838
|
disabled: e.disabled,
|
|
839
839
|
"aria-label": e.toggleLabel || void 0,
|
|
840
|
-
"aria-pressed":
|
|
841
|
-
onClick:
|
|
840
|
+
"aria-pressed": f.value,
|
|
841
|
+
onClick: r
|
|
842
842
|
}, [
|
|
843
|
-
s("i", ua,
|
|
843
|
+
s("i", ua, w(f.value ? "visibility" : "visibility_off"), 1)
|
|
844
844
|
], 8, ca)) : g("", !0)
|
|
845
845
|
])) : g("", !0)
|
|
846
846
|
]),
|
|
@@ -848,15 +848,15 @@ const $e = {
|
|
|
848
848
|
key: 0,
|
|
849
849
|
id: e.id ? `${e.id}-error` : void 0,
|
|
850
850
|
class: "ds-input__error"
|
|
851
|
-
},
|
|
851
|
+
}, w(e.errorMessage), 9, fa)) : g("", !0)
|
|
852
852
|
], 34));
|
|
853
853
|
}
|
|
854
|
-
}), nn = /* @__PURE__ */ O(va, [["__scopeId", "data-v-
|
|
854
|
+
}), nn = /* @__PURE__ */ O(va, [["__scopeId", "data-v-d6eb193a"]]), ba = {
|
|
855
855
|
VERTICAL: "vertical"
|
|
856
856
|
}, ya = ["id", "placeholder", "rows", "disabled", "name", "aria-invalid", "aria-describedby"], ma = ["id"], ha = /* @__PURE__ */ B({
|
|
857
857
|
inheritAttrs: !1,
|
|
858
858
|
__name: "DsTextarea",
|
|
859
|
-
props: /* @__PURE__ */
|
|
859
|
+
props: /* @__PURE__ */ ae({
|
|
860
860
|
placeholder: { type: String, default: "" },
|
|
861
861
|
rows: { type: Number, default: 4 },
|
|
862
862
|
disabled: Boolean,
|
|
@@ -873,19 +873,19 @@ const $e = {
|
|
|
873
873
|
modelValue: { default: "" },
|
|
874
874
|
modelModifiers: {}
|
|
875
875
|
}),
|
|
876
|
-
emits: /* @__PURE__ */
|
|
876
|
+
emits: /* @__PURE__ */ ae([Te, Ee], ["update:modelValue"]),
|
|
877
877
|
setup(e, { emit: n }) {
|
|
878
|
-
const t = ve(e, "modelValue"), o = n, i = mt(),
|
|
879
|
-
() => Object.fromEntries(Object.entries(i).filter(([y]) =>
|
|
880
|
-
),
|
|
881
|
-
() => Object.fromEntries(Object.entries(i).filter(([y]) => !
|
|
878
|
+
const t = ve(e, "modelValue"), o = n, i = mt(), d = (y) => y === "class" || y === "style" || y.startsWith("data-"), E = k(
|
|
879
|
+
() => Object.fromEntries(Object.entries(i).filter(([y]) => d(y)))
|
|
880
|
+
), v = k(
|
|
881
|
+
() => Object.fromEntries(Object.entries(i).filter(([y]) => !d(y)))
|
|
882
882
|
);
|
|
883
|
-
return (y,
|
|
883
|
+
return (y, f) => (a(), l("div", ke({
|
|
884
884
|
class: ["ds-textarea", [`ds-textarea--resize-${e.resize}`, { "is-error": e.error, "is-disabled": e.disabled }]]
|
|
885
885
|
}, E.value), [
|
|
886
|
-
Me(s("textarea", ke(
|
|
886
|
+
Me(s("textarea", ke(v.value, {
|
|
887
887
|
id: e.id || void 0,
|
|
888
|
-
"onUpdate:modelValue":
|
|
888
|
+
"onUpdate:modelValue": f[0] || (f[0] = (r) => t.value = r),
|
|
889
889
|
class: "ds-textarea__control",
|
|
890
890
|
placeholder: e.placeholder,
|
|
891
891
|
rows: e.rows,
|
|
@@ -893,8 +893,8 @@ const $e = {
|
|
|
893
893
|
name: e.name || void 0,
|
|
894
894
|
"aria-invalid": e.error || void 0,
|
|
895
895
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
896
|
-
onFocus:
|
|
897
|
-
onBlur:
|
|
896
|
+
onFocus: f[1] || (f[1] = (r) => o(D(Te), r)),
|
|
897
|
+
onBlur: f[2] || (f[2] = (r) => o(D(Ee), r))
|
|
898
898
|
}), null, 16, ya), [
|
|
899
899
|
[ht, t.value]
|
|
900
900
|
]),
|
|
@@ -902,7 +902,7 @@ const $e = {
|
|
|
902
902
|
key: 0,
|
|
903
903
|
id: e.id ? `${e.id}-error` : void 0,
|
|
904
904
|
class: "ds-textarea__error"
|
|
905
|
-
},
|
|
905
|
+
}, w(e.errorMessage), 9, ma)) : g("", !0)
|
|
906
906
|
], 16));
|
|
907
907
|
}
|
|
908
908
|
}), sn = /* @__PURE__ */ O(ha, [["__scopeId", "data-v-745c01de"]]), ga = {
|
|
@@ -922,14 +922,14 @@ const $e = {
|
|
|
922
922
|
error: "error"
|
|
923
923
|
}, ka = {
|
|
924
924
|
key: 0,
|
|
925
|
-
class: "material-
|
|
925
|
+
class: "material-symbols-filled ds-alert__icon",
|
|
926
926
|
"aria-hidden": "true"
|
|
927
|
-
}, $a = { class: "ds-alert__content" },
|
|
927
|
+
}, $a = { class: "ds-alert__content" }, Ta = {
|
|
928
928
|
key: 1,
|
|
929
929
|
class: "ds-alert__body"
|
|
930
|
-
}, Ea = ["aria-label"],
|
|
930
|
+
}, Ea = ["aria-label"], wa = /* @__PURE__ */ B({
|
|
931
931
|
__name: "DsAlert",
|
|
932
|
-
props: /* @__PURE__ */
|
|
932
|
+
props: /* @__PURE__ */ ae({
|
|
933
933
|
type: { type: String, default: ga.INFO },
|
|
934
934
|
effect: { type: String, default: pa.LIGHT },
|
|
935
935
|
title: { type: String, default: "" },
|
|
@@ -944,32 +944,32 @@ const $e = {
|
|
|
944
944
|
visible: { type: Boolean, default: !0 },
|
|
945
945
|
visibleModifiers: {}
|
|
946
946
|
}),
|
|
947
|
-
emits: /* @__PURE__ */
|
|
947
|
+
emits: /* @__PURE__ */ ae([J], ["update:visible"]),
|
|
948
948
|
setup(e, { emit: n }) {
|
|
949
|
-
const t = e, o = n, i = ve(e, "visible"),
|
|
950
|
-
function
|
|
949
|
+
const t = e, o = n, i = ve(e, "visible"), d = he(), E = k(() => Sa[t.type]), v = k(() => !!d.default || t.description.length > 0), y = k(() => !!d.title || t.title.length > 0);
|
|
950
|
+
function f() {
|
|
951
951
|
i.value = !1, o(J);
|
|
952
952
|
}
|
|
953
|
-
return (
|
|
953
|
+
return (r, c) => (a(), K(me, { name: "ds-alert-fade" }, {
|
|
954
954
|
default: ie(() => [
|
|
955
955
|
i.value ? (a(), l("div", {
|
|
956
956
|
key: 0,
|
|
957
957
|
class: L(["ds-alert", [`ds-alert--${e.type}`, `ds-alert--${e.effect}`, { "is-center": e.center }]]),
|
|
958
958
|
role: "alert"
|
|
959
959
|
}, [
|
|
960
|
-
e.showIcon ? (a(), l("i", ka,
|
|
960
|
+
e.showIcon ? (a(), l("i", ka, w(E.value), 1)) : g("", !0),
|
|
961
961
|
s("div", $a, [
|
|
962
962
|
y.value ? (a(), l("div", {
|
|
963
963
|
key: 0,
|
|
964
|
-
class: L(["ds-alert__title", { "has-body":
|
|
964
|
+
class: L(["ds-alert__title", { "has-body": v.value, "is-bold": v.value || e.boldTitle }])
|
|
965
965
|
}, [
|
|
966
|
-
|
|
967
|
-
q(
|
|
966
|
+
C(r.$slots, "title", {}, () => [
|
|
967
|
+
q(w(e.title), 1)
|
|
968
968
|
], !0)
|
|
969
969
|
], 2)) : g("", !0),
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
q(
|
|
970
|
+
v.value ? (a(), l("div", Ta, [
|
|
971
|
+
C(r.$slots, "default", {}, () => [
|
|
972
|
+
q(w(e.description), 1)
|
|
973
973
|
], !0)
|
|
974
974
|
])) : g("", !0)
|
|
975
975
|
]),
|
|
@@ -978,10 +978,10 @@ const $e = {
|
|
|
978
978
|
type: "button",
|
|
979
979
|
class: "ds-alert__close",
|
|
980
980
|
"aria-label": e.closeLabel || void 0,
|
|
981
|
-
onClick:
|
|
981
|
+
onClick: f
|
|
982
982
|
}, [...c[0] || (c[0] = [
|
|
983
983
|
s("i", {
|
|
984
|
-
class: "material-
|
|
984
|
+
class: "material-symbols-filled",
|
|
985
985
|
"aria-hidden": "true"
|
|
986
986
|
}, "close", -1)
|
|
987
987
|
])], 8, Ea)) : g("", !0)
|
|
@@ -990,17 +990,17 @@ const $e = {
|
|
|
990
990
|
_: 3
|
|
991
991
|
}));
|
|
992
992
|
}
|
|
993
|
-
}), on = /* @__PURE__ */ O(
|
|
993
|
+
}), on = /* @__PURE__ */ O(wa, [["__scopeId", "data-v-82377cbc"]]), La = {
|
|
994
994
|
SUCCESS: "success",
|
|
995
995
|
INFO: "info",
|
|
996
996
|
WARNING: "warning",
|
|
997
997
|
ERROR: "error"
|
|
998
|
-
},
|
|
998
|
+
}, _a = {
|
|
999
999
|
TOP_LEFT: "top-left",
|
|
1000
1000
|
TOP_RIGHT: "top-right",
|
|
1001
1001
|
BOTTOM_LEFT: "bottom-left",
|
|
1002
1002
|
BOTTOM_RIGHT: "bottom-right"
|
|
1003
|
-
},
|
|
1003
|
+
}, Ca = {
|
|
1004
1004
|
success: "check_circle",
|
|
1005
1005
|
info: "mode_edit",
|
|
1006
1006
|
warning: "warning",
|
|
@@ -1011,7 +1011,7 @@ const $e = {
|
|
|
1011
1011
|
PARENT: "_parent",
|
|
1012
1012
|
TOP: "_top"
|
|
1013
1013
|
}, Ia = {
|
|
1014
|
-
class: "material-
|
|
1014
|
+
class: "material-symbols-filled ds-notification__icon",
|
|
1015
1015
|
"aria-hidden": "true"
|
|
1016
1016
|
}, Da = { class: "ds-notification__content" }, Ra = {
|
|
1017
1017
|
key: 0,
|
|
@@ -1025,7 +1025,7 @@ const $e = {
|
|
|
1025
1025
|
type: { type: String, default: La.INFO },
|
|
1026
1026
|
position: {
|
|
1027
1027
|
type: String,
|
|
1028
|
-
default:
|
|
1028
|
+
default: _a.BOTTOM_LEFT
|
|
1029
1029
|
},
|
|
1030
1030
|
title: { type: String, default: "" },
|
|
1031
1031
|
description: { type: String, default: "" },
|
|
@@ -1050,29 +1050,29 @@ const $e = {
|
|
|
1050
1050
|
},
|
|
1051
1051
|
emits: [J, qe],
|
|
1052
1052
|
setup(e, { emit: n }) {
|
|
1053
|
-
const t = e, o = n, i =
|
|
1053
|
+
const t = e, o = n, i = V(!0), d = k(() => Ca[t.type]), E = k(
|
|
1054
1054
|
() => t.linkTarget === et.BLANK ? "noopener noreferrer" : void 0
|
|
1055
1055
|
);
|
|
1056
|
-
let
|
|
1057
|
-
function
|
|
1058
|
-
|
|
1056
|
+
let v, y = 0, f = t.duration;
|
|
1057
|
+
function r() {
|
|
1058
|
+
v && (clearTimeout(v), v = void 0);
|
|
1059
1059
|
}
|
|
1060
|
-
function c(
|
|
1061
|
-
|
|
1060
|
+
function c(_) {
|
|
1061
|
+
r(), !(t.duration <= 0 || !i.value) && (y = Date.now(), v = setTimeout(T, _));
|
|
1062
1062
|
}
|
|
1063
1063
|
function m() {
|
|
1064
|
-
|
|
1064
|
+
v && (f -= Date.now() - y, r());
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
c(
|
|
1066
|
+
function p() {
|
|
1067
|
+
c(f > 0 ? f : t.duration);
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
|
|
1069
|
+
function T() {
|
|
1070
|
+
r(), i.value = !1, o(J);
|
|
1071
1071
|
}
|
|
1072
|
-
function N(
|
|
1073
|
-
o(qe,
|
|
1072
|
+
function N(_) {
|
|
1073
|
+
o(qe, _);
|
|
1074
1074
|
}
|
|
1075
|
-
return nt(() => c(t.duration)), de(
|
|
1075
|
+
return nt(() => c(t.duration)), de(r), (_, $) => (a(), K(Pe, { to: "body" }, [
|
|
1076
1076
|
Y(me, {
|
|
1077
1077
|
name: "ds-notification",
|
|
1078
1078
|
appear: ""
|
|
@@ -1086,12 +1086,12 @@ const $e = {
|
|
|
1086
1086
|
class: L(["ds-notification__card", `ds-notification__card--${e.type}`]),
|
|
1087
1087
|
role: "alert",
|
|
1088
1088
|
onMouseenter: m,
|
|
1089
|
-
onMouseleave:
|
|
1089
|
+
onMouseleave: p
|
|
1090
1090
|
}, [
|
|
1091
|
-
s("i", Ia,
|
|
1091
|
+
s("i", Ia, w(d.value), 1),
|
|
1092
1092
|
s("div", Da, [
|
|
1093
|
-
e.title ? (a(), l("span", Ra,
|
|
1094
|
-
e.description ? (a(), l("p", Aa,
|
|
1093
|
+
e.title ? (a(), l("span", Ra, w(e.title), 1)) : g("", !0),
|
|
1094
|
+
e.description ? (a(), l("p", Aa, w(e.description), 1)) : g("", !0),
|
|
1095
1095
|
e.linkTitle ? (a(), l("a", {
|
|
1096
1096
|
key: 2,
|
|
1097
1097
|
class: "ds-notification__link",
|
|
@@ -1099,17 +1099,17 @@ const $e = {
|
|
|
1099
1099
|
target: e.linkTarget,
|
|
1100
1100
|
rel: E.value,
|
|
1101
1101
|
onClick: N
|
|
1102
|
-
},
|
|
1102
|
+
}, w(e.linkTitle), 9, Na)) : g("", !0)
|
|
1103
1103
|
]),
|
|
1104
1104
|
e.showClose ? (a(), l("button", {
|
|
1105
1105
|
key: 0,
|
|
1106
1106
|
type: "button",
|
|
1107
1107
|
class: "ds-notification__close",
|
|
1108
1108
|
"aria-label": e.closeLabel || void 0,
|
|
1109
|
-
onClick:
|
|
1109
|
+
onClick: T
|
|
1110
1110
|
}, [...$[0] || ($[0] = [
|
|
1111
1111
|
s("i", {
|
|
1112
|
-
class: "material-
|
|
1112
|
+
class: "material-symbols-filled",
|
|
1113
1113
|
"aria-hidden": "true"
|
|
1114
1114
|
}, "close", -1)
|
|
1115
1115
|
])], 8, Ba)) : g("", !0)
|
|
@@ -1120,13 +1120,13 @@ const $e = {
|
|
|
1120
1120
|
})
|
|
1121
1121
|
]));
|
|
1122
1122
|
}
|
|
1123
|
-
}), dn = /* @__PURE__ */ O(Oa, [["__scopeId", "data-v-
|
|
1123
|
+
}), dn = /* @__PURE__ */ O(Oa, [["__scopeId", "data-v-4ae56e64"]]), xa = ["aria-modal", "aria-labelledby", "aria-label"], Ma = {
|
|
1124
1124
|
key: 0,
|
|
1125
1125
|
class: "ds-modal__header"
|
|
1126
|
-
}, Pa = ["id"], za = { class: "ds-modal__body" },
|
|
1126
|
+
}, Pa = ["id"], za = { class: "ds-modal__body" }, Fa = {
|
|
1127
1127
|
key: 1,
|
|
1128
1128
|
class: "ds-modal__footer"
|
|
1129
|
-
},
|
|
1129
|
+
}, Va = /* @__PURE__ */ B({
|
|
1130
1130
|
__name: "DsModal",
|
|
1131
1131
|
props: {
|
|
1132
1132
|
open: Boolean,
|
|
@@ -1151,54 +1151,54 @@ const $e = {
|
|
|
1151
1151
|
},
|
|
1152
1152
|
emits: [J],
|
|
1153
1153
|
setup(e, { emit: n }) {
|
|
1154
|
-
const t = e, o = n, i =
|
|
1155
|
-
let
|
|
1156
|
-
const E = ge(),
|
|
1154
|
+
const t = e, o = n, i = V(null);
|
|
1155
|
+
let d = null;
|
|
1156
|
+
const E = ge(), v = k(() => ({
|
|
1157
1157
|
width: t.width,
|
|
1158
1158
|
...t.height ? { height: t.height } : {}
|
|
1159
1159
|
}));
|
|
1160
1160
|
function y() {
|
|
1161
1161
|
t.fixed && t.closeOnBackdrop && o(J);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function f() {
|
|
1164
1164
|
return i.value ? Array.from(i.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
1165
|
-
(
|
|
1165
|
+
(T) => T.offsetParent !== null
|
|
1166
1166
|
) : [];
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function r(p) {
|
|
1169
1169
|
var $;
|
|
1170
|
-
if (
|
|
1170
|
+
if (p.key === "Escape") {
|
|
1171
1171
|
t.closeOnEscape && o(J);
|
|
1172
1172
|
return;
|
|
1173
1173
|
}
|
|
1174
|
-
if (
|
|
1175
|
-
const
|
|
1176
|
-
if (
|
|
1177
|
-
|
|
1174
|
+
if (p.key !== "Tab") return;
|
|
1175
|
+
const T = f();
|
|
1176
|
+
if (T.length === 0) {
|
|
1177
|
+
p.preventDefault(), ($ = i.value) == null || $.focus();
|
|
1178
1178
|
return;
|
|
1179
1179
|
}
|
|
1180
|
-
const N =
|
|
1181
|
-
|
|
1180
|
+
const N = T[0], _ = T[T.length - 1];
|
|
1181
|
+
p.shiftKey && document.activeElement === N ? (p.preventDefault(), _.focus()) : !p.shiftKey && document.activeElement === _ && (p.preventDefault(), N.focus());
|
|
1182
1182
|
}
|
|
1183
1183
|
function c() {
|
|
1184
|
-
|
|
1185
|
-
var
|
|
1186
|
-
return (
|
|
1184
|
+
d = document.activeElement, document.addEventListener("keydown", r), document.body.style.overflow = "hidden", se(() => {
|
|
1185
|
+
var p, T;
|
|
1186
|
+
return (T = (p = f()[0]) != null ? p : i.value) == null ? void 0 : T.focus();
|
|
1187
1187
|
});
|
|
1188
1188
|
}
|
|
1189
|
-
function m(
|
|
1190
|
-
var
|
|
1191
|
-
document.removeEventListener("keydown",
|
|
1189
|
+
function m(p = !0) {
|
|
1190
|
+
var T;
|
|
1191
|
+
document.removeEventListener("keydown", r), document.body.style.overflow = "", p && ((T = d == null ? void 0 : d.focus) == null || T.call(d));
|
|
1192
1192
|
}
|
|
1193
1193
|
return Z(
|
|
1194
1194
|
() => t.open && t.fixed,
|
|
1195
|
-
(
|
|
1196
|
-
typeof document != "undefined" && (
|
|
1195
|
+
(p, T) => {
|
|
1196
|
+
typeof document != "undefined" && (p ? c() : T && m());
|
|
1197
1197
|
},
|
|
1198
1198
|
{ immediate: !0 }
|
|
1199
1199
|
), de(() => {
|
|
1200
1200
|
typeof document != "undefined" && m(!1);
|
|
1201
|
-
}), (
|
|
1201
|
+
}), (p, T) => (a(), K(Pe, {
|
|
1202
1202
|
to: "body",
|
|
1203
1203
|
disabled: !e.fixed
|
|
1204
1204
|
}, [
|
|
@@ -1219,29 +1219,29 @@ const $e = {
|
|
|
1219
1219
|
"aria-labelledby": e.title ? D(E) : void 0,
|
|
1220
1220
|
"aria-label": e.title ? void 0 : "dialog",
|
|
1221
1221
|
tabindex: "-1",
|
|
1222
|
-
style: U(
|
|
1223
|
-
onClick:
|
|
1222
|
+
style: U(v.value),
|
|
1223
|
+
onClick: T[1] || (T[1] = ue(() => {
|
|
1224
1224
|
}, ["stop"]))
|
|
1225
1225
|
}, [
|
|
1226
1226
|
e.title || e.showClose ? (a(), l("div", Ma, [
|
|
1227
1227
|
s("span", {
|
|
1228
1228
|
id: D(E),
|
|
1229
1229
|
class: "ds-modal__title"
|
|
1230
|
-
},
|
|
1230
|
+
}, w(e.title), 9, Pa),
|
|
1231
1231
|
e.showClose ? (a(), K(D(fe), {
|
|
1232
1232
|
key: 0,
|
|
1233
1233
|
variant: "tertiary",
|
|
1234
1234
|
circle: "",
|
|
1235
1235
|
"left-icon": "close",
|
|
1236
1236
|
"aria-label": e.closeLabel || void 0,
|
|
1237
|
-
onClick:
|
|
1237
|
+
onClick: T[0] || (T[0] = (N) => o(D(J)))
|
|
1238
1238
|
}, null, 8, ["aria-label"])) : g("", !0)
|
|
1239
1239
|
])) : g("", !0),
|
|
1240
1240
|
s("div", za, [
|
|
1241
|
-
|
|
1241
|
+
C(p.$slots, "default", {}, void 0, !0)
|
|
1242
1242
|
]),
|
|
1243
|
-
|
|
1244
|
-
|
|
1243
|
+
p.$slots.footer ? (a(), l("div", Fa, [
|
|
1244
|
+
C(p.$slots, "footer", {}, void 0, !0)
|
|
1245
1245
|
])) : g("", !0)
|
|
1246
1246
|
], 14, xa)
|
|
1247
1247
|
], 6)) : g("", !0)
|
|
@@ -1250,33 +1250,33 @@ const $e = {
|
|
|
1250
1250
|
})
|
|
1251
1251
|
], 8, ["disabled"]));
|
|
1252
1252
|
}
|
|
1253
|
-
}), rn = /* @__PURE__ */ O(
|
|
1253
|
+
}), rn = /* @__PURE__ */ O(Va, [["__scopeId", "data-v-a759ae72"]]), Ua = "--ds-overlay-shift", Se = 8;
|
|
1254
1254
|
function dt(e, n) {
|
|
1255
|
-
const t =
|
|
1255
|
+
const t = V(0), o = k(
|
|
1256
1256
|
() => t.value ? { [Ua]: `${Math.round(t.value)}px` } : null
|
|
1257
1257
|
);
|
|
1258
1258
|
async function i() {
|
|
1259
1259
|
if (typeof window == "undefined") return;
|
|
1260
1260
|
t.value = 0, await se();
|
|
1261
|
-
const
|
|
1262
|
-
if (!
|
|
1263
|
-
const y =
|
|
1264
|
-
|
|
1261
|
+
const v = e.value;
|
|
1262
|
+
if (!v) return;
|
|
1263
|
+
const y = v.getBoundingClientRect(), f = n().split("-")[0], r = f === "top" || f === "bottom", [c, m, p] = r ? [y.left, y.right, window.innerWidth] : [y.top, y.bottom, window.innerHeight];
|
|
1264
|
+
c < Se ? t.value = Se - c : m > p - Se && (t.value = p - Se - m);
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function d() {
|
|
1267
1267
|
typeof window != "undefined" && (window.addEventListener("resize", i), window.addEventListener("scroll", i, { capture: !0, passive: !0 }), i());
|
|
1268
1268
|
}
|
|
1269
1269
|
function E() {
|
|
1270
1270
|
typeof window != "undefined" && (window.removeEventListener("resize", i), window.removeEventListener("scroll", i, { capture: !0 }), t.value = 0);
|
|
1271
1271
|
}
|
|
1272
|
-
return { shift: t, shiftStyle: o, measure: i, activate:
|
|
1272
|
+
return { shift: t, shiftStyle: o, measure: i, activate: d, deactivate: E };
|
|
1273
1273
|
}
|
|
1274
1274
|
const Ga = {
|
|
1275
1275
|
TOP: "top",
|
|
1276
1276
|
BOTTOM: "bottom",
|
|
1277
1277
|
LEFT: "left",
|
|
1278
1278
|
RIGHT: "right"
|
|
1279
|
-
},
|
|
1279
|
+
}, Ha = ["id"], Wa = /* @__PURE__ */ B({
|
|
1280
1280
|
__name: "DsTooltip",
|
|
1281
1281
|
props: {
|
|
1282
1282
|
// Bubble text. Rich content can be provided via the #content slot instead.
|
|
@@ -1296,48 +1296,48 @@ const Ga = {
|
|
|
1296
1296
|
disabled: { type: Boolean, default: !1 }
|
|
1297
1297
|
},
|
|
1298
1298
|
setup(e) {
|
|
1299
|
-
const n = e, t = he(), o = ge(), i =
|
|
1299
|
+
const n = e, t = he(), o = ge(), i = V(!1), d = V(null), {
|
|
1300
1300
|
shiftStyle: E,
|
|
1301
|
-
activate:
|
|
1301
|
+
activate: v,
|
|
1302
1302
|
deactivate: y
|
|
1303
|
-
} = dt(
|
|
1303
|
+
} = dt(d, () => n.placement);
|
|
1304
1304
|
Z(i, (M) => {
|
|
1305
|
-
M ?
|
|
1305
|
+
M ? v() : y();
|
|
1306
1306
|
});
|
|
1307
|
-
const
|
|
1307
|
+
const f = k(() => !n.disabled && (n.content.length > 0 || !!t.content));
|
|
1308
1308
|
Z(
|
|
1309
1309
|
() => n.disabled,
|
|
1310
1310
|
(M) => {
|
|
1311
1311
|
M && G();
|
|
1312
1312
|
}
|
|
1313
1313
|
);
|
|
1314
|
-
let
|
|
1314
|
+
let r = !1, c = !1, m = null, p = null, T = null;
|
|
1315
1315
|
function N() {
|
|
1316
1316
|
m !== null && (clearTimeout(m), m = null);
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1319
|
-
M && (
|
|
1318
|
+
function _(M) {
|
|
1319
|
+
M && (p && p !== M && $(), p !== M && (p = M, T = M.getAttribute("aria-describedby"), M.setAttribute(
|
|
1320
1320
|
"aria-describedby",
|
|
1321
|
-
|
|
1321
|
+
T ? `${T} ${o}` : o
|
|
1322
1322
|
)));
|
|
1323
1323
|
}
|
|
1324
1324
|
function $() {
|
|
1325
|
-
|
|
1325
|
+
p && (T !== null ? p.setAttribute("aria-describedby", T) : p.removeAttribute("aria-describedby"), p = null, T = null);
|
|
1326
1326
|
}
|
|
1327
1327
|
function A() {
|
|
1328
|
-
|
|
1328
|
+
f.value && (r = !0, N(), m = setTimeout(() => {
|
|
1329
1329
|
i.value = !0;
|
|
1330
1330
|
}, n.delay));
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1333
|
-
|
|
1332
|
+
function F() {
|
|
1333
|
+
r = !1, N(), c || G();
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1335
|
+
function W(M) {
|
|
1336
|
+
f.value && (c = !0, N(), i.value = !0, _(M.target));
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function ee(M) {
|
|
1339
1339
|
const j = M.relatedTarget, b = M.currentTarget;
|
|
1340
|
-
j && (b != null && b.contains(j)) || (c = !1,
|
|
1340
|
+
j && (b != null && b.contains(j)) || (c = !1, r || G());
|
|
1341
1341
|
}
|
|
1342
1342
|
function G() {
|
|
1343
1343
|
N(), i.value = !1, $();
|
|
@@ -1347,33 +1347,33 @@ const Ga = {
|
|
|
1347
1347
|
}), (M, j) => (a(), l("div", {
|
|
1348
1348
|
class: L(["ds-tooltip", { "ds-tooltip--block": e.block }]),
|
|
1349
1349
|
onMouseenter: A,
|
|
1350
|
-
onMouseleave:
|
|
1351
|
-
onFocusin:
|
|
1352
|
-
onFocusout:
|
|
1350
|
+
onMouseleave: F,
|
|
1351
|
+
onFocusin: W,
|
|
1352
|
+
onFocusout: ee,
|
|
1353
1353
|
onKeydown: st(G, ["esc"])
|
|
1354
1354
|
}, [
|
|
1355
|
-
|
|
1355
|
+
C(M.$slots, "default", {}, void 0, !0),
|
|
1356
1356
|
Y(me, { name: "ds-tooltip-fade" }, {
|
|
1357
1357
|
default: ie(() => [
|
|
1358
1358
|
i.value ? (a(), l("div", {
|
|
1359
1359
|
key: 0,
|
|
1360
1360
|
id: D(o),
|
|
1361
1361
|
ref_key: "bubbleRef",
|
|
1362
|
-
ref:
|
|
1362
|
+
ref: d,
|
|
1363
1363
|
class: L(["ds-tooltip__bubble", `ds-tooltip__bubble--${e.placement}`]),
|
|
1364
1364
|
role: "tooltip",
|
|
1365
1365
|
style: U(D(E))
|
|
1366
1366
|
}, [
|
|
1367
|
-
|
|
1368
|
-
q(
|
|
1367
|
+
C(M.$slots, "content", {}, () => [
|
|
1368
|
+
q(w(e.content), 1)
|
|
1369
1369
|
], !0)
|
|
1370
|
-
], 14,
|
|
1370
|
+
], 14, Ha)) : g("", !0)
|
|
1371
1371
|
]),
|
|
1372
1372
|
_: 3
|
|
1373
1373
|
})
|
|
1374
1374
|
], 34));
|
|
1375
1375
|
}
|
|
1376
|
-
}), cn = /* @__PURE__ */ O(
|
|
1376
|
+
}), cn = /* @__PURE__ */ O(Wa, [["__scopeId", "data-v-ca1ba028"]]), Oe = {
|
|
1377
1377
|
VERIFIED: "verified",
|
|
1378
1378
|
UNVERIFIED: "unverified",
|
|
1379
1379
|
NEW: "new"
|
|
@@ -1402,7 +1402,7 @@ const Ga = {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
},
|
|
1404
1404
|
setup(e) {
|
|
1405
|
-
const n = e, t =
|
|
1405
|
+
const n = e, t = k(() => n.verified === null || n.verified === void 0 ? {
|
|
1406
1406
|
state: Oe.NEW,
|
|
1407
1407
|
icon: "new_releases",
|
|
1408
1408
|
label: "Newly found"
|
|
@@ -1416,7 +1416,7 @@ const Ga = {
|
|
|
1416
1416
|
label: "Not verified"
|
|
1417
1417
|
});
|
|
1418
1418
|
return (o, i) => (a(), l("i", {
|
|
1419
|
-
class: L(["material-
|
|
1419
|
+
class: L(["material-symbols-filled ds-verification-icon", [
|
|
1420
1420
|
`ds-verification-icon--${t.value.state}`,
|
|
1421
1421
|
{ "ds-verification-icon--email": e.isContactData }
|
|
1422
1422
|
]]),
|
|
@@ -1425,13 +1425,13 @@ const Ga = {
|
|
|
1425
1425
|
"aria-label": e.label || t.value.label,
|
|
1426
1426
|
title: e.label || t.value.label
|
|
1427
1427
|
}, [
|
|
1428
|
-
|
|
1429
|
-
q(
|
|
1428
|
+
C(o.$slots, "default", {}, () => [
|
|
1429
|
+
q(w(t.value.icon), 1)
|
|
1430
1430
|
], !0)
|
|
1431
1431
|
], 14, Ka));
|
|
1432
1432
|
}
|
|
1433
|
-
}), qa = /* @__PURE__ */ O(Ya, [["__scopeId", "data-v-
|
|
1434
|
-
class: "material-
|
|
1433
|
+
}), qa = /* @__PURE__ */ O(Ya, [["__scopeId", "data-v-c84b2196"]]), ja = ["title"], Xa = { class: "ds-contact-value__marquee" }, Za = { class: "ds-contact-value__actions" }, Qa = ["role", "aria-label", "aria-hidden"], Ja = ["aria-label", "title"], el = {
|
|
1434
|
+
class: "material-symbols-filled",
|
|
1435
1435
|
"aria-hidden": "true"
|
|
1436
1436
|
}, tl = ["aria-label", "aria-pressed", "title"], al = ["aria-label", "aria-pressed", "title"], ll = /* @__PURE__ */ B({
|
|
1437
1437
|
__name: "DsContactValue",
|
|
@@ -1453,23 +1453,23 @@ const Ga = {
|
|
|
1453
1453
|
// Accessible name for the lock glyph (empty → decorative/aria-hidden).
|
|
1454
1454
|
hideValueLabel: { type: String, default: "" }
|
|
1455
1455
|
},
|
|
1456
|
-
emits: [
|
|
1456
|
+
emits: [we, Le, _e],
|
|
1457
1457
|
setup(e, { emit: n }) {
|
|
1458
|
-
const t = e, o = n, i =
|
|
1459
|
-
let
|
|
1458
|
+
const t = e, o = n, i = V(!1);
|
|
1459
|
+
let d;
|
|
1460
1460
|
function E() {
|
|
1461
1461
|
typeof navigator != "undefined" && navigator.clipboard && navigator.clipboard.writeText(t.value).catch(() => {
|
|
1462
|
-
}), i.value = !0, clearTimeout(
|
|
1462
|
+
}), i.value = !0, clearTimeout(d), d = setTimeout(() => {
|
|
1463
1463
|
i.value = !1;
|
|
1464
|
-
}, 1200), o(
|
|
1464
|
+
}, 1200), o(we, t.value);
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1466
|
+
function v() {
|
|
1467
1467
|
o(Le);
|
|
1468
1468
|
}
|
|
1469
1469
|
function y() {
|
|
1470
|
-
o(
|
|
1470
|
+
o(_e);
|
|
1471
1471
|
}
|
|
1472
|
-
return de(() => clearTimeout(
|
|
1472
|
+
return de(() => clearTimeout(d)), (f, r) => (a(), l("div", {
|
|
1473
1473
|
class: L(["ds-contact-value", { "ds-contact-value--main": e.main }])
|
|
1474
1474
|
}, [
|
|
1475
1475
|
Y(D(qa), {
|
|
@@ -1479,7 +1479,7 @@ const Ga = {
|
|
|
1479
1479
|
s("span", {
|
|
1480
1480
|
class: "ds-contact-value__value",
|
|
1481
1481
|
title: e.value
|
|
1482
|
-
},
|
|
1482
|
+
}, w(e.value), 9, ja),
|
|
1483
1483
|
s("span", Xa, [
|
|
1484
1484
|
e.valueType ? (a(), K(D(xt), {
|
|
1485
1485
|
key: 0,
|
|
@@ -1488,18 +1488,18 @@ const Ga = {
|
|
|
1488
1488
|
title: e.valueType
|
|
1489
1489
|
}, {
|
|
1490
1490
|
default: ie(() => [
|
|
1491
|
-
q(
|
|
1491
|
+
q(w(e.valueType), 1)
|
|
1492
1492
|
]),
|
|
1493
1493
|
_: 1
|
|
1494
1494
|
}, 8, ["tone", "title"])) : g("", !0),
|
|
1495
1495
|
s("span", Za, [
|
|
1496
1496
|
e.hideValue ? (a(), l("i", {
|
|
1497
1497
|
key: 0,
|
|
1498
|
-
class: "material-
|
|
1498
|
+
class: "material-symbols-filled ds-contact-value__lock",
|
|
1499
1499
|
role: e.hideValueLabel ? "img" : void 0,
|
|
1500
1500
|
"aria-label": e.hideValueLabel || void 0,
|
|
1501
1501
|
"aria-hidden": e.hideValueLabel ? void 0 : "true"
|
|
1502
|
-
}, "lock", 8, Qa)) : (a(), l(
|
|
1502
|
+
}, "lock", 8, Qa)) : (a(), l(H, { key: 1 }, [
|
|
1503
1503
|
s("button", {
|
|
1504
1504
|
type: "button",
|
|
1505
1505
|
class: L(["ds-contact-value__action", { "is-copied": i.value }]),
|
|
@@ -1507,19 +1507,21 @@ const Ga = {
|
|
|
1507
1507
|
title: i.value ? e.copiedLabel : e.copyLabel,
|
|
1508
1508
|
onClick: E
|
|
1509
1509
|
}, [
|
|
1510
|
-
s("i", el,
|
|
1510
|
+
s("i", el, w(i.value ? "check" : "content_copy"), 1)
|
|
1511
1511
|
], 10, Ja),
|
|
1512
|
-
e.showRate ? (a(), l(
|
|
1512
|
+
e.showRate ? (a(), l(H, { key: 0 }, [
|
|
1513
1513
|
s("button", {
|
|
1514
1514
|
type: "button",
|
|
1515
1515
|
class: "ds-contact-value__action",
|
|
1516
1516
|
"aria-label": e.correctLabel,
|
|
1517
1517
|
"aria-pressed": e.correct === !0,
|
|
1518
1518
|
title: e.correctLabel,
|
|
1519
|
-
onClick:
|
|
1519
|
+
onClick: v
|
|
1520
1520
|
}, [
|
|
1521
1521
|
s("i", {
|
|
1522
|
-
class: L(
|
|
1522
|
+
class: L(
|
|
1523
|
+
e.correct === !0 ? "material-symbols-filled" : "material-symbols-filled-outlined"
|
|
1524
|
+
),
|
|
1523
1525
|
"aria-hidden": "true"
|
|
1524
1526
|
}, "thumb_up", 2)
|
|
1525
1527
|
], 8, tl),
|
|
@@ -1532,7 +1534,9 @@ const Ga = {
|
|
|
1532
1534
|
onClick: y
|
|
1533
1535
|
}, [
|
|
1534
1536
|
s("i", {
|
|
1535
|
-
class: L(
|
|
1537
|
+
class: L(
|
|
1538
|
+
e.correct === !1 ? "material-symbols-filled" : "material-symbols-filled-outlined"
|
|
1539
|
+
),
|
|
1536
1540
|
"aria-hidden": "true"
|
|
1537
1541
|
}, "thumb_down", 2)
|
|
1538
1542
|
], 8, al)
|
|
@@ -1542,8 +1546,8 @@ const Ga = {
|
|
|
1542
1546
|
])
|
|
1543
1547
|
], 2));
|
|
1544
1548
|
}
|
|
1545
|
-
}), tt = /* @__PURE__ */ O(ll, [["__scopeId", "data-v-
|
|
1546
|
-
class: "material-
|
|
1549
|
+
}), tt = /* @__PURE__ */ O(ll, [["__scopeId", "data-v-8daaf278"]]), il = ["aria-label", "aria-busy"], nl = { class: "ds-data-card__heading" }, sl = {
|
|
1550
|
+
class: "material-symbols-filled ds-data-card__icon",
|
|
1547
1551
|
"aria-hidden": "true"
|
|
1548
1552
|
}, ol = { class: "ds-data-card__title" }, dl = ["aria-label"], rl = {
|
|
1549
1553
|
key: 0,
|
|
@@ -1558,7 +1562,7 @@ const Ga = {
|
|
|
1558
1562
|
key: 2,
|
|
1559
1563
|
class: "ds-data-card__empty"
|
|
1560
1564
|
}, yl = { class: "ds-data-card__state-badge" }, ml = {
|
|
1561
|
-
class: "material-
|
|
1565
|
+
class: "material-symbols-filled ds-data-card__state-icon",
|
|
1562
1566
|
"aria-hidden": "true"
|
|
1563
1567
|
}, hl = { class: "ds-data-card__state-text" }, gl = { class: "ds-data-card__state-title" }, pl = {
|
|
1564
1568
|
key: 0,
|
|
@@ -1566,10 +1570,10 @@ const Ga = {
|
|
|
1566
1570
|
}, Sl = { key: 0 }, kl = {
|
|
1567
1571
|
key: 0,
|
|
1568
1572
|
class: "ds-data-card__section"
|
|
1569
|
-
}, $l = { key: 1 },
|
|
1573
|
+
}, $l = { key: 1 }, Tl = {
|
|
1570
1574
|
key: 0,
|
|
1571
1575
|
class: "ds-data-card__section"
|
|
1572
|
-
}, El = { class: "ds-data-card__more" },
|
|
1576
|
+
}, El = { class: "ds-data-card__more" }, wl = /* @__PURE__ */ B({
|
|
1573
1577
|
__name: "DsDataCard",
|
|
1574
1578
|
props: {
|
|
1575
1579
|
title: { type: String, required: !0 },
|
|
@@ -1609,42 +1613,42 @@ const Ga = {
|
|
|
1609
1613
|
toggleLabel: { type: String, default: "Toggle" },
|
|
1610
1614
|
closeLabel: { type: String, default: "Close" }
|
|
1611
1615
|
},
|
|
1612
|
-
emits: [
|
|
1616
|
+
emits: [we, Ve, Ue, J, Le, _e],
|
|
1613
1617
|
setup(e, { emit: n }) {
|
|
1614
|
-
const t = e, o = n, i =
|
|
1615
|
-
function
|
|
1618
|
+
const t = e, o = n, i = V(!1), d = k(() => t.more.length + (t.mostLikely ? 1 : 0)), E = k(() => d.value > 3), v = k(() => d.value === 0), y = k(() => t.collapsible && i.value);
|
|
1619
|
+
function f() {
|
|
1616
1620
|
i.value = !i.value;
|
|
1617
1621
|
}
|
|
1618
|
-
function
|
|
1619
|
-
o(
|
|
1622
|
+
function r(_) {
|
|
1623
|
+
o(we, _);
|
|
1620
1624
|
}
|
|
1621
1625
|
function c() {
|
|
1622
|
-
o(
|
|
1626
|
+
o(Ve);
|
|
1623
1627
|
}
|
|
1624
1628
|
function m() {
|
|
1625
1629
|
o(Ue);
|
|
1626
1630
|
}
|
|
1627
|
-
function
|
|
1631
|
+
function p() {
|
|
1628
1632
|
o(J);
|
|
1629
1633
|
}
|
|
1630
|
-
function
|
|
1631
|
-
o(Le,
|
|
1634
|
+
function T(_) {
|
|
1635
|
+
o(Le, _);
|
|
1632
1636
|
}
|
|
1633
|
-
function N(
|
|
1634
|
-
o(
|
|
1637
|
+
function N(_) {
|
|
1638
|
+
o(_e, _);
|
|
1635
1639
|
}
|
|
1636
|
-
return (
|
|
1640
|
+
return (_, $) => (a(), l("section", {
|
|
1637
1641
|
class: "ds-data-card",
|
|
1638
1642
|
"aria-label": e.title,
|
|
1639
1643
|
"aria-busy": e.loading ? "true" : void 0
|
|
1640
1644
|
}, [
|
|
1641
1645
|
s("div", {
|
|
1642
1646
|
class: L(["ds-data-card__header", { "is-collapsed": y.value, "is-collapsible": e.collapsible }]),
|
|
1643
|
-
onClick: $[1] || ($[1] = (A) => e.collapsible &&
|
|
1647
|
+
onClick: $[1] || ($[1] = (A) => e.collapsible && f())
|
|
1644
1648
|
}, [
|
|
1645
1649
|
s("div", nl, [
|
|
1646
|
-
s("i", sl,
|
|
1647
|
-
s("span", ol,
|
|
1650
|
+
s("i", sl, w(e.icon), 1),
|
|
1651
|
+
s("span", ol, w(e.title), 1)
|
|
1648
1652
|
]),
|
|
1649
1653
|
s("div", {
|
|
1650
1654
|
class: "ds-data-card__actions",
|
|
@@ -1656,7 +1660,7 @@ const Ga = {
|
|
|
1656
1660
|
type: "button",
|
|
1657
1661
|
class: "ds-data-card__edit",
|
|
1658
1662
|
onClick: m
|
|
1659
|
-
},
|
|
1663
|
+
}, w(e.editLabel), 1)) : g("", !0),
|
|
1660
1664
|
!y.value && e.showSort ? (a(), K(D(fe), {
|
|
1661
1665
|
key: 1,
|
|
1662
1666
|
variant: "tertiary",
|
|
@@ -1673,17 +1677,17 @@ const Ga = {
|
|
|
1673
1677
|
circle: "",
|
|
1674
1678
|
"left-icon": i.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
1675
1679
|
"aria-label": e.toggleLabel,
|
|
1676
|
-
onClick:
|
|
1680
|
+
onClick: f
|
|
1677
1681
|
}, null, 8, ["left-icon", "aria-label"])) : g("", !0),
|
|
1678
1682
|
e.showClose ? (a(), l("button", {
|
|
1679
1683
|
key: 3,
|
|
1680
1684
|
type: "button",
|
|
1681
1685
|
class: "ds-data-card__close",
|
|
1682
1686
|
"aria-label": e.closeLabel,
|
|
1683
|
-
onClick:
|
|
1687
|
+
onClick: p
|
|
1684
1688
|
}, [...$[4] || ($[4] = [
|
|
1685
1689
|
s("i", {
|
|
1686
|
-
class: "material-
|
|
1690
|
+
class: "material-symbols-filled",
|
|
1687
1691
|
"aria-hidden": "true"
|
|
1688
1692
|
}, "close", -1)
|
|
1689
1693
|
])], 8, dl)) : g("", !0)
|
|
@@ -1691,34 +1695,34 @@ const Ga = {
|
|
|
1691
1695
|
], 2),
|
|
1692
1696
|
y.value ? g("", !0) : (a(), l("div", rl, [
|
|
1693
1697
|
e.loading ? (a(), l("div", cl, [
|
|
1694
|
-
_
|
|
1698
|
+
C(_.$slots, "loading", {}, () => [
|
|
1695
1699
|
Y(D(ye), {
|
|
1696
1700
|
label: e.loadingLabel || void 0
|
|
1697
1701
|
}, null, 8, ["label"])
|
|
1698
1702
|
], !0)
|
|
1699
1703
|
])) : e.locked ? (a(), l("div", ul, [
|
|
1700
|
-
_
|
|
1704
|
+
C(_.$slots, "locked", {}, () => [
|
|
1701
1705
|
$[5] || ($[5] = s("span", { class: "ds-data-card__state-badge ds-data-card__state-badge--accent" }, [
|
|
1702
1706
|
s("i", {
|
|
1703
|
-
class: "material-
|
|
1707
|
+
class: "material-symbols-filled ds-data-card__state-icon",
|
|
1704
1708
|
"aria-hidden": "true"
|
|
1705
1709
|
}, "lock")
|
|
1706
1710
|
], -1)),
|
|
1707
1711
|
s("div", fl, [
|
|
1708
|
-
s("span", vl,
|
|
1712
|
+
s("span", vl, w(e.lockedLabel), 1)
|
|
1709
1713
|
])
|
|
1710
1714
|
], !0)
|
|
1711
|
-
])) :
|
|
1715
|
+
])) : v.value ? (a(), l("div", bl, [
|
|
1712
1716
|
s("span", yl, [
|
|
1713
|
-
s("i", ml,
|
|
1717
|
+
s("i", ml, w(e.icon), 1)
|
|
1714
1718
|
]),
|
|
1715
1719
|
s("div", hl, [
|
|
1716
|
-
s("span", gl,
|
|
1717
|
-
e.emptySubtitle ? (a(), l("span", pl,
|
|
1720
|
+
s("span", gl, w(e.emptyLabel), 1),
|
|
1721
|
+
e.emptySubtitle ? (a(), l("span", pl, w(e.emptySubtitle), 1)) : g("", !0)
|
|
1718
1722
|
])
|
|
1719
|
-
])) : (a(), l(
|
|
1723
|
+
])) : (a(), l(H, { key: 3 }, [
|
|
1720
1724
|
e.mostLikely ? (a(), l("div", Sl, [
|
|
1721
|
-
E.value ? (a(), l("div", kl,
|
|
1725
|
+
E.value ? (a(), l("div", kl, w(e.mostLikelyLabel), 1)) : g("", !0),
|
|
1722
1726
|
Y(D(tt), {
|
|
1723
1727
|
value: e.mostLikely.value,
|
|
1724
1728
|
"value-type": e.mostLikely.type,
|
|
@@ -1728,15 +1732,15 @@ const Ga = {
|
|
|
1728
1732
|
main: "",
|
|
1729
1733
|
"is-contact-data": e.isContactData,
|
|
1730
1734
|
"show-rate": e.showRate,
|
|
1731
|
-
onCopy:
|
|
1732
|
-
onCorrect: $[2] || ($[2] = (A) =>
|
|
1735
|
+
onCopy: r,
|
|
1736
|
+
onCorrect: $[2] || ($[2] = (A) => T(e.mostLikely)),
|
|
1733
1737
|
onIncorrect: $[3] || ($[3] = (A) => N(e.mostLikely))
|
|
1734
1738
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate"])
|
|
1735
1739
|
])) : g("", !0),
|
|
1736
1740
|
e.more.length > 0 ? (a(), l("div", $l, [
|
|
1737
|
-
E.value ? (a(), l("div",
|
|
1741
|
+
E.value ? (a(), l("div", Tl, w(e.moreLabel), 1)) : g("", !0),
|
|
1738
1742
|
s("div", El, [
|
|
1739
|
-
(a(!0), l(
|
|
1743
|
+
(a(!0), l(H, null, Q(e.more, (A) => (a(), K(D(tt), {
|
|
1740
1744
|
key: A.value,
|
|
1741
1745
|
value: A.value,
|
|
1742
1746
|
"value-type": A.type,
|
|
@@ -1745,9 +1749,9 @@ const Ga = {
|
|
|
1745
1749
|
"hide-value": A.hideValue,
|
|
1746
1750
|
"is-contact-data": e.isContactData,
|
|
1747
1751
|
"show-rate": e.showRate,
|
|
1748
|
-
onCopy:
|
|
1749
|
-
onCorrect: (
|
|
1750
|
-
onIncorrect: (
|
|
1752
|
+
onCopy: r,
|
|
1753
|
+
onCorrect: (F) => T(A),
|
|
1754
|
+
onIncorrect: (F) => N(A)
|
|
1751
1755
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate", "onCorrect", "onIncorrect"]))), 128))
|
|
1752
1756
|
])
|
|
1753
1757
|
])) : g("", !0)
|
|
@@ -1755,12 +1759,12 @@ const Ga = {
|
|
|
1755
1759
|
]))
|
|
1756
1760
|
], 8, il));
|
|
1757
1761
|
}
|
|
1758
|
-
}), un = /* @__PURE__ */ O(
|
|
1762
|
+
}), un = /* @__PURE__ */ O(wl, [["__scopeId", "data-v-e4f6e090"]]), Ll = ["name", "value", "checked", "disabled"], _l = {
|
|
1759
1763
|
key: 0,
|
|
1760
1764
|
class: "ds-radio__label"
|
|
1761
|
-
},
|
|
1765
|
+
}, Cl = /* @__PURE__ */ B({
|
|
1762
1766
|
__name: "DsRadio",
|
|
1763
|
-
props: /* @__PURE__ */
|
|
1767
|
+
props: /* @__PURE__ */ ae({
|
|
1764
1768
|
disabled: Boolean,
|
|
1765
1769
|
// Label text (DS `label` prop); a default slot overrides it.
|
|
1766
1770
|
label: { type: String, default: "" },
|
|
@@ -1776,7 +1780,7 @@ const Ga = {
|
|
|
1776
1780
|
function o() {
|
|
1777
1781
|
t.disabled || (n.value = !0);
|
|
1778
1782
|
}
|
|
1779
|
-
return (i,
|
|
1783
|
+
return (i, d) => (a(), l("label", {
|
|
1780
1784
|
class: L(["ds-radio", { "is-disabled": e.disabled }])
|
|
1781
1785
|
}, [
|
|
1782
1786
|
s("input", {
|
|
@@ -1792,19 +1796,19 @@ const Ga = {
|
|
|
1792
1796
|
class: L(["ds-radio__dot", { "is-active": n.value }]),
|
|
1793
1797
|
"aria-hidden": "true"
|
|
1794
1798
|
}, null, 2),
|
|
1795
|
-
i.$slots.default || e.label ? (a(), l("span",
|
|
1796
|
-
|
|
1797
|
-
q(
|
|
1799
|
+
i.$slots.default || e.label ? (a(), l("span", _l, [
|
|
1800
|
+
C(i.$slots, "default", {}, () => [
|
|
1801
|
+
q(w(e.label), 1)
|
|
1798
1802
|
], !0)
|
|
1799
1803
|
])) : g("", !0)
|
|
1800
1804
|
], 2));
|
|
1801
1805
|
}
|
|
1802
|
-
}), fn = /* @__PURE__ */ O(
|
|
1806
|
+
}), fn = /* @__PURE__ */ O(Cl, [["__scopeId", "data-v-96b70404"]]), Il = ["aria-checked", "aria-busy", "aria-disabled", "aria-label", "disabled"], Dl = {
|
|
1803
1807
|
class: "ds-switch__thumb",
|
|
1804
1808
|
"aria-hidden": "true"
|
|
1805
1809
|
}, Rl = /* @__PURE__ */ B({
|
|
1806
1810
|
__name: "DsSwitch",
|
|
1807
|
-
props: /* @__PURE__ */
|
|
1811
|
+
props: /* @__PURE__ */ ae({
|
|
1808
1812
|
disabled: Boolean,
|
|
1809
1813
|
// Async busy state for a toggle whose commit is pending (e.g. a server round-trip
|
|
1810
1814
|
// that may revert). Blocks interaction and shows a spinner in the thumb while it
|
|
@@ -1824,7 +1828,7 @@ const Ga = {
|
|
|
1824
1828
|
function o() {
|
|
1825
1829
|
t.disabled || t.loading || (n.value = !n.value);
|
|
1826
1830
|
}
|
|
1827
|
-
return (i,
|
|
1831
|
+
return (i, d) => (a(), l("button", {
|
|
1828
1832
|
type: "button",
|
|
1829
1833
|
role: "switch",
|
|
1830
1834
|
class: L(["ds-switch", { "is-disabled": e.disabled, "is-loading": e.loading }]),
|
|
@@ -1850,7 +1854,7 @@ const Ga = {
|
|
|
1850
1854
|
__name: "DsItemSelectorButton",
|
|
1851
1855
|
props: {
|
|
1852
1856
|
item: { type: Object, default: null },
|
|
1853
|
-
// Material
|
|
1857
|
+
// Material Symbols ligature (e.g. `folder`); omitted entirely when unset.
|
|
1854
1858
|
icon: { type: String, default: "" },
|
|
1855
1859
|
emptyTitle: { type: String, default: "" },
|
|
1856
1860
|
// Accessible name (see .types.ts). Required in the empty state when there's no
|
|
@@ -1858,14 +1862,14 @@ const Ga = {
|
|
|
1858
1862
|
ariaLabel: { type: String, default: "" },
|
|
1859
1863
|
disabled: Boolean
|
|
1860
1864
|
},
|
|
1861
|
-
emits: [
|
|
1865
|
+
emits: [te],
|
|
1862
1866
|
setup(e, { emit: n }) {
|
|
1863
1867
|
const t = e, o = n;
|
|
1864
|
-
function i(
|
|
1865
|
-
t.disabled || o(
|
|
1868
|
+
function i(d) {
|
|
1869
|
+
t.disabled || o(te, d);
|
|
1866
1870
|
}
|
|
1867
|
-
return (
|
|
1868
|
-
var
|
|
1871
|
+
return (d, E) => {
|
|
1872
|
+
var v;
|
|
1869
1873
|
return a(), l("button", {
|
|
1870
1874
|
type: "button",
|
|
1871
1875
|
class: L(["ds-item-selector-button", { "is-empty": !e.item, "is-disabled": e.disabled }]),
|
|
@@ -1874,17 +1878,17 @@ const Ga = {
|
|
|
1874
1878
|
disabled: e.disabled,
|
|
1875
1879
|
onClick: i
|
|
1876
1880
|
}, [
|
|
1877
|
-
s("span", Nl,
|
|
1881
|
+
s("span", Nl, w(e.item ? e.item.name : e.emptyTitle), 1),
|
|
1878
1882
|
e.icon ? (a(), l("i", {
|
|
1879
1883
|
key: 0,
|
|
1880
|
-
class: L(["ds-item-selector-button__icon", e.item ? "material-
|
|
1881
|
-
style: U((
|
|
1884
|
+
class: L(["ds-item-selector-button__icon", e.item ? "material-symbols-filled" : "material-symbols-filled-outlined"]),
|
|
1885
|
+
style: U((v = e.item) != null && v.color ? { color: e.item.color } : void 0),
|
|
1882
1886
|
"aria-hidden": "true"
|
|
1883
|
-
},
|
|
1887
|
+
}, w(e.icon), 7)) : g("", !0)
|
|
1884
1888
|
], 10, Al);
|
|
1885
1889
|
};
|
|
1886
1890
|
}
|
|
1887
|
-
}), bn = /* @__PURE__ */ O(Bl, [["__scopeId", "data-v-
|
|
1891
|
+
}), bn = /* @__PURE__ */ O(Bl, [["__scopeId", "data-v-265ef033"]]), at = {
|
|
1888
1892
|
DEFAULT: "default",
|
|
1889
1893
|
FILTER_SUMMARY: "filterSummary"
|
|
1890
1894
|
}, lt = {
|
|
@@ -1900,19 +1904,19 @@ const Ga = {
|
|
|
1900
1904
|
// 100% of the container
|
|
1901
1905
|
}, Ol = ["disabled", "aria-expanded", "aria-controls", "aria-activedescendant"], xl = ["title"], Ml = ["disabled", "aria-label"], Pl = {
|
|
1902
1906
|
key: 1,
|
|
1903
|
-
class: "material-
|
|
1907
|
+
class: "material-symbols-filled ds-select__chevron",
|
|
1904
1908
|
"aria-hidden": "true"
|
|
1905
1909
|
}, zl = {
|
|
1906
1910
|
key: 0,
|
|
1907
1911
|
class: "ds-select__popup"
|
|
1908
|
-
},
|
|
1912
|
+
}, Fl = {
|
|
1909
1913
|
key: 0,
|
|
1910
1914
|
class: "ds-select__search"
|
|
1911
|
-
},
|
|
1915
|
+
}, Vl = ["aria-activedescendant", "aria-label", "placeholder", "value"], Ul = ["aria-multiselectable", "aria-busy"], Gl = {
|
|
1912
1916
|
key: 0,
|
|
1913
1917
|
class: "ds-select__loading",
|
|
1914
1918
|
role: "presentation"
|
|
1915
|
-
},
|
|
1919
|
+
}, Hl = ["role", "aria-labelledby"], Wl = ["id"], Kl = ["id", "aria-selected", "onClick", "onMouseenter"], Yl = { class: "ds-select__option-label" }, ql = {
|
|
1916
1920
|
key: 0,
|
|
1917
1921
|
class: "ds-select__option-sublabel"
|
|
1918
1922
|
}, jl = {
|
|
@@ -1921,7 +1925,7 @@ const Ga = {
|
|
|
1921
1925
|
role: "presentation"
|
|
1922
1926
|
}, Xl = /* @__PURE__ */ B({
|
|
1923
1927
|
__name: "DsSelect",
|
|
1924
|
-
props: /* @__PURE__ */
|
|
1928
|
+
props: /* @__PURE__ */ ae({
|
|
1925
1929
|
options: { type: Array, required: !0 },
|
|
1926
1930
|
placeholder: { type: String, default: "Select an option" },
|
|
1927
1931
|
multiple: Boolean,
|
|
@@ -1964,31 +1968,31 @@ const Ga = {
|
|
|
1964
1968
|
modelValue: { default: null },
|
|
1965
1969
|
modelModifiers: {}
|
|
1966
1970
|
}),
|
|
1967
|
-
emits: /* @__PURE__ */
|
|
1971
|
+
emits: /* @__PURE__ */ ae([Re], ["update:modelValue"]),
|
|
1968
1972
|
setup(e, { emit: n }) {
|
|
1969
|
-
const t = e, o = n, i = ve(e, "modelValue"),
|
|
1973
|
+
const t = e, o = n, i = ve(e, "modelValue"), d = `ds-select-${ge()}`, E = `${d}-listbox`, v = (h) => `${d}-option-${h}`, y = V(null), f = V(null), r = V(null), c = V(!1), m = V(-1), p = V(""), T = k(() => t.selectType === at.FILTER_SUMMARY), N = k(() => t.filterable && !t.remote), _ = k(() => {
|
|
1970
1974
|
if (!N.value) return t.options;
|
|
1971
|
-
const h =
|
|
1975
|
+
const h = p.value.trim().toLowerCase();
|
|
1972
1976
|
return h ? t.options.filter(
|
|
1973
1977
|
(I) => I.label.toLowerCase().includes(h) || (I.subLabel ? I.subLabel.toLowerCase().includes(h) : !1)
|
|
1974
1978
|
) : t.options;
|
|
1975
|
-
}), $ =
|
|
1976
|
-
() => t.loading ? [] :
|
|
1977
|
-
), A =
|
|
1979
|
+
}), $ = k(
|
|
1980
|
+
() => t.loading ? [] : _.value
|
|
1981
|
+
), A = k(() => {
|
|
1978
1982
|
const h = [];
|
|
1979
1983
|
return $.value.forEach((I, z) => {
|
|
1980
1984
|
const P = I.group, X = h[h.length - 1];
|
|
1981
1985
|
P ? (X == null ? void 0 : X.kind) === "group" && X.label === P ? X.items.push({ option: I, index: z }) : h.push({
|
|
1982
1986
|
kind: "group",
|
|
1983
1987
|
label: P,
|
|
1984
|
-
headerId: `${
|
|
1988
|
+
headerId: `${d}-group-${z}`,
|
|
1985
1989
|
key: `g-${z}`,
|
|
1986
1990
|
items: [{ option: I, index: z }]
|
|
1987
1991
|
}) : (X == null ? void 0 : X.kind) === "plain" ? X.items.push({ option: I, index: z }) : h.push({ kind: "plain", key: `p-${z}`, items: [{ option: I, index: z }] });
|
|
1988
1992
|
}), h;
|
|
1989
|
-
}),
|
|
1993
|
+
}), F = k(() => t.multiple ? Array.isArray(i.value) ? i.value : [] : i.value !== null && i.value !== void 0 ? [i.value] : []), W = k(() => F.value.length > 0), ee = k(() => T.value && W.value);
|
|
1990
1994
|
function G(h) {
|
|
1991
|
-
return
|
|
1995
|
+
return F.value.includes(h);
|
|
1992
1996
|
}
|
|
1993
1997
|
const M = gt(/* @__PURE__ */ new Map());
|
|
1994
1998
|
Z(
|
|
@@ -2000,13 +2004,13 @@ const Ga = {
|
|
|
2000
2004
|
var I, z, P;
|
|
2001
2005
|
return (P = (z = (I = t.options.find((X) => X.value === h)) == null ? void 0 : I.label) != null ? z : M.get(h)) != null ? P : String(h);
|
|
2002
2006
|
}
|
|
2003
|
-
const b =
|
|
2007
|
+
const b = k(() => T.value ? W.value ? t.multiple ? `${t.placeholder} (${F.value.length})` : j(F.value[0]) : t.placeholder : W.value ? t.multiple ? F.value.map(j).join(", ") : j(F.value[0]) : t.placeholder), R = Object.values(lt), u = k(
|
|
2004
2008
|
() => typeof t.width == "string" && R.includes(t.width) ? `ds-select--w-${t.width}` : null
|
|
2005
|
-
),
|
|
2009
|
+
), S = k(() => {
|
|
2006
2010
|
if (!u.value)
|
|
2007
2011
|
return { width: typeof t.width == "number" ? `${t.width}px` : t.width };
|
|
2008
|
-
}), x =
|
|
2009
|
-
() => c.value && m.value >= 0 ?
|
|
2012
|
+
}), x = k(
|
|
2013
|
+
() => c.value && m.value >= 0 ? v(m.value) : void 0
|
|
2010
2014
|
);
|
|
2011
2015
|
function le() {
|
|
2012
2016
|
if ($.value.length === 0) return -1;
|
|
@@ -2016,22 +2020,22 @@ const Ga = {
|
|
|
2016
2020
|
function re() {
|
|
2017
2021
|
t.disabled || (c.value = !0, m.value = le(), t.filterable && se(() => {
|
|
2018
2022
|
var h;
|
|
2019
|
-
return (h =
|
|
2023
|
+
return (h = r.value) == null ? void 0 : h.focus();
|
|
2020
2024
|
}));
|
|
2021
2025
|
}
|
|
2022
2026
|
function oe(h = !0) {
|
|
2023
|
-
c.value = !1, m.value = -1,
|
|
2027
|
+
c.value = !1, m.value = -1, p.value && (p.value = "", o(Re, "")), h && se(() => {
|
|
2024
2028
|
var I;
|
|
2025
|
-
return (I =
|
|
2029
|
+
return (I = f.value) == null ? void 0 : I.focus();
|
|
2026
2030
|
});
|
|
2027
2031
|
}
|
|
2028
2032
|
function rt() {
|
|
2029
2033
|
t.disabled || (c.value ? oe() : re());
|
|
2030
2034
|
}
|
|
2031
|
-
function
|
|
2035
|
+
function Ce(h) {
|
|
2032
2036
|
if (t.disabled) return;
|
|
2033
2037
|
if (t.multiple) {
|
|
2034
|
-
const z =
|
|
2038
|
+
const z = F.value;
|
|
2035
2039
|
i.value = z.includes(h) ? z.filter((P) => P !== h) : [...z, h];
|
|
2036
2040
|
return;
|
|
2037
2041
|
}
|
|
@@ -2045,7 +2049,7 @@ const Ga = {
|
|
|
2045
2049
|
const I = $.value.length;
|
|
2046
2050
|
I !== 0 && (m.value < 0 ? m.value = h > 0 ? 0 : I - 1 : m.value = (m.value + h + I) % I, se(() => {
|
|
2047
2051
|
var z, P;
|
|
2048
|
-
(P = (z = document.getElementById(
|
|
2052
|
+
(P = (z = document.getElementById(v(m.value))) == null ? void 0 : z.scrollIntoView) == null || P.call(z, { block: "nearest" });
|
|
2049
2053
|
}));
|
|
2050
2054
|
}
|
|
2051
2055
|
function ut(h) {
|
|
@@ -2070,7 +2074,7 @@ const Ga = {
|
|
|
2070
2074
|
re();
|
|
2071
2075
|
else if (m.value >= 0) {
|
|
2072
2076
|
const I = $.value[m.value];
|
|
2073
|
-
I &&
|
|
2077
|
+
I && Ce(I.value);
|
|
2074
2078
|
}
|
|
2075
2079
|
break;
|
|
2076
2080
|
case "Escape":
|
|
@@ -2093,7 +2097,7 @@ const Ga = {
|
|
|
2093
2097
|
case "Enter":
|
|
2094
2098
|
if (h.preventDefault(), m.value >= 0) {
|
|
2095
2099
|
const I = $.value[m.value];
|
|
2096
|
-
I &&
|
|
2100
|
+
I && Ce(I.value);
|
|
2097
2101
|
}
|
|
2098
2102
|
break;
|
|
2099
2103
|
case "Escape":
|
|
@@ -2105,7 +2109,7 @@ const Ga = {
|
|
|
2105
2109
|
}
|
|
2106
2110
|
}
|
|
2107
2111
|
function vt(h) {
|
|
2108
|
-
|
|
2112
|
+
p.value = h.target.value, o(Re, p.value);
|
|
2109
2113
|
}
|
|
2110
2114
|
Z($, (h) => {
|
|
2111
2115
|
c.value && (h.length === 0 ? m.value = -1 : (m.value < 0 || m.value >= h.length) && (m.value = 0));
|
|
@@ -2126,14 +2130,14 @@ const Ga = {
|
|
|
2126
2130
|
ref_key: "rootRef",
|
|
2127
2131
|
ref: y,
|
|
2128
2132
|
class: L(["ds-select", [`ds-select--${e.selectType}`, u.value, { "is-open": c.value }]]),
|
|
2129
|
-
style: U(
|
|
2133
|
+
style: U(S.value)
|
|
2130
2134
|
}, [
|
|
2131
2135
|
s("div", {
|
|
2132
|
-
class: L(["ds-select__control", { "is-disabled": e.disabled, "is-filter-selected":
|
|
2136
|
+
class: L(["ds-select__control", { "is-disabled": e.disabled, "is-filter-selected": ee.value }])
|
|
2133
2137
|
}, [
|
|
2134
2138
|
s("button", {
|
|
2135
2139
|
ref_key: "triggerRef",
|
|
2136
|
-
ref:
|
|
2140
|
+
ref: f,
|
|
2137
2141
|
type: "button",
|
|
2138
2142
|
class: "ds-select__trigger",
|
|
2139
2143
|
disabled: e.disabled,
|
|
@@ -2147,9 +2151,9 @@ const Ga = {
|
|
|
2147
2151
|
s("span", {
|
|
2148
2152
|
class: "ds-select__summary",
|
|
2149
2153
|
title: b.value
|
|
2150
|
-
},
|
|
2154
|
+
}, w(b.value), 9, xl)
|
|
2151
2155
|
], 40, Ol),
|
|
2152
|
-
|
|
2156
|
+
T.value && W.value ? (a(), l("button", {
|
|
2153
2157
|
key: 0,
|
|
2154
2158
|
type: "button",
|
|
2155
2159
|
class: "ds-select__clear",
|
|
@@ -2158,20 +2162,20 @@ const Ga = {
|
|
|
2158
2162
|
onClick: ct
|
|
2159
2163
|
}, [...I[1] || (I[1] = [
|
|
2160
2164
|
s("i", {
|
|
2161
|
-
class: "material-
|
|
2165
|
+
class: "material-symbols-filled",
|
|
2162
2166
|
"aria-hidden": "true"
|
|
2163
2167
|
}, "close", -1)
|
|
2164
2168
|
])], 8, Ml)) : (a(), l("i", Pl, "keyboard_arrow_down"))
|
|
2165
2169
|
], 2),
|
|
2166
2170
|
c.value ? (a(), l("div", zl, [
|
|
2167
|
-
e.filterable ? (a(), l("div",
|
|
2171
|
+
e.filterable ? (a(), l("div", Fl, [
|
|
2168
2172
|
I[2] || (I[2] = s("i", {
|
|
2169
|
-
class: "material-
|
|
2173
|
+
class: "material-symbols-filled ds-select__search-icon",
|
|
2170
2174
|
"aria-hidden": "true"
|
|
2171
2175
|
}, "search", -1)),
|
|
2172
2176
|
s("input", {
|
|
2173
2177
|
ref_key: "searchRef",
|
|
2174
|
-
ref:
|
|
2178
|
+
ref: r,
|
|
2175
2179
|
type: "text",
|
|
2176
2180
|
class: "ds-select__search-input",
|
|
2177
2181
|
role: "combobox",
|
|
@@ -2182,10 +2186,10 @@ const Ga = {
|
|
|
2182
2186
|
autocomplete: "off",
|
|
2183
2187
|
"aria-label": e.searchLabel,
|
|
2184
2188
|
placeholder: e.searchPlaceholder,
|
|
2185
|
-
value:
|
|
2189
|
+
value: p.value,
|
|
2186
2190
|
onInput: vt,
|
|
2187
2191
|
onKeydown: ft
|
|
2188
|
-
}, null, 40,
|
|
2192
|
+
}, null, 40, Vl)
|
|
2189
2193
|
])) : g("", !0),
|
|
2190
2194
|
s("ul", {
|
|
2191
2195
|
id: E,
|
|
@@ -2197,11 +2201,11 @@ const Ga = {
|
|
|
2197
2201
|
}, ["prevent"]))
|
|
2198
2202
|
}, [
|
|
2199
2203
|
e.loading ? (a(), l("li", Gl, [
|
|
2200
|
-
|
|
2204
|
+
C(h.$slots, "loading", {}, () => [
|
|
2201
2205
|
Y(D(ye), { size: "small" })
|
|
2202
2206
|
], !0)
|
|
2203
|
-
])) : (a(), l(
|
|
2204
|
-
(a(!0), l(
|
|
2207
|
+
])) : (a(), l(H, { key: 1 }, [
|
|
2208
|
+
(a(!0), l(H, null, Q(A.value, (z) => (a(), l("li", {
|
|
2205
2209
|
key: z.key,
|
|
2206
2210
|
role: z.kind === "group" ? "group" : "presentation",
|
|
2207
2211
|
"aria-labelledby": z.kind === "group" ? z.headerId : void 0,
|
|
@@ -2211,9 +2215,9 @@ const Ga = {
|
|
|
2211
2215
|
key: 0,
|
|
2212
2216
|
id: z.headerId,
|
|
2213
2217
|
class: "ds-select__group-header"
|
|
2214
|
-
},
|
|
2215
|
-
(a(!0), l(
|
|
2216
|
-
id:
|
|
2218
|
+
}, w(z.label), 9, Wl)) : g("", !0),
|
|
2219
|
+
(a(!0), l(H, null, Q(z.items, (P) => (a(), l("div", {
|
|
2220
|
+
id: v(P.index),
|
|
2217
2221
|
key: P.option.value,
|
|
2218
2222
|
class: L(["ds-select__option", {
|
|
2219
2223
|
"is-selected": G(P.option.value),
|
|
@@ -2222,7 +2226,7 @@ const Ga = {
|
|
|
2222
2226
|
}]),
|
|
2223
2227
|
role: "option",
|
|
2224
2228
|
"aria-selected": G(P.option.value),
|
|
2225
|
-
onClick: ue((X) =>
|
|
2229
|
+
onClick: ue((X) => Ce(P.option.value), ["prevent"]),
|
|
2226
2230
|
onMouseenter: (X) => m.value = P.index
|
|
2227
2231
|
}, [
|
|
2228
2232
|
e.showCheckbox ? (a(), K(D(ot), {
|
|
@@ -2232,27 +2236,27 @@ const Ga = {
|
|
|
2232
2236
|
disabled: "",
|
|
2233
2237
|
"aria-hidden": "true"
|
|
2234
2238
|
}, null, 8, ["model-value"])) : g("", !0),
|
|
2235
|
-
|
|
2239
|
+
C(h.$slots, "option", {
|
|
2236
2240
|
option: P.option,
|
|
2237
2241
|
selected: G(P.option.value),
|
|
2238
2242
|
active: P.index === m.value
|
|
2239
2243
|
}, () => [
|
|
2240
2244
|
P.option.icon ? (a(), l("i", {
|
|
2241
2245
|
key: 0,
|
|
2242
|
-
class: "material-
|
|
2246
|
+
class: "material-symbols-filled ds-select__option-icon",
|
|
2243
2247
|
style: U(P.option.color ? { color: P.option.color } : void 0),
|
|
2244
2248
|
"aria-hidden": "true"
|
|
2245
|
-
},
|
|
2249
|
+
}, w(P.option.icon), 5)) : g("", !0),
|
|
2246
2250
|
s("span", Yl, [
|
|
2247
|
-
q(
|
|
2248
|
-
P.option.subLabel ? (a(), l("span", ql, ", " +
|
|
2251
|
+
q(w(P.option.label), 1),
|
|
2252
|
+
P.option.subLabel ? (a(), l("span", ql, ", " + w(P.option.subLabel), 1)) : g("", !0)
|
|
2249
2253
|
])
|
|
2250
2254
|
], !0)
|
|
2251
2255
|
], 42, Kl))), 128))
|
|
2252
|
-
], 10,
|
|
2256
|
+
], 10, Hl))), 128)),
|
|
2253
2257
|
$.value.length === 0 ? (a(), l("li", jl, [
|
|
2254
|
-
|
|
2255
|
-
q(
|
|
2258
|
+
C(h.$slots, "empty", {}, () => [
|
|
2259
|
+
q(w(e.emptyText), 1)
|
|
2256
2260
|
], !0)
|
|
2257
2261
|
])) : g("", !0)
|
|
2258
2262
|
], 64))
|
|
@@ -2260,28 +2264,28 @@ const Ga = {
|
|
|
2260
2264
|
])) : g("", !0)
|
|
2261
2265
|
], 6));
|
|
2262
2266
|
}
|
|
2263
|
-
}), yn = /* @__PURE__ */ O(Xl, [["__scopeId", "data-v-
|
|
2267
|
+
}), yn = /* @__PURE__ */ O(Xl, [["__scopeId", "data-v-936974a2"]]), Zl = ["tabindex"], Ql = /* @__PURE__ */ B({
|
|
2264
2268
|
__name: "DsRow",
|
|
2265
2269
|
props: {
|
|
2266
2270
|
selected: { type: Boolean, default: !1 },
|
|
2267
2271
|
clickable: { type: Boolean, default: !1 }
|
|
2268
2272
|
},
|
|
2269
|
-
emits: [
|
|
2273
|
+
emits: [te],
|
|
2270
2274
|
setup(e, { emit: n }) {
|
|
2271
2275
|
const t = e, o = n;
|
|
2272
2276
|
function i() {
|
|
2273
|
-
t.clickable && o(
|
|
2277
|
+
t.clickable && o(te);
|
|
2274
2278
|
}
|
|
2275
|
-
function
|
|
2276
|
-
t.clickable && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), o(
|
|
2279
|
+
function d(E) {
|
|
2280
|
+
t.clickable && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), o(te));
|
|
2277
2281
|
}
|
|
2278
|
-
return (E,
|
|
2282
|
+
return (E, v) => (a(), l("tr", {
|
|
2279
2283
|
class: L(["ds-row", { "is-selected": e.selected, "is-clickable": e.clickable }]),
|
|
2280
2284
|
tabindex: e.clickable ? 0 : void 0,
|
|
2281
2285
|
onClick: i,
|
|
2282
|
-
onKeydown:
|
|
2286
|
+
onKeydown: d
|
|
2283
2287
|
}, [
|
|
2284
|
-
|
|
2288
|
+
C(E.$slots, "default", {}, void 0, !0)
|
|
2285
2289
|
], 42, Zl));
|
|
2286
2290
|
}
|
|
2287
2291
|
}), mn = /* @__PURE__ */ O(Ql, [["__scopeId", "data-v-c2d6c50b"]]), Jl = /* @__PURE__ */ B({
|
|
@@ -2302,16 +2306,16 @@ const Ga = {
|
|
|
2302
2306
|
}
|
|
2303
2307
|
},
|
|
2304
2308
|
setup(e) {
|
|
2305
|
-
const n = e, t = (i) => typeof i == "number" ? `${i}px` : i, o =
|
|
2309
|
+
const n = e, t = (i) => typeof i == "number" ? `${i}px` : i, o = k(() => {
|
|
2306
2310
|
const i = {};
|
|
2307
2311
|
if (n.width != null && (i.width = t(n.width)), n.pinned) {
|
|
2308
2312
|
i.position = "sticky";
|
|
2309
|
-
const
|
|
2310
|
-
i[n.pinned === ne.LEFT ? "left" : "right"] =
|
|
2313
|
+
const d = n.pinnedOffset == null ? "0px" : t(n.pinnedOffset);
|
|
2314
|
+
i[n.pinned === ne.LEFT ? "left" : "right"] = d;
|
|
2311
2315
|
}
|
|
2312
2316
|
return Object.keys(i).length ? i : void 0;
|
|
2313
2317
|
});
|
|
2314
|
-
return (i,
|
|
2318
|
+
return (i, d) => (a(), l("td", {
|
|
2315
2319
|
class: L(["ds-cell", {
|
|
2316
2320
|
"is-accent": e.first && e.selected,
|
|
2317
2321
|
"is-truncated": e.truncate,
|
|
@@ -2321,7 +2325,7 @@ const Ga = {
|
|
|
2321
2325
|
}]),
|
|
2322
2326
|
style: U(o.value)
|
|
2323
2327
|
}, [
|
|
2324
|
-
|
|
2328
|
+
C(i.$slots, "default", {}, void 0, !0)
|
|
2325
2329
|
], 6));
|
|
2326
2330
|
}
|
|
2327
2331
|
}), hn = /* @__PURE__ */ O(Jl, [["__scopeId", "data-v-727b775d"]]), ei = {
|
|
@@ -2348,16 +2352,16 @@ const Ga = {
|
|
|
2348
2352
|
return (n, t) => (a(), l("span", {
|
|
2349
2353
|
class: L(["ds-custom-tag", [`ds-custom-tag--${e.type}`, { "is-round": e.round }]])
|
|
2350
2354
|
}, [
|
|
2351
|
-
|
|
2355
|
+
C(n.$slots, "default", {}, void 0, !0)
|
|
2352
2356
|
], 2));
|
|
2353
2357
|
}
|
|
2354
2358
|
}), gn = /* @__PURE__ */ O(ti, [["__scopeId", "data-v-c0220631"]]), ai = { class: "ds-pill__text" }, li = ["aria-label"], ii = {
|
|
2355
|
-
class: "material-
|
|
2359
|
+
class: "material-symbols-filled",
|
|
2356
2360
|
"aria-hidden": "true"
|
|
2357
2361
|
}, ni = /* @__PURE__ */ B({
|
|
2358
2362
|
__name: "DsPill",
|
|
2359
2363
|
props: {
|
|
2360
|
-
// Material
|
|
2364
|
+
// Material Symbols ligature name; when set, renders a trailing icon button.
|
|
2361
2365
|
icon: {
|
|
2362
2366
|
type: String,
|
|
2363
2367
|
default: ""
|
|
@@ -2374,7 +2378,7 @@ const Ga = {
|
|
|
2374
2378
|
default: ""
|
|
2375
2379
|
}
|
|
2376
2380
|
},
|
|
2377
|
-
emits: [
|
|
2381
|
+
emits: [te],
|
|
2378
2382
|
setup(e, { emit: n }) {
|
|
2379
2383
|
const t = n;
|
|
2380
2384
|
return (o, i) => (a(), l("span", {
|
|
@@ -2382,37 +2386,37 @@ const Ga = {
|
|
|
2382
2386
|
style: U(e.background ? { background: e.background } : void 0)
|
|
2383
2387
|
}, [
|
|
2384
2388
|
s("span", ai, [
|
|
2385
|
-
|
|
2389
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
2386
2390
|
]),
|
|
2387
2391
|
e.icon ? (a(), l("button", {
|
|
2388
2392
|
key: 0,
|
|
2389
2393
|
type: "button",
|
|
2390
2394
|
class: "ds-pill__icon",
|
|
2391
2395
|
"aria-label": e.iconLabel || void 0,
|
|
2392
|
-
onClick: i[0] || (i[0] = (
|
|
2396
|
+
onClick: i[0] || (i[0] = (d) => t(D(te)))
|
|
2393
2397
|
}, [
|
|
2394
|
-
s("i", ii,
|
|
2398
|
+
s("i", ii, w(e.icon), 1)
|
|
2395
2399
|
], 8, li)) : g("", !0)
|
|
2396
2400
|
], 6));
|
|
2397
2401
|
}
|
|
2398
|
-
}), pn = /* @__PURE__ */ O(ni, [["__scopeId", "data-v-
|
|
2402
|
+
}), pn = /* @__PURE__ */ O(ni, [["__scopeId", "data-v-59af98d0"]]), si = {
|
|
2399
2403
|
key: 0,
|
|
2400
2404
|
class: "ds-pill-with-border__icon"
|
|
2401
2405
|
}, oi = { class: "ds-pill-with-border__label" }, di = /* @__PURE__ */ B({
|
|
2402
2406
|
__name: "DsPillWithBorder",
|
|
2403
|
-
emits: [
|
|
2407
|
+
emits: [te],
|
|
2404
2408
|
setup(e, { emit: n }) {
|
|
2405
2409
|
const t = n;
|
|
2406
2410
|
return (o, i) => (a(), l("button", {
|
|
2407
2411
|
type: "button",
|
|
2408
2412
|
class: "ds-pill-with-border",
|
|
2409
|
-
onClick: i[0] || (i[0] = (
|
|
2413
|
+
onClick: i[0] || (i[0] = (d) => t(D(te)))
|
|
2410
2414
|
}, [
|
|
2411
2415
|
o.$slots.icon ? (a(), l("span", si, [
|
|
2412
|
-
|
|
2416
|
+
C(o.$slots, "icon", {}, void 0, !0)
|
|
2413
2417
|
])) : g("", !0),
|
|
2414
2418
|
s("span", oi, [
|
|
2415
|
-
|
|
2419
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
2416
2420
|
])
|
|
2417
2421
|
]));
|
|
2418
2422
|
}
|
|
@@ -2443,59 +2447,59 @@ const Ga = {
|
|
|
2443
2447
|
showLegend: { type: Boolean, default: !1 }
|
|
2444
2448
|
},
|
|
2445
2449
|
setup(e) {
|
|
2446
|
-
const n = e, t = he(), o =
|
|
2450
|
+
const n = e, t = he(), o = k(() => n.segments.filter((d) => !!d.name)), i = k(
|
|
2447
2451
|
() => !!t.legend || n.showLegend && o.value.length > 0
|
|
2448
2452
|
);
|
|
2449
|
-
return (
|
|
2450
|
-
s("div", ke(
|
|
2453
|
+
return (d, E) => i.value ? (a(), l("div", ui, [
|
|
2454
|
+
s("div", ke(d.$attrs, {
|
|
2451
2455
|
class: "ds-segmented-progress-bar",
|
|
2452
2456
|
role: "img",
|
|
2453
2457
|
"aria-label": e.label || void 0,
|
|
2454
2458
|
style: { height: `${e.height}px` }
|
|
2455
2459
|
}), [
|
|
2456
|
-
(a(!0), l(
|
|
2457
|
-
var
|
|
2460
|
+
(a(!0), l(H, null, Q(e.segments, (v, y) => {
|
|
2461
|
+
var f;
|
|
2458
2462
|
return a(), l("div", {
|
|
2459
|
-
key: `${(
|
|
2463
|
+
key: `${(f = v.name) != null ? f : ""}-${y}`,
|
|
2460
2464
|
class: "ds-segmented-progress-bar__segment",
|
|
2461
2465
|
style: U({
|
|
2462
|
-
width: `${e.total > 0 ?
|
|
2463
|
-
backgroundColor:
|
|
2466
|
+
width: `${e.total > 0 ? v.amount * 100 / e.total : 0}%`,
|
|
2467
|
+
backgroundColor: v.color
|
|
2464
2468
|
}),
|
|
2465
|
-
title:
|
|
2469
|
+
title: v.name || void 0
|
|
2466
2470
|
}, null, 12, vi);
|
|
2467
2471
|
}), 128))
|
|
2468
2472
|
], 16, fi),
|
|
2469
|
-
|
|
2473
|
+
C(d.$slots, "legend", {}, () => [
|
|
2470
2474
|
s("ul", bi, [
|
|
2471
|
-
(a(!0), l(
|
|
2472
|
-
key: `${
|
|
2475
|
+
(a(!0), l(H, null, Q(o.value, (v, y) => (a(), l("li", {
|
|
2476
|
+
key: `${v.name}-${y}`,
|
|
2473
2477
|
class: "ds-segmented-progress-bar__legend-item"
|
|
2474
2478
|
}, [
|
|
2475
2479
|
s("span", {
|
|
2476
2480
|
class: "ds-segmented-progress-bar__legend-swatch",
|
|
2477
|
-
style: U({ backgroundColor:
|
|
2481
|
+
style: U({ backgroundColor: v.color })
|
|
2478
2482
|
}, null, 4),
|
|
2479
|
-
s("span", yi,
|
|
2483
|
+
s("span", yi, w(v.name), 1)
|
|
2480
2484
|
]))), 128))
|
|
2481
2485
|
])
|
|
2482
2486
|
], !0)
|
|
2483
|
-
])) : (a(), l("div", ke({ key: 0 },
|
|
2487
|
+
])) : (a(), l("div", ke({ key: 0 }, d.$attrs, {
|
|
2484
2488
|
class: "ds-segmented-progress-bar",
|
|
2485
2489
|
role: "img",
|
|
2486
2490
|
"aria-label": e.label || void 0,
|
|
2487
2491
|
style: { height: `${e.height}px` }
|
|
2488
2492
|
}), [
|
|
2489
|
-
(a(!0), l(
|
|
2490
|
-
var
|
|
2493
|
+
(a(!0), l(H, null, Q(e.segments, (v, y) => {
|
|
2494
|
+
var f;
|
|
2491
2495
|
return a(), l("div", {
|
|
2492
|
-
key: `${(
|
|
2496
|
+
key: `${(f = v.name) != null ? f : ""}-${y}`,
|
|
2493
2497
|
class: "ds-segmented-progress-bar__segment",
|
|
2494
2498
|
style: U({
|
|
2495
|
-
width: `${e.total > 0 ?
|
|
2496
|
-
backgroundColor:
|
|
2499
|
+
width: `${e.total > 0 ? v.amount * 100 / e.total : 0}%`,
|
|
2500
|
+
backgroundColor: v.color
|
|
2497
2501
|
}),
|
|
2498
|
-
title:
|
|
2502
|
+
title: v.name || void 0
|
|
2499
2503
|
}, null, 12, ci);
|
|
2500
2504
|
}), 128))
|
|
2501
2505
|
], 16, ri));
|
|
@@ -2521,7 +2525,7 @@ const Ga = {
|
|
|
2521
2525
|
class: L(["ds-empty-state", { "is-rounded": e.roundedBorder }])
|
|
2522
2526
|
}, [
|
|
2523
2527
|
n.$slots["table-header"] ? (a(), l("div", hi, [
|
|
2524
|
-
|
|
2528
|
+
C(n.$slots, "table-header", {}, void 0, !0)
|
|
2525
2529
|
])) : g("", !0),
|
|
2526
2530
|
s("div", gi, [
|
|
2527
2531
|
e.image ? (a(), l("img", {
|
|
@@ -2530,20 +2534,20 @@ const Ga = {
|
|
|
2530
2534
|
alt: "",
|
|
2531
2535
|
class: "ds-empty-state__image"
|
|
2532
2536
|
}, null, 8, pi)) : g("", !0),
|
|
2533
|
-
s("p", Si,
|
|
2534
|
-
e.subtitle ? (a(), l("p", ki,
|
|
2535
|
-
|
|
2537
|
+
s("p", Si, w(e.title), 1),
|
|
2538
|
+
e.subtitle ? (a(), l("p", ki, w(e.subtitle), 1)) : g("", !0),
|
|
2539
|
+
C(n.$slots, "button", {}, void 0, !0)
|
|
2536
2540
|
])
|
|
2537
2541
|
], 2));
|
|
2538
2542
|
}
|
|
2539
|
-
}), $n = /* @__PURE__ */ O($i, [["__scopeId", "data-v-159c48f9"]]),
|
|
2543
|
+
}), $n = /* @__PURE__ */ O($i, [["__scopeId", "data-v-159c48f9"]]), Ti = ["aria-label"], Ei = {
|
|
2540
2544
|
key: 0,
|
|
2541
2545
|
class: "ds-paginator__limit-message"
|
|
2542
|
-
},
|
|
2546
|
+
}, wi = { class: "ds-paginator__pager" }, Li = {
|
|
2543
2547
|
key: 0,
|
|
2544
2548
|
class: "ds-paginator__ellipsis",
|
|
2545
2549
|
"aria-hidden": "true"
|
|
2546
|
-
},
|
|
2550
|
+
}, _i = ["aria-current", "onClick"], Ci = ["aria-label", "value"], Ii = ["value"], Di = "…l", Ri = "…r", Ai = /* @__PURE__ */ B({
|
|
2547
2551
|
__name: "DsPaginator",
|
|
2548
2552
|
props: {
|
|
2549
2553
|
total: { type: Number, required: !0 },
|
|
@@ -2560,32 +2564,32 @@ const Ga = {
|
|
|
2560
2564
|
paginationLabel: { type: String, default: "" },
|
|
2561
2565
|
pageSizeLabel: { type: String, default: "" }
|
|
2562
2566
|
},
|
|
2563
|
-
emits: [
|
|
2567
|
+
emits: [He, We],
|
|
2564
2568
|
setup(e, { emit: n }) {
|
|
2565
|
-
const t = e, o = n, i =
|
|
2569
|
+
const t = e, o = n, i = k(() => Math.max(1, Math.ceil(t.total / t.pageSize))), d = k(() => {
|
|
2566
2570
|
const y = i.value;
|
|
2567
2571
|
if (y <= 7)
|
|
2568
|
-
return Array.from({ length: y }, (
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2571
|
-
const c = Math.max(2,
|
|
2572
|
-
for (let
|
|
2573
|
-
|
|
2574
|
-
return
|
|
2572
|
+
return Array.from({ length: y }, (p, T) => T + 1);
|
|
2573
|
+
const f = t.currentPage, r = [1];
|
|
2574
|
+
f > 4 && r.push(Di);
|
|
2575
|
+
const c = Math.max(2, f - 2), m = Math.min(y - 1, f + 2);
|
|
2576
|
+
for (let p = c; p <= m; p++)
|
|
2577
|
+
r.push(p);
|
|
2578
|
+
return f < y - 3 && r.push(Ri), r.push(y), r;
|
|
2575
2579
|
});
|
|
2576
2580
|
function E(y) {
|
|
2577
|
-
y < 1 || y > i.value || o(
|
|
2581
|
+
y < 1 || y > i.value || o(He, y);
|
|
2578
2582
|
}
|
|
2579
|
-
function
|
|
2580
|
-
const
|
|
2581
|
-
o(
|
|
2583
|
+
function v(y) {
|
|
2584
|
+
const f = y.target;
|
|
2585
|
+
o(We, Number(f.value));
|
|
2582
2586
|
}
|
|
2583
|
-
return (y,
|
|
2587
|
+
return (y, f) => (a(), l("nav", {
|
|
2584
2588
|
class: "ds-paginator",
|
|
2585
2589
|
"aria-label": e.paginationLabel || void 0
|
|
2586
2590
|
}, [
|
|
2587
|
-
e.limitMessage ? (a(), l("span", Ei,
|
|
2588
|
-
s("div",
|
|
2591
|
+
e.limitMessage ? (a(), l("span", Ei, w(e.limitMessage), 1)) : g("", !0),
|
|
2592
|
+
s("div", wi, [
|
|
2589
2593
|
Y(D(fe), {
|
|
2590
2594
|
variant: "tertiary",
|
|
2591
2595
|
circle: "",
|
|
@@ -2593,16 +2597,16 @@ const Ga = {
|
|
|
2593
2597
|
"left-icon": "chevron_left",
|
|
2594
2598
|
"aria-label": e.prevLabel || void 0,
|
|
2595
2599
|
disabled: e.currentPage <= 1,
|
|
2596
|
-
onClick:
|
|
2600
|
+
onClick: f[0] || (f[0] = (r) => E(e.currentPage - 1))
|
|
2597
2601
|
}, null, 8, ["aria-label", "disabled"]),
|
|
2598
|
-
(a(!0), l(
|
|
2599
|
-
typeof
|
|
2602
|
+
(a(!0), l(H, null, Q(d.value, (r) => (a(), l(H, { key: r }, [
|
|
2603
|
+
typeof r == "string" ? (a(), l("span", Li, "…")) : (a(), l("button", {
|
|
2600
2604
|
key: 1,
|
|
2601
2605
|
type: "button",
|
|
2602
|
-
class: L(["ds-paginator__page", { "is-active":
|
|
2603
|
-
"aria-current":
|
|
2604
|
-
onClick: (c) => E(
|
|
2605
|
-
},
|
|
2606
|
+
class: L(["ds-paginator__page", { "is-active": r === e.currentPage }]),
|
|
2607
|
+
"aria-current": r === e.currentPage ? "page" : void 0,
|
|
2608
|
+
onClick: (c) => E(r)
|
|
2609
|
+
}, w(r), 11, _i))
|
|
2606
2610
|
], 64))), 128)),
|
|
2607
2611
|
Y(D(fe), {
|
|
2608
2612
|
variant: "tertiary",
|
|
@@ -2611,24 +2615,24 @@ const Ga = {
|
|
|
2611
2615
|
"left-icon": "chevron_right",
|
|
2612
2616
|
"aria-label": e.nextLabel || void 0,
|
|
2613
2617
|
disabled: e.currentPage >= i.value,
|
|
2614
|
-
onClick:
|
|
2618
|
+
onClick: f[1] || (f[1] = (r) => E(e.currentPage + 1))
|
|
2615
2619
|
}, null, 8, ["aria-label", "disabled"])
|
|
2616
2620
|
]),
|
|
2617
2621
|
s("select", {
|
|
2618
2622
|
class: "ds-paginator__page-size",
|
|
2619
2623
|
"aria-label": e.pageSizeLabel || void 0,
|
|
2620
2624
|
value: e.pageSize,
|
|
2621
|
-
onChange:
|
|
2625
|
+
onChange: v
|
|
2622
2626
|
}, [
|
|
2623
|
-
(a(!0), l(
|
|
2624
|
-
key:
|
|
2625
|
-
value:
|
|
2626
|
-
},
|
|
2627
|
-
], 40,
|
|
2628
|
-
], 8,
|
|
2627
|
+
(a(!0), l(H, null, Q(e.pageSizes, (r) => (a(), l("option", {
|
|
2628
|
+
key: r,
|
|
2629
|
+
value: r
|
|
2630
|
+
}, w(r) + w(e.pageSizeSuffix), 9, Ii))), 128))
|
|
2631
|
+
], 40, Ci)
|
|
2632
|
+
], 8, Ti));
|
|
2629
2633
|
}
|
|
2630
|
-
}),
|
|
2631
|
-
class: "ds-menu-item__icon material-
|
|
2634
|
+
}), Tn = /* @__PURE__ */ O(Ai, [["__scopeId", "data-v-a42e7bb4"]]), Ni = ["aria-current", "title"], Bi = {
|
|
2635
|
+
class: "ds-menu-item__icon material-symbols-filled",
|
|
2632
2636
|
"aria-hidden": "true"
|
|
2633
2637
|
}, Oi = {
|
|
2634
2638
|
key: 0,
|
|
@@ -2636,7 +2640,7 @@ const Ga = {
|
|
|
2636
2640
|
}, xi = /* @__PURE__ */ B({
|
|
2637
2641
|
__name: "DsMenuItem",
|
|
2638
2642
|
props: {
|
|
2639
|
-
// Material
|
|
2643
|
+
// Material Symbols ligature name (rendered via <i class="material-symbols-filled">).
|
|
2640
2644
|
icon: { type: String, required: !0 },
|
|
2641
2645
|
// Row label; a default slot overrides it. Hidden (not removed) when collapsed.
|
|
2642
2646
|
text: { type: String, default: "" },
|
|
@@ -2651,22 +2655,22 @@ const Ga = {
|
|
|
2651
2655
|
function o(i) {
|
|
2652
2656
|
t(Ke, i);
|
|
2653
2657
|
}
|
|
2654
|
-
return (i,
|
|
2658
|
+
return (i, d) => (a(), l("button", {
|
|
2655
2659
|
type: "button",
|
|
2656
2660
|
class: L(["ds-menu-item", { "is-active": e.active, "is-collapsed": e.collapsed }]),
|
|
2657
2661
|
"aria-current": e.active ? "page" : void 0,
|
|
2658
2662
|
title: e.text || void 0,
|
|
2659
2663
|
onClick: o
|
|
2660
2664
|
}, [
|
|
2661
|
-
s("i", Bi,
|
|
2665
|
+
s("i", Bi, w(e.icon), 1),
|
|
2662
2666
|
e.text || i.$slots.default ? (a(), l("span", Oi, [
|
|
2663
|
-
|
|
2664
|
-
q(
|
|
2667
|
+
C(i.$slots, "default", {}, () => [
|
|
2668
|
+
q(w(e.text), 1)
|
|
2665
2669
|
], !0)
|
|
2666
2670
|
])) : g("", !0)
|
|
2667
2671
|
], 10, Ni));
|
|
2668
2672
|
}
|
|
2669
|
-
}), En = /* @__PURE__ */ O(xi, [["__scopeId", "data-v-
|
|
2673
|
+
}), En = /* @__PURE__ */ O(xi, [["__scopeId", "data-v-374c4426"]]), ce = {
|
|
2670
2674
|
ACTIVE: "active",
|
|
2671
2675
|
// current step — accent-tint chip, filled marker
|
|
2672
2676
|
COMPLETED: "completed",
|
|
@@ -2678,7 +2682,7 @@ const Ga = {
|
|
|
2678
2682
|
}, Mi = { class: "ds-wizard-stepper" }, Pi = { class: "ds-wizard-stepper__steps" }, zi = {
|
|
2679
2683
|
class: "ds-wizard-step__marker",
|
|
2680
2684
|
"aria-hidden": "true"
|
|
2681
|
-
},
|
|
2685
|
+
}, Fi = { class: "ds-wizard-step__label" }, Vi = /* @__PURE__ */ B({
|
|
2682
2686
|
__name: "DsWizardStepper",
|
|
2683
2687
|
props: {
|
|
2684
2688
|
steps: { type: Array, default: () => [] },
|
|
@@ -2692,33 +2696,33 @@ const Ga = {
|
|
|
2692
2696
|
},
|
|
2693
2697
|
emits: [Ae, Ye],
|
|
2694
2698
|
setup(e, { emit: n }) {
|
|
2695
|
-
const t = e, o = n, i =
|
|
2696
|
-
() => t.steps.map((
|
|
2697
|
-
var
|
|
2698
|
-
const c =
|
|
2699
|
+
const t = e, o = n, i = k(() => t.value === t.steps.length), d = k(
|
|
2700
|
+
() => t.steps.map((f, r) => {
|
|
2701
|
+
var p;
|
|
2702
|
+
const c = r + 1;
|
|
2699
2703
|
let m;
|
|
2700
|
-
return c === t.value ? m = ce.ACTIVE :
|
|
2701
|
-
key: (
|
|
2704
|
+
return c === t.value ? m = ce.ACTIVE : f.completed ? m = ce.COMPLETED : f.visited ? m = ce.INCOMPLETE : c < t.value ? m = ce.COMPLETED : m = ce.NEUTRAL, {
|
|
2705
|
+
key: (p = f.key) != null ? p : c,
|
|
2702
2706
|
index: c,
|
|
2703
|
-
label:
|
|
2707
|
+
label: f.label,
|
|
2704
2708
|
state: m,
|
|
2705
2709
|
current: m === ce.ACTIVE,
|
|
2706
2710
|
marker: m === ce.INCOMPLETE ? "!" : String(c)
|
|
2707
2711
|
};
|
|
2708
2712
|
})
|
|
2709
2713
|
);
|
|
2710
|
-
function E(
|
|
2711
|
-
t.clickable && o(Ae,
|
|
2714
|
+
function E(f) {
|
|
2715
|
+
t.clickable && o(Ae, f);
|
|
2712
2716
|
}
|
|
2713
|
-
function
|
|
2717
|
+
function v() {
|
|
2714
2718
|
t.value < t.steps.length && o(Ae, t.value + 1);
|
|
2715
2719
|
}
|
|
2716
2720
|
function y() {
|
|
2717
2721
|
o(Ye);
|
|
2718
2722
|
}
|
|
2719
|
-
return (
|
|
2723
|
+
return (f, r) => (a(), l("div", Mi, [
|
|
2720
2724
|
s("ol", Pi, [
|
|
2721
|
-
(a(!0), l(
|
|
2725
|
+
(a(!0), l(H, null, Q(d.value, (c) => (a(), l("li", {
|
|
2722
2726
|
key: c.key,
|
|
2723
2727
|
class: "ds-wizard-stepper__item"
|
|
2724
2728
|
}, [
|
|
@@ -2729,8 +2733,8 @@ const Ga = {
|
|
|
2729
2733
|
onClick: (m) => E(c.index)
|
|
2730
2734
|
}, {
|
|
2731
2735
|
default: ie(() => [
|
|
2732
|
-
s("span", zi,
|
|
2733
|
-
s("span",
|
|
2736
|
+
s("span", zi, w(c.marker), 1),
|
|
2737
|
+
s("span", Fi, w(c.label), 1)
|
|
2734
2738
|
]),
|
|
2735
2739
|
_: 2
|
|
2736
2740
|
}, 1032, ["type", "class", "aria-current", "onClick"]))
|
|
@@ -2741,10 +2745,10 @@ const Ga = {
|
|
|
2741
2745
|
variant: "primary",
|
|
2742
2746
|
size: "large",
|
|
2743
2747
|
"right-icon": "keyboard_arrow_right",
|
|
2744
|
-
onClick:
|
|
2748
|
+
onClick: v
|
|
2745
2749
|
}, {
|
|
2746
2750
|
default: ie(() => [
|
|
2747
|
-
q(
|
|
2751
|
+
q(w(e.nextLabel), 1)
|
|
2748
2752
|
]),
|
|
2749
2753
|
_: 1
|
|
2750
2754
|
})) : g("", !0),
|
|
@@ -2755,13 +2759,13 @@ const Ga = {
|
|
|
2755
2759
|
onClick: y
|
|
2756
2760
|
}, {
|
|
2757
2761
|
default: ie(() => [
|
|
2758
|
-
q(
|
|
2762
|
+
q(w(e.finalStepLabel), 1)
|
|
2759
2763
|
]),
|
|
2760
2764
|
_: 1
|
|
2761
2765
|
})) : g("", !0)
|
|
2762
2766
|
]));
|
|
2763
2767
|
}
|
|
2764
|
-
}),
|
|
2768
|
+
}), wn = /* @__PURE__ */ O(Vi, [["__scopeId", "data-v-d6f1e6d7"]]), it = {
|
|
2765
2769
|
/** Right-to-left: panel pinned to the right edge, ring on its left border. */
|
|
2766
2770
|
RTL: "rtl",
|
|
2767
2771
|
/** Left-to-right: panel pinned to the left edge, ring on its right border. */
|
|
@@ -2769,7 +2773,7 @@ const Ga = {
|
|
|
2769
2773
|
}, Ui = ["aria-modal", "aria-labelledby", "aria-label"], Gi = {
|
|
2770
2774
|
key: 1,
|
|
2771
2775
|
class: "ds-drawer__header"
|
|
2772
|
-
},
|
|
2776
|
+
}, Hi = ["id"], Wi = {
|
|
2773
2777
|
key: 0,
|
|
2774
2778
|
class: "ds-drawer__controls"
|
|
2775
2779
|
}, Ki = {
|
|
@@ -2807,48 +2811,48 @@ const Ga = {
|
|
|
2807
2811
|
},
|
|
2808
2812
|
emits: [J, je, Xe, Ze],
|
|
2809
2813
|
setup(e, { emit: n }) {
|
|
2810
|
-
const t = e, o = n, i =
|
|
2811
|
-
let
|
|
2812
|
-
const E = he(),
|
|
2814
|
+
const t = e, o = n, i = V(null);
|
|
2815
|
+
let d = null;
|
|
2816
|
+
const E = he(), v = ge(), y = k(() => t.title && !E.header ? v : void 0), f = (u) => Math.min(Math.max(u, t.minWidth), Math.max(t.minWidth, t.maxWidth)), r = V(f(t.width));
|
|
2813
2817
|
Z(
|
|
2814
2818
|
() => [t.width, t.minWidth, t.maxWidth],
|
|
2815
2819
|
() => {
|
|
2816
|
-
N.value || (
|
|
2820
|
+
N.value || (r.value = f(t.width));
|
|
2817
2821
|
}
|
|
2818
2822
|
);
|
|
2819
|
-
const c =
|
|
2823
|
+
const c = k(() => ({ width: `${r.value}px` }));
|
|
2820
2824
|
async function m() {
|
|
2821
2825
|
t.beforeClose && await t.beforeClose() === !1 || o(J);
|
|
2822
2826
|
}
|
|
2823
|
-
let
|
|
2824
|
-
function
|
|
2825
|
-
if (
|
|
2826
|
-
|
|
2827
|
+
let p = !1;
|
|
2828
|
+
function T() {
|
|
2829
|
+
if (p) {
|
|
2830
|
+
p = !1;
|
|
2827
2831
|
return;
|
|
2828
2832
|
}
|
|
2829
2833
|
t.fixed && t.closeOnOverlay && m();
|
|
2830
2834
|
}
|
|
2831
|
-
const N =
|
|
2832
|
-
let
|
|
2835
|
+
const N = V(!1);
|
|
2836
|
+
let _ = 0, $ = 0;
|
|
2833
2837
|
function A(u) {
|
|
2834
|
-
const
|
|
2835
|
-
return
|
|
2838
|
+
const S = u.clientX - _, x = t.direction === it.RTL ? $ - S : $ + S;
|
|
2839
|
+
return f(x);
|
|
2836
2840
|
}
|
|
2837
|
-
function
|
|
2838
|
-
t.resizable && (N.value = !0,
|
|
2841
|
+
function F(u) {
|
|
2842
|
+
t.resizable && (N.value = !0, _ = u.clientX, $ = r.value, document.addEventListener("pointermove", W), document.addEventListener("pointerup", ee), document.addEventListener("pointercancel", ee), o(je, r.value));
|
|
2839
2843
|
}
|
|
2840
|
-
function
|
|
2841
|
-
N.value && (
|
|
2844
|
+
function W(u) {
|
|
2845
|
+
N.value && (r.value = A(u), o(Xe, r.value));
|
|
2842
2846
|
}
|
|
2843
|
-
function
|
|
2844
|
-
N.value && (G(), N.value = !1,
|
|
2847
|
+
function ee() {
|
|
2848
|
+
N.value && (G(), N.value = !1, p = !0, setTimeout(() => p = !1, 0), o(Ze, r.value));
|
|
2845
2849
|
}
|
|
2846
2850
|
function G() {
|
|
2847
|
-
document.removeEventListener("
|
|
2851
|
+
document.removeEventListener("pointermove", W), document.removeEventListener("pointerup", ee), document.removeEventListener("pointercancel", ee);
|
|
2848
2852
|
}
|
|
2849
2853
|
function M() {
|
|
2850
2854
|
return i.value ? Array.from(i.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
2851
|
-
(
|
|
2855
|
+
(S) => !S.closest("[hidden]") && S.getAttribute("aria-hidden") !== "true"
|
|
2852
2856
|
) : [];
|
|
2853
2857
|
}
|
|
2854
2858
|
function j(u) {
|
|
@@ -2858,33 +2862,33 @@ const Ga = {
|
|
|
2858
2862
|
return;
|
|
2859
2863
|
}
|
|
2860
2864
|
if (u.key !== "Tab") return;
|
|
2861
|
-
const
|
|
2862
|
-
if (
|
|
2865
|
+
const S = M();
|
|
2866
|
+
if (S.length === 0) {
|
|
2863
2867
|
u.preventDefault(), (re = i.value) == null || re.focus();
|
|
2864
2868
|
return;
|
|
2865
2869
|
}
|
|
2866
|
-
const x =
|
|
2870
|
+
const x = S[0], le = S[S.length - 1];
|
|
2867
2871
|
u.shiftKey && document.activeElement === x ? (u.preventDefault(), le.focus()) : !u.shiftKey && document.activeElement === le && (u.preventDefault(), x.focus());
|
|
2868
2872
|
}
|
|
2869
2873
|
function b() {
|
|
2870
|
-
|
|
2871
|
-
var u,
|
|
2872
|
-
return (
|
|
2874
|
+
d = document.activeElement, document.addEventListener("keydown", j), document.body.style.overflow = "hidden", se(() => {
|
|
2875
|
+
var u, S;
|
|
2876
|
+
return (S = (u = M()[0]) != null ? u : i.value) == null ? void 0 : S.focus();
|
|
2873
2877
|
});
|
|
2874
2878
|
}
|
|
2875
2879
|
function R(u = !0) {
|
|
2876
|
-
var
|
|
2877
|
-
document.removeEventListener("keydown", j), document.body.style.overflow = "", u && ((
|
|
2880
|
+
var S;
|
|
2881
|
+
document.removeEventListener("keydown", j), document.body.style.overflow = "", u && ((S = d == null ? void 0 : d.focus) == null || S.call(d));
|
|
2878
2882
|
}
|
|
2879
2883
|
return Z(
|
|
2880
2884
|
() => t.open && t.fixed,
|
|
2881
|
-
(u,
|
|
2882
|
-
typeof document != "undefined" && (u ? b() :
|
|
2885
|
+
(u, S) => {
|
|
2886
|
+
typeof document != "undefined" && (u ? b() : S && R());
|
|
2883
2887
|
},
|
|
2884
2888
|
{ immediate: !0 }
|
|
2885
2889
|
), de(() => {
|
|
2886
2890
|
typeof document != "undefined" && (G(), R(!1));
|
|
2887
|
-
}), (u,
|
|
2891
|
+
}), (u, S) => (a(), K(Pe, {
|
|
2888
2892
|
to: "body",
|
|
2889
2893
|
disabled: !e.fixed
|
|
2890
2894
|
}, [
|
|
@@ -2895,7 +2899,7 @@ const Ga = {
|
|
|
2895
2899
|
e.open ? (a(), l("div", {
|
|
2896
2900
|
key: 0,
|
|
2897
2901
|
class: L(["ds-drawer", [`ds-drawer--${e.direction}`, { "is-fixed": e.fixed, "is-resizing": N.value }]]),
|
|
2898
|
-
onClick: ue(
|
|
2902
|
+
onClick: ue(T, ["self"])
|
|
2899
2903
|
}, [
|
|
2900
2904
|
s("aside", {
|
|
2901
2905
|
ref_key: "panelRef",
|
|
@@ -2912,18 +2916,18 @@ const Ga = {
|
|
|
2912
2916
|
key: 0,
|
|
2913
2917
|
class: "ds-drawer__dragger",
|
|
2914
2918
|
"aria-hidden": "true",
|
|
2915
|
-
|
|
2919
|
+
onPointerdown: ue(F, ["stop", "prevent"])
|
|
2916
2920
|
}, null, 32)) : g("", !0),
|
|
2917
2921
|
e.title || e.showClose || u.$slots.header || u.$slots.actions ? (a(), l("header", Gi, [
|
|
2918
|
-
|
|
2922
|
+
C(u.$slots, "header", {}, () => [
|
|
2919
2923
|
s("h4", {
|
|
2920
|
-
id: D(
|
|
2924
|
+
id: D(v),
|
|
2921
2925
|
class: "ds-drawer__title"
|
|
2922
|
-
},
|
|
2926
|
+
}, w(e.title), 9, Hi)
|
|
2923
2927
|
], !0),
|
|
2924
|
-
e.showClose || u.$slots.actions ? (a(), l("div",
|
|
2928
|
+
e.showClose || u.$slots.actions ? (a(), l("div", Wi, [
|
|
2925
2929
|
u.$slots.actions ? (a(), l("div", Ki, [
|
|
2926
|
-
|
|
2930
|
+
C(u.$slots, "actions", {}, void 0, !0)
|
|
2927
2931
|
])) : g("", !0),
|
|
2928
2932
|
e.showClose ? (a(), l("button", {
|
|
2929
2933
|
key: 1,
|
|
@@ -2931,19 +2935,19 @@ const Ga = {
|
|
|
2931
2935
|
class: "ds-drawer__close",
|
|
2932
2936
|
"aria-label": e.closeLabel || void 0,
|
|
2933
2937
|
onClick: m
|
|
2934
|
-
}, [...
|
|
2938
|
+
}, [...S[0] || (S[0] = [
|
|
2935
2939
|
s("i", {
|
|
2936
|
-
class: "material-
|
|
2940
|
+
class: "material-symbols-filled",
|
|
2937
2941
|
"aria-hidden": "true"
|
|
2938
2942
|
}, "close", -1)
|
|
2939
2943
|
])], 8, Yi)) : g("", !0)
|
|
2940
2944
|
])) : g("", !0)
|
|
2941
2945
|
])) : g("", !0),
|
|
2942
2946
|
s("div", qi, [
|
|
2943
|
-
|
|
2947
|
+
C(u.$slots, "default", {}, void 0, !0)
|
|
2944
2948
|
]),
|
|
2945
2949
|
u.$slots.footer ? (a(), l("footer", ji, [
|
|
2946
|
-
|
|
2950
|
+
C(u.$slots, "footer", {}, void 0, !0)
|
|
2947
2951
|
])) : g("", !0)
|
|
2948
2952
|
], 12, Ui)
|
|
2949
2953
|
], 2)) : g("", !0)
|
|
@@ -2952,11 +2956,19 @@ const Ga = {
|
|
|
2952
2956
|
}, 8, ["name"])
|
|
2953
2957
|
], 8, ["disabled"]));
|
|
2954
2958
|
}
|
|
2955
|
-
}), Ln = /* @__PURE__ */ O(Xi, [["__scopeId", "data-v-
|
|
2959
|
+
}), Ln = /* @__PURE__ */ O(Xi, [["__scopeId", "data-v-b912d1e5"]]), Zi = {
|
|
2956
2960
|
TOP: "top",
|
|
2961
|
+
TOP_START: "top-start",
|
|
2962
|
+
TOP_END: "top-end",
|
|
2957
2963
|
BOTTOM: "bottom",
|
|
2964
|
+
BOTTOM_START: "bottom-start",
|
|
2965
|
+
BOTTOM_END: "bottom-end",
|
|
2958
2966
|
LEFT: "left",
|
|
2959
|
-
|
|
2967
|
+
LEFT_START: "left-start",
|
|
2968
|
+
LEFT_END: "left-end",
|
|
2969
|
+
RIGHT: "right",
|
|
2970
|
+
RIGHT_START: "right-start",
|
|
2971
|
+
RIGHT_END: "right-end"
|
|
2960
2972
|
}, Qi = ["id"], Ji = /* @__PURE__ */ B({
|
|
2961
2973
|
__name: "DsPopover",
|
|
2962
2974
|
props: {
|
|
@@ -2974,52 +2986,52 @@ const Ga = {
|
|
|
2974
2986
|
},
|
|
2975
2987
|
emits: [Ne],
|
|
2976
2988
|
setup(e, { emit: n }) {
|
|
2977
|
-
const t = e, o = n, i =
|
|
2978
|
-
shiftStyle:
|
|
2989
|
+
const t = e, o = n, i = V(null), d = V(null), E = ge(), {
|
|
2990
|
+
shiftStyle: v,
|
|
2979
2991
|
activate: y,
|
|
2980
|
-
deactivate:
|
|
2981
|
-
} = dt(
|
|
2982
|
-
const
|
|
2983
|
-
return Object.keys(
|
|
2992
|
+
deactivate: f
|
|
2993
|
+
} = dt(d, () => t.placement), r = k(() => {
|
|
2994
|
+
const _ = { ...t.width ? { width: t.width } : {}, ...v.value };
|
|
2995
|
+
return Object.keys(_).length > 0 ? _ : void 0;
|
|
2984
2996
|
});
|
|
2985
2997
|
let c = null;
|
|
2986
2998
|
function m() {
|
|
2987
2999
|
o(Ne, !1);
|
|
2988
3000
|
}
|
|
2989
|
-
function
|
|
3001
|
+
function p() {
|
|
2990
3002
|
t.triggerOnClick && o(Ne, !t.open);
|
|
2991
3003
|
}
|
|
2992
|
-
function
|
|
3004
|
+
function T() {
|
|
2993
3005
|
t.closeOnEscape && t.open && m();
|
|
2994
3006
|
}
|
|
2995
|
-
function N(
|
|
3007
|
+
function N(_) {
|
|
2996
3008
|
var A;
|
|
2997
|
-
const $ =
|
|
3009
|
+
const $ = _.target;
|
|
2998
3010
|
!$ || (A = i.value) != null && A.contains($) || m();
|
|
2999
3011
|
}
|
|
3000
3012
|
return Z(
|
|
3001
3013
|
() => t.open,
|
|
3002
|
-
(
|
|
3014
|
+
(_, $) => {
|
|
3003
3015
|
var A;
|
|
3004
|
-
typeof document != "undefined" && (
|
|
3005
|
-
var
|
|
3006
|
-
(
|
|
3007
|
-
})) : $ && (document.removeEventListener("mousedown", N),
|
|
3016
|
+
typeof document != "undefined" && (_ ? (c = document.activeElement, t.closeOnOutside && document.addEventListener("mousedown", N), se(() => {
|
|
3017
|
+
var F, W;
|
|
3018
|
+
(W = (F = d.value) == null ? void 0 : F.focus) == null || W.call(F, { preventScroll: !0 }), y();
|
|
3019
|
+
})) : $ && (document.removeEventListener("mousedown", N), f(), (A = c == null ? void 0 : c.focus) == null || A.call(c, { preventScroll: !0 })));
|
|
3008
3020
|
},
|
|
3009
3021
|
{ immediate: !0 }
|
|
3010
3022
|
), de(() => {
|
|
3011
|
-
typeof document != "undefined" && (document.removeEventListener("mousedown", N),
|
|
3012
|
-
}), (
|
|
3023
|
+
typeof document != "undefined" && (document.removeEventListener("mousedown", N), f());
|
|
3024
|
+
}), (_, $) => (a(), l("div", {
|
|
3013
3025
|
ref_key: "rootRef",
|
|
3014
3026
|
ref: i,
|
|
3015
3027
|
class: "ds-popover",
|
|
3016
|
-
onKeydown: st(
|
|
3028
|
+
onKeydown: st(T, ["esc"])
|
|
3017
3029
|
}, [
|
|
3018
3030
|
s("div", {
|
|
3019
3031
|
class: "ds-popover__trigger",
|
|
3020
|
-
onClick:
|
|
3032
|
+
onClick: p
|
|
3021
3033
|
}, [
|
|
3022
|
-
_
|
|
3034
|
+
C(_.$slots, "trigger", {}, void 0, !0)
|
|
3023
3035
|
]),
|
|
3024
3036
|
Y(me, { name: "ds-popover-fade" }, {
|
|
3025
3037
|
default: ie(() => [
|
|
@@ -3027,20 +3039,20 @@ const Ga = {
|
|
|
3027
3039
|
key: 0,
|
|
3028
3040
|
id: D(E),
|
|
3029
3041
|
ref_key: "panelRef",
|
|
3030
|
-
ref:
|
|
3042
|
+
ref: d,
|
|
3031
3043
|
class: L(["ds-popover__panel", `ds-popover__panel--${e.placement}`]),
|
|
3032
3044
|
role: "dialog",
|
|
3033
3045
|
tabindex: "-1",
|
|
3034
|
-
style: U(
|
|
3046
|
+
style: U(r.value)
|
|
3035
3047
|
}, [
|
|
3036
|
-
_
|
|
3048
|
+
C(_.$slots, "default", {}, void 0, !0)
|
|
3037
3049
|
], 14, Qi)) : g("", !0)
|
|
3038
3050
|
]),
|
|
3039
3051
|
_: 3
|
|
3040
3052
|
})
|
|
3041
3053
|
], 544));
|
|
3042
3054
|
}
|
|
3043
|
-
}),
|
|
3055
|
+
}), _n = /* @__PURE__ */ O(Ji, [["__scopeId", "data-v-ec70dca4"]]);
|
|
3044
3056
|
export {
|
|
3045
3057
|
pa as DS_ALERT_EFFECTS,
|
|
3046
3058
|
Sa as DS_ALERT_ICONS,
|
|
@@ -3053,9 +3065,9 @@ export {
|
|
|
3053
3065
|
it as DS_DRAWER_DIRECTIONS,
|
|
3054
3066
|
ia as DS_INPUT_SIZES,
|
|
3055
3067
|
be as DS_INPUT_TYPES,
|
|
3056
|
-
|
|
3068
|
+
Ca as DS_NOTIFICATION_ICONS,
|
|
3057
3069
|
et as DS_NOTIFICATION_LINK_TARGETS,
|
|
3058
|
-
|
|
3070
|
+
_a as DS_NOTIFICATION_POSITIONS,
|
|
3059
3071
|
La as DS_NOTIFICATION_TYPES,
|
|
3060
3072
|
Zi as DS_POPOVER_PLACEMENTS,
|
|
3061
3073
|
at as DS_SELECT_TYPES,
|
|
@@ -3084,10 +3096,10 @@ export {
|
|
|
3084
3096
|
En as DsMenuItem,
|
|
3085
3097
|
rn as DsModal,
|
|
3086
3098
|
dn as DsNotification,
|
|
3087
|
-
|
|
3099
|
+
Tn as DsPaginator,
|
|
3088
3100
|
pn as DsPill,
|
|
3089
3101
|
Sn as DsPillWithBorder,
|
|
3090
|
-
|
|
3102
|
+
_n as DsPopover,
|
|
3091
3103
|
fn as DsRadio,
|
|
3092
3104
|
mn as DsRow,
|
|
3093
3105
|
kn as DsSegmentedProgressBar,
|
|
@@ -3099,6 +3111,6 @@ export {
|
|
|
3099
3111
|
sn as DsTextarea,
|
|
3100
3112
|
cn as DsTooltip,
|
|
3101
3113
|
qa as DsVerificationIcon,
|
|
3102
|
-
|
|
3114
|
+
wn as DsWizardStepper
|
|
3103
3115
|
};
|
|
3104
3116
|
//# sourceMappingURL=index.es.js.map
|