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