@salesql/sql_components_vue3 3.4.0 → 3.5.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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1108 -1098
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsPopover/DsPopover.types.d.ts +7 -0
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +9 -0
- package/llms-full.txt +13 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, computed as g, openBlock as a, createElementBlock as l, normalizeStyle as G, normalizeClass as C, createBlock as Q, unref as $, createCommentVNode as h, createElementVNode as i, renderSlot as O, toDisplayString as f, withModifiers as pe, useModel as Se, ref as V, onMounted as Et, watch as J, withDirectives as Ye, vModelCheckbox as Mt, createTextVNode as Z, mergeModels as se, onBeforeUnmount as re, nextTick as ue, createVNode as U, Fragment as q, renderList as X, useSlots as Te, vModelDynamic as Pt, useAttrs as zt, mergeProps as De, vModelText as Ut, Transition as ke, withCtx as z, Teleport as xe, useId as $e, withKeys as We, reactive as Vt, resolveDynamicComponent as qt, createSlots as je } from "vue";
|
|
2
2
|
const Re = {
|
|
3
3
|
DARK: "dark",
|
|
4
4
|
// slate ring — for light surfaces (default)
|
|
@@ -13,7 +13,7 @@ const Re = {
|
|
|
13
13
|
// 32px
|
|
14
14
|
LARGE: "large"
|
|
15
15
|
// 48px
|
|
16
|
-
}, Ft = ["aria-label"], Gt = /* @__PURE__ */
|
|
16
|
+
}, Ft = ["aria-label"], Gt = /* @__PURE__ */ x({
|
|
17
17
|
__name: "DsSpinner",
|
|
18
18
|
props: {
|
|
19
19
|
// Diameter in px, or a named size ("small" 20 / "medium" 32 / "large" 48).
|
|
@@ -34,23 +34,23 @@ const Re = {
|
|
|
34
34
|
[Fe.LARGE]: 48
|
|
35
35
|
}, t = e, d = g(
|
|
36
36
|
() => {
|
|
37
|
-
var
|
|
38
|
-
return typeof t.size == "string" ? (
|
|
37
|
+
var n;
|
|
38
|
+
return typeof t.size == "string" ? (n = s[t.size]) != null ? n : 24 : t.size;
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
return (
|
|
41
|
+
return (n, o) => (a(), l("span", {
|
|
42
42
|
class: C(["ds-spinner", `ds-spinner--${e.tone}`]),
|
|
43
43
|
role: "status",
|
|
44
|
-
style:
|
|
44
|
+
style: G({ width: `${d.value}px`, height: `${d.value}px` }),
|
|
45
45
|
"aria-label": e.label || void 0
|
|
46
46
|
}, null, 14, Ft));
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
48
|
+
}), M = (e, s) => {
|
|
49
49
|
const t = e.__vccOpts || e;
|
|
50
|
-
for (const [d,
|
|
51
|
-
t[d] =
|
|
50
|
+
for (const [d, n] of s)
|
|
51
|
+
t[d] = n;
|
|
52
52
|
return t;
|
|
53
|
-
}, Le = /* @__PURE__ */
|
|
53
|
+
}, Le = /* @__PURE__ */ M(Gt, [["__scopeId", "data-v-aaf2f048"]]), le = "click", te = "close", Ae = "focus", Ne = "blur", tt = "change", at = "field-blur", be = "copy", ye = "correct", me = "incorrect", lt = "sort", nt = "edit", it = "select-all", st = "page-change", ot = "page-size-change", fe = "search", dt = "select", Ge = "step", rt = "final-step", ct = "navigate", ut = "resize-start", ft = "resize", vt = "resize-end", ne = "update:open", bt = "pick", yt = "apply", mt = "add", Oe = "create", de = {
|
|
54
54
|
DEFAULT: "default",
|
|
55
55
|
// white surface, dark text (the default value; == tertiary)
|
|
56
56
|
PRIMARY: "primary",
|
|
@@ -76,7 +76,7 @@ const Re = {
|
|
|
76
76
|
// `warning` as a deprecated alias of `danger` (tint), but app consumers already
|
|
77
77
|
// ship this solid look — kept unchanged to avoid a visual regression. Prefer `danger`.
|
|
78
78
|
WARNING: "warning"
|
|
79
|
-
},
|
|
79
|
+
}, ie = {
|
|
80
80
|
SMALL: "small",
|
|
81
81
|
// 24px
|
|
82
82
|
MEDIUM: "medium",
|
|
@@ -104,11 +104,11 @@ const Re = {
|
|
|
104
104
|
}, Qt = {
|
|
105
105
|
class: "material-symbols-filled",
|
|
106
106
|
"aria-hidden": "true"
|
|
107
|
-
}, Jt = /* @__PURE__ */
|
|
107
|
+
}, Jt = /* @__PURE__ */ x({
|
|
108
108
|
__name: "DsButton",
|
|
109
109
|
props: {
|
|
110
110
|
variant: { type: String, default: de.DEFAULT },
|
|
111
|
-
size: { type: String, default:
|
|
111
|
+
size: { type: String, default: ie.MEDIUM },
|
|
112
112
|
nativeType: {
|
|
113
113
|
type: String,
|
|
114
114
|
default: Ht.BUTTON
|
|
@@ -137,7 +137,7 @@ const Re = {
|
|
|
137
137
|
},
|
|
138
138
|
emits: [le],
|
|
139
139
|
setup(e, { emit: s }) {
|
|
140
|
-
const t = e, d = s,
|
|
140
|
+
const t = e, d = s, n = g(() => t.size === ie.SMALL ? 14 : 20), o = g(
|
|
141
141
|
() => t.variant === de.PRIMARY || t.variant === de.WARNING ? Re.LIGHT : Re.DARK
|
|
142
142
|
);
|
|
143
143
|
function m(c) {
|
|
@@ -166,33 +166,33 @@ const Re = {
|
|
|
166
166
|
"aria-label": e.ariaLabel || void 0,
|
|
167
167
|
onClick: m
|
|
168
168
|
}, [
|
|
169
|
-
e.loading ? (a(), Q(
|
|
169
|
+
e.loading ? (a(), Q($(Le), {
|
|
170
170
|
key: 0,
|
|
171
171
|
class: "ds-button__spinner",
|
|
172
|
-
size:
|
|
172
|
+
size: n.value,
|
|
173
173
|
tone: o.value
|
|
174
174
|
}, null, 8, ["size", "tone"])) : h("", !0),
|
|
175
|
-
|
|
175
|
+
i("span", {
|
|
176
176
|
class: "ds-button__content",
|
|
177
177
|
"aria-hidden": e.loading || void 0
|
|
178
178
|
}, [
|
|
179
179
|
e.leftIcon || c.$slots.leading ? (a(), l("span", Yt, [
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
O(c.$slots, "leading", {}, () => [
|
|
181
|
+
i("i", jt, f(e.leftIcon), 1)
|
|
182
182
|
], !0)
|
|
183
183
|
])) : h("", !0),
|
|
184
184
|
c.$slots.default && !e.circle && !e.square ? (a(), l("span", Zt, [
|
|
185
|
-
|
|
185
|
+
O(c.$slots, "default", {}, void 0, !0)
|
|
186
186
|
])) : h("", !0),
|
|
187
187
|
e.rightIcon || c.$slots.trailing ? (a(), l("span", Xt, [
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
O(c.$slots, "trailing", {}, () => [
|
|
189
|
+
i("i", Qt, f(e.rightIcon), 1)
|
|
190
190
|
], !0)
|
|
191
191
|
])) : h("", !0)
|
|
192
192
|
], 8, Kt)
|
|
193
193
|
], 10, Wt));
|
|
194
194
|
}
|
|
195
|
-
}), ae = /* @__PURE__ */
|
|
195
|
+
}), ae = /* @__PURE__ */ M(Jt, [["__scopeId", "data-v-85d01e1a"]]), ea = {
|
|
196
196
|
DEFAULT: "default",
|
|
197
197
|
// white bg, slate-tint border, muted text
|
|
198
198
|
GREY: "grey",
|
|
@@ -205,7 +205,7 @@ const Re = {
|
|
|
205
205
|
// e.g. Pending
|
|
206
206
|
ERROR: "error"
|
|
207
207
|
// e.g. Bounced
|
|
208
|
-
}, ta = { class: "ds-tag__label" }, aa = ["aria-label"], la = /* @__PURE__ */
|
|
208
|
+
}, ta = { class: "ds-tag__label" }, aa = ["aria-label"], la = /* @__PURE__ */ x({
|
|
209
209
|
__name: "DsTag",
|
|
210
210
|
props: {
|
|
211
211
|
tone: {
|
|
@@ -233,30 +233,30 @@ const Re = {
|
|
|
233
233
|
},
|
|
234
234
|
setup(e, { emit: s }) {
|
|
235
235
|
const t = s;
|
|
236
|
-
return (d,
|
|
236
|
+
return (d, n) => (a(), l("span", {
|
|
237
237
|
class: C(["ds-tag", [
|
|
238
238
|
`ds-tag--${e.tone}`,
|
|
239
239
|
{ "is-rounded": e.rounded, "is-clickable": e.clickable, "is-truncate": e.truncate }
|
|
240
240
|
]])
|
|
241
241
|
}, [
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
i("span", ta, [
|
|
243
|
+
O(d.$slots, "default", {}, void 0, !0)
|
|
244
244
|
]),
|
|
245
245
|
e.closable ? (a(), l("button", {
|
|
246
246
|
key: 0,
|
|
247
247
|
type: "button",
|
|
248
248
|
class: "ds-tag__close",
|
|
249
249
|
"aria-label": e.closeLabel || void 0,
|
|
250
|
-
onClick:
|
|
251
|
-
}, [...
|
|
252
|
-
|
|
250
|
+
onClick: n[0] || (n[0] = pe((o) => t($(te)), ["stop"]))
|
|
251
|
+
}, [...n[1] || (n[1] = [
|
|
252
|
+
i("i", {
|
|
253
253
|
class: "material-symbols-filled",
|
|
254
254
|
"aria-hidden": "true"
|
|
255
255
|
}, "close", -1)
|
|
256
256
|
])], 8, aa)) : h("", !0)
|
|
257
257
|
], 2));
|
|
258
258
|
}
|
|
259
|
-
}), Vs = /* @__PURE__ */
|
|
259
|
+
}), Vs = /* @__PURE__ */ M(la, [["__scopeId", "data-v-23118dd1"]]), Ke = {
|
|
260
260
|
ACCENT: "accent",
|
|
261
261
|
// e.g. Work (purple)
|
|
262
262
|
GREY: "grey",
|
|
@@ -269,7 +269,7 @@ const Re = {
|
|
|
269
269
|
// coral
|
|
270
270
|
WARNING: "warning"
|
|
271
271
|
// orange
|
|
272
|
-
},
|
|
272
|
+
}, na = /* @__PURE__ */ x({
|
|
273
273
|
__name: "DsBadge",
|
|
274
274
|
props: {
|
|
275
275
|
tone: {
|
|
@@ -281,10 +281,10 @@ const Re = {
|
|
|
281
281
|
return (s, t) => (a(), l("span", {
|
|
282
282
|
class: C(["ds-badge", `ds-badge--${e.tone}`])
|
|
283
283
|
}, [
|
|
284
|
-
|
|
284
|
+
O(s.$slots, "default", {}, void 0, !0)
|
|
285
285
|
], 2));
|
|
286
286
|
}
|
|
287
|
-
}),
|
|
287
|
+
}), ia = /* @__PURE__ */ M(na, [["__scopeId", "data-v-f10a17a0"]]), sa = ["src", "alt"], oa = ["aria-label"], da = /* @__PURE__ */ x({
|
|
288
288
|
__name: "DsAvatar",
|
|
289
289
|
props: {
|
|
290
290
|
image: { type: String, default: "" },
|
|
@@ -310,7 +310,7 @@ const Re = {
|
|
|
310
310
|
alt: { type: String, default: void 0 }
|
|
311
311
|
},
|
|
312
312
|
setup(e) {
|
|
313
|
-
const s = e, t = g(() => s.letters ? s.letters : s.firstName && s.lastName ? (s.firstName.charAt(0) + s.lastName.charAt(0)).toUpperCase() : ""), d = g(() => `${s.firstName} ${s.lastName}`.trim() || s.letters),
|
|
313
|
+
const s = e, t = g(() => s.letters ? s.letters : s.firstName && s.lastName ? (s.firstName.charAt(0) + s.lastName.charAt(0)).toUpperCase() : ""), d = g(() => `${s.firstName} ${s.lastName}`.trim() || s.letters), n = g(() => {
|
|
314
314
|
var u;
|
|
315
315
|
return (u = s.alt) != null ? u : d.value;
|
|
316
316
|
}), o = g(() => {
|
|
@@ -327,10 +327,10 @@ const Re = {
|
|
|
327
327
|
), y = g(() => {
|
|
328
328
|
const u = s.uid || s.firstName + s.lastName || s.letters;
|
|
329
329
|
let p = 0;
|
|
330
|
-
for (let
|
|
331
|
-
p = u.charCodeAt(
|
|
330
|
+
for (let S = 0; S < u.length; S++)
|
|
331
|
+
p = u.charCodeAt(S) + ((p << 5) - p), p = p & p;
|
|
332
332
|
const r = [0, 0, 0];
|
|
333
|
-
for (let
|
|
333
|
+
for (let S = 0; S < 3; S++) r[S] = p >> S * 8 & 255;
|
|
334
334
|
const v = r[0] >= 200 && r[1] >= 200 && r[2] >= 200;
|
|
335
335
|
return { bg: `rgb(${r[0]}, ${r[1]}, ${r[2]})`, fg: v ? "#323f4b" : "#fff" };
|
|
336
336
|
});
|
|
@@ -338,14 +338,14 @@ const Re = {
|
|
|
338
338
|
key: 0,
|
|
339
339
|
class: C(["ds-avatar", { "is-circular": e.circular }]),
|
|
340
340
|
src: e.image,
|
|
341
|
-
alt:
|
|
342
|
-
style:
|
|
341
|
+
alt: n.value,
|
|
342
|
+
style: G(c.value)
|
|
343
343
|
}, null, 14, sa)) : t.value ? (a(), l("div", {
|
|
344
344
|
key: 1,
|
|
345
345
|
class: C(["ds-avatar ds-avatar--initials", { "is-circular": e.circular }]),
|
|
346
346
|
role: "img",
|
|
347
|
-
"aria-label":
|
|
348
|
-
style:
|
|
347
|
+
"aria-label": n.value || void 0,
|
|
348
|
+
style: G([
|
|
349
349
|
c.value,
|
|
350
350
|
{
|
|
351
351
|
background: y.value.bg,
|
|
@@ -357,11 +357,11 @@ const Re = {
|
|
|
357
357
|
}, f(t.value), 15, oa)) : (a(), l("div", {
|
|
358
358
|
key: 2,
|
|
359
359
|
class: C(["ds-avatar ds-avatar--placeholder", { "is-circular": e.circular }]),
|
|
360
|
-
style:
|
|
360
|
+
style: G(c.value),
|
|
361
361
|
"aria-hidden": "true"
|
|
362
362
|
}, null, 6));
|
|
363
363
|
}
|
|
364
|
-
}), qs = /* @__PURE__ */
|
|
364
|
+
}), qs = /* @__PURE__ */ M(da, [["__scopeId", "data-v-4faae4da"]]), ra = ["disabled", "name", "aria-label"], ca = {
|
|
365
365
|
key: 0,
|
|
366
366
|
class: "ds-checkbox__mark",
|
|
367
367
|
viewBox: "0 0 16 16",
|
|
@@ -378,7 +378,7 @@ const Re = {
|
|
|
378
378
|
}, fa = {
|
|
379
379
|
key: 0,
|
|
380
380
|
class: "ds-checkbox__label"
|
|
381
|
-
}, va = /* @__PURE__ */
|
|
381
|
+
}, va = /* @__PURE__ */ x({
|
|
382
382
|
__name: "DsCheckbox",
|
|
383
383
|
props: /* @__PURE__ */ se({
|
|
384
384
|
indeterminate: Boolean,
|
|
@@ -395,13 +395,13 @@ const Re = {
|
|
|
395
395
|
emits: ["update:modelValue"],
|
|
396
396
|
setup(e) {
|
|
397
397
|
const s = Se(e, "modelValue"), t = e, d = V(null);
|
|
398
|
-
function
|
|
398
|
+
function n() {
|
|
399
399
|
d.value && (d.value.indeterminate = t.indeterminate);
|
|
400
400
|
}
|
|
401
|
-
return Et(
|
|
401
|
+
return Et(n), J(() => t.indeterminate, n), (o, m) => (a(), l("label", {
|
|
402
402
|
class: C(["ds-checkbox", { "is-disabled": e.disabled }])
|
|
403
403
|
}, [
|
|
404
|
-
Ye(
|
|
404
|
+
Ye(i("input", {
|
|
405
405
|
ref_key: "inputRef",
|
|
406
406
|
ref: d,
|
|
407
407
|
"onUpdate:modelValue": m[0] || (m[0] = (c) => s.value = c),
|
|
@@ -413,29 +413,29 @@ const Re = {
|
|
|
413
413
|
}, null, 8, ra), [
|
|
414
414
|
[Mt, s.value]
|
|
415
415
|
]),
|
|
416
|
-
|
|
416
|
+
i("span", {
|
|
417
417
|
class: C(["ds-checkbox__box", { "is-active": s.value || e.indeterminate }]),
|
|
418
418
|
"aria-hidden": "true"
|
|
419
419
|
}, [
|
|
420
420
|
e.indeterminate ? (a(), l("svg", ca, [...m[1] || (m[1] = [
|
|
421
|
-
|
|
421
|
+
i("line", {
|
|
422
422
|
x1: "4",
|
|
423
423
|
y1: "8",
|
|
424
424
|
x2: "12",
|
|
425
425
|
y2: "8"
|
|
426
426
|
}, null, -1)
|
|
427
427
|
])])) : s.value ? (a(), l("svg", ua, [...m[2] || (m[2] = [
|
|
428
|
-
|
|
428
|
+
i("path", { d: "M3.5 8.5l3 3 6-6" }, null, -1)
|
|
429
429
|
])])) : h("", !0)
|
|
430
430
|
], 2),
|
|
431
431
|
o.$slots.default || e.label ? (a(), l("span", fa, [
|
|
432
|
-
|
|
433
|
-
|
|
432
|
+
O(o.$slots, "default", {}, () => [
|
|
433
|
+
Z(f(e.label), 1)
|
|
434
434
|
], !0)
|
|
435
435
|
])) : h("", !0)
|
|
436
436
|
], 2));
|
|
437
437
|
}
|
|
438
|
-
}), Me = /* @__PURE__ */
|
|
438
|
+
}), Me = /* @__PURE__ */ M(va, [["__scopeId", "data-v-2da3772e"]]), gt = {
|
|
439
439
|
LEFT: "left",
|
|
440
440
|
CENTER: "center",
|
|
441
441
|
RIGHT: "right"
|
|
@@ -445,7 +445,7 @@ const Re = {
|
|
|
445
445
|
}, ba = ["aria-busy"], ya = { class: "ds-table__table" }, ma = { class: "ds-table__head" }, ga = {
|
|
446
446
|
key: 0,
|
|
447
447
|
class: "ds-table__select-all"
|
|
448
|
-
}, ha = { key: 0 }, pa = ["colspan"], ka = ["aria-busy"], Sa = { key: 0 }, $a = ["colspan"], _a = { key: 1 }, La = ["colspan"], Ea = ["title"],
|
|
448
|
+
}, ha = { key: 0 }, pa = ["colspan"], ka = ["aria-busy"], Sa = { key: 0 }, $a = ["colspan"], _a = { key: 1 }, La = ["colspan"], Ea = ["title"], wa = /* @__PURE__ */ x({
|
|
449
449
|
__name: "DsTable",
|
|
450
450
|
props: {
|
|
451
451
|
// --- Declarative API (default): the table builds itself from columns + rows. ---
|
|
@@ -500,9 +500,9 @@ const Re = {
|
|
|
500
500
|
// falls back to DsSpinner's own default. Overridable per row via the #loading slot.
|
|
501
501
|
loadingLabel: { type: String, default: "" }
|
|
502
502
|
},
|
|
503
|
-
emits: [
|
|
503
|
+
emits: [it],
|
|
504
504
|
setup(e, { emit: s }) {
|
|
505
|
-
const t = e, d = s,
|
|
505
|
+
const t = e, d = s, n = g(
|
|
506
506
|
() => Math.max(1, t.headers.length + (t.selectable ? 1 : 0))
|
|
507
507
|
), o = g(
|
|
508
508
|
() => t.rowHeight == null ? void 0 : {
|
|
@@ -512,27 +512,27 @@ const Re = {
|
|
|
512
512
|
() => t.height == null ? void 0 : { height: typeof t.height == "number" ? `${t.height}px` : t.height }
|
|
513
513
|
);
|
|
514
514
|
function c(E) {
|
|
515
|
-
d(
|
|
515
|
+
d(it, E);
|
|
516
516
|
}
|
|
517
517
|
function b(E) {
|
|
518
518
|
if (!E) return 0;
|
|
519
|
-
const
|
|
520
|
-
return
|
|
519
|
+
const N = /^(\d+(?:\.\d+)?)px$/.exec(E.trim());
|
|
520
|
+
return N ? parseFloat(N[1]) : 0;
|
|
521
521
|
}
|
|
522
522
|
const y = g(() => {
|
|
523
523
|
const E = {};
|
|
524
|
-
let
|
|
525
|
-
for (const
|
|
526
|
-
|
|
527
|
-
let
|
|
528
|
-
for (let
|
|
529
|
-
const
|
|
530
|
-
|
|
524
|
+
let N = 0;
|
|
525
|
+
for (const D of t.columns)
|
|
526
|
+
D.pinned === ce.LEFT && (E[D.key] = { position: "sticky", left: `${N}px` }, N += b(D.width));
|
|
527
|
+
let w = 0;
|
|
528
|
+
for (let D = t.columns.length - 1; D >= 0; D--) {
|
|
529
|
+
const F = t.columns[D];
|
|
530
|
+
F.pinned === ce.RIGHT && (E[F.key] = { position: "sticky", right: `${w}px` }, w += b(F.width));
|
|
531
531
|
}
|
|
532
532
|
return E;
|
|
533
533
|
}), u = g(() => {
|
|
534
|
-
const E = t.columns.filter((
|
|
535
|
-
return E.length &&
|
|
534
|
+
const E = t.columns.filter((D) => D.pinned === ce.LEFT), N = t.columns.filter((D) => D.pinned === ce.RIGHT), w = /* @__PURE__ */ new Set();
|
|
535
|
+
return E.length && w.add(E[E.length - 1].key), N.length && w.add(N[0].key), w;
|
|
536
536
|
});
|
|
537
537
|
function p(E) {
|
|
538
538
|
if (E.pinned)
|
|
@@ -543,105 +543,105 @@ const Re = {
|
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
545
|
function r(E) {
|
|
546
|
-
const
|
|
547
|
-
if (!(!
|
|
548
|
-
return { ...
|
|
546
|
+
const N = y.value[E.key], w = E.width ? { width: E.width } : void 0;
|
|
547
|
+
if (!(!N && !w))
|
|
548
|
+
return { ...w, ...N };
|
|
549
549
|
}
|
|
550
550
|
function v(E) {
|
|
551
|
-
const
|
|
552
|
-
if (
|
|
553
|
-
return E.width ? { ...
|
|
551
|
+
const N = y.value[E.key];
|
|
552
|
+
if (N)
|
|
553
|
+
return E.width ? { ...N, width: E.width } : N;
|
|
554
554
|
}
|
|
555
|
-
const
|
|
555
|
+
const S = g(
|
|
556
556
|
() => t.headers.map((E) => typeof E == "string" ? { label: E } : E)
|
|
557
557
|
), _ = g(() => {
|
|
558
|
-
const E = {},
|
|
559
|
-
let
|
|
560
|
-
|
|
561
|
-
|
|
558
|
+
const E = {}, N = S.value;
|
|
559
|
+
let w = 0;
|
|
560
|
+
N.forEach((F, oe) => {
|
|
561
|
+
F.pinned === ce.LEFT && (E[oe] = { position: "sticky", left: `${w}px` }, w += b(F.width));
|
|
562
562
|
});
|
|
563
|
-
let
|
|
564
|
-
for (let
|
|
565
|
-
|
|
563
|
+
let D = 0;
|
|
564
|
+
for (let F = N.length - 1; F >= 0; F--)
|
|
565
|
+
N[F].pinned === ce.RIGHT && (E[F] = { position: "sticky", right: `${D}px` }, D += b(N[F].width));
|
|
566
566
|
return E;
|
|
567
|
-
}),
|
|
568
|
-
const E =
|
|
569
|
-
return
|
|
567
|
+
}), R = g(() => {
|
|
568
|
+
const E = S.value, N = E.map((F, oe) => ({ h: F, i: oe })).filter(({ h: F }) => F.pinned === ce.LEFT), w = E.map((F, oe) => ({ h: F, i: oe })).filter(({ h: F }) => F.pinned === ce.RIGHT), D = /* @__PURE__ */ new Set();
|
|
569
|
+
return N.length && D.add(N[N.length - 1].i), w.length && D.add(w[0].i), D;
|
|
570
570
|
});
|
|
571
|
-
function k(E,
|
|
571
|
+
function k(E, N) {
|
|
572
572
|
if (E.pinned)
|
|
573
573
|
return {
|
|
574
574
|
"ds-table__pin": !0,
|
|
575
575
|
[`ds-table__pin--${E.pinned}`]: !0,
|
|
576
|
-
"ds-table__pin--edge":
|
|
576
|
+
"ds-table__pin--edge": R.value.has(N)
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
const
|
|
581
|
-
if (!(!
|
|
582
|
-
return { ...
|
|
579
|
+
function T(E, N) {
|
|
580
|
+
const w = _.value[N], D = E.width ? { width: E.width } : void 0;
|
|
581
|
+
if (!(!w && !D))
|
|
582
|
+
return { ...D, ...w };
|
|
583
583
|
}
|
|
584
|
-
const L = V(null),
|
|
585
|
-
let
|
|
586
|
-
function
|
|
584
|
+
const L = V(null), B = V(!1), j = V(!1);
|
|
585
|
+
let K = null;
|
|
586
|
+
function A() {
|
|
587
587
|
const E = L.value;
|
|
588
|
-
E && (
|
|
588
|
+
E && (B.value = E.scrollLeft > 0, j.value = E.scrollLeft + E.clientWidth < E.scrollWidth - 1);
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
E == null || E.removeEventListener("scroll",
|
|
590
|
+
function Y(E) {
|
|
591
|
+
E == null || E.removeEventListener("scroll", A), K == null || K.disconnect(), K = null;
|
|
592
592
|
}
|
|
593
593
|
return J(
|
|
594
594
|
L,
|
|
595
|
-
(E,
|
|
596
|
-
|
|
595
|
+
(E, N) => {
|
|
596
|
+
Y(N != null ? N : null), E && (E.addEventListener("scroll", A, { passive: !0 }), typeof ResizeObserver != "undefined" && (K = new ResizeObserver(A), K.observe(E)), A());
|
|
597
597
|
},
|
|
598
598
|
{ immediate: !0 }
|
|
599
|
-
), re(() =>
|
|
599
|
+
), re(() => Y(L.value)), J(
|
|
600
600
|
() => [t.columns.length, t.rows.length, t.headers.length, t.compound],
|
|
601
|
-
() => ue(
|
|
602
|
-
), (E,
|
|
601
|
+
() => ue(A)
|
|
602
|
+
), (E, N) => e.compound ? (a(), l("div", {
|
|
603
603
|
key: 0,
|
|
604
604
|
class: "ds-table ds-table--compound",
|
|
605
605
|
"aria-busy": e.loading ? "true" : void 0
|
|
606
606
|
}, [
|
|
607
|
-
|
|
607
|
+
i("div", {
|
|
608
608
|
ref_key: "wrapperRef",
|
|
609
609
|
ref: L,
|
|
610
|
-
class: C(["ds-table__wrapper", { "is-scrolled-start":
|
|
611
|
-
style:
|
|
610
|
+
class: C(["ds-table__wrapper", { "is-scrolled-start": B.value, "is-scrolled-end": j.value }]),
|
|
611
|
+
style: G(m.value)
|
|
612
612
|
}, [
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
613
|
+
i("table", ya, [
|
|
614
|
+
i("thead", ma, [
|
|
615
|
+
i("tr", null, [
|
|
616
616
|
e.selectable ? (a(), l("th", ga, [
|
|
617
|
-
|
|
617
|
+
U($(Me), {
|
|
618
618
|
"model-value": e.allSelected,
|
|
619
619
|
indeterminate: !e.allSelected && e.someSelected,
|
|
620
620
|
"aria-label": e.selectAllLabel || void 0,
|
|
621
621
|
"onUpdate:modelValue": c
|
|
622
622
|
}, null, 8, ["model-value", "indeterminate", "aria-label"])
|
|
623
623
|
])) : h("", !0),
|
|
624
|
-
(a(!0), l(
|
|
625
|
-
key:
|
|
626
|
-
class: C(k(
|
|
627
|
-
style:
|
|
628
|
-
}, f(
|
|
624
|
+
(a(!0), l(q, null, X(S.value, (w, D) => (a(), l("th", {
|
|
625
|
+
key: w.label,
|
|
626
|
+
class: C(k(w, D)),
|
|
627
|
+
style: G(T(w, D))
|
|
628
|
+
}, f(w.label), 7))), 128))
|
|
629
629
|
])
|
|
630
630
|
]),
|
|
631
|
-
|
|
631
|
+
i("tbody", null, [
|
|
632
632
|
e.loading ? (a(), l("tr", ha, [
|
|
633
|
-
|
|
633
|
+
i("td", {
|
|
634
634
|
class: "ds-table__loading",
|
|
635
|
-
colspan:
|
|
635
|
+
colspan: n.value,
|
|
636
636
|
"data-testid": "ds-table-loading"
|
|
637
637
|
}, [
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
O(E.$slots, "loading", {}, () => [
|
|
639
|
+
U($(Le), {
|
|
640
640
|
label: e.loadingLabel || void 0
|
|
641
641
|
}, null, 8, ["label"])
|
|
642
642
|
], !0)
|
|
643
643
|
], 8, pa)
|
|
644
|
-
])) :
|
|
644
|
+
])) : O(E.$slots, "default", { key: 1 }, void 0, !0)
|
|
645
645
|
])
|
|
646
646
|
])
|
|
647
647
|
], 6)
|
|
@@ -650,71 +650,71 @@ const Re = {
|
|
|
650
650
|
class: "ds-table",
|
|
651
651
|
"aria-busy": e.loading ? "true" : void 0
|
|
652
652
|
}, [
|
|
653
|
-
|
|
653
|
+
i("div", {
|
|
654
654
|
ref_key: "wrapperRef",
|
|
655
655
|
ref: L,
|
|
656
|
-
class: C(["ds-table__wrapper", { "is-scrolled-start":
|
|
656
|
+
class: C(["ds-table__wrapper", { "is-scrolled-start": B.value, "is-scrolled-end": j.value }])
|
|
657
657
|
}, [
|
|
658
|
-
|
|
658
|
+
i("table", {
|
|
659
659
|
class: C(["ds-table__table", { "has-row-height": e.rowHeight != null }]),
|
|
660
|
-
style:
|
|
660
|
+
style: G(o.value)
|
|
661
661
|
}, [
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
(a(!0), l(
|
|
665
|
-
var
|
|
662
|
+
i("thead", null, [
|
|
663
|
+
i("tr", null, [
|
|
664
|
+
(a(!0), l(q, null, X(e.columns, (w) => {
|
|
665
|
+
var D;
|
|
666
666
|
return a(), l("th", {
|
|
667
|
-
key:
|
|
667
|
+
key: w.key,
|
|
668
668
|
class: C([
|
|
669
|
-
`ds-table__th--${(
|
|
670
|
-
p(
|
|
669
|
+
`ds-table__th--${(D = w.align) != null ? D : $(gt).LEFT}`,
|
|
670
|
+
p(w)
|
|
671
671
|
]),
|
|
672
|
-
style:
|
|
673
|
-
}, f(
|
|
672
|
+
style: G(r(w))
|
|
673
|
+
}, f(w.label), 7);
|
|
674
674
|
}), 128))
|
|
675
675
|
])
|
|
676
676
|
]),
|
|
677
|
-
|
|
677
|
+
i("tbody", null, [
|
|
678
678
|
e.loading ? (a(), l("tr", Sa, [
|
|
679
|
-
|
|
679
|
+
i("td", {
|
|
680
680
|
class: "ds-table__loading",
|
|
681
681
|
colspan: Math.max(1, e.columns.length),
|
|
682
682
|
"data-testid": "ds-table-loading"
|
|
683
683
|
}, [
|
|
684
|
-
|
|
685
|
-
|
|
684
|
+
O(E.$slots, "loading", {}, () => [
|
|
685
|
+
U($(Le), {
|
|
686
686
|
label: e.loadingLabel || void 0
|
|
687
687
|
}, null, 8, ["label"])
|
|
688
688
|
], !0)
|
|
689
689
|
], 8, $a)
|
|
690
690
|
])) : e.rows.length === 0 ? (a(), l("tr", _a, [
|
|
691
|
-
|
|
691
|
+
i("td", {
|
|
692
692
|
class: "ds-table__empty",
|
|
693
693
|
colspan: Math.max(1, e.columns.length),
|
|
694
694
|
"data-testid": "ds-table-empty"
|
|
695
695
|
}, [
|
|
696
|
-
|
|
697
|
-
|
|
696
|
+
O(E.$slots, "empty", {}, () => [
|
|
697
|
+
Z(f(e.emptyMessage), 1)
|
|
698
698
|
], !0)
|
|
699
699
|
], 8, La)
|
|
700
|
-
])) : (a(!0), l(
|
|
701
|
-
key:
|
|
702
|
-
class: C({ "is-highlighted":
|
|
700
|
+
])) : (a(!0), l(q, { key: 2 }, X(e.rows, (w) => (a(), l("tr", {
|
|
701
|
+
key: w.id,
|
|
702
|
+
class: C({ "is-highlighted": w.id === e.highlightRowId }),
|
|
703
703
|
"data-testid": "ds-table-row"
|
|
704
704
|
}, [
|
|
705
|
-
(a(!0), l(
|
|
706
|
-
var
|
|
705
|
+
(a(!0), l(q, null, X(e.columns, (D) => {
|
|
706
|
+
var F;
|
|
707
707
|
return a(), l("td", {
|
|
708
|
-
key:
|
|
708
|
+
key: D.key,
|
|
709
709
|
class: C([
|
|
710
|
-
`ds-table__td--${(
|
|
711
|
-
p(
|
|
710
|
+
`ds-table__td--${(F = D.align) != null ? F : $(gt).LEFT}`,
|
|
711
|
+
p(D)
|
|
712
712
|
]),
|
|
713
|
-
style:
|
|
714
|
-
title: e.rowHeight != null && !E.$slots[`cell-${
|
|
713
|
+
style: G(v(D)),
|
|
714
|
+
title: e.rowHeight != null && !E.$slots[`cell-${D.key}`] && w[D.key] != null ? String(w[D.key]) : void 0
|
|
715
715
|
}, [
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
O(E.$slots, `cell-${D.key}`, { row: w }, () => [
|
|
717
|
+
Z(f(w[D.key]), 1)
|
|
718
718
|
], !0)
|
|
719
719
|
], 14, Ea);
|
|
720
720
|
}), 128))
|
|
@@ -724,7 +724,7 @@ const Re = {
|
|
|
724
724
|
], 2)
|
|
725
725
|
], 8, ka));
|
|
726
726
|
}
|
|
727
|
-
}), Fs = /* @__PURE__ */
|
|
727
|
+
}), Fs = /* @__PURE__ */ M(wa, [["__scopeId", "data-v-7a5bb12f"]]), _e = {
|
|
728
728
|
TEXT: "text",
|
|
729
729
|
EMAIL: "email",
|
|
730
730
|
PASSWORD: "password",
|
|
@@ -732,7 +732,7 @@ const Re = {
|
|
|
732
732
|
NUMBER: "number",
|
|
733
733
|
SEARCH: "search",
|
|
734
734
|
URL: "url"
|
|
735
|
-
},
|
|
735
|
+
}, Ta = {
|
|
736
736
|
SM: "sm",
|
|
737
737
|
// 36px
|
|
738
738
|
MD: "md"
|
|
@@ -748,14 +748,14 @@ const Re = {
|
|
|
748
748
|
key: 0,
|
|
749
749
|
class: "material-symbols-filled ds-input__error-icon",
|
|
750
750
|
"aria-hidden": "true"
|
|
751
|
-
}, Na = ["disabled", "aria-label", "aria-pressed"],
|
|
751
|
+
}, Na = ["disabled", "aria-label", "aria-pressed"], Oa = {
|
|
752
752
|
class: "material-symbols-filled",
|
|
753
753
|
"aria-hidden": "true"
|
|
754
|
-
},
|
|
754
|
+
}, Ba = ["id"], xa = /* @__PURE__ */ x({
|
|
755
755
|
__name: "DsInput",
|
|
756
756
|
props: /* @__PURE__ */ se({
|
|
757
757
|
type: { type: String, default: _e.TEXT },
|
|
758
|
-
size: { type: String, default:
|
|
758
|
+
size: { type: String, default: Ta.SM },
|
|
759
759
|
placeholder: { type: String, default: "" },
|
|
760
760
|
disabled: Boolean,
|
|
761
761
|
error: Boolean,
|
|
@@ -777,48 +777,48 @@ const Re = {
|
|
|
777
777
|
}),
|
|
778
778
|
emits: /* @__PURE__ */ se([Ae, Ne, tt, at], ["update:modelValue"]),
|
|
779
779
|
setup(e, { expose: s, emit: t }) {
|
|
780
|
-
const d = Se(e, "modelValue"),
|
|
781
|
-
function c(
|
|
782
|
-
const k =
|
|
783
|
-
k && (
|
|
780
|
+
const d = Se(e, "modelValue"), n = e, o = t, m = V();
|
|
781
|
+
function c(R) {
|
|
782
|
+
const k = R.relatedTarget, T = R.currentTarget;
|
|
783
|
+
k && (T != null && T.contains(k)) || o(at, R);
|
|
784
784
|
}
|
|
785
|
-
const b =
|
|
785
|
+
const b = Te(), y = V(!1);
|
|
786
786
|
function u() {
|
|
787
|
-
|
|
787
|
+
n.disabled || (y.value = !y.value);
|
|
788
788
|
}
|
|
789
|
-
const p = g(() =>
|
|
790
|
-
() => !!b.suffix ||
|
|
789
|
+
const p = g(() => n.type === _e.PASSWORD), r = g(() => n.type === _e.SEARCH), v = g(() => p.value ? y.value ? _e.TEXT : _e.PASSWORD : r.value ? _e.TEXT : n.type), S = g(() => p.value && !!n.toggleLabel), _ = g(
|
|
790
|
+
() => !!b.suffix || n.error && n.showErrorIcon || S.value
|
|
791
791
|
);
|
|
792
792
|
return s({
|
|
793
793
|
focus: () => {
|
|
794
|
-
var
|
|
795
|
-
return (
|
|
794
|
+
var R;
|
|
795
|
+
return (R = m.value) == null ? void 0 : R.focus();
|
|
796
796
|
},
|
|
797
797
|
focusAtEnd: async () => {
|
|
798
798
|
await ue();
|
|
799
|
-
const
|
|
800
|
-
if (!
|
|
801
|
-
|
|
802
|
-
const k =
|
|
799
|
+
const R = m.value;
|
|
800
|
+
if (!R) return;
|
|
801
|
+
R.focus();
|
|
802
|
+
const k = R.value.length;
|
|
803
803
|
try {
|
|
804
|
-
|
|
804
|
+
R.setSelectionRange(k, k);
|
|
805
805
|
} catch {
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
}), (
|
|
808
|
+
}), (R, k) => (a(), l("div", {
|
|
809
809
|
class: C(["ds-input", [
|
|
810
810
|
`ds-input--${e.size}`,
|
|
811
811
|
{ "is-error": e.error, "is-disabled": e.disabled, "is-search": r.value }
|
|
812
812
|
]]),
|
|
813
813
|
onFocusout: c
|
|
814
814
|
}, [
|
|
815
|
-
|
|
815
|
+
i("div", Ca, [
|
|
816
816
|
r.value ? (a(), l("i", Ia, "search")) : h("", !0),
|
|
817
|
-
Ye(
|
|
817
|
+
Ye(i("input", {
|
|
818
818
|
id: e.id || void 0,
|
|
819
819
|
ref_key: "inputEl",
|
|
820
820
|
ref: m,
|
|
821
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
821
|
+
"onUpdate:modelValue": k[0] || (k[0] = (T) => d.value = T),
|
|
822
822
|
class: C(["ds-input__control", { "has-suffix": _.value }]),
|
|
823
823
|
type: v.value,
|
|
824
824
|
placeholder: e.placeholder,
|
|
@@ -830,15 +830,15 @@ const Re = {
|
|
|
830
830
|
autocomplete: e.autocomplete || void 0,
|
|
831
831
|
"aria-invalid": e.error || void 0,
|
|
832
832
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
833
|
-
onFocus: k[1] || (k[1] = (
|
|
834
|
-
onBlur: k[2] || (k[2] = (
|
|
835
|
-
onChange: k[3] || (k[3] = (
|
|
833
|
+
onFocus: k[1] || (k[1] = (T) => o($(Ae), T)),
|
|
834
|
+
onBlur: k[2] || (k[2] = (T) => o($(Ne), T)),
|
|
835
|
+
onChange: k[3] || (k[3] = (T) => o($(tt), T))
|
|
836
836
|
}, null, 42, Da), [
|
|
837
837
|
[Pt, d.value]
|
|
838
838
|
]),
|
|
839
839
|
_.value ? (a(), l("div", Ra, [
|
|
840
|
-
|
|
841
|
-
e.error && e.showErrorIcon ? (a(), l("i", Aa, "warning")) :
|
|
840
|
+
O(R.$slots, "suffix", {}, void 0, !0),
|
|
841
|
+
e.error && e.showErrorIcon ? (a(), l("i", Aa, "warning")) : S.value ? (a(), l("button", {
|
|
842
842
|
key: 1,
|
|
843
843
|
type: "button",
|
|
844
844
|
class: "ds-input__toggle",
|
|
@@ -847,7 +847,7 @@ const Re = {
|
|
|
847
847
|
"aria-pressed": y.value,
|
|
848
848
|
onClick: u
|
|
849
849
|
}, [
|
|
850
|
-
|
|
850
|
+
i("i", Oa, f(y.value ? "visibility" : "visibility_off"), 1)
|
|
851
851
|
], 8, Na)) : h("", !0)
|
|
852
852
|
])) : h("", !0)
|
|
853
853
|
]),
|
|
@@ -855,12 +855,12 @@ const Re = {
|
|
|
855
855
|
key: 0,
|
|
856
856
|
id: e.id ? `${e.id}-error` : void 0,
|
|
857
857
|
class: "ds-input__error"
|
|
858
|
-
}, f(e.errorMessage), 9,
|
|
858
|
+
}, f(e.errorMessage), 9, Ba)) : h("", !0)
|
|
859
859
|
], 34));
|
|
860
860
|
}
|
|
861
|
-
}), Ze = /* @__PURE__ */
|
|
861
|
+
}), Ze = /* @__PURE__ */ M(xa, [["__scopeId", "data-v-d6eb193a"]]), Ma = {
|
|
862
862
|
VERTICAL: "vertical"
|
|
863
|
-
}, Pa = ["id", "placeholder", "rows", "disabled", "name", "aria-invalid", "aria-describedby"], za = ["id"], Ua = /* @__PURE__ */
|
|
863
|
+
}, Pa = ["id", "placeholder", "rows", "disabled", "name", "aria-invalid", "aria-describedby"], za = ["id"], Ua = /* @__PURE__ */ x({
|
|
864
864
|
inheritAttrs: !1,
|
|
865
865
|
__name: "DsTextarea",
|
|
866
866
|
props: /* @__PURE__ */ se({
|
|
@@ -882,15 +882,15 @@ const Re = {
|
|
|
882
882
|
}),
|
|
883
883
|
emits: /* @__PURE__ */ se([Ae, Ne], ["update:modelValue"]),
|
|
884
884
|
setup(e, { emit: s }) {
|
|
885
|
-
const t = Se(e, "modelValue"), d = s,
|
|
886
|
-
() => Object.fromEntries(Object.entries(
|
|
885
|
+
const t = Se(e, "modelValue"), d = s, n = zt(), o = (b) => b === "class" || b === "style" || b.startsWith("data-"), m = g(
|
|
886
|
+
() => Object.fromEntries(Object.entries(n).filter(([b]) => o(b)))
|
|
887
887
|
), c = g(
|
|
888
|
-
() => Object.fromEntries(Object.entries(
|
|
888
|
+
() => Object.fromEntries(Object.entries(n).filter(([b]) => !o(b)))
|
|
889
889
|
);
|
|
890
890
|
return (b, y) => (a(), l("div", De({
|
|
891
891
|
class: ["ds-textarea", [`ds-textarea--resize-${e.resize}`, { "is-error": e.error, "is-disabled": e.disabled }]]
|
|
892
892
|
}, m.value), [
|
|
893
|
-
Ye(
|
|
893
|
+
Ye(i("textarea", De(c.value, {
|
|
894
894
|
id: e.id || void 0,
|
|
895
895
|
"onUpdate:modelValue": y[0] || (y[0] = (u) => t.value = u),
|
|
896
896
|
class: "ds-textarea__control",
|
|
@@ -900,8 +900,8 @@ const Re = {
|
|
|
900
900
|
name: e.name || void 0,
|
|
901
901
|
"aria-invalid": e.error || void 0,
|
|
902
902
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
903
|
-
onFocus: y[1] || (y[1] = (u) => d(
|
|
904
|
-
onBlur: y[2] || (y[2] = (u) => d(
|
|
903
|
+
onFocus: y[1] || (y[1] = (u) => d($(Ae), u)),
|
|
904
|
+
onBlur: y[2] || (y[2] = (u) => d($(Ne), u))
|
|
905
905
|
}), null, 16, Pa), [
|
|
906
906
|
[Ut, t.value]
|
|
907
907
|
]),
|
|
@@ -912,7 +912,7 @@ const Re = {
|
|
|
912
912
|
}, f(e.errorMessage), 9, za)) : h("", !0)
|
|
913
913
|
], 16));
|
|
914
914
|
}
|
|
915
|
-
}), Gs = /* @__PURE__ */
|
|
915
|
+
}), Gs = /* @__PURE__ */ M(Ua, [["__scopeId", "data-v-745c01de"]]), Va = {
|
|
916
916
|
SUCCESS: "success",
|
|
917
917
|
INFO: "info",
|
|
918
918
|
WARNING: "warning",
|
|
@@ -934,7 +934,7 @@ const Re = {
|
|
|
934
934
|
}, Ha = { class: "ds-alert__content" }, Wa = {
|
|
935
935
|
key: 1,
|
|
936
936
|
class: "ds-alert__body"
|
|
937
|
-
}, Ka = ["aria-label"], Ya = /* @__PURE__ */
|
|
937
|
+
}, Ka = ["aria-label"], Ya = /* @__PURE__ */ x({
|
|
938
938
|
__name: "DsAlert",
|
|
939
939
|
props: /* @__PURE__ */ se({
|
|
940
940
|
type: { type: String, default: Va.INFO },
|
|
@@ -953,30 +953,30 @@ const Re = {
|
|
|
953
953
|
}),
|
|
954
954
|
emits: /* @__PURE__ */ se([te], ["update:visible"]),
|
|
955
955
|
setup(e, { emit: s }) {
|
|
956
|
-
const t = e, d = s,
|
|
956
|
+
const t = e, d = s, n = Se(e, "visible"), o = Te(), m = g(() => Fa[t.type]), c = g(() => !!o.default || t.description.length > 0), b = g(() => !!o.title || t.title.length > 0);
|
|
957
957
|
function y() {
|
|
958
|
-
|
|
958
|
+
n.value = !1, d(te);
|
|
959
959
|
}
|
|
960
960
|
return (u, p) => (a(), Q(ke, { name: "ds-alert-fade" }, {
|
|
961
|
-
default:
|
|
962
|
-
|
|
961
|
+
default: z(() => [
|
|
962
|
+
n.value ? (a(), l("div", {
|
|
963
963
|
key: 0,
|
|
964
964
|
class: C(["ds-alert", [`ds-alert--${e.type}`, `ds-alert--${e.effect}`, { "is-center": e.center }]]),
|
|
965
965
|
role: "alert"
|
|
966
966
|
}, [
|
|
967
967
|
e.showIcon ? (a(), l("i", Ga, f(m.value), 1)) : h("", !0),
|
|
968
|
-
|
|
968
|
+
i("div", Ha, [
|
|
969
969
|
b.value ? (a(), l("div", {
|
|
970
970
|
key: 0,
|
|
971
971
|
class: C(["ds-alert__title", { "has-body": c.value, "is-bold": c.value || e.boldTitle }])
|
|
972
972
|
}, [
|
|
973
|
-
|
|
974
|
-
|
|
973
|
+
O(u.$slots, "title", {}, () => [
|
|
974
|
+
Z(f(e.title), 1)
|
|
975
975
|
], !0)
|
|
976
976
|
], 2)) : h("", !0),
|
|
977
977
|
c.value ? (a(), l("div", Wa, [
|
|
978
|
-
|
|
979
|
-
|
|
978
|
+
O(u.$slots, "default", {}, () => [
|
|
979
|
+
Z(f(e.description), 1)
|
|
980
980
|
], !0)
|
|
981
981
|
])) : h("", !0)
|
|
982
982
|
]),
|
|
@@ -987,7 +987,7 @@ const Re = {
|
|
|
987
987
|
"aria-label": e.closeLabel || void 0,
|
|
988
988
|
onClick: y
|
|
989
989
|
}, [...p[0] || (p[0] = [
|
|
990
|
-
|
|
990
|
+
i("i", {
|
|
991
991
|
class: "material-symbols-filled",
|
|
992
992
|
"aria-hidden": "true"
|
|
993
993
|
}, "close", -1)
|
|
@@ -997,7 +997,7 @@ const Re = {
|
|
|
997
997
|
_: 3
|
|
998
998
|
}));
|
|
999
999
|
}
|
|
1000
|
-
}), Hs = /* @__PURE__ */
|
|
1000
|
+
}), Hs = /* @__PURE__ */ M(Ya, [["__scopeId", "data-v-82377cbc"]]), ja = {
|
|
1001
1001
|
SUCCESS: "success",
|
|
1002
1002
|
INFO: "info",
|
|
1003
1003
|
WARNING: "warning",
|
|
@@ -1026,7 +1026,7 @@ const Re = {
|
|
|
1026
1026
|
}, tl = {
|
|
1027
1027
|
key: 1,
|
|
1028
1028
|
class: "ds-notification__desc"
|
|
1029
|
-
}, al = ["href", "target", "rel"], ll = ["aria-label"],
|
|
1029
|
+
}, al = ["href", "target", "rel"], ll = ["aria-label"], nl = /* @__PURE__ */ x({
|
|
1030
1030
|
__name: "DsNotification",
|
|
1031
1031
|
props: {
|
|
1032
1032
|
type: { type: String, default: ja.INFO },
|
|
@@ -1057,15 +1057,15 @@ const Re = {
|
|
|
1057
1057
|
},
|
|
1058
1058
|
emits: [te, ct],
|
|
1059
1059
|
setup(e, { emit: s }) {
|
|
1060
|
-
const t = e, d = s,
|
|
1060
|
+
const t = e, d = s, n = V(!0), o = g(() => Xa[t.type]), m = g(
|
|
1061
1061
|
() => t.linkTarget === ht.BLANK ? "noopener noreferrer" : void 0
|
|
1062
1062
|
);
|
|
1063
1063
|
let c, b = 0, y = t.duration;
|
|
1064
1064
|
function u() {
|
|
1065
1065
|
c && (clearTimeout(c), c = void 0);
|
|
1066
1066
|
}
|
|
1067
|
-
function p(
|
|
1068
|
-
u(), !(t.duration <= 0 || !
|
|
1067
|
+
function p(R) {
|
|
1068
|
+
u(), !(t.duration <= 0 || !n.value) && (b = Date.now(), c = setTimeout(S, R));
|
|
1069
1069
|
}
|
|
1070
1070
|
function r() {
|
|
1071
1071
|
c && (y -= Date.now() - b, u());
|
|
@@ -1073,30 +1073,30 @@ const Re = {
|
|
|
1073
1073
|
function v() {
|
|
1074
1074
|
p(y > 0 ? y : t.duration);
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
u(),
|
|
1076
|
+
function S() {
|
|
1077
|
+
u(), n.value = !1, d(te);
|
|
1078
1078
|
}
|
|
1079
|
-
function _(
|
|
1080
|
-
d(ct,
|
|
1079
|
+
function _(R) {
|
|
1080
|
+
d(ct, R);
|
|
1081
1081
|
}
|
|
1082
|
-
return Et(() => p(t.duration)), re(u), (
|
|
1083
|
-
|
|
1082
|
+
return Et(() => p(t.duration)), re(u), (R, k) => (a(), Q(xe, { to: "body" }, [
|
|
1083
|
+
U(ke, {
|
|
1084
1084
|
name: "ds-notification",
|
|
1085
1085
|
appear: ""
|
|
1086
1086
|
}, {
|
|
1087
|
-
default:
|
|
1088
|
-
|
|
1087
|
+
default: z(() => [
|
|
1088
|
+
n.value ? (a(), l("div", {
|
|
1089
1089
|
key: 0,
|
|
1090
1090
|
class: C(["ds-notification", `ds-notification--${e.position}`])
|
|
1091
1091
|
}, [
|
|
1092
|
-
|
|
1092
|
+
i("div", {
|
|
1093
1093
|
class: C(["ds-notification__card", `ds-notification__card--${e.type}`]),
|
|
1094
1094
|
role: "alert",
|
|
1095
1095
|
onMouseenter: r,
|
|
1096
1096
|
onMouseleave: v
|
|
1097
1097
|
}, [
|
|
1098
|
-
|
|
1099
|
-
|
|
1098
|
+
i("i", Qa, f(o.value), 1),
|
|
1099
|
+
i("div", Ja, [
|
|
1100
1100
|
e.title ? (a(), l("span", el, f(e.title), 1)) : h("", !0),
|
|
1101
1101
|
e.description ? (a(), l("p", tl, f(e.description), 1)) : h("", !0),
|
|
1102
1102
|
e.linkTitle ? (a(), l("a", {
|
|
@@ -1113,9 +1113,9 @@ const Re = {
|
|
|
1113
1113
|
type: "button",
|
|
1114
1114
|
class: "ds-notification__close",
|
|
1115
1115
|
"aria-label": e.closeLabel || void 0,
|
|
1116
|
-
onClick:
|
|
1116
|
+
onClick: S
|
|
1117
1117
|
}, [...k[0] || (k[0] = [
|
|
1118
|
-
|
|
1118
|
+
i("i", {
|
|
1119
1119
|
class: "material-symbols-filled",
|
|
1120
1120
|
"aria-hidden": "true"
|
|
1121
1121
|
}, "close", -1)
|
|
@@ -1127,13 +1127,13 @@ const Re = {
|
|
|
1127
1127
|
})
|
|
1128
1128
|
]));
|
|
1129
1129
|
}
|
|
1130
|
-
}), Ws = /* @__PURE__ */
|
|
1130
|
+
}), Ws = /* @__PURE__ */ M(nl, [["__scopeId", "data-v-4ae56e64"]]), il = ["aria-modal", "aria-labelledby", "aria-label"], sl = {
|
|
1131
1131
|
key: 0,
|
|
1132
1132
|
class: "ds-modal__header"
|
|
1133
1133
|
}, ol = ["id"], dl = { class: "ds-modal__body" }, rl = {
|
|
1134
1134
|
key: 1,
|
|
1135
1135
|
class: "ds-modal__footer"
|
|
1136
|
-
}, cl = /* @__PURE__ */
|
|
1136
|
+
}, cl = /* @__PURE__ */ x({
|
|
1137
1137
|
__name: "DsModal",
|
|
1138
1138
|
props: {
|
|
1139
1139
|
open: Boolean,
|
|
@@ -1158,7 +1158,7 @@ const Re = {
|
|
|
1158
1158
|
},
|
|
1159
1159
|
emits: [te],
|
|
1160
1160
|
setup(e, { emit: s }) {
|
|
1161
|
-
const t = e, d = s,
|
|
1161
|
+
const t = e, d = s, n = V(null);
|
|
1162
1162
|
let o = null;
|
|
1163
1163
|
const m = $e(), c = g(() => ({
|
|
1164
1164
|
width: t.width,
|
|
@@ -1168,8 +1168,8 @@ const Re = {
|
|
|
1168
1168
|
t.fixed && t.closeOnBackdrop && d(te);
|
|
1169
1169
|
}
|
|
1170
1170
|
function y() {
|
|
1171
|
-
return
|
|
1172
|
-
(
|
|
1171
|
+
return n.value ? Array.from(n.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
1172
|
+
(S) => S.offsetParent !== null
|
|
1173
1173
|
) : [];
|
|
1174
1174
|
}
|
|
1175
1175
|
function u(v) {
|
|
@@ -1179,90 +1179,90 @@ const Re = {
|
|
|
1179
1179
|
return;
|
|
1180
1180
|
}
|
|
1181
1181
|
if (v.key !== "Tab") return;
|
|
1182
|
-
const
|
|
1183
|
-
if (
|
|
1184
|
-
v.preventDefault(), (k =
|
|
1182
|
+
const S = y();
|
|
1183
|
+
if (S.length === 0) {
|
|
1184
|
+
v.preventDefault(), (k = n.value) == null || k.focus();
|
|
1185
1185
|
return;
|
|
1186
1186
|
}
|
|
1187
|
-
const _ =
|
|
1188
|
-
v.shiftKey && document.activeElement === _ ? (v.preventDefault(),
|
|
1187
|
+
const _ = S[0], R = S[S.length - 1];
|
|
1188
|
+
v.shiftKey && document.activeElement === _ ? (v.preventDefault(), R.focus()) : !v.shiftKey && document.activeElement === R && (v.preventDefault(), _.focus());
|
|
1189
1189
|
}
|
|
1190
1190
|
function p() {
|
|
1191
1191
|
o = document.activeElement, document.addEventListener("keydown", u), document.body.style.overflow = "hidden", ue(() => {
|
|
1192
|
-
var v,
|
|
1193
|
-
return (
|
|
1192
|
+
var v, S;
|
|
1193
|
+
return (S = (v = y()[0]) != null ? v : n.value) == null ? void 0 : S.focus();
|
|
1194
1194
|
});
|
|
1195
1195
|
}
|
|
1196
1196
|
function r(v = !0) {
|
|
1197
|
-
var
|
|
1198
|
-
document.removeEventListener("keydown", u), document.body.style.overflow = "", v && ((
|
|
1197
|
+
var S;
|
|
1198
|
+
document.removeEventListener("keydown", u), document.body.style.overflow = "", v && ((S = o == null ? void 0 : o.focus) == null || S.call(o));
|
|
1199
1199
|
}
|
|
1200
1200
|
return J(
|
|
1201
1201
|
() => t.open && t.fixed,
|
|
1202
|
-
(v,
|
|
1203
|
-
typeof document != "undefined" && (v ? p() :
|
|
1202
|
+
(v, S) => {
|
|
1203
|
+
typeof document != "undefined" && (v ? p() : S && r());
|
|
1204
1204
|
},
|
|
1205
1205
|
{ immediate: !0 }
|
|
1206
1206
|
), re(() => {
|
|
1207
1207
|
typeof document != "undefined" && r(!1);
|
|
1208
|
-
}), (v,
|
|
1208
|
+
}), (v, S) => (a(), Q(xe, {
|
|
1209
1209
|
to: "body",
|
|
1210
1210
|
disabled: !e.fixed
|
|
1211
1211
|
}, [
|
|
1212
|
-
|
|
1213
|
-
default:
|
|
1212
|
+
U(ke, { name: "ds-modal" }, {
|
|
1213
|
+
default: z(() => [
|
|
1214
1214
|
e.open ? (a(), l("div", {
|
|
1215
1215
|
key: 0,
|
|
1216
1216
|
class: C(["ds-modal", { "is-fixed": e.fixed }]),
|
|
1217
|
-
style:
|
|
1217
|
+
style: G(e.fixed ? { paddingTop: e.top } : void 0),
|
|
1218
1218
|
onClick: b
|
|
1219
1219
|
}, [
|
|
1220
|
-
|
|
1220
|
+
i("div", {
|
|
1221
1221
|
ref_key: "dialogRef",
|
|
1222
|
-
ref:
|
|
1222
|
+
ref: n,
|
|
1223
1223
|
class: C(["ds-modal__dialog", { "is-center": e.center }]),
|
|
1224
1224
|
role: "dialog",
|
|
1225
1225
|
"aria-modal": e.fixed ? "true" : "false",
|
|
1226
|
-
"aria-labelledby": e.title ?
|
|
1226
|
+
"aria-labelledby": e.title ? $(m) : void 0,
|
|
1227
1227
|
"aria-label": e.title ? void 0 : "dialog",
|
|
1228
1228
|
tabindex: "-1",
|
|
1229
|
-
style:
|
|
1230
|
-
onClick:
|
|
1229
|
+
style: G(c.value),
|
|
1230
|
+
onClick: S[1] || (S[1] = pe(() => {
|
|
1231
1231
|
}, ["stop"]))
|
|
1232
1232
|
}, [
|
|
1233
1233
|
e.title || e.showClose ? (a(), l("div", sl, [
|
|
1234
|
-
|
|
1235
|
-
id:
|
|
1234
|
+
i("span", {
|
|
1235
|
+
id: $(m),
|
|
1236
1236
|
class: "ds-modal__title"
|
|
1237
1237
|
}, f(e.title), 9, ol),
|
|
1238
|
-
e.showClose ? (a(), Q(
|
|
1238
|
+
e.showClose ? (a(), Q($(ae), {
|
|
1239
1239
|
key: 0,
|
|
1240
1240
|
variant: "tertiary",
|
|
1241
1241
|
circle: "",
|
|
1242
1242
|
"left-icon": "close",
|
|
1243
1243
|
"aria-label": e.closeLabel || void 0,
|
|
1244
|
-
onClick:
|
|
1244
|
+
onClick: S[0] || (S[0] = (_) => d($(te)))
|
|
1245
1245
|
}, null, 8, ["aria-label"])) : h("", !0)
|
|
1246
1246
|
])) : h("", !0),
|
|
1247
|
-
|
|
1248
|
-
|
|
1247
|
+
i("div", dl, [
|
|
1248
|
+
O(v.$slots, "default", {}, void 0, !0)
|
|
1249
1249
|
]),
|
|
1250
1250
|
v.$slots.footer ? (a(), l("div", rl, [
|
|
1251
|
-
|
|
1251
|
+
O(v.$slots, "footer", {}, void 0, !0)
|
|
1252
1252
|
])) : h("", !0)
|
|
1253
|
-
], 14,
|
|
1253
|
+
], 14, il)
|
|
1254
1254
|
], 6)) : h("", !0)
|
|
1255
1255
|
]),
|
|
1256
1256
|
_: 3
|
|
1257
1257
|
})
|
|
1258
1258
|
], 8, ["disabled"]));
|
|
1259
1259
|
}
|
|
1260
|
-
}), Ks = /* @__PURE__ */
|
|
1261
|
-
function
|
|
1260
|
+
}), Ks = /* @__PURE__ */ M(cl, [["__scopeId", "data-v-a759ae72"]]), ul = "--ds-overlay-shift", Ie = 8;
|
|
1261
|
+
function wt(e, s) {
|
|
1262
1262
|
const t = V(0), d = g(
|
|
1263
1263
|
() => t.value ? { [ul]: `${Math.round(t.value)}px` } : null
|
|
1264
1264
|
);
|
|
1265
|
-
async function
|
|
1265
|
+
async function n() {
|
|
1266
1266
|
if (typeof window == "undefined") return;
|
|
1267
1267
|
t.value = 0, await ue();
|
|
1268
1268
|
const c = e.value;
|
|
@@ -1271,19 +1271,19 @@ function Tt(e, s) {
|
|
|
1271
1271
|
p < Ie ? t.value = Ie - p : r > v - Ie && (t.value = v - Ie - r);
|
|
1272
1272
|
}
|
|
1273
1273
|
function o() {
|
|
1274
|
-
typeof window != "undefined" && (window.addEventListener("resize",
|
|
1274
|
+
typeof window != "undefined" && (window.addEventListener("resize", n), window.addEventListener("scroll", n, { capture: !0, passive: !0 }), n());
|
|
1275
1275
|
}
|
|
1276
1276
|
function m() {
|
|
1277
|
-
typeof window != "undefined" && (window.removeEventListener("resize",
|
|
1277
|
+
typeof window != "undefined" && (window.removeEventListener("resize", n), window.removeEventListener("scroll", n, { capture: !0 }), t.value = 0);
|
|
1278
1278
|
}
|
|
1279
|
-
return { shift: t, shiftStyle: d, measure:
|
|
1279
|
+
return { shift: t, shiftStyle: d, measure: n, activate: o, deactivate: m };
|
|
1280
1280
|
}
|
|
1281
1281
|
const Xe = {
|
|
1282
1282
|
TOP: "top",
|
|
1283
1283
|
BOTTOM: "bottom",
|
|
1284
1284
|
LEFT: "left",
|
|
1285
1285
|
RIGHT: "right"
|
|
1286
|
-
}, fl = ["id"], vl = /* @__PURE__ */
|
|
1286
|
+
}, fl = ["id"], vl = /* @__PURE__ */ x({
|
|
1287
1287
|
__name: "DsTooltip",
|
|
1288
1288
|
props: {
|
|
1289
1289
|
// Bubble text. Rich content can be provided via the #content slot instead.
|
|
@@ -1303,76 +1303,76 @@ const Xe = {
|
|
|
1303
1303
|
disabled: { type: Boolean, default: !1 }
|
|
1304
1304
|
},
|
|
1305
1305
|
setup(e) {
|
|
1306
|
-
const s = e, t =
|
|
1306
|
+
const s = e, t = Te(), d = $e(), n = V(!1), o = V(null), {
|
|
1307
1307
|
shiftStyle: m,
|
|
1308
1308
|
activate: c,
|
|
1309
1309
|
deactivate: b
|
|
1310
|
-
} =
|
|
1311
|
-
J(
|
|
1312
|
-
|
|
1310
|
+
} = wt(o, () => s.placement);
|
|
1311
|
+
J(n, (A) => {
|
|
1312
|
+
A ? c() : b();
|
|
1313
1313
|
});
|
|
1314
1314
|
const y = g(() => !s.disabled && (s.content.length > 0 || !!t.content));
|
|
1315
1315
|
J(
|
|
1316
1316
|
() => s.disabled,
|
|
1317
|
-
(
|
|
1318
|
-
|
|
1317
|
+
(A) => {
|
|
1318
|
+
A && K();
|
|
1319
1319
|
}
|
|
1320
1320
|
);
|
|
1321
|
-
let u = !1, p = !1, r = null, v = null,
|
|
1321
|
+
let u = !1, p = !1, r = null, v = null, S = null;
|
|
1322
1322
|
function _() {
|
|
1323
1323
|
r !== null && (clearTimeout(r), r = null);
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1326
|
-
|
|
1325
|
+
function R(A) {
|
|
1326
|
+
A && (v && v !== A && k(), v !== A && (v = A, S = A.getAttribute("aria-describedby"), A.setAttribute(
|
|
1327
1327
|
"aria-describedby",
|
|
1328
|
-
|
|
1328
|
+
S ? `${S} ${d}` : d
|
|
1329
1329
|
)));
|
|
1330
1330
|
}
|
|
1331
1331
|
function k() {
|
|
1332
|
-
v && (
|
|
1332
|
+
v && (S !== null ? v.setAttribute("aria-describedby", S) : v.removeAttribute("aria-describedby"), v = null, S = null);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function T() {
|
|
1335
1335
|
y.value && (u = !0, _(), r = setTimeout(() => {
|
|
1336
|
-
|
|
1336
|
+
n.value = !0;
|
|
1337
1337
|
}, s.delay));
|
|
1338
1338
|
}
|
|
1339
1339
|
function L() {
|
|
1340
|
-
u = !1, _(), p ||
|
|
1340
|
+
u = !1, _(), p || K();
|
|
1341
1341
|
}
|
|
1342
|
-
function A
|
|
1343
|
-
y.value && (p = !0, _(),
|
|
1342
|
+
function B(A) {
|
|
1343
|
+
y.value && (p = !0, _(), n.value = !0, R(A.target));
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1346
|
-
const
|
|
1347
|
-
|
|
1345
|
+
function j(A) {
|
|
1346
|
+
const Y = A.relatedTarget, E = A.currentTarget;
|
|
1347
|
+
Y && (E != null && E.contains(Y)) || (p = !1, u || K());
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1350
|
-
_(),
|
|
1349
|
+
function K() {
|
|
1350
|
+
_(), n.value = !1, k();
|
|
1351
1351
|
}
|
|
1352
1352
|
return re(() => {
|
|
1353
1353
|
_(), k(), b();
|
|
1354
|
-
}), (
|
|
1354
|
+
}), (A, Y) => (a(), l("div", {
|
|
1355
1355
|
class: C(["ds-tooltip", { "ds-tooltip--block": e.block }]),
|
|
1356
|
-
onMouseenter:
|
|
1356
|
+
onMouseenter: T,
|
|
1357
1357
|
onMouseleave: L,
|
|
1358
|
-
onFocusin:
|
|
1359
|
-
onFocusout:
|
|
1360
|
-
onKeydown: We(
|
|
1358
|
+
onFocusin: B,
|
|
1359
|
+
onFocusout: j,
|
|
1360
|
+
onKeydown: We(K, ["esc"])
|
|
1361
1361
|
}, [
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
default:
|
|
1365
|
-
|
|
1362
|
+
O(A.$slots, "default", {}, void 0, !0),
|
|
1363
|
+
U(ke, { name: "ds-tooltip-fade" }, {
|
|
1364
|
+
default: z(() => [
|
|
1365
|
+
n.value ? (a(), l("div", {
|
|
1366
1366
|
key: 0,
|
|
1367
|
-
id:
|
|
1367
|
+
id: $(d),
|
|
1368
1368
|
ref_key: "bubbleRef",
|
|
1369
1369
|
ref: o,
|
|
1370
1370
|
class: C(["ds-tooltip__bubble", `ds-tooltip__bubble--${e.placement}`]),
|
|
1371
1371
|
role: "tooltip",
|
|
1372
|
-
style:
|
|
1372
|
+
style: G($(m))
|
|
1373
1373
|
}, [
|
|
1374
|
-
|
|
1375
|
-
|
|
1374
|
+
O(A.$slots, "content", {}, () => [
|
|
1375
|
+
Z(f(e.content), 1)
|
|
1376
1376
|
], !0)
|
|
1377
1377
|
], 14, fl)) : h("", !0)
|
|
1378
1378
|
]),
|
|
@@ -1380,11 +1380,11 @@ const Xe = {
|
|
|
1380
1380
|
})
|
|
1381
1381
|
], 34));
|
|
1382
1382
|
}
|
|
1383
|
-
}), Pe = /* @__PURE__ */
|
|
1383
|
+
}), Pe = /* @__PURE__ */ M(vl, [["__scopeId", "data-v-ca1ba028"]]), He = {
|
|
1384
1384
|
VERIFIED: "verified",
|
|
1385
1385
|
UNVERIFIED: "unverified",
|
|
1386
1386
|
NEW: "new"
|
|
1387
|
-
}, bl = ["aria-label", "title"], yl = /* @__PURE__ */
|
|
1387
|
+
}, bl = ["aria-label", "title"], yl = /* @__PURE__ */ x({
|
|
1388
1388
|
__name: "DsVerificationIcon",
|
|
1389
1389
|
props: {
|
|
1390
1390
|
// true = verified · false = not verified · null/undefined = newly found.
|
|
@@ -1422,25 +1422,25 @@ const Xe = {
|
|
|
1422
1422
|
icon: s.isContactData ? "dangerous" : "error",
|
|
1423
1423
|
label: "Not verified"
|
|
1424
1424
|
});
|
|
1425
|
-
return (d,
|
|
1425
|
+
return (d, n) => (a(), l("i", {
|
|
1426
1426
|
class: C(["material-symbols-filled ds-verification-icon", [
|
|
1427
1427
|
`ds-verification-icon--${t.value.state}`,
|
|
1428
1428
|
{ "ds-verification-icon--email": e.isContactData }
|
|
1429
1429
|
]]),
|
|
1430
|
-
style:
|
|
1430
|
+
style: G({ fontSize: `${e.size}px` }),
|
|
1431
1431
|
role: "img",
|
|
1432
1432
|
"aria-label": e.label || t.value.label,
|
|
1433
1433
|
title: e.label || t.value.label
|
|
1434
1434
|
}, [
|
|
1435
|
-
|
|
1436
|
-
|
|
1435
|
+
O(d.$slots, "default", {}, () => [
|
|
1436
|
+
Z(f(t.value.icon), 1)
|
|
1437
1437
|
], !0)
|
|
1438
1438
|
], 14, bl));
|
|
1439
1439
|
}
|
|
1440
|
-
}), ml = /* @__PURE__ */
|
|
1440
|
+
}), ml = /* @__PURE__ */ M(yl, [["__scopeId", "data-v-c84b2196"]]), gl = ["title"], hl = { class: "ds-contact-value__marquee" }, pl = { class: "ds-contact-value__actions" }, kl = ["role", "aria-label", "aria-hidden"], Sl = ["aria-label", "title"], $l = {
|
|
1441
1441
|
class: "material-symbols-filled",
|
|
1442
1442
|
"aria-hidden": "true"
|
|
1443
|
-
}, _l = ["aria-label", "aria-pressed", "title"], Ll = ["aria-label", "aria-pressed", "title"], El = /* @__PURE__ */
|
|
1443
|
+
}, _l = ["aria-label", "aria-pressed", "title"], Ll = ["aria-label", "aria-pressed", "title"], El = /* @__PURE__ */ x({
|
|
1444
1444
|
__name: "DsContactValue",
|
|
1445
1445
|
props: {
|
|
1446
1446
|
value: { type: String, required: !0 },
|
|
@@ -1462,12 +1462,12 @@ const Xe = {
|
|
|
1462
1462
|
},
|
|
1463
1463
|
emits: [be, ye, me],
|
|
1464
1464
|
setup(e, { emit: s }) {
|
|
1465
|
-
const t = e, d = s,
|
|
1465
|
+
const t = e, d = s, n = V(!1);
|
|
1466
1466
|
let o;
|
|
1467
1467
|
function m() {
|
|
1468
1468
|
typeof navigator != "undefined" && navigator.clipboard && navigator.clipboard.writeText(t.value).catch(() => {
|
|
1469
|
-
}),
|
|
1470
|
-
|
|
1469
|
+
}), n.value = !0, clearTimeout(o), o = setTimeout(() => {
|
|
1470
|
+
n.value = !1;
|
|
1471
1471
|
}, 1200), d(be, t.value);
|
|
1472
1472
|
}
|
|
1473
1473
|
function c() {
|
|
@@ -1479,45 +1479,45 @@ const Xe = {
|
|
|
1479
1479
|
return re(() => clearTimeout(o)), (y, u) => (a(), l("div", {
|
|
1480
1480
|
class: C(["ds-contact-value", { "ds-contact-value--main": e.main }])
|
|
1481
1481
|
}, [
|
|
1482
|
-
|
|
1482
|
+
U($(ml), {
|
|
1483
1483
|
verified: e.verified,
|
|
1484
1484
|
"is-contact-data": e.isContactData
|
|
1485
1485
|
}, null, 8, ["verified", "is-contact-data"]),
|
|
1486
|
-
|
|
1486
|
+
i("span", {
|
|
1487
1487
|
class: "ds-contact-value__value",
|
|
1488
1488
|
title: e.value
|
|
1489
1489
|
}, f(e.value), 9, gl),
|
|
1490
|
-
|
|
1491
|
-
e.valueType ? (a(), Q(
|
|
1490
|
+
i("span", hl, [
|
|
1491
|
+
e.valueType ? (a(), Q($(ia), {
|
|
1492
1492
|
key: 0,
|
|
1493
1493
|
class: "ds-contact-value__badge",
|
|
1494
|
-
tone: e.main ?
|
|
1494
|
+
tone: e.main ? $(Ke).ACCENT : $(Ke).GREY,
|
|
1495
1495
|
title: e.valueType
|
|
1496
1496
|
}, {
|
|
1497
|
-
default:
|
|
1498
|
-
|
|
1497
|
+
default: z(() => [
|
|
1498
|
+
Z(f(e.valueType), 1)
|
|
1499
1499
|
]),
|
|
1500
1500
|
_: 1
|
|
1501
1501
|
}, 8, ["tone", "title"])) : h("", !0),
|
|
1502
|
-
|
|
1502
|
+
i("span", pl, [
|
|
1503
1503
|
e.hideValue ? (a(), l("i", {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
class: "material-symbols-filled ds-contact-value__lock",
|
|
1506
1506
|
role: e.hideValueLabel ? "img" : void 0,
|
|
1507
1507
|
"aria-label": e.hideValueLabel || void 0,
|
|
1508
1508
|
"aria-hidden": e.hideValueLabel ? void 0 : "true"
|
|
1509
|
-
}, "lock", 8, kl)) : (a(), l(
|
|
1510
|
-
|
|
1509
|
+
}, "lock", 8, kl)) : (a(), l(q, { key: 1 }, [
|
|
1510
|
+
i("button", {
|
|
1511
1511
|
type: "button",
|
|
1512
|
-
class: C(["ds-contact-value__action", { "is-copied":
|
|
1513
|
-
"aria-label":
|
|
1514
|
-
title:
|
|
1512
|
+
class: C(["ds-contact-value__action", { "is-copied": n.value }]),
|
|
1513
|
+
"aria-label": n.value ? e.copiedLabel : e.copyLabel,
|
|
1514
|
+
title: n.value ? e.copiedLabel : e.copyLabel,
|
|
1515
1515
|
onClick: m
|
|
1516
1516
|
}, [
|
|
1517
|
-
|
|
1517
|
+
i("i", $l, f(n.value ? "check" : "content_copy"), 1)
|
|
1518
1518
|
], 10, Sl),
|
|
1519
|
-
e.showRate ? (a(), l(
|
|
1520
|
-
|
|
1519
|
+
e.showRate ? (a(), l(q, { key: 0 }, [
|
|
1520
|
+
i("button", {
|
|
1521
1521
|
type: "button",
|
|
1522
1522
|
class: "ds-contact-value__action",
|
|
1523
1523
|
"aria-label": e.correctLabel,
|
|
@@ -1525,12 +1525,12 @@ const Xe = {
|
|
|
1525
1525
|
title: e.correctLabel,
|
|
1526
1526
|
onClick: c
|
|
1527
1527
|
}, [
|
|
1528
|
-
|
|
1528
|
+
i("i", {
|
|
1529
1529
|
class: C(e.correct === !0 ? "material-symbols-filled" : "material-symbols-rounded"),
|
|
1530
1530
|
"aria-hidden": "true"
|
|
1531
1531
|
}, "thumb_up", 2)
|
|
1532
1532
|
], 8, _l),
|
|
1533
|
-
|
|
1533
|
+
i("button", {
|
|
1534
1534
|
type: "button",
|
|
1535
1535
|
class: "ds-contact-value__action",
|
|
1536
1536
|
"aria-label": e.incorrectLabel,
|
|
@@ -1538,7 +1538,7 @@ const Xe = {
|
|
|
1538
1538
|
title: e.incorrectLabel,
|
|
1539
1539
|
onClick: b
|
|
1540
1540
|
}, [
|
|
1541
|
-
|
|
1541
|
+
i("i", {
|
|
1542
1542
|
class: C(e.correct === !1 ? "material-symbols-filled" : "material-symbols-rounded"),
|
|
1543
1543
|
"aria-hidden": "true"
|
|
1544
1544
|
}, "thumb_down", 2)
|
|
@@ -1549,7 +1549,7 @@ const Xe = {
|
|
|
1549
1549
|
])
|
|
1550
1550
|
], 2));
|
|
1551
1551
|
}
|
|
1552
|
-
}), pt = /* @__PURE__ */
|
|
1552
|
+
}), pt = /* @__PURE__ */ M(El, [["__scopeId", "data-v-80b170cf"]]), wl = ["aria-label", "aria-busy"], Tl = { class: "ds-data-card__heading" }, Cl = {
|
|
1553
1553
|
class: "material-symbols-filled ds-data-card__icon",
|
|
1554
1554
|
"aria-hidden": "true"
|
|
1555
1555
|
}, Il = { class: "ds-data-card__title" }, Dl = ["aria-label"], Rl = {
|
|
@@ -1561,7 +1561,7 @@ const Xe = {
|
|
|
1561
1561
|
}, Nl = {
|
|
1562
1562
|
key: 1,
|
|
1563
1563
|
class: "ds-data-card__locked"
|
|
1564
|
-
},
|
|
1564
|
+
}, Ol = { class: "ds-data-card__state-text" }, Bl = { class: "ds-data-card__state-title" }, xl = {
|
|
1565
1565
|
key: 2,
|
|
1566
1566
|
class: "ds-data-card__empty"
|
|
1567
1567
|
}, Ml = { class: "ds-data-card__state-badge" }, Pl = {
|
|
@@ -1576,7 +1576,7 @@ const Xe = {
|
|
|
1576
1576
|
}, Gl = { key: 1 }, Hl = {
|
|
1577
1577
|
key: 0,
|
|
1578
1578
|
class: "ds-data-card__section"
|
|
1579
|
-
}, Wl = { class: "ds-data-card__more" }, Kl = /* @__PURE__ */
|
|
1579
|
+
}, Wl = { class: "ds-data-card__more" }, Kl = /* @__PURE__ */ x({
|
|
1580
1580
|
__name: "DsDataCard",
|
|
1581
1581
|
props: {
|
|
1582
1582
|
title: { type: String, required: !0 },
|
|
@@ -1616,44 +1616,44 @@ const Xe = {
|
|
|
1616
1616
|
toggleLabel: { type: String, default: "Toggle" },
|
|
1617
1617
|
closeLabel: { type: String, default: "Close" }
|
|
1618
1618
|
},
|
|
1619
|
-
emits: [be, lt,
|
|
1619
|
+
emits: [be, lt, nt, te, ye, me],
|
|
1620
1620
|
setup(e, { emit: s }) {
|
|
1621
|
-
const t = e, d = s,
|
|
1621
|
+
const t = e, d = s, n = V(!1), o = g(() => t.more.length + (t.mostLikely ? 1 : 0)), m = g(() => o.value > 3), c = g(() => o.value === 0), b = g(() => t.collapsible && n.value);
|
|
1622
1622
|
function y() {
|
|
1623
|
-
|
|
1623
|
+
n.value = !n.value;
|
|
1624
1624
|
}
|
|
1625
|
-
function u(
|
|
1626
|
-
d(be,
|
|
1625
|
+
function u(R) {
|
|
1626
|
+
d(be, R);
|
|
1627
1627
|
}
|
|
1628
1628
|
function p() {
|
|
1629
1629
|
d(lt);
|
|
1630
1630
|
}
|
|
1631
1631
|
function r() {
|
|
1632
|
-
d(
|
|
1632
|
+
d(nt);
|
|
1633
1633
|
}
|
|
1634
1634
|
function v() {
|
|
1635
1635
|
d(te);
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1638
|
-
d(ye,
|
|
1637
|
+
function S(R) {
|
|
1638
|
+
d(ye, R);
|
|
1639
1639
|
}
|
|
1640
|
-
function _(
|
|
1641
|
-
d(me,
|
|
1640
|
+
function _(R) {
|
|
1641
|
+
d(me, R);
|
|
1642
1642
|
}
|
|
1643
|
-
return (
|
|
1643
|
+
return (R, k) => (a(), l("section", {
|
|
1644
1644
|
class: "ds-data-card",
|
|
1645
1645
|
"aria-label": e.title,
|
|
1646
1646
|
"aria-busy": e.loading ? "true" : void 0
|
|
1647
1647
|
}, [
|
|
1648
|
-
|
|
1648
|
+
i("div", {
|
|
1649
1649
|
class: C(["ds-data-card__header", { "is-collapsed": b.value, "is-collapsible": e.collapsible }]),
|
|
1650
|
-
onClick: k[1] || (k[1] = (
|
|
1650
|
+
onClick: k[1] || (k[1] = (T) => e.collapsible && y())
|
|
1651
1651
|
}, [
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1652
|
+
i("div", Tl, [
|
|
1653
|
+
i("i", Cl, f(e.icon), 1),
|
|
1654
|
+
i("span", Il, f(e.title), 1)
|
|
1655
1655
|
]),
|
|
1656
|
-
|
|
1656
|
+
i("div", {
|
|
1657
1657
|
class: "ds-data-card__actions",
|
|
1658
1658
|
onClick: k[0] || (k[0] = pe(() => {
|
|
1659
1659
|
}, ["stop"]))
|
|
@@ -1664,7 +1664,7 @@ const Xe = {
|
|
|
1664
1664
|
class: "ds-data-card__edit",
|
|
1665
1665
|
onClick: r
|
|
1666
1666
|
}, f(e.editLabel), 1)) : h("", !0),
|
|
1667
|
-
!b.value && e.showSort ? (a(), Q(
|
|
1667
|
+
!b.value && e.showSort ? (a(), Q($(ae), {
|
|
1668
1668
|
key: 1,
|
|
1669
1669
|
variant: "tertiary",
|
|
1670
1670
|
size: "medium",
|
|
@@ -1673,12 +1673,12 @@ const Xe = {
|
|
|
1673
1673
|
"aria-label": e.sortLabel,
|
|
1674
1674
|
onClick: p
|
|
1675
1675
|
}, null, 8, ["aria-label"])) : h("", !0),
|
|
1676
|
-
e.collapsible ? (a(), Q(
|
|
1676
|
+
e.collapsible ? (a(), Q($(ae), {
|
|
1677
1677
|
key: 2,
|
|
1678
1678
|
variant: "tertiary",
|
|
1679
1679
|
size: "medium",
|
|
1680
1680
|
circle: "",
|
|
1681
|
-
"left-icon":
|
|
1681
|
+
"left-icon": n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
1682
1682
|
"aria-label": e.toggleLabel,
|
|
1683
1683
|
onClick: y
|
|
1684
1684
|
}, null, 8, ["left-icon", "aria-label"])) : h("", !0),
|
|
@@ -1689,7 +1689,7 @@ const Xe = {
|
|
|
1689
1689
|
"aria-label": e.closeLabel,
|
|
1690
1690
|
onClick: v
|
|
1691
1691
|
}, [...k[4] || (k[4] = [
|
|
1692
|
-
|
|
1692
|
+
i("i", {
|
|
1693
1693
|
class: "material-symbols-filled",
|
|
1694
1694
|
"aria-hidden": "true"
|
|
1695
1695
|
}, "close", -1)
|
|
@@ -1698,35 +1698,35 @@ const Xe = {
|
|
|
1698
1698
|
], 2),
|
|
1699
1699
|
b.value ? h("", !0) : (a(), l("div", Rl, [
|
|
1700
1700
|
e.loading ? (a(), l("div", Al, [
|
|
1701
|
-
|
|
1702
|
-
|
|
1701
|
+
O(R.$slots, "loading", {}, () => [
|
|
1702
|
+
U($(Le), {
|
|
1703
1703
|
label: e.loadingLabel || void 0
|
|
1704
1704
|
}, null, 8, ["label"])
|
|
1705
1705
|
], !0)
|
|
1706
1706
|
])) : e.locked ? (a(), l("div", Nl, [
|
|
1707
|
-
|
|
1708
|
-
k[5] || (k[5] =
|
|
1709
|
-
|
|
1707
|
+
O(R.$slots, "locked", {}, () => [
|
|
1708
|
+
k[5] || (k[5] = i("span", { class: "ds-data-card__state-badge ds-data-card__state-badge--accent" }, [
|
|
1709
|
+
i("i", {
|
|
1710
1710
|
class: "material-symbols-filled ds-data-card__state-icon",
|
|
1711
1711
|
"aria-hidden": "true"
|
|
1712
1712
|
}, "lock")
|
|
1713
1713
|
], -1)),
|
|
1714
|
-
|
|
1715
|
-
|
|
1714
|
+
i("div", Ol, [
|
|
1715
|
+
i("span", Bl, f(e.lockedLabel), 1)
|
|
1716
1716
|
])
|
|
1717
1717
|
], !0)
|
|
1718
1718
|
])) : c.value ? (a(), l("div", xl, [
|
|
1719
|
-
|
|
1720
|
-
|
|
1719
|
+
i("span", Ml, [
|
|
1720
|
+
i("i", Pl, f(e.icon), 1)
|
|
1721
1721
|
]),
|
|
1722
|
-
|
|
1723
|
-
|
|
1722
|
+
i("div", zl, [
|
|
1723
|
+
i("span", Ul, f(e.emptyLabel), 1),
|
|
1724
1724
|
e.emptySubtitle ? (a(), l("span", Vl, f(e.emptySubtitle), 1)) : h("", !0)
|
|
1725
1725
|
])
|
|
1726
|
-
])) : (a(), l(
|
|
1726
|
+
])) : (a(), l(q, { key: 3 }, [
|
|
1727
1727
|
e.mostLikely ? (a(), l("div", ql, [
|
|
1728
1728
|
m.value ? (a(), l("div", Fl, f(e.mostLikelyLabel), 1)) : h("", !0),
|
|
1729
|
-
|
|
1729
|
+
U($(pt), {
|
|
1730
1730
|
value: e.mostLikely.value,
|
|
1731
1731
|
"value-type": e.mostLikely.type,
|
|
1732
1732
|
verified: e.mostLikely.verified,
|
|
@@ -1736,36 +1736,36 @@ const Xe = {
|
|
|
1736
1736
|
"is-contact-data": e.isContactData,
|
|
1737
1737
|
"show-rate": e.showRate,
|
|
1738
1738
|
onCopy: u,
|
|
1739
|
-
onCorrect: k[2] || (k[2] = (
|
|
1740
|
-
onIncorrect: k[3] || (k[3] = (
|
|
1739
|
+
onCorrect: k[2] || (k[2] = (T) => S(e.mostLikely)),
|
|
1740
|
+
onIncorrect: k[3] || (k[3] = (T) => _(e.mostLikely))
|
|
1741
1741
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate"])
|
|
1742
1742
|
])) : h("", !0),
|
|
1743
1743
|
e.more.length > 0 ? (a(), l("div", Gl, [
|
|
1744
1744
|
m.value ? (a(), l("div", Hl, f(e.moreLabel), 1)) : h("", !0),
|
|
1745
|
-
|
|
1746
|
-
(a(!0), l(
|
|
1747
|
-
key:
|
|
1748
|
-
value:
|
|
1749
|
-
"value-type":
|
|
1750
|
-
verified:
|
|
1751
|
-
correct:
|
|
1752
|
-
"hide-value":
|
|
1745
|
+
i("div", Wl, [
|
|
1746
|
+
(a(!0), l(q, null, X(e.more, (T) => (a(), Q($(pt), {
|
|
1747
|
+
key: T.value,
|
|
1748
|
+
value: T.value,
|
|
1749
|
+
"value-type": T.type,
|
|
1750
|
+
verified: T.verified,
|
|
1751
|
+
correct: T.correct,
|
|
1752
|
+
"hide-value": T.hideValue,
|
|
1753
1753
|
"is-contact-data": e.isContactData,
|
|
1754
1754
|
"show-rate": e.showRate,
|
|
1755
1755
|
onCopy: u,
|
|
1756
|
-
onCorrect: (L) =>
|
|
1757
|
-
onIncorrect: (L) => _(
|
|
1756
|
+
onCorrect: (L) => S(T),
|
|
1757
|
+
onIncorrect: (L) => _(T)
|
|
1758
1758
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate", "onCorrect", "onIncorrect"]))), 128))
|
|
1759
1759
|
])
|
|
1760
1760
|
])) : h("", !0)
|
|
1761
1761
|
], 64))
|
|
1762
1762
|
]))
|
|
1763
|
-
], 8,
|
|
1763
|
+
], 8, wl));
|
|
1764
1764
|
}
|
|
1765
|
-
}), Ys = /* @__PURE__ */
|
|
1765
|
+
}), Ys = /* @__PURE__ */ M(Kl, [["__scopeId", "data-v-e4f6e090"]]), Yl = ["name", "value", "checked", "disabled"], jl = {
|
|
1766
1766
|
key: 0,
|
|
1767
1767
|
class: "ds-radio__label"
|
|
1768
|
-
}, Zl = /* @__PURE__ */
|
|
1768
|
+
}, Zl = /* @__PURE__ */ x({
|
|
1769
1769
|
__name: "DsRadio",
|
|
1770
1770
|
props: /* @__PURE__ */ se({
|
|
1771
1771
|
disabled: Boolean,
|
|
@@ -1783,10 +1783,10 @@ const Xe = {
|
|
|
1783
1783
|
function d() {
|
|
1784
1784
|
t.disabled || (s.value = !0);
|
|
1785
1785
|
}
|
|
1786
|
-
return (
|
|
1786
|
+
return (n, o) => (a(), l("label", {
|
|
1787
1787
|
class: C(["ds-radio", { "is-disabled": e.disabled }])
|
|
1788
1788
|
}, [
|
|
1789
|
-
|
|
1789
|
+
i("input", {
|
|
1790
1790
|
type: "radio",
|
|
1791
1791
|
class: "ds-radio__native",
|
|
1792
1792
|
name: e.name || void 0,
|
|
@@ -1795,21 +1795,21 @@ const Xe = {
|
|
|
1795
1795
|
disabled: e.disabled,
|
|
1796
1796
|
onChange: d
|
|
1797
1797
|
}, null, 40, Yl),
|
|
1798
|
-
|
|
1798
|
+
i("span", {
|
|
1799
1799
|
class: C(["ds-radio__dot", { "is-active": s.value }]),
|
|
1800
1800
|
"aria-hidden": "true"
|
|
1801
1801
|
}, null, 2),
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1802
|
+
n.$slots.default || e.label ? (a(), l("span", jl, [
|
|
1803
|
+
O(n.$slots, "default", {}, () => [
|
|
1804
|
+
Z(f(e.label), 1)
|
|
1805
1805
|
], !0)
|
|
1806
1806
|
])) : h("", !0)
|
|
1807
1807
|
], 2));
|
|
1808
1808
|
}
|
|
1809
|
-
}),
|
|
1809
|
+
}), Tt = /* @__PURE__ */ M(Zl, [["__scopeId", "data-v-96b70404"]]), Xl = ["aria-checked", "aria-busy", "aria-disabled", "aria-label", "disabled"], Ql = {
|
|
1810
1810
|
class: "ds-switch__thumb",
|
|
1811
1811
|
"aria-hidden": "true"
|
|
1812
|
-
}, Jl = /* @__PURE__ */
|
|
1812
|
+
}, Jl = /* @__PURE__ */ x({
|
|
1813
1813
|
__name: "DsSwitch",
|
|
1814
1814
|
props: /* @__PURE__ */ se({
|
|
1815
1815
|
disabled: Boolean,
|
|
@@ -1831,7 +1831,7 @@ const Xe = {
|
|
|
1831
1831
|
function d() {
|
|
1832
1832
|
t.disabled || t.loading || (s.value = !s.value);
|
|
1833
1833
|
}
|
|
1834
|
-
return (
|
|
1834
|
+
return (n, o) => (a(), l("button", {
|
|
1835
1835
|
type: "button",
|
|
1836
1836
|
role: "switch",
|
|
1837
1837
|
class: C(["ds-switch", { "is-disabled": e.disabled, "is-loading": e.loading }]),
|
|
@@ -1842,18 +1842,18 @@ const Xe = {
|
|
|
1842
1842
|
disabled: e.disabled || e.loading,
|
|
1843
1843
|
onClick: d
|
|
1844
1844
|
}, [
|
|
1845
|
-
|
|
1846
|
-
e.loading ? (a(), Q(
|
|
1845
|
+
i("span", Ql, [
|
|
1846
|
+
e.loading ? (a(), Q($(Le), {
|
|
1847
1847
|
key: 0,
|
|
1848
1848
|
class: "ds-switch__spinner",
|
|
1849
1849
|
size: 12,
|
|
1850
|
-
tone:
|
|
1850
|
+
tone: $(Re).DARK,
|
|
1851
1851
|
label: ""
|
|
1852
1852
|
}, null, 8, ["tone"])) : h("", !0)
|
|
1853
1853
|
])
|
|
1854
1854
|
], 10, Xl));
|
|
1855
1855
|
}
|
|
1856
|
-
}), js = /* @__PURE__ */
|
|
1856
|
+
}), js = /* @__PURE__ */ M(Jl, [["__scopeId", "data-v-f8073b3b"]]), en = ["aria-label", "disabled"], tn = { class: "ds-item-selector-button__label" }, an = /* @__PURE__ */ x({
|
|
1857
1857
|
__name: "DsItemSelectorButton",
|
|
1858
1858
|
props: {
|
|
1859
1859
|
item: { type: Object, default: null },
|
|
@@ -1868,7 +1868,7 @@ const Xe = {
|
|
|
1868
1868
|
emits: [le],
|
|
1869
1869
|
setup(e, { emit: s }) {
|
|
1870
1870
|
const t = e, d = s;
|
|
1871
|
-
function
|
|
1871
|
+
function n(o) {
|
|
1872
1872
|
t.disabled || d(le, o);
|
|
1873
1873
|
}
|
|
1874
1874
|
return (o, m) => {
|
|
@@ -1879,19 +1879,19 @@ const Xe = {
|
|
|
1879
1879
|
"aria-haspopup": "listbox",
|
|
1880
1880
|
"aria-label": e.ariaLabel || void 0,
|
|
1881
1881
|
disabled: e.disabled,
|
|
1882
|
-
onClick:
|
|
1882
|
+
onClick: n
|
|
1883
1883
|
}, [
|
|
1884
|
-
|
|
1884
|
+
i("span", tn, f(e.item ? e.item.name : e.emptyTitle), 1),
|
|
1885
1885
|
e.icon ? (a(), l("i", {
|
|
1886
1886
|
key: 0,
|
|
1887
1887
|
class: C(["ds-item-selector-button__icon", e.item ? "material-symbols-filled" : "material-symbols-rounded"]),
|
|
1888
|
-
style:
|
|
1888
|
+
style: G((c = e.item) != null && c.color ? { color: e.item.color } : void 0),
|
|
1889
1889
|
"aria-hidden": "true"
|
|
1890
1890
|
}, f(e.icon), 7)) : h("", !0)
|
|
1891
|
-
], 10,
|
|
1891
|
+
], 10, en);
|
|
1892
1892
|
};
|
|
1893
1893
|
}
|
|
1894
|
-
}), Zs = /* @__PURE__ */
|
|
1894
|
+
}), Zs = /* @__PURE__ */ M(an, [["__scopeId", "data-v-81a7f24f"]]), kt = {
|
|
1895
1895
|
DEFAULT: "default",
|
|
1896
1896
|
FILTER_SUMMARY: "filterSummary"
|
|
1897
1897
|
}, St = {
|
|
@@ -1905,28 +1905,28 @@ const Xe = {
|
|
|
1905
1905
|
// 280px
|
|
1906
1906
|
FULL: "full"
|
|
1907
1907
|
// 100% of the container
|
|
1908
|
-
},
|
|
1908
|
+
}, ln = ["disabled", "aria-expanded", "aria-controls", "aria-activedescendant"], nn = ["title"], sn = ["disabled", "aria-label"], on = {
|
|
1909
1909
|
key: 1,
|
|
1910
1910
|
class: "material-symbols-filled ds-select__chevron",
|
|
1911
1911
|
"aria-hidden": "true"
|
|
1912
|
-
},
|
|
1912
|
+
}, dn = {
|
|
1913
1913
|
key: 0,
|
|
1914
1914
|
class: "ds-select__popup"
|
|
1915
|
-
},
|
|
1915
|
+
}, rn = {
|
|
1916
1916
|
key: 0,
|
|
1917
1917
|
class: "ds-select__search"
|
|
1918
|
-
},
|
|
1918
|
+
}, cn = ["aria-activedescendant", "aria-label", "placeholder", "value"], un = ["aria-multiselectable", "aria-busy"], fn = {
|
|
1919
1919
|
key: 0,
|
|
1920
1920
|
class: "ds-select__loading",
|
|
1921
1921
|
role: "presentation"
|
|
1922
|
-
},
|
|
1922
|
+
}, vn = ["role", "aria-labelledby"], bn = ["id"], yn = ["id", "aria-selected", "onClick", "onMouseenter"], mn = { class: "ds-select__option-label" }, gn = {
|
|
1923
1923
|
key: 0,
|
|
1924
1924
|
class: "ds-select__option-sublabel"
|
|
1925
|
-
},
|
|
1925
|
+
}, hn = {
|
|
1926
1926
|
key: 0,
|
|
1927
1927
|
class: "ds-select__empty",
|
|
1928
1928
|
role: "presentation"
|
|
1929
|
-
},
|
|
1929
|
+
}, pn = /* @__PURE__ */ x({
|
|
1930
1930
|
__name: "DsSelect",
|
|
1931
1931
|
props: /* @__PURE__ */ se({
|
|
1932
1932
|
options: { type: Array, required: !0 },
|
|
@@ -1973,172 +1973,172 @@ const Xe = {
|
|
|
1973
1973
|
}),
|
|
1974
1974
|
emits: /* @__PURE__ */ se([fe], ["update:modelValue"]),
|
|
1975
1975
|
setup(e, { emit: s }) {
|
|
1976
|
-
const t = e, d = s,
|
|
1976
|
+
const t = e, d = s, n = Se(e, "modelValue"), o = `ds-select-${$e()}`, m = `${o}-listbox`, c = (I) => `${o}-option-${I}`, b = V(null), y = V(null), u = V(null), p = V(!1), r = V(-1), v = V(""), S = g(() => t.selectType === kt.FILTER_SUMMARY), _ = g(() => t.filterable && !t.remote), R = g(() => {
|
|
1977
1977
|
if (!_.value) return t.options;
|
|
1978
|
-
const
|
|
1979
|
-
return
|
|
1980
|
-
(
|
|
1978
|
+
const I = v.value.trim().toLowerCase();
|
|
1979
|
+
return I ? t.options.filter(
|
|
1980
|
+
(P) => P.label.toLowerCase().includes(I) || (P.subLabel ? P.subLabel.toLowerCase().includes(I) : !1)
|
|
1981
1981
|
) : t.options;
|
|
1982
1982
|
}), k = g(
|
|
1983
|
-
() => t.loading ? [] :
|
|
1984
|
-
),
|
|
1985
|
-
const
|
|
1986
|
-
return k.value.forEach((
|
|
1987
|
-
const
|
|
1988
|
-
|
|
1983
|
+
() => t.loading ? [] : R.value
|
|
1984
|
+
), T = g(() => {
|
|
1985
|
+
const I = [];
|
|
1986
|
+
return k.value.forEach((P, W) => {
|
|
1987
|
+
const H = P.group, ee = I[I.length - 1];
|
|
1988
|
+
H ? (ee == null ? void 0 : ee.kind) === "group" && ee.label === H ? ee.items.push({ option: P, index: W }) : I.push({
|
|
1989
1989
|
kind: "group",
|
|
1990
|
-
label:
|
|
1991
|
-
headerId: `${o}-group-${
|
|
1992
|
-
key: `g-${
|
|
1993
|
-
items: [{ option:
|
|
1994
|
-
}) : (ee == null ? void 0 : ee.kind) === "plain" ? ee.items.push({ option:
|
|
1995
|
-
}),
|
|
1996
|
-
}), L = g(() => t.multiple ? Array.isArray(
|
|
1997
|
-
function
|
|
1998
|
-
return L.value.includes(
|
|
1990
|
+
label: H,
|
|
1991
|
+
headerId: `${o}-group-${W}`,
|
|
1992
|
+
key: `g-${W}`,
|
|
1993
|
+
items: [{ option: P, index: W }]
|
|
1994
|
+
}) : (ee == null ? void 0 : ee.kind) === "plain" ? ee.items.push({ option: P, index: W }) : I.push({ kind: "plain", key: `p-${W}`, items: [{ option: P, index: W }] });
|
|
1995
|
+
}), I;
|
|
1996
|
+
}), L = g(() => t.multiple ? Array.isArray(n.value) ? n.value : [] : n.value !== null && n.value !== void 0 ? [n.value] : []), B = g(() => L.value.length > 0), j = g(() => S.value && B.value);
|
|
1997
|
+
function K(I) {
|
|
1998
|
+
return L.value.includes(I);
|
|
1999
1999
|
}
|
|
2000
|
-
const
|
|
2000
|
+
const A = Vt(/* @__PURE__ */ new Map());
|
|
2001
2001
|
J(
|
|
2002
2002
|
() => t.options,
|
|
2003
|
-
(
|
|
2003
|
+
(I) => I.forEach((P) => A.set(P.value, P.label)),
|
|
2004
2004
|
{ immediate: !0, deep: !0 }
|
|
2005
2005
|
);
|
|
2006
|
-
function
|
|
2007
|
-
var
|
|
2008
|
-
return (
|
|
2006
|
+
function Y(I) {
|
|
2007
|
+
var P, W, H;
|
|
2008
|
+
return (H = (W = (P = t.options.find((ee) => ee.value === I)) == null ? void 0 : P.label) != null ? W : A.get(I)) != null ? H : String(I);
|
|
2009
2009
|
}
|
|
2010
|
-
const E = g(() =>
|
|
2011
|
-
() => typeof t.width == "string" &&
|
|
2012
|
-
),
|
|
2013
|
-
if (!
|
|
2010
|
+
const E = g(() => S.value ? B.value ? t.multiple ? `${t.placeholder} (${L.value.length})` : Y(L.value[0]) : t.placeholder : B.value ? t.multiple ? L.value.map(Y).join(", ") : Y(L.value[0]) : t.placeholder), N = Object.values(St), w = g(
|
|
2011
|
+
() => typeof t.width == "string" && N.includes(t.width) ? `ds-select--w-${t.width}` : null
|
|
2012
|
+
), D = g(() => {
|
|
2013
|
+
if (!w.value)
|
|
2014
2014
|
return { width: typeof t.width == "number" ? `${t.width}px` : t.width };
|
|
2015
|
-
}),
|
|
2015
|
+
}), F = g(
|
|
2016
2016
|
() => p.value && r.value >= 0 ? c(r.value) : void 0
|
|
2017
2017
|
);
|
|
2018
2018
|
function oe() {
|
|
2019
2019
|
if (k.value.length === 0) return -1;
|
|
2020
|
-
const
|
|
2021
|
-
return
|
|
2020
|
+
const I = k.value.findIndex((P) => K(P.value));
|
|
2021
|
+
return I >= 0 ? I : 0;
|
|
2022
2022
|
}
|
|
2023
2023
|
function ge() {
|
|
2024
2024
|
t.disabled || (p.value = !0, r.value = oe(), t.filterable && ue(() => {
|
|
2025
|
-
var
|
|
2026
|
-
return (
|
|
2025
|
+
var I;
|
|
2026
|
+
return (I = u.value) == null ? void 0 : I.focus();
|
|
2027
2027
|
}));
|
|
2028
2028
|
}
|
|
2029
|
-
function ve(
|
|
2030
|
-
p.value = !1, r.value = -1, v.value && (v.value = "", d(fe, "")),
|
|
2031
|
-
var
|
|
2032
|
-
return (
|
|
2029
|
+
function ve(I = !0) {
|
|
2030
|
+
p.value = !1, r.value = -1, v.value && (v.value = "", d(fe, "")), I && ue(() => {
|
|
2031
|
+
var P;
|
|
2032
|
+
return (P = y.value) == null ? void 0 : P.focus();
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
2035
|
function At() {
|
|
2036
2036
|
t.disabled || (p.value ? ve() : ge());
|
|
2037
2037
|
}
|
|
2038
|
-
function Ve(
|
|
2038
|
+
function Ve(I) {
|
|
2039
2039
|
if (t.disabled) return;
|
|
2040
2040
|
if (t.multiple) {
|
|
2041
|
-
const
|
|
2042
|
-
|
|
2041
|
+
const W = L.value;
|
|
2042
|
+
n.value = W.includes(I) ? W.filter((H) => H !== I) : [...W, I];
|
|
2043
2043
|
return;
|
|
2044
2044
|
}
|
|
2045
|
-
const
|
|
2046
|
-
|
|
2045
|
+
const P = K(I);
|
|
2046
|
+
n.value = P && t.showCheckbox ? null : I, ve();
|
|
2047
2047
|
}
|
|
2048
2048
|
function Nt() {
|
|
2049
|
-
t.disabled || (
|
|
2049
|
+
t.disabled || (n.value = t.multiple ? [] : null);
|
|
2050
2050
|
}
|
|
2051
|
-
function Ce(
|
|
2052
|
-
const
|
|
2053
|
-
|
|
2054
|
-
var
|
|
2055
|
-
(
|
|
2051
|
+
function Ce(I) {
|
|
2052
|
+
const P = k.value.length;
|
|
2053
|
+
P !== 0 && (r.value < 0 ? r.value = I > 0 ? 0 : P - 1 : r.value = (r.value + I + P) % P, ue(() => {
|
|
2054
|
+
var W, H;
|
|
2055
|
+
(H = (W = document.getElementById(c(r.value))) == null ? void 0 : W.scrollIntoView) == null || H.call(W, { block: "nearest" });
|
|
2056
2056
|
}));
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Ot(I) {
|
|
2059
2059
|
if (!t.disabled)
|
|
2060
|
-
switch (
|
|
2060
|
+
switch (I.key) {
|
|
2061
2061
|
case "ArrowDown":
|
|
2062
|
-
|
|
2062
|
+
I.preventDefault(), p.value ? Ce(1) : ge();
|
|
2063
2063
|
break;
|
|
2064
2064
|
case "ArrowUp":
|
|
2065
|
-
|
|
2065
|
+
I.preventDefault(), p.value ? Ce(-1) : ge();
|
|
2066
2066
|
break;
|
|
2067
2067
|
case "Home":
|
|
2068
|
-
p.value && (
|
|
2068
|
+
p.value && (I.preventDefault(), r.value = 0);
|
|
2069
2069
|
break;
|
|
2070
2070
|
case "End":
|
|
2071
|
-
p.value && (
|
|
2071
|
+
p.value && (I.preventDefault(), r.value = k.value.length - 1);
|
|
2072
2072
|
break;
|
|
2073
2073
|
case "Enter":
|
|
2074
2074
|
case " ":
|
|
2075
2075
|
case "Spacebar":
|
|
2076
|
-
if (
|
|
2076
|
+
if (I.preventDefault(), !p.value)
|
|
2077
2077
|
ge();
|
|
2078
2078
|
else if (r.value >= 0) {
|
|
2079
|
-
const
|
|
2080
|
-
|
|
2079
|
+
const P = k.value[r.value];
|
|
2080
|
+
P && Ve(P.value);
|
|
2081
2081
|
}
|
|
2082
2082
|
break;
|
|
2083
2083
|
case "Escape":
|
|
2084
|
-
p.value && (
|
|
2084
|
+
p.value && (I.preventDefault(), I.stopPropagation(), ve());
|
|
2085
2085
|
break;
|
|
2086
2086
|
case "Tab":
|
|
2087
2087
|
p.value && ve(!1);
|
|
2088
2088
|
break;
|
|
2089
2089
|
}
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function Bt(I) {
|
|
2092
2092
|
if (!t.disabled)
|
|
2093
|
-
switch (
|
|
2093
|
+
switch (I.key) {
|
|
2094
2094
|
case "ArrowDown":
|
|
2095
|
-
|
|
2095
|
+
I.preventDefault(), Ce(1);
|
|
2096
2096
|
break;
|
|
2097
2097
|
case "ArrowUp":
|
|
2098
|
-
|
|
2098
|
+
I.preventDefault(), Ce(-1);
|
|
2099
2099
|
break;
|
|
2100
2100
|
case "Enter":
|
|
2101
|
-
if (
|
|
2102
|
-
const
|
|
2103
|
-
|
|
2101
|
+
if (I.preventDefault(), r.value >= 0) {
|
|
2102
|
+
const P = k.value[r.value];
|
|
2103
|
+
P && Ve(P.value);
|
|
2104
2104
|
}
|
|
2105
2105
|
break;
|
|
2106
2106
|
case "Escape":
|
|
2107
|
-
|
|
2107
|
+
I.preventDefault(), I.stopPropagation(), ve();
|
|
2108
2108
|
break;
|
|
2109
2109
|
case "Tab":
|
|
2110
2110
|
p.value && ve(!1);
|
|
2111
2111
|
break;
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
|
-
function xt(
|
|
2115
|
-
v.value =
|
|
2114
|
+
function xt(I) {
|
|
2115
|
+
v.value = I.target.value, d(fe, v.value);
|
|
2116
2116
|
}
|
|
2117
|
-
J(k, (
|
|
2118
|
-
p.value && (
|
|
2117
|
+
J(k, (I) => {
|
|
2118
|
+
p.value && (I.length === 0 ? r.value = -1 : (r.value < 0 || r.value >= I.length) && (r.value = 0));
|
|
2119
2119
|
});
|
|
2120
|
-
function qe(
|
|
2121
|
-
b.value && !b.value.contains(
|
|
2120
|
+
function qe(I) {
|
|
2121
|
+
b.value && !b.value.contains(I.target) && ve(!1);
|
|
2122
2122
|
}
|
|
2123
|
-
return J(p, (
|
|
2124
|
-
typeof document != "undefined" && (
|
|
2123
|
+
return J(p, (I) => {
|
|
2124
|
+
typeof document != "undefined" && (I ? document.addEventListener("mousedown", qe) : document.removeEventListener("mousedown", qe));
|
|
2125
2125
|
}), J(
|
|
2126
2126
|
() => t.disabled,
|
|
2127
|
-
(
|
|
2128
|
-
|
|
2127
|
+
(I) => {
|
|
2128
|
+
I && p.value && ve(!1);
|
|
2129
2129
|
}
|
|
2130
2130
|
), re(() => {
|
|
2131
2131
|
typeof document != "undefined" && document.removeEventListener("mousedown", qe);
|
|
2132
|
-
}), (
|
|
2132
|
+
}), (I, P) => (a(), l("div", {
|
|
2133
2133
|
ref_key: "rootRef",
|
|
2134
2134
|
ref: b,
|
|
2135
|
-
class: C(["ds-select", [`ds-select--${e.selectType}`,
|
|
2136
|
-
style:
|
|
2135
|
+
class: C(["ds-select", [`ds-select--${e.selectType}`, w.value, { "is-open": p.value }]]),
|
|
2136
|
+
style: G(D.value)
|
|
2137
2137
|
}, [
|
|
2138
|
-
|
|
2139
|
-
class: C(["ds-select__control", { "is-disabled": e.disabled, "is-filter-selected":
|
|
2138
|
+
i("div", {
|
|
2139
|
+
class: C(["ds-select__control", { "is-disabled": e.disabled, "is-filter-selected": j.value }])
|
|
2140
2140
|
}, [
|
|
2141
|
-
|
|
2141
|
+
i("button", {
|
|
2142
2142
|
ref_key: "triggerRef",
|
|
2143
2143
|
ref: y,
|
|
2144
2144
|
type: "button",
|
|
@@ -2147,36 +2147,36 @@ const Xe = {
|
|
|
2147
2147
|
"aria-haspopup": "listbox",
|
|
2148
2148
|
"aria-expanded": p.value,
|
|
2149
2149
|
"aria-controls": p.value ? m : void 0,
|
|
2150
|
-
"aria-activedescendant": e.filterable ? void 0 :
|
|
2150
|
+
"aria-activedescendant": e.filterable ? void 0 : F.value,
|
|
2151
2151
|
onClick: At,
|
|
2152
|
-
onKeydown:
|
|
2152
|
+
onKeydown: Ot
|
|
2153
2153
|
}, [
|
|
2154
|
-
|
|
2154
|
+
i("span", {
|
|
2155
2155
|
class: "ds-select__summary",
|
|
2156
2156
|
title: E.value
|
|
2157
|
-
}, f(E.value), 9,
|
|
2158
|
-
], 40,
|
|
2159
|
-
|
|
2157
|
+
}, f(E.value), 9, nn)
|
|
2158
|
+
], 40, ln),
|
|
2159
|
+
S.value && B.value ? (a(), l("button", {
|
|
2160
2160
|
key: 0,
|
|
2161
2161
|
type: "button",
|
|
2162
2162
|
class: "ds-select__clear",
|
|
2163
2163
|
disabled: e.disabled,
|
|
2164
2164
|
"aria-label": e.clearLabel || void 0,
|
|
2165
2165
|
onClick: Nt
|
|
2166
|
-
}, [...
|
|
2167
|
-
|
|
2166
|
+
}, [...P[1] || (P[1] = [
|
|
2167
|
+
i("i", {
|
|
2168
2168
|
class: "material-symbols-filled",
|
|
2169
2169
|
"aria-hidden": "true"
|
|
2170
2170
|
}, "close", -1)
|
|
2171
|
-
])], 8,
|
|
2171
|
+
])], 8, sn)) : (a(), l("i", on, "keyboard_arrow_down"))
|
|
2172
2172
|
], 2),
|
|
2173
|
-
p.value ? (a(), l("div",
|
|
2174
|
-
e.filterable ? (a(), l("div",
|
|
2175
|
-
|
|
2173
|
+
p.value ? (a(), l("div", dn, [
|
|
2174
|
+
e.filterable ? (a(), l("div", rn, [
|
|
2175
|
+
P[2] || (P[2] = i("i", {
|
|
2176
2176
|
class: "material-symbols-filled ds-select__search-icon",
|
|
2177
2177
|
"aria-hidden": "true"
|
|
2178
2178
|
}, "search", -1)),
|
|
2179
|
-
|
|
2179
|
+
i("input", {
|
|
2180
2180
|
ref_key: "searchRef",
|
|
2181
2181
|
ref: u,
|
|
2182
2182
|
type: "text",
|
|
@@ -2184,90 +2184,90 @@ const Xe = {
|
|
|
2184
2184
|
role: "combobox",
|
|
2185
2185
|
"aria-expanded": "true",
|
|
2186
2186
|
"aria-controls": m,
|
|
2187
|
-
"aria-activedescendant":
|
|
2187
|
+
"aria-activedescendant": F.value,
|
|
2188
2188
|
"aria-autocomplete": "list",
|
|
2189
2189
|
autocomplete: "off",
|
|
2190
2190
|
"aria-label": e.searchLabel,
|
|
2191
2191
|
placeholder: e.searchPlaceholder,
|
|
2192
2192
|
value: v.value,
|
|
2193
2193
|
onInput: xt,
|
|
2194
|
-
onKeydown:
|
|
2195
|
-
}, null, 40,
|
|
2194
|
+
onKeydown: Bt
|
|
2195
|
+
}, null, 40, cn)
|
|
2196
2196
|
])) : h("", !0),
|
|
2197
|
-
|
|
2197
|
+
i("ul", {
|
|
2198
2198
|
id: m,
|
|
2199
2199
|
class: "ds-select__listbox",
|
|
2200
2200
|
role: "listbox",
|
|
2201
2201
|
"aria-multiselectable": e.multiple || void 0,
|
|
2202
2202
|
"aria-busy": e.loading || void 0,
|
|
2203
|
-
onMousedown:
|
|
2203
|
+
onMousedown: P[0] || (P[0] = pe(() => {
|
|
2204
2204
|
}, ["prevent"]))
|
|
2205
2205
|
}, [
|
|
2206
|
-
e.loading ? (a(), l("li",
|
|
2207
|
-
|
|
2208
|
-
|
|
2206
|
+
e.loading ? (a(), l("li", fn, [
|
|
2207
|
+
O(I.$slots, "loading", {}, () => [
|
|
2208
|
+
U($(Le), { size: "small" })
|
|
2209
2209
|
], !0)
|
|
2210
|
-
])) : (a(), l(
|
|
2211
|
-
(a(!0), l(
|
|
2212
|
-
key:
|
|
2213
|
-
role:
|
|
2214
|
-
"aria-labelledby":
|
|
2215
|
-
class: C(
|
|
2210
|
+
])) : (a(), l(q, { key: 1 }, [
|
|
2211
|
+
(a(!0), l(q, null, X(T.value, (W) => (a(), l("li", {
|
|
2212
|
+
key: W.key,
|
|
2213
|
+
role: W.kind === "group" ? "group" : "presentation",
|
|
2214
|
+
"aria-labelledby": W.kind === "group" ? W.headerId : void 0,
|
|
2215
|
+
class: C(W.kind === "group" ? "ds-select__group" : "ds-select__run")
|
|
2216
2216
|
}, [
|
|
2217
|
-
|
|
2217
|
+
W.kind === "group" ? (a(), l("span", {
|
|
2218
2218
|
key: 0,
|
|
2219
|
-
id:
|
|
2219
|
+
id: W.headerId,
|
|
2220
2220
|
class: "ds-select__group-header"
|
|
2221
|
-
}, f(
|
|
2222
|
-
(a(!0), l(
|
|
2223
|
-
id: c(
|
|
2224
|
-
key:
|
|
2221
|
+
}, f(W.label), 9, bn)) : h("", !0),
|
|
2222
|
+
(a(!0), l(q, null, X(W.items, (H) => (a(), l("div", {
|
|
2223
|
+
id: c(H.index),
|
|
2224
|
+
key: H.option.value,
|
|
2225
2225
|
class: C(["ds-select__option", {
|
|
2226
|
-
"is-selected":
|
|
2227
|
-
"is-active":
|
|
2226
|
+
"is-selected": K(H.option.value),
|
|
2227
|
+
"is-active": H.index === r.value,
|
|
2228
2228
|
"ds-select__option--checkbox": e.showCheckbox
|
|
2229
2229
|
}]),
|
|
2230
2230
|
role: "option",
|
|
2231
|
-
"aria-selected":
|
|
2232
|
-
onClick: pe((ee) => Ve(
|
|
2233
|
-
onMouseenter: (ee) => r.value =
|
|
2231
|
+
"aria-selected": K(H.option.value),
|
|
2232
|
+
onClick: pe((ee) => Ve(H.option.value), ["prevent"]),
|
|
2233
|
+
onMouseenter: (ee) => r.value = H.index
|
|
2234
2234
|
}, [
|
|
2235
|
-
e.showCheckbox ? (a(), Q(
|
|
2235
|
+
e.showCheckbox ? (a(), Q($(Me), {
|
|
2236
2236
|
key: 0,
|
|
2237
2237
|
class: "ds-select__option-check",
|
|
2238
|
-
"model-value":
|
|
2238
|
+
"model-value": K(H.option.value),
|
|
2239
2239
|
disabled: "",
|
|
2240
2240
|
"aria-hidden": "true"
|
|
2241
2241
|
}, null, 8, ["model-value"])) : h("", !0),
|
|
2242
|
-
|
|
2243
|
-
option:
|
|
2244
|
-
selected:
|
|
2245
|
-
active:
|
|
2242
|
+
O(I.$slots, "option", {
|
|
2243
|
+
option: H.option,
|
|
2244
|
+
selected: K(H.option.value),
|
|
2245
|
+
active: H.index === r.value
|
|
2246
2246
|
}, () => [
|
|
2247
|
-
|
|
2247
|
+
H.option.icon ? (a(), l("i", {
|
|
2248
2248
|
key: 0,
|
|
2249
2249
|
class: "material-symbols-filled ds-select__option-icon",
|
|
2250
|
-
style:
|
|
2250
|
+
style: G(H.option.color ? { color: H.option.color } : void 0),
|
|
2251
2251
|
"aria-hidden": "true"
|
|
2252
|
-
}, f(
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2252
|
+
}, f(H.option.icon), 5)) : h("", !0),
|
|
2253
|
+
i("span", mn, [
|
|
2254
|
+
Z(f(H.option.label), 1),
|
|
2255
|
+
H.option.subLabel ? (a(), l("span", gn, ", " + f(H.option.subLabel), 1)) : h("", !0)
|
|
2256
2256
|
])
|
|
2257
2257
|
], !0)
|
|
2258
|
-
], 42,
|
|
2259
|
-
], 10,
|
|
2260
|
-
k.value.length === 0 ? (a(), l("li",
|
|
2261
|
-
|
|
2262
|
-
|
|
2258
|
+
], 42, yn))), 128))
|
|
2259
|
+
], 10, vn))), 128)),
|
|
2260
|
+
k.value.length === 0 ? (a(), l("li", hn, [
|
|
2261
|
+
O(I.$slots, "empty", {}, () => [
|
|
2262
|
+
Z(f(e.emptyText), 1)
|
|
2263
2263
|
], !0)
|
|
2264
2264
|
])) : h("", !0)
|
|
2265
2265
|
], 64))
|
|
2266
|
-
], 40,
|
|
2266
|
+
], 40, un)
|
|
2267
2267
|
])) : h("", !0)
|
|
2268
2268
|
], 6));
|
|
2269
2269
|
}
|
|
2270
|
-
}), Xs = /* @__PURE__ */
|
|
2270
|
+
}), Xs = /* @__PURE__ */ M(pn, [["__scopeId", "data-v-936974a2"]]), kn = ["tabindex"], Sn = /* @__PURE__ */ x({
|
|
2271
2271
|
__name: "DsRow",
|
|
2272
2272
|
props: {
|
|
2273
2273
|
selected: { type: Boolean, default: !1 },
|
|
@@ -2276,7 +2276,7 @@ const Xe = {
|
|
|
2276
2276
|
emits: [le],
|
|
2277
2277
|
setup(e, { emit: s }) {
|
|
2278
2278
|
const t = e, d = s;
|
|
2279
|
-
function
|
|
2279
|
+
function n() {
|
|
2280
2280
|
t.clickable && d(le);
|
|
2281
2281
|
}
|
|
2282
2282
|
function o(m) {
|
|
@@ -2285,13 +2285,13 @@ const Xe = {
|
|
|
2285
2285
|
return (m, c) => (a(), l("tr", {
|
|
2286
2286
|
class: C(["ds-row", { "is-selected": e.selected, "is-clickable": e.clickable }]),
|
|
2287
2287
|
tabindex: e.clickable ? 0 : void 0,
|
|
2288
|
-
onClick:
|
|
2288
|
+
onClick: n,
|
|
2289
2289
|
onKeydown: o
|
|
2290
2290
|
}, [
|
|
2291
|
-
|
|
2292
|
-
], 42,
|
|
2291
|
+
O(m.$slots, "default", {}, void 0, !0)
|
|
2292
|
+
], 42, kn));
|
|
2293
2293
|
}
|
|
2294
|
-
}), Qs = /* @__PURE__ */
|
|
2294
|
+
}), Qs = /* @__PURE__ */ M(Sn, [["__scopeId", "data-v-c2d6c50b"]]), $n = /* @__PURE__ */ x({
|
|
2295
2295
|
__name: "DsCell",
|
|
2296
2296
|
props: {
|
|
2297
2297
|
first: { type: Boolean, default: !1 },
|
|
@@ -2309,16 +2309,16 @@ const Xe = {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
},
|
|
2311
2311
|
setup(e) {
|
|
2312
|
-
const s = e, t = (
|
|
2313
|
-
const
|
|
2314
|
-
if (s.width != null && (
|
|
2315
|
-
|
|
2312
|
+
const s = e, t = (n) => typeof n == "number" ? `${n}px` : n, d = g(() => {
|
|
2313
|
+
const n = {};
|
|
2314
|
+
if (s.width != null && (n.width = t(s.width)), s.pinned) {
|
|
2315
|
+
n.position = "sticky";
|
|
2316
2316
|
const o = s.pinnedOffset == null ? "0px" : t(s.pinnedOffset);
|
|
2317
|
-
|
|
2317
|
+
n[s.pinned === ce.LEFT ? "left" : "right"] = o;
|
|
2318
2318
|
}
|
|
2319
|
-
return Object.keys(
|
|
2319
|
+
return Object.keys(n).length ? n : void 0;
|
|
2320
2320
|
});
|
|
2321
|
-
return (
|
|
2321
|
+
return (n, o) => (a(), l("td", {
|
|
2322
2322
|
class: C(["ds-cell", {
|
|
2323
2323
|
"is-accent": e.first && e.selected,
|
|
2324
2324
|
"is-truncated": e.truncate,
|
|
@@ -2326,12 +2326,12 @@ const Xe = {
|
|
|
2326
2326
|
"is-pinned": !!e.pinned,
|
|
2327
2327
|
[`is-pinned--${e.pinned}`]: !!e.pinned
|
|
2328
2328
|
}]),
|
|
2329
|
-
style:
|
|
2329
|
+
style: G(d.value)
|
|
2330
2330
|
}, [
|
|
2331
|
-
|
|
2331
|
+
O(n.$slots, "default", {}, void 0, !0)
|
|
2332
2332
|
], 6));
|
|
2333
2333
|
}
|
|
2334
|
-
}), Js = /* @__PURE__ */
|
|
2334
|
+
}), Js = /* @__PURE__ */ M($n, [["__scopeId", "data-v-727b775d"]]), _n = {
|
|
2335
2335
|
SUCCESS: "success",
|
|
2336
2336
|
WARNING: "warning",
|
|
2337
2337
|
DANGER: "danger",
|
|
@@ -2341,12 +2341,12 @@ const Xe = {
|
|
|
2341
2341
|
// the only solid-fill variant
|
|
2342
2342
|
ACCENT: "accent"
|
|
2343
2343
|
// maps to $info-* tokens, not $accent-*
|
|
2344
|
-
},
|
|
2344
|
+
}, Ln = /* @__PURE__ */ x({
|
|
2345
2345
|
__name: "DsCustomTag",
|
|
2346
2346
|
props: {
|
|
2347
2347
|
type: {
|
|
2348
2348
|
type: String,
|
|
2349
|
-
default:
|
|
2349
|
+
default: _n.INFO
|
|
2350
2350
|
},
|
|
2351
2351
|
// Fully rounded (radius-full) sides vs the default radius-control.
|
|
2352
2352
|
round: Boolean
|
|
@@ -2355,13 +2355,13 @@ const Xe = {
|
|
|
2355
2355
|
return (s, t) => (a(), l("span", {
|
|
2356
2356
|
class: C(["ds-custom-tag", [`ds-custom-tag--${e.type}`, { "is-round": e.round }]])
|
|
2357
2357
|
}, [
|
|
2358
|
-
|
|
2358
|
+
O(s.$slots, "default", {}, void 0, !0)
|
|
2359
2359
|
], 2));
|
|
2360
2360
|
}
|
|
2361
|
-
}), eo = /* @__PURE__ */
|
|
2361
|
+
}), eo = /* @__PURE__ */ M(Ln, [["__scopeId", "data-v-c0220631"]]), En = { class: "ds-pill__text" }, wn = ["aria-label"], Tn = {
|
|
2362
2362
|
class: "material-symbols-filled",
|
|
2363
2363
|
"aria-hidden": "true"
|
|
2364
|
-
},
|
|
2364
|
+
}, Cn = /* @__PURE__ */ x({
|
|
2365
2365
|
__name: "DsPill",
|
|
2366
2366
|
props: {
|
|
2367
2367
|
// Material Symbols ligature name; when set, renders a trailing icon button.
|
|
@@ -2384,52 +2384,52 @@ const Xe = {
|
|
|
2384
2384
|
emits: [le],
|
|
2385
2385
|
setup(e, { emit: s }) {
|
|
2386
2386
|
const t = s;
|
|
2387
|
-
return (d,
|
|
2387
|
+
return (d, n) => (a(), l("span", {
|
|
2388
2388
|
class: C(["ds-pill", { "ds-pill--has-icon": e.icon }]),
|
|
2389
|
-
style:
|
|
2389
|
+
style: G(e.background ? { background: e.background } : void 0)
|
|
2390
2390
|
}, [
|
|
2391
|
-
|
|
2392
|
-
|
|
2391
|
+
i("span", En, [
|
|
2392
|
+
O(d.$slots, "default", {}, void 0, !0)
|
|
2393
2393
|
]),
|
|
2394
2394
|
e.icon ? (a(), l("button", {
|
|
2395
2395
|
key: 0,
|
|
2396
2396
|
type: "button",
|
|
2397
2397
|
class: "ds-pill__icon",
|
|
2398
2398
|
"aria-label": e.iconLabel || void 0,
|
|
2399
|
-
onClick:
|
|
2399
|
+
onClick: n[0] || (n[0] = (o) => t($(le)))
|
|
2400
2400
|
}, [
|
|
2401
|
-
|
|
2402
|
-
], 8,
|
|
2401
|
+
i("i", Tn, f(e.icon), 1)
|
|
2402
|
+
], 8, wn)) : h("", !0)
|
|
2403
2403
|
], 6));
|
|
2404
2404
|
}
|
|
2405
|
-
}), to = /* @__PURE__ */
|
|
2405
|
+
}), to = /* @__PURE__ */ M(Cn, [["__scopeId", "data-v-59af98d0"]]), In = {
|
|
2406
2406
|
key: 0,
|
|
2407
2407
|
class: "ds-pill-with-border__icon"
|
|
2408
|
-
},
|
|
2408
|
+
}, Dn = { class: "ds-pill-with-border__label" }, Rn = /* @__PURE__ */ x({
|
|
2409
2409
|
__name: "DsPillWithBorder",
|
|
2410
2410
|
emits: [le],
|
|
2411
2411
|
setup(e, { emit: s }) {
|
|
2412
2412
|
const t = s;
|
|
2413
|
-
return (d,
|
|
2413
|
+
return (d, n) => (a(), l("button", {
|
|
2414
2414
|
type: "button",
|
|
2415
2415
|
class: "ds-pill-with-border",
|
|
2416
|
-
onClick:
|
|
2416
|
+
onClick: n[0] || (n[0] = (o) => t($(le)))
|
|
2417
2417
|
}, [
|
|
2418
|
-
d.$slots.icon ? (a(), l("span",
|
|
2419
|
-
|
|
2418
|
+
d.$slots.icon ? (a(), l("span", In, [
|
|
2419
|
+
O(d.$slots, "icon", {}, void 0, !0)
|
|
2420
2420
|
])) : h("", !0),
|
|
2421
|
-
|
|
2422
|
-
|
|
2421
|
+
i("span", Dn, [
|
|
2422
|
+
O(d.$slots, "default", {}, void 0, !0)
|
|
2423
2423
|
])
|
|
2424
2424
|
]));
|
|
2425
2425
|
}
|
|
2426
|
-
}), ao = /* @__PURE__ */
|
|
2426
|
+
}), ao = /* @__PURE__ */ M(Rn, [["__scopeId", "data-v-8db4dcaf"]]), An = ["aria-label"], Nn = ["title"], On = {
|
|
2427
2427
|
key: 1,
|
|
2428
2428
|
class: "ds-segmented-progress-bar-wrapper"
|
|
2429
|
-
},
|
|
2429
|
+
}, Bn = ["aria-label"], xn = ["title"], Mn = {
|
|
2430
2430
|
class: "ds-segmented-progress-bar__legend",
|
|
2431
2431
|
"aria-hidden": "true"
|
|
2432
|
-
},
|
|
2432
|
+
}, Pn = { class: "ds-segmented-progress-bar__legend-label" }, zn = /* @__PURE__ */ x({
|
|
2433
2433
|
inheritAttrs: !1,
|
|
2434
2434
|
__name: "DsSegmentedProgressBar",
|
|
2435
2435
|
props: {
|
|
@@ -2450,40 +2450,40 @@ const Xe = {
|
|
|
2450
2450
|
showLegend: { type: Boolean, default: !1 }
|
|
2451
2451
|
},
|
|
2452
2452
|
setup(e) {
|
|
2453
|
-
const s = e, t =
|
|
2453
|
+
const s = e, t = Te(), d = g(() => s.segments.filter((o) => !!o.name)), n = g(
|
|
2454
2454
|
() => !!t.legend || s.showLegend && d.value.length > 0
|
|
2455
2455
|
);
|
|
2456
|
-
return (o, m) =>
|
|
2457
|
-
|
|
2456
|
+
return (o, m) => n.value ? (a(), l("div", On, [
|
|
2457
|
+
i("div", De(o.$attrs, {
|
|
2458
2458
|
class: "ds-segmented-progress-bar",
|
|
2459
2459
|
role: "img",
|
|
2460
2460
|
"aria-label": e.label || void 0,
|
|
2461
2461
|
style: { height: `${e.height}px` }
|
|
2462
2462
|
}), [
|
|
2463
|
-
(a(!0), l(
|
|
2463
|
+
(a(!0), l(q, null, X(e.segments, (c, b) => {
|
|
2464
2464
|
var y;
|
|
2465
2465
|
return a(), l("div", {
|
|
2466
2466
|
key: `${(y = c.name) != null ? y : ""}-${b}`,
|
|
2467
2467
|
class: "ds-segmented-progress-bar__segment",
|
|
2468
|
-
style:
|
|
2468
|
+
style: G({
|
|
2469
2469
|
width: `${e.total > 0 ? c.amount * 100 / e.total : 0}%`,
|
|
2470
2470
|
backgroundColor: c.color
|
|
2471
2471
|
}),
|
|
2472
2472
|
title: c.name || void 0
|
|
2473
|
-
}, null, 12,
|
|
2473
|
+
}, null, 12, xn);
|
|
2474
2474
|
}), 128))
|
|
2475
|
-
], 16,
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
(a(!0), l(
|
|
2475
|
+
], 16, Bn),
|
|
2476
|
+
O(o.$slots, "legend", {}, () => [
|
|
2477
|
+
i("ul", Mn, [
|
|
2478
|
+
(a(!0), l(q, null, X(d.value, (c, b) => (a(), l("li", {
|
|
2479
2479
|
key: `${c.name}-${b}`,
|
|
2480
2480
|
class: "ds-segmented-progress-bar__legend-item"
|
|
2481
2481
|
}, [
|
|
2482
|
-
|
|
2482
|
+
i("span", {
|
|
2483
2483
|
class: "ds-segmented-progress-bar__legend-swatch",
|
|
2484
|
-
style:
|
|
2484
|
+
style: G({ backgroundColor: c.color })
|
|
2485
2485
|
}, null, 4),
|
|
2486
|
-
|
|
2486
|
+
i("span", Pn, f(c.name), 1)
|
|
2487
2487
|
]))), 128))
|
|
2488
2488
|
])
|
|
2489
2489
|
], !0)
|
|
@@ -2493,27 +2493,27 @@ const Xe = {
|
|
|
2493
2493
|
"aria-label": e.label || void 0,
|
|
2494
2494
|
style: { height: `${e.height}px` }
|
|
2495
2495
|
}), [
|
|
2496
|
-
(a(!0), l(
|
|
2496
|
+
(a(!0), l(q, null, X(e.segments, (c, b) => {
|
|
2497
2497
|
var y;
|
|
2498
2498
|
return a(), l("div", {
|
|
2499
2499
|
key: `${(y = c.name) != null ? y : ""}-${b}`,
|
|
2500
2500
|
class: "ds-segmented-progress-bar__segment",
|
|
2501
|
-
style:
|
|
2501
|
+
style: G({
|
|
2502
2502
|
width: `${e.total > 0 ? c.amount * 100 / e.total : 0}%`,
|
|
2503
2503
|
backgroundColor: c.color
|
|
2504
2504
|
}),
|
|
2505
2505
|
title: c.name || void 0
|
|
2506
|
-
}, null, 12,
|
|
2506
|
+
}, null, 12, Nn);
|
|
2507
2507
|
}), 128))
|
|
2508
|
-
], 16,
|
|
2508
|
+
], 16, An));
|
|
2509
2509
|
}
|
|
2510
|
-
}), lo = /* @__PURE__ */
|
|
2510
|
+
}), lo = /* @__PURE__ */ M(zn, [["__scopeId", "data-v-89dc768c"]]), Un = {
|
|
2511
2511
|
key: 0,
|
|
2512
2512
|
class: "ds-empty-state__header"
|
|
2513
|
-
},
|
|
2513
|
+
}, Vn = { class: "ds-empty-state__body" }, qn = ["src"], Fn = { class: "ds-empty-state__title" }, Gn = {
|
|
2514
2514
|
key: 1,
|
|
2515
2515
|
class: "ds-empty-state__subtitle"
|
|
2516
|
-
},
|
|
2516
|
+
}, Hn = /* @__PURE__ */ x({
|
|
2517
2517
|
__name: "DsEmptyState",
|
|
2518
2518
|
props: {
|
|
2519
2519
|
// Illustration URL; decorative (rendered with alt="").
|
|
@@ -2527,30 +2527,30 @@ const Xe = {
|
|
|
2527
2527
|
return (s, t) => (a(), l("div", {
|
|
2528
2528
|
class: C(["ds-empty-state", { "is-rounded": e.roundedBorder }])
|
|
2529
2529
|
}, [
|
|
2530
|
-
s.$slots["table-header"] ? (a(), l("div",
|
|
2531
|
-
|
|
2530
|
+
s.$slots["table-header"] ? (a(), l("div", Un, [
|
|
2531
|
+
O(s.$slots, "table-header", {}, void 0, !0)
|
|
2532
2532
|
])) : h("", !0),
|
|
2533
|
-
|
|
2533
|
+
i("div", Vn, [
|
|
2534
2534
|
e.image ? (a(), l("img", {
|
|
2535
2535
|
key: 0,
|
|
2536
2536
|
src: e.image,
|
|
2537
2537
|
alt: "",
|
|
2538
2538
|
class: "ds-empty-state__image"
|
|
2539
|
-
}, null, 8,
|
|
2540
|
-
|
|
2541
|
-
e.subtitle ? (a(), l("p",
|
|
2542
|
-
|
|
2539
|
+
}, null, 8, qn)) : h("", !0),
|
|
2540
|
+
i("p", Fn, f(e.title), 1),
|
|
2541
|
+
e.subtitle ? (a(), l("p", Gn, f(e.subtitle), 1)) : h("", !0),
|
|
2542
|
+
O(s.$slots, "button", {}, void 0, !0)
|
|
2543
2543
|
])
|
|
2544
2544
|
], 2));
|
|
2545
2545
|
}
|
|
2546
|
-
}),
|
|
2546
|
+
}), no = /* @__PURE__ */ M(Hn, [["__scopeId", "data-v-159c48f9"]]), Wn = ["aria-label"], Kn = {
|
|
2547
2547
|
key: 0,
|
|
2548
2548
|
class: "ds-paginator__limit-message"
|
|
2549
|
-
},
|
|
2549
|
+
}, Yn = { class: "ds-paginator__pager" }, jn = {
|
|
2550
2550
|
key: 0,
|
|
2551
2551
|
class: "ds-paginator__ellipsis",
|
|
2552
2552
|
"aria-hidden": "true"
|
|
2553
|
-
},
|
|
2553
|
+
}, Zn = ["aria-current", "onClick"], Xn = ["aria-label", "value"], Qn = ["value"], Jn = "…l", ei = "…r", ti = /* @__PURE__ */ x({
|
|
2554
2554
|
__name: "DsPaginator",
|
|
2555
2555
|
props: {
|
|
2556
2556
|
total: { type: Number, required: !0 },
|
|
@@ -2569,19 +2569,19 @@ const Xe = {
|
|
|
2569
2569
|
},
|
|
2570
2570
|
emits: [st, ot],
|
|
2571
2571
|
setup(e, { emit: s }) {
|
|
2572
|
-
const t = e, d = s,
|
|
2573
|
-
const b =
|
|
2572
|
+
const t = e, d = s, n = g(() => Math.max(1, Math.ceil(t.total / t.pageSize))), o = g(() => {
|
|
2573
|
+
const b = n.value;
|
|
2574
2574
|
if (b <= 7)
|
|
2575
|
-
return Array.from({ length: b }, (v,
|
|
2575
|
+
return Array.from({ length: b }, (v, S) => S + 1);
|
|
2576
2576
|
const y = t.currentPage, u = [1];
|
|
2577
|
-
y > 4 && u.push(
|
|
2577
|
+
y > 4 && u.push(Jn);
|
|
2578
2578
|
const p = Math.max(2, y - 2), r = Math.min(b - 1, y + 2);
|
|
2579
2579
|
for (let v = p; v <= r; v++)
|
|
2580
2580
|
u.push(v);
|
|
2581
|
-
return y < b - 3 && u.push(
|
|
2581
|
+
return y < b - 3 && u.push(ei), u.push(b), u;
|
|
2582
2582
|
});
|
|
2583
2583
|
function m(b) {
|
|
2584
|
-
b < 1 || b >
|
|
2584
|
+
b < 1 || b > n.value || d(st, b);
|
|
2585
2585
|
}
|
|
2586
2586
|
function c(b) {
|
|
2587
2587
|
const y = b.target;
|
|
@@ -2591,9 +2591,9 @@ const Xe = {
|
|
|
2591
2591
|
class: "ds-paginator",
|
|
2592
2592
|
"aria-label": e.paginationLabel || void 0
|
|
2593
2593
|
}, [
|
|
2594
|
-
e.limitMessage ? (a(), l("span",
|
|
2595
|
-
|
|
2596
|
-
|
|
2594
|
+
e.limitMessage ? (a(), l("span", Kn, f(e.limitMessage), 1)) : h("", !0),
|
|
2595
|
+
i("div", Yn, [
|
|
2596
|
+
U($(ae), {
|
|
2597
2597
|
variant: "tertiary",
|
|
2598
2598
|
circle: "",
|
|
2599
2599
|
size: "medium",
|
|
@@ -2602,45 +2602,45 @@ const Xe = {
|
|
|
2602
2602
|
disabled: e.currentPage <= 1,
|
|
2603
2603
|
onClick: y[0] || (y[0] = (u) => m(e.currentPage - 1))
|
|
2604
2604
|
}, null, 8, ["aria-label", "disabled"]),
|
|
2605
|
-
(a(!0), l(
|
|
2606
|
-
typeof u == "string" ? (a(), l("span",
|
|
2605
|
+
(a(!0), l(q, null, X(o.value, (u) => (a(), l(q, { key: u }, [
|
|
2606
|
+
typeof u == "string" ? (a(), l("span", jn, "…")) : (a(), l("button", {
|
|
2607
2607
|
key: 1,
|
|
2608
2608
|
type: "button",
|
|
2609
2609
|
class: C(["ds-paginator__page", { "is-active": u === e.currentPage }]),
|
|
2610
2610
|
"aria-current": u === e.currentPage ? "page" : void 0,
|
|
2611
2611
|
onClick: (p) => m(u)
|
|
2612
|
-
}, f(u), 11,
|
|
2612
|
+
}, f(u), 11, Zn))
|
|
2613
2613
|
], 64))), 128)),
|
|
2614
|
-
|
|
2614
|
+
U($(ae), {
|
|
2615
2615
|
variant: "tertiary",
|
|
2616
2616
|
circle: "",
|
|
2617
2617
|
size: "medium",
|
|
2618
2618
|
"left-icon": "chevron_right",
|
|
2619
2619
|
"aria-label": e.nextLabel || void 0,
|
|
2620
|
-
disabled: e.currentPage >=
|
|
2620
|
+
disabled: e.currentPage >= n.value,
|
|
2621
2621
|
onClick: y[1] || (y[1] = (u) => m(e.currentPage + 1))
|
|
2622
2622
|
}, null, 8, ["aria-label", "disabled"])
|
|
2623
2623
|
]),
|
|
2624
|
-
|
|
2624
|
+
i("select", {
|
|
2625
2625
|
class: "ds-paginator__page-size",
|
|
2626
2626
|
"aria-label": e.pageSizeLabel || void 0,
|
|
2627
2627
|
value: e.pageSize,
|
|
2628
2628
|
onChange: c
|
|
2629
2629
|
}, [
|
|
2630
|
-
(a(!0), l(
|
|
2630
|
+
(a(!0), l(q, null, X(e.pageSizes, (u) => (a(), l("option", {
|
|
2631
2631
|
key: u,
|
|
2632
2632
|
value: u
|
|
2633
|
-
}, f(u) + f(e.pageSizeSuffix), 9,
|
|
2634
|
-
], 40,
|
|
2635
|
-
], 8,
|
|
2633
|
+
}, f(u) + f(e.pageSizeSuffix), 9, Qn))), 128))
|
|
2634
|
+
], 40, Xn)
|
|
2635
|
+
], 8, Wn));
|
|
2636
2636
|
}
|
|
2637
|
-
}),
|
|
2637
|
+
}), io = /* @__PURE__ */ M(ti, [["__scopeId", "data-v-a42e7bb4"]]), ai = ["aria-current", "title"], li = {
|
|
2638
2638
|
class: "ds-menu-item__icon material-symbols-filled",
|
|
2639
2639
|
"aria-hidden": "true"
|
|
2640
|
-
},
|
|
2640
|
+
}, ni = {
|
|
2641
2641
|
key: 0,
|
|
2642
2642
|
class: "ds-menu-item__label"
|
|
2643
|
-
},
|
|
2643
|
+
}, ii = /* @__PURE__ */ x({
|
|
2644
2644
|
__name: "DsMenuItem",
|
|
2645
2645
|
props: {
|
|
2646
2646
|
// Material Symbols ligature name (rendered via <i class="material-symbols-filled">).
|
|
@@ -2655,25 +2655,25 @@ const Xe = {
|
|
|
2655
2655
|
emits: [dt],
|
|
2656
2656
|
setup(e, { emit: s }) {
|
|
2657
2657
|
const t = s;
|
|
2658
|
-
function d(
|
|
2659
|
-
t(dt,
|
|
2658
|
+
function d(n) {
|
|
2659
|
+
t(dt, n);
|
|
2660
2660
|
}
|
|
2661
|
-
return (
|
|
2661
|
+
return (n, o) => (a(), l("button", {
|
|
2662
2662
|
type: "button",
|
|
2663
2663
|
class: C(["ds-menu-item", { "is-active": e.active, "is-collapsed": e.collapsed }]),
|
|
2664
2664
|
"aria-current": e.active ? "page" : void 0,
|
|
2665
2665
|
title: e.text || void 0,
|
|
2666
2666
|
onClick: d
|
|
2667
2667
|
}, [
|
|
2668
|
-
|
|
2669
|
-
e.text ||
|
|
2670
|
-
|
|
2671
|
-
|
|
2668
|
+
i("i", li, f(e.icon), 1),
|
|
2669
|
+
e.text || n.$slots.default ? (a(), l("span", ni, [
|
|
2670
|
+
O(n.$slots, "default", {}, () => [
|
|
2671
|
+
Z(f(e.text), 1)
|
|
2672
2672
|
], !0)
|
|
2673
2673
|
])) : h("", !0)
|
|
2674
|
-
], 10,
|
|
2674
|
+
], 10, ai));
|
|
2675
2675
|
}
|
|
2676
|
-
}), so = /* @__PURE__ */
|
|
2676
|
+
}), so = /* @__PURE__ */ M(ii, [["__scopeId", "data-v-374c4426"]]), he = {
|
|
2677
2677
|
ACTIVE: "active",
|
|
2678
2678
|
// current step — accent-tint chip, filled marker
|
|
2679
2679
|
COMPLETED: "completed",
|
|
@@ -2682,10 +2682,10 @@ const Xe = {
|
|
|
2682
2682
|
// visited but unfinished — red "!" chip
|
|
2683
2683
|
NEUTRAL: "neutral"
|
|
2684
2684
|
// upcoming — outlined marker
|
|
2685
|
-
},
|
|
2685
|
+
}, si = { class: "ds-wizard-stepper" }, oi = { class: "ds-wizard-stepper__steps" }, di = {
|
|
2686
2686
|
class: "ds-wizard-step__marker",
|
|
2687
2687
|
"aria-hidden": "true"
|
|
2688
|
-
},
|
|
2688
|
+
}, ri = { class: "ds-wizard-step__label" }, ci = /* @__PURE__ */ x({
|
|
2689
2689
|
__name: "DsWizardStepper",
|
|
2690
2690
|
props: {
|
|
2691
2691
|
steps: { type: Array, default: () => [] },
|
|
@@ -2699,7 +2699,7 @@ const Xe = {
|
|
|
2699
2699
|
},
|
|
2700
2700
|
emits: [Ge, rt],
|
|
2701
2701
|
setup(e, { emit: s }) {
|
|
2702
|
-
const t = e, d = s,
|
|
2702
|
+
const t = e, d = s, n = g(() => t.value === t.steps.length), o = g(
|
|
2703
2703
|
() => t.steps.map((y, u) => {
|
|
2704
2704
|
var v;
|
|
2705
2705
|
const p = u + 1;
|
|
@@ -2723,9 +2723,9 @@ const Xe = {
|
|
|
2723
2723
|
function b() {
|
|
2724
2724
|
d(rt);
|
|
2725
2725
|
}
|
|
2726
|
-
return (y, u) => (a(), l("div",
|
|
2727
|
-
|
|
2728
|
-
(a(!0), l(
|
|
2726
|
+
return (y, u) => (a(), l("div", si, [
|
|
2727
|
+
i("ol", oi, [
|
|
2728
|
+
(a(!0), l(q, null, X(o.value, (p) => (a(), l("li", {
|
|
2729
2729
|
key: p.key,
|
|
2730
2730
|
class: "ds-wizard-stepper__item"
|
|
2731
2731
|
}, [
|
|
@@ -2735,57 +2735,57 @@ const Xe = {
|
|
|
2735
2735
|
"aria-current": p.current ? "step" : void 0,
|
|
2736
2736
|
onClick: (r) => m(p.index)
|
|
2737
2737
|
}, {
|
|
2738
|
-
default:
|
|
2739
|
-
|
|
2740
|
-
|
|
2738
|
+
default: z(() => [
|
|
2739
|
+
i("span", di, f(p.marker), 1),
|
|
2740
|
+
i("span", ri, f(p.label), 1)
|
|
2741
2741
|
]),
|
|
2742
2742
|
_: 2
|
|
2743
2743
|
}, 1032, ["type", "class", "aria-current", "onClick"]))
|
|
2744
2744
|
]))), 128))
|
|
2745
2745
|
]),
|
|
2746
|
-
!
|
|
2746
|
+
!n.value && e.nextLabel ? (a(), Q($(ae), {
|
|
2747
2747
|
key: 0,
|
|
2748
2748
|
variant: "primary",
|
|
2749
2749
|
size: "large",
|
|
2750
2750
|
"right-icon": "keyboard_arrow_right",
|
|
2751
2751
|
onClick: c
|
|
2752
2752
|
}, {
|
|
2753
|
-
default:
|
|
2754
|
-
|
|
2753
|
+
default: z(() => [
|
|
2754
|
+
Z(f(e.nextLabel), 1)
|
|
2755
2755
|
]),
|
|
2756
2756
|
_: 1
|
|
2757
2757
|
})) : h("", !0),
|
|
2758
|
-
|
|
2758
|
+
n.value && e.finalStepLabel ? (a(), Q($(ae), {
|
|
2759
2759
|
key: 1,
|
|
2760
2760
|
variant: "primary",
|
|
2761
2761
|
size: "large",
|
|
2762
2762
|
onClick: b
|
|
2763
2763
|
}, {
|
|
2764
|
-
default:
|
|
2765
|
-
|
|
2764
|
+
default: z(() => [
|
|
2765
|
+
Z(f(e.finalStepLabel), 1)
|
|
2766
2766
|
]),
|
|
2767
2767
|
_: 1
|
|
2768
2768
|
})) : h("", !0)
|
|
2769
2769
|
]));
|
|
2770
2770
|
}
|
|
2771
|
-
}), oo = /* @__PURE__ */
|
|
2771
|
+
}), oo = /* @__PURE__ */ M(ci, [["__scopeId", "data-v-d6f1e6d7"]]), $t = {
|
|
2772
2772
|
/** Right-to-left: panel pinned to the right edge, ring on its left border. */
|
|
2773
2773
|
RTL: "rtl",
|
|
2774
2774
|
/** Left-to-right: panel pinned to the left edge, ring on its right border. */
|
|
2775
2775
|
LTR: "ltr"
|
|
2776
|
-
},
|
|
2776
|
+
}, ui = ["aria-modal", "aria-labelledby", "aria-label"], fi = {
|
|
2777
2777
|
key: 1,
|
|
2778
2778
|
class: "ds-drawer__header"
|
|
2779
|
-
},
|
|
2779
|
+
}, vi = ["id"], bi = {
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
class: "ds-drawer__controls"
|
|
2782
|
-
},
|
|
2782
|
+
}, yi = {
|
|
2783
2783
|
key: 0,
|
|
2784
2784
|
class: "ds-drawer__actions"
|
|
2785
|
-
},
|
|
2785
|
+
}, mi = ["aria-label"], gi = { class: "ds-drawer__body" }, hi = {
|
|
2786
2786
|
key: 2,
|
|
2787
2787
|
class: "ds-drawer__footer"
|
|
2788
|
-
},
|
|
2788
|
+
}, pi = /* @__PURE__ */ x({
|
|
2789
2789
|
__name: "DsDrawer",
|
|
2790
2790
|
props: {
|
|
2791
2791
|
open: Boolean,
|
|
@@ -2814,9 +2814,9 @@ const Xe = {
|
|
|
2814
2814
|
},
|
|
2815
2815
|
emits: [te, ut, ft, vt],
|
|
2816
2816
|
setup(e, { emit: s }) {
|
|
2817
|
-
const t = e, d = s,
|
|
2817
|
+
const t = e, d = s, n = V(null);
|
|
2818
2818
|
let o = null;
|
|
2819
|
-
const m =
|
|
2819
|
+
const m = Te(), c = $e(), b = g(() => t.title && !m.header ? c : void 0), y = (w) => Math.min(Math.max(w, t.minWidth), Math.max(t.minWidth, t.maxWidth)), u = V(y(t.width));
|
|
2820
2820
|
J(
|
|
2821
2821
|
() => [t.width, t.minWidth, t.maxWidth],
|
|
2822
2822
|
() => {
|
|
@@ -2828,7 +2828,7 @@ const Xe = {
|
|
|
2828
2828
|
t.beforeClose && await t.beforeClose() === !1 || d(te);
|
|
2829
2829
|
}
|
|
2830
2830
|
let v = !1;
|
|
2831
|
-
function
|
|
2831
|
+
function S() {
|
|
2832
2832
|
if (v) {
|
|
2833
2833
|
v = !1;
|
|
2834
2834
|
return;
|
|
@@ -2836,84 +2836,84 @@ const Xe = {
|
|
|
2836
2836
|
t.fixed && t.closeOnOverlay && r();
|
|
2837
2837
|
}
|
|
2838
2838
|
const _ = V(!1);
|
|
2839
|
-
let
|
|
2840
|
-
function
|
|
2841
|
-
const
|
|
2842
|
-
return y(
|
|
2839
|
+
let R = 0, k = 0;
|
|
2840
|
+
function T(w) {
|
|
2841
|
+
const D = w.clientX - R, F = t.direction === $t.RTL ? k - D : k + D;
|
|
2842
|
+
return y(F);
|
|
2843
2843
|
}
|
|
2844
|
-
function L(
|
|
2845
|
-
t.resizable && (_.value = !0,
|
|
2844
|
+
function L(w) {
|
|
2845
|
+
t.resizable && (_.value = !0, R = w.clientX, k = u.value, document.addEventListener("pointermove", B), document.addEventListener("pointerup", j), document.addEventListener("pointercancel", j), d(ut, u.value));
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2848
|
-
_.value && (u.value =
|
|
2847
|
+
function B(w) {
|
|
2848
|
+
_.value && (u.value = T(w), d(ft, u.value));
|
|
2849
2849
|
}
|
|
2850
|
-
function
|
|
2851
|
-
_.value && (
|
|
2850
|
+
function j() {
|
|
2851
|
+
_.value && (K(), _.value = !1, v = !0, setTimeout(() => v = !1, 0), d(vt, u.value));
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2854
|
-
document.removeEventListener("pointermove",
|
|
2853
|
+
function K() {
|
|
2854
|
+
document.removeEventListener("pointermove", B), document.removeEventListener("pointerup", j), document.removeEventListener("pointercancel", j);
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2857
|
-
return
|
|
2858
|
-
(
|
|
2856
|
+
function A() {
|
|
2857
|
+
return n.value ? Array.from(n.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
2858
|
+
(D) => !D.closest("[hidden]") && D.getAttribute("aria-hidden") !== "true"
|
|
2859
2859
|
) : [];
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2861
|
+
function Y(w) {
|
|
2862
2862
|
var ge;
|
|
2863
|
-
if (
|
|
2863
|
+
if (w.key === "Escape") {
|
|
2864
2864
|
t.closeOnEscape && r();
|
|
2865
2865
|
return;
|
|
2866
2866
|
}
|
|
2867
|
-
if (
|
|
2868
|
-
const
|
|
2869
|
-
if (
|
|
2870
|
-
|
|
2867
|
+
if (w.key !== "Tab") return;
|
|
2868
|
+
const D = A();
|
|
2869
|
+
if (D.length === 0) {
|
|
2870
|
+
w.preventDefault(), (ge = n.value) == null || ge.focus();
|
|
2871
2871
|
return;
|
|
2872
2872
|
}
|
|
2873
|
-
const
|
|
2874
|
-
|
|
2873
|
+
const F = D[0], oe = D[D.length - 1];
|
|
2874
|
+
w.shiftKey && document.activeElement === F ? (w.preventDefault(), oe.focus()) : !w.shiftKey && document.activeElement === oe && (w.preventDefault(), F.focus());
|
|
2875
2875
|
}
|
|
2876
2876
|
function E() {
|
|
2877
|
-
o = document.activeElement, document.addEventListener("keydown",
|
|
2878
|
-
var
|
|
2879
|
-
return (
|
|
2877
|
+
o = document.activeElement, document.addEventListener("keydown", Y), document.body.style.overflow = "hidden", ue(() => {
|
|
2878
|
+
var w, D;
|
|
2879
|
+
return (D = (w = A()[0]) != null ? w : n.value) == null ? void 0 : D.focus();
|
|
2880
2880
|
});
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2883
|
-
var
|
|
2884
|
-
document.removeEventListener("keydown",
|
|
2882
|
+
function N(w = !0) {
|
|
2883
|
+
var D;
|
|
2884
|
+
document.removeEventListener("keydown", Y), document.body.style.overflow = "", w && ((D = o == null ? void 0 : o.focus) == null || D.call(o));
|
|
2885
2885
|
}
|
|
2886
2886
|
return J(
|
|
2887
2887
|
() => t.open && t.fixed,
|
|
2888
|
-
(
|
|
2889
|
-
typeof document != "undefined" && (
|
|
2888
|
+
(w, D) => {
|
|
2889
|
+
typeof document != "undefined" && (w ? E() : D && N());
|
|
2890
2890
|
},
|
|
2891
2891
|
{ immediate: !0 }
|
|
2892
2892
|
), re(() => {
|
|
2893
|
-
typeof document != "undefined" && (
|
|
2894
|
-
}), (
|
|
2893
|
+
typeof document != "undefined" && (K(), N(!1));
|
|
2894
|
+
}), (w, D) => (a(), Q(xe, {
|
|
2895
2895
|
to: "body",
|
|
2896
2896
|
disabled: !e.fixed
|
|
2897
2897
|
}, [
|
|
2898
|
-
|
|
2898
|
+
U(ke, {
|
|
2899
2899
|
name: `ds-drawer-${e.direction}`
|
|
2900
2900
|
}, {
|
|
2901
|
-
default:
|
|
2901
|
+
default: z(() => [
|
|
2902
2902
|
e.open ? (a(), l("div", {
|
|
2903
2903
|
key: 0,
|
|
2904
2904
|
class: C(["ds-drawer", [`ds-drawer--${e.direction}`, { "is-fixed": e.fixed, "is-resizing": _.value }]]),
|
|
2905
|
-
onClick: pe(
|
|
2905
|
+
onClick: pe(S, ["self"])
|
|
2906
2906
|
}, [
|
|
2907
|
-
|
|
2907
|
+
i("aside", {
|
|
2908
2908
|
ref_key: "panelRef",
|
|
2909
|
-
ref:
|
|
2909
|
+
ref: n,
|
|
2910
2910
|
class: "ds-drawer__panel",
|
|
2911
2911
|
role: "dialog",
|
|
2912
2912
|
"aria-modal": e.fixed ? "true" : "false",
|
|
2913
2913
|
"aria-labelledby": b.value,
|
|
2914
2914
|
"aria-label": b.value ? void 0 : "drawer",
|
|
2915
2915
|
tabindex: "-1",
|
|
2916
|
-
style:
|
|
2916
|
+
style: G(p.value)
|
|
2917
2917
|
}, [
|
|
2918
2918
|
e.resizable ? (a(), l("div", {
|
|
2919
2919
|
key: 0,
|
|
@@ -2921,16 +2921,16 @@ const Xe = {
|
|
|
2921
2921
|
"aria-hidden": "true",
|
|
2922
2922
|
onPointerdown: pe(L, ["stop", "prevent"])
|
|
2923
2923
|
}, null, 32)) : h("", !0),
|
|
2924
|
-
e.title || e.showClose ||
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
id:
|
|
2924
|
+
e.title || e.showClose || w.$slots.header || w.$slots.actions ? (a(), l("header", fi, [
|
|
2925
|
+
O(w.$slots, "header", {}, () => [
|
|
2926
|
+
i("h4", {
|
|
2927
|
+
id: $(c),
|
|
2928
2928
|
class: "ds-drawer__title"
|
|
2929
|
-
}, f(e.title), 9,
|
|
2929
|
+
}, f(e.title), 9, vi)
|
|
2930
2930
|
], !0),
|
|
2931
|
-
e.showClose ||
|
|
2932
|
-
|
|
2933
|
-
|
|
2931
|
+
e.showClose || w.$slots.actions ? (a(), l("div", bi, [
|
|
2932
|
+
w.$slots.actions ? (a(), l("div", yi, [
|
|
2933
|
+
O(w.$slots, "actions", {}, void 0, !0)
|
|
2934
2934
|
])) : h("", !0),
|
|
2935
2935
|
e.showClose ? (a(), l("button", {
|
|
2936
2936
|
key: 1,
|
|
@@ -2938,28 +2938,28 @@ const Xe = {
|
|
|
2938
2938
|
class: "ds-drawer__close",
|
|
2939
2939
|
"aria-label": e.closeLabel || void 0,
|
|
2940
2940
|
onClick: r
|
|
2941
|
-
}, [...
|
|
2942
|
-
|
|
2941
|
+
}, [...D[0] || (D[0] = [
|
|
2942
|
+
i("i", {
|
|
2943
2943
|
class: "material-symbols-filled",
|
|
2944
2944
|
"aria-hidden": "true"
|
|
2945
2945
|
}, "close", -1)
|
|
2946
|
-
])], 8,
|
|
2946
|
+
])], 8, mi)) : h("", !0)
|
|
2947
2947
|
])) : h("", !0)
|
|
2948
2948
|
])) : h("", !0),
|
|
2949
|
-
|
|
2950
|
-
|
|
2949
|
+
i("div", gi, [
|
|
2950
|
+
O(w.$slots, "default", {}, void 0, !0)
|
|
2951
2951
|
]),
|
|
2952
|
-
|
|
2953
|
-
|
|
2952
|
+
w.$slots.footer ? (a(), l("footer", hi, [
|
|
2953
|
+
O(w.$slots, "footer", {}, void 0, !0)
|
|
2954
2954
|
])) : h("", !0)
|
|
2955
|
-
], 12,
|
|
2955
|
+
], 12, ui)
|
|
2956
2956
|
], 2)) : h("", !0)
|
|
2957
2957
|
]),
|
|
2958
2958
|
_: 3
|
|
2959
2959
|
}, 8, ["name"])
|
|
2960
2960
|
], 8, ["disabled"]));
|
|
2961
2961
|
}
|
|
2962
|
-
}), ro = /* @__PURE__ */
|
|
2962
|
+
}), ro = /* @__PURE__ */ M(pi, [["__scopeId", "data-v-b912d1e5"]]), Be = {
|
|
2963
2963
|
TOP: "top",
|
|
2964
2964
|
TOP_START: "top-start",
|
|
2965
2965
|
TOP_END: "top-end",
|
|
@@ -2974,13 +2974,13 @@ const Xe = {
|
|
|
2974
2974
|
RIGHT_END: "right-end",
|
|
2975
2975
|
OVER_START: "over-start",
|
|
2976
2976
|
OVER_END: "over-end"
|
|
2977
|
-
},
|
|
2977
|
+
}, ki = ["id"], Si = ["id"], $i = /* @__PURE__ */ x({
|
|
2978
2978
|
__name: "DsPopover",
|
|
2979
2979
|
props: {
|
|
2980
2980
|
open: Boolean,
|
|
2981
2981
|
placement: {
|
|
2982
2982
|
type: String,
|
|
2983
|
-
default:
|
|
2983
|
+
default: Be.BOTTOM
|
|
2984
2984
|
},
|
|
2985
2985
|
// Panel width (any CSS length). Empty = fit content.
|
|
2986
2986
|
width: { type: String, default: "" },
|
|
@@ -2999,104 +2999,114 @@ const Xe = {
|
|
|
2999
2999
|
// ancestor with `overflow` other than visible — a table cell, a scroller — which would
|
|
3000
3000
|
// otherwise clip the panel. Placement, offset and the viewport clamp behave the same.
|
|
3001
3001
|
// Off = the panel stays inside the root, as before — additive, nothing existing moves.
|
|
3002
|
-
teleported: { type: Boolean, default: !1 }
|
|
3002
|
+
teleported: { type: Boolean, default: !1 },
|
|
3003
|
+
// The root and the trigger fill their container instead of hugging the trigger's content
|
|
3004
|
+
// (SALESQL-4056): for a trigger that is a whole surface, like a table cell painted as
|
|
3005
|
+
// clickable end to end. Off = inline, as before.
|
|
3006
|
+
block: { type: Boolean, default: !1 }
|
|
3003
3007
|
},
|
|
3004
|
-
emits: [
|
|
3008
|
+
emits: [ne],
|
|
3005
3009
|
setup(e, { emit: s }) {
|
|
3006
|
-
const t = e, d = s,
|
|
3010
|
+
const t = e, d = s, n = V(null), o = V(null), m = $e(), {
|
|
3007
3011
|
shiftStyle: c,
|
|
3008
3012
|
activate: b,
|
|
3009
3013
|
deactivate: y
|
|
3010
|
-
} =
|
|
3011
|
-
const
|
|
3014
|
+
} = wt(o, () => t.placement), u = g(() => {
|
|
3015
|
+
const A = {
|
|
3012
3016
|
...t.width ? { width: t.width } : {},
|
|
3013
3017
|
...t.offset ? { "--ds-popover-offset": t.offset } : {},
|
|
3014
3018
|
...c.value
|
|
3015
3019
|
};
|
|
3016
|
-
return Object.keys(
|
|
3020
|
+
return Object.keys(A).length > 0 ? A : void 0;
|
|
3017
3021
|
}), p = V(null), r = g(() => {
|
|
3018
|
-
const
|
|
3019
|
-
if (
|
|
3022
|
+
const A = p.value;
|
|
3023
|
+
if (A)
|
|
3020
3024
|
return {
|
|
3021
|
-
top: `${
|
|
3022
|
-
left: `${
|
|
3023
|
-
width: `${
|
|
3024
|
-
height: `${
|
|
3025
|
+
top: `${A.top}px`,
|
|
3026
|
+
left: `${A.left}px`,
|
|
3027
|
+
width: `${A.width}px`,
|
|
3028
|
+
height: `${A.height}px`
|
|
3025
3029
|
};
|
|
3026
3030
|
});
|
|
3027
3031
|
function v() {
|
|
3028
|
-
var
|
|
3029
|
-
const
|
|
3030
|
-
|
|
3031
|
-
}
|
|
3032
|
-
function $() {
|
|
3033
|
-
v(), window.addEventListener("resize", v), window.addEventListener("scroll", v, { capture: !0, passive: !0 });
|
|
3032
|
+
var Y;
|
|
3033
|
+
const A = (Y = n.value) == null ? void 0 : Y.getBoundingClientRect();
|
|
3034
|
+
A && (p.value = { top: A.top, left: A.left, width: A.width, height: A.height });
|
|
3034
3035
|
}
|
|
3036
|
+
let S = null;
|
|
3035
3037
|
function _() {
|
|
3036
|
-
|
|
3038
|
+
typeof IntersectionObserver == "undefined" || !n.value || (S = new IntersectionObserver((A) => {
|
|
3039
|
+
A.some((Y) => !Y.isIntersecting) && L();
|
|
3040
|
+
}), S.observe(n.value));
|
|
3037
3041
|
}
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
d(ie, !1);
|
|
3042
|
+
function R() {
|
|
3043
|
+
v(), window.addEventListener("resize", v), window.addEventListener("scroll", v, { capture: !0, passive: !0 }), _();
|
|
3041
3044
|
}
|
|
3042
|
-
function
|
|
3043
|
-
|
|
3045
|
+
function k() {
|
|
3046
|
+
window.removeEventListener("resize", v), window.removeEventListener("scroll", v, { capture: !0 }), S == null || S.disconnect(), S = null;
|
|
3044
3047
|
}
|
|
3048
|
+
let T = null;
|
|
3045
3049
|
function L() {
|
|
3046
|
-
|
|
3050
|
+
d(ne, !1);
|
|
3051
|
+
}
|
|
3052
|
+
function B() {
|
|
3053
|
+
t.triggerOnClick && d(ne, !t.open);
|
|
3054
|
+
}
|
|
3055
|
+
function j() {
|
|
3056
|
+
t.closeOnEscape && t.open && L();
|
|
3047
3057
|
}
|
|
3048
|
-
function A
|
|
3049
|
-
var
|
|
3050
|
-
const
|
|
3051
|
-
!
|
|
3058
|
+
function K(A) {
|
|
3059
|
+
var E, N;
|
|
3060
|
+
const Y = A.target;
|
|
3061
|
+
!Y || (E = n.value) != null && E.contains(Y) || (N = o.value) != null && N.contains(Y) || L();
|
|
3052
3062
|
}
|
|
3053
3063
|
return J(
|
|
3054
3064
|
() => t.open,
|
|
3055
|
-
(
|
|
3056
|
-
var
|
|
3057
|
-
typeof document != "undefined" && (
|
|
3058
|
-
var
|
|
3059
|
-
(
|
|
3060
|
-
})) :
|
|
3065
|
+
(A, Y) => {
|
|
3066
|
+
var E;
|
|
3067
|
+
typeof document != "undefined" && (A ? (T = document.activeElement, t.closeOnOutside && document.addEventListener("mousedown", K), t.teleported && R(), ue(() => {
|
|
3068
|
+
var N, w;
|
|
3069
|
+
(w = (N = o.value) == null ? void 0 : N.focus) == null || w.call(N, { preventScroll: !0 }), b();
|
|
3070
|
+
})) : Y && (document.removeEventListener("mousedown", K), k(), y(), (E = T == null ? void 0 : T.focus) == null || E.call(T, { preventScroll: !0 })));
|
|
3061
3071
|
},
|
|
3062
3072
|
{ immediate: !0 }
|
|
3063
3073
|
), re(() => {
|
|
3064
|
-
typeof document != "undefined" && (document.removeEventListener("mousedown",
|
|
3065
|
-
}), (
|
|
3074
|
+
typeof document != "undefined" && (document.removeEventListener("mousedown", K), k(), y());
|
|
3075
|
+
}), (A, Y) => (a(), l("div", {
|
|
3066
3076
|
ref_key: "rootRef",
|
|
3067
|
-
ref:
|
|
3068
|
-
class: "ds-popover",
|
|
3069
|
-
onKeydown: We(
|
|
3077
|
+
ref: n,
|
|
3078
|
+
class: C(["ds-popover", { "ds-popover--block": e.block }]),
|
|
3079
|
+
onKeydown: We(j, ["esc"])
|
|
3070
3080
|
}, [
|
|
3071
|
-
|
|
3081
|
+
i("div", {
|
|
3072
3082
|
class: "ds-popover__trigger",
|
|
3073
|
-
onClick:
|
|
3083
|
+
onClick: B
|
|
3074
3084
|
}, [
|
|
3075
|
-
|
|
3085
|
+
O(A.$slots, "trigger", {}, void 0, !0)
|
|
3076
3086
|
]),
|
|
3077
3087
|
e.teleported ? (a(), Q(xe, {
|
|
3078
3088
|
key: 0,
|
|
3079
3089
|
to: "body"
|
|
3080
3090
|
}, [
|
|
3081
|
-
|
|
3082
|
-
default:
|
|
3091
|
+
U(ke, { name: "ds-popover-fade" }, {
|
|
3092
|
+
default: z(() => [
|
|
3083
3093
|
e.open ? (a(), l("div", {
|
|
3084
3094
|
key: 0,
|
|
3085
3095
|
class: "ds-popover__anchor",
|
|
3086
|
-
style:
|
|
3087
|
-
onKeydown: We(
|
|
3096
|
+
style: G(r.value),
|
|
3097
|
+
onKeydown: We(j, ["esc"])
|
|
3088
3098
|
}, [
|
|
3089
|
-
|
|
3090
|
-
id:
|
|
3099
|
+
i("div", {
|
|
3100
|
+
id: $(m),
|
|
3091
3101
|
ref_key: "panelRef",
|
|
3092
3102
|
ref: o,
|
|
3093
3103
|
class: C(["ds-popover__panel", [`ds-popover__panel--${e.placement}`, { "is-flush": e.flush }]]),
|
|
3094
3104
|
role: "dialog",
|
|
3095
3105
|
tabindex: "-1",
|
|
3096
|
-
style:
|
|
3106
|
+
style: G(u.value)
|
|
3097
3107
|
}, [
|
|
3098
|
-
|
|
3099
|
-
], 14,
|
|
3108
|
+
O(A.$slots, "default", {}, void 0, !0)
|
|
3109
|
+
], 14, ki)
|
|
3100
3110
|
], 36)) : h("", !0)
|
|
3101
3111
|
]),
|
|
3102
3112
|
_: 3
|
|
@@ -3105,29 +3115,29 @@ const Xe = {
|
|
|
3105
3115
|
key: 1,
|
|
3106
3116
|
name: "ds-popover-fade"
|
|
3107
3117
|
}, {
|
|
3108
|
-
default:
|
|
3118
|
+
default: z(() => [
|
|
3109
3119
|
e.open ? (a(), l("div", {
|
|
3110
3120
|
key: 0,
|
|
3111
|
-
id:
|
|
3121
|
+
id: $(m),
|
|
3112
3122
|
ref_key: "panelRef",
|
|
3113
3123
|
ref: o,
|
|
3114
3124
|
class: C(["ds-popover__panel", [`ds-popover__panel--${e.placement}`, { "is-flush": e.flush }]]),
|
|
3115
3125
|
role: "dialog",
|
|
3116
3126
|
tabindex: "-1",
|
|
3117
|
-
style:
|
|
3127
|
+
style: G(u.value)
|
|
3118
3128
|
}, [
|
|
3119
|
-
|
|
3120
|
-
], 14,
|
|
3129
|
+
O(A.$slots, "default", {}, void 0, !0)
|
|
3130
|
+
], 14, Si)) : h("", !0)
|
|
3121
3131
|
]),
|
|
3122
3132
|
_: 3
|
|
3123
3133
|
}))
|
|
3124
|
-
],
|
|
3134
|
+
], 34));
|
|
3125
3135
|
}
|
|
3126
|
-
}), ze = /* @__PURE__ */
|
|
3136
|
+
}), ze = /* @__PURE__ */ M($i, [["__scopeId", "data-v-16d43fc7"]]), _i = ["src"], Li = {
|
|
3127
3137
|
key: 1,
|
|
3128
3138
|
class: "ds-company-logo__initial",
|
|
3129
3139
|
"aria-hidden": "true"
|
|
3130
|
-
},
|
|
3140
|
+
}, Ei = /* @__PURE__ */ x({
|
|
3131
3141
|
__name: "DsCompanyLogo",
|
|
3132
3142
|
props: {
|
|
3133
3143
|
src: { type: String, default: "" },
|
|
@@ -3140,13 +3150,13 @@ const Xe = {
|
|
|
3140
3150
|
() => s.src,
|
|
3141
3151
|
() => t.value = !1
|
|
3142
3152
|
);
|
|
3143
|
-
const d = g(() => (s.name || "?").slice(0, 1)),
|
|
3153
|
+
const d = g(() => (s.name || "?").slice(0, 1)), n = g(() => ({ width: `${s.size}px`, height: `${s.size}px` })), o = g(() => {
|
|
3144
3154
|
const m = `${Math.round(s.size * 0.61)}px`;
|
|
3145
3155
|
return { width: m, height: m };
|
|
3146
3156
|
});
|
|
3147
3157
|
return (m, c) => (a(), l("span", {
|
|
3148
3158
|
class: "ds-company-logo",
|
|
3149
|
-
style:
|
|
3159
|
+
style: G(n.value)
|
|
3150
3160
|
}, [
|
|
3151
3161
|
e.src && !t.value ? (a(), l("img", {
|
|
3152
3162
|
key: 0,
|
|
@@ -3154,18 +3164,18 @@ const Xe = {
|
|
|
3154
3164
|
src: e.src,
|
|
3155
3165
|
alt: "",
|
|
3156
3166
|
loading: "lazy",
|
|
3157
|
-
style:
|
|
3167
|
+
style: G(o.value),
|
|
3158
3168
|
onError: c[0] || (c[0] = (b) => t.value = !0)
|
|
3159
|
-
}, null, 44,
|
|
3169
|
+
}, null, 44, _i)) : (a(), l("span", Li, f(d.value), 1))
|
|
3160
3170
|
], 4));
|
|
3161
3171
|
}
|
|
3162
|
-
}),
|
|
3172
|
+
}), wi = /* @__PURE__ */ M(Ei, [["__scopeId", "data-v-541b2e2e"]]), Ti = { class: "ds-company-card" }, Ci = { class: "ds-company-card__header" }, Ii = { class: "ds-company-card__name" }, Di = ["href", "aria-label"], Ri = ["href", "aria-label"], Ai = {
|
|
3163
3173
|
class: "material-symbols-filled ds-company-card__row-icon",
|
|
3164
3174
|
"aria-hidden": "true"
|
|
3165
|
-
},
|
|
3175
|
+
}, Ni = { class: "ds-company-card__row-text" }, Oi = { class: "ds-company-card__row-label" }, Bi = ["href"], xi = {
|
|
3166
3176
|
key: 1,
|
|
3167
3177
|
class: "ds-company-card__row-value"
|
|
3168
|
-
},
|
|
3178
|
+
}, Mi = /* @__PURE__ */ x({
|
|
3169
3179
|
__name: "DsCompanyCard",
|
|
3170
3180
|
props: {
|
|
3171
3181
|
name: { type: String, required: !0 },
|
|
@@ -3178,32 +3188,32 @@ const Xe = {
|
|
|
3178
3188
|
},
|
|
3179
3189
|
setup(e) {
|
|
3180
3190
|
const s = e, t = g(() => s.details.filter((d) => d.value));
|
|
3181
|
-
return (d,
|
|
3182
|
-
|
|
3183
|
-
|
|
3191
|
+
return (d, n) => (a(), l("div", Ti, [
|
|
3192
|
+
i("div", Ci, [
|
|
3193
|
+
U(wi, {
|
|
3184
3194
|
src: e.logo,
|
|
3185
3195
|
name: e.name,
|
|
3186
3196
|
size: 34
|
|
3187
3197
|
}, null, 8, ["src", "name"]),
|
|
3188
|
-
|
|
3198
|
+
i("span", Ii, f(e.name), 1),
|
|
3189
3199
|
e.websiteUrl ? (a(), Q(Pe, {
|
|
3190
3200
|
key: 0,
|
|
3191
3201
|
content: e.websiteLabel,
|
|
3192
|
-
placement:
|
|
3202
|
+
placement: $(Xe).BOTTOM
|
|
3193
3203
|
}, {
|
|
3194
|
-
default:
|
|
3195
|
-
|
|
3204
|
+
default: z(() => [
|
|
3205
|
+
i("a", {
|
|
3196
3206
|
class: "ds-company-card__website",
|
|
3197
3207
|
href: e.websiteUrl,
|
|
3198
3208
|
target: "_blank",
|
|
3199
3209
|
rel: "noopener noreferrer",
|
|
3200
3210
|
"aria-label": e.websiteLabel || void 0
|
|
3201
|
-
}, [...
|
|
3202
|
-
|
|
3211
|
+
}, [...n[0] || (n[0] = [
|
|
3212
|
+
i("i", {
|
|
3203
3213
|
class: "material-symbols-filled",
|
|
3204
3214
|
"aria-hidden": "true"
|
|
3205
3215
|
}, "language", -1)
|
|
3206
|
-
])], 8,
|
|
3216
|
+
])], 8, Di)
|
|
3207
3217
|
]),
|
|
3208
3218
|
_: 1
|
|
3209
3219
|
}, 8, ["content", "placement"])) : h("", !0),
|
|
@@ -3214,46 +3224,46 @@ const Xe = {
|
|
|
3214
3224
|
target: "_blank",
|
|
3215
3225
|
rel: "noopener noreferrer",
|
|
3216
3226
|
"aria-label": e.linkedinLabel || void 0
|
|
3217
|
-
}, "in", 8,
|
|
3227
|
+
}, "in", 8, Ri)) : h("", !0)
|
|
3218
3228
|
]),
|
|
3219
|
-
(a(!0), l(
|
|
3229
|
+
(a(!0), l(q, null, X(t.value, (o) => (a(), l("div", {
|
|
3220
3230
|
key: o.id,
|
|
3221
3231
|
class: "ds-company-card__row"
|
|
3222
3232
|
}, [
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3233
|
+
i("i", Ai, f(o.icon), 1),
|
|
3234
|
+
i("div", Ni, [
|
|
3235
|
+
i("div", Oi, f(o.label), 1),
|
|
3226
3236
|
o.href ? (a(), l("a", {
|
|
3227
3237
|
key: 0,
|
|
3228
3238
|
class: "ds-company-card__row-value is-link",
|
|
3229
3239
|
href: o.href,
|
|
3230
3240
|
target: "_blank",
|
|
3231
3241
|
rel: "noopener noreferrer"
|
|
3232
|
-
}, f(o.value), 9,
|
|
3242
|
+
}, f(o.value), 9, Bi)) : (a(), l("div", xi, f(o.value), 1))
|
|
3233
3243
|
])
|
|
3234
3244
|
]))), 128))
|
|
3235
3245
|
]));
|
|
3236
3246
|
}
|
|
3237
|
-
}), co = /* @__PURE__ */
|
|
3247
|
+
}), co = /* @__PURE__ */ M(Mi, [["__scopeId", "data-v-52b44ae8"]]), Qe = {
|
|
3238
3248
|
EMAIL: "email",
|
|
3239
3249
|
PHONE: "phone"
|
|
3240
|
-
},
|
|
3250
|
+
}, we = {
|
|
3241
3251
|
WORK: "work",
|
|
3242
3252
|
DIRECT: "direct",
|
|
3243
3253
|
MOBILE: "mobile",
|
|
3244
3254
|
HQ: "hq",
|
|
3245
3255
|
OTHER: "other"
|
|
3246
3256
|
}, Ct = {
|
|
3247
|
-
[
|
|
3248
|
-
[
|
|
3249
|
-
[
|
|
3250
|
-
[
|
|
3251
|
-
[
|
|
3257
|
+
[we.WORK]: "business_center",
|
|
3258
|
+
[we.DIRECT]: "mail",
|
|
3259
|
+
[we.MOBILE]: "call",
|
|
3260
|
+
[we.HQ]: "corporate_fare",
|
|
3261
|
+
[we.OTHER]: "alternate_email"
|
|
3252
3262
|
}, _t = ["*", "•", "."];
|
|
3253
|
-
function
|
|
3263
|
+
function Pi(e) {
|
|
3254
3264
|
return e > 1 ? e - 1 : 0;
|
|
3255
3265
|
}
|
|
3256
|
-
function
|
|
3266
|
+
function zi(e, s, t) {
|
|
3257
3267
|
const d = e[e.length - 1];
|
|
3258
3268
|
if (d && d.masked === t) {
|
|
3259
3269
|
d.text += s;
|
|
@@ -3261,27 +3271,27 @@ function zn(e, s, t) {
|
|
|
3261
3271
|
}
|
|
3262
3272
|
e.push({ text: s, masked: t });
|
|
3263
3273
|
}
|
|
3264
|
-
function
|
|
3274
|
+
function Ui(e, s) {
|
|
3265
3275
|
if (!e) return [];
|
|
3266
3276
|
if (s === Qe.EMAIL) {
|
|
3267
|
-
const
|
|
3268
|
-
return
|
|
3269
|
-
{ text: e.slice(0,
|
|
3270
|
-
{ text: e.slice(
|
|
3277
|
+
const n = e.indexOf("@");
|
|
3278
|
+
return n <= 0 ? [{ text: e, masked: !0 }] : [
|
|
3279
|
+
{ text: e.slice(0, n), masked: !0 },
|
|
3280
|
+
{ text: e.slice(n), masked: !1 }
|
|
3271
3281
|
];
|
|
3272
3282
|
}
|
|
3273
3283
|
const t = [];
|
|
3274
3284
|
let d = 0;
|
|
3275
3285
|
for (; d < e.length; ) {
|
|
3276
|
-
const
|
|
3286
|
+
const n = _t.includes(e[d]);
|
|
3277
3287
|
let o = d;
|
|
3278
|
-
for (; o < e.length && _t.includes(e[o]) ===
|
|
3288
|
+
for (; o < e.length && _t.includes(e[o]) === n; ) o += 1;
|
|
3279
3289
|
const m = e.slice(d, o);
|
|
3280
|
-
|
|
3290
|
+
zi(t, m, n && m !== "."), d = o;
|
|
3281
3291
|
}
|
|
3282
3292
|
return t;
|
|
3283
3293
|
}
|
|
3284
|
-
const
|
|
3294
|
+
const Vi = ["title"], qi = /* @__PURE__ */ x({
|
|
3285
3295
|
__name: "DsMaskedValue",
|
|
3286
3296
|
props: {
|
|
3287
3297
|
value: { type: String, required: !0 },
|
|
@@ -3290,24 +3300,24 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3290
3300
|
},
|
|
3291
3301
|
setup(e) {
|
|
3292
3302
|
const s = e, t = g(
|
|
3293
|
-
() => s.masked ?
|
|
3303
|
+
() => s.masked ? Ui(s.value, s.kind) : []
|
|
3294
3304
|
), d = /^\*+$/;
|
|
3295
|
-
function
|
|
3305
|
+
function n(o) {
|
|
3296
3306
|
return o.masked ? ["ds-masked-value__mask", d.test(o.text) ? "is-asterisks" : "is-dots"] : ["ds-masked-value__clear"];
|
|
3297
3307
|
}
|
|
3298
3308
|
return (o, m) => (a(), l("span", {
|
|
3299
3309
|
class: C(["ds-masked-value", { "is-masked": e.masked }]),
|
|
3300
3310
|
title: e.masked ? void 0 : e.value
|
|
3301
3311
|
}, [
|
|
3302
|
-
e.masked ? (a(!0), l(
|
|
3312
|
+
e.masked ? (a(!0), l(q, { key: 0 }, X(t.value, (c, b) => (a(), l("span", {
|
|
3303
3313
|
key: b,
|
|
3304
|
-
class: C(
|
|
3305
|
-
}, f(c.text), 3))), 128)) : (a(), l(
|
|
3306
|
-
|
|
3314
|
+
class: C(n(c))
|
|
3315
|
+
}, f(c.text), 3))), 128)) : (a(), l(q, { key: 1 }, [
|
|
3316
|
+
Z(f(e.value), 1)
|
|
3307
3317
|
], 64))
|
|
3308
|
-
], 10,
|
|
3318
|
+
], 10, Vi));
|
|
3309
3319
|
}
|
|
3310
|
-
}), It = /* @__PURE__ */
|
|
3320
|
+
}), It = /* @__PURE__ */ M(qi, [["__scopeId", "data-v-4e464c09"]]), Fi = ["aria-label", "tabindex"], Gi = /* @__PURE__ */ x({
|
|
3311
3321
|
__name: "DsDeliverabilityBadge",
|
|
3312
3322
|
props: {
|
|
3313
3323
|
label: { type: String, required: !0 },
|
|
@@ -3322,23 +3332,23 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3322
3332
|
focusable: { type: Boolean, default: !0 }
|
|
3323
3333
|
},
|
|
3324
3334
|
setup(e) {
|
|
3325
|
-
return (s, t) => (a(), Q(
|
|
3335
|
+
return (s, t) => (a(), Q($(Pe), {
|
|
3326
3336
|
class: "ds-deliverability-badge",
|
|
3327
3337
|
content: e.tooltip,
|
|
3328
3338
|
placement: e.placement
|
|
3329
3339
|
}, {
|
|
3330
|
-
default:
|
|
3331
|
-
|
|
3340
|
+
default: z(() => [
|
|
3341
|
+
i("span", {
|
|
3332
3342
|
class: "ds-deliverability-badge__glyph",
|
|
3333
3343
|
role: "img",
|
|
3334
3344
|
"aria-label": e.tooltip,
|
|
3335
3345
|
tabindex: e.focusable ? 0 : void 0
|
|
3336
|
-
}, f(e.label), 9,
|
|
3346
|
+
}, f(e.label), 9, Fi)
|
|
3337
3347
|
]),
|
|
3338
3348
|
_: 1
|
|
3339
3349
|
}, 8, ["content", "placement"]));
|
|
3340
3350
|
}
|
|
3341
|
-
}), Dt = /* @__PURE__ */
|
|
3351
|
+
}), Dt = /* @__PURE__ */ M(Gi, [["__scopeId", "data-v-5e908c13"]]), Hi = ["aria-label"], Wi = /* @__PURE__ */ x({
|
|
3342
3352
|
__name: "DsMoreCountChip",
|
|
3343
3353
|
props: {
|
|
3344
3354
|
overflow: { type: Number, required: !0 },
|
|
@@ -3350,21 +3360,21 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3350
3360
|
key: 0,
|
|
3351
3361
|
class: C(["ds-more-count-chip", { "is-active": e.active }]),
|
|
3352
3362
|
"aria-label": e.label || void 0
|
|
3353
|
-
}, "+" + f(e.overflow), 11,
|
|
3363
|
+
}, "+" + f(e.overflow), 11, Hi)) : h("", !0);
|
|
3354
3364
|
}
|
|
3355
|
-
}), Rt = /* @__PURE__ */
|
|
3365
|
+
}), Rt = /* @__PURE__ */ M(Wi, [["__scopeId", "data-v-583db8f3"]]), Ki = { class: "ds-contact-list" }, Yi = {
|
|
3356
3366
|
key: 0,
|
|
3357
3367
|
class: "ds-contact-list__header"
|
|
3358
|
-
},
|
|
3368
|
+
}, ji = {
|
|
3359
3369
|
key: 0,
|
|
3360
3370
|
class: "ds-contact-list__title"
|
|
3361
|
-
},
|
|
3371
|
+
}, Zi = {
|
|
3362
3372
|
key: 1,
|
|
3363
3373
|
class: "ds-contact-list__count"
|
|
3364
|
-
},
|
|
3374
|
+
}, Xi = { class: "ds-contact-list__actions" }, Qi = {
|
|
3365
3375
|
key: 1,
|
|
3366
3376
|
class: "ds-contact-list__empty"
|
|
3367
|
-
},
|
|
3377
|
+
}, Ji = {
|
|
3368
3378
|
key: 0,
|
|
3369
3379
|
class: "ds-contact-list__section"
|
|
3370
3380
|
}, es = ["aria-label"], ts = {
|
|
@@ -3374,10 +3384,10 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3374
3384
|
}, as = { class: "ds-contact-list__value-wrap" }, ls = {
|
|
3375
3385
|
key: 1,
|
|
3376
3386
|
class: "ds-contact-list__row-actions"
|
|
3377
|
-
},
|
|
3387
|
+
}, ns = ["aria-label", "title", "onClick"], is = {
|
|
3378
3388
|
class: "material-symbols-filled",
|
|
3379
3389
|
"aria-hidden": "true"
|
|
3380
|
-
}, ss = ["aria-label", "aria-pressed", "title", "onClick"], os = ["aria-label", "aria-pressed", "title", "onClick"], ds = /* @__PURE__ */
|
|
3390
|
+
}, ss = ["aria-label", "aria-pressed", "title", "onClick"], os = ["aria-label", "aria-pressed", "title", "onClick"], ds = /* @__PURE__ */ x({
|
|
3381
3391
|
__name: "DsContactList",
|
|
3382
3392
|
props: {
|
|
3383
3393
|
items: { type: Array, default: () => [] },
|
|
@@ -3400,19 +3410,19 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3400
3410
|
},
|
|
3401
3411
|
emits: [be, ye, me],
|
|
3402
3412
|
setup(e, { emit: s }) {
|
|
3403
|
-
const t = e, d = s,
|
|
3413
|
+
const t = e, d = s, n = g(() => t.sections.length ? t.sections.filter((r) => r.items.length > 0).map((r, v) => ({
|
|
3404
3414
|
key: `${r.type}-${v}`,
|
|
3405
3415
|
label: r.label,
|
|
3406
3416
|
type: r.type,
|
|
3407
3417
|
items: r.items
|
|
3408
|
-
})) : t.items.length ? [{ key: "group", label: "", type: t.type, items: t.items }] : []), o = g(() =>
|
|
3418
|
+
})) : t.items.length ? [{ key: "group", label: "", type: t.type, items: t.items }] : []), o = g(() => n.value.reduce((r, v) => r + v.items.length, 0));
|
|
3409
3419
|
function m(r) {
|
|
3410
3420
|
return t.kind === Qe.EMAIL && r.valid;
|
|
3411
3421
|
}
|
|
3412
3422
|
function c(r, v) {
|
|
3413
3423
|
var _;
|
|
3414
|
-
const
|
|
3415
|
-
return
|
|
3424
|
+
const S = (_ = r.type) != null ? _ : v.type;
|
|
3425
|
+
return S ? Ct[S] : "";
|
|
3416
3426
|
}
|
|
3417
3427
|
function b(r) {
|
|
3418
3428
|
var v;
|
|
@@ -3426,39 +3436,39 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3426
3436
|
y.value = null;
|
|
3427
3437
|
}, 1200), d(be, r);
|
|
3428
3438
|
}
|
|
3429
|
-
return re(() => clearTimeout(u)), (r, v) => (a(), l("div",
|
|
3430
|
-
e.title || r.$slots.actions ? (a(), l("div",
|
|
3431
|
-
e.title ? (a(), l("span",
|
|
3432
|
-
e.title ? (a(), l("span",
|
|
3433
|
-
|
|
3434
|
-
|
|
3439
|
+
return re(() => clearTimeout(u)), (r, v) => (a(), l("div", Ki, [
|
|
3440
|
+
e.title || r.$slots.actions ? (a(), l("div", Yi, [
|
|
3441
|
+
e.title ? (a(), l("span", ji, f(e.title), 1)) : h("", !0),
|
|
3442
|
+
e.title ? (a(), l("span", Zi, "(" + f(o.value) + ")", 1)) : h("", !0),
|
|
3443
|
+
i("span", Xi, [
|
|
3444
|
+
O(r.$slots, "actions", {}, void 0, !0)
|
|
3435
3445
|
])
|
|
3436
3446
|
])) : h("", !0),
|
|
3437
|
-
!o.value && e.emptyLabel ? (a(), l("p",
|
|
3438
|
-
(a(!0), l(
|
|
3439
|
-
key:
|
|
3447
|
+
!o.value && e.emptyLabel ? (a(), l("p", Qi, f(e.emptyLabel), 1)) : h("", !0),
|
|
3448
|
+
(a(!0), l(q, null, X(n.value, (S) => (a(), l(q, {
|
|
3449
|
+
key: S.key
|
|
3440
3450
|
}, [
|
|
3441
|
-
|
|
3442
|
-
|
|
3451
|
+
S.label ? (a(), l("p", Ji, f(S.label) + " (" + f(S.items.length) + ") ", 1)) : h("", !0),
|
|
3452
|
+
i("ul", {
|
|
3443
3453
|
class: "ds-contact-list__items",
|
|
3444
3454
|
role: "list",
|
|
3445
|
-
"aria-label":
|
|
3455
|
+
"aria-label": S.label || void 0
|
|
3446
3456
|
}, [
|
|
3447
|
-
(a(!0), l(
|
|
3448
|
-
var
|
|
3457
|
+
(a(!0), l(q, null, X(S.items, (_) => {
|
|
3458
|
+
var R;
|
|
3449
3459
|
return a(), l("li", {
|
|
3450
|
-
key: (
|
|
3460
|
+
key: (R = _.id) != null ? R : _.value,
|
|
3451
3461
|
class: C(["ds-contact-list__item", { "is-primary": _.primary, "is-masked": _.masked }])
|
|
3452
3462
|
}, [
|
|
3453
|
-
c(_,
|
|
3454
|
-
|
|
3455
|
-
|
|
3463
|
+
c(_, S) ? (a(), l("i", ts, f(c(_, S)), 1)) : h("", !0),
|
|
3464
|
+
i("span", as, [
|
|
3465
|
+
U($(It), {
|
|
3456
3466
|
class: "ds-contact-list__value",
|
|
3457
3467
|
value: _.value,
|
|
3458
3468
|
kind: e.kind,
|
|
3459
3469
|
masked: _.masked
|
|
3460
3470
|
}, null, 8, ["value", "kind", "masked"]),
|
|
3461
|
-
m(_) ? (a(), Q(
|
|
3471
|
+
m(_) ? (a(), Q($(Dt), {
|
|
3462
3472
|
key: 0,
|
|
3463
3473
|
label: e.badgeLabel,
|
|
3464
3474
|
tooltip: e.badgeTooltip,
|
|
@@ -3466,40 +3476,40 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3466
3476
|
}, null, 8, ["label", "tooltip"])) : h("", !0)
|
|
3467
3477
|
]),
|
|
3468
3478
|
_.masked ? h("", !0) : (a(), l("span", ls, [
|
|
3469
|
-
|
|
3479
|
+
i("button", {
|
|
3470
3480
|
type: "button",
|
|
3471
3481
|
class: C(["ds-contact-list__action", { "is-copied": y.value === b(_) }]),
|
|
3472
3482
|
"aria-label": y.value === b(_) ? e.copiedLabel : e.copyLabel,
|
|
3473
3483
|
title: y.value === b(_) ? e.copiedLabel : e.copyLabel,
|
|
3474
3484
|
onClick: (k) => p(_)
|
|
3475
3485
|
}, [
|
|
3476
|
-
|
|
3477
|
-
], 10,
|
|
3478
|
-
e.showRate ? (a(), l(
|
|
3479
|
-
|
|
3486
|
+
i("i", is, f(y.value === b(_) ? "check" : "content_copy"), 1)
|
|
3487
|
+
], 10, ns),
|
|
3488
|
+
e.showRate ? (a(), l(q, { key: 0 }, [
|
|
3489
|
+
i("button", {
|
|
3480
3490
|
type: "button",
|
|
3481
3491
|
class: C(["ds-contact-list__action", { "is-on": _.rating === !0 }]),
|
|
3482
3492
|
"aria-label": e.correctLabel,
|
|
3483
3493
|
"aria-pressed": _.rating === !0,
|
|
3484
3494
|
title: e.correctLabel,
|
|
3485
|
-
onClick: (k) => d(
|
|
3495
|
+
onClick: (k) => d($(ye), _)
|
|
3486
3496
|
}, [
|
|
3487
|
-
|
|
3497
|
+
i("i", {
|
|
3488
3498
|
class: C(
|
|
3489
3499
|
_.rating === !0 ? "material-symbols-filled" : "material-symbols-rounded"
|
|
3490
3500
|
),
|
|
3491
3501
|
"aria-hidden": "true"
|
|
3492
3502
|
}, "thumb_up", 2)
|
|
3493
3503
|
], 10, ss),
|
|
3494
|
-
|
|
3504
|
+
i("button", {
|
|
3495
3505
|
type: "button",
|
|
3496
3506
|
class: C(["ds-contact-list__action", { "is-on": _.rating === !1 }]),
|
|
3497
3507
|
"aria-label": e.incorrectLabel,
|
|
3498
3508
|
"aria-pressed": _.rating === !1,
|
|
3499
3509
|
title: e.incorrectLabel,
|
|
3500
|
-
onClick: (k) => d(
|
|
3510
|
+
onClick: (k) => d($(me), _)
|
|
3501
3511
|
}, [
|
|
3502
|
-
|
|
3512
|
+
i("i", {
|
|
3503
3513
|
class: C(
|
|
3504
3514
|
_.rating === !1 ? "material-symbols-filled" : "material-symbols-rounded"
|
|
3505
3515
|
),
|
|
@@ -3514,14 +3524,14 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3514
3524
|
], 64))), 128))
|
|
3515
3525
|
]));
|
|
3516
3526
|
}
|
|
3517
|
-
}), rs = /* @__PURE__ */
|
|
3527
|
+
}), rs = /* @__PURE__ */ M(ds, [["__scopeId", "data-v-97c7a4ae"]]), cs = ["aria-haspopup", "aria-expanded"], us = {
|
|
3518
3528
|
key: 0,
|
|
3519
3529
|
class: "material-symbols-filled ds-contact-cell__icon",
|
|
3520
3530
|
"aria-hidden": "true"
|
|
3521
3531
|
}, fs = { class: "ds-contact-cell__value-wrap" }, vs = {
|
|
3522
3532
|
key: 1,
|
|
3523
3533
|
class: "ds-contact-cell__empty"
|
|
3524
|
-
}, bs = /* @__PURE__ */
|
|
3534
|
+
}, bs = /* @__PURE__ */ x({
|
|
3525
3535
|
__name: "DsContactCell",
|
|
3526
3536
|
props: {
|
|
3527
3537
|
items: { type: Array, required: !0 },
|
|
@@ -3542,7 +3552,7 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3542
3552
|
disabled: { type: Boolean, default: !1 },
|
|
3543
3553
|
placement: {
|
|
3544
3554
|
type: String,
|
|
3545
|
-
default:
|
|
3555
|
+
default: Be.OVER_START
|
|
3546
3556
|
// export TypedCell: over the cell, `top: −8`
|
|
3547
3557
|
},
|
|
3548
3558
|
// Contract §3.5: ¼ of the cell's width to the right.
|
|
@@ -3556,51 +3566,51 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3556
3566
|
correctLabel: { type: String, default: "Correct" },
|
|
3557
3567
|
incorrectLabel: { type: String, default: "Incorrect" }
|
|
3558
3568
|
},
|
|
3559
|
-
emits: [
|
|
3569
|
+
emits: [ne, be, ye, me],
|
|
3560
3570
|
setup(e, { emit: s }) {
|
|
3561
|
-
const t = e, d = s,
|
|
3571
|
+
const t = e, d = s, n = V(!1), o = V(!1), m = g(() => {
|
|
3562
3572
|
var L;
|
|
3563
3573
|
return (L = t.items[0]) != null ? L : null;
|
|
3564
|
-
}), c = g(() => !t.disabled && t.items.length > 0), b = g(() => c.value &&
|
|
3574
|
+
}), c = g(() => !t.disabled && t.items.length > 0), b = g(() => c.value && n.value), y = g(() => {
|
|
3565
3575
|
var L;
|
|
3566
|
-
return
|
|
3576
|
+
return Pi((L = t.count) != null ? L : t.items.length);
|
|
3567
3577
|
}), u = g(
|
|
3568
3578
|
() => !!m.value && t.kind === Qe.EMAIL && m.value.valid
|
|
3569
3579
|
), p = g(() => t.type ? Ct[t.type] : "");
|
|
3570
3580
|
let r;
|
|
3571
3581
|
function v(L) {
|
|
3572
|
-
|
|
3582
|
+
n.value !== L && (n.value = L, d(ne, L));
|
|
3573
3583
|
}
|
|
3574
|
-
function
|
|
3584
|
+
function S() {
|
|
3575
3585
|
c.value && (clearTimeout(r), o.value || v(!0));
|
|
3576
3586
|
}
|
|
3577
3587
|
function _() {
|
|
3578
3588
|
!c.value || o.value || (clearTimeout(r), r = setTimeout(() => v(!1), t.leaveDelay));
|
|
3579
3589
|
}
|
|
3580
|
-
function
|
|
3590
|
+
function R() {
|
|
3581
3591
|
c.value && (clearTimeout(r), o.value ? (o.value = !1, v(!1)) : (o.value = !0, v(!0)));
|
|
3582
3592
|
}
|
|
3583
3593
|
function k(L) {
|
|
3584
3594
|
L || (o.value = !1, clearTimeout(r), v(!1));
|
|
3585
3595
|
}
|
|
3586
|
-
function
|
|
3587
|
-
L.key !== "Escape" || !
|
|
3596
|
+
function T(L) {
|
|
3597
|
+
L.key !== "Escape" || !n.value || (o.value = !1, v(!1));
|
|
3588
3598
|
}
|
|
3589
|
-
return J(
|
|
3590
|
-
typeof document != "undefined" && (L ? document.addEventListener("keydown",
|
|
3599
|
+
return J(n, (L) => {
|
|
3600
|
+
typeof document != "undefined" && (L ? document.addEventListener("keydown", T) : document.removeEventListener("keydown", T));
|
|
3591
3601
|
}), re(() => {
|
|
3592
|
-
clearTimeout(r), typeof document != "undefined" && document.removeEventListener("keydown",
|
|
3593
|
-
}), (L,
|
|
3602
|
+
clearTimeout(r), typeof document != "undefined" && document.removeEventListener("keydown", T);
|
|
3603
|
+
}), (L, B) => (a(), l("div", {
|
|
3594
3604
|
class: C(["ds-contact-cell", {
|
|
3595
3605
|
"is-open": b.value,
|
|
3596
3606
|
"is-pinned": o.value,
|
|
3597
3607
|
"is-empty": !m.value,
|
|
3598
3608
|
"is-disabled": e.disabled
|
|
3599
3609
|
}]),
|
|
3600
|
-
onMouseenter:
|
|
3610
|
+
onMouseenter: S,
|
|
3601
3611
|
onMouseleave: _
|
|
3602
3612
|
}, [
|
|
3603
|
-
|
|
3613
|
+
U($(ze), {
|
|
3604
3614
|
open: b.value,
|
|
3605
3615
|
placement: e.placement,
|
|
3606
3616
|
offset: e.offset,
|
|
@@ -3609,31 +3619,31 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3609
3619
|
"trigger-on-click": !1,
|
|
3610
3620
|
"onUpdate:open": k
|
|
3611
3621
|
}, {
|
|
3612
|
-
trigger:
|
|
3613
|
-
|
|
3622
|
+
trigger: z(() => [
|
|
3623
|
+
i("button", {
|
|
3614
3624
|
type: "button",
|
|
3615
3625
|
class: "ds-contact-cell__trigger",
|
|
3616
3626
|
"aria-haspopup": c.value ? "dialog" : void 0,
|
|
3617
3627
|
"aria-expanded": c.value ? b.value : void 0,
|
|
3618
|
-
onClick:
|
|
3628
|
+
onClick: R
|
|
3619
3629
|
}, [
|
|
3620
|
-
m.value ? (a(), l(
|
|
3630
|
+
m.value ? (a(), l(q, { key: 0 }, [
|
|
3621
3631
|
p.value ? (a(), l("i", us, f(p.value), 1)) : h("", !0),
|
|
3622
|
-
|
|
3623
|
-
|
|
3632
|
+
i("span", fs, [
|
|
3633
|
+
U($(It), {
|
|
3624
3634
|
class: "ds-contact-cell__value",
|
|
3625
3635
|
value: m.value.value,
|
|
3626
3636
|
kind: e.kind,
|
|
3627
3637
|
masked: m.value.masked
|
|
3628
3638
|
}, null, 8, ["value", "kind", "masked"]),
|
|
3629
|
-
u.value ? (a(), Q(
|
|
3639
|
+
u.value ? (a(), Q($(Dt), {
|
|
3630
3640
|
key: 0,
|
|
3631
3641
|
label: e.badgeLabel,
|
|
3632
3642
|
tooltip: e.badgeTooltip,
|
|
3633
3643
|
focusable: !1
|
|
3634
3644
|
}, null, 8, ["label", "tooltip"])) : h("", !0)
|
|
3635
3645
|
]),
|
|
3636
|
-
|
|
3646
|
+
U($(Rt), {
|
|
3637
3647
|
overflow: y.value,
|
|
3638
3648
|
active: b.value,
|
|
3639
3649
|
label: e.moreLabel
|
|
@@ -3641,8 +3651,8 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3641
3651
|
], 64)) : (a(), l("span", vs, f(e.emptyLabel), 1))
|
|
3642
3652
|
], 8, cs)
|
|
3643
3653
|
]),
|
|
3644
|
-
default:
|
|
3645
|
-
|
|
3654
|
+
default: z(() => [
|
|
3655
|
+
U($(rs), {
|
|
3646
3656
|
items: e.items,
|
|
3647
3657
|
sections: e.sections,
|
|
3648
3658
|
kind: e.kind,
|
|
@@ -3655,14 +3665,14 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3655
3665
|
"copied-label": e.copiedLabel,
|
|
3656
3666
|
"correct-label": e.correctLabel,
|
|
3657
3667
|
"incorrect-label": e.incorrectLabel,
|
|
3658
|
-
onCopy:
|
|
3659
|
-
onCorrect:
|
|
3660
|
-
onIncorrect:
|
|
3668
|
+
onCopy: B[0] || (B[0] = (j) => d($(be), j)),
|
|
3669
|
+
onCorrect: B[1] || (B[1] = (j) => d($(ye), j)),
|
|
3670
|
+
onIncorrect: B[2] || (B[2] = (j) => d($(me), j))
|
|
3661
3671
|
}, je({ _: 2 }, [
|
|
3662
3672
|
L.$slots.actions ? {
|
|
3663
3673
|
name: "actions",
|
|
3664
|
-
fn:
|
|
3665
|
-
|
|
3674
|
+
fn: z(() => [
|
|
3675
|
+
O(L.$slots, "actions", {}, void 0, !0)
|
|
3666
3676
|
]),
|
|
3667
3677
|
key: "0"
|
|
3668
3678
|
} : void 0
|
|
@@ -3672,7 +3682,7 @@ const Vn = ["title"], qn = /* @__PURE__ */ O({
|
|
|
3672
3682
|
}, 8, ["open", "placement", "offset", "width"])
|
|
3673
3683
|
], 34));
|
|
3674
3684
|
}
|
|
3675
|
-
}), uo = /* @__PURE__ */
|
|
3685
|
+
}), uo = /* @__PURE__ */ M(bs, [["__scopeId", "data-v-c4f75a79"]]), Ee = {
|
|
3676
3686
|
MEDIUM: "medium",
|
|
3677
3687
|
LARGE: "large"
|
|
3678
3688
|
}, Ue = {
|
|
@@ -3687,12 +3697,12 @@ function Je(e, s) {
|
|
|
3687
3697
|
return t ? e.filter((d) => d.name.toLowerCase().includes(t)) : [...e];
|
|
3688
3698
|
}
|
|
3689
3699
|
function et(e) {
|
|
3690
|
-
return e === Ue.END ?
|
|
3700
|
+
return e === Ue.END ? Be.BOTTOM_END : Be.BOTTOM_START;
|
|
3691
3701
|
}
|
|
3692
3702
|
const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__menu" }, hs = ["aria-label"], ps = { class: "ds-saved-button__option-name" }, ks = {
|
|
3693
3703
|
key: 0,
|
|
3694
3704
|
class: "ds-saved-button__empty"
|
|
3695
|
-
}, Ss = { class: "ds-saved-button__footer" }, $s = /* @__PURE__ */
|
|
3705
|
+
}, Ss = { class: "ds-saved-button__footer" }, $s = /* @__PURE__ */ x({
|
|
3696
3706
|
__name: "DsSavedButton",
|
|
3697
3707
|
props: {
|
|
3698
3708
|
label: { type: String, required: !0 },
|
|
@@ -3710,70 +3720,70 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
3710
3720
|
align: { type: String, default: Ue.END },
|
|
3711
3721
|
disabled: { type: Boolean, default: !1 }
|
|
3712
3722
|
},
|
|
3713
|
-
emits: [bt,
|
|
3723
|
+
emits: [bt, Oe, fe, ne],
|
|
3714
3724
|
setup(e, { emit: s }) {
|
|
3715
|
-
const t = e, d = s,
|
|
3716
|
-
() => t.size === Ee.LARGE ?
|
|
3725
|
+
const t = e, d = s, n = V(!1), o = V(""), m = $e(), c = g(() => et(t.align)), b = g(() => Je(t.folders, o.value)), y = g(
|
|
3726
|
+
() => t.size === Ee.LARGE ? ie.LARGE : ie.MEDIUM
|
|
3717
3727
|
);
|
|
3718
3728
|
function u(_) {
|
|
3719
3729
|
return t.folder !== null && t.folder.id === _.id;
|
|
3720
3730
|
}
|
|
3721
3731
|
function p(_) {
|
|
3722
|
-
|
|
3732
|
+
n.value !== _ && (_ && (o.value = ""), n.value = _, d(ne, _));
|
|
3723
3733
|
}
|
|
3724
3734
|
function r() {
|
|
3725
|
-
t.disabled || p(!
|
|
3735
|
+
t.disabled || p(!n.value);
|
|
3726
3736
|
}
|
|
3727
3737
|
function v(_) {
|
|
3728
3738
|
d(bt, _), p(!1);
|
|
3729
3739
|
}
|
|
3730
|
-
function
|
|
3731
|
-
d(
|
|
3740
|
+
function S() {
|
|
3741
|
+
d(Oe, o.value.trim()), p(!1);
|
|
3732
3742
|
}
|
|
3733
|
-
return J(o, (_) => d(fe, _)), (_,
|
|
3734
|
-
class: C(["ds-saved-button", [`ds-saved-button--${e.size}`, { "is-open":
|
|
3743
|
+
return J(o, (_) => d(fe, _)), (_, R) => (a(), l("div", {
|
|
3744
|
+
class: C(["ds-saved-button", [`ds-saved-button--${e.size}`, { "is-open": n.value, "is-disabled": e.disabled }]])
|
|
3735
3745
|
}, [
|
|
3736
|
-
|
|
3737
|
-
open:
|
|
3746
|
+
U($(ze), {
|
|
3747
|
+
open: n.value,
|
|
3738
3748
|
placement: c.value,
|
|
3739
3749
|
width: "300px",
|
|
3740
3750
|
"trigger-on-click": !1,
|
|
3741
3751
|
"onUpdate:open": p
|
|
3742
3752
|
}, {
|
|
3743
|
-
trigger:
|
|
3744
|
-
|
|
3753
|
+
trigger: z(() => [
|
|
3754
|
+
U($(Pe), {
|
|
3745
3755
|
content: e.tooltip,
|
|
3746
|
-
disabled: !e.tooltip ||
|
|
3756
|
+
disabled: !e.tooltip || n.value,
|
|
3747
3757
|
placement: "bottom"
|
|
3748
3758
|
}, {
|
|
3749
|
-
default:
|
|
3750
|
-
|
|
3759
|
+
default: z(() => [
|
|
3760
|
+
U($(ae), {
|
|
3751
3761
|
class: "ds-saved-button__trigger",
|
|
3752
|
-
variant:
|
|
3762
|
+
variant: $(de).OUTLINE,
|
|
3753
3763
|
size: y.value,
|
|
3754
3764
|
pill: e.pill,
|
|
3755
3765
|
disabled: e.disabled,
|
|
3756
3766
|
"aria-haspopup": "listbox",
|
|
3757
|
-
"aria-expanded":
|
|
3767
|
+
"aria-expanded": n.value,
|
|
3758
3768
|
onClick: r
|
|
3759
3769
|
}, je({
|
|
3760
|
-
trailing:
|
|
3761
|
-
|
|
3770
|
+
trailing: z(() => [
|
|
3771
|
+
R[1] || (R[1] = i("i", {
|
|
3762
3772
|
class: "material-symbols-filled ds-saved-button__caret",
|
|
3763
3773
|
"aria-hidden": "true"
|
|
3764
3774
|
}, "keyboard_arrow_down", -1))
|
|
3765
3775
|
]),
|
|
3766
|
-
default:
|
|
3767
|
-
|
|
3776
|
+
default: z(() => [
|
|
3777
|
+
i("span", ms, f(e.label), 1)
|
|
3768
3778
|
]),
|
|
3769
3779
|
_: 2
|
|
3770
3780
|
}, [
|
|
3771
3781
|
e.folder ? {
|
|
3772
3782
|
name: "leading",
|
|
3773
|
-
fn:
|
|
3774
|
-
|
|
3783
|
+
fn: z(() => [
|
|
3784
|
+
i("i", {
|
|
3775
3785
|
class: "material-symbols-filled ds-saved-button__icon",
|
|
3776
|
-
style:
|
|
3786
|
+
style: G({ color: e.folder.color }),
|
|
3777
3787
|
"aria-hidden": "true"
|
|
3778
3788
|
}, f(e.icon), 5)
|
|
3779
3789
|
]),
|
|
@@ -3784,57 +3794,57 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
3784
3794
|
_: 1
|
|
3785
3795
|
}, 8, ["content", "disabled"])
|
|
3786
3796
|
]),
|
|
3787
|
-
default:
|
|
3788
|
-
|
|
3789
|
-
|
|
3797
|
+
default: z(() => [
|
|
3798
|
+
i("div", gs, [
|
|
3799
|
+
U($(Ze), {
|
|
3790
3800
|
modelValue: o.value,
|
|
3791
|
-
"onUpdate:modelValue":
|
|
3801
|
+
"onUpdate:modelValue": R[0] || (R[0] = (k) => o.value = k),
|
|
3792
3802
|
class: "ds-saved-button__search",
|
|
3793
3803
|
type: "search",
|
|
3794
3804
|
size: "sm",
|
|
3795
3805
|
placeholder: e.searchPlaceholder
|
|
3796
3806
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
3797
|
-
|
|
3798
|
-
|
|
3807
|
+
R[3] || (R[3] = i("div", { class: "ds-saved-button__divider" }, null, -1)),
|
|
3808
|
+
i("div", {
|
|
3799
3809
|
class: "ds-saved-button__list",
|
|
3800
3810
|
role: "radiogroup",
|
|
3801
3811
|
"aria-label": e.label
|
|
3802
3812
|
}, [
|
|
3803
|
-
(a(!0), l(
|
|
3813
|
+
(a(!0), l(q, null, X(b.value, (k) => (a(), l("div", {
|
|
3804
3814
|
key: k.id,
|
|
3805
3815
|
class: C(["ds-saved-button__option", { "is-current": u(k) }])
|
|
3806
3816
|
}, [
|
|
3807
|
-
|
|
3808
|
-
name:
|
|
3817
|
+
U($(Tt), {
|
|
3818
|
+
name: $(m),
|
|
3809
3819
|
value: String(k.id),
|
|
3810
3820
|
"model-value": u(k),
|
|
3811
|
-
"onUpdate:modelValue": (
|
|
3821
|
+
"onUpdate:modelValue": (T) => v(k)
|
|
3812
3822
|
}, {
|
|
3813
|
-
default:
|
|
3814
|
-
|
|
3823
|
+
default: z(() => [
|
|
3824
|
+
i("i", {
|
|
3815
3825
|
class: "material-symbols-filled ds-saved-button__option-icon",
|
|
3816
|
-
style:
|
|
3826
|
+
style: G({ color: k.color }),
|
|
3817
3827
|
"aria-hidden": "true"
|
|
3818
3828
|
}, f(e.icon), 5),
|
|
3819
|
-
|
|
3829
|
+
i("span", ps, f(k.name), 1)
|
|
3820
3830
|
]),
|
|
3821
3831
|
_: 2
|
|
3822
3832
|
}, 1032, ["name", "value", "model-value", "onUpdate:modelValue"])
|
|
3823
3833
|
], 2))), 128)),
|
|
3824
3834
|
!b.value.length && e.emptyLabel ? (a(), l("p", ks, f(e.emptyLabel), 1)) : h("", !0)
|
|
3825
3835
|
], 8, hs),
|
|
3826
|
-
e.createLabel || _.$slots.footer ? (a(), l(
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
variant:
|
|
3832
|
-
size:
|
|
3836
|
+
e.createLabel || _.$slots.footer ? (a(), l(q, { key: 0 }, [
|
|
3837
|
+
R[2] || (R[2] = i("div", { class: "ds-saved-button__divider" }, null, -1)),
|
|
3838
|
+
i("div", Ss, [
|
|
3839
|
+
O(_.$slots, "footer", { query: o.value }, () => [
|
|
3840
|
+
U($(ae), {
|
|
3841
|
+
variant: $(de).TERTIARY,
|
|
3842
|
+
size: $(ie).LARGE,
|
|
3833
3843
|
"left-icon": "add",
|
|
3834
|
-
onClick:
|
|
3844
|
+
onClick: S
|
|
3835
3845
|
}, {
|
|
3836
|
-
default:
|
|
3837
|
-
|
|
3846
|
+
default: z(() => [
|
|
3847
|
+
Z(f(e.createLabel), 1)
|
|
3838
3848
|
]),
|
|
3839
3849
|
_: 1
|
|
3840
3850
|
}, 8, ["variant", "size"])
|
|
@@ -3847,10 +3857,10 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
3847
3857
|
}, 8, ["open", "placement"])
|
|
3848
3858
|
], 2));
|
|
3849
3859
|
}
|
|
3850
|
-
}), fo = /* @__PURE__ */
|
|
3860
|
+
}), fo = /* @__PURE__ */ M($s, [["__scopeId", "data-v-40ca86cd"]]), _s = { class: "ds-tag-picker__label" }, Ls = { class: "ds-tag-picker__menu" }, Es = ["aria-label"], ws = { class: "ds-tag-picker__name" }, Ts = { class: "ds-tag-picker__create-query" }, Cs = {
|
|
3851
3861
|
key: 1,
|
|
3852
3862
|
class: "ds-tag-picker__empty"
|
|
3853
|
-
}, Is = { class: "ds-tag-picker__footer" }, Ds = /* @__PURE__ */
|
|
3863
|
+
}, Is = { class: "ds-tag-picker__footer" }, Ds = /* @__PURE__ */ x({
|
|
3854
3864
|
__name: "DsTagPicker",
|
|
3855
3865
|
props: {
|
|
3856
3866
|
label: { type: String, required: !0 },
|
|
@@ -3869,72 +3879,72 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
3869
3879
|
align: { type: String, default: Ue.START },
|
|
3870
3880
|
disabled: { type: Boolean, default: !1 }
|
|
3871
3881
|
},
|
|
3872
|
-
emits: [yt,
|
|
3882
|
+
emits: [yt, Oe, fe, ne],
|
|
3873
3883
|
setup(e, { emit: s }) {
|
|
3874
|
-
const t = e, d = s,
|
|
3884
|
+
const t = e, d = s, n = V(!1), o = V(""), m = V(/* @__PURE__ */ new Set()), c = g(() => t.tags.length > 0), b = g(() => et(t.align)), y = g(() => Je(t.options, o.value)), u = g(() => o.value.trim()), p = g(() => {
|
|
3875
3885
|
if (!t.createLabel || !u.value) return !1;
|
|
3876
|
-
const
|
|
3877
|
-
return !t.options.some((L) => L.name.toLowerCase() ===
|
|
3886
|
+
const T = u.value.toLowerCase();
|
|
3887
|
+
return !t.options.some((L) => L.name.toLowerCase() === T);
|
|
3878
3888
|
}), r = g(
|
|
3879
|
-
() => t.size === Ee.LARGE ?
|
|
3889
|
+
() => t.size === Ee.LARGE ? ie.LARGE : ie.MEDIUM
|
|
3880
3890
|
);
|
|
3881
|
-
function v(
|
|
3882
|
-
|
|
3891
|
+
function v(T) {
|
|
3892
|
+
n.value !== T && (T && (o.value = "", m.value = new Set(t.tags.map((L) => L.id))), n.value = T, d(ne, T));
|
|
3883
3893
|
}
|
|
3884
|
-
function
|
|
3885
|
-
t.disabled || v(!
|
|
3894
|
+
function S() {
|
|
3895
|
+
t.disabled || v(!n.value);
|
|
3886
3896
|
}
|
|
3887
|
-
function _(
|
|
3888
|
-
const
|
|
3889
|
-
L ?
|
|
3897
|
+
function _(T, L) {
|
|
3898
|
+
const B = new Set(m.value);
|
|
3899
|
+
L ? B.add(T.id) : B.delete(T.id), m.value = B;
|
|
3890
3900
|
}
|
|
3891
|
-
function
|
|
3892
|
-
const
|
|
3893
|
-
...t.options.filter((
|
|
3894
|
-
...t.tags.filter((
|
|
3901
|
+
function R() {
|
|
3902
|
+
const T = new Set(t.options.map((B) => B.id)), L = [
|
|
3903
|
+
...t.options.filter((B) => m.value.has(B.id)),
|
|
3904
|
+
...t.tags.filter((B) => m.value.has(B.id) && !T.has(B.id))
|
|
3895
3905
|
];
|
|
3896
3906
|
d(yt, L), v(!1);
|
|
3897
3907
|
}
|
|
3898
3908
|
function k() {
|
|
3899
|
-
d(
|
|
3909
|
+
d(Oe, u.value);
|
|
3900
3910
|
}
|
|
3901
|
-
return J(o, (
|
|
3911
|
+
return J(o, (T) => d(fe, T)), (T, L) => (a(), l("div", {
|
|
3902
3912
|
class: C(["ds-tag-picker", [
|
|
3903
3913
|
`ds-tag-picker--${e.size}`,
|
|
3904
|
-
{ "is-open":
|
|
3914
|
+
{ "is-open": n.value, "is-disabled": e.disabled, "has-tags": c.value }
|
|
3905
3915
|
]])
|
|
3906
3916
|
}, [
|
|
3907
|
-
|
|
3908
|
-
open:
|
|
3917
|
+
U($(ze), {
|
|
3918
|
+
open: n.value,
|
|
3909
3919
|
placement: b.value,
|
|
3910
3920
|
width: "240px",
|
|
3911
3921
|
"trigger-on-click": !1,
|
|
3912
3922
|
"onUpdate:open": v
|
|
3913
3923
|
}, {
|
|
3914
|
-
trigger:
|
|
3915
|
-
|
|
3924
|
+
trigger: z(() => [
|
|
3925
|
+
U($(ae), {
|
|
3916
3926
|
class: "ds-tag-picker__trigger",
|
|
3917
|
-
variant:
|
|
3927
|
+
variant: $(de).OUTLINE,
|
|
3918
3928
|
size: r.value,
|
|
3919
3929
|
pill: e.pill,
|
|
3920
3930
|
disabled: e.disabled,
|
|
3921
3931
|
"aria-haspopup": "dialog",
|
|
3922
|
-
"aria-expanded":
|
|
3923
|
-
onClick:
|
|
3932
|
+
"aria-expanded": n.value,
|
|
3933
|
+
onClick: S
|
|
3924
3934
|
}, je({
|
|
3925
|
-
leading:
|
|
3926
|
-
|
|
3935
|
+
leading: z(() => [
|
|
3936
|
+
i("i", {
|
|
3927
3937
|
class: "material-symbols-filled ds-tag-picker__icon",
|
|
3928
|
-
style:
|
|
3938
|
+
style: G(c.value ? { color: e.tags[0].color } : void 0),
|
|
3929
3939
|
"aria-hidden": "true"
|
|
3930
3940
|
}, f(c.value ? "sell" : "label"), 5)
|
|
3931
3941
|
]),
|
|
3932
|
-
default:
|
|
3933
|
-
|
|
3934
|
-
c.value ? (a(), l(
|
|
3935
|
-
|
|
3936
|
-
], 64)) : (a(), l(
|
|
3937
|
-
|
|
3942
|
+
default: z(() => [
|
|
3943
|
+
i("span", _s, [
|
|
3944
|
+
c.value ? (a(), l(q, { key: 0 }, [
|
|
3945
|
+
Z(f(e.taggedAsLabel) + " " + f(e.tags[0].name), 1)
|
|
3946
|
+
], 64)) : (a(), l(q, { key: 1 }, [
|
|
3947
|
+
Z(f(e.label), 1)
|
|
3938
3948
|
], 64))
|
|
3939
3949
|
])
|
|
3940
3950
|
]),
|
|
@@ -3942,8 +3952,8 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
3942
3952
|
}, [
|
|
3943
3953
|
c.value ? {
|
|
3944
3954
|
name: "trailing",
|
|
3945
|
-
fn:
|
|
3946
|
-
|
|
3955
|
+
fn: z(() => [
|
|
3956
|
+
U($(Rt), {
|
|
3947
3957
|
overflow: e.tags.length - 1,
|
|
3948
3958
|
label: e.moreLabel
|
|
3949
3959
|
}, null, 8, ["overflow", "label"])
|
|
@@ -3952,37 +3962,37 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
3952
3962
|
} : void 0
|
|
3953
3963
|
]), 1032, ["variant", "size", "pill", "disabled", "aria-expanded"])
|
|
3954
3964
|
]),
|
|
3955
|
-
default:
|
|
3956
|
-
|
|
3957
|
-
|
|
3965
|
+
default: z(() => [
|
|
3966
|
+
i("div", Ls, [
|
|
3967
|
+
U($(Ze), {
|
|
3958
3968
|
modelValue: o.value,
|
|
3959
|
-
"onUpdate:modelValue": L[0] || (L[0] = (
|
|
3969
|
+
"onUpdate:modelValue": L[0] || (L[0] = (B) => o.value = B),
|
|
3960
3970
|
class: "ds-tag-picker__search",
|
|
3961
3971
|
type: "search",
|
|
3962
3972
|
size: "sm",
|
|
3963
3973
|
placeholder: e.searchPlaceholder
|
|
3964
3974
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
3965
|
-
L[2] || (L[2] =
|
|
3966
|
-
|
|
3975
|
+
L[2] || (L[2] = i("div", { class: "ds-tag-picker__divider" }, null, -1)),
|
|
3976
|
+
i("div", {
|
|
3967
3977
|
class: "ds-tag-picker__list",
|
|
3968
3978
|
role: "group",
|
|
3969
3979
|
"aria-label": e.label
|
|
3970
3980
|
}, [
|
|
3971
|
-
(a(!0), l(
|
|
3972
|
-
key:
|
|
3981
|
+
(a(!0), l(q, null, X(y.value, (B) => (a(), l("div", {
|
|
3982
|
+
key: B.id,
|
|
3973
3983
|
class: "ds-tag-picker__option"
|
|
3974
3984
|
}, [
|
|
3975
|
-
|
|
3976
|
-
"model-value": m.value.has(
|
|
3977
|
-
"onUpdate:modelValue": (
|
|
3985
|
+
U($(Me), {
|
|
3986
|
+
"model-value": m.value.has(B.id),
|
|
3987
|
+
"onUpdate:modelValue": (j) => _(B, j)
|
|
3978
3988
|
}, {
|
|
3979
|
-
default:
|
|
3980
|
-
|
|
3989
|
+
default: z(() => [
|
|
3990
|
+
i("span", {
|
|
3981
3991
|
class: "ds-tag-picker__dot",
|
|
3982
|
-
style:
|
|
3992
|
+
style: G({ background: B.color }),
|
|
3983
3993
|
"aria-hidden": "true"
|
|
3984
3994
|
}, null, 4),
|
|
3985
|
-
|
|
3995
|
+
i("span", ws, f(B.name), 1)
|
|
3986
3996
|
]),
|
|
3987
3997
|
_: 2
|
|
3988
3998
|
}, 1032, ["model-value", "onUpdate:modelValue"])
|
|
@@ -3993,25 +4003,25 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
3993
4003
|
class: "ds-tag-picker__create",
|
|
3994
4004
|
onClick: k
|
|
3995
4005
|
}, [
|
|
3996
|
-
L[1] || (L[1] =
|
|
4006
|
+
L[1] || (L[1] = i("i", {
|
|
3997
4007
|
class: "material-symbols-filled",
|
|
3998
4008
|
"aria-hidden": "true"
|
|
3999
4009
|
}, "add", -1)),
|
|
4000
|
-
|
|
4001
|
-
|
|
4010
|
+
i("span", null, f(e.createLabel), 1),
|
|
4011
|
+
i("span", Ts, "“" + f(u.value) + "”", 1)
|
|
4002
4012
|
])) : h("", !0),
|
|
4003
4013
|
!y.value.length && !p.value && e.emptyLabel ? (a(), l("p", Cs, f(e.emptyLabel), 1)) : h("", !0)
|
|
4004
4014
|
], 8, Es),
|
|
4005
|
-
L[3] || (L[3] =
|
|
4006
|
-
|
|
4007
|
-
|
|
4015
|
+
L[3] || (L[3] = i("div", { class: "ds-tag-picker__divider" }, null, -1)),
|
|
4016
|
+
i("div", Is, [
|
|
4017
|
+
U($(ae), {
|
|
4008
4018
|
class: "ds-tag-picker__apply",
|
|
4009
|
-
variant:
|
|
4010
|
-
size:
|
|
4011
|
-
onClick:
|
|
4019
|
+
variant: $(de).PRIMARY,
|
|
4020
|
+
size: $(ie).MEDIUM,
|
|
4021
|
+
onClick: R
|
|
4012
4022
|
}, {
|
|
4013
|
-
default:
|
|
4014
|
-
|
|
4023
|
+
default: z(() => [
|
|
4024
|
+
Z(f(e.applyLabel), 1)
|
|
4015
4025
|
]),
|
|
4016
4026
|
_: 1
|
|
4017
4027
|
}, 8, ["variant", "size"])
|
|
@@ -4022,16 +4032,16 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
4022
4032
|
}, 8, ["open", "placement"])
|
|
4023
4033
|
], 2));
|
|
4024
4034
|
}
|
|
4025
|
-
}), vo = /* @__PURE__ */
|
|
4035
|
+
}), vo = /* @__PURE__ */ M(Ds, [["__scopeId", "data-v-6ed1874a"]]), Lt = {
|
|
4026
4036
|
SECONDARY: "secondary",
|
|
4027
4037
|
PRIMARY: "primary"
|
|
4028
|
-
}, Rs = { class: "ds-add-to-sequence__label" }, As = { class: "ds-add-to-sequence__menu" }, Ns = { class: "ds-add-to-sequence__section" },
|
|
4038
|
+
}, Rs = { class: "ds-add-to-sequence__label" }, As = { class: "ds-add-to-sequence__menu" }, Ns = { class: "ds-add-to-sequence__section" }, Os = ["aria-label"], Bs = {
|
|
4029
4039
|
key: 0,
|
|
4030
4040
|
class: "ds-add-to-sequence__section"
|
|
4031
4041
|
}, xs = ["aria-label"], Ms = {
|
|
4032
4042
|
key: 0,
|
|
4033
4043
|
class: "ds-add-to-sequence__empty"
|
|
4034
|
-
}, Ps = { class: "ds-add-to-sequence__footer" }, zs = /* @__PURE__ */
|
|
4044
|
+
}, Ps = { class: "ds-add-to-sequence__footer" }, zs = /* @__PURE__ */ x({
|
|
4035
4045
|
__name: "DsAddToSequence",
|
|
4036
4046
|
props: {
|
|
4037
4047
|
label: { type: String, required: !0 },
|
|
@@ -4057,70 +4067,70 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
4057
4067
|
align: { type: String, default: Ue.END },
|
|
4058
4068
|
disabled: { type: Boolean, default: !1 }
|
|
4059
4069
|
},
|
|
4060
|
-
emits: [mt, fe,
|
|
4070
|
+
emits: [mt, fe, ne],
|
|
4061
4071
|
setup(e, { emit: s }) {
|
|
4062
|
-
const t = e, d = s,
|
|
4072
|
+
const t = e, d = s, n = V(!1), o = V(""), m = V(t.defaultChannel), c = V(/* @__PURE__ */ new Set()), b = $e(), y = g(() => et(t.align)), u = g(() => Je(t.campaigns, o.value)), p = g(
|
|
4063
4073
|
() => t.variant === Lt.PRIMARY ? de.PRIMARY : de.OUTLINE
|
|
4064
4074
|
), r = g(
|
|
4065
|
-
() => t.size === Ee.LARGE ?
|
|
4075
|
+
() => t.size === Ee.LARGE ? ie.LARGE : ie.MEDIUM
|
|
4066
4076
|
);
|
|
4067
4077
|
function v(k) {
|
|
4068
|
-
|
|
4078
|
+
n.value !== k && (k && (o.value = ""), n.value = k, d(ne, k));
|
|
4069
4079
|
}
|
|
4070
|
-
function
|
|
4071
|
-
t.disabled || v(!
|
|
4080
|
+
function S() {
|
|
4081
|
+
t.disabled || v(!n.value);
|
|
4072
4082
|
}
|
|
4073
|
-
function _(k,
|
|
4083
|
+
function _(k, T) {
|
|
4074
4084
|
const L = new Set(c.value);
|
|
4075
|
-
|
|
4085
|
+
T ? L.add(k.id) : L.delete(k.id), c.value = L;
|
|
4076
4086
|
}
|
|
4077
|
-
function
|
|
4087
|
+
function R() {
|
|
4078
4088
|
if (c.value.size === 0) return;
|
|
4079
4089
|
const k = {
|
|
4080
4090
|
channel: m.value,
|
|
4081
|
-
campaigns: t.campaigns.filter((
|
|
4091
|
+
campaigns: t.campaigns.filter((T) => c.value.has(T.id))
|
|
4082
4092
|
};
|
|
4083
4093
|
d(mt, k), c.value = /* @__PURE__ */ new Set(), v(!1);
|
|
4084
4094
|
}
|
|
4085
|
-
return J(o, (k) => d(fe, k)), (k,
|
|
4095
|
+
return J(o, (k) => d(fe, k)), (k, T) => (a(), l("div", {
|
|
4086
4096
|
class: C(["ds-add-to-sequence", [
|
|
4087
4097
|
`ds-add-to-sequence--${e.variant}`,
|
|
4088
4098
|
`ds-add-to-sequence--${e.size}`,
|
|
4089
|
-
{ "is-open":
|
|
4099
|
+
{ "is-open": n.value, "is-disabled": e.disabled }
|
|
4090
4100
|
]])
|
|
4091
4101
|
}, [
|
|
4092
|
-
|
|
4093
|
-
open:
|
|
4102
|
+
U($(ze), {
|
|
4103
|
+
open: n.value,
|
|
4094
4104
|
placement: y.value,
|
|
4095
4105
|
width: "288px",
|
|
4096
4106
|
"trigger-on-click": !1,
|
|
4097
4107
|
"onUpdate:open": v
|
|
4098
4108
|
}, {
|
|
4099
|
-
trigger:
|
|
4100
|
-
|
|
4109
|
+
trigger: z(() => [
|
|
4110
|
+
U($(Pe), {
|
|
4101
4111
|
content: e.tooltip,
|
|
4102
|
-
disabled: !e.tooltip ||
|
|
4112
|
+
disabled: !e.tooltip || n.value,
|
|
4103
4113
|
placement: "bottom"
|
|
4104
4114
|
}, {
|
|
4105
|
-
default:
|
|
4106
|
-
|
|
4115
|
+
default: z(() => [
|
|
4116
|
+
U($(ae), {
|
|
4107
4117
|
class: "ds-add-to-sequence__trigger",
|
|
4108
4118
|
variant: p.value,
|
|
4109
4119
|
size: r.value,
|
|
4110
4120
|
pill: e.pill,
|
|
4111
4121
|
disabled: e.disabled,
|
|
4112
4122
|
"aria-haspopup": "dialog",
|
|
4113
|
-
"aria-expanded":
|
|
4114
|
-
onClick:
|
|
4123
|
+
"aria-expanded": n.value,
|
|
4124
|
+
onClick: S
|
|
4115
4125
|
}, {
|
|
4116
|
-
leading:
|
|
4117
|
-
|
|
4126
|
+
leading: z(() => [...T[1] || (T[1] = [
|
|
4127
|
+
i("i", {
|
|
4118
4128
|
class: "material-symbols-filled ds-add-to-sequence__icon",
|
|
4119
4129
|
"aria-hidden": "true"
|
|
4120
4130
|
}, "send", -1)
|
|
4121
4131
|
])]),
|
|
4122
|
-
default:
|
|
4123
|
-
|
|
4132
|
+
default: z(() => [
|
|
4133
|
+
i("span", Rs, f(e.label), 1)
|
|
4124
4134
|
]),
|
|
4125
4135
|
_: 1
|
|
4126
4136
|
}, 8, ["variant", "size", "pill", "disabled", "aria-expanded"])
|
|
@@ -4128,72 +4138,72 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
4128
4138
|
_: 1
|
|
4129
4139
|
}, 8, ["content", "disabled"])
|
|
4130
4140
|
]),
|
|
4131
|
-
default:
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4141
|
+
default: z(() => [
|
|
4142
|
+
i("div", As, [
|
|
4143
|
+
i("p", Ns, f(e.channelsLabel), 1),
|
|
4144
|
+
i("div", {
|
|
4135
4145
|
class: "ds-add-to-sequence__channels",
|
|
4136
4146
|
role: "radiogroup",
|
|
4137
4147
|
"aria-label": e.channelsLabel
|
|
4138
4148
|
}, [
|
|
4139
|
-
(a(!0), l(
|
|
4149
|
+
(a(!0), l(q, null, X(e.channels, (L) => (a(), l("div", {
|
|
4140
4150
|
key: L.value,
|
|
4141
4151
|
class: C(["ds-add-to-sequence__channel", { "is-on": m.value === L.value }])
|
|
4142
4152
|
}, [
|
|
4143
|
-
|
|
4144
|
-
name:
|
|
4153
|
+
U($(Tt), {
|
|
4154
|
+
name: $(b),
|
|
4145
4155
|
value: L.value,
|
|
4146
4156
|
"model-value": m.value === L.value,
|
|
4147
|
-
"onUpdate:modelValue": (
|
|
4157
|
+
"onUpdate:modelValue": (B) => m.value = L.value
|
|
4148
4158
|
}, {
|
|
4149
|
-
default:
|
|
4150
|
-
|
|
4159
|
+
default: z(() => [
|
|
4160
|
+
Z(f(L.label), 1)
|
|
4151
4161
|
]),
|
|
4152
4162
|
_: 2
|
|
4153
4163
|
}, 1032, ["name", "value", "model-value", "onUpdate:modelValue"])
|
|
4154
4164
|
], 2))), 128))
|
|
4155
|
-
], 8,
|
|
4156
|
-
|
|
4165
|
+
], 8, Os),
|
|
4166
|
+
U($(Ze), {
|
|
4157
4167
|
modelValue: o.value,
|
|
4158
|
-
"onUpdate:modelValue":
|
|
4168
|
+
"onUpdate:modelValue": T[0] || (T[0] = (L) => o.value = L),
|
|
4159
4169
|
class: "ds-add-to-sequence__search",
|
|
4160
4170
|
type: "search",
|
|
4161
4171
|
size: "sm",
|
|
4162
4172
|
placeholder: e.searchPlaceholder
|
|
4163
4173
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
4164
|
-
e.campaignsLabel ? (a(), l("p",
|
|
4165
|
-
|
|
4174
|
+
e.campaignsLabel ? (a(), l("p", Bs, f(e.campaignsLabel), 1)) : h("", !0),
|
|
4175
|
+
i("div", {
|
|
4166
4176
|
class: "ds-add-to-sequence__list",
|
|
4167
4177
|
role: "group",
|
|
4168
4178
|
"aria-label": e.campaignsLabel || e.label
|
|
4169
4179
|
}, [
|
|
4170
|
-
(a(!0), l(
|
|
4180
|
+
(a(!0), l(q, null, X(u.value, (L) => (a(), l("div", {
|
|
4171
4181
|
key: L.id,
|
|
4172
4182
|
class: "ds-add-to-sequence__option"
|
|
4173
4183
|
}, [
|
|
4174
|
-
|
|
4184
|
+
U($(Me), {
|
|
4175
4185
|
"model-value": c.value.has(L.id),
|
|
4176
|
-
"onUpdate:modelValue": (
|
|
4186
|
+
"onUpdate:modelValue": (B) => _(L, B)
|
|
4177
4187
|
}, {
|
|
4178
|
-
default:
|
|
4179
|
-
|
|
4188
|
+
default: z(() => [
|
|
4189
|
+
Z(f(L.name), 1)
|
|
4180
4190
|
]),
|
|
4181
4191
|
_: 2
|
|
4182
4192
|
}, 1032, ["model-value", "onUpdate:modelValue"])
|
|
4183
4193
|
]))), 128)),
|
|
4184
4194
|
!u.value.length && e.emptyLabel ? (a(), l("p", Ms, f(e.emptyLabel), 1)) : h("", !0)
|
|
4185
4195
|
], 8, xs),
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4196
|
+
T[2] || (T[2] = i("div", { class: "ds-add-to-sequence__divider" }, null, -1)),
|
|
4197
|
+
i("div", Ps, [
|
|
4198
|
+
U($(ae), {
|
|
4189
4199
|
class: "ds-add-to-sequence__add",
|
|
4190
|
-
variant:
|
|
4191
|
-
size:
|
|
4200
|
+
variant: $(de).PRIMARY,
|
|
4201
|
+
size: $(ie).MEDIUM,
|
|
4192
4202
|
disabled: c.value.size === 0,
|
|
4193
|
-
onClick:
|
|
4203
|
+
onClick: R
|
|
4194
4204
|
}, {
|
|
4195
|
-
default:
|
|
4196
|
-
|
|
4205
|
+
default: z(() => [
|
|
4206
|
+
Z(f(e.addLabel), 1)
|
|
4197
4207
|
]),
|
|
4198
4208
|
_: 1
|
|
4199
4209
|
}, 8, ["variant", "size", "disabled"])
|
|
@@ -4204,7 +4214,7 @@ const ms = { class: "ds-saved-button__label" }, gs = { class: "ds-saved-button__
|
|
|
4204
4214
|
}, 8, ["open", "placement"])
|
|
4205
4215
|
], 2));
|
|
4206
4216
|
}
|
|
4207
|
-
}), bo = /* @__PURE__ */
|
|
4217
|
+
}), bo = /* @__PURE__ */ M(zs, [["__scopeId", "data-v-e23d1c03"]]);
|
|
4208
4218
|
export {
|
|
4209
4219
|
Lt as DS_ADD_TO_SEQUENCE_VARIANTS,
|
|
4210
4220
|
qa as DS_ALERT_EFFECTS,
|
|
@@ -4212,14 +4222,14 @@ export {
|
|
|
4212
4222
|
Va as DS_ALERT_TYPES,
|
|
4213
4223
|
Ke as DS_BADGE_TONES,
|
|
4214
4224
|
Ht as DS_BUTTON_NATIVE_TYPES,
|
|
4215
|
-
|
|
4225
|
+
ie as DS_BUTTON_SIZES,
|
|
4216
4226
|
de as DS_BUTTON_VARIANTS,
|
|
4217
4227
|
Qe as DS_CONTACT_KINDS,
|
|
4218
|
-
|
|
4228
|
+
we as DS_CONTACT_TYPES,
|
|
4219
4229
|
Ct as DS_CONTACT_TYPE_ICONS,
|
|
4220
|
-
|
|
4230
|
+
_n as DS_CUSTOM_TAG_TYPES,
|
|
4221
4231
|
$t as DS_DRAWER_DIRECTIONS,
|
|
4222
|
-
|
|
4232
|
+
Ta as DS_INPUT_SIZES,
|
|
4223
4233
|
_e as DS_INPUT_TYPES,
|
|
4224
4234
|
Xa as DS_NOTIFICATION_ICONS,
|
|
4225
4235
|
ht as DS_NOTIFICATION_LINK_TARGETS,
|
|
@@ -4227,7 +4237,7 @@ export {
|
|
|
4227
4237
|
ja as DS_NOTIFICATION_TYPES,
|
|
4228
4238
|
Ue as DS_PICKER_ALIGNS,
|
|
4229
4239
|
Ee as DS_PICKER_SIZES,
|
|
4230
|
-
|
|
4240
|
+
Be as DS_POPOVER_PLACEMENTS,
|
|
4231
4241
|
kt as DS_SELECT_TYPES,
|
|
4232
4242
|
St as DS_SELECT_WIDTHS,
|
|
4233
4243
|
ys as DS_SEQUENCE_CHANNELS,
|
|
@@ -4242,12 +4252,12 @@ export {
|
|
|
4242
4252
|
bo as DsAddToSequence,
|
|
4243
4253
|
Hs as DsAlert,
|
|
4244
4254
|
qs as DsAvatar,
|
|
4245
|
-
|
|
4255
|
+
ia as DsBadge,
|
|
4246
4256
|
ae as DsButton,
|
|
4247
4257
|
Js as DsCell,
|
|
4248
4258
|
Me as DsCheckbox,
|
|
4249
4259
|
co as DsCompanyCard,
|
|
4250
|
-
|
|
4260
|
+
wi as DsCompanyLogo,
|
|
4251
4261
|
uo as DsContactCell,
|
|
4252
4262
|
rs as DsContactList,
|
|
4253
4263
|
pt as DsContactValue,
|
|
@@ -4255,7 +4265,7 @@ export {
|
|
|
4255
4265
|
Ys as DsDataCard,
|
|
4256
4266
|
Dt as DsDeliverabilityBadge,
|
|
4257
4267
|
ro as DsDrawer,
|
|
4258
|
-
|
|
4268
|
+
no as DsEmptyState,
|
|
4259
4269
|
Ze as DsInput,
|
|
4260
4270
|
Zs as DsItemSelectorButton,
|
|
4261
4271
|
It as DsMaskedValue,
|
|
@@ -4263,11 +4273,11 @@ export {
|
|
|
4263
4273
|
Ks as DsModal,
|
|
4264
4274
|
Rt as DsMoreCountChip,
|
|
4265
4275
|
Ws as DsNotification,
|
|
4266
|
-
|
|
4276
|
+
io as DsPaginator,
|
|
4267
4277
|
to as DsPill,
|
|
4268
4278
|
ao as DsPillWithBorder,
|
|
4269
4279
|
ze as DsPopover,
|
|
4270
|
-
|
|
4280
|
+
Tt as DsRadio,
|
|
4271
4281
|
Qs as DsRow,
|
|
4272
4282
|
fo as DsSavedButton,
|
|
4273
4283
|
lo as DsSegmentedProgressBar,
|
|
@@ -4283,8 +4293,8 @@ export {
|
|
|
4283
4293
|
oo as DsWizardStepper,
|
|
4284
4294
|
_t as MASK_GLYPHS,
|
|
4285
4295
|
Je as filterOptions,
|
|
4286
|
-
|
|
4296
|
+
Pi as overflowFromGroupSize,
|
|
4287
4297
|
et as pickerPlacement,
|
|
4288
|
-
|
|
4298
|
+
Ui as splitMaskedValue
|
|
4289
4299
|
};
|
|
4290
4300
|
//# sourceMappingURL=index.es.js.map
|