@salesql/sql_components_vue3 3.10.3 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -14
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1050 -981
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsRadioCard/DsRadioCard.types.d.ts +9 -0
- package/dist/ui/DsRadioCard/DsRadioCard.vue.d.ts +68 -0
- package/dist/ui/DsRadioCard/index.d.ts +2 -0
- package/llms-full.txt +62 -2
- package/llms.txt +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, computed as k, openBlock as a, createElementBlock as l, normalizeStyle as Y, normalizeClass as I, createBlock as K, unref as f, createCommentVNode as S, createElementVNode as s, renderSlot as M, toDisplayString as c, withModifiers as De, ref as N, watch as ae, useModel as Te, onMounted as Pe, withDirectives as ft, vModelCheckbox as oa, createTextVNode as J, mergeModels as me, onBeforeUnmount as re, nextTick as ne, createVNode as F, Fragment as G, renderList as le, useSlots as Ae, vModelDynamic as da, useAttrs as ra, mergeProps as Fe, vModelText as ca, Transition as Se, withCtx as B, Teleport as Ge, useId as be, withKeys as je, reactive as ua, resolveDynamicComponent as qt, provide as fa, inject as va, createSlots as vt } from "vue";
|
|
2
2
|
const Xe = {
|
|
3
3
|
DARK: "dark",
|
|
4
4
|
// slate ring — for light surfaces (default)
|
|
@@ -13,7 +13,7 @@ const Xe = {
|
|
|
13
13
|
// 32px
|
|
14
14
|
LARGE: "large"
|
|
15
15
|
// 48px
|
|
16
|
-
}, ba = ["aria-label"], ma = /* @__PURE__ */
|
|
16
|
+
}, ba = ["aria-label"], ma = /* @__PURE__ */ x({
|
|
17
17
|
__name: "DsSpinner",
|
|
18
18
|
props: {
|
|
19
19
|
// Diameter in px, or a named size ("small" 20 / "medium" 32 / "large" 48).
|
|
@@ -39,18 +39,18 @@ const Xe = {
|
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
return (n, d) => (a(), l("span", {
|
|
42
|
-
class:
|
|
42
|
+
class: I(["ds-spinner", `ds-spinner--${e.tone}`]),
|
|
43
43
|
role: "status",
|
|
44
44
|
style: Y({ width: `${i.value}px`, height: `${i.value}px` }),
|
|
45
45
|
"aria-label": e.label || void 0
|
|
46
46
|
}, null, 14, ba));
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
48
|
+
}), P = (e, o) => {
|
|
49
49
|
const t = e.__vccOpts || e;
|
|
50
50
|
for (const [i, n] of o)
|
|
51
51
|
t[i] = n;
|
|
52
52
|
return t;
|
|
53
|
-
},
|
|
53
|
+
}, Me = /* @__PURE__ */ P(ma, [["__scopeId", "data-v-aaf2f048"]]), ye = "click", ue = "close", Ze = "focus", Qe = "blur", yt = "change", gt = "field-blur", $e = "copy", ht = "reveal", _e = "correct", Le = "incorrect", pt = "sort", we = "edit", kt = "select-all", St = "page-change", $t = "page-size-change", pe = "search", _t = "select", ot = "step", Lt = "final-step", wt = "navigate", Et = "resize-start", Tt = "resize", Ct = "resize-end", fe = "update:open", It = "pick", Dt = "apply", At = "add", Je = "create", Rt = "back", Nt = "submit", Ie = "delete", et = "create-option", tt = "update-option", Ot = "update:name", dt = "update:color", ve = {
|
|
54
54
|
DEFAULT: "default",
|
|
55
55
|
// white surface, dark text (the default value; == tertiary)
|
|
56
56
|
PRIMARY: "primary",
|
|
@@ -104,7 +104,7 @@ const Xe = {
|
|
|
104
104
|
}, _a = {
|
|
105
105
|
class: "material-symbols-filled",
|
|
106
106
|
"aria-hidden": "true"
|
|
107
|
-
}, La = /* @__PURE__ */
|
|
107
|
+
}, La = /* @__PURE__ */ x({
|
|
108
108
|
__name: "DsButton",
|
|
109
109
|
props: {
|
|
110
110
|
variant: { type: String, default: ve.DEFAULT },
|
|
@@ -135,16 +135,16 @@ const Xe = {
|
|
|
135
135
|
selected: Boolean,
|
|
136
136
|
autofocus: Boolean
|
|
137
137
|
},
|
|
138
|
-
emits: [
|
|
138
|
+
emits: [ye],
|
|
139
139
|
setup(e, { emit: o }) {
|
|
140
140
|
const t = e, i = o, n = k(() => t.size === de.SMALL ? 14 : 20), d = k(
|
|
141
141
|
() => t.variant === ve.PRIMARY || t.variant === ve.WARNING ? Xe.LIGHT : Xe.DARK
|
|
142
142
|
);
|
|
143
143
|
function u(r) {
|
|
144
|
-
t.disabled || t.loading || i(
|
|
144
|
+
t.disabled || t.loading || i(ye, r);
|
|
145
145
|
}
|
|
146
|
-
return (r,
|
|
147
|
-
class:
|
|
146
|
+
return (r, b) => (a(), l("button", {
|
|
147
|
+
class: I(["ds-button", [
|
|
148
148
|
`ds-button--${e.variant}`,
|
|
149
149
|
`ds-button--${e.size}`,
|
|
150
150
|
{
|
|
@@ -166,7 +166,7 @@ const Xe = {
|
|
|
166
166
|
"aria-label": e.ariaLabel || void 0,
|
|
167
167
|
onClick: u
|
|
168
168
|
}, [
|
|
169
|
-
e.loading ? (a(), K(f(
|
|
169
|
+
e.loading ? (a(), K(f(Me), {
|
|
170
170
|
key: 0,
|
|
171
171
|
class: "ds-button__spinner",
|
|
172
172
|
size: n.value,
|
|
@@ -177,22 +177,22 @@ const Xe = {
|
|
|
177
177
|
"aria-hidden": e.loading || void 0
|
|
178
178
|
}, [
|
|
179
179
|
e.leftIcon || r.$slots.leading ? (a(), l("span", pa, [
|
|
180
|
-
|
|
180
|
+
M(r.$slots, "leading", {}, () => [
|
|
181
181
|
s("i", ka, c(e.leftIcon), 1)
|
|
182
182
|
], !0)
|
|
183
183
|
])) : S("", !0),
|
|
184
184
|
r.$slots.default && !e.circle && !e.square ? (a(), l("span", Sa, [
|
|
185
|
-
|
|
185
|
+
M(r.$slots, "default", {}, void 0, !0)
|
|
186
186
|
])) : S("", !0),
|
|
187
187
|
e.rightIcon || r.$slots.trailing ? (a(), l("span", $a, [
|
|
188
|
-
|
|
188
|
+
M(r.$slots, "trailing", {}, () => [
|
|
189
189
|
s("i", _a, c(e.rightIcon), 1)
|
|
190
190
|
], !0)
|
|
191
191
|
])) : S("", !0)
|
|
192
192
|
], 8, ha)
|
|
193
193
|
], 10, ga));
|
|
194
194
|
}
|
|
195
|
-
}), oe = /* @__PURE__ */
|
|
195
|
+
}), oe = /* @__PURE__ */ P(La, [["__scopeId", "data-v-85d01e1a"]]), wa = {
|
|
196
196
|
DEFAULT: "default",
|
|
197
197
|
// white bg, slate-tint border, muted text
|
|
198
198
|
GREY: "grey",
|
|
@@ -205,7 +205,7 @@ const Xe = {
|
|
|
205
205
|
// e.g. Pending
|
|
206
206
|
ERROR: "error"
|
|
207
207
|
// e.g. Bounced
|
|
208
|
-
}, Ea = { class: "ds-tag__label" }, Ta = ["aria-label"], Ca = /* @__PURE__ */
|
|
208
|
+
}, Ea = { class: "ds-tag__label" }, Ta = ["aria-label"], Ca = /* @__PURE__ */ x({
|
|
209
209
|
__name: "DsTag",
|
|
210
210
|
props: {
|
|
211
211
|
tone: {
|
|
@@ -234,20 +234,20 @@ const Xe = {
|
|
|
234
234
|
setup(e, { emit: o }) {
|
|
235
235
|
const t = o;
|
|
236
236
|
return (i, n) => (a(), l("span", {
|
|
237
|
-
class:
|
|
237
|
+
class: I(["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
|
s("span", Ea, [
|
|
243
|
-
|
|
243
|
+
M(i.$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: n[0] || (n[0] =
|
|
250
|
+
onClick: n[0] || (n[0] = De((d) => t(f(ue)), ["stop"]))
|
|
251
251
|
}, [...n[1] || (n[1] = [
|
|
252
252
|
s("i", {
|
|
253
253
|
class: "material-symbols-filled",
|
|
@@ -256,7 +256,7 @@ const Xe = {
|
|
|
256
256
|
])], 8, Ta)) : S("", !0)
|
|
257
257
|
], 2));
|
|
258
258
|
}
|
|
259
|
-
}),
|
|
259
|
+
}), jd = /* @__PURE__ */ P(Ca, [["__scopeId", "data-v-23118dd1"]]), ct = {
|
|
260
260
|
ACCENT: "accent",
|
|
261
261
|
// e.g. Work (purple)
|
|
262
262
|
GREY: "grey",
|
|
@@ -269,7 +269,7 @@ const Xe = {
|
|
|
269
269
|
// coral
|
|
270
270
|
WARNING: "warning"
|
|
271
271
|
// orange
|
|
272
|
-
}, Ia = /* @__PURE__ */
|
|
272
|
+
}, Ia = /* @__PURE__ */ x({
|
|
273
273
|
__name: "DsBadge",
|
|
274
274
|
props: {
|
|
275
275
|
tone: {
|
|
@@ -279,12 +279,12 @@ const Xe = {
|
|
|
279
279
|
},
|
|
280
280
|
setup(e) {
|
|
281
281
|
return (o, t) => (a(), l("span", {
|
|
282
|
-
class:
|
|
282
|
+
class: I(["ds-badge", `ds-badge--${e.tone}`])
|
|
283
283
|
}, [
|
|
284
|
-
|
|
284
|
+
M(o.$slots, "default", {}, void 0, !0)
|
|
285
285
|
], 2));
|
|
286
286
|
}
|
|
287
|
-
}), Da = /* @__PURE__ */
|
|
287
|
+
}), Da = /* @__PURE__ */ P(Ia, [["__scopeId", "data-v-f10a17a0"]]), Aa = ["src", "alt"], Ra = ["aria-label"], Na = /* @__PURE__ */ x({
|
|
288
288
|
__name: "DsAvatar",
|
|
289
289
|
props: {
|
|
290
290
|
image: { type: String, default: "" },
|
|
@@ -324,37 +324,37 @@ const Xe = {
|
|
|
324
324
|
const n = k(() => !!o.image && !t.value), d = k(() => o.letters ? o.letters : o.firstName && o.lastName ? (o.firstName.charAt(0) + o.lastName.charAt(0)).toUpperCase() : ""), u = k(() => `${o.firstName} ${o.lastName}`.trim() || o.letters), r = k(() => {
|
|
325
325
|
var h;
|
|
326
326
|
return (h = o.alt) != null ? h : u.value;
|
|
327
|
-
}),
|
|
327
|
+
}), b = k(() => {
|
|
328
328
|
var h;
|
|
329
329
|
return (h = o.width) != null ? h : o.size;
|
|
330
|
-
}),
|
|
330
|
+
}), m = k(() => {
|
|
331
331
|
var h;
|
|
332
332
|
return (h = o.height) != null ? h : o.size;
|
|
333
|
-
}), v = k(() => ({ width: `${
|
|
333
|
+
}), v = k(() => ({ width: `${b.value}px`, height: `${m.value}px` })), g = k(
|
|
334
334
|
() => {
|
|
335
335
|
var h;
|
|
336
|
-
return (h = o.textSize) != null ? h : Math.round(Math.min(
|
|
336
|
+
return (h = o.textSize) != null ? h : Math.round(Math.min(b.value, m.value) * 0.4);
|
|
337
337
|
}
|
|
338
338
|
), L = k(() => {
|
|
339
339
|
const h = o.uid || o.firstName + o.lastName || o.letters;
|
|
340
|
-
let
|
|
340
|
+
let y = 0;
|
|
341
341
|
for (let p = 0; p < h.length; p++)
|
|
342
|
-
|
|
342
|
+
y = h.charCodeAt(p) + ((y << 5) - y), y = y & y;
|
|
343
343
|
const $ = [0, 0, 0];
|
|
344
|
-
for (let p = 0; p < 3; p++) $[p] =
|
|
344
|
+
for (let p = 0; p < 3; p++) $[p] = y >> p * 8 & 255;
|
|
345
345
|
const _ = $[0] >= 200 && $[1] >= 200 && $[2] >= 200;
|
|
346
346
|
return { bg: `rgb(${$[0]}, ${$[1]}, ${$[2]})`, fg: _ ? "#323f4b" : "#fff" };
|
|
347
347
|
});
|
|
348
|
-
return (h,
|
|
348
|
+
return (h, y) => n.value ? (a(), l("img", {
|
|
349
349
|
key: 0,
|
|
350
|
-
class:
|
|
350
|
+
class: I(["ds-avatar", { "is-circular": e.circular }]),
|
|
351
351
|
src: e.image,
|
|
352
352
|
alt: r.value,
|
|
353
353
|
style: Y(v.value),
|
|
354
354
|
onError: i
|
|
355
355
|
}, null, 46, Aa)) : d.value ? (a(), l("div", {
|
|
356
356
|
key: 1,
|
|
357
|
-
class:
|
|
357
|
+
class: I(["ds-avatar ds-avatar--initials", { "is-circular": e.circular, "ds-avatar--accent": e.accent }]),
|
|
358
358
|
role: "img",
|
|
359
359
|
"aria-label": r.value || void 0,
|
|
360
360
|
style: Y([
|
|
@@ -370,12 +370,12 @@ const Xe = {
|
|
|
370
370
|
])
|
|
371
371
|
}, c(d.value), 15, Ra)) : (a(), l("div", {
|
|
372
372
|
key: 2,
|
|
373
|
-
class:
|
|
373
|
+
class: I(["ds-avatar ds-avatar--placeholder", { "is-circular": e.circular }]),
|
|
374
374
|
style: Y(v.value),
|
|
375
375
|
"aria-hidden": "true"
|
|
376
376
|
}, null, 6));
|
|
377
377
|
}
|
|
378
|
-
}), Oa = /* @__PURE__ */
|
|
378
|
+
}), Oa = /* @__PURE__ */ P(Na, [["__scopeId", "data-v-e53cb39c"]]), Ba = ["disabled", "name", "aria-label"], Ma = {
|
|
379
379
|
key: 0,
|
|
380
380
|
class: "ds-checkbox__mark",
|
|
381
381
|
viewBox: "0 0 16 16",
|
|
@@ -392,9 +392,9 @@ const Xe = {
|
|
|
392
392
|
}, Pa = {
|
|
393
393
|
key: 0,
|
|
394
394
|
class: "ds-checkbox__label"
|
|
395
|
-
}, za = /* @__PURE__ */
|
|
395
|
+
}, za = /* @__PURE__ */ x({
|
|
396
396
|
__name: "DsCheckbox",
|
|
397
|
-
props: /* @__PURE__ */
|
|
397
|
+
props: /* @__PURE__ */ me({
|
|
398
398
|
indeterminate: Boolean,
|
|
399
399
|
disabled: Boolean,
|
|
400
400
|
name: { type: String, default: "" },
|
|
@@ -408,12 +408,12 @@ const Xe = {
|
|
|
408
408
|
}),
|
|
409
409
|
emits: ["update:modelValue"],
|
|
410
410
|
setup(e) {
|
|
411
|
-
const o =
|
|
411
|
+
const o = Te(e, "modelValue"), t = e, i = N(null);
|
|
412
412
|
function n() {
|
|
413
413
|
i.value && (i.value.indeterminate = t.indeterminate);
|
|
414
414
|
}
|
|
415
|
-
return
|
|
416
|
-
class:
|
|
415
|
+
return Pe(n), ae(() => t.indeterminate, n), (d, u) => (a(), l("label", {
|
|
416
|
+
class: I(["ds-checkbox", { "is-disabled": e.disabled }])
|
|
417
417
|
}, [
|
|
418
418
|
ft(s("input", {
|
|
419
419
|
ref_key: "inputRef",
|
|
@@ -428,7 +428,7 @@ const Xe = {
|
|
|
428
428
|
[oa, o.value]
|
|
429
429
|
]),
|
|
430
430
|
s("span", {
|
|
431
|
-
class:
|
|
431
|
+
class: I(["ds-checkbox__box", { "is-active": o.value || e.indeterminate }]),
|
|
432
432
|
"aria-hidden": "true"
|
|
433
433
|
}, [
|
|
434
434
|
e.indeterminate ? (a(), l("svg", Ma, [...u[1] || (u[1] = [
|
|
@@ -443,13 +443,13 @@ const Xe = {
|
|
|
443
443
|
])])) : S("", !0)
|
|
444
444
|
], 2),
|
|
445
445
|
d.$slots.default || e.label ? (a(), l("span", Pa, [
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
M(d.$slots, "default", {}, () => [
|
|
447
|
+
J(c(e.label), 1)
|
|
448
448
|
], !0)
|
|
449
449
|
])) : S("", !0)
|
|
450
450
|
], 2));
|
|
451
451
|
}
|
|
452
|
-
}), at = /* @__PURE__ */
|
|
452
|
+
}), at = /* @__PURE__ */ P(za, [["__scopeId", "data-v-2da3772e"]]), Bt = {
|
|
453
453
|
LEFT: "left",
|
|
454
454
|
CENTER: "center",
|
|
455
455
|
RIGHT: "right"
|
|
@@ -459,7 +459,7 @@ const Xe = {
|
|
|
459
459
|
}, Ua = ["aria-busy"], Fa = { class: "ds-table__table" }, Va = { class: "ds-table__head" }, qa = {
|
|
460
460
|
key: 0,
|
|
461
461
|
class: "ds-table__select-all"
|
|
462
|
-
}, Ga = { key: 0 }, Ha = ["colspan"], Ka = ["aria-busy"], Wa = { key: 0 }, Ya = ["colspan"], ja = { key: 1 }, Xa = ["colspan"], Za = ["title"], Qa = /* @__PURE__ */
|
|
462
|
+
}, Ga = { key: 0 }, Ha = ["colspan"], Ka = ["aria-busy"], Wa = { key: 0 }, Ya = ["colspan"], ja = { key: 1 }, Xa = ["colspan"], Za = ["title"], Qa = /* @__PURE__ */ x({
|
|
463
463
|
__name: "DsTable",
|
|
464
464
|
props: {
|
|
465
465
|
// --- Declarative API (default): the table builds itself from columns + rows. ---
|
|
@@ -528,20 +528,20 @@ const Xe = {
|
|
|
528
528
|
function r(E) {
|
|
529
529
|
i(kt, E);
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function b(E) {
|
|
532
532
|
if (!E) return 0;
|
|
533
533
|
const A = /^(\d+(?:\.\d+)?)px$/.exec(E.trim());
|
|
534
534
|
return A ? parseFloat(A[1]) : 0;
|
|
535
535
|
}
|
|
536
|
-
const
|
|
536
|
+
const m = k(() => {
|
|
537
537
|
const E = {};
|
|
538
538
|
let A = 0;
|
|
539
539
|
for (const C of t.columns)
|
|
540
|
-
C.pinned === he.LEFT && (E[C.key] = { position: "sticky", left: `${A}px` }, A +=
|
|
540
|
+
C.pinned === he.LEFT && (E[C.key] = { position: "sticky", left: `${A}px` }, A += b(C.width));
|
|
541
541
|
let w = 0;
|
|
542
542
|
for (let C = t.columns.length - 1; C >= 0; C--) {
|
|
543
543
|
const T = t.columns[C];
|
|
544
|
-
T.pinned === he.RIGHT && (E[T.key] = { position: "sticky", right: `${w}px` }, w +=
|
|
544
|
+
T.pinned === he.RIGHT && (E[T.key] = { position: "sticky", right: `${w}px` }, w += b(T.width));
|
|
545
545
|
}
|
|
546
546
|
return E;
|
|
547
547
|
}), v = k(() => {
|
|
@@ -557,29 +557,29 @@ const Xe = {
|
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
function L(E) {
|
|
560
|
-
const A =
|
|
560
|
+
const A = m.value[E.key], w = E.width ? { width: E.width } : void 0;
|
|
561
561
|
if (!(!A && !w))
|
|
562
562
|
return { ...w, ...A };
|
|
563
563
|
}
|
|
564
564
|
function h(E) {
|
|
565
|
-
const A =
|
|
565
|
+
const A = m.value[E.key];
|
|
566
566
|
if (A)
|
|
567
567
|
return E.width ? { ...A, width: E.width } : A;
|
|
568
568
|
}
|
|
569
|
-
const
|
|
569
|
+
const y = k(
|
|
570
570
|
() => t.headers.map((E) => typeof E == "string" ? { label: E } : E)
|
|
571
571
|
), $ = k(() => {
|
|
572
|
-
const E = {}, A =
|
|
572
|
+
const E = {}, A = y.value;
|
|
573
573
|
let w = 0;
|
|
574
574
|
A.forEach((T, q) => {
|
|
575
|
-
T.pinned === he.LEFT && (E[q] = { position: "sticky", left: `${w}px` }, w +=
|
|
575
|
+
T.pinned === he.LEFT && (E[q] = { position: "sticky", left: `${w}px` }, w += b(T.width));
|
|
576
576
|
});
|
|
577
577
|
let C = 0;
|
|
578
578
|
for (let T = A.length - 1; T >= 0; T--)
|
|
579
|
-
A[T].pinned === he.RIGHT && (E[T] = { position: "sticky", right: `${C}px` }, C +=
|
|
579
|
+
A[T].pinned === he.RIGHT && (E[T] = { position: "sticky", right: `${C}px` }, C += b(A[T].width));
|
|
580
580
|
return E;
|
|
581
581
|
}), _ = k(() => {
|
|
582
|
-
const E =
|
|
582
|
+
const E = y.value, A = E.map((T, q) => ({ h: T, i: q })).filter(({ h: T }) => T.pinned === he.LEFT), w = E.map((T, q) => ({ h: T, i: q })).filter(({ h: T }) => T.pinned === he.RIGHT), C = /* @__PURE__ */ new Set();
|
|
583
583
|
return A.length && C.add(A[A.length - 1].i), w.length && C.add(w[0].i), C;
|
|
584
584
|
});
|
|
585
585
|
function p(E, A) {
|
|
@@ -597,22 +597,22 @@ const Xe = {
|
|
|
597
597
|
}
|
|
598
598
|
const O = N(null), H = N(!1), W = N(!1);
|
|
599
599
|
let X = null;
|
|
600
|
-
function
|
|
600
|
+
function z() {
|
|
601
601
|
const E = O.value;
|
|
602
602
|
E && (H.value = E.scrollLeft > 0, W.value = E.scrollLeft + E.clientWidth < E.scrollWidth - 1);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
E == null || E.removeEventListener("scroll",
|
|
604
|
+
function U(E) {
|
|
605
|
+
E == null || E.removeEventListener("scroll", z), X == null || X.disconnect(), X = null;
|
|
606
606
|
}
|
|
607
607
|
return ae(
|
|
608
608
|
O,
|
|
609
609
|
(E, A) => {
|
|
610
|
-
|
|
610
|
+
U(A != null ? A : null), E && (E.addEventListener("scroll", z, { passive: !0 }), typeof ResizeObserver != "undefined" && (X = new ResizeObserver(z), X.observe(E)), z());
|
|
611
611
|
},
|
|
612
612
|
{ immediate: !0 }
|
|
613
|
-
), re(() =>
|
|
613
|
+
), re(() => U(O.value)), ae(
|
|
614
614
|
() => [t.columns.length, t.rows.length, t.headers.length, t.compound],
|
|
615
|
-
() => ne(
|
|
615
|
+
() => ne(z)
|
|
616
616
|
), (E, A) => e.compound ? (a(), l("div", {
|
|
617
617
|
key: 0,
|
|
618
618
|
class: "ds-table ds-table--compound",
|
|
@@ -621,7 +621,7 @@ const Xe = {
|
|
|
621
621
|
s("div", {
|
|
622
622
|
ref_key: "wrapperRef",
|
|
623
623
|
ref: O,
|
|
624
|
-
class:
|
|
624
|
+
class: I(["ds-table__wrapper", { "is-scrolled-start": H.value, "is-scrolled-end": W.value }]),
|
|
625
625
|
style: Y(u.value)
|
|
626
626
|
}, [
|
|
627
627
|
s("table", Fa, [
|
|
@@ -635,9 +635,9 @@ const Xe = {
|
|
|
635
635
|
"onUpdate:modelValue": r
|
|
636
636
|
}, null, 8, ["model-value", "indeterminate", "aria-label"])
|
|
637
637
|
])) : S("", !0),
|
|
638
|
-
(a(!0), l(G, null, le(
|
|
638
|
+
(a(!0), l(G, null, le(y.value, (w, C) => (a(), l("th", {
|
|
639
639
|
key: w.label,
|
|
640
|
-
class:
|
|
640
|
+
class: I(p(w, C)),
|
|
641
641
|
style: Y(R(w, C))
|
|
642
642
|
}, c(w.label), 7))), 128))
|
|
643
643
|
])
|
|
@@ -649,13 +649,13 @@ const Xe = {
|
|
|
649
649
|
colspan: n.value,
|
|
650
650
|
"data-testid": "ds-table-loading"
|
|
651
651
|
}, [
|
|
652
|
-
|
|
653
|
-
F(f(
|
|
652
|
+
M(E.$slots, "loading", {}, () => [
|
|
653
|
+
F(f(Me), {
|
|
654
654
|
label: e.loadingLabel || void 0
|
|
655
655
|
}, null, 8, ["label"])
|
|
656
656
|
], !0)
|
|
657
657
|
], 8, Ha)
|
|
658
|
-
])) :
|
|
658
|
+
])) : M(E.$slots, "default", { key: 1 }, void 0, !0)
|
|
659
659
|
])
|
|
660
660
|
])
|
|
661
661
|
], 6)
|
|
@@ -667,10 +667,10 @@ const Xe = {
|
|
|
667
667
|
s("div", {
|
|
668
668
|
ref_key: "wrapperRef",
|
|
669
669
|
ref: O,
|
|
670
|
-
class:
|
|
670
|
+
class: I(["ds-table__wrapper", { "is-scrolled-start": H.value, "is-scrolled-end": W.value }])
|
|
671
671
|
}, [
|
|
672
672
|
s("table", {
|
|
673
|
-
class:
|
|
673
|
+
class: I(["ds-table__table", { "has-row-height": e.rowHeight != null }]),
|
|
674
674
|
style: Y(d.value)
|
|
675
675
|
}, [
|
|
676
676
|
s("thead", null, [
|
|
@@ -679,7 +679,7 @@ const Xe = {
|
|
|
679
679
|
var C;
|
|
680
680
|
return a(), l("th", {
|
|
681
681
|
key: w.key,
|
|
682
|
-
class:
|
|
682
|
+
class: I([
|
|
683
683
|
`ds-table__th--${(C = w.align) != null ? C : f(Bt).LEFT}`,
|
|
684
684
|
g(w)
|
|
685
685
|
]),
|
|
@@ -695,8 +695,8 @@ const Xe = {
|
|
|
695
695
|
colspan: Math.max(1, e.columns.length),
|
|
696
696
|
"data-testid": "ds-table-loading"
|
|
697
697
|
}, [
|
|
698
|
-
|
|
699
|
-
F(f(
|
|
698
|
+
M(E.$slots, "loading", {}, () => [
|
|
699
|
+
F(f(Me), {
|
|
700
700
|
label: e.loadingLabel || void 0
|
|
701
701
|
}, null, 8, ["label"])
|
|
702
702
|
], !0)
|
|
@@ -707,28 +707,28 @@ const Xe = {
|
|
|
707
707
|
colspan: Math.max(1, e.columns.length),
|
|
708
708
|
"data-testid": "ds-table-empty"
|
|
709
709
|
}, [
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
M(E.$slots, "empty", {}, () => [
|
|
711
|
+
J(c(e.emptyMessage), 1)
|
|
712
712
|
], !0)
|
|
713
713
|
], 8, Xa)
|
|
714
714
|
])) : (a(!0), l(G, { key: 2 }, le(e.rows, (w) => (a(), l("tr", {
|
|
715
715
|
key: w.id,
|
|
716
|
-
class:
|
|
716
|
+
class: I({ "is-highlighted": w.id === e.highlightRowId }),
|
|
717
717
|
"data-testid": "ds-table-row"
|
|
718
718
|
}, [
|
|
719
719
|
(a(!0), l(G, null, le(e.columns, (C) => {
|
|
720
720
|
var T;
|
|
721
721
|
return a(), l("td", {
|
|
722
722
|
key: C.key,
|
|
723
|
-
class:
|
|
723
|
+
class: I([
|
|
724
724
|
`ds-table__td--${(T = C.align) != null ? T : f(Bt).LEFT}`,
|
|
725
725
|
g(C)
|
|
726
726
|
]),
|
|
727
727
|
style: Y(h(C)),
|
|
728
728
|
title: e.rowHeight != null && !E.$slots[`cell-${C.key}`] && w[C.key] != null ? String(w[C.key]) : void 0
|
|
729
729
|
}, [
|
|
730
|
-
|
|
731
|
-
|
|
730
|
+
M(E.$slots, `cell-${C.key}`, { row: w }, () => [
|
|
731
|
+
J(c(w[C.key]), 1)
|
|
732
732
|
], !0)
|
|
733
733
|
], 14, Za);
|
|
734
734
|
}), 128))
|
|
@@ -738,7 +738,7 @@ const Xe = {
|
|
|
738
738
|
], 2)
|
|
739
739
|
], 8, Ka));
|
|
740
740
|
}
|
|
741
|
-
}),
|
|
741
|
+
}), Xd = /* @__PURE__ */ P(Qa, [["__scopeId", "data-v-7a5bb12f"]]), Ne = {
|
|
742
742
|
TEXT: "text",
|
|
743
743
|
EMAIL: "email",
|
|
744
744
|
PASSWORD: "password",
|
|
@@ -765,10 +765,10 @@ const Xe = {
|
|
|
765
765
|
}, nl = ["disabled", "aria-label", "aria-pressed"], il = {
|
|
766
766
|
class: "material-symbols-filled",
|
|
767
767
|
"aria-hidden": "true"
|
|
768
|
-
}, sl = ["id"], ol = /* @__PURE__ */
|
|
768
|
+
}, sl = ["id"], ol = /* @__PURE__ */ x({
|
|
769
769
|
__name: "DsInput",
|
|
770
|
-
props: /* @__PURE__ */
|
|
771
|
-
type: { type: String, default:
|
|
770
|
+
props: /* @__PURE__ */ me({
|
|
771
|
+
type: { type: String, default: Ne.TEXT },
|
|
772
772
|
size: { type: String, default: Gt.SM },
|
|
773
773
|
placeholder: { type: String, default: "" },
|
|
774
774
|
disabled: Boolean,
|
|
@@ -789,19 +789,19 @@ const Xe = {
|
|
|
789
789
|
modelValue: { default: "" },
|
|
790
790
|
modelModifiers: {}
|
|
791
791
|
}),
|
|
792
|
-
emits: /* @__PURE__ */
|
|
792
|
+
emits: /* @__PURE__ */ me([Ze, Qe, yt, gt], ["update:modelValue"]),
|
|
793
793
|
setup(e, { expose: o, emit: t }) {
|
|
794
|
-
const i =
|
|
794
|
+
const i = Te(e, "modelValue"), n = e, d = t, u = N();
|
|
795
795
|
function r(_) {
|
|
796
796
|
const p = _.relatedTarget, R = _.currentTarget;
|
|
797
797
|
p && (R != null && R.contains(p)) || d(gt, _);
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const b = Ae(), m = N(!1);
|
|
800
800
|
function v() {
|
|
801
|
-
n.disabled || (
|
|
801
|
+
n.disabled || (m.value = !m.value);
|
|
802
802
|
}
|
|
803
|
-
const g = k(() => n.type ===
|
|
804
|
-
() => !!
|
|
803
|
+
const g = k(() => n.type === Ne.PASSWORD), L = k(() => n.type === Ne.SEARCH), h = k(() => g.value ? m.value ? Ne.TEXT : Ne.PASSWORD : L.value ? Ne.TEXT : n.type), y = k(() => g.value && !!n.toggleLabel), $ = k(
|
|
804
|
+
() => !!b.suffix || n.error && n.showErrorIcon || y.value
|
|
805
805
|
);
|
|
806
806
|
return o({
|
|
807
807
|
focus: () => {
|
|
@@ -820,7 +820,7 @@ const Xe = {
|
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
}), (_, p) => (a(), l("div", {
|
|
823
|
-
class:
|
|
823
|
+
class: I(["ds-input", [
|
|
824
824
|
`ds-input--${e.size}`,
|
|
825
825
|
{ "is-error": e.error, "is-disabled": e.disabled, "is-search": L.value }
|
|
826
826
|
]]),
|
|
@@ -833,7 +833,7 @@ const Xe = {
|
|
|
833
833
|
ref_key: "inputEl",
|
|
834
834
|
ref: u,
|
|
835
835
|
"onUpdate:modelValue": p[0] || (p[0] = (R) => i.value = R),
|
|
836
|
-
class:
|
|
836
|
+
class: I(["ds-input__control", { "has-suffix": $.value }]),
|
|
837
837
|
type: h.value,
|
|
838
838
|
placeholder: e.placeholder,
|
|
839
839
|
min: e.min,
|
|
@@ -851,17 +851,17 @@ const Xe = {
|
|
|
851
851
|
[da, i.value]
|
|
852
852
|
]),
|
|
853
853
|
$.value ? (a(), l("div", al, [
|
|
854
|
-
|
|
855
|
-
e.error && e.showErrorIcon ? (a(), l("i", ll, "warning")) :
|
|
854
|
+
M(_.$slots, "suffix", {}, void 0, !0),
|
|
855
|
+
e.error && e.showErrorIcon ? (a(), l("i", ll, "warning")) : y.value ? (a(), l("button", {
|
|
856
856
|
key: 1,
|
|
857
857
|
type: "button",
|
|
858
858
|
class: "ds-input__toggle",
|
|
859
859
|
disabled: e.disabled,
|
|
860
860
|
"aria-label": e.toggleLabel || void 0,
|
|
861
|
-
"aria-pressed":
|
|
861
|
+
"aria-pressed": m.value,
|
|
862
862
|
onClick: v
|
|
863
863
|
}, [
|
|
864
|
-
s("i", il, c(
|
|
864
|
+
s("i", il, c(m.value ? "visibility" : "visibility_off"), 1)
|
|
865
865
|
], 8, nl)) : S("", !0)
|
|
866
866
|
])) : S("", !0)
|
|
867
867
|
]),
|
|
@@ -872,12 +872,12 @@ const Xe = {
|
|
|
872
872
|
}, c(e.errorMessage), 9, sl)) : S("", !0)
|
|
873
873
|
], 34));
|
|
874
874
|
}
|
|
875
|
-
}), lt = /* @__PURE__ */
|
|
875
|
+
}), lt = /* @__PURE__ */ P(ol, [["__scopeId", "data-v-d6eb193a"]]), dl = {
|
|
876
876
|
VERTICAL: "vertical"
|
|
877
|
-
}, rl = ["id", "placeholder", "rows", "disabled", "name", "aria-invalid", "aria-describedby"], cl = ["id"], ul = /* @__PURE__ */
|
|
877
|
+
}, rl = ["id", "placeholder", "rows", "disabled", "name", "aria-invalid", "aria-describedby"], cl = ["id"], ul = /* @__PURE__ */ x({
|
|
878
878
|
inheritAttrs: !1,
|
|
879
879
|
__name: "DsTextarea",
|
|
880
|
-
props: /* @__PURE__ */
|
|
880
|
+
props: /* @__PURE__ */ me({
|
|
881
881
|
placeholder: { type: String, default: "" },
|
|
882
882
|
rows: { type: Number, default: 4 },
|
|
883
883
|
disabled: Boolean,
|
|
@@ -894,19 +894,19 @@ const Xe = {
|
|
|
894
894
|
modelValue: { default: "" },
|
|
895
895
|
modelModifiers: {}
|
|
896
896
|
}),
|
|
897
|
-
emits: /* @__PURE__ */
|
|
897
|
+
emits: /* @__PURE__ */ me([Ze, Qe], ["update:modelValue"]),
|
|
898
898
|
setup(e, { emit: o }) {
|
|
899
|
-
const t =
|
|
900
|
-
() => Object.fromEntries(Object.entries(n).filter(([
|
|
899
|
+
const t = Te(e, "modelValue"), i = o, n = ra(), d = (b) => b === "class" || b === "style" || b.startsWith("data-"), u = k(
|
|
900
|
+
() => Object.fromEntries(Object.entries(n).filter(([b]) => d(b)))
|
|
901
901
|
), r = k(
|
|
902
|
-
() => Object.fromEntries(Object.entries(n).filter(([
|
|
902
|
+
() => Object.fromEntries(Object.entries(n).filter(([b]) => !d(b)))
|
|
903
903
|
);
|
|
904
|
-
return (
|
|
904
|
+
return (b, m) => (a(), l("div", Fe({
|
|
905
905
|
class: ["ds-textarea", [`ds-textarea--resize-${e.resize}`, { "is-error": e.error, "is-disabled": e.disabled }]]
|
|
906
906
|
}, u.value), [
|
|
907
907
|
ft(s("textarea", Fe(r.value, {
|
|
908
908
|
id: e.id || void 0,
|
|
909
|
-
"onUpdate:modelValue":
|
|
909
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => t.value = v),
|
|
910
910
|
class: "ds-textarea__control",
|
|
911
911
|
placeholder: e.placeholder,
|
|
912
912
|
rows: e.rows,
|
|
@@ -914,8 +914,8 @@ const Xe = {
|
|
|
914
914
|
name: e.name || void 0,
|
|
915
915
|
"aria-invalid": e.error || void 0,
|
|
916
916
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
917
|
-
onFocus:
|
|
918
|
-
onBlur:
|
|
917
|
+
onFocus: m[1] || (m[1] = (v) => i(f(Ze), v)),
|
|
918
|
+
onBlur: m[2] || (m[2] = (v) => i(f(Qe), v))
|
|
919
919
|
}), null, 16, rl), [
|
|
920
920
|
[ca, t.value]
|
|
921
921
|
]),
|
|
@@ -926,7 +926,7 @@ const Xe = {
|
|
|
926
926
|
}, c(e.errorMessage), 9, cl)) : S("", !0)
|
|
927
927
|
], 16));
|
|
928
928
|
}
|
|
929
|
-
}),
|
|
929
|
+
}), Zd = /* @__PURE__ */ P(ul, [["__scopeId", "data-v-745c01de"]]), fl = {
|
|
930
930
|
SUCCESS: "success",
|
|
931
931
|
INFO: "info",
|
|
932
932
|
WARNING: "warning",
|
|
@@ -948,9 +948,9 @@ const Xe = {
|
|
|
948
948
|
}, yl = { class: "ds-alert__content" }, gl = {
|
|
949
949
|
key: 1,
|
|
950
950
|
class: "ds-alert__body"
|
|
951
|
-
}, hl = ["aria-label"], pl = /* @__PURE__ */
|
|
951
|
+
}, hl = ["aria-label"], pl = /* @__PURE__ */ x({
|
|
952
952
|
__name: "DsAlert",
|
|
953
|
-
props: /* @__PURE__ */
|
|
953
|
+
props: /* @__PURE__ */ me({
|
|
954
954
|
type: { type: String, default: fl.INFO },
|
|
955
955
|
effect: { type: String, default: vl.LIGHT },
|
|
956
956
|
title: { type: String, default: "" },
|
|
@@ -965,32 +965,32 @@ const Xe = {
|
|
|
965
965
|
visible: { type: Boolean, default: !0 },
|
|
966
966
|
visibleModifiers: {}
|
|
967
967
|
}),
|
|
968
|
-
emits: /* @__PURE__ */
|
|
968
|
+
emits: /* @__PURE__ */ me([ue], ["update:visible"]),
|
|
969
969
|
setup(e, { emit: o }) {
|
|
970
|
-
const t = e, i = o, n =
|
|
971
|
-
function
|
|
970
|
+
const t = e, i = o, n = Te(e, "visible"), d = Ae(), u = k(() => bl[t.type]), r = k(() => !!d.default || t.description.length > 0), b = k(() => !!d.title || t.title.length > 0);
|
|
971
|
+
function m() {
|
|
972
972
|
n.value = !1, i(ue);
|
|
973
973
|
}
|
|
974
974
|
return (v, g) => (a(), K(Se, { name: "ds-alert-fade" }, {
|
|
975
975
|
default: B(() => [
|
|
976
976
|
n.value ? (a(), l("div", {
|
|
977
977
|
key: 0,
|
|
978
|
-
class:
|
|
978
|
+
class: I(["ds-alert", [`ds-alert--${e.type}`, `ds-alert--${e.effect}`, { "is-center": e.center }]]),
|
|
979
979
|
role: "alert"
|
|
980
980
|
}, [
|
|
981
981
|
e.showIcon ? (a(), l("i", ml, c(u.value), 1)) : S("", !0),
|
|
982
982
|
s("div", yl, [
|
|
983
|
-
|
|
983
|
+
b.value ? (a(), l("div", {
|
|
984
984
|
key: 0,
|
|
985
|
-
class:
|
|
985
|
+
class: I(["ds-alert__title", { "has-body": r.value, "is-bold": r.value || e.boldTitle }])
|
|
986
986
|
}, [
|
|
987
|
-
|
|
988
|
-
|
|
987
|
+
M(v.$slots, "title", {}, () => [
|
|
988
|
+
J(c(e.title), 1)
|
|
989
989
|
], !0)
|
|
990
990
|
], 2)) : S("", !0),
|
|
991
991
|
r.value ? (a(), l("div", gl, [
|
|
992
|
-
|
|
993
|
-
|
|
992
|
+
M(v.$slots, "default", {}, () => [
|
|
993
|
+
J(c(e.description), 1)
|
|
994
994
|
], !0)
|
|
995
995
|
])) : S("", !0)
|
|
996
996
|
]),
|
|
@@ -999,7 +999,7 @@ const Xe = {
|
|
|
999
999
|
type: "button",
|
|
1000
1000
|
class: "ds-alert__close",
|
|
1001
1001
|
"aria-label": e.closeLabel || void 0,
|
|
1002
|
-
onClick:
|
|
1002
|
+
onClick: m
|
|
1003
1003
|
}, [...g[0] || (g[0] = [
|
|
1004
1004
|
s("i", {
|
|
1005
1005
|
class: "material-symbols-filled",
|
|
@@ -1011,7 +1011,7 @@ const Xe = {
|
|
|
1011
1011
|
_: 3
|
|
1012
1012
|
}));
|
|
1013
1013
|
}
|
|
1014
|
-
}),
|
|
1014
|
+
}), Qd = /* @__PURE__ */ P(pl, [["__scopeId", "data-v-82377cbc"]]), kl = {
|
|
1015
1015
|
SUCCESS: "success",
|
|
1016
1016
|
INFO: "info",
|
|
1017
1017
|
WARNING: "warning",
|
|
@@ -1040,7 +1040,7 @@ const Xe = {
|
|
|
1040
1040
|
}, El = {
|
|
1041
1041
|
key: 1,
|
|
1042
1042
|
class: "ds-notification__desc"
|
|
1043
|
-
}, Tl = ["href", "target", "rel"], Cl = ["aria-label"], Il = /* @__PURE__ */
|
|
1043
|
+
}, Tl = ["href", "target", "rel"], Cl = ["aria-label"], Il = /* @__PURE__ */ x({
|
|
1044
1044
|
__name: "DsNotification",
|
|
1045
1045
|
props: {
|
|
1046
1046
|
type: { type: String, default: kl.INFO },
|
|
@@ -1074,26 +1074,26 @@ const Xe = {
|
|
|
1074
1074
|
const t = e, i = o, n = N(!0), d = k(() => $l[t.type]), u = k(
|
|
1075
1075
|
() => t.linkTarget === Mt.BLANK ? "noopener noreferrer" : void 0
|
|
1076
1076
|
);
|
|
1077
|
-
let r,
|
|
1077
|
+
let r, b = 0, m = t.duration;
|
|
1078
1078
|
function v() {
|
|
1079
1079
|
r && (clearTimeout(r), r = void 0);
|
|
1080
1080
|
}
|
|
1081
1081
|
function g(_) {
|
|
1082
|
-
v(), !(t.duration <= 0 || !n.value) && (
|
|
1082
|
+
v(), !(t.duration <= 0 || !n.value) && (b = Date.now(), r = setTimeout(y, _));
|
|
1083
1083
|
}
|
|
1084
1084
|
function L() {
|
|
1085
|
-
r && (
|
|
1085
|
+
r && (m -= Date.now() - b, v());
|
|
1086
1086
|
}
|
|
1087
1087
|
function h() {
|
|
1088
|
-
g(
|
|
1088
|
+
g(m > 0 ? m : t.duration);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function y() {
|
|
1091
1091
|
v(), n.value = !1, i(ue);
|
|
1092
1092
|
}
|
|
1093
1093
|
function $(_) {
|
|
1094
1094
|
i(wt, _);
|
|
1095
1095
|
}
|
|
1096
|
-
return
|
|
1096
|
+
return Pe(() => g(t.duration)), re(v), (_, p) => (a(), K(Ge, { to: "body" }, [
|
|
1097
1097
|
F(Se, {
|
|
1098
1098
|
name: "ds-notification",
|
|
1099
1099
|
appear: ""
|
|
@@ -1101,10 +1101,10 @@ const Xe = {
|
|
|
1101
1101
|
default: B(() => [
|
|
1102
1102
|
n.value ? (a(), l("div", {
|
|
1103
1103
|
key: 0,
|
|
1104
|
-
class:
|
|
1104
|
+
class: I(["ds-notification", `ds-notification--${e.position}`])
|
|
1105
1105
|
}, [
|
|
1106
1106
|
s("div", {
|
|
1107
|
-
class:
|
|
1107
|
+
class: I(["ds-notification__card", `ds-notification__card--${e.type}`]),
|
|
1108
1108
|
role: "alert",
|
|
1109
1109
|
onMouseenter: L,
|
|
1110
1110
|
onMouseleave: h
|
|
@@ -1127,7 +1127,7 @@ const Xe = {
|
|
|
1127
1127
|
type: "button",
|
|
1128
1128
|
class: "ds-notification__close",
|
|
1129
1129
|
"aria-label": e.closeLabel || void 0,
|
|
1130
|
-
onClick:
|
|
1130
|
+
onClick: y
|
|
1131
1131
|
}, [...p[0] || (p[0] = [
|
|
1132
1132
|
s("i", {
|
|
1133
1133
|
class: "material-symbols-filled",
|
|
@@ -1141,13 +1141,13 @@ const Xe = {
|
|
|
1141
1141
|
})
|
|
1142
1142
|
]));
|
|
1143
1143
|
}
|
|
1144
|
-
}),
|
|
1144
|
+
}), Jd = /* @__PURE__ */ P(Il, [["__scopeId", "data-v-4ae56e64"]]), Dl = ["aria-modal", "aria-labelledby", "aria-label"], Al = {
|
|
1145
1145
|
key: 0,
|
|
1146
1146
|
class: "ds-modal__header"
|
|
1147
1147
|
}, Rl = ["id"], Nl = { class: "ds-modal__body" }, Ol = {
|
|
1148
1148
|
key: 1,
|
|
1149
1149
|
class: "ds-modal__footer"
|
|
1150
|
-
}, Bl = /* @__PURE__ */
|
|
1150
|
+
}, Bl = /* @__PURE__ */ x({
|
|
1151
1151
|
__name: "DsModal",
|
|
1152
1152
|
props: {
|
|
1153
1153
|
open: Boolean,
|
|
@@ -1178,12 +1178,12 @@ const Xe = {
|
|
|
1178
1178
|
width: t.width,
|
|
1179
1179
|
...t.height ? { height: t.height } : {}
|
|
1180
1180
|
}));
|
|
1181
|
-
function
|
|
1181
|
+
function b() {
|
|
1182
1182
|
t.fixed && t.closeOnBackdrop && i(ue);
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function m() {
|
|
1185
1185
|
return n.value ? Array.from(n.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
1186
|
-
(
|
|
1186
|
+
(y) => y.offsetParent !== null
|
|
1187
1187
|
) : [];
|
|
1188
1188
|
}
|
|
1189
1189
|
function v(h) {
|
|
@@ -1193,33 +1193,33 @@ const Xe = {
|
|
|
1193
1193
|
return;
|
|
1194
1194
|
}
|
|
1195
1195
|
if (h.key !== "Tab") return;
|
|
1196
|
-
const
|
|
1197
|
-
if (
|
|
1196
|
+
const y = m();
|
|
1197
|
+
if (y.length === 0) {
|
|
1198
1198
|
h.preventDefault(), (p = n.value) == null || p.focus();
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
|
-
const $ =
|
|
1201
|
+
const $ = y[0], _ = y[y.length - 1];
|
|
1202
1202
|
h.shiftKey && document.activeElement === $ ? (h.preventDefault(), _.focus()) : !h.shiftKey && document.activeElement === _ && (h.preventDefault(), $.focus());
|
|
1203
1203
|
}
|
|
1204
1204
|
function g() {
|
|
1205
1205
|
d = document.activeElement, document.addEventListener("keydown", v), document.body.style.overflow = "hidden", ne(() => {
|
|
1206
|
-
var h,
|
|
1207
|
-
return (
|
|
1206
|
+
var h, y;
|
|
1207
|
+
return (y = (h = m()[0]) != null ? h : n.value) == null ? void 0 : y.focus();
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
1210
|
function L(h = !0) {
|
|
1211
|
-
var
|
|
1212
|
-
document.removeEventListener("keydown", v), document.body.style.overflow = "", h && ((
|
|
1211
|
+
var y;
|
|
1212
|
+
document.removeEventListener("keydown", v), document.body.style.overflow = "", h && ((y = d == null ? void 0 : d.focus) == null || y.call(d));
|
|
1213
1213
|
}
|
|
1214
1214
|
return ae(
|
|
1215
1215
|
() => t.open && t.fixed,
|
|
1216
|
-
(h,
|
|
1217
|
-
typeof document != "undefined" && (h ? g() :
|
|
1216
|
+
(h, y) => {
|
|
1217
|
+
typeof document != "undefined" && (h ? g() : y && L());
|
|
1218
1218
|
},
|
|
1219
1219
|
{ immediate: !0 }
|
|
1220
1220
|
), re(() => {
|
|
1221
1221
|
typeof document != "undefined" && L(!1);
|
|
1222
|
-
}), (h,
|
|
1222
|
+
}), (h, y) => (a(), K(Ge, {
|
|
1223
1223
|
to: "body",
|
|
1224
1224
|
disabled: !e.fixed
|
|
1225
1225
|
}, [
|
|
@@ -1227,21 +1227,21 @@ const Xe = {
|
|
|
1227
1227
|
default: B(() => [
|
|
1228
1228
|
e.open ? (a(), l("div", {
|
|
1229
1229
|
key: 0,
|
|
1230
|
-
class:
|
|
1230
|
+
class: I(["ds-modal", { "is-fixed": e.fixed }]),
|
|
1231
1231
|
style: Y(e.fixed ? { paddingTop: e.top } : void 0),
|
|
1232
|
-
onClick:
|
|
1232
|
+
onClick: b
|
|
1233
1233
|
}, [
|
|
1234
1234
|
s("div", {
|
|
1235
1235
|
ref_key: "dialogRef",
|
|
1236
1236
|
ref: n,
|
|
1237
|
-
class:
|
|
1237
|
+
class: I(["ds-modal__dialog", { "is-center": e.center }]),
|
|
1238
1238
|
role: "dialog",
|
|
1239
1239
|
"aria-modal": e.fixed ? "true" : "false",
|
|
1240
1240
|
"aria-labelledby": e.title ? f(u) : void 0,
|
|
1241
1241
|
"aria-label": e.title ? void 0 : "dialog",
|
|
1242
1242
|
tabindex: "-1",
|
|
1243
1243
|
style: Y(r.value),
|
|
1244
|
-
onClick:
|
|
1244
|
+
onClick: y[1] || (y[1] = De(() => {
|
|
1245
1245
|
}, ["stop"]))
|
|
1246
1246
|
}, [
|
|
1247
1247
|
e.title || e.showClose ? (a(), l("div", Al, [
|
|
@@ -1255,14 +1255,14 @@ const Xe = {
|
|
|
1255
1255
|
circle: "",
|
|
1256
1256
|
"left-icon": "close",
|
|
1257
1257
|
"aria-label": e.closeLabel || void 0,
|
|
1258
|
-
onClick:
|
|
1258
|
+
onClick: y[0] || (y[0] = ($) => i(f(ue)))
|
|
1259
1259
|
}, null, 8, ["aria-label"])) : S("", !0)
|
|
1260
1260
|
])) : S("", !0),
|
|
1261
1261
|
s("div", Nl, [
|
|
1262
|
-
|
|
1262
|
+
M(h.$slots, "default", {}, void 0, !0)
|
|
1263
1263
|
]),
|
|
1264
1264
|
h.$slots.footer ? (a(), l("div", Ol, [
|
|
1265
|
-
|
|
1265
|
+
M(h.$slots, "footer", {}, void 0, !0)
|
|
1266
1266
|
])) : S("", !0)
|
|
1267
1267
|
], 14, Dl)
|
|
1268
1268
|
], 6)) : S("", !0)
|
|
@@ -1271,7 +1271,7 @@ const Xe = {
|
|
|
1271
1271
|
})
|
|
1272
1272
|
], 8, ["disabled"]));
|
|
1273
1273
|
}
|
|
1274
|
-
}),
|
|
1274
|
+
}), er = /* @__PURE__ */ P(Bl, [["__scopeId", "data-v-a759ae72"]]), Ht = ["pointerdown", "mousedown"];
|
|
1275
1275
|
let Ve = null, Kt = 0;
|
|
1276
1276
|
function Wt(e) {
|
|
1277
1277
|
e.metaKey || e.ctrlKey || e.altKey || (Ve = "keyboard");
|
|
@@ -1294,7 +1294,7 @@ function Pl(e) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
function zl() {
|
|
1297
|
-
return
|
|
1297
|
+
return Pe(Ml), re(xl), { isKeyboardFocus: Pl };
|
|
1298
1298
|
}
|
|
1299
1299
|
function jt(e, { onTriggerHidden: o } = {}) {
|
|
1300
1300
|
const t = N(null);
|
|
@@ -1319,13 +1319,13 @@ function jt(e, { onTriggerHidden: o } = {}) {
|
|
|
1319
1319
|
v.some((g) => !g.isIntersecting) && o();
|
|
1320
1320
|
}), n.observe(e.value));
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function b() {
|
|
1323
1323
|
typeof window != "undefined" && (u(), !i && (i = !0, window.addEventListener("resize", u), window.addEventListener("scroll", u, { capture: !0, passive: !0 }), r()));
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function m() {
|
|
1326
1326
|
i && (i = !1, window.removeEventListener("resize", u), window.removeEventListener("scroll", u, { capture: !0 }), n == null || n.disconnect(), n = null);
|
|
1327
1327
|
}
|
|
1328
|
-
return re(
|
|
1328
|
+
return re(m), { anchorStyle: d, track: b, untrack: m };
|
|
1329
1329
|
}
|
|
1330
1330
|
const Ul = "--ds-overlay-shift", ke = 8, Fl = {
|
|
1331
1331
|
top: "bottom",
|
|
@@ -1339,8 +1339,8 @@ function Xt(e, o, t) {
|
|
|
1339
1339
|
), u = k(() => {
|
|
1340
1340
|
const g = o();
|
|
1341
1341
|
if (!n.value) return g;
|
|
1342
|
-
const L = g.indexOf("-"), h = L === -1 ? g : g.slice(0, L),
|
|
1343
|
-
return
|
|
1342
|
+
const L = g.indexOf("-"), h = L === -1 ? g : g.slice(0, L), y = Fl[h];
|
|
1343
|
+
return y ? L === -1 ? y : y + g.slice(L) : g;
|
|
1344
1344
|
});
|
|
1345
1345
|
function r() {
|
|
1346
1346
|
if (!t) return;
|
|
@@ -1351,37 +1351,37 @@ function Xt(e, o, t) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
const L = e.value, h = t.trigger.value;
|
|
1353
1353
|
if (!L || !h) return;
|
|
1354
|
-
const
|
|
1354
|
+
const y = h.getBoundingClientRect(), $ = t.gap;
|
|
1355
1355
|
if (g === "top" || g === "bottom") {
|
|
1356
|
-
const _ = window.innerHeight -
|
|
1356
|
+
const _ = window.innerHeight - y.bottom - $ - ke, p = y.top - $ - ke, R = L.offsetHeight;
|
|
1357
1357
|
n.value = g === "bottom" ? R > _ && p > _ : R > p && _ > p;
|
|
1358
1358
|
} else {
|
|
1359
|
-
const _ = window.innerWidth -
|
|
1359
|
+
const _ = window.innerWidth - y.right - $ - ke, p = y.left - $ - ke, R = L.offsetWidth;
|
|
1360
1360
|
n.value = g === "right" ? R > _ && p > _ : R > p && _ > p;
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
|
-
async function
|
|
1363
|
+
async function b() {
|
|
1364
1364
|
if (typeof window == "undefined") return;
|
|
1365
1365
|
r(), i.value = 0, await ne();
|
|
1366
1366
|
const g = e.value;
|
|
1367
1367
|
if (!g) return;
|
|
1368
|
-
const L = g.getBoundingClientRect(), h = o().split("-")[0],
|
|
1368
|
+
const L = g.getBoundingClientRect(), h = o().split("-")[0], y = h === "top" || h === "bottom" || h === "over", [$, _, p] = y ? [L.left, L.right, window.innerWidth] : [L.top, L.bottom, window.innerHeight];
|
|
1369
1369
|
$ < ke ? i.value = ke - $ : _ > p - ke && (i.value = p - ke - _);
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1372
|
-
typeof window != "undefined" && (window.addEventListener("resize",
|
|
1371
|
+
function m() {
|
|
1372
|
+
typeof window != "undefined" && (window.addEventListener("resize", b), window.addEventListener("scroll", b, { capture: !0, passive: !0 }), b());
|
|
1373
1373
|
}
|
|
1374
1374
|
function v() {
|
|
1375
|
-
typeof window != "undefined" && (window.removeEventListener("resize",
|
|
1375
|
+
typeof window != "undefined" && (window.removeEventListener("resize", b), window.removeEventListener("scroll", b, { capture: !0 }), i.value = 0, n.value = !1);
|
|
1376
1376
|
}
|
|
1377
|
-
return { shift: i, shiftStyle: d, resolvedPlacement: u, measure:
|
|
1377
|
+
return { shift: i, shiftStyle: d, resolvedPlacement: u, measure: b, activate: m, deactivate: v };
|
|
1378
1378
|
}
|
|
1379
1379
|
const Ee = {
|
|
1380
1380
|
TOP: "top",
|
|
1381
1381
|
BOTTOM: "bottom",
|
|
1382
1382
|
LEFT: "left",
|
|
1383
1383
|
RIGHT: "right"
|
|
1384
|
-
}, Vl = ["id"], ql = ["id"], Gl = 6, Hl = /* @__PURE__ */
|
|
1384
|
+
}, Vl = ["id"], ql = ["id"], Gl = 6, Hl = /* @__PURE__ */ x({
|
|
1385
1385
|
__name: "DsTooltip",
|
|
1386
1386
|
props: {
|
|
1387
1387
|
// Bubble text. Rich content can be provided via the #content slot instead.
|
|
@@ -1406,14 +1406,14 @@ const Ee = {
|
|
|
1406
1406
|
teleported: { type: Boolean, default: !1 }
|
|
1407
1407
|
},
|
|
1408
1408
|
setup(e) {
|
|
1409
|
-
const o = e, t =
|
|
1410
|
-
shiftStyle:
|
|
1411
|
-
resolvedPlacement:
|
|
1409
|
+
const o = e, t = Ae(), i = be(), n = N(null), d = N(!1), u = N(null), { isKeyboardFocus: r } = zl(), {
|
|
1410
|
+
shiftStyle: b,
|
|
1411
|
+
resolvedPlacement: m,
|
|
1412
1412
|
activate: v,
|
|
1413
1413
|
deactivate: g
|
|
1414
|
-
} = Xt(u, () => o.placement, { trigger: n, gap: Gl }), { anchorStyle: L, track: h, untrack:
|
|
1414
|
+
} = Xt(u, () => o.placement, { trigger: n, gap: Gl }), { anchorStyle: L, track: h, untrack: y } = jt(n);
|
|
1415
1415
|
ae(d, (T) => {
|
|
1416
|
-
T ? (o.teleported && h(), ne(v)) : (
|
|
1416
|
+
T ? (o.teleported && h(), ne(v)) : (y(), g());
|
|
1417
1417
|
});
|
|
1418
1418
|
const $ = k(() => !o.disabled && (o.content.length > 0 || !!t.content));
|
|
1419
1419
|
ae(
|
|
@@ -1427,15 +1427,15 @@ const Ee = {
|
|
|
1427
1427
|
R !== null && (clearTimeout(R), R = null);
|
|
1428
1428
|
}
|
|
1429
1429
|
function X(T) {
|
|
1430
|
-
T && (O && O !== T &&
|
|
1430
|
+
T && (O && O !== T && z(), O !== T && (O = T, H = T.getAttribute("aria-describedby"), T.setAttribute(
|
|
1431
1431
|
"aria-describedby",
|
|
1432
1432
|
H ? `${H} ${i}` : i
|
|
1433
1433
|
)));
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function z() {
|
|
1436
1436
|
O && (H !== null ? O.setAttribute("aria-describedby", H) : O.removeAttribute("aria-describedby"), O = null, H = null);
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function U() {
|
|
1439
1439
|
$.value && (_ = !0, W(), R = setTimeout(() => {
|
|
1440
1440
|
d.value = !0;
|
|
1441
1441
|
}, o.delay));
|
|
@@ -1452,21 +1452,21 @@ const Ee = {
|
|
|
1452
1452
|
q && (se != null && se.contains(q)) || (p = !1, _ || C());
|
|
1453
1453
|
}
|
|
1454
1454
|
function C() {
|
|
1455
|
-
W(), d.value = !1,
|
|
1455
|
+
W(), d.value = !1, z();
|
|
1456
1456
|
}
|
|
1457
1457
|
return re(() => {
|
|
1458
|
-
W(),
|
|
1458
|
+
W(), z(), g();
|
|
1459
1459
|
}), (T, q) => (a(), l("div", {
|
|
1460
1460
|
ref_key: "rootRef",
|
|
1461
1461
|
ref: n,
|
|
1462
|
-
class:
|
|
1463
|
-
onMouseenter:
|
|
1462
|
+
class: I(["ds-tooltip", { "ds-tooltip--block": e.block }]),
|
|
1463
|
+
onMouseenter: U,
|
|
1464
1464
|
onMouseleave: E,
|
|
1465
1465
|
onFocusin: A,
|
|
1466
1466
|
onFocusout: w,
|
|
1467
1467
|
onKeydown: je(C, ["esc"])
|
|
1468
1468
|
}, [
|
|
1469
|
-
|
|
1469
|
+
M(T.$slots, "default", {}, void 0, !0),
|
|
1470
1470
|
e.teleported ? (a(), K(Ge, {
|
|
1471
1471
|
key: 0,
|
|
1472
1472
|
to: "body"
|
|
@@ -1482,12 +1482,12 @@ const Ee = {
|
|
|
1482
1482
|
id: f(i),
|
|
1483
1483
|
ref_key: "bubbleRef",
|
|
1484
1484
|
ref: u,
|
|
1485
|
-
class:
|
|
1485
|
+
class: I(["ds-tooltip__bubble", `ds-tooltip__bubble--${f(m)}`]),
|
|
1486
1486
|
role: "tooltip",
|
|
1487
|
-
style: Y(f(
|
|
1487
|
+
style: Y(f(b))
|
|
1488
1488
|
}, [
|
|
1489
|
-
|
|
1490
|
-
|
|
1489
|
+
M(T.$slots, "content", {}, () => [
|
|
1490
|
+
J(c(e.content), 1)
|
|
1491
1491
|
], !0)
|
|
1492
1492
|
], 14, Vl)
|
|
1493
1493
|
], 4)) : S("", !0)
|
|
@@ -1504,12 +1504,12 @@ const Ee = {
|
|
|
1504
1504
|
id: f(i),
|
|
1505
1505
|
ref_key: "bubbleRef",
|
|
1506
1506
|
ref: u,
|
|
1507
|
-
class:
|
|
1507
|
+
class: I(["ds-tooltip__bubble", `ds-tooltip__bubble--${f(m)}`]),
|
|
1508
1508
|
role: "tooltip",
|
|
1509
|
-
style: Y(f(
|
|
1509
|
+
style: Y(f(b))
|
|
1510
1510
|
}, [
|
|
1511
|
-
|
|
1512
|
-
|
|
1511
|
+
M(T.$slots, "content", {}, () => [
|
|
1512
|
+
J(c(e.content), 1)
|
|
1513
1513
|
], !0)
|
|
1514
1514
|
], 14, ql)) : S("", !0)
|
|
1515
1515
|
]),
|
|
@@ -1517,11 +1517,11 @@ const Ee = {
|
|
|
1517
1517
|
}))
|
|
1518
1518
|
], 34));
|
|
1519
1519
|
}
|
|
1520
|
-
}), ge = /* @__PURE__ */
|
|
1520
|
+
}), ge = /* @__PURE__ */ P(Hl, [["__scopeId", "data-v-5a578d51"]]), rt = {
|
|
1521
1521
|
VERIFIED: "verified",
|
|
1522
1522
|
UNVERIFIED: "unverified",
|
|
1523
1523
|
NEW: "new"
|
|
1524
|
-
}, Kl = ["aria-label", "title"], Wl = /* @__PURE__ */
|
|
1524
|
+
}, Kl = ["aria-label", "title"], Wl = /* @__PURE__ */ x({
|
|
1525
1525
|
__name: "DsVerificationIcon",
|
|
1526
1526
|
props: {
|
|
1527
1527
|
// true = verified · false = not verified · null/undefined = newly found.
|
|
@@ -1560,7 +1560,7 @@ const Ee = {
|
|
|
1560
1560
|
label: "Not verified"
|
|
1561
1561
|
});
|
|
1562
1562
|
return (i, n) => (a(), l("i", {
|
|
1563
|
-
class:
|
|
1563
|
+
class: I(["material-symbols-filled ds-verification-icon", [
|
|
1564
1564
|
`ds-verification-icon--${t.value.state}`,
|
|
1565
1565
|
{ "ds-verification-icon--email": e.isContactData }
|
|
1566
1566
|
]]),
|
|
@@ -1569,12 +1569,12 @@ const Ee = {
|
|
|
1569
1569
|
"aria-label": e.label || t.value.label,
|
|
1570
1570
|
title: e.label || t.value.label
|
|
1571
1571
|
}, [
|
|
1572
|
-
|
|
1573
|
-
|
|
1572
|
+
M(i.$slots, "default", {}, () => [
|
|
1573
|
+
J(c(t.value.icon), 1)
|
|
1574
1574
|
], !0)
|
|
1575
1575
|
], 14, Kl));
|
|
1576
1576
|
}
|
|
1577
|
-
}), Yl = /* @__PURE__ */
|
|
1577
|
+
}), Yl = /* @__PURE__ */ P(Wl, [["__scopeId", "data-v-c84b2196"]]);
|
|
1578
1578
|
function Zt() {
|
|
1579
1579
|
let e = !1;
|
|
1580
1580
|
re(() => {
|
|
@@ -1596,7 +1596,7 @@ function Zt() {
|
|
|
1596
1596
|
const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class: "ds-contact-value__actions" }, Ql = ["role", "aria-label", "aria-hidden"], Jl = ["aria-label", "title"], en = {
|
|
1597
1597
|
class: "material-symbols-filled",
|
|
1598
1598
|
"aria-hidden": "true"
|
|
1599
|
-
}, tn = ["aria-label", "aria-pressed", "title"], an = ["aria-label", "aria-pressed", "title"], ln = /* @__PURE__ */
|
|
1599
|
+
}, tn = ["aria-label", "aria-pressed", "title"], an = ["aria-label", "aria-pressed", "title"], ln = /* @__PURE__ */ x({
|
|
1600
1600
|
__name: "DsContactValue",
|
|
1601
1601
|
props: {
|
|
1602
1602
|
value: { type: String, required: !0 },
|
|
@@ -1627,14 +1627,14 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1627
1627
|
n.value = !1;
|
|
1628
1628
|
}, 1200), i($e, v));
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function b() {
|
|
1631
1631
|
i(_e);
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function m() {
|
|
1634
1634
|
i(Le);
|
|
1635
1635
|
}
|
|
1636
1636
|
return re(() => clearTimeout(d)), (v, g) => (a(), l("div", {
|
|
1637
|
-
class:
|
|
1637
|
+
class: I(["ds-contact-value", { "ds-contact-value--main": e.main }])
|
|
1638
1638
|
}, [
|
|
1639
1639
|
F(f(Yl), {
|
|
1640
1640
|
verified: e.verified,
|
|
@@ -1652,7 +1652,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1652
1652
|
title: e.valueType
|
|
1653
1653
|
}, {
|
|
1654
1654
|
default: B(() => [
|
|
1655
|
-
|
|
1655
|
+
J(c(e.valueType), 1)
|
|
1656
1656
|
]),
|
|
1657
1657
|
_: 1
|
|
1658
1658
|
}, 8, ["tone", "title"])) : S("", !0),
|
|
@@ -1666,7 +1666,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1666
1666
|
}, "lock", 8, Ql)) : (a(), l(G, { key: 1 }, [
|
|
1667
1667
|
s("button", {
|
|
1668
1668
|
type: "button",
|
|
1669
|
-
class:
|
|
1669
|
+
class: I(["ds-contact-value__action", { "is-copied": n.value }]),
|
|
1670
1670
|
"aria-label": n.value ? e.copiedLabel : e.copyLabel,
|
|
1671
1671
|
title: n.value ? e.copiedLabel : e.copyLabel,
|
|
1672
1672
|
onClick: r
|
|
@@ -1680,10 +1680,10 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1680
1680
|
"aria-label": e.correctLabel,
|
|
1681
1681
|
"aria-pressed": e.correct === !0,
|
|
1682
1682
|
title: e.correctLabel,
|
|
1683
|
-
onClick:
|
|
1683
|
+
onClick: b
|
|
1684
1684
|
}, [
|
|
1685
1685
|
s("i", {
|
|
1686
|
-
class:
|
|
1686
|
+
class: I(e.correct === !0 ? "material-symbols-filled" : "material-symbols-rounded"),
|
|
1687
1687
|
"aria-hidden": "true"
|
|
1688
1688
|
}, "thumb_up", 2)
|
|
1689
1689
|
], 8, tn),
|
|
@@ -1693,10 +1693,10 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1693
1693
|
"aria-label": e.incorrectLabel,
|
|
1694
1694
|
"aria-pressed": e.correct === !1,
|
|
1695
1695
|
title: e.incorrectLabel,
|
|
1696
|
-
onClick:
|
|
1696
|
+
onClick: m
|
|
1697
1697
|
}, [
|
|
1698
1698
|
s("i", {
|
|
1699
|
-
class:
|
|
1699
|
+
class: I(e.correct === !1 ? "material-symbols-filled" : "material-symbols-rounded"),
|
|
1700
1700
|
"aria-hidden": "true"
|
|
1701
1701
|
}, "thumb_down", 2)
|
|
1702
1702
|
], 8, an)
|
|
@@ -1706,7 +1706,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1706
1706
|
])
|
|
1707
1707
|
], 2));
|
|
1708
1708
|
}
|
|
1709
|
-
}), xt = /* @__PURE__ */
|
|
1709
|
+
}), xt = /* @__PURE__ */ P(ln, [["__scopeId", "data-v-133881e2"]]), nn = ["aria-label", "aria-busy"], sn = { class: "ds-data-card__heading" }, on = {
|
|
1710
1710
|
class: "material-symbols-filled ds-data-card__icon",
|
|
1711
1711
|
"aria-hidden": "true"
|
|
1712
1712
|
}, dn = { class: "ds-data-card__title" }, rn = ["aria-label"], cn = {
|
|
@@ -1733,7 +1733,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1733
1733
|
}, _n = { key: 1 }, Ln = {
|
|
1734
1734
|
key: 0,
|
|
1735
1735
|
class: "ds-data-card__section"
|
|
1736
|
-
}, wn = { class: "ds-data-card__more" }, En = /* @__PURE__ */
|
|
1736
|
+
}, wn = { class: "ds-data-card__more" }, En = /* @__PURE__ */ x({
|
|
1737
1737
|
__name: "DsDataCard",
|
|
1738
1738
|
props: {
|
|
1739
1739
|
title: { type: String, required: !0 },
|
|
@@ -1775,8 +1775,8 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1775
1775
|
},
|
|
1776
1776
|
emits: [$e, pt, we, ue, _e, Le],
|
|
1777
1777
|
setup(e, { emit: o }) {
|
|
1778
|
-
const t = e, i = o, n = N(!1), d = k(() => t.more.length + (t.mostLikely ? 1 : 0)), u = k(() => d.value > 3), r = k(() => d.value === 0),
|
|
1779
|
-
function
|
|
1778
|
+
const t = e, i = o, n = N(!1), d = k(() => t.more.length + (t.mostLikely ? 1 : 0)), u = k(() => d.value > 3), r = k(() => d.value === 0), b = k(() => t.collapsible && n.value);
|
|
1779
|
+
function m() {
|
|
1780
1780
|
n.value = !n.value;
|
|
1781
1781
|
}
|
|
1782
1782
|
function v(_) {
|
|
@@ -1791,7 +1791,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1791
1791
|
function h() {
|
|
1792
1792
|
i(ue);
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1794
|
+
function y(_) {
|
|
1795
1795
|
i(_e, _);
|
|
1796
1796
|
}
|
|
1797
1797
|
function $(_) {
|
|
@@ -1803,8 +1803,8 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1803
1803
|
"aria-busy": e.loading ? "true" : void 0
|
|
1804
1804
|
}, [
|
|
1805
1805
|
s("div", {
|
|
1806
|
-
class:
|
|
1807
|
-
onClick: p[1] || (p[1] = (R) => e.collapsible &&
|
|
1806
|
+
class: I(["ds-data-card__header", { "is-collapsed": b.value, "is-collapsible": e.collapsible }]),
|
|
1807
|
+
onClick: p[1] || (p[1] = (R) => e.collapsible && m())
|
|
1808
1808
|
}, [
|
|
1809
1809
|
s("div", sn, [
|
|
1810
1810
|
s("i", on, c(e.icon), 1),
|
|
@@ -1812,16 +1812,16 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1812
1812
|
]),
|
|
1813
1813
|
s("div", {
|
|
1814
1814
|
class: "ds-data-card__actions",
|
|
1815
|
-
onClick: p[0] || (p[0] =
|
|
1815
|
+
onClick: p[0] || (p[0] = De(() => {
|
|
1816
1816
|
}, ["stop"]))
|
|
1817
1817
|
}, [
|
|
1818
|
-
!
|
|
1818
|
+
!b.value && e.showEdit ? (a(), l("button", {
|
|
1819
1819
|
key: 0,
|
|
1820
1820
|
type: "button",
|
|
1821
1821
|
class: "ds-data-card__edit",
|
|
1822
1822
|
onClick: L
|
|
1823
1823
|
}, c(e.editLabel), 1)) : S("", !0),
|
|
1824
|
-
!
|
|
1824
|
+
!b.value && e.showSort ? (a(), K(f(oe), {
|
|
1825
1825
|
key: 1,
|
|
1826
1826
|
variant: "tertiary",
|
|
1827
1827
|
size: "medium",
|
|
@@ -1837,7 +1837,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1837
1837
|
circle: "",
|
|
1838
1838
|
"left-icon": n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
1839
1839
|
"aria-label": e.toggleLabel,
|
|
1840
|
-
onClick:
|
|
1840
|
+
onClick: m
|
|
1841
1841
|
}, null, 8, ["left-icon", "aria-label"])) : S("", !0),
|
|
1842
1842
|
e.showClose ? (a(), l("button", {
|
|
1843
1843
|
key: 3,
|
|
@@ -1853,15 +1853,15 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1853
1853
|
])], 8, rn)) : S("", !0)
|
|
1854
1854
|
])
|
|
1855
1855
|
], 2),
|
|
1856
|
-
|
|
1856
|
+
b.value ? S("", !0) : (a(), l("div", cn, [
|
|
1857
1857
|
e.loading ? (a(), l("div", un, [
|
|
1858
|
-
|
|
1859
|
-
F(f(
|
|
1858
|
+
M(_.$slots, "loading", {}, () => [
|
|
1859
|
+
F(f(Me), {
|
|
1860
1860
|
label: e.loadingLabel || void 0
|
|
1861
1861
|
}, null, 8, ["label"])
|
|
1862
1862
|
], !0)
|
|
1863
1863
|
])) : e.locked ? (a(), l("div", fn, [
|
|
1864
|
-
|
|
1864
|
+
M(_.$slots, "locked", {}, () => [
|
|
1865
1865
|
p[5] || (p[5] = s("span", { class: "ds-data-card__state-badge ds-data-card__state-badge--accent" }, [
|
|
1866
1866
|
s("i", {
|
|
1867
1867
|
class: "material-symbols-filled ds-data-card__state-icon",
|
|
@@ -1893,7 +1893,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1893
1893
|
"is-contact-data": e.isContactData,
|
|
1894
1894
|
"show-rate": e.showRate,
|
|
1895
1895
|
onCopy: v,
|
|
1896
|
-
onCorrect: p[2] || (p[2] = (R) =>
|
|
1896
|
+
onCorrect: p[2] || (p[2] = (R) => y(e.mostLikely)),
|
|
1897
1897
|
onIncorrect: p[3] || (p[3] = (R) => $(e.mostLikely))
|
|
1898
1898
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate"])
|
|
1899
1899
|
])) : S("", !0),
|
|
@@ -1910,7 +1910,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1910
1910
|
"is-contact-data": e.isContactData,
|
|
1911
1911
|
"show-rate": e.showRate,
|
|
1912
1912
|
onCopy: v,
|
|
1913
|
-
onCorrect: (O) =>
|
|
1913
|
+
onCorrect: (O) => y(R),
|
|
1914
1914
|
onIncorrect: (O) => $(R)
|
|
1915
1915
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate", "onCorrect", "onIncorrect"]))), 128))
|
|
1916
1916
|
])
|
|
@@ -1919,12 +1919,12 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1919
1919
|
]))
|
|
1920
1920
|
], 8, nn));
|
|
1921
1921
|
}
|
|
1922
|
-
}),
|
|
1922
|
+
}), tr = /* @__PURE__ */ P(En, [["__scopeId", "data-v-e4f6e090"]]), Tn = ["name", "value", "checked", "disabled"], Cn = {
|
|
1923
1923
|
key: 0,
|
|
1924
1924
|
class: "ds-radio__label"
|
|
1925
|
-
}, In = /* @__PURE__ */
|
|
1925
|
+
}, In = /* @__PURE__ */ x({
|
|
1926
1926
|
__name: "DsRadio",
|
|
1927
|
-
props: /* @__PURE__ */
|
|
1927
|
+
props: /* @__PURE__ */ me({
|
|
1928
1928
|
disabled: Boolean,
|
|
1929
1929
|
// Label text (DS `label` prop); a default slot overrides it.
|
|
1930
1930
|
label: { type: String, default: "" },
|
|
@@ -1936,12 +1936,12 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1936
1936
|
}),
|
|
1937
1937
|
emits: ["update:modelValue"],
|
|
1938
1938
|
setup(e) {
|
|
1939
|
-
const o =
|
|
1939
|
+
const o = Te(e, "modelValue"), t = e;
|
|
1940
1940
|
function i() {
|
|
1941
1941
|
t.disabled || (o.value = !0);
|
|
1942
1942
|
}
|
|
1943
1943
|
return (n, d) => (a(), l("label", {
|
|
1944
|
-
class:
|
|
1944
|
+
class: I(["ds-radio", { "is-disabled": e.disabled }])
|
|
1945
1945
|
}, [
|
|
1946
1946
|
s("input", {
|
|
1947
1947
|
type: "radio",
|
|
@@ -1953,22 +1953,90 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1953
1953
|
onChange: i
|
|
1954
1954
|
}, null, 40, Tn),
|
|
1955
1955
|
s("span", {
|
|
1956
|
-
class:
|
|
1956
|
+
class: I(["ds-radio__dot", { "is-active": o.value }]),
|
|
1957
1957
|
"aria-hidden": "true"
|
|
1958
1958
|
}, null, 2),
|
|
1959
1959
|
n.$slots.default || e.label ? (a(), l("span", Cn, [
|
|
1960
|
-
|
|
1961
|
-
|
|
1960
|
+
M(n.$slots, "default", {}, () => [
|
|
1961
|
+
J(c(e.label), 1)
|
|
1962
1962
|
], !0)
|
|
1963
1963
|
])) : S("", !0)
|
|
1964
1964
|
], 2));
|
|
1965
1965
|
}
|
|
1966
|
-
}), Qt = /* @__PURE__ */
|
|
1966
|
+
}), Qt = /* @__PURE__ */ P(In, [["__scopeId", "data-v-96b70404"]]), Dn = ["name", "value", "checked", "disabled", "aria-describedby"], An = { class: "ds-radio-card__header" }, Rn = { class: "ds-radio-card__text" }, Nn = {
|
|
1967
|
+
key: 0,
|
|
1968
|
+
class: "ds-radio-card__preview"
|
|
1969
|
+
}, On = /* @__PURE__ */ x({
|
|
1970
|
+
__name: "DsRadioCard",
|
|
1971
|
+
props: /* @__PURE__ */ me({
|
|
1972
|
+
// This card's own value; the card is selected when it equals the v-model.
|
|
1973
|
+
value: { type: [String, Number], required: !0 },
|
|
1974
|
+
// Required: it is the radio's accessible name (the `title` slot overrides how it renders).
|
|
1975
|
+
title: { type: String, required: !0 },
|
|
1976
|
+
description: { type: String, default: "" },
|
|
1977
|
+
// Share `name` across the cards of a group for native arrow-key navigation.
|
|
1978
|
+
name: { type: String, default: "" },
|
|
1979
|
+
disabled: Boolean
|
|
1980
|
+
}, {
|
|
1981
|
+
modelValue: { default: null },
|
|
1982
|
+
modelModifiers: {}
|
|
1983
|
+
}),
|
|
1984
|
+
emits: ["update:modelValue"],
|
|
1985
|
+
setup(e) {
|
|
1986
|
+
const o = Te(e, "modelValue"), t = e, i = Ae(), n = be(), d = `${n}-input`, u = `${n}-description`, r = k(() => o.value === t.value), b = k(() => !!t.description || !!i.description);
|
|
1987
|
+
function m() {
|
|
1988
|
+
t.disabled || (o.value = t.value);
|
|
1989
|
+
}
|
|
1990
|
+
return (v, g) => (a(), l("div", {
|
|
1991
|
+
class: I(["ds-radio-card", { "is-selected": r.value, "is-disabled": e.disabled }])
|
|
1992
|
+
}, [
|
|
1993
|
+
s("input", {
|
|
1994
|
+
id: d,
|
|
1995
|
+
type: "radio",
|
|
1996
|
+
class: "ds-radio-card__native",
|
|
1997
|
+
name: e.name || void 0,
|
|
1998
|
+
value: e.value,
|
|
1999
|
+
checked: r.value,
|
|
2000
|
+
disabled: e.disabled,
|
|
2001
|
+
"aria-describedby": b.value ? u : void 0,
|
|
2002
|
+
onChange: m
|
|
2003
|
+
}, null, 40, Dn),
|
|
2004
|
+
s("div", An, [
|
|
2005
|
+
s("div", Rn, [
|
|
2006
|
+
s("label", {
|
|
2007
|
+
for: d,
|
|
2008
|
+
class: "ds-radio-card__title"
|
|
2009
|
+
}, [
|
|
2010
|
+
M(v.$slots, "title", {}, () => [
|
|
2011
|
+
J(c(e.title), 1)
|
|
2012
|
+
], !0)
|
|
2013
|
+
]),
|
|
2014
|
+
b.value ? (a(), l("div", {
|
|
2015
|
+
key: 0,
|
|
2016
|
+
id: u,
|
|
2017
|
+
class: "ds-radio-card__description"
|
|
2018
|
+
}, [
|
|
2019
|
+
M(v.$slots, "description", {}, () => [
|
|
2020
|
+
J(c(e.description), 1)
|
|
2021
|
+
], !0)
|
|
2022
|
+
])) : S("", !0)
|
|
2023
|
+
]),
|
|
2024
|
+
s("span", {
|
|
2025
|
+
class: I(["ds-radio-card__dot", { "is-active": r.value }]),
|
|
2026
|
+
"aria-hidden": "true"
|
|
2027
|
+
}, null, 2)
|
|
2028
|
+
]),
|
|
2029
|
+
v.$slots.default ? (a(), l("div", Nn, [
|
|
2030
|
+
M(v.$slots, "default", {}, void 0, !0)
|
|
2031
|
+
])) : S("", !0)
|
|
2032
|
+
], 2));
|
|
2033
|
+
}
|
|
2034
|
+
}), ar = /* @__PURE__ */ P(On, [["__scopeId", "data-v-8f21676f"]]), Bn = ["aria-checked", "aria-busy", "aria-disabled", "aria-label", "disabled"], Mn = {
|
|
1967
2035
|
class: "ds-switch__thumb",
|
|
1968
2036
|
"aria-hidden": "true"
|
|
1969
|
-
},
|
|
2037
|
+
}, xn = /* @__PURE__ */ x({
|
|
1970
2038
|
__name: "DsSwitch",
|
|
1971
|
-
props: /* @__PURE__ */
|
|
2039
|
+
props: /* @__PURE__ */ me({
|
|
1972
2040
|
disabled: Boolean,
|
|
1973
2041
|
// Async busy state for a toggle whose commit is pending (e.g. a server round-trip
|
|
1974
2042
|
// that may revert). Blocks interaction and shows a spinner in the thumb while it
|
|
@@ -1984,14 +2052,14 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1984
2052
|
}),
|
|
1985
2053
|
emits: ["update:modelValue"],
|
|
1986
2054
|
setup(e) {
|
|
1987
|
-
const o =
|
|
2055
|
+
const o = Te(e, "modelValue"), t = e;
|
|
1988
2056
|
function i() {
|
|
1989
2057
|
t.disabled || t.loading || (o.value = !o.value);
|
|
1990
2058
|
}
|
|
1991
2059
|
return (n, d) => (a(), l("button", {
|
|
1992
2060
|
type: "button",
|
|
1993
2061
|
role: "switch",
|
|
1994
|
-
class:
|
|
2062
|
+
class: I(["ds-switch", { "is-disabled": e.disabled, "is-loading": e.loading }]),
|
|
1995
2063
|
"aria-checked": o.value,
|
|
1996
2064
|
"aria-busy": e.loading || void 0,
|
|
1997
2065
|
"aria-disabled": e.disabled || e.loading || void 0,
|
|
@@ -1999,8 +2067,8 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
1999
2067
|
disabled: e.disabled || e.loading,
|
|
2000
2068
|
onClick: i
|
|
2001
2069
|
}, [
|
|
2002
|
-
s("span",
|
|
2003
|
-
e.loading ? (a(), K(f(
|
|
2070
|
+
s("span", Mn, [
|
|
2071
|
+
e.loading ? (a(), K(f(Me), {
|
|
2004
2072
|
key: 0,
|
|
2005
2073
|
class: "ds-switch__spinner",
|
|
2006
2074
|
size: 12,
|
|
@@ -2008,9 +2076,9 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2008
2076
|
label: ""
|
|
2009
2077
|
}, null, 8, ["tone"])) : S("", !0)
|
|
2010
2078
|
])
|
|
2011
|
-
], 10,
|
|
2079
|
+
], 10, Bn));
|
|
2012
2080
|
}
|
|
2013
|
-
}),
|
|
2081
|
+
}), lr = /* @__PURE__ */ P(xn, [["__scopeId", "data-v-f8073b3b"]]), Pn = ["aria-label", "disabled"], zn = { class: "ds-item-selector-button__label" }, Un = /* @__PURE__ */ x({
|
|
2014
2082
|
__name: "DsItemSelectorButton",
|
|
2015
2083
|
props: {
|
|
2016
2084
|
item: { type: Object, default: null },
|
|
@@ -2022,33 +2090,33 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2022
2090
|
ariaLabel: { type: String, default: "" },
|
|
2023
2091
|
disabled: Boolean
|
|
2024
2092
|
},
|
|
2025
|
-
emits: [
|
|
2093
|
+
emits: [ye],
|
|
2026
2094
|
setup(e, { emit: o }) {
|
|
2027
2095
|
const t = e, i = o;
|
|
2028
2096
|
function n(d) {
|
|
2029
|
-
t.disabled || i(
|
|
2097
|
+
t.disabled || i(ye, d);
|
|
2030
2098
|
}
|
|
2031
2099
|
return (d, u) => {
|
|
2032
2100
|
var r;
|
|
2033
2101
|
return a(), l("button", {
|
|
2034
2102
|
type: "button",
|
|
2035
|
-
class:
|
|
2103
|
+
class: I(["ds-item-selector-button", { "is-empty": !e.item, "is-disabled": e.disabled }]),
|
|
2036
2104
|
"aria-haspopup": "listbox",
|
|
2037
2105
|
"aria-label": e.ariaLabel || void 0,
|
|
2038
2106
|
disabled: e.disabled,
|
|
2039
2107
|
onClick: n
|
|
2040
2108
|
}, [
|
|
2041
|
-
s("span",
|
|
2109
|
+
s("span", zn, c(e.item ? e.item.name : e.emptyTitle), 1),
|
|
2042
2110
|
e.icon ? (a(), l("i", {
|
|
2043
2111
|
key: 0,
|
|
2044
|
-
class:
|
|
2112
|
+
class: I(["ds-item-selector-button__icon", e.item ? "material-symbols-filled" : "material-symbols-rounded"]),
|
|
2045
2113
|
style: Y((r = e.item) != null && r.color ? { color: e.item.color } : void 0),
|
|
2046
2114
|
"aria-hidden": "true"
|
|
2047
2115
|
}, c(e.icon), 7)) : S("", !0)
|
|
2048
|
-
], 10,
|
|
2116
|
+
], 10, Pn);
|
|
2049
2117
|
};
|
|
2050
2118
|
}
|
|
2051
|
-
}),
|
|
2119
|
+
}), nr = /* @__PURE__ */ P(Un, [["__scopeId", "data-v-81a7f24f"]]), Pt = {
|
|
2052
2120
|
DEFAULT: "default",
|
|
2053
2121
|
FILTER_SUMMARY: "filterSummary"
|
|
2054
2122
|
}, zt = {
|
|
@@ -2062,30 +2130,30 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2062
2130
|
// 280px
|
|
2063
2131
|
FULL: "full"
|
|
2064
2132
|
// 100% of the container
|
|
2065
|
-
},
|
|
2133
|
+
}, Fn = ["disabled", "aria-expanded", "aria-controls", "aria-activedescendant"], Vn = ["title"], qn = ["disabled", "aria-label"], Gn = {
|
|
2066
2134
|
key: 1,
|
|
2067
2135
|
class: "material-symbols-filled ds-select__chevron",
|
|
2068
2136
|
"aria-hidden": "true"
|
|
2069
|
-
},
|
|
2137
|
+
}, Hn = {
|
|
2070
2138
|
key: 0,
|
|
2071
2139
|
class: "ds-select__popup"
|
|
2072
|
-
},
|
|
2140
|
+
}, Kn = {
|
|
2073
2141
|
key: 0,
|
|
2074
2142
|
class: "ds-select__search"
|
|
2075
|
-
},
|
|
2143
|
+
}, Wn = ["aria-activedescendant", "aria-label", "placeholder", "value"], Yn = ["aria-multiselectable", "aria-busy"], jn = {
|
|
2076
2144
|
key: 0,
|
|
2077
2145
|
class: "ds-select__loading",
|
|
2078
2146
|
role: "presentation"
|
|
2079
|
-
},
|
|
2147
|
+
}, Xn = ["role", "aria-labelledby"], Zn = ["id"], Qn = ["id", "aria-selected", "onClick", "onMouseenter"], Jn = { class: "ds-select__option-label" }, ei = {
|
|
2080
2148
|
key: 0,
|
|
2081
2149
|
class: "ds-select__option-sublabel"
|
|
2082
|
-
},
|
|
2150
|
+
}, ti = {
|
|
2083
2151
|
key: 0,
|
|
2084
2152
|
class: "ds-select__empty",
|
|
2085
2153
|
role: "presentation"
|
|
2086
|
-
},
|
|
2154
|
+
}, ai = /* @__PURE__ */ x({
|
|
2087
2155
|
__name: "DsSelect",
|
|
2088
|
-
props: /* @__PURE__ */
|
|
2156
|
+
props: /* @__PURE__ */ me({
|
|
2089
2157
|
options: { type: Array, required: !0 },
|
|
2090
2158
|
placeholder: { type: String, default: "Select an option" },
|
|
2091
2159
|
multiple: Boolean,
|
|
@@ -2128,43 +2196,43 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2128
2196
|
modelValue: { default: null },
|
|
2129
2197
|
modelModifiers: {}
|
|
2130
2198
|
}),
|
|
2131
|
-
emits: /* @__PURE__ */
|
|
2199
|
+
emits: /* @__PURE__ */ me([pe], ["update:modelValue"]),
|
|
2132
2200
|
setup(e, { emit: o }) {
|
|
2133
|
-
const t = e, i = o, n =
|
|
2201
|
+
const t = e, i = o, n = Te(e, "modelValue"), d = `ds-select-${be()}`, u = `${d}-listbox`, r = (D) => `${d}-option-${D}`, b = N(null), m = N(null), v = N(null), g = N(!1), L = N(-1), h = N(""), y = k(() => t.selectType === Pt.FILTER_SUMMARY), $ = k(() => t.filterable && !t.remote), _ = k(() => {
|
|
2134
2202
|
if (!$.value) return t.options;
|
|
2135
|
-
const
|
|
2136
|
-
return
|
|
2137
|
-
(V) => V.label.toLowerCase().includes(
|
|
2203
|
+
const D = h.value.trim().toLowerCase();
|
|
2204
|
+
return D ? t.options.filter(
|
|
2205
|
+
(V) => V.label.toLowerCase().includes(D) || (V.subLabel ? V.subLabel.toLowerCase().includes(D) : !1)
|
|
2138
2206
|
) : t.options;
|
|
2139
2207
|
}), p = k(
|
|
2140
2208
|
() => t.loading ? [] : _.value
|
|
2141
2209
|
), R = k(() => {
|
|
2142
|
-
const
|
|
2210
|
+
const D = [];
|
|
2143
2211
|
return p.value.forEach((V, Q) => {
|
|
2144
|
-
const Z = V.group, ce =
|
|
2145
|
-
Z ? (ce == null ? void 0 : ce.kind) === "group" && ce.label === Z ? ce.items.push({ option: V, index: Q }) :
|
|
2212
|
+
const Z = V.group, ce = D[D.length - 1];
|
|
2213
|
+
Z ? (ce == null ? void 0 : ce.kind) === "group" && ce.label === Z ? ce.items.push({ option: V, index: Q }) : D.push({
|
|
2146
2214
|
kind: "group",
|
|
2147
2215
|
label: Z,
|
|
2148
2216
|
headerId: `${d}-group-${Q}`,
|
|
2149
2217
|
key: `g-${Q}`,
|
|
2150
2218
|
items: [{ option: V, index: Q }]
|
|
2151
|
-
}) : (ce == null ? void 0 : ce.kind) === "plain" ? ce.items.push({ option: V, index: Q }) :
|
|
2152
|
-
}),
|
|
2153
|
-
}), O = k(() => t.multiple ? Array.isArray(n.value) ? n.value : [] : n.value !== null && n.value !== void 0 ? [n.value] : []), H = k(() => O.value.length > 0), W = k(() =>
|
|
2154
|
-
function X(
|
|
2155
|
-
return O.value.includes(
|
|
2219
|
+
}) : (ce == null ? void 0 : ce.kind) === "plain" ? ce.items.push({ option: V, index: Q }) : D.push({ kind: "plain", key: `p-${Q}`, items: [{ option: V, index: Q }] });
|
|
2220
|
+
}), D;
|
|
2221
|
+
}), O = k(() => t.multiple ? Array.isArray(n.value) ? n.value : [] : n.value !== null && n.value !== void 0 ? [n.value] : []), H = k(() => O.value.length > 0), W = k(() => y.value && H.value);
|
|
2222
|
+
function X(D) {
|
|
2223
|
+
return O.value.includes(D);
|
|
2156
2224
|
}
|
|
2157
|
-
const
|
|
2225
|
+
const z = ua(/* @__PURE__ */ new Map());
|
|
2158
2226
|
ae(
|
|
2159
2227
|
() => t.options,
|
|
2160
|
-
(
|
|
2228
|
+
(D) => D.forEach((V) => z.set(V.value, V.label)),
|
|
2161
2229
|
{ immediate: !0, deep: !0 }
|
|
2162
2230
|
);
|
|
2163
|
-
function
|
|
2231
|
+
function U(D) {
|
|
2164
2232
|
var V, Q, Z;
|
|
2165
|
-
return (Z = (Q = (V = t.options.find((ce) => ce.value ===
|
|
2233
|
+
return (Z = (Q = (V = t.options.find((ce) => ce.value === D)) == null ? void 0 : V.label) != null ? Q : z.get(D)) != null ? Z : String(D);
|
|
2166
2234
|
}
|
|
2167
|
-
const E = k(() =>
|
|
2235
|
+
const E = k(() => y.value ? H.value ? t.multiple ? `${t.placeholder} (${O.value.length})` : U(O.value[0]) : t.placeholder : H.value ? t.multiple ? O.value.map(U).join(", ") : U(O.value[0]) : t.placeholder), A = Object.values(zt), w = k(
|
|
2168
2236
|
() => typeof t.width == "string" && A.includes(t.width) ? `ds-select--w-${t.width}` : null
|
|
2169
2237
|
), C = k(() => {
|
|
2170
2238
|
if (!w.value)
|
|
@@ -2174,63 +2242,63 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2174
2242
|
);
|
|
2175
2243
|
function q() {
|
|
2176
2244
|
if (p.value.length === 0) return -1;
|
|
2177
|
-
const
|
|
2178
|
-
return
|
|
2245
|
+
const D = p.value.findIndex((V) => X(V.value));
|
|
2246
|
+
return D >= 0 ? D : 0;
|
|
2179
2247
|
}
|
|
2180
2248
|
function se() {
|
|
2181
2249
|
t.disabled || (g.value = !0, L.value = q(), t.filterable && ne(() => {
|
|
2182
|
-
var
|
|
2183
|
-
return (
|
|
2250
|
+
var D;
|
|
2251
|
+
return (D = v.value) == null ? void 0 : D.focus();
|
|
2184
2252
|
}));
|
|
2185
2253
|
}
|
|
2186
|
-
function te(
|
|
2187
|
-
g.value = !1, L.value = -1, h.value && (h.value = "", i(pe, "")),
|
|
2254
|
+
function te(D = !0) {
|
|
2255
|
+
g.value = !1, L.value = -1, h.value && (h.value = "", i(pe, "")), D && ne(() => {
|
|
2188
2256
|
var V;
|
|
2189
|
-
return (V =
|
|
2257
|
+
return (V = m.value) == null ? void 0 : V.focus();
|
|
2190
2258
|
});
|
|
2191
2259
|
}
|
|
2192
2260
|
function We() {
|
|
2193
2261
|
t.disabled || (g.value ? te() : se());
|
|
2194
2262
|
}
|
|
2195
|
-
function ze(
|
|
2263
|
+
function ze(D) {
|
|
2196
2264
|
if (t.disabled) return;
|
|
2197
2265
|
if (t.multiple) {
|
|
2198
2266
|
const Q = O.value;
|
|
2199
|
-
n.value = Q.includes(
|
|
2267
|
+
n.value = Q.includes(D) ? Q.filter((Z) => Z !== D) : [...Q, D];
|
|
2200
2268
|
return;
|
|
2201
2269
|
}
|
|
2202
|
-
const V = X(
|
|
2203
|
-
n.value = V && t.showCheckbox ? null :
|
|
2270
|
+
const V = X(D);
|
|
2271
|
+
n.value = V && t.showCheckbox ? null : D, te();
|
|
2204
2272
|
}
|
|
2205
2273
|
function it() {
|
|
2206
2274
|
t.disabled || (n.value = t.multiple ? [] : null);
|
|
2207
2275
|
}
|
|
2208
|
-
function
|
|
2276
|
+
function Re(D) {
|
|
2209
2277
|
const V = p.value.length;
|
|
2210
|
-
V !== 0 && (L.value < 0 ? L.value =
|
|
2278
|
+
V !== 0 && (L.value < 0 ? L.value = D > 0 ? 0 : V - 1 : L.value = (L.value + D + V) % V, ne(() => {
|
|
2211
2279
|
var Q, Z;
|
|
2212
2280
|
(Z = (Q = document.getElementById(r(L.value))) == null ? void 0 : Q.scrollIntoView) == null || Z.call(Q, { block: "nearest" });
|
|
2213
2281
|
}));
|
|
2214
2282
|
}
|
|
2215
|
-
function Ye(
|
|
2283
|
+
function Ye(D) {
|
|
2216
2284
|
if (!t.disabled)
|
|
2217
|
-
switch (
|
|
2285
|
+
switch (D.key) {
|
|
2218
2286
|
case "ArrowDown":
|
|
2219
|
-
|
|
2287
|
+
D.preventDefault(), g.value ? Re(1) : se();
|
|
2220
2288
|
break;
|
|
2221
2289
|
case "ArrowUp":
|
|
2222
|
-
|
|
2290
|
+
D.preventDefault(), g.value ? Re(-1) : se();
|
|
2223
2291
|
break;
|
|
2224
2292
|
case "Home":
|
|
2225
|
-
g.value && (
|
|
2293
|
+
g.value && (D.preventDefault(), L.value = 0);
|
|
2226
2294
|
break;
|
|
2227
2295
|
case "End":
|
|
2228
|
-
g.value && (
|
|
2296
|
+
g.value && (D.preventDefault(), L.value = p.value.length - 1);
|
|
2229
2297
|
break;
|
|
2230
2298
|
case "Enter":
|
|
2231
2299
|
case " ":
|
|
2232
2300
|
case "Spacebar":
|
|
2233
|
-
if (
|
|
2301
|
+
if (D.preventDefault(), !g.value)
|
|
2234
2302
|
se();
|
|
2235
2303
|
else if (L.value >= 0) {
|
|
2236
2304
|
const V = p.value[L.value];
|
|
@@ -2238,66 +2306,66 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2238
2306
|
}
|
|
2239
2307
|
break;
|
|
2240
2308
|
case "Escape":
|
|
2241
|
-
g.value && (
|
|
2309
|
+
g.value && (D.preventDefault(), D.stopPropagation(), te());
|
|
2242
2310
|
break;
|
|
2243
2311
|
case "Tab":
|
|
2244
2312
|
g.value && te(!1);
|
|
2245
2313
|
break;
|
|
2246
2314
|
}
|
|
2247
2315
|
}
|
|
2248
|
-
function j(
|
|
2316
|
+
function j(D) {
|
|
2249
2317
|
if (!t.disabled)
|
|
2250
|
-
switch (
|
|
2318
|
+
switch (D.key) {
|
|
2251
2319
|
case "ArrowDown":
|
|
2252
|
-
|
|
2320
|
+
D.preventDefault(), Re(1);
|
|
2253
2321
|
break;
|
|
2254
2322
|
case "ArrowUp":
|
|
2255
|
-
|
|
2323
|
+
D.preventDefault(), Re(-1);
|
|
2256
2324
|
break;
|
|
2257
2325
|
case "Enter":
|
|
2258
|
-
if (
|
|
2326
|
+
if (D.preventDefault(), L.value >= 0) {
|
|
2259
2327
|
const V = p.value[L.value];
|
|
2260
2328
|
V && ze(V.value);
|
|
2261
2329
|
}
|
|
2262
2330
|
break;
|
|
2263
2331
|
case "Escape":
|
|
2264
|
-
|
|
2332
|
+
D.preventDefault(), D.stopPropagation(), te();
|
|
2265
2333
|
break;
|
|
2266
2334
|
case "Tab":
|
|
2267
2335
|
g.value && te(!1);
|
|
2268
2336
|
break;
|
|
2269
2337
|
}
|
|
2270
2338
|
}
|
|
2271
|
-
function
|
|
2272
|
-
h.value =
|
|
2339
|
+
function ee(D) {
|
|
2340
|
+
h.value = D.target.value, i(pe, h.value);
|
|
2273
2341
|
}
|
|
2274
|
-
ae(p, (
|
|
2275
|
-
g.value && (
|
|
2342
|
+
ae(p, (D) => {
|
|
2343
|
+
g.value && (D.length === 0 ? L.value = -1 : (L.value < 0 || L.value >= D.length) && (L.value = 0));
|
|
2276
2344
|
});
|
|
2277
|
-
function ie(
|
|
2278
|
-
|
|
2345
|
+
function ie(D) {
|
|
2346
|
+
b.value && !b.value.contains(D.target) && te(!1);
|
|
2279
2347
|
}
|
|
2280
|
-
return ae(g, (
|
|
2281
|
-
typeof document != "undefined" && (
|
|
2348
|
+
return ae(g, (D) => {
|
|
2349
|
+
typeof document != "undefined" && (D ? document.addEventListener("mousedown", ie) : document.removeEventListener("mousedown", ie));
|
|
2282
2350
|
}), ae(
|
|
2283
2351
|
() => t.disabled,
|
|
2284
|
-
(
|
|
2285
|
-
|
|
2352
|
+
(D) => {
|
|
2353
|
+
D && g.value && te(!1);
|
|
2286
2354
|
}
|
|
2287
2355
|
), re(() => {
|
|
2288
2356
|
typeof document != "undefined" && document.removeEventListener("mousedown", ie);
|
|
2289
|
-
}), (
|
|
2357
|
+
}), (D, V) => (a(), l("div", {
|
|
2290
2358
|
ref_key: "rootRef",
|
|
2291
|
-
ref:
|
|
2292
|
-
class:
|
|
2359
|
+
ref: b,
|
|
2360
|
+
class: I(["ds-select", [`ds-select--${e.selectType}`, w.value, { "is-open": g.value }]]),
|
|
2293
2361
|
style: Y(C.value)
|
|
2294
2362
|
}, [
|
|
2295
2363
|
s("div", {
|
|
2296
|
-
class:
|
|
2364
|
+
class: I(["ds-select__control", { "is-disabled": e.disabled, "is-filter-selected": W.value }])
|
|
2297
2365
|
}, [
|
|
2298
2366
|
s("button", {
|
|
2299
2367
|
ref_key: "triggerRef",
|
|
2300
|
-
ref:
|
|
2368
|
+
ref: m,
|
|
2301
2369
|
type: "button",
|
|
2302
2370
|
class: "ds-select__trigger",
|
|
2303
2371
|
disabled: e.disabled,
|
|
@@ -2311,9 +2379,9 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2311
2379
|
s("span", {
|
|
2312
2380
|
class: "ds-select__summary",
|
|
2313
2381
|
title: E.value
|
|
2314
|
-
}, c(E.value), 9,
|
|
2315
|
-
], 40,
|
|
2316
|
-
|
|
2382
|
+
}, c(E.value), 9, Vn)
|
|
2383
|
+
], 40, Fn),
|
|
2384
|
+
y.value && H.value ? (a(), l("button", {
|
|
2317
2385
|
key: 0,
|
|
2318
2386
|
type: "button",
|
|
2319
2387
|
class: "ds-select__clear",
|
|
@@ -2325,10 +2393,10 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2325
2393
|
class: "material-symbols-filled",
|
|
2326
2394
|
"aria-hidden": "true"
|
|
2327
2395
|
}, "close", -1)
|
|
2328
|
-
])], 8,
|
|
2396
|
+
])], 8, qn)) : (a(), l("i", Gn, "keyboard_arrow_down"))
|
|
2329
2397
|
], 2),
|
|
2330
|
-
g.value ? (a(), l("div",
|
|
2331
|
-
e.filterable ? (a(), l("div",
|
|
2398
|
+
g.value ? (a(), l("div", Hn, [
|
|
2399
|
+
e.filterable ? (a(), l("div", Kn, [
|
|
2332
2400
|
V[2] || (V[2] = s("i", {
|
|
2333
2401
|
class: "material-symbols-filled ds-select__search-icon",
|
|
2334
2402
|
"aria-hidden": "true"
|
|
@@ -2347,9 +2415,9 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2347
2415
|
"aria-label": e.searchLabel,
|
|
2348
2416
|
placeholder: e.searchPlaceholder,
|
|
2349
2417
|
value: h.value,
|
|
2350
|
-
onInput:
|
|
2418
|
+
onInput: ee,
|
|
2351
2419
|
onKeydown: j
|
|
2352
|
-
}, null, 40,
|
|
2420
|
+
}, null, 40, Wn)
|
|
2353
2421
|
])) : S("", !0),
|
|
2354
2422
|
s("ul", {
|
|
2355
2423
|
id: u,
|
|
@@ -2357,36 +2425,36 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2357
2425
|
role: "listbox",
|
|
2358
2426
|
"aria-multiselectable": e.multiple || void 0,
|
|
2359
2427
|
"aria-busy": e.loading || void 0,
|
|
2360
|
-
onMousedown: V[0] || (V[0] =
|
|
2428
|
+
onMousedown: V[0] || (V[0] = De(() => {
|
|
2361
2429
|
}, ["prevent"]))
|
|
2362
2430
|
}, [
|
|
2363
|
-
e.loading ? (a(), l("li",
|
|
2364
|
-
|
|
2365
|
-
F(f(
|
|
2431
|
+
e.loading ? (a(), l("li", jn, [
|
|
2432
|
+
M(D.$slots, "loading", {}, () => [
|
|
2433
|
+
F(f(Me), { size: "small" })
|
|
2366
2434
|
], !0)
|
|
2367
2435
|
])) : (a(), l(G, { key: 1 }, [
|
|
2368
2436
|
(a(!0), l(G, null, le(R.value, (Q) => (a(), l("li", {
|
|
2369
2437
|
key: Q.key,
|
|
2370
2438
|
role: Q.kind === "group" ? "group" : "presentation",
|
|
2371
2439
|
"aria-labelledby": Q.kind === "group" ? Q.headerId : void 0,
|
|
2372
|
-
class:
|
|
2440
|
+
class: I(Q.kind === "group" ? "ds-select__group" : "ds-select__run")
|
|
2373
2441
|
}, [
|
|
2374
2442
|
Q.kind === "group" ? (a(), l("span", {
|
|
2375
2443
|
key: 0,
|
|
2376
2444
|
id: Q.headerId,
|
|
2377
2445
|
class: "ds-select__group-header"
|
|
2378
|
-
}, c(Q.label), 9,
|
|
2446
|
+
}, c(Q.label), 9, Zn)) : S("", !0),
|
|
2379
2447
|
(a(!0), l(G, null, le(Q.items, (Z) => (a(), l("div", {
|
|
2380
2448
|
id: r(Z.index),
|
|
2381
2449
|
key: Z.option.value,
|
|
2382
|
-
class:
|
|
2450
|
+
class: I(["ds-select__option", {
|
|
2383
2451
|
"is-selected": X(Z.option.value),
|
|
2384
2452
|
"is-active": Z.index === L.value,
|
|
2385
2453
|
"ds-select__option--checkbox": e.showCheckbox
|
|
2386
2454
|
}]),
|
|
2387
2455
|
role: "option",
|
|
2388
2456
|
"aria-selected": X(Z.option.value),
|
|
2389
|
-
onClick:
|
|
2457
|
+
onClick: De((ce) => ze(Z.option.value), ["prevent"]),
|
|
2390
2458
|
onMouseenter: (ce) => L.value = Z.index
|
|
2391
2459
|
}, [
|
|
2392
2460
|
e.showCheckbox ? (a(), K(f(at), {
|
|
@@ -2396,7 +2464,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2396
2464
|
disabled: "",
|
|
2397
2465
|
"aria-hidden": "true"
|
|
2398
2466
|
}, null, 8, ["model-value"])) : S("", !0),
|
|
2399
|
-
|
|
2467
|
+
M(D.$slots, "option", {
|
|
2400
2468
|
option: Z.option,
|
|
2401
2469
|
selected: X(Z.option.value),
|
|
2402
2470
|
active: Z.index === L.value
|
|
@@ -2407,48 +2475,48 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2407
2475
|
style: Y(Z.option.color ? { color: Z.option.color } : void 0),
|
|
2408
2476
|
"aria-hidden": "true"
|
|
2409
2477
|
}, c(Z.option.icon), 5)) : S("", !0),
|
|
2410
|
-
s("span",
|
|
2411
|
-
|
|
2412
|
-
Z.option.subLabel ? (a(), l("span",
|
|
2478
|
+
s("span", Jn, [
|
|
2479
|
+
J(c(Z.option.label), 1),
|
|
2480
|
+
Z.option.subLabel ? (a(), l("span", ei, ", " + c(Z.option.subLabel), 1)) : S("", !0)
|
|
2413
2481
|
])
|
|
2414
2482
|
], !0)
|
|
2415
|
-
], 42,
|
|
2416
|
-
], 10,
|
|
2417
|
-
p.value.length === 0 ? (a(), l("li",
|
|
2418
|
-
|
|
2419
|
-
|
|
2483
|
+
], 42, Qn))), 128))
|
|
2484
|
+
], 10, Xn))), 128)),
|
|
2485
|
+
p.value.length === 0 ? (a(), l("li", ti, [
|
|
2486
|
+
M(D.$slots, "empty", {}, () => [
|
|
2487
|
+
J(c(e.emptyText), 1)
|
|
2420
2488
|
], !0)
|
|
2421
2489
|
])) : S("", !0)
|
|
2422
2490
|
], 64))
|
|
2423
|
-
], 40,
|
|
2491
|
+
], 40, Yn)
|
|
2424
2492
|
])) : S("", !0)
|
|
2425
2493
|
], 6));
|
|
2426
2494
|
}
|
|
2427
|
-
}),
|
|
2495
|
+
}), ir = /* @__PURE__ */ P(ai, [["__scopeId", "data-v-936974a2"]]), li = ["tabindex"], ni = /* @__PURE__ */ x({
|
|
2428
2496
|
__name: "DsRow",
|
|
2429
2497
|
props: {
|
|
2430
2498
|
selected: { type: Boolean, default: !1 },
|
|
2431
2499
|
clickable: { type: Boolean, default: !1 }
|
|
2432
2500
|
},
|
|
2433
|
-
emits: [
|
|
2501
|
+
emits: [ye],
|
|
2434
2502
|
setup(e, { emit: o }) {
|
|
2435
2503
|
const t = e, i = o;
|
|
2436
2504
|
function n() {
|
|
2437
|
-
t.clickable && i(
|
|
2505
|
+
t.clickable && i(ye);
|
|
2438
2506
|
}
|
|
2439
2507
|
function d(u) {
|
|
2440
|
-
t.clickable && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), i(
|
|
2508
|
+
t.clickable && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), i(ye));
|
|
2441
2509
|
}
|
|
2442
2510
|
return (u, r) => (a(), l("tr", {
|
|
2443
|
-
class:
|
|
2511
|
+
class: I(["ds-row", { "is-selected": e.selected, "is-clickable": e.clickable }]),
|
|
2444
2512
|
tabindex: e.clickable ? 0 : void 0,
|
|
2445
2513
|
onClick: n,
|
|
2446
2514
|
onKeydown: d
|
|
2447
2515
|
}, [
|
|
2448
|
-
|
|
2449
|
-
], 42,
|
|
2516
|
+
M(u.$slots, "default", {}, void 0, !0)
|
|
2517
|
+
], 42, li));
|
|
2450
2518
|
}
|
|
2451
|
-
}),
|
|
2519
|
+
}), sr = /* @__PURE__ */ P(ni, [["__scopeId", "data-v-c2d6c50b"]]), ii = /* @__PURE__ */ x({
|
|
2452
2520
|
__name: "DsCell",
|
|
2453
2521
|
props: {
|
|
2454
2522
|
first: { type: Boolean, default: !1 },
|
|
@@ -2476,7 +2544,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2476
2544
|
return Object.keys(n).length ? n : void 0;
|
|
2477
2545
|
});
|
|
2478
2546
|
return (n, d) => (a(), l("td", {
|
|
2479
|
-
class:
|
|
2547
|
+
class: I(["ds-cell", {
|
|
2480
2548
|
"is-accent": e.first && e.selected,
|
|
2481
2549
|
"is-truncated": e.truncate,
|
|
2482
2550
|
"is-selected": e.selected,
|
|
@@ -2485,10 +2553,10 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2485
2553
|
}]),
|
|
2486
2554
|
style: Y(i.value)
|
|
2487
2555
|
}, [
|
|
2488
|
-
|
|
2556
|
+
M(n.$slots, "default", {}, void 0, !0)
|
|
2489
2557
|
], 6));
|
|
2490
2558
|
}
|
|
2491
|
-
}),
|
|
2559
|
+
}), or = /* @__PURE__ */ P(ii, [["__scopeId", "data-v-727b775d"]]), si = {
|
|
2492
2560
|
SUCCESS: "success",
|
|
2493
2561
|
WARNING: "warning",
|
|
2494
2562
|
DANGER: "danger",
|
|
@@ -2498,27 +2566,27 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2498
2566
|
// the only solid-fill variant
|
|
2499
2567
|
ACCENT: "accent"
|
|
2500
2568
|
// maps to $info-* tokens, not $accent-*
|
|
2501
|
-
},
|
|
2569
|
+
}, oi = /* @__PURE__ */ x({
|
|
2502
2570
|
__name: "DsCustomTag",
|
|
2503
2571
|
props: {
|
|
2504
2572
|
type: {
|
|
2505
2573
|
type: String,
|
|
2506
|
-
default:
|
|
2574
|
+
default: si.INFO
|
|
2507
2575
|
},
|
|
2508
2576
|
// Fully rounded (radius-full) sides vs the default radius-control.
|
|
2509
2577
|
round: Boolean
|
|
2510
2578
|
},
|
|
2511
2579
|
setup(e) {
|
|
2512
2580
|
return (o, t) => (a(), l("span", {
|
|
2513
|
-
class:
|
|
2581
|
+
class: I(["ds-custom-tag", [`ds-custom-tag--${e.type}`, { "is-round": e.round }]])
|
|
2514
2582
|
}, [
|
|
2515
|
-
|
|
2583
|
+
M(o.$slots, "default", {}, void 0, !0)
|
|
2516
2584
|
], 2));
|
|
2517
2585
|
}
|
|
2518
|
-
}),
|
|
2586
|
+
}), dr = /* @__PURE__ */ P(oi, [["__scopeId", "data-v-c0220631"]]), di = { class: "ds-pill__text" }, ri = ["aria-label"], ci = {
|
|
2519
2587
|
class: "material-symbols-filled",
|
|
2520
2588
|
"aria-hidden": "true"
|
|
2521
|
-
},
|
|
2589
|
+
}, ui = /* @__PURE__ */ x({
|
|
2522
2590
|
__name: "DsPill",
|
|
2523
2591
|
props: {
|
|
2524
2592
|
// Material Symbols ligature name; when set, renders a trailing icon button.
|
|
@@ -2538,55 +2606,55 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2538
2606
|
default: ""
|
|
2539
2607
|
}
|
|
2540
2608
|
},
|
|
2541
|
-
emits: [
|
|
2609
|
+
emits: [ye],
|
|
2542
2610
|
setup(e, { emit: o }) {
|
|
2543
2611
|
const t = o;
|
|
2544
2612
|
return (i, n) => (a(), l("span", {
|
|
2545
|
-
class:
|
|
2613
|
+
class: I(["ds-pill", { "ds-pill--has-icon": e.icon }]),
|
|
2546
2614
|
style: Y(e.background ? { background: e.background } : void 0)
|
|
2547
2615
|
}, [
|
|
2548
|
-
s("span",
|
|
2549
|
-
|
|
2616
|
+
s("span", di, [
|
|
2617
|
+
M(i.$slots, "default", {}, void 0, !0)
|
|
2550
2618
|
]),
|
|
2551
2619
|
e.icon ? (a(), l("button", {
|
|
2552
2620
|
key: 0,
|
|
2553
2621
|
type: "button",
|
|
2554
2622
|
class: "ds-pill__icon",
|
|
2555
2623
|
"aria-label": e.iconLabel || void 0,
|
|
2556
|
-
onClick: n[0] || (n[0] = (d) => t(f(
|
|
2624
|
+
onClick: n[0] || (n[0] = (d) => t(f(ye)))
|
|
2557
2625
|
}, [
|
|
2558
|
-
s("i",
|
|
2559
|
-
], 8,
|
|
2626
|
+
s("i", ci, c(e.icon), 1)
|
|
2627
|
+
], 8, ri)) : S("", !0)
|
|
2560
2628
|
], 6));
|
|
2561
2629
|
}
|
|
2562
|
-
}),
|
|
2630
|
+
}), rr = /* @__PURE__ */ P(ui, [["__scopeId", "data-v-59af98d0"]]), fi = {
|
|
2563
2631
|
key: 0,
|
|
2564
2632
|
class: "ds-pill-with-border__icon"
|
|
2565
|
-
},
|
|
2633
|
+
}, vi = { class: "ds-pill-with-border__label" }, bi = /* @__PURE__ */ x({
|
|
2566
2634
|
__name: "DsPillWithBorder",
|
|
2567
|
-
emits: [
|
|
2635
|
+
emits: [ye],
|
|
2568
2636
|
setup(e, { emit: o }) {
|
|
2569
2637
|
const t = o;
|
|
2570
2638
|
return (i, n) => (a(), l("button", {
|
|
2571
2639
|
type: "button",
|
|
2572
2640
|
class: "ds-pill-with-border",
|
|
2573
|
-
onClick: n[0] || (n[0] = (d) => t(f(
|
|
2641
|
+
onClick: n[0] || (n[0] = (d) => t(f(ye)))
|
|
2574
2642
|
}, [
|
|
2575
|
-
i.$slots.icon ? (a(), l("span",
|
|
2576
|
-
|
|
2643
|
+
i.$slots.icon ? (a(), l("span", fi, [
|
|
2644
|
+
M(i.$slots, "icon", {}, void 0, !0)
|
|
2577
2645
|
])) : S("", !0),
|
|
2578
|
-
s("span",
|
|
2579
|
-
|
|
2646
|
+
s("span", vi, [
|
|
2647
|
+
M(i.$slots, "default", {}, void 0, !0)
|
|
2580
2648
|
])
|
|
2581
2649
|
]));
|
|
2582
2650
|
}
|
|
2583
|
-
}),
|
|
2651
|
+
}), cr = /* @__PURE__ */ P(bi, [["__scopeId", "data-v-8db4dcaf"]]), mi = ["aria-label"], yi = ["title"], gi = {
|
|
2584
2652
|
key: 1,
|
|
2585
2653
|
class: "ds-segmented-progress-bar-wrapper"
|
|
2586
|
-
},
|
|
2654
|
+
}, hi = ["aria-label"], pi = ["title"], ki = {
|
|
2587
2655
|
class: "ds-segmented-progress-bar__legend",
|
|
2588
2656
|
"aria-hidden": "true"
|
|
2589
|
-
},
|
|
2657
|
+
}, Si = { class: "ds-segmented-progress-bar__legend-label" }, $i = /* @__PURE__ */ x({
|
|
2590
2658
|
inheritAttrs: !1,
|
|
2591
2659
|
__name: "DsSegmentedProgressBar",
|
|
2592
2660
|
props: {
|
|
@@ -2607,40 +2675,40 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2607
2675
|
showLegend: { type: Boolean, default: !1 }
|
|
2608
2676
|
},
|
|
2609
2677
|
setup(e) {
|
|
2610
|
-
const o = e, t =
|
|
2678
|
+
const o = e, t = Ae(), i = k(() => o.segments.filter((d) => !!d.name)), n = k(
|
|
2611
2679
|
() => !!t.legend || o.showLegend && i.value.length > 0
|
|
2612
2680
|
);
|
|
2613
|
-
return (d, u) => n.value ? (a(), l("div",
|
|
2681
|
+
return (d, u) => n.value ? (a(), l("div", gi, [
|
|
2614
2682
|
s("div", Fe(d.$attrs, {
|
|
2615
2683
|
class: "ds-segmented-progress-bar",
|
|
2616
2684
|
role: "img",
|
|
2617
2685
|
"aria-label": e.label || void 0,
|
|
2618
2686
|
style: { height: `${e.height}px` }
|
|
2619
2687
|
}), [
|
|
2620
|
-
(a(!0), l(G, null, le(e.segments, (r,
|
|
2621
|
-
var
|
|
2688
|
+
(a(!0), l(G, null, le(e.segments, (r, b) => {
|
|
2689
|
+
var m;
|
|
2622
2690
|
return a(), l("div", {
|
|
2623
|
-
key: `${(
|
|
2691
|
+
key: `${(m = r.name) != null ? m : ""}-${b}`,
|
|
2624
2692
|
class: "ds-segmented-progress-bar__segment",
|
|
2625
2693
|
style: Y({
|
|
2626
2694
|
width: `${e.total > 0 ? r.amount * 100 / e.total : 0}%`,
|
|
2627
2695
|
backgroundColor: r.color
|
|
2628
2696
|
}),
|
|
2629
2697
|
title: r.name || void 0
|
|
2630
|
-
}, null, 12,
|
|
2698
|
+
}, null, 12, pi);
|
|
2631
2699
|
}), 128))
|
|
2632
|
-
], 16,
|
|
2633
|
-
|
|
2634
|
-
s("ul",
|
|
2635
|
-
(a(!0), l(G, null, le(i.value, (r,
|
|
2636
|
-
key: `${r.name}-${
|
|
2700
|
+
], 16, hi),
|
|
2701
|
+
M(d.$slots, "legend", {}, () => [
|
|
2702
|
+
s("ul", ki, [
|
|
2703
|
+
(a(!0), l(G, null, le(i.value, (r, b) => (a(), l("li", {
|
|
2704
|
+
key: `${r.name}-${b}`,
|
|
2637
2705
|
class: "ds-segmented-progress-bar__legend-item"
|
|
2638
2706
|
}, [
|
|
2639
2707
|
s("span", {
|
|
2640
2708
|
class: "ds-segmented-progress-bar__legend-swatch",
|
|
2641
2709
|
style: Y({ backgroundColor: r.color })
|
|
2642
2710
|
}, null, 4),
|
|
2643
|
-
s("span",
|
|
2711
|
+
s("span", Si, c(r.name), 1)
|
|
2644
2712
|
]))), 128))
|
|
2645
2713
|
])
|
|
2646
2714
|
], !0)
|
|
@@ -2650,27 +2718,27 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2650
2718
|
"aria-label": e.label || void 0,
|
|
2651
2719
|
style: { height: `${e.height}px` }
|
|
2652
2720
|
}), [
|
|
2653
|
-
(a(!0), l(G, null, le(e.segments, (r,
|
|
2654
|
-
var
|
|
2721
|
+
(a(!0), l(G, null, le(e.segments, (r, b) => {
|
|
2722
|
+
var m;
|
|
2655
2723
|
return a(), l("div", {
|
|
2656
|
-
key: `${(
|
|
2724
|
+
key: `${(m = r.name) != null ? m : ""}-${b}`,
|
|
2657
2725
|
class: "ds-segmented-progress-bar__segment",
|
|
2658
2726
|
style: Y({
|
|
2659
2727
|
width: `${e.total > 0 ? r.amount * 100 / e.total : 0}%`,
|
|
2660
2728
|
backgroundColor: r.color
|
|
2661
2729
|
}),
|
|
2662
2730
|
title: r.name || void 0
|
|
2663
|
-
}, null, 12,
|
|
2731
|
+
}, null, 12, yi);
|
|
2664
2732
|
}), 128))
|
|
2665
|
-
], 16,
|
|
2733
|
+
], 16, mi));
|
|
2666
2734
|
}
|
|
2667
|
-
}),
|
|
2735
|
+
}), ur = /* @__PURE__ */ P($i, [["__scopeId", "data-v-89dc768c"]]), _i = {
|
|
2668
2736
|
key: 0,
|
|
2669
2737
|
class: "ds-empty-state__header"
|
|
2670
|
-
},
|
|
2738
|
+
}, Li = { class: "ds-empty-state__body" }, wi = ["src"], Ei = { class: "ds-empty-state__title" }, Ti = {
|
|
2671
2739
|
key: 1,
|
|
2672
2740
|
class: "ds-empty-state__subtitle"
|
|
2673
|
-
},
|
|
2741
|
+
}, Ci = /* @__PURE__ */ x({
|
|
2674
2742
|
__name: "DsEmptyState",
|
|
2675
2743
|
props: {
|
|
2676
2744
|
// Illustration URL; decorative (rendered with alt="").
|
|
@@ -2682,32 +2750,32 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2682
2750
|
},
|
|
2683
2751
|
setup(e) {
|
|
2684
2752
|
return (o, t) => (a(), l("div", {
|
|
2685
|
-
class:
|
|
2753
|
+
class: I(["ds-empty-state", { "is-rounded": e.roundedBorder }])
|
|
2686
2754
|
}, [
|
|
2687
|
-
o.$slots["table-header"] ? (a(), l("div",
|
|
2688
|
-
|
|
2755
|
+
o.$slots["table-header"] ? (a(), l("div", _i, [
|
|
2756
|
+
M(o.$slots, "table-header", {}, void 0, !0)
|
|
2689
2757
|
])) : S("", !0),
|
|
2690
|
-
s("div",
|
|
2758
|
+
s("div", Li, [
|
|
2691
2759
|
e.image ? (a(), l("img", {
|
|
2692
2760
|
key: 0,
|
|
2693
2761
|
src: e.image,
|
|
2694
2762
|
alt: "",
|
|
2695
2763
|
class: "ds-empty-state__image"
|
|
2696
|
-
}, null, 8,
|
|
2697
|
-
s("p",
|
|
2698
|
-
e.subtitle ? (a(), l("p",
|
|
2699
|
-
|
|
2764
|
+
}, null, 8, wi)) : S("", !0),
|
|
2765
|
+
s("p", Ei, c(e.title), 1),
|
|
2766
|
+
e.subtitle ? (a(), l("p", Ti, c(e.subtitle), 1)) : S("", !0),
|
|
2767
|
+
M(o.$slots, "button", {}, void 0, !0)
|
|
2700
2768
|
])
|
|
2701
2769
|
], 2));
|
|
2702
2770
|
}
|
|
2703
|
-
}),
|
|
2771
|
+
}), fr = /* @__PURE__ */ P(Ci, [["__scopeId", "data-v-159c48f9"]]), Ii = ["aria-label"], Di = {
|
|
2704
2772
|
key: 0,
|
|
2705
2773
|
class: "ds-paginator__limit-message"
|
|
2706
|
-
},
|
|
2774
|
+
}, Ai = { class: "ds-paginator__pager" }, Ri = {
|
|
2707
2775
|
key: 0,
|
|
2708
2776
|
class: "ds-paginator__ellipsis",
|
|
2709
2777
|
"aria-hidden": "true"
|
|
2710
|
-
},
|
|
2778
|
+
}, Ni = ["aria-current", "onClick"], Oi = ["aria-label", "value"], Bi = ["value"], Mi = "…l", xi = "…r", Pi = /* @__PURE__ */ x({
|
|
2711
2779
|
__name: "DsPaginator",
|
|
2712
2780
|
props: {
|
|
2713
2781
|
total: { type: Number, required: !0 },
|
|
@@ -2727,29 +2795,29 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2727
2795
|
emits: [St, $t],
|
|
2728
2796
|
setup(e, { emit: o }) {
|
|
2729
2797
|
const t = e, i = o, n = k(() => Math.max(1, Math.ceil(t.total / t.pageSize))), d = k(() => {
|
|
2730
|
-
const
|
|
2731
|
-
if (
|
|
2732
|
-
return Array.from({ length:
|
|
2733
|
-
const
|
|
2734
|
-
|
|
2735
|
-
const g = Math.max(2,
|
|
2798
|
+
const b = n.value;
|
|
2799
|
+
if (b <= 7)
|
|
2800
|
+
return Array.from({ length: b }, (h, y) => y + 1);
|
|
2801
|
+
const m = t.currentPage, v = [1];
|
|
2802
|
+
m > 4 && v.push(Mi);
|
|
2803
|
+
const g = Math.max(2, m - 2), L = Math.min(b - 1, m + 2);
|
|
2736
2804
|
for (let h = g; h <= L; h++)
|
|
2737
2805
|
v.push(h);
|
|
2738
|
-
return
|
|
2806
|
+
return m < b - 3 && v.push(xi), v.push(b), v;
|
|
2739
2807
|
});
|
|
2740
|
-
function u(
|
|
2741
|
-
|
|
2808
|
+
function u(b) {
|
|
2809
|
+
b < 1 || b > n.value || i(St, b);
|
|
2742
2810
|
}
|
|
2743
|
-
function r(
|
|
2744
|
-
const
|
|
2745
|
-
i($t, Number(
|
|
2811
|
+
function r(b) {
|
|
2812
|
+
const m = b.target;
|
|
2813
|
+
i($t, Number(m.value));
|
|
2746
2814
|
}
|
|
2747
|
-
return (
|
|
2815
|
+
return (b, m) => (a(), l("nav", {
|
|
2748
2816
|
class: "ds-paginator",
|
|
2749
2817
|
"aria-label": e.paginationLabel || void 0
|
|
2750
2818
|
}, [
|
|
2751
|
-
e.limitMessage ? (a(), l("span",
|
|
2752
|
-
s("div",
|
|
2819
|
+
e.limitMessage ? (a(), l("span", Di, c(e.limitMessage), 1)) : S("", !0),
|
|
2820
|
+
s("div", Ai, [
|
|
2753
2821
|
F(f(oe), {
|
|
2754
2822
|
variant: "tertiary",
|
|
2755
2823
|
circle: "",
|
|
@@ -2757,16 +2825,16 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2757
2825
|
"left-icon": "chevron_left",
|
|
2758
2826
|
"aria-label": e.prevLabel || void 0,
|
|
2759
2827
|
disabled: e.currentPage <= 1,
|
|
2760
|
-
onClick:
|
|
2828
|
+
onClick: m[0] || (m[0] = (v) => u(e.currentPage - 1))
|
|
2761
2829
|
}, null, 8, ["aria-label", "disabled"]),
|
|
2762
2830
|
(a(!0), l(G, null, le(d.value, (v) => (a(), l(G, { key: v }, [
|
|
2763
|
-
typeof v == "string" ? (a(), l("span",
|
|
2831
|
+
typeof v == "string" ? (a(), l("span", Ri, "…")) : (a(), l("button", {
|
|
2764
2832
|
key: 1,
|
|
2765
2833
|
type: "button",
|
|
2766
|
-
class:
|
|
2834
|
+
class: I(["ds-paginator__page", { "is-active": v === e.currentPage }]),
|
|
2767
2835
|
"aria-current": v === e.currentPage ? "page" : void 0,
|
|
2768
2836
|
onClick: (g) => u(v)
|
|
2769
|
-
}, c(v), 11,
|
|
2837
|
+
}, c(v), 11, Ni))
|
|
2770
2838
|
], 64))), 128)),
|
|
2771
2839
|
F(f(oe), {
|
|
2772
2840
|
variant: "tertiary",
|
|
@@ -2775,7 +2843,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2775
2843
|
"left-icon": "chevron_right",
|
|
2776
2844
|
"aria-label": e.nextLabel || void 0,
|
|
2777
2845
|
disabled: e.currentPage >= n.value,
|
|
2778
|
-
onClick:
|
|
2846
|
+
onClick: m[1] || (m[1] = (v) => u(e.currentPage + 1))
|
|
2779
2847
|
}, null, 8, ["aria-label", "disabled"])
|
|
2780
2848
|
]),
|
|
2781
2849
|
s("select", {
|
|
@@ -2787,17 +2855,17 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2787
2855
|
(a(!0), l(G, null, le(e.pageSizes, (v) => (a(), l("option", {
|
|
2788
2856
|
key: v,
|
|
2789
2857
|
value: v
|
|
2790
|
-
}, c(v) + c(e.pageSizeSuffix), 9,
|
|
2791
|
-
], 40,
|
|
2792
|
-
], 8,
|
|
2858
|
+
}, c(v) + c(e.pageSizeSuffix), 9, Bi))), 128))
|
|
2859
|
+
], 40, Oi)
|
|
2860
|
+
], 8, Ii));
|
|
2793
2861
|
}
|
|
2794
|
-
}),
|
|
2862
|
+
}), vr = /* @__PURE__ */ P(Pi, [["__scopeId", "data-v-a42e7bb4"]]), zi = ["aria-current", "title"], Ui = {
|
|
2795
2863
|
class: "ds-menu-item__icon material-symbols-filled",
|
|
2796
2864
|
"aria-hidden": "true"
|
|
2797
|
-
},
|
|
2865
|
+
}, Fi = {
|
|
2798
2866
|
key: 0,
|
|
2799
2867
|
class: "ds-menu-item__label"
|
|
2800
|
-
},
|
|
2868
|
+
}, Vi = /* @__PURE__ */ x({
|
|
2801
2869
|
__name: "DsMenuItem",
|
|
2802
2870
|
props: {
|
|
2803
2871
|
// Material Symbols ligature name (rendered via <i class="material-symbols-filled">).
|
|
@@ -2817,20 +2885,20 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2817
2885
|
}
|
|
2818
2886
|
return (n, d) => (a(), l("button", {
|
|
2819
2887
|
type: "button",
|
|
2820
|
-
class:
|
|
2888
|
+
class: I(["ds-menu-item", { "is-active": e.active, "is-collapsed": e.collapsed }]),
|
|
2821
2889
|
"aria-current": e.active ? "page" : void 0,
|
|
2822
2890
|
title: e.text || void 0,
|
|
2823
2891
|
onClick: i
|
|
2824
2892
|
}, [
|
|
2825
|
-
s("i",
|
|
2826
|
-
e.text || n.$slots.default ? (a(), l("span",
|
|
2827
|
-
|
|
2828
|
-
|
|
2893
|
+
s("i", Ui, c(e.icon), 1),
|
|
2894
|
+
e.text || n.$slots.default ? (a(), l("span", Fi, [
|
|
2895
|
+
M(n.$slots, "default", {}, () => [
|
|
2896
|
+
J(c(e.text), 1)
|
|
2829
2897
|
], !0)
|
|
2830
2898
|
])) : S("", !0)
|
|
2831
|
-
], 10,
|
|
2899
|
+
], 10, zi));
|
|
2832
2900
|
}
|
|
2833
|
-
}),
|
|
2901
|
+
}), br = /* @__PURE__ */ P(Vi, [["__scopeId", "data-v-374c4426"]]), Ce = {
|
|
2834
2902
|
ACTIVE: "active",
|
|
2835
2903
|
// current step — accent-tint chip, filled marker
|
|
2836
2904
|
COMPLETED: "completed",
|
|
@@ -2839,10 +2907,10 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2839
2907
|
// visited but unfinished — red "!" chip
|
|
2840
2908
|
NEUTRAL: "neutral"
|
|
2841
2909
|
// upcoming — outlined marker
|
|
2842
|
-
},
|
|
2910
|
+
}, qi = { class: "ds-wizard-stepper" }, Gi = { class: "ds-wizard-stepper__steps" }, Hi = {
|
|
2843
2911
|
class: "ds-wizard-step__marker",
|
|
2844
2912
|
"aria-hidden": "true"
|
|
2845
|
-
},
|
|
2913
|
+
}, Ki = { class: "ds-wizard-step__label" }, Wi = /* @__PURE__ */ x({
|
|
2846
2914
|
__name: "DsWizardStepper",
|
|
2847
2915
|
props: {
|
|
2848
2916
|
steps: { type: Array, default: () => [] },
|
|
@@ -2857,44 +2925,44 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2857
2925
|
emits: [ot, Lt],
|
|
2858
2926
|
setup(e, { emit: o }) {
|
|
2859
2927
|
const t = e, i = o, n = k(() => t.value === t.steps.length), d = k(
|
|
2860
|
-
() => t.steps.map((
|
|
2928
|
+
() => t.steps.map((m, v) => {
|
|
2861
2929
|
var h;
|
|
2862
2930
|
const g = v + 1;
|
|
2863
2931
|
let L;
|
|
2864
|
-
return g === t.value ? L =
|
|
2865
|
-
key: (h =
|
|
2932
|
+
return g === t.value ? L = Ce.ACTIVE : m.completed ? L = Ce.COMPLETED : m.visited ? L = Ce.INCOMPLETE : g < t.value ? L = Ce.COMPLETED : L = Ce.NEUTRAL, {
|
|
2933
|
+
key: (h = m.key) != null ? h : g,
|
|
2866
2934
|
index: g,
|
|
2867
|
-
label:
|
|
2935
|
+
label: m.label,
|
|
2868
2936
|
state: L,
|
|
2869
|
-
current: L ===
|
|
2870
|
-
marker: L ===
|
|
2937
|
+
current: L === Ce.ACTIVE,
|
|
2938
|
+
marker: L === Ce.INCOMPLETE ? "!" : String(g)
|
|
2871
2939
|
};
|
|
2872
2940
|
})
|
|
2873
2941
|
);
|
|
2874
|
-
function u(
|
|
2875
|
-
t.clickable && i(ot,
|
|
2942
|
+
function u(m) {
|
|
2943
|
+
t.clickable && i(ot, m);
|
|
2876
2944
|
}
|
|
2877
2945
|
function r() {
|
|
2878
2946
|
t.value < t.steps.length && i(ot, t.value + 1);
|
|
2879
2947
|
}
|
|
2880
|
-
function
|
|
2948
|
+
function b() {
|
|
2881
2949
|
i(Lt);
|
|
2882
2950
|
}
|
|
2883
|
-
return (
|
|
2884
|
-
s("ol",
|
|
2951
|
+
return (m, v) => (a(), l("div", qi, [
|
|
2952
|
+
s("ol", Gi, [
|
|
2885
2953
|
(a(!0), l(G, null, le(d.value, (g) => (a(), l("li", {
|
|
2886
2954
|
key: g.key,
|
|
2887
2955
|
class: "ds-wizard-stepper__item"
|
|
2888
2956
|
}, [
|
|
2889
2957
|
(a(), K(qt(e.clickable ? "button" : "div"), {
|
|
2890
2958
|
type: e.clickable ? "button" : void 0,
|
|
2891
|
-
class:
|
|
2959
|
+
class: I(["ds-wizard-step", [`ds-wizard-step--${g.state}`, { "is-clickable": e.clickable }]]),
|
|
2892
2960
|
"aria-current": g.current ? "step" : void 0,
|
|
2893
2961
|
onClick: (L) => u(g.index)
|
|
2894
2962
|
}, {
|
|
2895
2963
|
default: B(() => [
|
|
2896
|
-
s("span",
|
|
2897
|
-
s("span",
|
|
2964
|
+
s("span", Hi, c(g.marker), 1),
|
|
2965
|
+
s("span", Ki, c(g.label), 1)
|
|
2898
2966
|
]),
|
|
2899
2967
|
_: 2
|
|
2900
2968
|
}, 1032, ["type", "class", "aria-current", "onClick"]))
|
|
@@ -2908,7 +2976,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2908
2976
|
onClick: r
|
|
2909
2977
|
}, {
|
|
2910
2978
|
default: B(() => [
|
|
2911
|
-
|
|
2979
|
+
J(c(e.nextLabel), 1)
|
|
2912
2980
|
]),
|
|
2913
2981
|
_: 1
|
|
2914
2982
|
})) : S("", !0),
|
|
@@ -2916,33 +2984,33 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2916
2984
|
key: 1,
|
|
2917
2985
|
variant: "primary",
|
|
2918
2986
|
size: "large",
|
|
2919
|
-
onClick:
|
|
2987
|
+
onClick: b
|
|
2920
2988
|
}, {
|
|
2921
2989
|
default: B(() => [
|
|
2922
|
-
|
|
2990
|
+
J(c(e.finalStepLabel), 1)
|
|
2923
2991
|
]),
|
|
2924
2992
|
_: 1
|
|
2925
2993
|
})) : S("", !0)
|
|
2926
2994
|
]));
|
|
2927
2995
|
}
|
|
2928
|
-
}),
|
|
2996
|
+
}), mr = /* @__PURE__ */ P(Wi, [["__scopeId", "data-v-d6f1e6d7"]]), Ut = {
|
|
2929
2997
|
/** Right-to-left: panel pinned to the right edge, ring on its left border. */
|
|
2930
2998
|
RTL: "rtl",
|
|
2931
2999
|
/** Left-to-right: panel pinned to the left edge, ring on its right border. */
|
|
2932
3000
|
LTR: "ltr"
|
|
2933
|
-
},
|
|
3001
|
+
}, Yi = ["aria-modal", "aria-labelledby", "aria-label"], ji = {
|
|
2934
3002
|
key: 1,
|
|
2935
3003
|
class: "ds-drawer__header"
|
|
2936
|
-
},
|
|
3004
|
+
}, Xi = ["id"], Zi = {
|
|
2937
3005
|
key: 0,
|
|
2938
3006
|
class: "ds-drawer__controls"
|
|
2939
|
-
},
|
|
3007
|
+
}, Qi = {
|
|
2940
3008
|
key: 0,
|
|
2941
3009
|
class: "ds-drawer__actions"
|
|
2942
|
-
},
|
|
3010
|
+
}, Ji = ["aria-label"], es = { class: "ds-drawer__body" }, ts = {
|
|
2943
3011
|
key: 2,
|
|
2944
3012
|
class: "ds-drawer__footer"
|
|
2945
|
-
},
|
|
3013
|
+
}, as = /* @__PURE__ */ x({
|
|
2946
3014
|
__name: "DsDrawer",
|
|
2947
3015
|
props: {
|
|
2948
3016
|
open: Boolean,
|
|
@@ -2973,11 +3041,11 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2973
3041
|
setup(e, { emit: o }) {
|
|
2974
3042
|
const t = e, i = o, n = N(null);
|
|
2975
3043
|
let d = null;
|
|
2976
|
-
const u =
|
|
3044
|
+
const u = Ae(), r = be(), b = k(() => t.title && !u.header ? r : void 0), m = (w) => Math.min(Math.max(w, t.minWidth), Math.max(t.minWidth, t.maxWidth)), v = N(m(t.width));
|
|
2977
3045
|
ae(
|
|
2978
3046
|
() => [t.width, t.minWidth, t.maxWidth],
|
|
2979
3047
|
() => {
|
|
2980
|
-
$.value || (v.value =
|
|
3048
|
+
$.value || (v.value = m(t.width));
|
|
2981
3049
|
}
|
|
2982
3050
|
);
|
|
2983
3051
|
const g = k(() => ({ width: `${v.value}px` }));
|
|
@@ -2985,7 +3053,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2985
3053
|
t.beforeClose && await t.beforeClose() === !1 || i(ue);
|
|
2986
3054
|
}
|
|
2987
3055
|
let h = !1;
|
|
2988
|
-
function
|
|
3056
|
+
function y() {
|
|
2989
3057
|
if (h) {
|
|
2990
3058
|
h = !1;
|
|
2991
3059
|
return;
|
|
@@ -2996,7 +3064,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
2996
3064
|
let _ = 0, p = 0;
|
|
2997
3065
|
function R(w) {
|
|
2998
3066
|
const C = w.clientX - _, T = t.direction === Ut.RTL ? p - C : p + C;
|
|
2999
|
-
return
|
|
3067
|
+
return m(T);
|
|
3000
3068
|
}
|
|
3001
3069
|
function O(w) {
|
|
3002
3070
|
t.resizable && ($.value = !0, _ = w.clientX, p = v.value, document.addEventListener("pointermove", H), document.addEventListener("pointerup", W), document.addEventListener("pointercancel", W), i(Et, v.value));
|
|
@@ -3010,19 +3078,19 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3010
3078
|
function X() {
|
|
3011
3079
|
document.removeEventListener("pointermove", H), document.removeEventListener("pointerup", W), document.removeEventListener("pointercancel", W);
|
|
3012
3080
|
}
|
|
3013
|
-
function
|
|
3081
|
+
function z() {
|
|
3014
3082
|
return n.value ? Array.from(n.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
3015
3083
|
(C) => !C.closest("[hidden]") && C.getAttribute("aria-hidden") !== "true"
|
|
3016
3084
|
) : [];
|
|
3017
3085
|
}
|
|
3018
|
-
function
|
|
3086
|
+
function U(w) {
|
|
3019
3087
|
var se;
|
|
3020
3088
|
if (w.key === "Escape") {
|
|
3021
3089
|
t.closeOnEscape && L();
|
|
3022
3090
|
return;
|
|
3023
3091
|
}
|
|
3024
3092
|
if (w.key !== "Tab") return;
|
|
3025
|
-
const C =
|
|
3093
|
+
const C = z();
|
|
3026
3094
|
if (C.length === 0) {
|
|
3027
3095
|
w.preventDefault(), (se = n.value) == null || se.focus();
|
|
3028
3096
|
return;
|
|
@@ -3031,14 +3099,14 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3031
3099
|
w.shiftKey && document.activeElement === T ? (w.preventDefault(), q.focus()) : !w.shiftKey && document.activeElement === q && (w.preventDefault(), T.focus());
|
|
3032
3100
|
}
|
|
3033
3101
|
function E() {
|
|
3034
|
-
d = document.activeElement, document.addEventListener("keydown",
|
|
3102
|
+
d = document.activeElement, document.addEventListener("keydown", U), document.body.style.overflow = "hidden", ne(() => {
|
|
3035
3103
|
var w, C;
|
|
3036
|
-
return (C = (w =
|
|
3104
|
+
return (C = (w = z()[0]) != null ? w : n.value) == null ? void 0 : C.focus();
|
|
3037
3105
|
});
|
|
3038
3106
|
}
|
|
3039
3107
|
function A(w = !0) {
|
|
3040
3108
|
var C;
|
|
3041
|
-
document.removeEventListener("keydown",
|
|
3109
|
+
document.removeEventListener("keydown", U), document.body.style.overflow = "", w && ((C = d == null ? void 0 : d.focus) == null || C.call(d));
|
|
3042
3110
|
}
|
|
3043
3111
|
return ae(
|
|
3044
3112
|
() => t.open && t.fixed,
|
|
@@ -3058,8 +3126,8 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3058
3126
|
default: B(() => [
|
|
3059
3127
|
e.open ? (a(), l("div", {
|
|
3060
3128
|
key: 0,
|
|
3061
|
-
class:
|
|
3062
|
-
onClick:
|
|
3129
|
+
class: I(["ds-drawer", [`ds-drawer--${e.direction}`, { "is-fixed": e.fixed, "is-resizing": $.value }]]),
|
|
3130
|
+
onClick: De(y, ["self"])
|
|
3063
3131
|
}, [
|
|
3064
3132
|
s("aside", {
|
|
3065
3133
|
ref_key: "panelRef",
|
|
@@ -3067,8 +3135,8 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3067
3135
|
class: "ds-drawer__panel",
|
|
3068
3136
|
role: "dialog",
|
|
3069
3137
|
"aria-modal": e.fixed ? "true" : "false",
|
|
3070
|
-
"aria-labelledby":
|
|
3071
|
-
"aria-label":
|
|
3138
|
+
"aria-labelledby": b.value,
|
|
3139
|
+
"aria-label": b.value ? void 0 : "drawer",
|
|
3072
3140
|
tabindex: "-1",
|
|
3073
3141
|
style: Y(g.value)
|
|
3074
3142
|
}, [
|
|
@@ -3076,18 +3144,18 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3076
3144
|
key: 0,
|
|
3077
3145
|
class: "ds-drawer__dragger",
|
|
3078
3146
|
"aria-hidden": "true",
|
|
3079
|
-
onPointerdown:
|
|
3147
|
+
onPointerdown: De(O, ["stop", "prevent"])
|
|
3080
3148
|
}, null, 32)) : S("", !0),
|
|
3081
|
-
e.title || e.showClose || w.$slots.header || w.$slots.actions ? (a(), l("header",
|
|
3082
|
-
|
|
3149
|
+
e.title || e.showClose || w.$slots.header || w.$slots.actions ? (a(), l("header", ji, [
|
|
3150
|
+
M(w.$slots, "header", {}, () => [
|
|
3083
3151
|
s("h4", {
|
|
3084
3152
|
id: f(r),
|
|
3085
3153
|
class: "ds-drawer__title"
|
|
3086
|
-
}, c(e.title), 9,
|
|
3154
|
+
}, c(e.title), 9, Xi)
|
|
3087
3155
|
], !0),
|
|
3088
|
-
e.showClose || w.$slots.actions ? (a(), l("div",
|
|
3089
|
-
w.$slots.actions ? (a(), l("div",
|
|
3090
|
-
|
|
3156
|
+
e.showClose || w.$slots.actions ? (a(), l("div", Zi, [
|
|
3157
|
+
w.$slots.actions ? (a(), l("div", Qi, [
|
|
3158
|
+
M(w.$slots, "actions", {}, void 0, !0)
|
|
3091
3159
|
])) : S("", !0),
|
|
3092
3160
|
e.showClose ? (a(), l("button", {
|
|
3093
3161
|
key: 1,
|
|
@@ -3100,23 +3168,23 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3100
3168
|
class: "material-symbols-filled",
|
|
3101
3169
|
"aria-hidden": "true"
|
|
3102
3170
|
}, "close", -1)
|
|
3103
|
-
])], 8,
|
|
3171
|
+
])], 8, Ji)) : S("", !0)
|
|
3104
3172
|
])) : S("", !0)
|
|
3105
3173
|
])) : S("", !0),
|
|
3106
|
-
s("div",
|
|
3107
|
-
|
|
3174
|
+
s("div", es, [
|
|
3175
|
+
M(w.$slots, "default", {}, void 0, !0)
|
|
3108
3176
|
]),
|
|
3109
|
-
w.$slots.footer ? (a(), l("footer",
|
|
3110
|
-
|
|
3177
|
+
w.$slots.footer ? (a(), l("footer", ts, [
|
|
3178
|
+
M(w.$slots, "footer", {}, void 0, !0)
|
|
3111
3179
|
])) : S("", !0)
|
|
3112
|
-
], 12,
|
|
3180
|
+
], 12, Yi)
|
|
3113
3181
|
], 2)) : S("", !0)
|
|
3114
3182
|
]),
|
|
3115
3183
|
_: 3
|
|
3116
3184
|
}, 8, ["name"])
|
|
3117
3185
|
], 8, ["disabled"]));
|
|
3118
3186
|
}
|
|
3119
|
-
}),
|
|
3187
|
+
}), yr = /* @__PURE__ */ P(as, [["__scopeId", "data-v-17dff7c2"]]), qe = {
|
|
3120
3188
|
TOP: "top",
|
|
3121
3189
|
TOP_START: "top-start",
|
|
3122
3190
|
TOP_END: "top-end",
|
|
@@ -3131,7 +3199,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3131
3199
|
RIGHT_END: "right-end",
|
|
3132
3200
|
OVER_START: "over-start",
|
|
3133
3201
|
OVER_END: "over-end"
|
|
3134
|
-
}, Ft = /* @__PURE__ */ Symbol("ds-popover-layer"),
|
|
3202
|
+
}, Ft = /* @__PURE__ */ Symbol("ds-popover-layer"), ls = 2002, ns = ["id"], is = ["id"], ss = 6, os = /* @__PURE__ */ x({
|
|
3135
3203
|
__name: "DsPopover",
|
|
3136
3204
|
props: {
|
|
3137
3205
|
open: Boolean,
|
|
@@ -3178,12 +3246,12 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3178
3246
|
return u.add(A), () => u.delete(A);
|
|
3179
3247
|
}
|
|
3180
3248
|
});
|
|
3181
|
-
const
|
|
3249
|
+
const m = (E = va(Ft, null)) == null ? void 0 : E.register(r), v = be(), {
|
|
3182
3250
|
shiftStyle: g,
|
|
3183
3251
|
resolvedPlacement: L,
|
|
3184
3252
|
activate: h,
|
|
3185
|
-
deactivate:
|
|
3186
|
-
} = Xt(d, () => t.placement, { trigger: n, gap:
|
|
3253
|
+
deactivate: y
|
|
3254
|
+
} = Xt(d, () => t.placement, { trigger: n, gap: ss }), $ = k(() => {
|
|
3187
3255
|
const w = {
|
|
3188
3256
|
...!!t.growTo ? {
|
|
3189
3257
|
width: "max-content",
|
|
@@ -3199,7 +3267,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3199
3267
|
track: p,
|
|
3200
3268
|
untrack: R
|
|
3201
3269
|
} = jt(n, { onTriggerHidden: W }), O = k(() => ({
|
|
3202
|
-
zIndex:
|
|
3270
|
+
zIndex: ls,
|
|
3203
3271
|
..._.value
|
|
3204
3272
|
}));
|
|
3205
3273
|
let H = null;
|
|
@@ -3209,10 +3277,10 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3209
3277
|
function X() {
|
|
3210
3278
|
t.triggerOnClick && i(fe, !t.open);
|
|
3211
3279
|
}
|
|
3212
|
-
function
|
|
3280
|
+
function z() {
|
|
3213
3281
|
t.closeOnEscape && t.open && W();
|
|
3214
3282
|
}
|
|
3215
|
-
function
|
|
3283
|
+
function U(A) {
|
|
3216
3284
|
const w = A.target;
|
|
3217
3285
|
!w || r(w) || W();
|
|
3218
3286
|
}
|
|
@@ -3220,25 +3288,25 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3220
3288
|
() => t.open,
|
|
3221
3289
|
(A, w) => {
|
|
3222
3290
|
var C;
|
|
3223
|
-
typeof document != "undefined" && (A ? (H = document.activeElement, t.closeOnOutside && document.addEventListener("mousedown",
|
|
3291
|
+
typeof document != "undefined" && (A ? (H = document.activeElement, t.closeOnOutside && document.addEventListener("mousedown", U), t.teleported && p(), ne(() => {
|
|
3224
3292
|
var T, q;
|
|
3225
3293
|
(q = (T = d.value) == null ? void 0 : T.focus) == null || q.call(T, { preventScroll: !0 }), h();
|
|
3226
|
-
})) : w && (document.removeEventListener("mousedown",
|
|
3294
|
+
})) : w && (document.removeEventListener("mousedown", U), R(), y(), (C = H == null ? void 0 : H.focus) == null || C.call(H, { preventScroll: !0 })));
|
|
3227
3295
|
},
|
|
3228
3296
|
{ immediate: !0 }
|
|
3229
3297
|
), re(() => {
|
|
3230
|
-
|
|
3298
|
+
m == null || m(), typeof document != "undefined" && (document.removeEventListener("mousedown", U), y());
|
|
3231
3299
|
}), (A, w) => (a(), l("div", {
|
|
3232
3300
|
ref_key: "rootRef",
|
|
3233
3301
|
ref: n,
|
|
3234
|
-
class:
|
|
3235
|
-
onKeydown: je(
|
|
3302
|
+
class: I(["ds-popover", { "ds-popover--block": e.block }]),
|
|
3303
|
+
onKeydown: je(z, ["esc"])
|
|
3236
3304
|
}, [
|
|
3237
3305
|
s("div", {
|
|
3238
3306
|
class: "ds-popover__trigger",
|
|
3239
3307
|
onClick: X
|
|
3240
3308
|
}, [
|
|
3241
|
-
|
|
3309
|
+
M(A.$slots, "trigger", {}, void 0, !0)
|
|
3242
3310
|
]),
|
|
3243
3311
|
e.teleported ? (a(), K(Ge, {
|
|
3244
3312
|
key: 0,
|
|
@@ -3250,19 +3318,19 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3250
3318
|
key: 0,
|
|
3251
3319
|
class: "ds-popover__anchor",
|
|
3252
3320
|
style: Y(O.value),
|
|
3253
|
-
onKeydown: je(
|
|
3321
|
+
onKeydown: je(z, ["esc"])
|
|
3254
3322
|
}, [
|
|
3255
3323
|
s("div", {
|
|
3256
3324
|
id: f(v),
|
|
3257
3325
|
ref_key: "panelRef",
|
|
3258
3326
|
ref: d,
|
|
3259
|
-
class:
|
|
3327
|
+
class: I(["ds-popover__panel", [`ds-popover__panel--${f(L)}`, { "is-flush": e.flush }]]),
|
|
3260
3328
|
role: "dialog",
|
|
3261
3329
|
tabindex: "-1",
|
|
3262
3330
|
style: Y($.value)
|
|
3263
3331
|
}, [
|
|
3264
|
-
|
|
3265
|
-
], 14,
|
|
3332
|
+
M(A.$slots, "default", {}, void 0, !0)
|
|
3333
|
+
], 14, ns)
|
|
3266
3334
|
], 36)) : S("", !0)
|
|
3267
3335
|
]),
|
|
3268
3336
|
_: 3
|
|
@@ -3277,23 +3345,23 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3277
3345
|
id: f(v),
|
|
3278
3346
|
ref_key: "panelRef",
|
|
3279
3347
|
ref: d,
|
|
3280
|
-
class:
|
|
3348
|
+
class: I(["ds-popover__panel", [`ds-popover__panel--${f(L)}`, { "is-flush": e.flush }]]),
|
|
3281
3349
|
role: "dialog",
|
|
3282
3350
|
tabindex: "-1",
|
|
3283
3351
|
style: Y($.value)
|
|
3284
3352
|
}, [
|
|
3285
|
-
|
|
3286
|
-
], 14,
|
|
3353
|
+
M(A.$slots, "default", {}, void 0, !0)
|
|
3354
|
+
], 14, is)) : S("", !0)
|
|
3287
3355
|
]),
|
|
3288
3356
|
_: 3
|
|
3289
3357
|
}))
|
|
3290
3358
|
], 34));
|
|
3291
3359
|
}
|
|
3292
|
-
}), He = /* @__PURE__ */
|
|
3360
|
+
}), He = /* @__PURE__ */ P(os, [["__scopeId", "data-v-545c33c3"]]), ds = ["src"], rs = {
|
|
3293
3361
|
key: 1,
|
|
3294
3362
|
class: "ds-company-logo__initial",
|
|
3295
3363
|
"aria-hidden": "true"
|
|
3296
|
-
},
|
|
3364
|
+
}, cs = /* @__PURE__ */ x({
|
|
3297
3365
|
__name: "DsCompanyLogo",
|
|
3298
3366
|
props: {
|
|
3299
3367
|
src: { type: String, default: "" },
|
|
@@ -3321,17 +3389,17 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3321
3389
|
alt: "",
|
|
3322
3390
|
loading: "lazy",
|
|
3323
3391
|
style: Y(d.value),
|
|
3324
|
-
onError: r[0] || (r[0] = (
|
|
3325
|
-
}, null, 44,
|
|
3392
|
+
onError: r[0] || (r[0] = (b) => t.value = !0)
|
|
3393
|
+
}, null, 44, ds)) : (a(), l("span", rs, c(i.value), 1))
|
|
3326
3394
|
], 4));
|
|
3327
3395
|
}
|
|
3328
|
-
}), Jt = /* @__PURE__ */
|
|
3396
|
+
}), Jt = /* @__PURE__ */ P(cs, [["__scopeId", "data-v-541b2e2e"]]), us = { class: "ds-company-card" }, fs = { class: "ds-company-card__header" }, vs = { class: "ds-company-card__name" }, bs = ["href", "aria-label"], ms = ["href", "aria-label"], ys = {
|
|
3329
3397
|
class: "material-symbols-filled ds-company-card__row-icon",
|
|
3330
3398
|
"aria-hidden": "true"
|
|
3331
|
-
},
|
|
3399
|
+
}, gs = { class: "ds-company-card__row-text" }, hs = { class: "ds-company-card__row-label" }, ps = ["href"], ks = {
|
|
3332
3400
|
key: 1,
|
|
3333
3401
|
class: "ds-company-card__row-value"
|
|
3334
|
-
},
|
|
3402
|
+
}, Ss = /* @__PURE__ */ x({
|
|
3335
3403
|
__name: "DsCompanyCard",
|
|
3336
3404
|
props: {
|
|
3337
3405
|
name: { type: String, required: !0 },
|
|
@@ -3344,14 +3412,14 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3344
3412
|
},
|
|
3345
3413
|
setup(e) {
|
|
3346
3414
|
const o = e, t = k(() => o.details.filter((i) => i.value));
|
|
3347
|
-
return (i, n) => (a(), l("div",
|
|
3348
|
-
s("div",
|
|
3415
|
+
return (i, n) => (a(), l("div", us, [
|
|
3416
|
+
s("div", fs, [
|
|
3349
3417
|
F(Jt, {
|
|
3350
3418
|
src: e.logo,
|
|
3351
3419
|
name: e.name,
|
|
3352
3420
|
size: 34
|
|
3353
3421
|
}, null, 8, ["src", "name"]),
|
|
3354
|
-
s("span",
|
|
3422
|
+
s("span", vs, c(e.name), 1),
|
|
3355
3423
|
e.websiteUrl ? (a(), K(ge, {
|
|
3356
3424
|
key: 0,
|
|
3357
3425
|
content: e.websiteLabel,
|
|
@@ -3369,7 +3437,7 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3369
3437
|
class: "material-symbols-filled",
|
|
3370
3438
|
"aria-hidden": "true"
|
|
3371
3439
|
}, "language", -1)
|
|
3372
|
-
])], 8,
|
|
3440
|
+
])], 8, bs)
|
|
3373
3441
|
]),
|
|
3374
3442
|
_: 1
|
|
3375
3443
|
}, 8, ["content", "placement"])) : S("", !0),
|
|
@@ -3380,50 +3448,50 @@ const jl = ["title"], Xl = { class: "ds-contact-value__marquee" }, Zl = { class:
|
|
|
3380
3448
|
target: "_blank",
|
|
3381
3449
|
rel: "noopener noreferrer",
|
|
3382
3450
|
"aria-label": e.linkedinLabel || void 0
|
|
3383
|
-
}, "in", 8,
|
|
3451
|
+
}, "in", 8, ms)) : S("", !0)
|
|
3384
3452
|
]),
|
|
3385
3453
|
(a(!0), l(G, null, le(t.value, (d) => (a(), l("div", {
|
|
3386
3454
|
key: d.id,
|
|
3387
3455
|
class: "ds-company-card__row"
|
|
3388
3456
|
}, [
|
|
3389
|
-
s("i",
|
|
3390
|
-
s("div",
|
|
3391
|
-
s("div",
|
|
3457
|
+
s("i", ys, c(d.icon), 1),
|
|
3458
|
+
s("div", gs, [
|
|
3459
|
+
s("div", hs, c(d.label), 1),
|
|
3392
3460
|
d.href ? (a(), l("a", {
|
|
3393
3461
|
key: 0,
|
|
3394
3462
|
class: "ds-company-card__row-value is-link",
|
|
3395
3463
|
href: d.href,
|
|
3396
3464
|
target: "_blank",
|
|
3397
3465
|
rel: "noopener noreferrer"
|
|
3398
|
-
}, c(d.value), 9,
|
|
3466
|
+
}, c(d.value), 9, ps)) : (a(), l("div", ks, c(d.value), 1))
|
|
3399
3467
|
])
|
|
3400
3468
|
]))), 128))
|
|
3401
3469
|
]));
|
|
3402
3470
|
}
|
|
3403
|
-
}),
|
|
3471
|
+
}), gr = /* @__PURE__ */ P(Ss, [["__scopeId", "data-v-4d21b7ea"]]), Ke = {
|
|
3404
3472
|
EMAIL: "email",
|
|
3405
3473
|
PHONE: "phone"
|
|
3406
|
-
},
|
|
3474
|
+
}, Be = {
|
|
3407
3475
|
WORK: "work",
|
|
3408
3476
|
DIRECT: "direct",
|
|
3409
3477
|
MOBILE: "mobile",
|
|
3410
3478
|
HQ: "hq",
|
|
3411
3479
|
OTHER: "other"
|
|
3412
|
-
},
|
|
3413
|
-
[
|
|
3414
|
-
[
|
|
3415
|
-
[
|
|
3416
|
-
[
|
|
3417
|
-
[
|
|
3480
|
+
}, $s = {
|
|
3481
|
+
[Be.WORK]: "business_center",
|
|
3482
|
+
[Be.DIRECT]: "mail",
|
|
3483
|
+
[Be.MOBILE]: "call",
|
|
3484
|
+
[Be.HQ]: "corporate_fare",
|
|
3485
|
+
[Be.OTHER]: "alternate_email"
|
|
3418
3486
|
};
|
|
3419
3487
|
function ea(e, o) {
|
|
3420
|
-
return e ===
|
|
3488
|
+
return e === Be.DIRECT && o === Ke.PHONE ? "call" : $s[e];
|
|
3421
3489
|
}
|
|
3422
3490
|
const ut = ["*", "•", "."];
|
|
3423
|
-
function
|
|
3491
|
+
function _s(e) {
|
|
3424
3492
|
return e > 1 ? e - 1 : 0;
|
|
3425
3493
|
}
|
|
3426
|
-
function
|
|
3494
|
+
function Ls(e, o, t) {
|
|
3427
3495
|
const i = e[e.length - 1];
|
|
3428
3496
|
if (i && i.masked === t) {
|
|
3429
3497
|
i.text += o;
|
|
@@ -3431,7 +3499,7 @@ function ps(e, o, t) {
|
|
|
3431
3499
|
}
|
|
3432
3500
|
e.push({ text: o, masked: t });
|
|
3433
3501
|
}
|
|
3434
|
-
function
|
|
3502
|
+
function ws(e, o) {
|
|
3435
3503
|
if (!e) return [];
|
|
3436
3504
|
if (o === Ke.EMAIL) {
|
|
3437
3505
|
const d = e.indexOf("@");
|
|
@@ -3451,15 +3519,15 @@ function ks(e, o) {
|
|
|
3451
3519
|
}
|
|
3452
3520
|
const n = [];
|
|
3453
3521
|
return t.forEach((d, u) => {
|
|
3454
|
-
var
|
|
3522
|
+
var b, m;
|
|
3455
3523
|
let r = d.text;
|
|
3456
|
-
d.masked || ((
|
|
3524
|
+
d.masked || ((b = t[u - 1]) != null && b.masked && (r = r.replace(/^-/, " ")), (m = t[u + 1]) != null && m.masked && (r = r.replace(/-$/, " "))), Ls(n, r, d.masked);
|
|
3457
3525
|
}), n;
|
|
3458
3526
|
}
|
|
3459
|
-
const
|
|
3527
|
+
const Es = ["title"], Ts = { "aria-hidden": "true" }, Cs = {
|
|
3460
3528
|
key: 0,
|
|
3461
3529
|
class: "ds-masked-value__sr"
|
|
3462
|
-
},
|
|
3530
|
+
}, Is = 5, Ds = "•", As = /* @__PURE__ */ x({
|
|
3463
3531
|
__name: "DsMaskedValue",
|
|
3464
3532
|
props: {
|
|
3465
3533
|
value: { type: String, required: !0 },
|
|
@@ -3471,36 +3539,36 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3471
3539
|
setup(e) {
|
|
3472
3540
|
const o = e;
|
|
3473
3541
|
function t(d) {
|
|
3474
|
-
return !d.masked || ![...d.text].every((u) => ut.includes(u)) ? "" :
|
|
3475
|
-
o.kind === Ke.EMAIL ?
|
|
3542
|
+
return !d.masked || ![...d.text].every((u) => ut.includes(u)) ? "" : Ds.repeat(
|
|
3543
|
+
o.kind === Ke.EMAIL ? Is : d.text.length
|
|
3476
3544
|
);
|
|
3477
3545
|
}
|
|
3478
3546
|
const i = k(
|
|
3479
|
-
() => o.masked ?
|
|
3547
|
+
() => o.masked ? ws(o.value, o.kind).map((d) => ({
|
|
3480
3548
|
...d,
|
|
3481
3549
|
circles: t(d)
|
|
3482
3550
|
})) : []
|
|
3483
3551
|
), n = k(() => i.value.findIndex((d) => d.circles));
|
|
3484
3552
|
return (d, u) => (a(), l("span", {
|
|
3485
|
-
class:
|
|
3553
|
+
class: I(["ds-masked-value", { "is-masked": e.masked }]),
|
|
3486
3554
|
title: e.masked ? void 0 : e.value
|
|
3487
3555
|
}, [
|
|
3488
|
-
e.masked ? (a(!0), l(G, { key: 0 }, le(i.value, (r,
|
|
3489
|
-
key:
|
|
3490
|
-
class:
|
|
3556
|
+
e.masked ? (a(!0), l(G, { key: 0 }, le(i.value, (r, b) => (a(), l("span", {
|
|
3557
|
+
key: b,
|
|
3558
|
+
class: I(r.masked ? "ds-masked-value__mask" : "ds-masked-value__clear")
|
|
3491
3559
|
}, [
|
|
3492
3560
|
r.circles ? (a(), l(G, { key: 0 }, [
|
|
3493
|
-
s("span",
|
|
3494
|
-
|
|
3561
|
+
s("span", Ts, c(r.circles), 1),
|
|
3562
|
+
b === n.value ? (a(), l("span", Cs, c(e.maskedLabel), 1)) : S("", !0)
|
|
3495
3563
|
], 64)) : (a(), l(G, { key: 1 }, [
|
|
3496
|
-
|
|
3564
|
+
J(c(r.text), 1)
|
|
3497
3565
|
], 64))
|
|
3498
3566
|
], 2))), 128)) : (a(), l(G, { key: 1 }, [
|
|
3499
|
-
|
|
3567
|
+
J(c(e.value), 1)
|
|
3500
3568
|
], 64))
|
|
3501
|
-
], 10,
|
|
3569
|
+
], 10, Es));
|
|
3502
3570
|
}
|
|
3503
|
-
}), ta = /* @__PURE__ */
|
|
3571
|
+
}), ta = /* @__PURE__ */ P(As, [["__scopeId", "data-v-f5cdc3db"]]), Rs = ["aria-label", "tabindex"], Ns = /* @__PURE__ */ x({
|
|
3504
3572
|
__name: "DsDeliverabilityBadge",
|
|
3505
3573
|
props: {
|
|
3506
3574
|
label: { type: String, required: !0 },
|
|
@@ -3526,12 +3594,12 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3526
3594
|
role: "img",
|
|
3527
3595
|
"aria-label": e.tooltip,
|
|
3528
3596
|
tabindex: e.focusable ? 0 : void 0
|
|
3529
|
-
}, c(e.label), 9,
|
|
3597
|
+
}, c(e.label), 9, Rs)
|
|
3530
3598
|
]),
|
|
3531
3599
|
_: 1
|
|
3532
3600
|
}, 8, ["content", "placement"]));
|
|
3533
3601
|
}
|
|
3534
|
-
}), aa = /* @__PURE__ */
|
|
3602
|
+
}), aa = /* @__PURE__ */ P(Ns, [["__scopeId", "data-v-a8de9d54"]]), Os = ["aria-label"], Bs = /* @__PURE__ */ x({
|
|
3535
3603
|
__name: "DsMoreCountChip",
|
|
3536
3604
|
props: {
|
|
3537
3605
|
overflow: { type: Number, required: !0 },
|
|
@@ -3541,36 +3609,36 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3541
3609
|
setup(e) {
|
|
3542
3610
|
return (o, t) => e.overflow > 0 ? (a(), l("span", {
|
|
3543
3611
|
key: 0,
|
|
3544
|
-
class:
|
|
3612
|
+
class: I(["ds-more-count-chip", { "is-active": e.active }]),
|
|
3545
3613
|
"aria-label": e.label || void 0
|
|
3546
|
-
}, "+" + c(e.overflow), 11,
|
|
3614
|
+
}, "+" + c(e.overflow), 11, Os)) : S("", !0);
|
|
3547
3615
|
}
|
|
3548
|
-
}), la = /* @__PURE__ */
|
|
3616
|
+
}), la = /* @__PURE__ */ P(Bs, [["__scopeId", "data-v-583db8f3"]]), Ms = { class: "ds-contact-list" }, xs = {
|
|
3549
3617
|
key: 0,
|
|
3550
3618
|
class: "ds-contact-list__header"
|
|
3551
|
-
},
|
|
3619
|
+
}, Ps = {
|
|
3552
3620
|
key: 0,
|
|
3553
3621
|
class: "ds-contact-list__title"
|
|
3554
|
-
},
|
|
3622
|
+
}, zs = {
|
|
3555
3623
|
key: 1,
|
|
3556
3624
|
class: "ds-contact-list__count"
|
|
3557
|
-
},
|
|
3625
|
+
}, Us = { class: "ds-contact-list__actions" }, Fs = {
|
|
3558
3626
|
key: 1,
|
|
3559
3627
|
class: "ds-contact-list__empty"
|
|
3560
|
-
},
|
|
3628
|
+
}, Vs = {
|
|
3561
3629
|
key: 0,
|
|
3562
3630
|
class: "ds-contact-list__section"
|
|
3563
|
-
},
|
|
3631
|
+
}, qs = ["aria-label"], Gs = {
|
|
3564
3632
|
key: 0,
|
|
3565
3633
|
class: "material-symbols-filled ds-contact-list__icon",
|
|
3566
3634
|
"aria-hidden": "true"
|
|
3567
|
-
},
|
|
3635
|
+
}, Hs = { class: "ds-contact-list__value-wrap" }, Ks = {
|
|
3568
3636
|
key: 1,
|
|
3569
3637
|
class: "ds-contact-list__row-actions"
|
|
3570
|
-
},
|
|
3638
|
+
}, Ws = ["aria-label", "title", "onClick"], Ys = {
|
|
3571
3639
|
class: "material-symbols-filled",
|
|
3572
3640
|
"aria-hidden": "true"
|
|
3573
|
-
},
|
|
3641
|
+
}, js = ["aria-label", "aria-pressed", "title", "onClick"], Xs = ["aria-label", "aria-pressed", "title", "onClick"], Zs = /* @__PURE__ */ x({
|
|
3574
3642
|
__name: "DsContactList",
|
|
3575
3643
|
props: {
|
|
3576
3644
|
items: { type: Array, default: () => [] },
|
|
@@ -3594,56 +3662,56 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3594
3662
|
},
|
|
3595
3663
|
emits: [$e, _e, Le],
|
|
3596
3664
|
setup(e, { emit: o }) {
|
|
3597
|
-
const t = e, i = o, n = k(() => t.sections.length ? t.sections.filter((h) => h.items.length > 0).map((h,
|
|
3598
|
-
key: `${h.type}-${
|
|
3665
|
+
const t = e, i = o, n = k(() => t.sections.length ? t.sections.filter((h) => h.items.length > 0).map((h, y) => ({
|
|
3666
|
+
key: `${h.type}-${y}`,
|
|
3599
3667
|
label: h.label,
|
|
3600
3668
|
type: h.type,
|
|
3601
3669
|
items: h.items
|
|
3602
|
-
})) : t.items.length ? [{ key: "group", label: "", type: t.type, items: t.items }] : []), d = k(() => n.value.reduce((h,
|
|
3670
|
+
})) : t.items.length ? [{ key: "group", label: "", type: t.type, items: t.items }] : []), d = k(() => n.value.reduce((h, y) => h + y.items.length, 0));
|
|
3603
3671
|
function u(h) {
|
|
3604
3672
|
return t.kind === Ke.EMAIL && h.valid;
|
|
3605
3673
|
}
|
|
3606
|
-
function r(h,
|
|
3674
|
+
function r(h, y) {
|
|
3607
3675
|
var _;
|
|
3608
|
-
const $ = (_ = h.type) != null ? _ :
|
|
3676
|
+
const $ = (_ = h.type) != null ? _ : y.type;
|
|
3609
3677
|
return $ ? ea($, t.kind) : "";
|
|
3610
3678
|
}
|
|
3611
|
-
function
|
|
3679
|
+
function b(h, y, $) {
|
|
3612
3680
|
var _;
|
|
3613
|
-
return (_ = h.id) != null ? _ : `${
|
|
3681
|
+
return (_ = h.id) != null ? _ : `${y.key}:${$}`;
|
|
3614
3682
|
}
|
|
3615
|
-
const
|
|
3683
|
+
const m = N(null);
|
|
3616
3684
|
let v;
|
|
3617
3685
|
const { copy: g } = Zt();
|
|
3618
|
-
async function L(h,
|
|
3619
|
-
await g(h.value) && (
|
|
3620
|
-
|
|
3686
|
+
async function L(h, y) {
|
|
3687
|
+
await g(h.value) && (m.value = y, clearTimeout(v), v = setTimeout(() => {
|
|
3688
|
+
m.value = null;
|
|
3621
3689
|
}, 1200), i($e, h));
|
|
3622
3690
|
}
|
|
3623
|
-
return re(() => clearTimeout(v)), (h,
|
|
3624
|
-
e.title || h.$slots.actions ? (a(), l("div",
|
|
3625
|
-
e.title ? (a(), l("span",
|
|
3626
|
-
e.title ? (a(), l("span",
|
|
3627
|
-
s("span",
|
|
3628
|
-
|
|
3691
|
+
return re(() => clearTimeout(v)), (h, y) => (a(), l("div", Ms, [
|
|
3692
|
+
e.title || h.$slots.actions ? (a(), l("div", xs, [
|
|
3693
|
+
e.title ? (a(), l("span", Ps, c(e.title), 1)) : S("", !0),
|
|
3694
|
+
e.title ? (a(), l("span", zs, "(" + c(d.value) + ")", 1)) : S("", !0),
|
|
3695
|
+
s("span", Us, [
|
|
3696
|
+
M(h.$slots, "actions", {}, void 0, !0)
|
|
3629
3697
|
])
|
|
3630
3698
|
])) : S("", !0),
|
|
3631
|
-
!d.value && e.emptyLabel ? (a(), l("p",
|
|
3699
|
+
!d.value && e.emptyLabel ? (a(), l("p", Fs, c(e.emptyLabel), 1)) : S("", !0),
|
|
3632
3700
|
(a(!0), l(G, null, le(n.value, ($) => (a(), l(G, {
|
|
3633
3701
|
key: $.key
|
|
3634
3702
|
}, [
|
|
3635
|
-
$.label ? (a(), l("p",
|
|
3703
|
+
$.label ? (a(), l("p", Vs, c($.label) + " (" + c($.items.length) + ") ", 1)) : S("", !0),
|
|
3636
3704
|
s("ul", {
|
|
3637
3705
|
class: "ds-contact-list__items",
|
|
3638
3706
|
role: "list",
|
|
3639
3707
|
"aria-label": $.label || void 0
|
|
3640
3708
|
}, [
|
|
3641
3709
|
(a(!0), l(G, null, le($.items, (_, p) => (a(), l("li", {
|
|
3642
|
-
key:
|
|
3643
|
-
class:
|
|
3710
|
+
key: b(_, $, p),
|
|
3711
|
+
class: I(["ds-contact-list__item", { "is-primary": _.primary, "is-masked": _.masked }])
|
|
3644
3712
|
}, [
|
|
3645
|
-
r(_, $) ? (a(), l("i",
|
|
3646
|
-
s("span",
|
|
3713
|
+
r(_, $) ? (a(), l("i", Gs, c(r(_, $)), 1)) : S("", !0),
|
|
3714
|
+
s("span", Hs, [
|
|
3647
3715
|
F(f(ta), {
|
|
3648
3716
|
class: "ds-contact-list__value",
|
|
3649
3717
|
value: _.value,
|
|
@@ -3658,62 +3726,62 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3658
3726
|
focusable: !1
|
|
3659
3727
|
}, null, 8, ["label", "tooltip"])) : S("", !0)
|
|
3660
3728
|
]),
|
|
3661
|
-
_.masked ? S("", !0) : (a(), l("span",
|
|
3729
|
+
_.masked ? S("", !0) : (a(), l("span", Ks, [
|
|
3662
3730
|
s("button", {
|
|
3663
3731
|
type: "button",
|
|
3664
|
-
class:
|
|
3665
|
-
"aria-label":
|
|
3666
|
-
title:
|
|
3667
|
-
onClick: (R) => L(_,
|
|
3732
|
+
class: I(["ds-contact-list__action", { "is-copied": m.value === b(_, $, p) }]),
|
|
3733
|
+
"aria-label": m.value === b(_, $, p) ? e.copiedLabel : e.copyLabel,
|
|
3734
|
+
title: m.value === b(_, $, p) ? e.copiedLabel : e.copyLabel,
|
|
3735
|
+
onClick: (R) => L(_, b(_, $, p))
|
|
3668
3736
|
}, [
|
|
3669
|
-
s("i",
|
|
3670
|
-
], 10,
|
|
3737
|
+
s("i", Ys, c(m.value === b(_, $, p) ? "check" : "content_copy"), 1)
|
|
3738
|
+
], 10, Ws),
|
|
3671
3739
|
e.showRate ? (a(), l(G, { key: 0 }, [
|
|
3672
3740
|
s("button", {
|
|
3673
3741
|
type: "button",
|
|
3674
|
-
class:
|
|
3742
|
+
class: I(["ds-contact-list__action", { "is-on": _.rating === !0 }]),
|
|
3675
3743
|
"aria-label": e.correctLabel,
|
|
3676
3744
|
"aria-pressed": _.rating === !0,
|
|
3677
3745
|
title: e.correctLabel,
|
|
3678
3746
|
onClick: (R) => i(f(_e), _)
|
|
3679
3747
|
}, [
|
|
3680
3748
|
s("i", {
|
|
3681
|
-
class:
|
|
3749
|
+
class: I(
|
|
3682
3750
|
_.rating === !0 ? "material-symbols-filled" : "material-symbols-rounded"
|
|
3683
3751
|
),
|
|
3684
3752
|
"aria-hidden": "true"
|
|
3685
3753
|
}, "thumb_up", 2)
|
|
3686
|
-
], 10,
|
|
3754
|
+
], 10, js),
|
|
3687
3755
|
s("button", {
|
|
3688
3756
|
type: "button",
|
|
3689
|
-
class:
|
|
3757
|
+
class: I(["ds-contact-list__action", { "is-on": _.rating === !1 }]),
|
|
3690
3758
|
"aria-label": e.incorrectLabel,
|
|
3691
3759
|
"aria-pressed": _.rating === !1,
|
|
3692
3760
|
title: e.incorrectLabel,
|
|
3693
3761
|
onClick: (R) => i(f(Le), _)
|
|
3694
3762
|
}, [
|
|
3695
3763
|
s("i", {
|
|
3696
|
-
class:
|
|
3764
|
+
class: I(
|
|
3697
3765
|
_.rating === !1 ? "material-symbols-filled" : "material-symbols-rounded"
|
|
3698
3766
|
),
|
|
3699
3767
|
"aria-hidden": "true"
|
|
3700
3768
|
}, "thumb_down", 2)
|
|
3701
|
-
], 10,
|
|
3769
|
+
], 10, Xs)
|
|
3702
3770
|
], 64)) : S("", !0)
|
|
3703
3771
|
]))
|
|
3704
3772
|
], 2))), 128))
|
|
3705
|
-
], 8,
|
|
3773
|
+
], 8, qs)
|
|
3706
3774
|
], 64))), 128))
|
|
3707
3775
|
]));
|
|
3708
3776
|
}
|
|
3709
|
-
}),
|
|
3777
|
+
}), Qs = /* @__PURE__ */ P(Zs, [["__scopeId", "data-v-100e91f8"]]), Js = ["aria-haspopup", "aria-expanded"], eo = {
|
|
3710
3778
|
key: 0,
|
|
3711
3779
|
class: "material-symbols-filled ds-contact-cell__icon",
|
|
3712
3780
|
"aria-hidden": "true"
|
|
3713
|
-
},
|
|
3781
|
+
}, to = { class: "ds-contact-cell__value-wrap" }, ao = {
|
|
3714
3782
|
key: 1,
|
|
3715
3783
|
class: "ds-contact-cell__empty"
|
|
3716
|
-
},
|
|
3784
|
+
}, lo = /* @__PURE__ */ x({
|
|
3717
3785
|
__name: "DsContactCell",
|
|
3718
3786
|
props: {
|
|
3719
3787
|
items: { type: Array, required: !0 },
|
|
@@ -3760,29 +3828,29 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3760
3828
|
emits: [fe, $e, _e, Le, ht],
|
|
3761
3829
|
setup(e, { emit: o }) {
|
|
3762
3830
|
const t = e, i = o, n = N(!1), d = N(!1), u = k(() => {
|
|
3763
|
-
var
|
|
3764
|
-
return (
|
|
3765
|
-
}), r = k(() => !t.disabled && t.items.length > 0),
|
|
3766
|
-
var
|
|
3767
|
-
return
|
|
3831
|
+
var z;
|
|
3832
|
+
return (z = t.items[0]) != null ? z : null;
|
|
3833
|
+
}), r = k(() => !t.disabled && t.items.length > 0), b = k(() => r.value && n.value), m = k(() => {
|
|
3834
|
+
var z;
|
|
3835
|
+
return _s((z = t.count) != null ? z : t.items.length);
|
|
3768
3836
|
}), v = k(
|
|
3769
3837
|
() => !!u.value && t.kind === Ke.EMAIL && u.value.valid
|
|
3770
3838
|
), g = k(
|
|
3771
|
-
() => t.items.some((
|
|
3839
|
+
() => t.items.some((z) => z.masked) || t.sections.some((z) => z.items.some((U) => U.masked))
|
|
3772
3840
|
), L = k(() => !!t.revealLabel && g.value), h = k(() => {
|
|
3773
|
-
var
|
|
3774
|
-
const
|
|
3775
|
-
return
|
|
3841
|
+
var U;
|
|
3842
|
+
const z = t.type || ((U = u.value) == null ? void 0 : U.type);
|
|
3843
|
+
return z ? ea(z, t.kind) : "";
|
|
3776
3844
|
});
|
|
3777
|
-
let
|
|
3778
|
-
function $(
|
|
3779
|
-
n.value !==
|
|
3845
|
+
let y;
|
|
3846
|
+
function $(z) {
|
|
3847
|
+
n.value !== z && (n.value = z, i(fe, z));
|
|
3780
3848
|
}
|
|
3781
3849
|
function _() {
|
|
3782
|
-
r.value && (clearTimeout(
|
|
3850
|
+
r.value && (clearTimeout(y), d.value || $(!0));
|
|
3783
3851
|
}
|
|
3784
3852
|
function p() {
|
|
3785
|
-
!r.value || d.value || (clearTimeout(
|
|
3853
|
+
!r.value || d.value || (clearTimeout(y), y = setTimeout(() => $(!1), t.leaveDelay));
|
|
3786
3854
|
}
|
|
3787
3855
|
function R() {
|
|
3788
3856
|
t.teleported && _();
|
|
@@ -3791,21 +3859,21 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3791
3859
|
t.teleported && p();
|
|
3792
3860
|
}
|
|
3793
3861
|
function H() {
|
|
3794
|
-
r.value && (clearTimeout(
|
|
3862
|
+
r.value && (clearTimeout(y), d.value ? (d.value = !1, $(!1)) : (d.value = !0, $(!0)));
|
|
3795
3863
|
}
|
|
3796
|
-
function W(
|
|
3797
|
-
|
|
3864
|
+
function W(z) {
|
|
3865
|
+
z || (d.value = !1, clearTimeout(y), $(!1));
|
|
3798
3866
|
}
|
|
3799
|
-
function X(
|
|
3800
|
-
|
|
3867
|
+
function X(z) {
|
|
3868
|
+
z.key !== "Escape" || !n.value || (d.value = !1, $(!1));
|
|
3801
3869
|
}
|
|
3802
|
-
return ae(n, (
|
|
3803
|
-
typeof document != "undefined" && (
|
|
3870
|
+
return ae(n, (z) => {
|
|
3871
|
+
typeof document != "undefined" && (z ? document.addEventListener("keydown", X) : document.removeEventListener("keydown", X));
|
|
3804
3872
|
}), re(() => {
|
|
3805
|
-
clearTimeout(
|
|
3806
|
-
}), (
|
|
3807
|
-
class:
|
|
3808
|
-
"is-open":
|
|
3873
|
+
clearTimeout(y), typeof document != "undefined" && document.removeEventListener("keydown", X);
|
|
3874
|
+
}), (z, U) => (a(), l("div", {
|
|
3875
|
+
class: I(["ds-contact-cell", {
|
|
3876
|
+
"is-open": b.value,
|
|
3809
3877
|
"is-pinned": d.value,
|
|
3810
3878
|
"is-empty": !u.value,
|
|
3811
3879
|
"is-disabled": e.disabled
|
|
@@ -3814,7 +3882,7 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3814
3882
|
onMouseleave: p
|
|
3815
3883
|
}, [
|
|
3816
3884
|
F(f(He), {
|
|
3817
|
-
open:
|
|
3885
|
+
open: b.value,
|
|
3818
3886
|
placement: e.placement,
|
|
3819
3887
|
offset: e.offset,
|
|
3820
3888
|
width: e.popoverWidth,
|
|
@@ -3828,12 +3896,12 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3828
3896
|
type: "button",
|
|
3829
3897
|
class: "ds-contact-cell__trigger",
|
|
3830
3898
|
"aria-haspopup": r.value ? "dialog" : void 0,
|
|
3831
|
-
"aria-expanded": r.value ?
|
|
3899
|
+
"aria-expanded": r.value ? b.value : void 0,
|
|
3832
3900
|
onClick: H
|
|
3833
3901
|
}, [
|
|
3834
3902
|
u.value ? (a(), l(G, { key: 0 }, [
|
|
3835
|
-
h.value ? (a(), l("i",
|
|
3836
|
-
s("span",
|
|
3903
|
+
h.value ? (a(), l("i", eo, c(h.value), 1)) : S("", !0),
|
|
3904
|
+
s("span", to, [
|
|
3837
3905
|
F(f(ta), {
|
|
3838
3906
|
class: "ds-contact-cell__value",
|
|
3839
3907
|
value: u.value.value,
|
|
@@ -3849,15 +3917,15 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3849
3917
|
}, null, 8, ["label", "tooltip"])) : S("", !0)
|
|
3850
3918
|
]),
|
|
3851
3919
|
F(f(la), {
|
|
3852
|
-
overflow:
|
|
3853
|
-
active:
|
|
3920
|
+
overflow: m.value,
|
|
3921
|
+
active: b.value,
|
|
3854
3922
|
label: e.moreLabel
|
|
3855
3923
|
}, null, 8, ["overflow", "active", "label"])
|
|
3856
|
-
], 64)) : (a(), l("span",
|
|
3857
|
-
], 8,
|
|
3924
|
+
], 64)) : (a(), l("span", ao, c(e.emptyLabel), 1))
|
|
3925
|
+
], 8, Js)
|
|
3858
3926
|
]),
|
|
3859
3927
|
default: B(() => [
|
|
3860
|
-
F(f(
|
|
3928
|
+
F(f(Qs), {
|
|
3861
3929
|
items: e.items,
|
|
3862
3930
|
sections: e.sections,
|
|
3863
3931
|
kind: e.kind,
|
|
@@ -3871,14 +3939,14 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3871
3939
|
"copied-label": e.copiedLabel,
|
|
3872
3940
|
"correct-label": e.correctLabel,
|
|
3873
3941
|
"incorrect-label": e.incorrectLabel,
|
|
3874
|
-
class:
|
|
3942
|
+
class: I({ "ds-contact-cell__list--reveal": L.value }),
|
|
3875
3943
|
onMouseenter: R,
|
|
3876
3944
|
onMouseleave: O,
|
|
3877
|
-
onCopy:
|
|
3878
|
-
onCorrect:
|
|
3879
|
-
onIncorrect:
|
|
3945
|
+
onCopy: U[1] || (U[1] = (E) => i(f($e), E)),
|
|
3946
|
+
onCorrect: U[2] || (U[2] = (E) => i(f(_e), E)),
|
|
3947
|
+
onIncorrect: U[3] || (U[3] = (E) => i(f(Le), E))
|
|
3880
3948
|
}, vt({ _: 2 }, [
|
|
3881
|
-
L.value ||
|
|
3949
|
+
L.value || z.$slots.actions ? {
|
|
3882
3950
|
name: "actions",
|
|
3883
3951
|
fn: B(() => [
|
|
3884
3952
|
L.value ? (a(), K(f(oe), {
|
|
@@ -3888,14 +3956,14 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3888
3956
|
size: f(de).SMALL,
|
|
3889
3957
|
"left-icon": "visibility",
|
|
3890
3958
|
loading: e.revealing,
|
|
3891
|
-
onClick:
|
|
3959
|
+
onClick: U[0] || (U[0] = (E) => i(f(ht)))
|
|
3892
3960
|
}, {
|
|
3893
3961
|
default: B(() => [
|
|
3894
|
-
|
|
3962
|
+
J(c(e.revealLabel), 1)
|
|
3895
3963
|
]),
|
|
3896
3964
|
_: 1
|
|
3897
3965
|
}, 8, ["variant", "size", "loading"])) : S("", !0),
|
|
3898
|
-
|
|
3966
|
+
M(z.$slots, "actions", {}, void 0, !0)
|
|
3899
3967
|
]),
|
|
3900
3968
|
key: "0"
|
|
3901
3969
|
} : void 0
|
|
@@ -3905,23 +3973,23 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3905
3973
|
}, 8, ["open", "placement", "offset", "width", "teleported"])
|
|
3906
3974
|
], 34));
|
|
3907
3975
|
}
|
|
3908
|
-
}),
|
|
3976
|
+
}), hr = /* @__PURE__ */ P(lo, [["__scopeId", "data-v-7923ccaf"]]), no = ["aria-labelledby"], io = { class: "ds-profile-card__header" }, so = {
|
|
3909
3977
|
class: "material-symbols-filled ds-profile-card__icon",
|
|
3910
3978
|
"aria-hidden": "true"
|
|
3911
|
-
},
|
|
3979
|
+
}, oo = ["id"], ro = {
|
|
3912
3980
|
key: 0,
|
|
3913
3981
|
class: "ds-profile-card__count"
|
|
3914
|
-
},
|
|
3982
|
+
}, co = {
|
|
3915
3983
|
class: "ds-profile-card__count",
|
|
3916
3984
|
tabindex: "0"
|
|
3917
|
-
},
|
|
3985
|
+
}, uo = {
|
|
3918
3986
|
key: 2,
|
|
3919
3987
|
class: "material-symbols-filled ds-profile-card__caret",
|
|
3920
3988
|
"aria-hidden": "true"
|
|
3921
|
-
},
|
|
3989
|
+
}, fo = {
|
|
3922
3990
|
key: 0,
|
|
3923
3991
|
class: "ds-profile-card__actions"
|
|
3924
|
-
},
|
|
3992
|
+
}, vo = ["id"], bo = /* @__PURE__ */ x({
|
|
3925
3993
|
__name: "DsProfileCard",
|
|
3926
3994
|
props: {
|
|
3927
3995
|
icon: { type: String, required: !0 },
|
|
@@ -3937,94 +4005,94 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
3937
4005
|
},
|
|
3938
4006
|
emits: [fe],
|
|
3939
4007
|
setup(e, { emit: o }) {
|
|
3940
|
-
const t = e, i = o, n =
|
|
4008
|
+
const t = e, i = o, n = Ae(), d = be(), u = be(), r = N(t.open);
|
|
3941
4009
|
ae(
|
|
3942
4010
|
() => t.open,
|
|
3943
4011
|
(g) => r.value = g
|
|
3944
4012
|
);
|
|
3945
|
-
function
|
|
4013
|
+
function b() {
|
|
3946
4014
|
r.value = !r.value, i(fe, r.value);
|
|
3947
4015
|
}
|
|
3948
|
-
const
|
|
4016
|
+
const m = k(() => !!n.default && (!t.collapsible || r.value)), v = k(
|
|
3949
4017
|
() => t.collapsible ? { type: "button", "aria-expanded": String(r.value), "aria-controls": u } : {}
|
|
3950
4018
|
);
|
|
3951
4019
|
return (g, L) => (a(), l("section", {
|
|
3952
4020
|
class: "ds-profile-card",
|
|
3953
4021
|
"aria-labelledby": f(d)
|
|
3954
4022
|
}, [
|
|
3955
|
-
s("div",
|
|
4023
|
+
s("div", io, [
|
|
3956
4024
|
(a(), K(qt(e.collapsible ? "button" : "div"), Fe({
|
|
3957
4025
|
class: ["ds-profile-card__heading", { "ds-profile-card__toggle": e.collapsible }]
|
|
3958
4026
|
}, v.value, {
|
|
3959
|
-
onClick: L[0] || (L[0] = (h) => e.collapsible ?
|
|
4027
|
+
onClick: L[0] || (L[0] = (h) => e.collapsible ? b() : void 0)
|
|
3960
4028
|
}), {
|
|
3961
4029
|
default: B(() => [
|
|
3962
|
-
s("i",
|
|
4030
|
+
s("i", so, c(e.icon), 1),
|
|
3963
4031
|
s("span", {
|
|
3964
4032
|
id: f(d),
|
|
3965
4033
|
class: "ds-profile-card__title"
|
|
3966
|
-
}, c(e.title), 9,
|
|
3967
|
-
e.count !== null && !e.countHint ? (a(), l("span",
|
|
4034
|
+
}, c(e.title), 9, oo),
|
|
4035
|
+
e.count !== null && !e.countHint ? (a(), l("span", ro, c(e.count), 1)) : S("", !0),
|
|
3968
4036
|
e.count !== null && e.countHint ? (a(), K(ge, {
|
|
3969
4037
|
key: 1,
|
|
3970
4038
|
content: e.countHint,
|
|
3971
4039
|
placement: f(Ee).BOTTOM
|
|
3972
4040
|
}, {
|
|
3973
4041
|
default: B(() => [
|
|
3974
|
-
s("span",
|
|
4042
|
+
s("span", co, c(e.count), 1)
|
|
3975
4043
|
]),
|
|
3976
4044
|
_: 1
|
|
3977
4045
|
}, 8, ["content", "placement"])) : S("", !0),
|
|
3978
|
-
e.collapsible ? (a(), l("i",
|
|
4046
|
+
e.collapsible ? (a(), l("i", uo, c(r.value ? "keyboard_arrow_up" : "keyboard_arrow_down"), 1)) : S("", !0)
|
|
3979
4047
|
]),
|
|
3980
4048
|
_: 1
|
|
3981
4049
|
}, 16, ["class"])),
|
|
3982
|
-
g.$slots.actions ? (a(), l("span",
|
|
3983
|
-
|
|
4050
|
+
g.$slots.actions ? (a(), l("span", fo, [
|
|
4051
|
+
M(g.$slots, "actions", {}, void 0, !0)
|
|
3984
4052
|
])) : S("", !0)
|
|
3985
4053
|
]),
|
|
3986
|
-
|
|
4054
|
+
m.value ? (a(), l("div", {
|
|
3987
4055
|
key: 0,
|
|
3988
4056
|
id: f(u),
|
|
3989
|
-
class:
|
|
4057
|
+
class: I(["ds-profile-card__body", { "is-padded": e.padded }])
|
|
3990
4058
|
}, [
|
|
3991
|
-
|
|
3992
|
-
], 10,
|
|
3993
|
-
], 8,
|
|
4059
|
+
M(g.$slots, "default", {}, void 0, !0)
|
|
4060
|
+
], 10, vo)) : S("", !0)
|
|
4061
|
+
], 8, no));
|
|
3994
4062
|
}
|
|
3995
|
-
}),
|
|
4063
|
+
}), mo = /* @__PURE__ */ P(bo, [["__scopeId", "data-v-869a877f"]]), yo = { class: "ds-profile-group-bar" }, go = { class: "ds-profile-group-bar__label" }, ho = {
|
|
3996
4064
|
key: 0,
|
|
3997
4065
|
class: "ds-profile-group-bar__actions"
|
|
3998
|
-
},
|
|
4066
|
+
}, po = /* @__PURE__ */ x({
|
|
3999
4067
|
__name: "DsProfileGroupBar",
|
|
4000
4068
|
props: {
|
|
4001
4069
|
label: { type: String, required: !0 }
|
|
4002
4070
|
},
|
|
4003
4071
|
setup(e) {
|
|
4004
|
-
return (o, t) => (a(), l("div",
|
|
4005
|
-
s("span",
|
|
4006
|
-
o.$slots.actions ? (a(), l("span",
|
|
4007
|
-
|
|
4072
|
+
return (o, t) => (a(), l("div", yo, [
|
|
4073
|
+
s("span", go, c(e.label), 1),
|
|
4074
|
+
o.$slots.actions ? (a(), l("span", ho, [
|
|
4075
|
+
M(o.$slots, "actions", {}, void 0, !0)
|
|
4008
4076
|
])) : S("", !0)
|
|
4009
4077
|
]));
|
|
4010
4078
|
}
|
|
4011
|
-
}),
|
|
4079
|
+
}), pr = /* @__PURE__ */ P(po, [["__scopeId", "data-v-537a9086"]]), Ue = {
|
|
4012
4080
|
/** Not known yet: the kind's glyph and a grey bar where the value will be. */
|
|
4013
4081
|
SKELETON: "skeleton",
|
|
4014
4082
|
/** Looked for, none found: the kind's glyph and the label («No emails found»). */
|
|
4015
4083
|
EMPTY: "empty",
|
|
4016
4084
|
/** Being revealed: a spinning glyph and the label («Revealing…»). */
|
|
4017
4085
|
LOADING: "loading"
|
|
4018
|
-
},
|
|
4086
|
+
}, ko = {
|
|
4019
4087
|
email: "mail",
|
|
4020
4088
|
phone: "call"
|
|
4021
|
-
},
|
|
4089
|
+
}, So = ["role"], $o = {
|
|
4022
4090
|
key: 0,
|
|
4023
4091
|
class: "ds-contact-placeholder__sr"
|
|
4024
|
-
},
|
|
4092
|
+
}, _o = {
|
|
4025
4093
|
key: 1,
|
|
4026
4094
|
class: "ds-contact-placeholder__text"
|
|
4027
|
-
},
|
|
4095
|
+
}, Lo = /* @__PURE__ */ x({
|
|
4028
4096
|
__name: "DsContactPlaceholder",
|
|
4029
4097
|
props: {
|
|
4030
4098
|
kind: { type: String, required: !0 },
|
|
@@ -4036,14 +4104,14 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4036
4104
|
},
|
|
4037
4105
|
setup(e) {
|
|
4038
4106
|
const o = e, t = k(
|
|
4039
|
-
() => o.state === Ue.LOADING ? "autorenew" :
|
|
4107
|
+
() => o.state === Ue.LOADING ? "autorenew" : ko[o.kind]
|
|
4040
4108
|
);
|
|
4041
4109
|
return (i, n) => (a(), l("div", {
|
|
4042
|
-
class:
|
|
4110
|
+
class: I(["ds-contact-placeholder", `ds-contact-placeholder--${e.state}`]),
|
|
4043
4111
|
role: e.state === f(Ue).LOADING ? "status" : void 0
|
|
4044
4112
|
}, [
|
|
4045
4113
|
s("i", {
|
|
4046
|
-
class:
|
|
4114
|
+
class: I(["material-symbols-filled ds-contact-placeholder__icon", { "is-spinning": e.state === f(Ue).LOADING }]),
|
|
4047
4115
|
"aria-hidden": "true"
|
|
4048
4116
|
}, c(t.value), 3),
|
|
4049
4117
|
e.state === f(Ue).SKELETON ? (a(), l(G, { key: 0 }, [
|
|
@@ -4051,23 +4119,23 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4051
4119
|
class: "ds-contact-placeholder__bar",
|
|
4052
4120
|
"aria-hidden": "true"
|
|
4053
4121
|
}, null, -1)),
|
|
4054
|
-
e.label ? (a(), l("span",
|
|
4055
|
-
], 64)) : (a(), l("span",
|
|
4056
|
-
], 10,
|
|
4122
|
+
e.label ? (a(), l("span", $o, c(e.label), 1)) : S("", !0)
|
|
4123
|
+
], 64)) : (a(), l("span", _o, c(e.label), 1))
|
|
4124
|
+
], 10, So));
|
|
4057
4125
|
}
|
|
4058
|
-
}),
|
|
4126
|
+
}), kr = /* @__PURE__ */ P(Lo, [["__scopeId", "data-v-ed85564e"]]), wo = {
|
|
4059
4127
|
key: 0,
|
|
4060
4128
|
class: "ds-profile-company-card__empty"
|
|
4061
|
-
},
|
|
4129
|
+
}, Eo = { class: "ds-profile-company-card__empty-text" }, To = { class: "ds-profile-company-card__heading" }, Co = { class: "ds-profile-company-card__name" }, Io = {
|
|
4062
4130
|
key: 0,
|
|
4063
4131
|
class: "ds-profile-company-card__sub"
|
|
4064
|
-
},
|
|
4132
|
+
}, Do = ["href", "aria-label"], Ao = ["href", "aria-label"], Ro = {
|
|
4065
4133
|
key: 0,
|
|
4066
4134
|
class: "ds-profile-company-card__about"
|
|
4067
|
-
},
|
|
4135
|
+
}, No = { class: "ds-profile-company-card__about-head" }, Oo = { class: "ds-profile-company-card__about-label" }, Bo = ["aria-expanded", "aria-controls"], Mo = ["id"], xo = { class: "ds-profile-company-card__field-label" }, Po = ["href"], zo = {
|
|
4068
4136
|
key: 1,
|
|
4069
4137
|
class: "ds-profile-company-card__field-value"
|
|
4070
|
-
},
|
|
4138
|
+
}, Uo = /* @__PURE__ */ x({
|
|
4071
4139
|
__name: "DsProfileCompanyCard",
|
|
4072
4140
|
props: {
|
|
4073
4141
|
title: { type: String, required: !0 },
|
|
@@ -4088,7 +4156,7 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4088
4156
|
},
|
|
4089
4157
|
setup(e) {
|
|
4090
4158
|
const o = e, t = be(), i = N(!1), n = k(() => [o.industry, o.employees].filter(Boolean).join(" · ")), d = k(() => o.fields.filter((r) => r.value)), u = k(() => !!o.about || d.value.length > 0);
|
|
4091
|
-
return (r,
|
|
4159
|
+
return (r, b) => (a(), K(mo, {
|
|
4092
4160
|
class: "ds-profile-company-card",
|
|
4093
4161
|
icon: "corporate_fare",
|
|
4094
4162
|
title: e.title,
|
|
@@ -4097,7 +4165,7 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4097
4165
|
default: B(() => [
|
|
4098
4166
|
e.name ? (a(), l(G, { key: 1 }, [
|
|
4099
4167
|
s("div", {
|
|
4100
|
-
class:
|
|
4168
|
+
class: I(["ds-profile-company-card__header", { "has-rest": u.value }])
|
|
4101
4169
|
}, [
|
|
4102
4170
|
F(Jt, {
|
|
4103
4171
|
class: "ds-profile-company-card__logo",
|
|
@@ -4105,9 +4173,9 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4105
4173
|
name: e.name,
|
|
4106
4174
|
size: 36
|
|
4107
4175
|
}, null, 8, ["src", "name"]),
|
|
4108
|
-
s("div",
|
|
4109
|
-
s("div",
|
|
4110
|
-
n.value ? (a(), l("div",
|
|
4176
|
+
s("div", To, [
|
|
4177
|
+
s("div", Co, c(e.name), 1),
|
|
4178
|
+
n.value ? (a(), l("div", Io, c(n.value), 1)) : S("", !0)
|
|
4111
4179
|
]),
|
|
4112
4180
|
e.websiteUrl ? (a(), K(ge, {
|
|
4113
4181
|
key: 0,
|
|
@@ -4121,12 +4189,12 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4121
4189
|
target: "_blank",
|
|
4122
4190
|
rel: "noopener noreferrer",
|
|
4123
4191
|
"aria-label": e.websiteLabel || void 0
|
|
4124
|
-
}, [...
|
|
4192
|
+
}, [...b[2] || (b[2] = [
|
|
4125
4193
|
s("i", {
|
|
4126
4194
|
class: "material-symbols-filled",
|
|
4127
4195
|
"aria-hidden": "true"
|
|
4128
4196
|
}, "language", -1)
|
|
4129
|
-
])], 8,
|
|
4197
|
+
])], 8, Do)
|
|
4130
4198
|
]),
|
|
4131
4199
|
_: 1
|
|
4132
4200
|
}, 8, ["content", "placement"])) : S("", !0),
|
|
@@ -4137,55 +4205,55 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4137
4205
|
target: "_blank",
|
|
4138
4206
|
rel: "noopener noreferrer",
|
|
4139
4207
|
"aria-label": e.linkedinLabel || void 0
|
|
4140
|
-
}, "in", 8,
|
|
4208
|
+
}, "in", 8, Ao)) : S("", !0)
|
|
4141
4209
|
], 2),
|
|
4142
|
-
e.about ? (a(), l("div",
|
|
4143
|
-
s("div",
|
|
4144
|
-
s("span",
|
|
4210
|
+
e.about ? (a(), l("div", Ro, [
|
|
4211
|
+
s("div", No, [
|
|
4212
|
+
s("span", Oo, c(e.aboutLabel), 1),
|
|
4145
4213
|
s("button", {
|
|
4146
4214
|
type: "button",
|
|
4147
4215
|
class: "ds-profile-company-card__about-toggle",
|
|
4148
4216
|
"aria-expanded": i.value,
|
|
4149
4217
|
"aria-controls": f(t),
|
|
4150
|
-
onClick:
|
|
4151
|
-
}, c(i.value ? e.showLessLabel : e.showMoreLabel), 9,
|
|
4218
|
+
onClick: b[0] || (b[0] = (m) => i.value = !i.value)
|
|
4219
|
+
}, c(i.value ? e.showLessLabel : e.showMoreLabel), 9, Bo)
|
|
4152
4220
|
]),
|
|
4153
4221
|
s("div", {
|
|
4154
4222
|
id: f(t),
|
|
4155
|
-
class:
|
|
4156
|
-
}, c(e.about), 11,
|
|
4223
|
+
class: I(["ds-profile-company-card__about-text", { "is-clamped": !i.value }])
|
|
4224
|
+
}, c(e.about), 11, Mo)
|
|
4157
4225
|
])) : S("", !0),
|
|
4158
|
-
(a(!0), l(G, null, le(d.value, (
|
|
4159
|
-
key:
|
|
4160
|
-
class:
|
|
4226
|
+
(a(!0), l(G, null, le(d.value, (m, v) => (a(), l("div", {
|
|
4227
|
+
key: m.id,
|
|
4228
|
+
class: I(["ds-profile-company-card__field", { "is-first": v === 0 && !e.about }])
|
|
4161
4229
|
}, [
|
|
4162
|
-
s("span",
|
|
4163
|
-
|
|
4230
|
+
s("span", xo, c(m.label), 1),
|
|
4231
|
+
m.href ? (a(), l("a", {
|
|
4164
4232
|
key: 0,
|
|
4165
4233
|
class: "ds-profile-company-card__field-value is-link",
|
|
4166
|
-
href:
|
|
4234
|
+
href: m.href,
|
|
4167
4235
|
target: "_blank",
|
|
4168
4236
|
rel: "noopener noreferrer"
|
|
4169
|
-
}, c(
|
|
4237
|
+
}, c(m.value), 9, Po)) : (a(), l("span", zo, c(m.value), 1))
|
|
4170
4238
|
], 2))), 128))
|
|
4171
|
-
], 64)) : (a(), l("div",
|
|
4172
|
-
|
|
4239
|
+
], 64)) : (a(), l("div", wo, [
|
|
4240
|
+
b[1] || (b[1] = s("i", {
|
|
4173
4241
|
class: "material-symbols-filled ds-profile-company-card__empty-icon",
|
|
4174
4242
|
"aria-hidden": "true"
|
|
4175
4243
|
}, "apartment", -1)),
|
|
4176
|
-
s("span",
|
|
4244
|
+
s("span", Eo, c(e.emptyLabel), 1)
|
|
4177
4245
|
]))
|
|
4178
4246
|
]),
|
|
4179
4247
|
_: 1
|
|
4180
4248
|
}, 8, ["title", "padded"]));
|
|
4181
4249
|
}
|
|
4182
|
-
}),
|
|
4250
|
+
}), Sr = /* @__PURE__ */ P(Uo, [["__scopeId", "data-v-2abec4de"]]), Fo = { class: "ds-profile-hero" }, Vo = { class: "ds-profile-hero__body" }, qo = {
|
|
4183
4251
|
key: 1,
|
|
4184
4252
|
class: "ds-profile-hero__links"
|
|
4185
|
-
},
|
|
4253
|
+
}, Go = ["href", "aria-label"], Ho = {
|
|
4186
4254
|
key: 0,
|
|
4187
4255
|
class: "ds-profile-hero__actions"
|
|
4188
|
-
},
|
|
4256
|
+
}, Ko = /* @__PURE__ */ x({
|
|
4189
4257
|
__name: "DsProfileHero",
|
|
4190
4258
|
props: {
|
|
4191
4259
|
image: { type: String, default: "" },
|
|
@@ -4203,14 +4271,14 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4203
4271
|
const u = i.value;
|
|
4204
4272
|
n.value = !!u && u.scrollWidth > u.clientWidth;
|
|
4205
4273
|
}
|
|
4206
|
-
return
|
|
4274
|
+
return Pe(() => {
|
|
4207
4275
|
ne(d);
|
|
4208
4276
|
}), ae(
|
|
4209
4277
|
() => o.headline,
|
|
4210
4278
|
() => {
|
|
4211
4279
|
ne(d);
|
|
4212
4280
|
}
|
|
4213
|
-
), (u, r) => (a(), l("div",
|
|
4281
|
+
), (u, r) => (a(), l("div", Fo, [
|
|
4214
4282
|
F(Oa, {
|
|
4215
4283
|
class: "ds-profile-hero__avatar",
|
|
4216
4284
|
image: e.image,
|
|
@@ -4222,9 +4290,9 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4222
4290
|
"text-size": 20,
|
|
4223
4291
|
"font-weight": 800
|
|
4224
4292
|
}, null, 8, ["image", "first-name", "last-name", "alt"]),
|
|
4225
|
-
s("div",
|
|
4293
|
+
s("div", Vo, [
|
|
4226
4294
|
s("span", {
|
|
4227
|
-
class:
|
|
4295
|
+
class: I(["ds-profile-hero__name", { "ds-profile-hero__name--with-actions": u.$slots.actions }])
|
|
4228
4296
|
}, c(t.value), 3),
|
|
4229
4297
|
e.headline ? (a(), K(ge, {
|
|
4230
4298
|
key: 0,
|
|
@@ -4245,7 +4313,7 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4245
4313
|
]),
|
|
4246
4314
|
_: 1
|
|
4247
4315
|
}, 8, ["content", "disabled", "placement"])) : S("", !0),
|
|
4248
|
-
e.linkedinUrl ? (a(), l("div",
|
|
4316
|
+
e.linkedinUrl ? (a(), l("div", qo, [
|
|
4249
4317
|
F(ge, {
|
|
4250
4318
|
content: e.linkedinLabel,
|
|
4251
4319
|
placement: f(Ee).BOTTOM
|
|
@@ -4257,24 +4325,24 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4257
4325
|
target: "_blank",
|
|
4258
4326
|
rel: "noopener noreferrer",
|
|
4259
4327
|
"aria-label": e.linkedinLabel || void 0
|
|
4260
|
-
}, "in", 8,
|
|
4328
|
+
}, "in", 8, Go)
|
|
4261
4329
|
]),
|
|
4262
4330
|
_: 1
|
|
4263
4331
|
}, 8, ["content", "placement"])
|
|
4264
4332
|
])) : S("", !0)
|
|
4265
4333
|
]),
|
|
4266
|
-
u.$slots.actions ? (a(), l("div",
|
|
4267
|
-
|
|
4334
|
+
u.$slots.actions ? (a(), l("div", Ho, [
|
|
4335
|
+
M(u.$slots, "actions", {}, void 0, !0)
|
|
4268
4336
|
])) : S("", !0)
|
|
4269
4337
|
]));
|
|
4270
4338
|
}
|
|
4271
|
-
}),
|
|
4339
|
+
}), $r = /* @__PURE__ */ P(Ko, [["__scopeId", "data-v-4e674c0f"]]), Wo = {
|
|
4272
4340
|
key: 0,
|
|
4273
4341
|
class: "ds-profile-kv-row"
|
|
4274
|
-
},
|
|
4342
|
+
}, Yo = { class: "ds-profile-kv-row__label" }, jo = ["href"], Xo = {
|
|
4275
4343
|
key: 1,
|
|
4276
4344
|
class: "ds-profile-kv-row__value"
|
|
4277
|
-
},
|
|
4345
|
+
}, Zo = /* @__PURE__ */ x({
|
|
4278
4346
|
__name: "DsProfileKvRow",
|
|
4279
4347
|
props: {
|
|
4280
4348
|
label: { type: String, required: !0 },
|
|
@@ -4282,28 +4350,28 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4282
4350
|
href: { type: String, default: "" }
|
|
4283
4351
|
},
|
|
4284
4352
|
setup(e) {
|
|
4285
|
-
return (o, t) => e.value ? (a(), l("div",
|
|
4286
|
-
s("span",
|
|
4353
|
+
return (o, t) => e.value ? (a(), l("div", Wo, [
|
|
4354
|
+
s("span", Yo, c(e.label), 1),
|
|
4287
4355
|
e.href ? (a(), l("a", {
|
|
4288
4356
|
key: 0,
|
|
4289
4357
|
class: "ds-profile-kv-row__value is-link",
|
|
4290
4358
|
href: e.href,
|
|
4291
4359
|
target: "_blank",
|
|
4292
4360
|
rel: "noopener noreferrer"
|
|
4293
|
-
}, c(e.value), 9,
|
|
4361
|
+
}, c(e.value), 9, jo)) : (a(), l("span", Xo, c(e.value), 1))
|
|
4294
4362
|
])) : S("", !0);
|
|
4295
4363
|
}
|
|
4296
|
-
}),
|
|
4364
|
+
}), _r = /* @__PURE__ */ P(Zo, [["__scopeId", "data-v-1459ea30"]]), Qo = { class: "ds-profile-timeline-row" }, Jo = ["src"], ed = {
|
|
4297
4365
|
key: 1,
|
|
4298
4366
|
class: "ds-profile-timeline-row__logo ds-profile-timeline-row__logo--placeholder",
|
|
4299
4367
|
"aria-hidden": "true"
|
|
4300
|
-
},
|
|
4368
|
+
}, td = { class: "ds-profile-timeline-row__text" }, ad = { class: "ds-profile-timeline-row__title" }, ld = {
|
|
4301
4369
|
key: 0,
|
|
4302
4370
|
class: "ds-profile-timeline-row__subtitle"
|
|
4303
|
-
},
|
|
4371
|
+
}, nd = {
|
|
4304
4372
|
key: 1,
|
|
4305
4373
|
class: "ds-profile-timeline-row__dates"
|
|
4306
|
-
},
|
|
4374
|
+
}, id = /* @__PURE__ */ x({
|
|
4307
4375
|
__name: "DsProfileTimelineRow",
|
|
4308
4376
|
props: {
|
|
4309
4377
|
logo: { type: String, default: "" },
|
|
@@ -4321,25 +4389,25 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4321
4389
|
t.value = !0;
|
|
4322
4390
|
}
|
|
4323
4391
|
const n = k(() => !!o.logo && !t.value);
|
|
4324
|
-
return (d, u) => (a(), l("div",
|
|
4392
|
+
return (d, u) => (a(), l("div", Qo, [
|
|
4325
4393
|
n.value ? (a(), l("img", {
|
|
4326
4394
|
key: 0,
|
|
4327
4395
|
class: "ds-profile-timeline-row__logo",
|
|
4328
4396
|
src: e.logo,
|
|
4329
4397
|
alt: "",
|
|
4330
4398
|
onError: i
|
|
4331
|
-
}, null, 40,
|
|
4332
|
-
s("div",
|
|
4333
|
-
s("span",
|
|
4334
|
-
e.subtitle ? (a(), l("span",
|
|
4335
|
-
e.dates ? (a(), l("span",
|
|
4399
|
+
}, null, 40, Jo)) : (a(), l("span", ed)),
|
|
4400
|
+
s("div", td, [
|
|
4401
|
+
s("span", ad, c(e.title), 1),
|
|
4402
|
+
e.subtitle ? (a(), l("span", ld, c(e.subtitle), 1)) : S("", !0),
|
|
4403
|
+
e.dates ? (a(), l("span", nd, c(e.dates), 1)) : S("", !0)
|
|
4336
4404
|
])
|
|
4337
4405
|
]));
|
|
4338
4406
|
}
|
|
4339
|
-
}),
|
|
4407
|
+
}), Lr = /* @__PURE__ */ P(id, [["__scopeId", "data-v-cce90d67"]]), sd = ["tabindex"], od = {
|
|
4340
4408
|
class: "material-symbols-filled ds-profile-locked-card__icon",
|
|
4341
4409
|
"aria-hidden": "true"
|
|
4342
|
-
},
|
|
4410
|
+
}, dd = { class: "ds-profile-locked-card__title" }, rd = /* @__PURE__ */ x({
|
|
4343
4411
|
__name: "DsProfileLockedCard",
|
|
4344
4412
|
props: {
|
|
4345
4413
|
icon: { type: String, required: !0 },
|
|
@@ -4359,24 +4427,24 @@ const Ss = ["title"], $s = { "aria-hidden": "true" }, _s = {
|
|
|
4359
4427
|
class: "ds-profile-locked-card",
|
|
4360
4428
|
tabindex: e.hint ? 0 : void 0
|
|
4361
4429
|
}, [
|
|
4362
|
-
s("i",
|
|
4363
|
-
s("span",
|
|
4430
|
+
s("i", od, c(e.icon), 1),
|
|
4431
|
+
s("span", dd, c(e.title), 1),
|
|
4364
4432
|
t[0] || (t[0] = s("i", {
|
|
4365
4433
|
class: "material-symbols-filled ds-profile-locked-card__lock",
|
|
4366
4434
|
"aria-hidden": "true"
|
|
4367
4435
|
}, "lock", -1))
|
|
4368
|
-
], 8,
|
|
4436
|
+
], 8, sd)
|
|
4369
4437
|
]),
|
|
4370
4438
|
_: 1
|
|
4371
4439
|
}, 8, ["content", "disabled", "placement"]));
|
|
4372
4440
|
}
|
|
4373
|
-
}),
|
|
4441
|
+
}), wr = /* @__PURE__ */ P(rd, [["__scopeId", "data-v-40c52531"]]), xe = {
|
|
4374
4442
|
MEDIUM: "medium",
|
|
4375
4443
|
LARGE: "large"
|
|
4376
4444
|
}, nt = {
|
|
4377
4445
|
START: "start",
|
|
4378
4446
|
END: "end"
|
|
4379
|
-
}, na = "360px",
|
|
4447
|
+
}, na = "360px", cd = {
|
|
4380
4448
|
WORK: "work",
|
|
4381
4449
|
DIRECT: "direct"
|
|
4382
4450
|
};
|
|
@@ -4387,11 +4455,11 @@ function bt(e, o) {
|
|
|
4387
4455
|
function mt(e) {
|
|
4388
4456
|
return e === nt.END ? qe.BOTTOM_END : qe.BOTTOM_START;
|
|
4389
4457
|
}
|
|
4390
|
-
const
|
|
4458
|
+
const ud = ["aria-label"], fd = ["aria-label"], vd = { class: "ds-organizer-form__title" }, bd = { class: "ds-organizer-form__field" }, md = ["id"], yd = ["aria-labelledby"], gd = ["aria-checked", "aria-label", "tabindex", "onClick", "onKeydown"], hd = {
|
|
4391
4459
|
key: 0,
|
|
4392
4460
|
class: "material-symbols-filled ds-organizer-form__check",
|
|
4393
4461
|
"aria-hidden": "true"
|
|
4394
|
-
},
|
|
4462
|
+
}, pd = { class: "ds-organizer-form__footer" }, kd = /* @__PURE__ */ x({
|
|
4395
4463
|
__name: "DsOrganizerForm",
|
|
4396
4464
|
props: {
|
|
4397
4465
|
title: { type: String, required: !0 },
|
|
@@ -4412,23 +4480,23 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4412
4480
|
},
|
|
4413
4481
|
emits: [Rt, Nt, Ot, dt],
|
|
4414
4482
|
setup(e, { expose: o, emit: t }) {
|
|
4415
|
-
const i = e, n = t, d = be(), u = be(), r = N(),
|
|
4483
|
+
const i = e, n = t, d = be(), u = be(), r = N(), b = [], m = N(!1), v = k(() => i.name.trim()), g = k(
|
|
4416
4484
|
() => v.value.length > 0 && v.value.length <= i.maxNameLength
|
|
4417
4485
|
), L = k(() => {
|
|
4418
|
-
var
|
|
4419
|
-
return i.originalName === void 0 ? !0 : v.value !== i.originalName.trim() || i.color.toLowerCase() !== ((
|
|
4420
|
-
}), h = k(() => g.value && L.value),
|
|
4421
|
-
function p(
|
|
4422
|
-
|
|
4486
|
+
var U;
|
|
4487
|
+
return i.originalName === void 0 ? !0 : v.value !== i.originalName.trim() || i.color.toLowerCase() !== ((U = i.originalColor) != null ? U : "").toLowerCase();
|
|
4488
|
+
}), h = k(() => g.value && L.value), y = k(() => m.value ? v.value ? v.value.length > i.maxNameLength ? i.errorTooLongName : "" : i.errorMissingName : ""), $ = k(() => y.value || i.errorMessage), _ = k(() => Math.max(i.colors.indexOf(i.color), 0));
|
|
4489
|
+
function p(U) {
|
|
4490
|
+
m.value = !0, n(Ot, U);
|
|
4423
4491
|
}
|
|
4424
4492
|
function R() {
|
|
4425
|
-
|
|
4493
|
+
m.value = !0, !(i.loading || !h.value) && n(Nt, { name: v.value, color: i.color });
|
|
4426
4494
|
}
|
|
4427
|
-
function O(
|
|
4428
|
-
|
|
4495
|
+
function O(U) {
|
|
4496
|
+
U.isComposing || (U.preventDefault(), R());
|
|
4429
4497
|
}
|
|
4430
|
-
function H(
|
|
4431
|
-
|
|
4498
|
+
function H(U, E) {
|
|
4499
|
+
b[E] = U;
|
|
4432
4500
|
}
|
|
4433
4501
|
const W = {
|
|
4434
4502
|
ArrowRight: 1,
|
|
@@ -4436,19 +4504,19 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4436
4504
|
ArrowLeft: -1,
|
|
4437
4505
|
ArrowUp: -1
|
|
4438
4506
|
};
|
|
4439
|
-
function X(
|
|
4507
|
+
function X(U, E) {
|
|
4440
4508
|
var T;
|
|
4441
|
-
const A = W[
|
|
4509
|
+
const A = W[U.key];
|
|
4442
4510
|
if (!A) return;
|
|
4443
|
-
|
|
4511
|
+
U.preventDefault();
|
|
4444
4512
|
const w = i.colors.length, C = (E + A + w) % w;
|
|
4445
|
-
(T =
|
|
4513
|
+
(T = b[C]) == null || T.focus(), n(dt, i.colors[C]);
|
|
4446
4514
|
}
|
|
4447
|
-
const
|
|
4448
|
-
var
|
|
4449
|
-
return (
|
|
4515
|
+
const z = () => {
|
|
4516
|
+
var U;
|
|
4517
|
+
return (U = r.value) == null ? void 0 : U.focus();
|
|
4450
4518
|
};
|
|
4451
|
-
return
|
|
4519
|
+
return Pe(z), o({ focus: z }), (U, E) => (a(), l("div", {
|
|
4452
4520
|
class: "ds-organizer-form",
|
|
4453
4521
|
role: "group",
|
|
4454
4522
|
"aria-label": e.title
|
|
@@ -4463,10 +4531,10 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4463
4531
|
class: "material-symbols-filled ds-organizer-form__back-icon",
|
|
4464
4532
|
"aria-hidden": "true"
|
|
4465
4533
|
}, "keyboard_arrow_left", -1)),
|
|
4466
|
-
s("span",
|
|
4467
|
-
], 8,
|
|
4534
|
+
s("span", vd, c(e.title), 1)
|
|
4535
|
+
], 8, fd),
|
|
4468
4536
|
E[2] || (E[2] = s("div", { class: "ds-organizer-form__divider" }, null, -1)),
|
|
4469
|
-
s("div",
|
|
4537
|
+
s("div", bd, [
|
|
4470
4538
|
F(f(lt), {
|
|
4471
4539
|
id: f(d),
|
|
4472
4540
|
ref_key: "inputRef",
|
|
@@ -4484,7 +4552,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4484
4552
|
s("p", {
|
|
4485
4553
|
id: f(u),
|
|
4486
4554
|
class: "ds-organizer-form__label"
|
|
4487
|
-
}, c(e.setColorLabel), 9,
|
|
4555
|
+
}, c(e.setColorLabel), 9, md),
|
|
4488
4556
|
s("div", {
|
|
4489
4557
|
class: "ds-organizer-form__swatches",
|
|
4490
4558
|
role: "radiogroup",
|
|
@@ -4496,7 +4564,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4496
4564
|
ref: (C) => H(C, w),
|
|
4497
4565
|
type: "button",
|
|
4498
4566
|
role: "radio",
|
|
4499
|
-
class:
|
|
4567
|
+
class: I(["ds-organizer-form__swatch", { "is-selected": A === e.color }]),
|
|
4500
4568
|
style: Y({ "--swatch-color": A }),
|
|
4501
4569
|
"aria-checked": A === e.color,
|
|
4502
4570
|
"aria-label": A,
|
|
@@ -4504,11 +4572,11 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4504
4572
|
onClick: (C) => n(f(dt), A),
|
|
4505
4573
|
onKeydown: (C) => X(C, w)
|
|
4506
4574
|
}, [
|
|
4507
|
-
A === e.color ? (a(), l("i",
|
|
4508
|
-
], 46,
|
|
4509
|
-
], 8,
|
|
4575
|
+
A === e.color ? (a(), l("i", hd, "check")) : S("", !0)
|
|
4576
|
+
], 46, gd))), 128))
|
|
4577
|
+
], 8, yd),
|
|
4510
4578
|
E[3] || (E[3] = s("div", { class: "ds-organizer-form__divider" }, null, -1)),
|
|
4511
|
-
s("div",
|
|
4579
|
+
s("div", pd, [
|
|
4512
4580
|
F(f(oe), {
|
|
4513
4581
|
class: "ds-organizer-form__submit",
|
|
4514
4582
|
variant: f(ve).PRIMARY,
|
|
@@ -4518,14 +4586,14 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4518
4586
|
onClick: R
|
|
4519
4587
|
}, {
|
|
4520
4588
|
default: B(() => [
|
|
4521
|
-
|
|
4589
|
+
J(c(e.submitLabel), 1)
|
|
4522
4590
|
]),
|
|
4523
4591
|
_: 1
|
|
4524
4592
|
}, 8, ["variant", "size", "loading", "disabled"])
|
|
4525
4593
|
])
|
|
4526
|
-
], 8,
|
|
4594
|
+
], 8, ud));
|
|
4527
4595
|
}
|
|
4528
|
-
}), ia = /* @__PURE__ */
|
|
4596
|
+
}), ia = /* @__PURE__ */ P(kd, [["__scopeId", "data-v-b459ad66"]]), Sd = ["aria-label", "aria-expanded"], $d = ["aria-label"], _d = { class: "ds-picker-row-actions__item-label" }, Ld = { class: "ds-picker-row-actions__item-label" }, Oe = N(null), wd = /* @__PURE__ */ x({
|
|
4529
4597
|
__name: "DsPickerRowActions",
|
|
4530
4598
|
props: {
|
|
4531
4599
|
option: { type: Object, required: !0 },
|
|
@@ -4534,67 +4602,67 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4534
4602
|
deleteLabel: { type: String, default: "Delete" },
|
|
4535
4603
|
showEdit: { type: Boolean, default: !0 }
|
|
4536
4604
|
},
|
|
4537
|
-
emits: [we,
|
|
4605
|
+
emits: [we, Ie],
|
|
4538
4606
|
setup(e, { emit: o }) {
|
|
4539
4607
|
const t = e, i = o, n = /* @__PURE__ */ Symbol("ds-picker-row-actions"), d = N(!1), u = N(null), r = N(null);
|
|
4540
|
-
function
|
|
4541
|
-
d.value !==
|
|
4608
|
+
function b(y) {
|
|
4609
|
+
d.value !== y && (d.value = y, y ? Oe.value = n : Oe.value === n && (Oe.value = null));
|
|
4542
4610
|
}
|
|
4543
|
-
ae(
|
|
4544
|
-
|
|
4611
|
+
ae(Oe, (y) => {
|
|
4612
|
+
y !== n && b(!1);
|
|
4545
4613
|
});
|
|
4546
|
-
const
|
|
4547
|
-
var
|
|
4614
|
+
const m = () => {
|
|
4615
|
+
var y, $;
|
|
4548
4616
|
return [
|
|
4549
|
-
...($ = (
|
|
4617
|
+
...($ = (y = r.value) == null ? void 0 : y.querySelectorAll('[role="menuitem"]')) != null ? $ : []
|
|
4550
4618
|
];
|
|
4551
4619
|
};
|
|
4552
4620
|
ae(
|
|
4553
4621
|
d,
|
|
4554
|
-
(
|
|
4555
|
-
|
|
4622
|
+
(y) => {
|
|
4623
|
+
y && ne(() => {
|
|
4556
4624
|
var $;
|
|
4557
|
-
return ($ =
|
|
4625
|
+
return ($ = m()[0]) == null ? void 0 : $.focus();
|
|
4558
4626
|
});
|
|
4559
4627
|
},
|
|
4560
4628
|
{ flush: "post" }
|
|
4561
4629
|
);
|
|
4562
4630
|
function v() {
|
|
4563
4631
|
ne(() => {
|
|
4564
|
-
var
|
|
4565
|
-
return (
|
|
4632
|
+
var y;
|
|
4633
|
+
return (y = u.value) == null ? void 0 : y.focus();
|
|
4566
4634
|
});
|
|
4567
4635
|
}
|
|
4568
4636
|
function g() {
|
|
4569
|
-
|
|
4637
|
+
b(!1), v();
|
|
4570
4638
|
}
|
|
4571
|
-
function L(
|
|
4572
|
-
|
|
4639
|
+
function L(y) {
|
|
4640
|
+
b(!1), y === Ie && v(), i(y, t.option);
|
|
4573
4641
|
}
|
|
4574
|
-
function h(
|
|
4642
|
+
function h(y) {
|
|
4575
4643
|
var R;
|
|
4576
|
-
if (
|
|
4577
|
-
|
|
4644
|
+
if (y.key === "Escape" || y.key === "Tab") {
|
|
4645
|
+
y.key === "Escape" && y.stopPropagation(), g();
|
|
4578
4646
|
return;
|
|
4579
4647
|
}
|
|
4580
|
-
const $ =
|
|
4648
|
+
const $ = m(), _ = $.indexOf(document.activeElement);
|
|
4581
4649
|
let p;
|
|
4582
|
-
if (
|
|
4583
|
-
else if (
|
|
4584
|
-
else if (
|
|
4585
|
-
else if (
|
|
4650
|
+
if (y.key === "ArrowDown") p = (_ + 1) % $.length;
|
|
4651
|
+
else if (y.key === "ArrowUp") p = (_ - 1 + $.length) % $.length;
|
|
4652
|
+
else if (y.key === "Home") p = 0;
|
|
4653
|
+
else if (y.key === "End") p = $.length - 1;
|
|
4586
4654
|
else return;
|
|
4587
|
-
|
|
4655
|
+
y.preventDefault(), (R = $[p]) == null || R.focus();
|
|
4588
4656
|
}
|
|
4589
4657
|
return re(() => {
|
|
4590
|
-
|
|
4591
|
-
}), (
|
|
4658
|
+
Oe.value === n && (Oe.value = null);
|
|
4659
|
+
}), (y, $) => (a(), K(f(He), {
|
|
4592
4660
|
class: "ds-picker-row-actions",
|
|
4593
4661
|
open: d.value,
|
|
4594
4662
|
placement: f(qe).BOTTOM_END,
|
|
4595
4663
|
width: "150px",
|
|
4596
4664
|
teleported: "",
|
|
4597
|
-
"onUpdate:open":
|
|
4665
|
+
"onUpdate:open": b
|
|
4598
4666
|
}, {
|
|
4599
4667
|
trigger: B(() => [
|
|
4600
4668
|
s("button", {
|
|
@@ -4610,7 +4678,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4610
4678
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
4611
4679
|
"aria-hidden": "true"
|
|
4612
4680
|
}, "more_vert", -1)
|
|
4613
|
-
])], 8,
|
|
4681
|
+
])], 8, Sd)
|
|
4614
4682
|
]),
|
|
4615
4683
|
default: B(() => [
|
|
4616
4684
|
s("div", {
|
|
@@ -4633,33 +4701,33 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4633
4701
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
4634
4702
|
"aria-hidden": "true"
|
|
4635
4703
|
}, "edit", -1)),
|
|
4636
|
-
s("span",
|
|
4704
|
+
s("span", _d, c(e.editLabel), 1)
|
|
4637
4705
|
])) : S("", !0),
|
|
4638
4706
|
s("button", {
|
|
4639
4707
|
type: "button",
|
|
4640
4708
|
role: "menuitem",
|
|
4641
4709
|
tabindex: "-1",
|
|
4642
4710
|
class: "ds-picker-row-actions__item ds-picker-row-actions__item--danger",
|
|
4643
|
-
onClick: $[1] || ($[1] = (_) => L(f(
|
|
4711
|
+
onClick: $[1] || ($[1] = (_) => L(f(Ie)))
|
|
4644
4712
|
}, [
|
|
4645
4713
|
$[4] || ($[4] = s("i", {
|
|
4646
4714
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
4647
4715
|
"aria-hidden": "true"
|
|
4648
4716
|
}, "delete", -1)),
|
|
4649
|
-
s("span",
|
|
4717
|
+
s("span", Ld, c(e.deleteLabel), 1)
|
|
4650
4718
|
])
|
|
4651
|
-
], 40,
|
|
4719
|
+
], 40, $d)
|
|
4652
4720
|
]),
|
|
4653
4721
|
_: 1
|
|
4654
4722
|
}, 8, ["open", "placement"]));
|
|
4655
4723
|
}
|
|
4656
|
-
}), sa = /* @__PURE__ */
|
|
4724
|
+
}), sa = /* @__PURE__ */ P(wd, [["__scopeId", "data-v-6b42910f"]]), Ed = { class: "ds-saved-button__label" }, Td = {
|
|
4657
4725
|
key: 1,
|
|
4658
4726
|
class: "ds-saved-button__menu"
|
|
4659
|
-
},
|
|
4727
|
+
}, Cd = ["aria-label"], Id = { class: "ds-saved-button__option-name" }, Dd = {
|
|
4660
4728
|
key: 0,
|
|
4661
4729
|
class: "ds-saved-button__empty"
|
|
4662
|
-
},
|
|
4730
|
+
}, Ad = { class: "ds-saved-button__footer" }, Rd = /* @__PURE__ */ x({
|
|
4663
4731
|
__name: "DsSavedButton",
|
|
4664
4732
|
props: {
|
|
4665
4733
|
label: { type: String, required: !0 },
|
|
@@ -4670,7 +4738,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4670
4738
|
emptyLabel: { type: String, default: "" },
|
|
4671
4739
|
createLabel: { type: String, default: "" },
|
|
4672
4740
|
icon: { type: String, default: "folder" },
|
|
4673
|
-
size: { type: String, default:
|
|
4741
|
+
size: { type: String, default: xe.MEDIUM },
|
|
4674
4742
|
// Shape follows the design per context (Diego, 22/09): squared in table rows and the profile
|
|
4675
4743
|
// (the export's `SavedButton`), `pill` in the bulk bar beside DsItemSelectorButton.
|
|
4676
4744
|
pill: { type: Boolean, default: !1 },
|
|
@@ -4704,19 +4772,19 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4704
4772
|
pe,
|
|
4705
4773
|
fe,
|
|
4706
4774
|
we,
|
|
4707
|
-
|
|
4775
|
+
Ie,
|
|
4708
4776
|
et,
|
|
4709
4777
|
tt
|
|
4710
4778
|
],
|
|
4711
4779
|
setup(e, { expose: o, emit: t }) {
|
|
4712
|
-
const i = e, n = t, d = N(!1), u = N(""), r = N(null),
|
|
4713
|
-
() => i.size ===
|
|
4780
|
+
const i = e, n = t, d = N(!1), u = N(""), r = N(null), b = N("list"), m = N("create"), v = N(null), g = N(""), L = N(""), h = k(() => b.value === "form"), y = k(() => i.colors.length > 0), $ = be(), _ = k(() => mt(i.align)), p = k(() => bt(i.folders, u.value)), R = k(
|
|
4781
|
+
() => i.size === xe.LARGE ? de.LARGE : de.MEDIUM
|
|
4714
4782
|
);
|
|
4715
4783
|
function O(T) {
|
|
4716
4784
|
return i.folder !== null && i.folder.id === T.id;
|
|
4717
4785
|
}
|
|
4718
4786
|
function H() {
|
|
4719
|
-
|
|
4787
|
+
b.value = "list", m.value = "create", v.value = null, g.value = "", L.value = "";
|
|
4720
4788
|
}
|
|
4721
4789
|
function W(T) {
|
|
4722
4790
|
d.value !== T && (T && (u.value = ""), H(), d.value = T, n(fe, T));
|
|
@@ -4724,26 +4792,26 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4724
4792
|
function X() {
|
|
4725
4793
|
i.disabled || W(!d.value);
|
|
4726
4794
|
}
|
|
4727
|
-
function
|
|
4795
|
+
function z(T) {
|
|
4728
4796
|
n(It, T), W(!1);
|
|
4729
4797
|
}
|
|
4730
|
-
function
|
|
4798
|
+
function U() {
|
|
4731
4799
|
const T = u.value.trim();
|
|
4732
|
-
if (!
|
|
4800
|
+
if (!y.value) {
|
|
4733
4801
|
n(Je, T), W(!1);
|
|
4734
4802
|
return;
|
|
4735
4803
|
}
|
|
4736
|
-
|
|
4804
|
+
m.value = "create", v.value = null, g.value = T, L.value = i.colors[0], b.value = "form";
|
|
4737
4805
|
}
|
|
4738
4806
|
function E(T) {
|
|
4739
4807
|
var q;
|
|
4740
|
-
n(we, T),
|
|
4808
|
+
n(we, T), y.value && (m.value = "edit", v.value = T, g.value = T.name, L.value = (q = T.color) != null ? q : i.colors[0], b.value = "form");
|
|
4741
4809
|
}
|
|
4742
4810
|
function A(T) {
|
|
4743
|
-
n(
|
|
4811
|
+
n(Ie, T);
|
|
4744
4812
|
}
|
|
4745
4813
|
function w({ name: T, color: q }) {
|
|
4746
|
-
|
|
4814
|
+
m.value === "edit" && v.value ? n(tt, { id: v.value.id, name: T, color: q }) : n(et, { name: T, color: q });
|
|
4747
4815
|
}
|
|
4748
4816
|
function C() {
|
|
4749
4817
|
H(), ne(() => {
|
|
@@ -4752,7 +4820,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4752
4820
|
});
|
|
4753
4821
|
}
|
|
4754
4822
|
return o({ closeForm: C }), ae(u, (T) => n(pe, T)), (T, q) => (a(), l("div", {
|
|
4755
|
-
class:
|
|
4823
|
+
class: I(["ds-saved-button", [`ds-saved-button--${e.size}`, { "is-open": d.value, "is-disabled": e.disabled }]])
|
|
4756
4824
|
}, [
|
|
4757
4825
|
F(f(He), {
|
|
4758
4826
|
open: d.value,
|
|
@@ -4788,7 +4856,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4788
4856
|
}, "keyboard_arrow_down", -1))
|
|
4789
4857
|
]),
|
|
4790
4858
|
default: B(() => [
|
|
4791
|
-
s("span",
|
|
4859
|
+
s("span", Ed, c(e.label), 1)
|
|
4792
4860
|
]),
|
|
4793
4861
|
_: 2
|
|
4794
4862
|
}, [
|
|
@@ -4814,8 +4882,8 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4814
4882
|
h.value ? (a(), K(f(ia), {
|
|
4815
4883
|
key: 0,
|
|
4816
4884
|
class: "ds-saved-button__form",
|
|
4817
|
-
title:
|
|
4818
|
-
"submit-label":
|
|
4885
|
+
title: m.value === "edit" ? e.editFormTitle : e.createFormTitle,
|
|
4886
|
+
"submit-label": m.value === "edit" ? e.editSubmitLabel : e.createSubmitLabel,
|
|
4819
4887
|
name: g.value,
|
|
4820
4888
|
color: L.value,
|
|
4821
4889
|
"original-name": v.value ? v.value.name : void 0,
|
|
@@ -4832,7 +4900,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4832
4900
|
"onUpdate:color": q[1] || (q[1] = (te) => L.value = te),
|
|
4833
4901
|
onBack: C,
|
|
4834
4902
|
onSubmit: w
|
|
4835
|
-
}, null, 8, ["title", "submit-label", "name", "color", "original-name", "original-color", "colors", "loading", "error-message", "name-placeholder", "set-color-label", "back-label", "error-missing-name", "error-too-long-name"])) : (a(), l("div",
|
|
4903
|
+
}, null, 8, ["title", "submit-label", "name", "color", "original-name", "original-color", "colors", "loading", "error-message", "name-placeholder", "set-color-label", "back-label", "error-missing-name", "error-too-long-name"])) : (a(), l("div", Td, [
|
|
4836
4904
|
F(f(lt), {
|
|
4837
4905
|
ref_key: "searchRef",
|
|
4838
4906
|
ref: r,
|
|
@@ -4851,13 +4919,13 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4851
4919
|
}, [
|
|
4852
4920
|
(a(!0), l(G, null, le(p.value, (te) => (a(), l("div", {
|
|
4853
4921
|
key: te.id,
|
|
4854
|
-
class:
|
|
4922
|
+
class: I(["ds-saved-button__option", { "is-current": O(te) }])
|
|
4855
4923
|
}, [
|
|
4856
4924
|
F(f(Qt), {
|
|
4857
4925
|
name: f($),
|
|
4858
4926
|
value: String(te.id),
|
|
4859
4927
|
"model-value": O(te),
|
|
4860
|
-
"onUpdate:modelValue": (We) =>
|
|
4928
|
+
"onUpdate:modelValue": (We) => z(te)
|
|
4861
4929
|
}, {
|
|
4862
4930
|
default: B(() => [
|
|
4863
4931
|
s("i", {
|
|
@@ -4865,7 +4933,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4865
4933
|
style: Y({ color: te.color }),
|
|
4866
4934
|
"aria-hidden": "true"
|
|
4867
4935
|
}, c(e.icon), 5),
|
|
4868
|
-
s("span",
|
|
4936
|
+
s("span", Id, c(te.name), 1)
|
|
4869
4937
|
]),
|
|
4870
4938
|
_: 2
|
|
4871
4939
|
}, 1032, ["name", "value", "model-value", "onUpdate:modelValue"]),
|
|
@@ -4879,20 +4947,20 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4879
4947
|
onDelete: A
|
|
4880
4948
|
}, null, 8, ["option", "actions-label", "edit-label", "delete-label"])) : S("", !0)
|
|
4881
4949
|
], 2))), 128)),
|
|
4882
|
-
!p.value.length && e.emptyLabel ? (a(), l("p",
|
|
4883
|
-
], 8,
|
|
4950
|
+
!p.value.length && e.emptyLabel ? (a(), l("p", Dd, c(e.emptyLabel), 1)) : S("", !0)
|
|
4951
|
+
], 8, Cd),
|
|
4884
4952
|
e.createLabel || T.$slots.footer ? (a(), l(G, { key: 0 }, [
|
|
4885
4953
|
q[4] || (q[4] = s("div", { class: "ds-saved-button__divider" }, null, -1)),
|
|
4886
|
-
s("div",
|
|
4887
|
-
|
|
4954
|
+
s("div", Ad, [
|
|
4955
|
+
M(T.$slots, "footer", { query: u.value }, () => [
|
|
4888
4956
|
F(f(oe), {
|
|
4889
4957
|
variant: f(ve).TERTIARY,
|
|
4890
4958
|
size: f(de).MEDIUM,
|
|
4891
4959
|
"left-icon": "add",
|
|
4892
|
-
onClick:
|
|
4960
|
+
onClick: U
|
|
4893
4961
|
}, {
|
|
4894
4962
|
default: B(() => [
|
|
4895
|
-
|
|
4963
|
+
J(c(e.createLabel), 1)
|
|
4896
4964
|
]),
|
|
4897
4965
|
_: 1
|
|
4898
4966
|
}, 8, ["variant", "size"])
|
|
@@ -4906,13 +4974,13 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4906
4974
|
}, 8, ["open", "placement", "grow-to", "flush"])
|
|
4907
4975
|
], 2));
|
|
4908
4976
|
}
|
|
4909
|
-
}),
|
|
4977
|
+
}), Er = /* @__PURE__ */ P(Rd, [["__scopeId", "data-v-068a4f8c"]]), Nd = {
|
|
4910
4978
|
key: 1,
|
|
4911
4979
|
class: "ds-tag-picker__menu"
|
|
4912
|
-
},
|
|
4980
|
+
}, Od = ["aria-label"], Bd = { class: "ds-tag-picker__name" }, Md = { class: "ds-tag-picker__create-query" }, xd = {
|
|
4913
4981
|
key: 1,
|
|
4914
4982
|
class: "ds-tag-picker__empty"
|
|
4915
|
-
},
|
|
4983
|
+
}, Pd = /* @__PURE__ */ x({
|
|
4916
4984
|
__name: "DsTagPicker",
|
|
4917
4985
|
props: {
|
|
4918
4986
|
label: { type: String, required: !0 },
|
|
@@ -4924,7 +4992,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4924
4992
|
emptyLabel: { type: String, default: "" },
|
|
4925
4993
|
createLabel: { type: String, default: "" },
|
|
4926
4994
|
moreLabel: { type: String, default: "" },
|
|
4927
|
-
size: { type: String, default:
|
|
4995
|
+
size: { type: String, default: xe.MEDIUM },
|
|
4928
4996
|
// Shape follows the design per context (Diego, 22/09): squared in rows and the profile (the
|
|
4929
4997
|
// export's `tagsLine`), `pill` in the bulk bar beside DsItemSelectorButton ("Tag").
|
|
4930
4998
|
pill: { type: Boolean, default: !1 },
|
|
@@ -4958,25 +5026,25 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4958
5026
|
pe,
|
|
4959
5027
|
fe,
|
|
4960
5028
|
we,
|
|
4961
|
-
|
|
5029
|
+
Ie,
|
|
4962
5030
|
et,
|
|
4963
5031
|
tt
|
|
4964
5032
|
],
|
|
4965
5033
|
setup(e, { expose: o, emit: t }) {
|
|
4966
|
-
const i = e, n = t, d = N(!1), u = N(""), r = N(/* @__PURE__ */ new Set()),
|
|
5034
|
+
const i = e, n = t, d = N(!1), u = N(""), r = N(/* @__PURE__ */ new Set()), b = N(null), m = N("list"), v = N("create"), g = N(null), L = N(""), h = N(""), y = k(() => m.value === "form"), $ = k(() => i.colors.length > 0), _ = k(() => $.value && !!i.createLabel), p = k(() => i.tags.length > 0), R = k(
|
|
4967
5035
|
() => p.value ? `${i.taggedAsLabel} ${i.tags[0].name}` : i.label
|
|
4968
5036
|
), O = k(() => mt(i.align)), H = k(() => bt(i.options, u.value)), W = k(() => u.value.trim()), X = k(() => {
|
|
4969
5037
|
if (!i.createLabel || !W.value) return !1;
|
|
4970
5038
|
const j = W.value.toLowerCase();
|
|
4971
|
-
return !i.options.some((
|
|
4972
|
-
}),
|
|
4973
|
-
() => i.size ===
|
|
5039
|
+
return !i.options.some((ee) => ee.name.toLowerCase() === j);
|
|
5040
|
+
}), z = k(
|
|
5041
|
+
() => i.size === xe.LARGE ? de.LARGE : de.MEDIUM
|
|
4974
5042
|
);
|
|
4975
|
-
function
|
|
4976
|
-
|
|
5043
|
+
function U() {
|
|
5044
|
+
m.value = "list", v.value = "create", g.value = null, L.value = "", h.value = "";
|
|
4977
5045
|
}
|
|
4978
5046
|
function E(j) {
|
|
4979
|
-
d.value !== j && (j && (u.value = "", r.value = new Set(i.tags.map((
|
|
5047
|
+
d.value !== j && (j && (u.value = "", r.value = new Set(i.tags.map((ee) => ee.id))), U(), d.value = j, n(fe, j));
|
|
4980
5048
|
}
|
|
4981
5049
|
function A() {
|
|
4982
5050
|
i.disabled || E(!d.value);
|
|
@@ -4986,46 +5054,46 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
4986
5054
|
const j = w.value;
|
|
4987
5055
|
C.value = !!j && j.scrollWidth > j.clientWidth;
|
|
4988
5056
|
}
|
|
4989
|
-
|
|
5057
|
+
Pe(() => {
|
|
4990
5058
|
ne(T);
|
|
4991
5059
|
}), ae(R, () => {
|
|
4992
5060
|
ne(T);
|
|
4993
5061
|
});
|
|
4994
|
-
function q(j,
|
|
5062
|
+
function q(j, ee) {
|
|
4995
5063
|
const ie = new Set(r.value);
|
|
4996
|
-
|
|
5064
|
+
ee ? ie.add(j.id) : ie.delete(j.id), r.value = ie;
|
|
4997
5065
|
}
|
|
4998
5066
|
function se() {
|
|
4999
|
-
const j = new Set(i.options.map((ie) => ie.id)),
|
|
5067
|
+
const j = new Set(i.options.map((ie) => ie.id)), ee = [
|
|
5000
5068
|
...i.options.filter((ie) => r.value.has(ie.id)),
|
|
5001
5069
|
...i.tags.filter((ie) => r.value.has(ie.id) && !j.has(ie.id))
|
|
5002
5070
|
];
|
|
5003
|
-
n(Dt,
|
|
5071
|
+
n(Dt, ee), E(!1);
|
|
5004
5072
|
}
|
|
5005
5073
|
function te() {
|
|
5006
|
-
v.value = "create", g.value = null, L.value = W.value, h.value = i.colors[0],
|
|
5074
|
+
v.value = "create", g.value = null, L.value = W.value, h.value = i.colors[0], m.value = "form";
|
|
5007
5075
|
}
|
|
5008
5076
|
function We() {
|
|
5009
5077
|
$.value ? te() : n(Je, W.value);
|
|
5010
5078
|
}
|
|
5011
5079
|
function ze(j) {
|
|
5012
|
-
var
|
|
5013
|
-
n(we, j), $.value && (v.value = "edit", g.value = j, L.value = j.name, h.value = (
|
|
5080
|
+
var ee;
|
|
5081
|
+
n(we, j), $.value && (v.value = "edit", g.value = j, L.value = j.name, h.value = (ee = j.color) != null ? ee : i.colors[0], m.value = "form");
|
|
5014
5082
|
}
|
|
5015
5083
|
function it(j) {
|
|
5016
|
-
n(
|
|
5084
|
+
n(Ie, j);
|
|
5017
5085
|
}
|
|
5018
|
-
function
|
|
5019
|
-
v.value === "edit" && g.value ? n(tt, { id: g.value.id, name: j, color:
|
|
5086
|
+
function Re({ name: j, color: ee }) {
|
|
5087
|
+
v.value === "edit" && g.value ? n(tt, { id: g.value.id, name: j, color: ee }) : n(et, { name: j, color: ee });
|
|
5020
5088
|
}
|
|
5021
5089
|
function Ye() {
|
|
5022
|
-
|
|
5090
|
+
U(), ne(() => {
|
|
5023
5091
|
var j;
|
|
5024
|
-
return (j =
|
|
5092
|
+
return (j = b.value) == null ? void 0 : j.focus();
|
|
5025
5093
|
});
|
|
5026
5094
|
}
|
|
5027
|
-
return o({ closeForm: Ye }), ae(u, (j) => n(pe, j)), (j,
|
|
5028
|
-
class:
|
|
5095
|
+
return o({ closeForm: Ye }), ae(u, (j) => n(pe, j)), (j, ee) => (a(), l("div", {
|
|
5096
|
+
class: I(["ds-tag-picker", [
|
|
5029
5097
|
`ds-tag-picker--${e.size}`,
|
|
5030
5098
|
{ "is-open": d.value, "is-disabled": e.disabled, "has-tags": p.value }
|
|
5031
5099
|
]])
|
|
@@ -5034,8 +5102,8 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5034
5102
|
open: d.value,
|
|
5035
5103
|
placement: O.value,
|
|
5036
5104
|
width: "240px",
|
|
5037
|
-
"grow-to":
|
|
5038
|
-
flush:
|
|
5105
|
+
"grow-to": y.value ? "" : f(na),
|
|
5106
|
+
flush: y.value,
|
|
5039
5107
|
"trigger-on-click": !1,
|
|
5040
5108
|
"onUpdate:open": E
|
|
5041
5109
|
}, {
|
|
@@ -5050,7 +5118,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5050
5118
|
F(f(oe), {
|
|
5051
5119
|
class: "ds-tag-picker__trigger",
|
|
5052
5120
|
variant: f(ve).OUTLINE,
|
|
5053
|
-
size:
|
|
5121
|
+
size: z.value,
|
|
5054
5122
|
pill: e.pill,
|
|
5055
5123
|
disabled: e.disabled,
|
|
5056
5124
|
"aria-haspopup": "dialog",
|
|
@@ -5073,9 +5141,9 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5073
5141
|
class: "ds-tag-picker__label"
|
|
5074
5142
|
}, [
|
|
5075
5143
|
p.value ? (a(), l(G, { key: 0 }, [
|
|
5076
|
-
|
|
5144
|
+
J(c(e.taggedAsLabel) + " " + c(e.tags[0].name), 1)
|
|
5077
5145
|
], 64)) : (a(), l(G, { key: 1 }, [
|
|
5078
|
-
|
|
5146
|
+
J(c(e.label), 1)
|
|
5079
5147
|
], 64))
|
|
5080
5148
|
], 512)
|
|
5081
5149
|
]),
|
|
@@ -5099,7 +5167,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5099
5167
|
default: B(() => {
|
|
5100
5168
|
var ie;
|
|
5101
5169
|
return [
|
|
5102
|
-
|
|
5170
|
+
y.value ? (a(), K(f(ia), {
|
|
5103
5171
|
key: 0,
|
|
5104
5172
|
class: "ds-tag-picker__form",
|
|
5105
5173
|
title: v.value === "edit" ? e.editFormTitle : e.createFormTitle,
|
|
@@ -5116,48 +5184,48 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5116
5184
|
"back-label": e.backLabel,
|
|
5117
5185
|
"error-missing-name": e.errorMissingName,
|
|
5118
5186
|
"error-too-long-name": e.errorTooLongName,
|
|
5119
|
-
"onUpdate:name":
|
|
5120
|
-
"onUpdate:color":
|
|
5187
|
+
"onUpdate:name": ee[0] || (ee[0] = (D) => L.value = D),
|
|
5188
|
+
"onUpdate:color": ee[1] || (ee[1] = (D) => h.value = D),
|
|
5121
5189
|
onBack: Ye,
|
|
5122
|
-
onSubmit:
|
|
5123
|
-
}, null, 8, ["title", "submit-label", "name", "color", "original-name", "original-color", "colors", "loading", "error-message", "name-placeholder", "set-color-label", "back-label", "error-missing-name", "error-too-long-name"])) : (a(), l("div",
|
|
5190
|
+
onSubmit: Re
|
|
5191
|
+
}, null, 8, ["title", "submit-label", "name", "color", "original-name", "original-color", "colors", "loading", "error-message", "name-placeholder", "set-color-label", "back-label", "error-missing-name", "error-too-long-name"])) : (a(), l("div", Nd, [
|
|
5124
5192
|
F(f(lt), {
|
|
5125
5193
|
ref_key: "searchRef",
|
|
5126
|
-
ref:
|
|
5194
|
+
ref: b,
|
|
5127
5195
|
modelValue: u.value,
|
|
5128
|
-
"onUpdate:modelValue":
|
|
5196
|
+
"onUpdate:modelValue": ee[2] || (ee[2] = (D) => u.value = D),
|
|
5129
5197
|
class: "ds-tag-picker__search",
|
|
5130
5198
|
type: "search",
|
|
5131
5199
|
size: "sm",
|
|
5132
5200
|
placeholder: e.searchPlaceholder
|
|
5133
5201
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
5134
|
-
|
|
5202
|
+
ee[4] || (ee[4] = s("div", { class: "ds-tag-picker__divider" }, null, -1)),
|
|
5135
5203
|
s("div", {
|
|
5136
5204
|
class: "ds-tag-picker__list",
|
|
5137
5205
|
role: "group",
|
|
5138
5206
|
"aria-label": e.label
|
|
5139
5207
|
}, [
|
|
5140
|
-
(a(!0), l(G, null, le(H.value, (
|
|
5141
|
-
key:
|
|
5208
|
+
(a(!0), l(G, null, le(H.value, (D) => (a(), l("div", {
|
|
5209
|
+
key: D.id,
|
|
5142
5210
|
class: "ds-tag-picker__option"
|
|
5143
5211
|
}, [
|
|
5144
5212
|
F(f(at), {
|
|
5145
|
-
"model-value": r.value.has(
|
|
5146
|
-
"onUpdate:modelValue": (V) => q(
|
|
5213
|
+
"model-value": r.value.has(D.id),
|
|
5214
|
+
"onUpdate:modelValue": (V) => q(D, V)
|
|
5147
5215
|
}, {
|
|
5148
5216
|
default: B(() => [
|
|
5149
5217
|
s("span", {
|
|
5150
5218
|
class: "ds-tag-picker__dot",
|
|
5151
|
-
style: Y({ background:
|
|
5219
|
+
style: Y({ background: D.color }),
|
|
5152
5220
|
"aria-hidden": "true"
|
|
5153
5221
|
}, null, 4),
|
|
5154
|
-
s("span",
|
|
5222
|
+
s("span", Bd, c(D.name), 1)
|
|
5155
5223
|
]),
|
|
5156
5224
|
_: 2
|
|
5157
5225
|
}, 1032, ["model-value", "onUpdate:modelValue"]),
|
|
5158
5226
|
e.rowActions ? (a(), K(f(sa), {
|
|
5159
5227
|
key: 0,
|
|
5160
|
-
option:
|
|
5228
|
+
option: D,
|
|
5161
5229
|
"actions-label": e.actionsLabel,
|
|
5162
5230
|
"edit-label": e.editLabel,
|
|
5163
5231
|
"delete-label": e.deleteLabel,
|
|
@@ -5171,18 +5239,18 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5171
5239
|
class: "ds-tag-picker__create",
|
|
5172
5240
|
onClick: We
|
|
5173
5241
|
}, [
|
|
5174
|
-
|
|
5242
|
+
ee[3] || (ee[3] = s("i", {
|
|
5175
5243
|
class: "material-symbols-filled",
|
|
5176
5244
|
"aria-hidden": "true"
|
|
5177
5245
|
}, "add", -1)),
|
|
5178
5246
|
s("span", null, c(e.createLabel), 1),
|
|
5179
|
-
s("span",
|
|
5247
|
+
s("span", Md, "“" + c(W.value) + "”", 1)
|
|
5180
5248
|
])) : S("", !0),
|
|
5181
|
-
!H.value.length && !X.value && e.emptyLabel ? (a(), l("p",
|
|
5182
|
-
], 8,
|
|
5183
|
-
|
|
5249
|
+
!H.value.length && !X.value && e.emptyLabel ? (a(), l("p", xd, c(e.emptyLabel), 1)) : S("", !0)
|
|
5250
|
+
], 8, Od),
|
|
5251
|
+
ee[5] || (ee[5] = s("div", { class: "ds-tag-picker__divider" }, null, -1)),
|
|
5184
5252
|
s("div", {
|
|
5185
|
-
class:
|
|
5253
|
+
class: I(["ds-tag-picker__footer", { "is-split": _.value }])
|
|
5186
5254
|
}, [
|
|
5187
5255
|
_.value ? (a(), K(f(oe), {
|
|
5188
5256
|
key: 0,
|
|
@@ -5193,7 +5261,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5193
5261
|
onClick: te
|
|
5194
5262
|
}, {
|
|
5195
5263
|
default: B(() => [
|
|
5196
|
-
|
|
5264
|
+
J(c(e.createLabel), 1)
|
|
5197
5265
|
]),
|
|
5198
5266
|
_: 1
|
|
5199
5267
|
}, 8, ["variant", "size"])) : S("", !0),
|
|
@@ -5204,7 +5272,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5204
5272
|
onClick: se
|
|
5205
5273
|
}, {
|
|
5206
5274
|
default: B(() => [
|
|
5207
|
-
|
|
5275
|
+
J(c(e.applyLabel), 1)
|
|
5208
5276
|
]),
|
|
5209
5277
|
_: 1
|
|
5210
5278
|
}, 8, ["variant", "size"])
|
|
@@ -5216,16 +5284,16 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5216
5284
|
}, 8, ["open", "placement", "grow-to", "flush"])
|
|
5217
5285
|
], 2));
|
|
5218
5286
|
}
|
|
5219
|
-
}),
|
|
5287
|
+
}), Tr = /* @__PURE__ */ P(Pd, [["__scopeId", "data-v-459ab1ff"]]), Vt = {
|
|
5220
5288
|
SECONDARY: "secondary",
|
|
5221
5289
|
PRIMARY: "primary"
|
|
5222
|
-
},
|
|
5290
|
+
}, zd = { class: "ds-add-to-sequence__label" }, Ud = { class: "ds-add-to-sequence__menu" }, Fd = { class: "ds-add-to-sequence__section" }, Vd = ["aria-label"], qd = {
|
|
5223
5291
|
key: 0,
|
|
5224
5292
|
class: "ds-add-to-sequence__section"
|
|
5225
|
-
},
|
|
5293
|
+
}, Gd = ["aria-label"], Hd = {
|
|
5226
5294
|
key: 0,
|
|
5227
5295
|
class: "ds-add-to-sequence__empty"
|
|
5228
|
-
},
|
|
5296
|
+
}, Kd = { class: "ds-add-to-sequence__footer" }, Wd = /* @__PURE__ */ x({
|
|
5229
5297
|
__name: "DsAddToSequence",
|
|
5230
5298
|
props: {
|
|
5231
5299
|
label: { type: String, required: !0 },
|
|
@@ -5234,7 +5302,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5234
5302
|
channels: { type: Array, required: !0 },
|
|
5235
5303
|
defaultChannel: {
|
|
5236
5304
|
type: String,
|
|
5237
|
-
default:
|
|
5305
|
+
default: cd.WORK
|
|
5238
5306
|
},
|
|
5239
5307
|
campaignsLabel: { type: String, default: "" },
|
|
5240
5308
|
campaigns: { type: Array, required: !0 },
|
|
@@ -5245,7 +5313,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5245
5313
|
type: String,
|
|
5246
5314
|
default: Vt.SECONDARY
|
|
5247
5315
|
},
|
|
5248
|
-
size: { type: String, default:
|
|
5316
|
+
size: { type: String, default: xe.MEDIUM },
|
|
5249
5317
|
// Fully round trigger — the bulk-bar look beside DsItemSelectorButton.
|
|
5250
5318
|
pill: { type: Boolean, default: !1 },
|
|
5251
5319
|
align: { type: String, default: nt.END },
|
|
@@ -5253,15 +5321,15 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5253
5321
|
},
|
|
5254
5322
|
emits: [At, pe, fe],
|
|
5255
5323
|
setup(e, { emit: o }) {
|
|
5256
|
-
const t = e, i = o, n = N(!1), d = N(""), u = N(t.defaultChannel), r = N(/* @__PURE__ */ new Set()),
|
|
5324
|
+
const t = e, i = o, n = N(!1), d = N(""), u = N(t.defaultChannel), r = N(/* @__PURE__ */ new Set()), b = be(), m = k(() => mt(t.align)), v = k(() => bt(t.campaigns, d.value)), g = k(
|
|
5257
5325
|
() => t.variant === Vt.PRIMARY ? ve.PRIMARY : ve.OUTLINE
|
|
5258
5326
|
), L = k(
|
|
5259
|
-
() => t.size ===
|
|
5327
|
+
() => t.size === xe.LARGE ? de.LARGE : de.MEDIUM
|
|
5260
5328
|
);
|
|
5261
5329
|
function h(p) {
|
|
5262
5330
|
n.value !== p && (p && (d.value = ""), n.value = p, i(fe, p));
|
|
5263
5331
|
}
|
|
5264
|
-
function
|
|
5332
|
+
function y() {
|
|
5265
5333
|
t.disabled || h(!n.value);
|
|
5266
5334
|
}
|
|
5267
5335
|
function $(p, R) {
|
|
@@ -5277,7 +5345,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5277
5345
|
i(At, p), r.value = /* @__PURE__ */ new Set(), h(!1);
|
|
5278
5346
|
}
|
|
5279
5347
|
return ae(d, (p) => i(pe, p)), (p, R) => (a(), l("div", {
|
|
5280
|
-
class:
|
|
5348
|
+
class: I(["ds-add-to-sequence", [
|
|
5281
5349
|
`ds-add-to-sequence--${e.variant}`,
|
|
5282
5350
|
`ds-add-to-sequence--${e.size}`,
|
|
5283
5351
|
{ "is-open": n.value, "is-disabled": e.disabled }
|
|
@@ -5285,7 +5353,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5285
5353
|
}, [
|
|
5286
5354
|
F(f(He), {
|
|
5287
5355
|
open: n.value,
|
|
5288
|
-
placement:
|
|
5356
|
+
placement: m.value,
|
|
5289
5357
|
width: "288px",
|
|
5290
5358
|
"trigger-on-click": !1,
|
|
5291
5359
|
"onUpdate:open": h
|
|
@@ -5305,7 +5373,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5305
5373
|
disabled: e.disabled,
|
|
5306
5374
|
"aria-haspopup": "dialog",
|
|
5307
5375
|
"aria-expanded": n.value,
|
|
5308
|
-
onClick:
|
|
5376
|
+
onClick: y
|
|
5309
5377
|
}, {
|
|
5310
5378
|
leading: B(() => [...R[1] || (R[1] = [
|
|
5311
5379
|
s("i", {
|
|
@@ -5314,7 +5382,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5314
5382
|
}, "send", -1)
|
|
5315
5383
|
])]),
|
|
5316
5384
|
default: B(() => [
|
|
5317
|
-
s("span",
|
|
5385
|
+
s("span", zd, c(e.label), 1)
|
|
5318
5386
|
]),
|
|
5319
5387
|
_: 1
|
|
5320
5388
|
}, 8, ["variant", "size", "pill", "disabled", "aria-expanded"])
|
|
@@ -5323,8 +5391,8 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5323
5391
|
}, 8, ["content", "disabled"])
|
|
5324
5392
|
]),
|
|
5325
5393
|
default: B(() => [
|
|
5326
|
-
s("div",
|
|
5327
|
-
s("p",
|
|
5394
|
+
s("div", Ud, [
|
|
5395
|
+
s("p", Fd, c(e.channelsLabel), 1),
|
|
5328
5396
|
s("div", {
|
|
5329
5397
|
class: "ds-add-to-sequence__channels",
|
|
5330
5398
|
role: "radiogroup",
|
|
@@ -5332,21 +5400,21 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5332
5400
|
}, [
|
|
5333
5401
|
(a(!0), l(G, null, le(e.channels, (O) => (a(), l("div", {
|
|
5334
5402
|
key: O.value,
|
|
5335
|
-
class:
|
|
5403
|
+
class: I(["ds-add-to-sequence__channel", { "is-on": u.value === O.value }])
|
|
5336
5404
|
}, [
|
|
5337
5405
|
F(f(Qt), {
|
|
5338
|
-
name: f(
|
|
5406
|
+
name: f(b),
|
|
5339
5407
|
value: O.value,
|
|
5340
5408
|
"model-value": u.value === O.value,
|
|
5341
5409
|
"onUpdate:modelValue": (H) => u.value = O.value
|
|
5342
5410
|
}, {
|
|
5343
5411
|
default: B(() => [
|
|
5344
|
-
|
|
5412
|
+
J(c(O.label), 1)
|
|
5345
5413
|
]),
|
|
5346
5414
|
_: 2
|
|
5347
5415
|
}, 1032, ["name", "value", "model-value", "onUpdate:modelValue"])
|
|
5348
5416
|
], 2))), 128))
|
|
5349
|
-
], 8,
|
|
5417
|
+
], 8, Vd),
|
|
5350
5418
|
F(f(lt), {
|
|
5351
5419
|
modelValue: d.value,
|
|
5352
5420
|
"onUpdate:modelValue": R[0] || (R[0] = (O) => d.value = O),
|
|
@@ -5355,7 +5423,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5355
5423
|
size: "sm",
|
|
5356
5424
|
placeholder: e.searchPlaceholder
|
|
5357
5425
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
5358
|
-
e.campaignsLabel ? (a(), l("p",
|
|
5426
|
+
e.campaignsLabel ? (a(), l("p", qd, c(e.campaignsLabel), 1)) : S("", !0),
|
|
5359
5427
|
s("div", {
|
|
5360
5428
|
class: "ds-add-to-sequence__list",
|
|
5361
5429
|
role: "group",
|
|
@@ -5370,15 +5438,15 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5370
5438
|
"onUpdate:modelValue": (H) => $(O, H)
|
|
5371
5439
|
}, {
|
|
5372
5440
|
default: B(() => [
|
|
5373
|
-
|
|
5441
|
+
J(c(O.name), 1)
|
|
5374
5442
|
]),
|
|
5375
5443
|
_: 2
|
|
5376
5444
|
}, 1032, ["model-value", "onUpdate:modelValue"])
|
|
5377
5445
|
]))), 128)),
|
|
5378
|
-
!v.value.length && e.emptyLabel ? (a(), l("p",
|
|
5379
|
-
], 8,
|
|
5446
|
+
!v.value.length && e.emptyLabel ? (a(), l("p", Hd, c(e.emptyLabel), 1)) : S("", !0)
|
|
5447
|
+
], 8, Gd),
|
|
5380
5448
|
R[2] || (R[2] = s("div", { class: "ds-add-to-sequence__divider" }, null, -1)),
|
|
5381
|
-
s("div",
|
|
5449
|
+
s("div", Kd, [
|
|
5382
5450
|
F(f(oe), {
|
|
5383
5451
|
class: "ds-add-to-sequence__add",
|
|
5384
5452
|
variant: f(ve).PRIMARY,
|
|
@@ -5387,7 +5455,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5387
5455
|
onClick: _
|
|
5388
5456
|
}, {
|
|
5389
5457
|
default: B(() => [
|
|
5390
|
-
|
|
5458
|
+
J(c(e.addLabel), 1)
|
|
5391
5459
|
]),
|
|
5392
5460
|
_: 1
|
|
5393
5461
|
}, 8, ["variant", "size", "disabled"])
|
|
@@ -5398,7 +5466,7 @@ const sd = ["aria-label"], od = ["aria-label"], dd = { class: "ds-organizer-form
|
|
|
5398
5466
|
}, 8, ["open", "placement"])
|
|
5399
5467
|
], 2));
|
|
5400
5468
|
}
|
|
5401
|
-
}),
|
|
5469
|
+
}), Cr = /* @__PURE__ */ P(Wd, [["__scopeId", "data-v-e23d1c03"]]);
|
|
5402
5470
|
export {
|
|
5403
5471
|
Vt as DS_ADD_TO_SEQUENCE_VARIANTS,
|
|
5404
5472
|
vl as DS_ALERT_EFFECTS,
|
|
@@ -5409,24 +5477,24 @@ export {
|
|
|
5409
5477
|
de as DS_BUTTON_SIZES,
|
|
5410
5478
|
ve as DS_BUTTON_VARIANTS,
|
|
5411
5479
|
Ke as DS_CONTACT_KINDS,
|
|
5412
|
-
|
|
5480
|
+
ko as DS_CONTACT_PLACEHOLDER_ICONS,
|
|
5413
5481
|
Ue as DS_CONTACT_PLACEHOLDER_STATES,
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5482
|
+
Be as DS_CONTACT_TYPES,
|
|
5483
|
+
$s as DS_CONTACT_TYPE_ICONS,
|
|
5484
|
+
si as DS_CUSTOM_TAG_TYPES,
|
|
5417
5485
|
Ut as DS_DRAWER_DIRECTIONS,
|
|
5418
5486
|
Gt as DS_INPUT_SIZES,
|
|
5419
|
-
|
|
5487
|
+
Ne as DS_INPUT_TYPES,
|
|
5420
5488
|
$l as DS_NOTIFICATION_ICONS,
|
|
5421
5489
|
Mt as DS_NOTIFICATION_LINK_TARGETS,
|
|
5422
5490
|
Sl as DS_NOTIFICATION_POSITIONS,
|
|
5423
5491
|
kl as DS_NOTIFICATION_TYPES,
|
|
5424
5492
|
nt as DS_PICKER_ALIGNS,
|
|
5425
|
-
|
|
5493
|
+
xe as DS_PICKER_SIZES,
|
|
5426
5494
|
qe as DS_POPOVER_PLACEMENTS,
|
|
5427
5495
|
Pt as DS_SELECT_TYPES,
|
|
5428
5496
|
zt as DS_SELECT_WIDTHS,
|
|
5429
|
-
|
|
5497
|
+
cd as DS_SEQUENCE_CHANNELS,
|
|
5430
5498
|
st as DS_SPINNER_SIZES,
|
|
5431
5499
|
Xe as DS_SPINNER_TONES,
|
|
5432
5500
|
Bt as DS_TABLE_ALIGN,
|
|
@@ -5434,62 +5502,63 @@ export {
|
|
|
5434
5502
|
wa as DS_TAG_TONES,
|
|
5435
5503
|
Ee as DS_TOOLTIP_PLACEMENTS,
|
|
5436
5504
|
rt as DS_VERIFICATION_STATES,
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5505
|
+
Ce as DS_WIZARD_STEP_STATES,
|
|
5506
|
+
Cr as DsAddToSequence,
|
|
5507
|
+
Qd as DsAlert,
|
|
5440
5508
|
Oa as DsAvatar,
|
|
5441
5509
|
Da as DsBadge,
|
|
5442
5510
|
oe as DsButton,
|
|
5443
|
-
|
|
5511
|
+
or as DsCell,
|
|
5444
5512
|
at as DsCheckbox,
|
|
5445
|
-
|
|
5513
|
+
gr as DsCompanyCard,
|
|
5446
5514
|
Jt as DsCompanyLogo,
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5515
|
+
hr as DsContactCell,
|
|
5516
|
+
Qs as DsContactList,
|
|
5517
|
+
kr as DsContactPlaceholder,
|
|
5450
5518
|
xt as DsContactValue,
|
|
5451
|
-
|
|
5452
|
-
|
|
5519
|
+
dr as DsCustomTag,
|
|
5520
|
+
tr as DsDataCard,
|
|
5453
5521
|
aa as DsDeliverabilityBadge,
|
|
5454
|
-
|
|
5455
|
-
|
|
5522
|
+
yr as DsDrawer,
|
|
5523
|
+
fr as DsEmptyState,
|
|
5456
5524
|
lt as DsInput,
|
|
5457
|
-
|
|
5525
|
+
nr as DsItemSelectorButton,
|
|
5458
5526
|
ta as DsMaskedValue,
|
|
5459
|
-
|
|
5460
|
-
|
|
5527
|
+
br as DsMenuItem,
|
|
5528
|
+
er as DsModal,
|
|
5461
5529
|
la as DsMoreCountChip,
|
|
5462
|
-
|
|
5530
|
+
Jd as DsNotification,
|
|
5463
5531
|
ia as DsOrganizerForm,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5532
|
+
vr as DsPaginator,
|
|
5533
|
+
rr as DsPill,
|
|
5534
|
+
cr as DsPillWithBorder,
|
|
5467
5535
|
He as DsPopover,
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5536
|
+
mo as DsProfileCard,
|
|
5537
|
+
Sr as DsProfileCompanyCard,
|
|
5538
|
+
pr as DsProfileGroupBar,
|
|
5539
|
+
$r as DsProfileHero,
|
|
5540
|
+
_r as DsProfileKvRow,
|
|
5541
|
+
wr as DsProfileLockedCard,
|
|
5542
|
+
Lr as DsProfileTimelineRow,
|
|
5475
5543
|
Qt as DsRadio,
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5544
|
+
ar as DsRadioCard,
|
|
5545
|
+
sr as DsRow,
|
|
5546
|
+
Er as DsSavedButton,
|
|
5547
|
+
ur as DsSegmentedProgressBar,
|
|
5548
|
+
ir as DsSelect,
|
|
5549
|
+
Me as DsSpinner,
|
|
5550
|
+
lr as DsSwitch,
|
|
5551
|
+
Xd as DsTable,
|
|
5552
|
+
jd as DsTag,
|
|
5553
|
+
Tr as DsTagPicker,
|
|
5554
|
+
Zd as DsTextarea,
|
|
5486
5555
|
ge as DsTooltip,
|
|
5487
5556
|
Yl as DsVerificationIcon,
|
|
5488
|
-
|
|
5557
|
+
mr as DsWizardStepper,
|
|
5489
5558
|
ut as MASK_GLYPHS,
|
|
5490
5559
|
bt as filterOptions,
|
|
5491
|
-
|
|
5560
|
+
_s as overflowFromGroupSize,
|
|
5492
5561
|
mt as pickerPlacement,
|
|
5493
|
-
|
|
5562
|
+
ws as splitMaskedValue
|
|
5494
5563
|
};
|
|
5495
5564
|
//# sourceMappingURL=index.es.js.map
|