@salesql/sql_components_vue3 3.16.1 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +922 -918
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsTooltip/DsTooltip.vue.d.ts +9 -0
- package/llms-full.txt +13 -9
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, computed as y, openBlock as a, createElementBlock as n, normalizeStyle as
|
|
1
|
+
import { defineComponent as P, computed as y, openBlock as a, createElementBlock as n, normalizeStyle as Q, normalizeClass as C, createBlock as Z, unref as d, createCommentVNode as p, createElementVNode as r, renderSlot as x, toDisplayString as b, withModifiers as Te, ref as R, watch as J, useModel as Re, onMounted as we, withDirectives as vt, vModelCheckbox as $a, createTextVNode as ee, mergeModels as be, onBeforeUnmount as de, nextTick as oe, createVNode as q, Fragment as K, renderList as le, useSlots as xe, vModelDynamic as wa, useAttrs as La, mergeProps as Be, vModelText as Ea, Transition as Ce, withCtx as M, Teleport as Xe, useId as me, withKeys as Ye, reactive as Ta, resolveDynamicComponent as Xt, provide as Ca, inject as Ia, createSlots as mt, normalizeProps as Da } from "vue";
|
|
2
2
|
const Qe = {
|
|
3
3
|
DARK: "dark",
|
|
4
4
|
// slate ring — for light surfaces (default)
|
|
@@ -39,9 +39,9 @@ const Qe = {
|
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
return (o, s) => (a(), n("span", {
|
|
42
|
-
class:
|
|
42
|
+
class: C(["ds-spinner", `ds-spinner--${e.tone}`]),
|
|
43
43
|
role: "status",
|
|
44
|
-
style:
|
|
44
|
+
style: Q({ width: `${l.value}px`, height: `${l.value}px` }),
|
|
45
45
|
"aria-label": e.label || void 0
|
|
46
46
|
}, null, 14, Aa));
|
|
47
47
|
}
|
|
@@ -50,7 +50,7 @@ const Qe = {
|
|
|
50
50
|
for (const [l, o] of i)
|
|
51
51
|
t[l] = o;
|
|
52
52
|
return t;
|
|
53
|
-
}, Ve = /* @__PURE__ */ F(Ra, [["__scopeId", "data-v-aaf2f048"]]), ye = "click", ve = "close", Je = "focus", et = "blur", St = "change", _t = "field-blur",
|
|
53
|
+
}, Ve = /* @__PURE__ */ F(Ra, [["__scopeId", "data-v-aaf2f048"]]), ye = "click", ve = "close", Je = "focus", et = "blur", St = "change", _t = "field-blur", Ie = "copy", $t = "reveal", De = "correct", Ae = "incorrect", wt = "sort", Me = "edit", Lt = "select-all", Et = "page-change", Tt = "page-size-change", $e = "search", tt = "select", rt = "step", Ct = "final-step", It = "navigate", Dt = "resize-start", At = "resize", Rt = "resize-end", ce = "update:open", Nt = "pick", Ot = "apply", Bt = "add", at = "create", Mt = "back", xt = "submit", Ue = "delete", bt = "create-option", yt = "update-option", Pt = "update:name", dt = "update:color", gt = "form-close", ue = {
|
|
54
54
|
DEFAULT: "default",
|
|
55
55
|
// white surface, dark text (the default value; == tertiary)
|
|
56
56
|
PRIMARY: "primary",
|
|
@@ -78,7 +78,7 @@ const Qe = {
|
|
|
78
78
|
// `warning` as a deprecated alias of `danger` (tint), but app consumers already
|
|
79
79
|
// ship this solid look — kept unchanged to avoid a visual regression. Prefer `danger`.
|
|
80
80
|
WARNING: "warning"
|
|
81
|
-
},
|
|
81
|
+
}, fe = {
|
|
82
82
|
SMALL: "small",
|
|
83
83
|
// 24px
|
|
84
84
|
MEDIUM: "medium",
|
|
@@ -109,8 +109,8 @@ const Qe = {
|
|
|
109
109
|
}, Ua = /* @__PURE__ */ P({
|
|
110
110
|
__name: "DsButton",
|
|
111
111
|
props: {
|
|
112
|
-
variant: { type: String, default:
|
|
113
|
-
size: { type: String, default:
|
|
112
|
+
variant: { type: String, default: ue.DEFAULT },
|
|
113
|
+
size: { type: String, default: fe.MEDIUM },
|
|
114
114
|
nativeType: {
|
|
115
115
|
type: String,
|
|
116
116
|
default: Na.BUTTON
|
|
@@ -139,18 +139,18 @@ const Qe = {
|
|
|
139
139
|
},
|
|
140
140
|
emits: [ye],
|
|
141
141
|
setup(e, { emit: i }) {
|
|
142
|
-
const t = e, l = i, o = y(() => t.size ===
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
const t = e, l = i, o = y(() => t.size === fe.SMALL ? 14 : 20), s = [
|
|
143
|
+
ue.PRIMARY,
|
|
144
|
+
ue.WARNING,
|
|
145
|
+
ue.AI
|
|
146
146
|
], c = y(
|
|
147
147
|
() => s.includes(t.variant) ? Qe.LIGHT : Qe.DARK
|
|
148
148
|
);
|
|
149
149
|
function f(v) {
|
|
150
150
|
t.disabled || t.loading || l(ye, v);
|
|
151
151
|
}
|
|
152
|
-
return (v,
|
|
153
|
-
class:
|
|
152
|
+
return (v, $) => (a(), n("button", {
|
|
153
|
+
class: C(["ds-button", [
|
|
154
154
|
`ds-button--${e.variant}`,
|
|
155
155
|
`ds-button--${e.size}`,
|
|
156
156
|
{
|
|
@@ -172,7 +172,7 @@ const Qe = {
|
|
|
172
172
|
"aria-label": e.ariaLabel || void 0,
|
|
173
173
|
onClick: f
|
|
174
174
|
}, [
|
|
175
|
-
e.loading ? (a(),
|
|
175
|
+
e.loading ? (a(), Z(d(Ve), {
|
|
176
176
|
key: 0,
|
|
177
177
|
class: "ds-button__spinner",
|
|
178
178
|
size: o.value,
|
|
@@ -198,7 +198,7 @@ const Qe = {
|
|
|
198
198
|
], 8, Ba)
|
|
199
199
|
], 10, Oa));
|
|
200
200
|
}
|
|
201
|
-
}),
|
|
201
|
+
}), re = /* @__PURE__ */ F(Ua, [["__scopeId", "data-v-c83d2cbd"]]), Va = {
|
|
202
202
|
DEFAULT: "default",
|
|
203
203
|
// white bg, slate-tint border, muted text
|
|
204
204
|
GREY: "grey",
|
|
@@ -240,7 +240,7 @@ const Qe = {
|
|
|
240
240
|
setup(e, { emit: i }) {
|
|
241
241
|
const t = i;
|
|
242
242
|
return (l, o) => (a(), n("span", {
|
|
243
|
-
class:
|
|
243
|
+
class: C(["ds-tag", [
|
|
244
244
|
`ds-tag--${e.tone}`,
|
|
245
245
|
{ "is-rounded": e.rounded, "is-clickable": e.clickable, "is-truncate": e.truncate }
|
|
246
246
|
]])
|
|
@@ -253,7 +253,7 @@ const Qe = {
|
|
|
253
253
|
type: "button",
|
|
254
254
|
class: "ds-tag__close",
|
|
255
255
|
"aria-label": e.closeLabel || void 0,
|
|
256
|
-
onClick: o[0] || (o[0] =
|
|
256
|
+
onClick: o[0] || (o[0] = Te((s) => t(d(ve)), ["stop"]))
|
|
257
257
|
}, [...o[1] || (o[1] = [
|
|
258
258
|
r("i", {
|
|
259
259
|
class: "material-symbols-filled",
|
|
@@ -285,7 +285,7 @@ const Qe = {
|
|
|
285
285
|
},
|
|
286
286
|
setup(e) {
|
|
287
287
|
return (i, t) => (a(), n("span", {
|
|
288
|
-
class:
|
|
288
|
+
class: C(["ds-badge", `ds-badge--${e.tone}`])
|
|
289
289
|
}, [
|
|
290
290
|
x(i.$slots, "default", {}, void 0, !0)
|
|
291
291
|
], 2));
|
|
@@ -320,7 +320,7 @@ const Qe = {
|
|
|
320
320
|
},
|
|
321
321
|
setup(e) {
|
|
322
322
|
const i = e, t = R(!1);
|
|
323
|
-
|
|
323
|
+
J(
|
|
324
324
|
() => i.image,
|
|
325
325
|
() => t.value = !1
|
|
326
326
|
);
|
|
@@ -333,37 +333,37 @@ const Qe = {
|
|
|
333
333
|
}), v = y(() => {
|
|
334
334
|
var h;
|
|
335
335
|
return (h = i.width) != null ? h : i.size;
|
|
336
|
-
}),
|
|
336
|
+
}), $ = y(() => {
|
|
337
337
|
var h;
|
|
338
338
|
return (h = i.height) != null ? h : i.size;
|
|
339
|
-
}), S = y(() => ({ width: `${v.value}px`, height: `${
|
|
339
|
+
}), S = y(() => ({ width: `${v.value}px`, height: `${$.value}px` })), m = y(
|
|
340
340
|
() => {
|
|
341
341
|
var h;
|
|
342
|
-
return (h = i.textSize) != null ? h : Math.round(Math.min(v.value,
|
|
342
|
+
return (h = i.textSize) != null ? h : Math.round(Math.min(v.value, $.value) * 0.4);
|
|
343
343
|
}
|
|
344
344
|
), g = y(() => {
|
|
345
345
|
const h = i.uid || i.firstName + i.lastName || i.letters;
|
|
346
346
|
let k = 0;
|
|
347
347
|
for (let u = 0; u < h.length; u++)
|
|
348
348
|
k = h.charCodeAt(u) + ((k << 5) - k), k = k & k;
|
|
349
|
-
const
|
|
350
|
-
for (let u = 0; u < 3; u++)
|
|
351
|
-
const w =
|
|
352
|
-
return { bg: `rgb(${
|
|
349
|
+
const _ = [0, 0, 0];
|
|
350
|
+
for (let u = 0; u < 3; u++) _[u] = k >> u * 8 & 255;
|
|
351
|
+
const w = _[0] >= 200 && _[1] >= 200 && _[2] >= 200;
|
|
352
|
+
return { bg: `rgb(${_[0]}, ${_[1]}, ${_[2]})`, fg: w ? "#323f4b" : "#fff" };
|
|
353
353
|
});
|
|
354
354
|
return (h, k) => o.value ? (a(), n("img", {
|
|
355
355
|
key: 0,
|
|
356
|
-
class:
|
|
356
|
+
class: C(["ds-avatar", { "is-circular": e.circular }]),
|
|
357
357
|
src: e.image,
|
|
358
358
|
alt: f.value,
|
|
359
|
-
style:
|
|
359
|
+
style: Q(S.value),
|
|
360
360
|
onError: l
|
|
361
361
|
}, null, 46, Ya)) : s.value ? (a(), n("div", {
|
|
362
362
|
key: 1,
|
|
363
|
-
class:
|
|
363
|
+
class: C(["ds-avatar ds-avatar--initials", { "is-circular": e.circular, "ds-avatar--accent": e.accent }]),
|
|
364
364
|
role: "img",
|
|
365
365
|
"aria-label": f.value || void 0,
|
|
366
|
-
style:
|
|
366
|
+
style: Q([
|
|
367
367
|
S.value,
|
|
368
368
|
{
|
|
369
369
|
// The accent tone is fixed (a CSS class), so the hashed background/color
|
|
@@ -376,8 +376,8 @@ const Qe = {
|
|
|
376
376
|
])
|
|
377
377
|
}, b(s.value), 15, ja)) : (a(), n("div", {
|
|
378
378
|
key: 2,
|
|
379
|
-
class:
|
|
380
|
-
style:
|
|
379
|
+
class: C(["ds-avatar ds-avatar--placeholder", { "is-circular": e.circular }]),
|
|
380
|
+
style: Q(S.value),
|
|
381
381
|
"aria-hidden": "true"
|
|
382
382
|
}, null, 6));
|
|
383
383
|
}
|
|
@@ -414,12 +414,12 @@ const Qe = {
|
|
|
414
414
|
}),
|
|
415
415
|
emits: ["update:modelValue"],
|
|
416
416
|
setup(e) {
|
|
417
|
-
const i =
|
|
417
|
+
const i = Re(e, "modelValue"), t = e, l = R(null);
|
|
418
418
|
function o() {
|
|
419
419
|
l.value && (l.value.indeterminate = t.indeterminate);
|
|
420
420
|
}
|
|
421
|
-
return
|
|
422
|
-
class:
|
|
421
|
+
return we(o), J(() => t.indeterminate, o), (s, c) => (a(), n("label", {
|
|
422
|
+
class: C(["ds-checkbox", { "is-disabled": e.disabled }])
|
|
423
423
|
}, [
|
|
424
424
|
vt(r("input", {
|
|
425
425
|
ref_key: "inputRef",
|
|
@@ -434,7 +434,7 @@ const Qe = {
|
|
|
434
434
|
[$a, i.value]
|
|
435
435
|
]),
|
|
436
436
|
r("span", {
|
|
437
|
-
class:
|
|
437
|
+
class: C(["ds-checkbox__box", { "is-active": i.value || e.indeterminate }]),
|
|
438
438
|
"aria-hidden": "true"
|
|
439
439
|
}, [
|
|
440
440
|
e.indeterminate ? (a(), n("svg", Ja, [...c[1] || (c[1] = [
|
|
@@ -459,7 +459,7 @@ const Qe = {
|
|
|
459
459
|
LEFT: "left",
|
|
460
460
|
CENTER: "center",
|
|
461
461
|
RIGHT: "right"
|
|
462
|
-
},
|
|
462
|
+
}, _e = {
|
|
463
463
|
LEFT: "left",
|
|
464
464
|
RIGHT: "right"
|
|
465
465
|
}, ll = ["aria-busy"], nl = { class: "ds-table__table" }, ol = { class: "ds-table__head" }, il = {
|
|
@@ -539,19 +539,19 @@ const Qe = {
|
|
|
539
539
|
const D = /^(\d+(?:\.\d+)?)px$/.exec(T.trim());
|
|
540
540
|
return D ? parseFloat(D[1]) : 0;
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const $ = y(() => {
|
|
543
543
|
const T = {};
|
|
544
544
|
let D = 0;
|
|
545
|
-
for (const
|
|
546
|
-
|
|
545
|
+
for (const I of t.columns)
|
|
546
|
+
I.pinned === _e.LEFT && (T[I.key] = { position: "sticky", left: `${D}px` }, D += v(I.width));
|
|
547
547
|
let L = 0;
|
|
548
|
-
for (let
|
|
549
|
-
const
|
|
550
|
-
|
|
548
|
+
for (let I = t.columns.length - 1; I >= 0; I--) {
|
|
549
|
+
const G = t.columns[I];
|
|
550
|
+
G.pinned === _e.RIGHT && (T[G.key] = { position: "sticky", right: `${L}px` }, L += v(G.width));
|
|
551
551
|
}
|
|
552
552
|
return T;
|
|
553
553
|
}), S = y(() => {
|
|
554
|
-
const T = t.columns.filter((
|
|
554
|
+
const T = t.columns.filter((I) => I.pinned === _e.LEFT), D = t.columns.filter((I) => I.pinned === _e.RIGHT), L = /* @__PURE__ */ new Set();
|
|
555
555
|
return T.length && L.add(T[T.length - 1].key), D.length && L.add(D[0].key), L;
|
|
556
556
|
});
|
|
557
557
|
function m(T) {
|
|
@@ -563,30 +563,30 @@ const Qe = {
|
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
565
|
function g(T) {
|
|
566
|
-
const D =
|
|
566
|
+
const D = $.value[T.key], L = T.width ? { width: T.width } : void 0;
|
|
567
567
|
if (!(!D && !L))
|
|
568
568
|
return { ...L, ...D };
|
|
569
569
|
}
|
|
570
570
|
function h(T) {
|
|
571
|
-
const D =
|
|
571
|
+
const D = $.value[T.key];
|
|
572
572
|
if (D)
|
|
573
573
|
return T.width ? { ...D, width: T.width } : D;
|
|
574
574
|
}
|
|
575
575
|
const k = y(
|
|
576
576
|
() => t.headers.map((T) => typeof T == "string" ? { label: T } : T)
|
|
577
|
-
),
|
|
577
|
+
), _ = y(() => {
|
|
578
578
|
const T = {}, D = k.value;
|
|
579
579
|
let L = 0;
|
|
580
|
-
D.forEach((
|
|
581
|
-
|
|
580
|
+
D.forEach((G, te) => {
|
|
581
|
+
G.pinned === _e.LEFT && (T[te] = { position: "sticky", left: `${L}px` }, L += v(G.width));
|
|
582
582
|
});
|
|
583
|
-
let
|
|
584
|
-
for (let
|
|
585
|
-
D[
|
|
583
|
+
let I = 0;
|
|
584
|
+
for (let G = D.length - 1; G >= 0; G--)
|
|
585
|
+
D[G].pinned === _e.RIGHT && (T[G] = { position: "sticky", right: `${I}px` }, I += v(D[G].width));
|
|
586
586
|
return T;
|
|
587
587
|
}), w = y(() => {
|
|
588
|
-
const T = k.value, D = T.map((
|
|
589
|
-
return D.length &&
|
|
588
|
+
const T = k.value, D = T.map((G, te) => ({ h: G, i: te })).filter(({ h: G }) => G.pinned === _e.LEFT), L = T.map((G, te) => ({ h: G, i: te })).filter(({ h: G }) => G.pinned === _e.RIGHT), I = /* @__PURE__ */ new Set();
|
|
589
|
+
return D.length && I.add(D[D.length - 1].i), L.length && I.add(L[0].i), I;
|
|
590
590
|
});
|
|
591
591
|
function u(T, D) {
|
|
592
592
|
if (T.pinned)
|
|
@@ -597,28 +597,28 @@ const Qe = {
|
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
599
|
function E(T, D) {
|
|
600
|
-
const L =
|
|
601
|
-
if (!(!L && !
|
|
602
|
-
return { ...
|
|
600
|
+
const L = _.value[D], I = T.width ? { width: T.width } : void 0;
|
|
601
|
+
if (!(!L && !I))
|
|
602
|
+
return { ...I, ...L };
|
|
603
603
|
}
|
|
604
|
-
const
|
|
605
|
-
let
|
|
606
|
-
function
|
|
607
|
-
const T =
|
|
608
|
-
T && (
|
|
604
|
+
const N = R(null), U = R(!1), j = R(!1);
|
|
605
|
+
let X = null;
|
|
606
|
+
function O() {
|
|
607
|
+
const T = N.value;
|
|
608
|
+
T && (U.value = T.scrollLeft > 0, j.value = T.scrollLeft + T.clientWidth < T.scrollWidth - 1);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
T == null || T.removeEventListener("scroll",
|
|
610
|
+
function V(T) {
|
|
611
|
+
T == null || T.removeEventListener("scroll", O), X == null || X.disconnect(), X = null;
|
|
612
612
|
}
|
|
613
|
-
return
|
|
614
|
-
|
|
613
|
+
return J(
|
|
614
|
+
N,
|
|
615
615
|
(T, D) => {
|
|
616
|
-
|
|
616
|
+
V(D != null ? D : null), T && (T.addEventListener("scroll", O, { passive: !0 }), typeof ResizeObserver != "undefined" && (X = new ResizeObserver(O), X.observe(T)), O());
|
|
617
617
|
},
|
|
618
618
|
{ immediate: !0 }
|
|
619
|
-
),
|
|
619
|
+
), de(() => V(N.value)), J(
|
|
620
620
|
() => [t.columns.length, t.rows.length, t.headers.length, t.compound],
|
|
621
|
-
() => oe(
|
|
621
|
+
() => oe(O)
|
|
622
622
|
), (T, D) => e.compound ? (a(), n("div", {
|
|
623
623
|
key: 0,
|
|
624
624
|
class: "ds-table ds-table--compound",
|
|
@@ -626,25 +626,25 @@ const Qe = {
|
|
|
626
626
|
}, [
|
|
627
627
|
r("div", {
|
|
628
628
|
ref_key: "wrapperRef",
|
|
629
|
-
ref:
|
|
630
|
-
class:
|
|
631
|
-
style:
|
|
629
|
+
ref: N,
|
|
630
|
+
class: C(["ds-table__wrapper", { "is-scrolled-start": U.value, "is-scrolled-end": j.value }]),
|
|
631
|
+
style: Q(c.value)
|
|
632
632
|
}, [
|
|
633
633
|
r("table", nl, [
|
|
634
634
|
r("thead", ol, [
|
|
635
635
|
r("tr", null, [
|
|
636
636
|
e.selectable ? (a(), n("th", il, [
|
|
637
|
-
|
|
637
|
+
q(d(lt), {
|
|
638
638
|
"model-value": e.allSelected,
|
|
639
639
|
indeterminate: !e.allSelected && e.someSelected,
|
|
640
640
|
"aria-label": e.selectAllLabel || void 0,
|
|
641
641
|
"onUpdate:modelValue": f
|
|
642
642
|
}, null, 8, ["model-value", "indeterminate", "aria-label"])
|
|
643
643
|
])) : p("", !0),
|
|
644
|
-
(a(!0), n(K, null,
|
|
644
|
+
(a(!0), n(K, null, le(k.value, (L, I) => (a(), n("th", {
|
|
645
645
|
key: L.label,
|
|
646
|
-
class:
|
|
647
|
-
style:
|
|
646
|
+
class: C(u(L, I)),
|
|
647
|
+
style: Q(E(L, I))
|
|
648
648
|
}, b(L.label), 7))), 128))
|
|
649
649
|
])
|
|
650
650
|
]),
|
|
@@ -656,7 +656,7 @@ const Qe = {
|
|
|
656
656
|
"data-testid": "ds-table-loading"
|
|
657
657
|
}, [
|
|
658
658
|
x(T.$slots, "loading", {}, () => [
|
|
659
|
-
|
|
659
|
+
q(d(Ve), {
|
|
660
660
|
label: e.loadingLabel || void 0
|
|
661
661
|
}, null, 8, ["label"])
|
|
662
662
|
], !0)
|
|
@@ -672,24 +672,24 @@ const Qe = {
|
|
|
672
672
|
}, [
|
|
673
673
|
r("div", {
|
|
674
674
|
ref_key: "wrapperRef",
|
|
675
|
-
ref:
|
|
676
|
-
class:
|
|
675
|
+
ref: N,
|
|
676
|
+
class: C(["ds-table__wrapper", { "is-scrolled-start": U.value, "is-scrolled-end": j.value }])
|
|
677
677
|
}, [
|
|
678
678
|
r("table", {
|
|
679
|
-
class:
|
|
680
|
-
style:
|
|
679
|
+
class: C(["ds-table__table", { "has-row-height": e.rowHeight != null }]),
|
|
680
|
+
style: Q(s.value)
|
|
681
681
|
}, [
|
|
682
682
|
r("thead", null, [
|
|
683
683
|
r("tr", null, [
|
|
684
|
-
(a(!0), n(K, null,
|
|
685
|
-
var
|
|
684
|
+
(a(!0), n(K, null, le(e.columns, (L) => {
|
|
685
|
+
var I;
|
|
686
686
|
return a(), n("th", {
|
|
687
687
|
key: L.key,
|
|
688
|
-
class:
|
|
689
|
-
`ds-table__th--${(
|
|
688
|
+
class: C([
|
|
689
|
+
`ds-table__th--${(I = L.align) != null ? I : d(Ft).LEFT}`,
|
|
690
690
|
m(L)
|
|
691
691
|
]),
|
|
692
|
-
style:
|
|
692
|
+
style: Q(g(L))
|
|
693
693
|
}, b(L.label), 7);
|
|
694
694
|
}), 128))
|
|
695
695
|
])
|
|
@@ -702,7 +702,7 @@ const Qe = {
|
|
|
702
702
|
"data-testid": "ds-table-loading"
|
|
703
703
|
}, [
|
|
704
704
|
x(T.$slots, "loading", {}, () => [
|
|
705
|
-
|
|
705
|
+
q(d(Ve), {
|
|
706
706
|
label: e.loadingLabel || void 0
|
|
707
707
|
}, null, 8, ["label"])
|
|
708
708
|
], !0)
|
|
@@ -717,24 +717,24 @@ const Qe = {
|
|
|
717
717
|
ee(b(e.emptyMessage), 1)
|
|
718
718
|
], !0)
|
|
719
719
|
], 8, vl)
|
|
720
|
-
])) : (a(!0), n(K, { key: 2 },
|
|
720
|
+
])) : (a(!0), n(K, { key: 2 }, le(e.rows, (L) => (a(), n("tr", {
|
|
721
721
|
key: L.id,
|
|
722
|
-
class:
|
|
722
|
+
class: C({ "is-highlighted": L.id === e.highlightRowId }),
|
|
723
723
|
"data-testid": "ds-table-row"
|
|
724
724
|
}, [
|
|
725
|
-
(a(!0), n(K, null,
|
|
726
|
-
var
|
|
725
|
+
(a(!0), n(K, null, le(e.columns, (I) => {
|
|
726
|
+
var G;
|
|
727
727
|
return a(), n("td", {
|
|
728
|
-
key:
|
|
729
|
-
class:
|
|
730
|
-
`ds-table__td--${(
|
|
731
|
-
m(
|
|
728
|
+
key: I.key,
|
|
729
|
+
class: C([
|
|
730
|
+
`ds-table__td--${(G = I.align) != null ? G : d(Ft).LEFT}`,
|
|
731
|
+
m(I)
|
|
732
732
|
]),
|
|
733
|
-
style:
|
|
734
|
-
title: e.rowHeight != null && !T.$slots[`cell-${
|
|
733
|
+
style: Q(h(I)),
|
|
734
|
+
title: e.rowHeight != null && !T.$slots[`cell-${I.key}`] && L[I.key] != null ? String(L[I.key]) : void 0
|
|
735
735
|
}, [
|
|
736
|
-
x(T.$slots, `cell-${
|
|
737
|
-
ee(b(L[
|
|
736
|
+
x(T.$slots, `cell-${I.key}`, { row: L }, () => [
|
|
737
|
+
ee(b(L[I.key]), 1)
|
|
738
738
|
], !0)
|
|
739
739
|
], 14, ml);
|
|
740
740
|
}), 128))
|
|
@@ -797,16 +797,16 @@ const Qe = {
|
|
|
797
797
|
}),
|
|
798
798
|
emits: /* @__PURE__ */ be([Je, et, St, _t], ["update:modelValue"]),
|
|
799
799
|
setup(e, { expose: i, emit: t }) {
|
|
800
|
-
const l =
|
|
800
|
+
const l = Re(e, "modelValue"), o = e, s = t, c = R();
|
|
801
801
|
function f(w) {
|
|
802
802
|
const u = w.relatedTarget, E = w.currentTarget;
|
|
803
803
|
u && (E != null && E.contains(u)) || s(_t, w);
|
|
804
804
|
}
|
|
805
|
-
const v =
|
|
805
|
+
const v = xe(), $ = R(!1);
|
|
806
806
|
function S() {
|
|
807
|
-
o.disabled || (
|
|
807
|
+
o.disabled || ($.value = !$.value);
|
|
808
808
|
}
|
|
809
|
-
const m = y(() => o.type === Pe.PASSWORD), g = y(() => o.type === Pe.SEARCH), h = y(() => m.value ?
|
|
809
|
+
const m = y(() => o.type === Pe.PASSWORD), g = y(() => o.type === Pe.SEARCH), h = y(() => m.value ? $.value ? Pe.TEXT : Pe.PASSWORD : g.value ? Pe.TEXT : o.type), k = y(() => m.value && !!o.toggleLabel), _ = y(
|
|
810
810
|
() => !!v.suffix || o.error && o.showErrorIcon || k.value
|
|
811
811
|
);
|
|
812
812
|
return i({
|
|
@@ -826,7 +826,7 @@ const Qe = {
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
}), (w, u) => (a(), n("div", {
|
|
829
|
-
class:
|
|
829
|
+
class: C(["ds-input", [
|
|
830
830
|
`ds-input--${e.size}`,
|
|
831
831
|
{ "is-error": e.error, "is-disabled": e.disabled, "is-search": g.value }
|
|
832
832
|
]]),
|
|
@@ -839,7 +839,7 @@ const Qe = {
|
|
|
839
839
|
ref_key: "inputEl",
|
|
840
840
|
ref: c,
|
|
841
841
|
"onUpdate:modelValue": u[0] || (u[0] = (E) => l.value = E),
|
|
842
|
-
class:
|
|
842
|
+
class: C(["ds-input__control", { "has-suffix": _.value }]),
|
|
843
843
|
type: h.value,
|
|
844
844
|
placeholder: e.placeholder,
|
|
845
845
|
min: e.min,
|
|
@@ -856,7 +856,7 @@ const Qe = {
|
|
|
856
856
|
}, null, 42, hl), [
|
|
857
857
|
[wa, l.value]
|
|
858
858
|
]),
|
|
859
|
-
|
|
859
|
+
_.value ? (a(), n("div", pl, [
|
|
860
860
|
x(w.$slots, "suffix", {}, void 0, !0),
|
|
861
861
|
e.error && e.showErrorIcon ? (a(), n("i", kl, "warning")) : k.value ? (a(), n("button", {
|
|
862
862
|
key: 1,
|
|
@@ -864,10 +864,10 @@ const Qe = {
|
|
|
864
864
|
class: "ds-input__toggle",
|
|
865
865
|
disabled: e.disabled,
|
|
866
866
|
"aria-label": e.toggleLabel || void 0,
|
|
867
|
-
"aria-pressed":
|
|
867
|
+
"aria-pressed": $.value,
|
|
868
868
|
onClick: S
|
|
869
869
|
}, [
|
|
870
|
-
r("i", _l, b(
|
|
870
|
+
r("i", _l, b($.value ? "visibility" : "visibility_off"), 1)
|
|
871
871
|
], 8, Sl)) : p("", !0)
|
|
872
872
|
])) : p("", !0)
|
|
873
873
|
]),
|
|
@@ -923,7 +923,7 @@ const Qe = {
|
|
|
923
923
|
}),
|
|
924
924
|
emits: /* @__PURE__ */ be([Je, et], ["update:modelValue"]),
|
|
925
925
|
setup(e, { emit: i }) {
|
|
926
|
-
const t =
|
|
926
|
+
const t = Re(e, "modelValue"), l = e, o = i, s = y({
|
|
927
927
|
get: () => t.value,
|
|
928
928
|
set: (u) => {
|
|
929
929
|
l.readonly || (t.value = u);
|
|
@@ -935,31 +935,31 @@ const Qe = {
|
|
|
935
935
|
function v() {
|
|
936
936
|
const u = c.value;
|
|
937
937
|
if (!u || !l.autoGrow) return;
|
|
938
|
-
const E = window.getComputedStyle(u),
|
|
938
|
+
const E = window.getComputedStyle(u), N = f(E.lineHeight) || Dl, U = f(E.paddingTop) + f(E.paddingBottom) + f(E.borderTopWidth) + f(E.borderBottomWidth);
|
|
939
939
|
u.style.height = "auto";
|
|
940
|
-
const
|
|
941
|
-
u.style.height = `${Math.min(Math.max(
|
|
940
|
+
const j = u.scrollHeight + f(E.borderTopWidth) + f(E.borderBottomWidth), X = N * l.minRows + U, O = l.maxRows ? N * l.maxRows + U : 1 / 0;
|
|
941
|
+
u.style.height = `${Math.min(Math.max(j, X), O)}px`, u.style.overflowY = j > O ? "auto" : "hidden";
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function $(u) {
|
|
944
944
|
o(Je, u);
|
|
945
945
|
}
|
|
946
946
|
function S(u) {
|
|
947
947
|
o(et, u);
|
|
948
948
|
}
|
|
949
949
|
let m, g = 0;
|
|
950
|
-
|
|
950
|
+
we(() => {
|
|
951
951
|
v(), !(typeof ResizeObserver == "undefined" || !c.value) && (g = c.value.clientWidth, m = new ResizeObserver(([u]) => {
|
|
952
|
-
var
|
|
953
|
-
const E = (
|
|
952
|
+
var N;
|
|
953
|
+
const E = (N = u == null ? void 0 : u.contentRect.width) != null ? N : 0;
|
|
954
954
|
E !== g && (g = E, v());
|
|
955
955
|
}), m.observe(c.value));
|
|
956
|
-
}),
|
|
957
|
-
const h = La(), k = (u) => u === "class" || u === "style" || u.startsWith("data-"),
|
|
956
|
+
}), de(() => m == null ? void 0 : m.disconnect()), J(() => [t.value, l.autoGrow, l.minRows, l.maxRows], v, { flush: "post" });
|
|
957
|
+
const h = La(), k = (u) => u === "class" || u === "style" || u.startsWith("data-"), _ = y(
|
|
958
958
|
() => Object.fromEntries(Object.entries(h).filter(([u]) => k(u)))
|
|
959
959
|
), w = y(
|
|
960
960
|
() => Object.fromEntries(Object.entries(h).filter(([u]) => !k(u)))
|
|
961
961
|
);
|
|
962
|
-
return (u, E) => (a(), n("div",
|
|
962
|
+
return (u, E) => (a(), n("div", Be({
|
|
963
963
|
class: ["ds-textarea", [
|
|
964
964
|
`ds-textarea--${e.variant}`,
|
|
965
965
|
`ds-textarea--resize-${e.resize}`,
|
|
@@ -971,15 +971,15 @@ const Qe = {
|
|
|
971
971
|
"is-readonly": e.readonly
|
|
972
972
|
}
|
|
973
973
|
]]
|
|
974
|
-
},
|
|
974
|
+
}, _.value), [
|
|
975
975
|
u.$slots.leading ? (a(), n("span", Tl, [
|
|
976
976
|
x(u.$slots, "leading")
|
|
977
977
|
])) : p("", !0),
|
|
978
|
-
vt(r("textarea",
|
|
978
|
+
vt(r("textarea", Be(w.value, {
|
|
979
979
|
id: e.id || void 0,
|
|
980
980
|
ref_key: "control",
|
|
981
981
|
ref: c,
|
|
982
|
-
"onUpdate:modelValue": E[0] || (E[0] = (
|
|
982
|
+
"onUpdate:modelValue": E[0] || (E[0] = (N) => s.value = N),
|
|
983
983
|
class: "ds-textarea__control",
|
|
984
984
|
placeholder: e.placeholder,
|
|
985
985
|
rows: e.autoGrow ? e.minRows : e.rows,
|
|
@@ -988,7 +988,7 @@ const Qe = {
|
|
|
988
988
|
name: e.name || void 0,
|
|
989
989
|
"aria-invalid": e.error || void 0,
|
|
990
990
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
991
|
-
onFocus:
|
|
991
|
+
onFocus: $,
|
|
992
992
|
onBlur: S
|
|
993
993
|
}), null, 16, Cl), [
|
|
994
994
|
[Ea, s.value]
|
|
@@ -1041,22 +1041,22 @@ const Qe = {
|
|
|
1041
1041
|
}),
|
|
1042
1042
|
emits: /* @__PURE__ */ be([ve], ["update:visible"]),
|
|
1043
1043
|
setup(e, { emit: i }) {
|
|
1044
|
-
const t = e, l = i, o =
|
|
1045
|
-
function
|
|
1044
|
+
const t = e, l = i, o = Re(e, "visible"), s = xe(), c = y(() => Ol[t.type]), f = y(() => !!s.default || t.description.length > 0), v = y(() => !!s.title || t.title.length > 0);
|
|
1045
|
+
function $() {
|
|
1046
1046
|
o.value = !1, l(ve);
|
|
1047
1047
|
}
|
|
1048
|
-
return (S, m) => (a(),
|
|
1048
|
+
return (S, m) => (a(), Z(Ce, { name: "ds-alert-fade" }, {
|
|
1049
1049
|
default: M(() => [
|
|
1050
1050
|
o.value ? (a(), n("div", {
|
|
1051
1051
|
key: 0,
|
|
1052
|
-
class:
|
|
1052
|
+
class: C(["ds-alert", [`ds-alert--${e.type}`, `ds-alert--${e.effect}`, { "is-center": e.center }]]),
|
|
1053
1053
|
role: "alert"
|
|
1054
1054
|
}, [
|
|
1055
1055
|
e.showIcon ? (a(), n("i", Bl, b(c.value), 1)) : p("", !0),
|
|
1056
1056
|
r("div", Ml, [
|
|
1057
1057
|
v.value ? (a(), n("div", {
|
|
1058
1058
|
key: 0,
|
|
1059
|
-
class:
|
|
1059
|
+
class: C(["ds-alert__title", { "has-body": f.value, "is-bold": f.value || e.boldTitle }])
|
|
1060
1060
|
}, [
|
|
1061
1061
|
x(S.$slots, "title", {}, () => [
|
|
1062
1062
|
ee(b(e.title), 1)
|
|
@@ -1073,7 +1073,7 @@ const Qe = {
|
|
|
1073
1073
|
type: "button",
|
|
1074
1074
|
class: "ds-alert__close",
|
|
1075
1075
|
"aria-label": e.closeLabel || void 0,
|
|
1076
|
-
onClick:
|
|
1076
|
+
onClick: $
|
|
1077
1077
|
}, [...m[0] || (m[0] = [
|
|
1078
1078
|
r("i", {
|
|
1079
1079
|
class: "material-symbols-filled",
|
|
@@ -1172,17 +1172,17 @@ const Gl = ["role"], Hl = {
|
|
|
1172
1172
|
}), f = ql(t.position), v = y(
|
|
1173
1173
|
() => t.linkTarget === zt.BLANK ? "noopener noreferrer" : void 0
|
|
1174
1174
|
);
|
|
1175
|
-
let
|
|
1175
|
+
let $, S = 0, m = t.duration;
|
|
1176
1176
|
function g() {
|
|
1177
|
-
|
|
1177
|
+
$ && (clearTimeout($), $ = void 0);
|
|
1178
1178
|
}
|
|
1179
1179
|
function h(E) {
|
|
1180
|
-
g(), !(t.duration <= 0 || !o.value) && (S = Date.now(),
|
|
1180
|
+
g(), !(t.duration <= 0 || !o.value) && (S = Date.now(), $ = setTimeout(w, E));
|
|
1181
1181
|
}
|
|
1182
1182
|
function k() {
|
|
1183
|
-
|
|
1183
|
+
$ && (m -= Date.now() - S, g());
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function _() {
|
|
1186
1186
|
h(m > 0 ? m : t.duration);
|
|
1187
1187
|
}
|
|
1188
1188
|
function w() {
|
|
@@ -1191,22 +1191,22 @@ const Gl = ["role"], Hl = {
|
|
|
1191
1191
|
function u(E) {
|
|
1192
1192
|
l(It, E);
|
|
1193
1193
|
}
|
|
1194
|
-
return
|
|
1195
|
-
|
|
1194
|
+
return we(() => h(t.duration)), de(g), (E, N) => (a(), Z(Xe, { to: d(f) }, [
|
|
1195
|
+
q(Ce, {
|
|
1196
1196
|
name: "ds-notification",
|
|
1197
1197
|
appear: ""
|
|
1198
1198
|
}, {
|
|
1199
1199
|
default: M(() => [
|
|
1200
1200
|
o.value ? (a(), n("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
|
-
class:
|
|
1203
|
-
style:
|
|
1202
|
+
class: C(["ds-notification", `ds-notification--${e.position}`]),
|
|
1203
|
+
style: Q({ zIndex: d(ht) })
|
|
1204
1204
|
}, [
|
|
1205
1205
|
r("div", {
|
|
1206
|
-
class:
|
|
1206
|
+
class: C(["ds-notification__card", `ds-notification__card--${e.type}`]),
|
|
1207
1207
|
role: c.value,
|
|
1208
1208
|
onMouseenter: k,
|
|
1209
|
-
onMouseleave:
|
|
1209
|
+
onMouseleave: _
|
|
1210
1210
|
}, [
|
|
1211
1211
|
r("i", Hl, b(s.value), 1),
|
|
1212
1212
|
r("div", Kl, [
|
|
@@ -1227,7 +1227,7 @@ const Gl = ["role"], Hl = {
|
|
|
1227
1227
|
class: "ds-notification__close",
|
|
1228
1228
|
"aria-label": e.closeLabel || void 0,
|
|
1229
1229
|
onClick: w
|
|
1230
|
-
}, [...
|
|
1230
|
+
}, [...N[0] || (N[0] = [
|
|
1231
1231
|
r("i", {
|
|
1232
1232
|
class: "material-symbols-filled",
|
|
1233
1233
|
"aria-hidden": "true"
|
|
@@ -1280,7 +1280,7 @@ const Gl = ["role"], Hl = {
|
|
|
1280
1280
|
function v() {
|
|
1281
1281
|
t.fixed && t.closeOnBackdrop && l(ve);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function $() {
|
|
1284
1284
|
return o.value ? Array.from(o.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
1285
1285
|
(k) => k.offsetParent !== null
|
|
1286
1286
|
) : [];
|
|
@@ -1292,55 +1292,55 @@ const Gl = ["role"], Hl = {
|
|
|
1292
1292
|
return;
|
|
1293
1293
|
}
|
|
1294
1294
|
if (h.key !== "Tab") return;
|
|
1295
|
-
const k =
|
|
1295
|
+
const k = $();
|
|
1296
1296
|
if (k.length === 0) {
|
|
1297
1297
|
h.preventDefault(), (u = o.value) == null || u.focus();
|
|
1298
1298
|
return;
|
|
1299
1299
|
}
|
|
1300
|
-
const
|
|
1301
|
-
h.shiftKey && document.activeElement ===
|
|
1300
|
+
const _ = k[0], w = k[k.length - 1];
|
|
1301
|
+
h.shiftKey && document.activeElement === _ ? (h.preventDefault(), w.focus()) : !h.shiftKey && document.activeElement === w && (h.preventDefault(), _.focus());
|
|
1302
1302
|
}
|
|
1303
1303
|
function m() {
|
|
1304
1304
|
s = document.activeElement, document.addEventListener("keydown", S), document.body.style.overflow = "hidden", oe(() => {
|
|
1305
1305
|
var h, k;
|
|
1306
|
-
return (k = (h =
|
|
1306
|
+
return (k = (h = $()[0]) != null ? h : o.value) == null ? void 0 : k.focus();
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
1309
1309
|
function g(h = !0) {
|
|
1310
1310
|
var k;
|
|
1311
1311
|
document.removeEventListener("keydown", S), document.body.style.overflow = "", h && ((k = s == null ? void 0 : s.focus) == null || k.call(s));
|
|
1312
1312
|
}
|
|
1313
|
-
return
|
|
1313
|
+
return J(
|
|
1314
1314
|
() => t.open && t.fixed,
|
|
1315
1315
|
(h, k) => {
|
|
1316
1316
|
typeof document != "undefined" && (h ? m() : k && g());
|
|
1317
1317
|
},
|
|
1318
1318
|
{ immediate: !0 }
|
|
1319
|
-
),
|
|
1319
|
+
), de(() => {
|
|
1320
1320
|
typeof document != "undefined" && g(!1);
|
|
1321
|
-
}), (h, k) => (a(),
|
|
1321
|
+
}), (h, k) => (a(), Z(Xe, {
|
|
1322
1322
|
to: "body",
|
|
1323
1323
|
disabled: !e.fixed
|
|
1324
1324
|
}, [
|
|
1325
|
-
|
|
1325
|
+
q(Ce, { name: "ds-modal" }, {
|
|
1326
1326
|
default: M(() => [
|
|
1327
1327
|
e.open ? (a(), n("div", {
|
|
1328
1328
|
key: 0,
|
|
1329
|
-
class:
|
|
1330
|
-
style:
|
|
1329
|
+
class: C(["ds-modal", { "is-fixed": e.fixed }]),
|
|
1330
|
+
style: Q(e.fixed ? { paddingTop: e.top } : void 0),
|
|
1331
1331
|
onClick: v
|
|
1332
1332
|
}, [
|
|
1333
1333
|
r("div", {
|
|
1334
1334
|
ref_key: "dialogRef",
|
|
1335
1335
|
ref: o,
|
|
1336
|
-
class:
|
|
1336
|
+
class: C(["ds-modal__dialog", { "is-center": e.center }]),
|
|
1337
1337
|
role: "dialog",
|
|
1338
1338
|
"aria-modal": e.fixed ? "true" : "false",
|
|
1339
1339
|
"aria-labelledby": e.title ? d(c) : void 0,
|
|
1340
1340
|
"aria-label": e.title ? void 0 : "dialog",
|
|
1341
1341
|
tabindex: "-1",
|
|
1342
|
-
style:
|
|
1343
|
-
onClick: k[1] || (k[1] =
|
|
1342
|
+
style: Q(f.value),
|
|
1343
|
+
onClick: k[1] || (k[1] = Te(() => {
|
|
1344
1344
|
}, ["stop"]))
|
|
1345
1345
|
}, [
|
|
1346
1346
|
e.title || e.showClose ? (a(), n("div", Jl, [
|
|
@@ -1348,13 +1348,13 @@ const Gl = ["role"], Hl = {
|
|
|
1348
1348
|
id: d(c),
|
|
1349
1349
|
class: "ds-modal__title"
|
|
1350
1350
|
}, b(e.title), 9, en),
|
|
1351
|
-
e.showClose ? (a(),
|
|
1351
|
+
e.showClose ? (a(), Z(d(re), {
|
|
1352
1352
|
key: 0,
|
|
1353
1353
|
variant: "tertiary",
|
|
1354
1354
|
circle: "",
|
|
1355
1355
|
"left-icon": "close",
|
|
1356
1356
|
"aria-label": e.closeLabel || void 0,
|
|
1357
|
-
onClick: k[0] || (k[0] = (
|
|
1357
|
+
onClick: k[0] || (k[0] = (_) => l(d(ve)))
|
|
1358
1358
|
}, null, 8, ["aria-label"])) : p("", !0)
|
|
1359
1359
|
])) : p("", !0),
|
|
1360
1360
|
r("div", tn, [
|
|
@@ -1393,7 +1393,7 @@ function sn(e) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
function rn() {
|
|
1396
|
-
return
|
|
1396
|
+
return we(nn), de(on), { isKeyboardFocus: sn };
|
|
1397
1397
|
}
|
|
1398
1398
|
function la(e, { onTriggerHidden: i } = {}) {
|
|
1399
1399
|
const t = R(null);
|
|
@@ -1421,12 +1421,12 @@ function la(e, { onTriggerHidden: i } = {}) {
|
|
|
1421
1421
|
function v() {
|
|
1422
1422
|
typeof window != "undefined" && (c(), !l && (l = !0, window.addEventListener("resize", c), window.addEventListener("scroll", c, { capture: !0, passive: !0 }), f()));
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function $() {
|
|
1425
1425
|
l && (l = !1, window.removeEventListener("resize", c), window.removeEventListener("scroll", c, { capture: !0 }), o == null || o.disconnect(), o = null);
|
|
1426
1426
|
}
|
|
1427
|
-
return
|
|
1427
|
+
return de($), { anchorStyle: s, track: v, untrack: $ };
|
|
1428
1428
|
}
|
|
1429
|
-
const dn = "--ds-overlay-shift",
|
|
1429
|
+
const dn = "--ds-overlay-shift", Le = 8, cn = {
|
|
1430
1430
|
top: "bottom",
|
|
1431
1431
|
bottom: "top",
|
|
1432
1432
|
left: "right",
|
|
@@ -1450,12 +1450,12 @@ function na(e, i, t) {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
const g = e.value, h = t.trigger.value;
|
|
1452
1452
|
if (!g || !h) return;
|
|
1453
|
-
const k = h.getBoundingClientRect(),
|
|
1453
|
+
const k = h.getBoundingClientRect(), _ = t.gap;
|
|
1454
1454
|
if (m === "top" || m === "bottom") {
|
|
1455
|
-
const w = window.innerHeight - k.bottom -
|
|
1455
|
+
const w = window.innerHeight - k.bottom - _ - Le, u = k.top - _ - Le, E = g.offsetHeight;
|
|
1456
1456
|
o.value = m === "bottom" ? E > w && u > w : E > u && w > u;
|
|
1457
1457
|
} else {
|
|
1458
|
-
const w = window.innerWidth - k.right -
|
|
1458
|
+
const w = window.innerWidth - k.right - _ - Le, u = k.left - _ - Le, E = g.offsetWidth;
|
|
1459
1459
|
o.value = m === "right" ? E > w && u > w : E > u && w > u;
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
@@ -1464,18 +1464,18 @@ function na(e, i, t) {
|
|
|
1464
1464
|
f(), l.value = 0, await oe();
|
|
1465
1465
|
const m = e.value;
|
|
1466
1466
|
if (!m) return;
|
|
1467
|
-
const g = m.getBoundingClientRect(), h = i().split("-")[0], k = h === "top" || h === "bottom" || h === "over", [
|
|
1468
|
-
|
|
1467
|
+
const g = m.getBoundingClientRect(), h = i().split("-")[0], k = h === "top" || h === "bottom" || h === "over", [_, w, u] = k ? [g.left, g.right, window.innerWidth] : [g.top, g.bottom, window.innerHeight];
|
|
1468
|
+
_ < Le ? l.value = Le - _ : w > u - Le && (l.value = u - Le - w);
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function $() {
|
|
1471
1471
|
typeof window != "undefined" && (window.addEventListener("resize", v), window.addEventListener("scroll", v, { capture: !0, passive: !0 }), v());
|
|
1472
1472
|
}
|
|
1473
1473
|
function S() {
|
|
1474
1474
|
typeof window != "undefined" && (window.removeEventListener("resize", v), window.removeEventListener("scroll", v, { capture: !0 }), l.value = 0, o.value = !1);
|
|
1475
1475
|
}
|
|
1476
|
-
return { shift: l, shiftStyle: s, resolvedPlacement: c, measure: v, activate:
|
|
1476
|
+
return { shift: l, shiftStyle: s, resolvedPlacement: c, measure: v, activate: $, deactivate: S };
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1478
|
+
const ke = {
|
|
1479
1479
|
TOP: "top",
|
|
1480
1480
|
BOTTOM: "bottom",
|
|
1481
1481
|
LEFT: "left",
|
|
@@ -1487,7 +1487,7 @@ const pe = {
|
|
|
1487
1487
|
content: { type: String, default: "" },
|
|
1488
1488
|
placement: {
|
|
1489
1489
|
type: String,
|
|
1490
|
-
default:
|
|
1490
|
+
default: ke.TOP
|
|
1491
1491
|
},
|
|
1492
1492
|
// Hover delay before showing, ms. Keyboard focus always shows immediately (no delay).
|
|
1493
1493
|
delay: { type: Number, default: 300 },
|
|
@@ -1502,90 +1502,94 @@ const pe = {
|
|
|
1502
1502
|
// scrollable body, a table cell. Mirrors DsPopover's `teleported` (SALESQL-4056): a
|
|
1503
1503
|
// fixed box copies the wrapper's rect and the bubble keeps its existing placement CSS
|
|
1504
1504
|
// against it. Off keeps the bubble inside the wrapper, exactly as before — additive.
|
|
1505
|
-
teleported: { type: Boolean, default: !1 }
|
|
1505
|
+
teleported: { type: Boolean, default: !1 },
|
|
1506
|
+
// Show the bubble while true, with no hover or focus: a consumer reacting to something
|
|
1507
|
+
// the user just did (a value it corrected, say). False leaves hover and focus as they were.
|
|
1508
|
+
open: { type: Boolean, default: !1 }
|
|
1506
1509
|
},
|
|
1507
1510
|
setup(e) {
|
|
1508
|
-
const i = e, t =
|
|
1511
|
+
const i = e, t = xe(), l = me(), o = R(null), s = R(!1), c = R(null), { isKeyboardFocus: f } = rn(), {
|
|
1509
1512
|
shiftStyle: v,
|
|
1510
|
-
resolvedPlacement:
|
|
1513
|
+
resolvedPlacement: $,
|
|
1511
1514
|
activate: S,
|
|
1512
1515
|
deactivate: m
|
|
1513
|
-
} = na(c, () => i.placement, { trigger: o, gap: vn }), { anchorStyle: g, track: h, untrack: k } = la(o);
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1516
|
+
} = na(c, () => i.placement, { trigger: o, gap: vn }), { anchorStyle: g, track: h, untrack: k } = la(o), _ = y(() => !i.disabled && (i.content.length > 0 || !!t.content)), w = y(() => s.value || i.open && _.value);
|
|
1517
|
+
function u(W) {
|
|
1518
|
+
W ? (i.teleported && h(), oe(S)) : (k(), m());
|
|
1519
|
+
}
|
|
1520
|
+
J(w, u), we(() => {
|
|
1521
|
+
w.value && u(!0);
|
|
1522
|
+
}), J(
|
|
1519
1523
|
() => i.disabled,
|
|
1520
|
-
(
|
|
1521
|
-
|
|
1524
|
+
(W) => {
|
|
1525
|
+
W && te();
|
|
1522
1526
|
}
|
|
1523
1527
|
);
|
|
1524
|
-
let
|
|
1525
|
-
function
|
|
1526
|
-
|
|
1528
|
+
let E = !1, N = !1, U = null, j = null, X = null;
|
|
1529
|
+
function O() {
|
|
1530
|
+
U !== null && (clearTimeout(U), U = null);
|
|
1527
1531
|
}
|
|
1528
|
-
function
|
|
1529
|
-
|
|
1532
|
+
function V(W) {
|
|
1533
|
+
W && (j && j !== W && T(), j !== W && (j = W, X = W.getAttribute("aria-describedby"), W.setAttribute(
|
|
1530
1534
|
"aria-describedby",
|
|
1531
|
-
|
|
1535
|
+
X ? `${X} ${l}` : l
|
|
1532
1536
|
)));
|
|
1533
1537
|
}
|
|
1534
|
-
function
|
|
1535
|
-
|
|
1538
|
+
function T() {
|
|
1539
|
+
j && (X !== null ? j.setAttribute("aria-describedby", X) : j.removeAttribute("aria-describedby"), j = null, X = null);
|
|
1536
1540
|
}
|
|
1537
|
-
function
|
|
1538
|
-
|
|
1541
|
+
function D() {
|
|
1542
|
+
_.value && (E = !0, O(), U = setTimeout(() => {
|
|
1539
1543
|
s.value = !0;
|
|
1540
1544
|
}, i.delay));
|
|
1541
1545
|
}
|
|
1542
|
-
function
|
|
1543
|
-
|
|
1546
|
+
function L() {
|
|
1547
|
+
E = !1, O(), N || te();
|
|
1544
1548
|
}
|
|
1545
|
-
function
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1549
|
+
function I(W) {
|
|
1550
|
+
const ie = W.target;
|
|
1551
|
+
!_.value || !N && !f(ie) || (N = !0, O(), s.value = !0, V(ie));
|
|
1548
1552
|
}
|
|
1549
|
-
function
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1553
|
+
function G(W) {
|
|
1554
|
+
const ie = W.relatedTarget, he = W.currentTarget;
|
|
1555
|
+
ie && (he != null && he.contains(ie)) || (N = !1, E || te());
|
|
1552
1556
|
}
|
|
1553
|
-
function
|
|
1554
|
-
|
|
1557
|
+
function te() {
|
|
1558
|
+
O(), s.value = !1, T();
|
|
1555
1559
|
}
|
|
1556
|
-
return
|
|
1557
|
-
|
|
1558
|
-
}), (
|
|
1560
|
+
return de(() => {
|
|
1561
|
+
O(), T(), m();
|
|
1562
|
+
}), (W, ie) => (a(), n("div", {
|
|
1559
1563
|
ref_key: "rootRef",
|
|
1560
1564
|
ref: o,
|
|
1561
|
-
class:
|
|
1562
|
-
onMouseenter:
|
|
1563
|
-
onMouseleave:
|
|
1564
|
-
onFocusin:
|
|
1565
|
-
onFocusout:
|
|
1566
|
-
onKeydown: Ye(
|
|
1565
|
+
class: C(["ds-tooltip", { "ds-tooltip--block": e.block }]),
|
|
1566
|
+
onMouseenter: D,
|
|
1567
|
+
onMouseleave: L,
|
|
1568
|
+
onFocusin: I,
|
|
1569
|
+
onFocusout: G,
|
|
1570
|
+
onKeydown: Ye(te, ["esc"])
|
|
1567
1571
|
}, [
|
|
1568
|
-
x(
|
|
1569
|
-
e.teleported ? (a(),
|
|
1572
|
+
x(W.$slots, "default", {}, void 0, !0),
|
|
1573
|
+
e.teleported ? (a(), Z(Xe, {
|
|
1570
1574
|
key: 0,
|
|
1571
1575
|
to: "body"
|
|
1572
1576
|
}, [
|
|
1573
|
-
|
|
1577
|
+
q(Ce, { name: "ds-tooltip-fade" }, {
|
|
1574
1578
|
default: M(() => [
|
|
1575
|
-
|
|
1579
|
+
w.value ? (a(), n("div", {
|
|
1576
1580
|
key: 0,
|
|
1577
1581
|
class: "ds-tooltip__anchor",
|
|
1578
|
-
style:
|
|
1582
|
+
style: Q(d(g))
|
|
1579
1583
|
}, [
|
|
1580
1584
|
r("div", {
|
|
1581
1585
|
id: d(l),
|
|
1582
1586
|
ref_key: "bubbleRef",
|
|
1583
1587
|
ref: c,
|
|
1584
|
-
class:
|
|
1588
|
+
class: C(["ds-tooltip__bubble", `ds-tooltip__bubble--${d($)}`]),
|
|
1585
1589
|
role: "tooltip",
|
|
1586
|
-
style:
|
|
1590
|
+
style: Q(d(v))
|
|
1587
1591
|
}, [
|
|
1588
|
-
x(
|
|
1592
|
+
x(W.$slots, "content", {}, () => [
|
|
1589
1593
|
ee(b(e.content), 1)
|
|
1590
1594
|
], !0)
|
|
1591
1595
|
], 14, un)
|
|
@@ -1593,21 +1597,21 @@ const pe = {
|
|
|
1593
1597
|
]),
|
|
1594
1598
|
_: 3
|
|
1595
1599
|
})
|
|
1596
|
-
])) : (a(),
|
|
1600
|
+
])) : (a(), Z(Ce, {
|
|
1597
1601
|
key: 1,
|
|
1598
1602
|
name: "ds-tooltip-fade"
|
|
1599
1603
|
}, {
|
|
1600
1604
|
default: M(() => [
|
|
1601
|
-
|
|
1605
|
+
w.value ? (a(), n("div", {
|
|
1602
1606
|
key: 0,
|
|
1603
1607
|
id: d(l),
|
|
1604
1608
|
ref_key: "bubbleRef",
|
|
1605
1609
|
ref: c,
|
|
1606
|
-
class:
|
|
1610
|
+
class: C(["ds-tooltip__bubble", `ds-tooltip__bubble--${d($)}`]),
|
|
1607
1611
|
role: "tooltip",
|
|
1608
|
-
style:
|
|
1612
|
+
style: Q(d(v))
|
|
1609
1613
|
}, [
|
|
1610
|
-
x(
|
|
1614
|
+
x(W.$slots, "content", {}, () => [
|
|
1611
1615
|
ee(b(e.content), 1)
|
|
1612
1616
|
], !0)
|
|
1613
1617
|
], 14, fn)) : p("", !0)
|
|
@@ -1616,7 +1620,7 @@ const pe = {
|
|
|
1616
1620
|
}))
|
|
1617
1621
|
], 34));
|
|
1618
1622
|
}
|
|
1619
|
-
}), ge = /* @__PURE__ */ F(mn, [["__scopeId", "data-v-
|
|
1623
|
+
}), ge = /* @__PURE__ */ F(mn, [["__scopeId", "data-v-339e0d35"]]), ct = {
|
|
1620
1624
|
VERIFIED: "verified",
|
|
1621
1625
|
UNVERIFIED: "unverified",
|
|
1622
1626
|
NEW: "new"
|
|
@@ -1659,11 +1663,11 @@ const pe = {
|
|
|
1659
1663
|
label: "Not verified"
|
|
1660
1664
|
});
|
|
1661
1665
|
return (l, o) => (a(), n("i", {
|
|
1662
|
-
class:
|
|
1666
|
+
class: C(["material-symbols-filled ds-verification-icon", [
|
|
1663
1667
|
`ds-verification-icon--${t.value.state}`,
|
|
1664
1668
|
{ "ds-verification-icon--email": e.isContactData }
|
|
1665
1669
|
]]),
|
|
1666
|
-
style:
|
|
1670
|
+
style: Q({ fontSize: `${e.size}px` }),
|
|
1667
1671
|
role: "img",
|
|
1668
1672
|
"aria-label": e.label || t.value.label,
|
|
1669
1673
|
title: e.label || t.value.label
|
|
@@ -1676,7 +1680,7 @@ const pe = {
|
|
|
1676
1680
|
}), gn = /* @__PURE__ */ F(yn, [["__scopeId", "data-v-c84b2196"]]);
|
|
1677
1681
|
function oa() {
|
|
1678
1682
|
let e = !1;
|
|
1679
|
-
|
|
1683
|
+
de(() => {
|
|
1680
1684
|
e = !0;
|
|
1681
1685
|
});
|
|
1682
1686
|
async function i(t) {
|
|
@@ -1715,7 +1719,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1715
1719
|
// Accessible name for the lock glyph (empty → decorative/aria-hidden).
|
|
1716
1720
|
hideValueLabel: { type: String, default: "" }
|
|
1717
1721
|
},
|
|
1718
|
-
emits: [
|
|
1722
|
+
emits: [Ie, De, Ae],
|
|
1719
1723
|
setup(e, { emit: i }) {
|
|
1720
1724
|
const t = e, l = i, o = R(!1);
|
|
1721
1725
|
let s;
|
|
@@ -1724,18 +1728,18 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1724
1728
|
const S = t.value;
|
|
1725
1729
|
await c(S) && (o.value = !0, clearTimeout(s), s = setTimeout(() => {
|
|
1726
1730
|
o.value = !1;
|
|
1727
|
-
}, 1200), l(
|
|
1731
|
+
}, 1200), l(Ie, S));
|
|
1728
1732
|
}
|
|
1729
1733
|
function v() {
|
|
1730
|
-
l(
|
|
1734
|
+
l(De);
|
|
1731
1735
|
}
|
|
1732
|
-
function
|
|
1733
|
-
l(
|
|
1736
|
+
function $() {
|
|
1737
|
+
l(Ae);
|
|
1734
1738
|
}
|
|
1735
|
-
return
|
|
1736
|
-
class:
|
|
1739
|
+
return de(() => clearTimeout(s)), (S, m) => (a(), n("div", {
|
|
1740
|
+
class: C(["ds-contact-value", { "ds-contact-value--main": e.main }])
|
|
1737
1741
|
}, [
|
|
1738
|
-
|
|
1742
|
+
q(d(gn), {
|
|
1739
1743
|
verified: e.verified,
|
|
1740
1744
|
"is-contact-data": e.isContactData
|
|
1741
1745
|
}, null, 8, ["verified", "is-contact-data"]),
|
|
@@ -1744,7 +1748,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1744
1748
|
title: e.value
|
|
1745
1749
|
}, b(e.value), 9, hn),
|
|
1746
1750
|
r("span", pn, [
|
|
1747
|
-
e.valueType ? (a(),
|
|
1751
|
+
e.valueType ? (a(), Z(d(Wa), {
|
|
1748
1752
|
key: 0,
|
|
1749
1753
|
class: "ds-contact-value__badge",
|
|
1750
1754
|
tone: e.main ? d(ut).ACCENT : d(ut).GREY,
|
|
@@ -1765,7 +1769,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1765
1769
|
}, "lock", 8, Sn)) : (a(), n(K, { key: 1 }, [
|
|
1766
1770
|
r("button", {
|
|
1767
1771
|
type: "button",
|
|
1768
|
-
class:
|
|
1772
|
+
class: C(["ds-contact-value__action", { "is-copied": o.value }]),
|
|
1769
1773
|
"aria-label": o.value ? e.copiedLabel : e.copyLabel,
|
|
1770
1774
|
title: o.value ? e.copiedLabel : e.copyLabel,
|
|
1771
1775
|
onClick: f
|
|
@@ -1782,7 +1786,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1782
1786
|
onClick: v
|
|
1783
1787
|
}, [
|
|
1784
1788
|
r("i", {
|
|
1785
|
-
class:
|
|
1789
|
+
class: C(e.correct === !0 ? "material-symbols-filled" : "material-symbols-rounded"),
|
|
1786
1790
|
"aria-hidden": "true"
|
|
1787
1791
|
}, "thumb_up", 2)
|
|
1788
1792
|
], 8, wn),
|
|
@@ -1792,10 +1796,10 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1792
1796
|
"aria-label": e.incorrectLabel,
|
|
1793
1797
|
"aria-pressed": e.correct === !1,
|
|
1794
1798
|
title: e.incorrectLabel,
|
|
1795
|
-
onClick:
|
|
1799
|
+
onClick: $
|
|
1796
1800
|
}, [
|
|
1797
1801
|
r("i", {
|
|
1798
|
-
class:
|
|
1802
|
+
class: C(e.correct === !1 ? "material-symbols-filled" : "material-symbols-rounded"),
|
|
1799
1803
|
"aria-hidden": "true"
|
|
1800
1804
|
}, "thumb_down", 2)
|
|
1801
1805
|
], 8, Ln)
|
|
@@ -1872,29 +1876,29 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1872
1876
|
toggleLabel: { type: String, default: "Toggle" },
|
|
1873
1877
|
closeLabel: { type: String, default: "Close" }
|
|
1874
1878
|
},
|
|
1875
|
-
emits: [
|
|
1879
|
+
emits: [Ie, wt, Me, ve, De, Ae],
|
|
1876
1880
|
setup(e, { emit: i }) {
|
|
1877
1881
|
const t = e, l = i, o = R(!1), s = y(() => t.more.length + (t.mostLikely ? 1 : 0)), c = y(() => s.value > 3), f = y(() => s.value === 0), v = y(() => t.collapsible && o.value);
|
|
1878
|
-
function
|
|
1882
|
+
function $() {
|
|
1879
1883
|
o.value = !o.value;
|
|
1880
1884
|
}
|
|
1881
1885
|
function S(w) {
|
|
1882
|
-
l(
|
|
1886
|
+
l(Ie, w);
|
|
1883
1887
|
}
|
|
1884
1888
|
function m() {
|
|
1885
1889
|
l(wt);
|
|
1886
1890
|
}
|
|
1887
1891
|
function g() {
|
|
1888
|
-
l(
|
|
1892
|
+
l(Me);
|
|
1889
1893
|
}
|
|
1890
1894
|
function h() {
|
|
1891
1895
|
l(ve);
|
|
1892
1896
|
}
|
|
1893
1897
|
function k(w) {
|
|
1894
|
-
l(
|
|
1898
|
+
l(De, w);
|
|
1895
1899
|
}
|
|
1896
|
-
function
|
|
1897
|
-
l(
|
|
1900
|
+
function _(w) {
|
|
1901
|
+
l(Ae, w);
|
|
1898
1902
|
}
|
|
1899
1903
|
return (w, u) => (a(), n("section", {
|
|
1900
1904
|
class: "ds-data-card",
|
|
@@ -1902,8 +1906,8 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1902
1906
|
"aria-busy": e.loading ? "true" : void 0
|
|
1903
1907
|
}, [
|
|
1904
1908
|
r("div", {
|
|
1905
|
-
class:
|
|
1906
|
-
onClick: u[1] || (u[1] = (E) => e.collapsible &&
|
|
1909
|
+
class: C(["ds-data-card__header", { "is-collapsed": v.value, "is-collapsible": e.collapsible }]),
|
|
1910
|
+
onClick: u[1] || (u[1] = (E) => e.collapsible && $())
|
|
1907
1911
|
}, [
|
|
1908
1912
|
r("div", Cn, [
|
|
1909
1913
|
r("i", In, b(e.icon), 1),
|
|
@@ -1911,7 +1915,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1911
1915
|
]),
|
|
1912
1916
|
r("div", {
|
|
1913
1917
|
class: "ds-data-card__actions",
|
|
1914
|
-
onClick: u[0] || (u[0] =
|
|
1918
|
+
onClick: u[0] || (u[0] = Te(() => {
|
|
1915
1919
|
}, ["stop"]))
|
|
1916
1920
|
}, [
|
|
1917
1921
|
!v.value && e.showEdit ? (a(), n("button", {
|
|
@@ -1920,7 +1924,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1920
1924
|
class: "ds-data-card__edit",
|
|
1921
1925
|
onClick: g
|
|
1922
1926
|
}, b(e.editLabel), 1)) : p("", !0),
|
|
1923
|
-
!v.value && e.showSort ? (a(),
|
|
1927
|
+
!v.value && e.showSort ? (a(), Z(d(re), {
|
|
1924
1928
|
key: 1,
|
|
1925
1929
|
variant: "tertiary",
|
|
1926
1930
|
size: "medium",
|
|
@@ -1929,14 +1933,14 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1929
1933
|
"aria-label": e.sortLabel,
|
|
1930
1934
|
onClick: m
|
|
1931
1935
|
}, null, 8, ["aria-label"])) : p("", !0),
|
|
1932
|
-
e.collapsible ? (a(),
|
|
1936
|
+
e.collapsible ? (a(), Z(d(re), {
|
|
1933
1937
|
key: 2,
|
|
1934
1938
|
variant: "tertiary",
|
|
1935
1939
|
size: "medium",
|
|
1936
1940
|
circle: "",
|
|
1937
1941
|
"left-icon": o.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
1938
1942
|
"aria-label": e.toggleLabel,
|
|
1939
|
-
onClick:
|
|
1943
|
+
onClick: $
|
|
1940
1944
|
}, null, 8, ["left-icon", "aria-label"])) : p("", !0),
|
|
1941
1945
|
e.showClose ? (a(), n("button", {
|
|
1942
1946
|
key: 3,
|
|
@@ -1955,7 +1959,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1955
1959
|
v.value ? p("", !0) : (a(), n("div", Rn, [
|
|
1956
1960
|
e.loading ? (a(), n("div", Nn, [
|
|
1957
1961
|
x(w.$slots, "loading", {}, () => [
|
|
1958
|
-
|
|
1962
|
+
q(d(Ve), {
|
|
1959
1963
|
label: e.loadingLabel || void 0
|
|
1960
1964
|
}, null, 8, ["label"])
|
|
1961
1965
|
], !0)
|
|
@@ -1982,7 +1986,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1982
1986
|
])) : (a(), n(K, { key: 3 }, [
|
|
1983
1987
|
e.mostLikely ? (a(), n("div", qn, [
|
|
1984
1988
|
c.value ? (a(), n("div", Gn, b(e.mostLikelyLabel), 1)) : p("", !0),
|
|
1985
|
-
|
|
1989
|
+
q(d(Vt), {
|
|
1986
1990
|
value: e.mostLikely.value,
|
|
1987
1991
|
"value-type": e.mostLikely.type,
|
|
1988
1992
|
verified: e.mostLikely.verified,
|
|
@@ -1993,13 +1997,13 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
1993
1997
|
"show-rate": e.showRate,
|
|
1994
1998
|
onCopy: S,
|
|
1995
1999
|
onCorrect: u[2] || (u[2] = (E) => k(e.mostLikely)),
|
|
1996
|
-
onIncorrect: u[3] || (u[3] = (E) =>
|
|
2000
|
+
onIncorrect: u[3] || (u[3] = (E) => _(e.mostLikely))
|
|
1997
2001
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate"])
|
|
1998
2002
|
])) : p("", !0),
|
|
1999
2003
|
e.more.length > 0 ? (a(), n("div", Hn, [
|
|
2000
2004
|
c.value ? (a(), n("div", Kn, b(e.moreLabel), 1)) : p("", !0),
|
|
2001
2005
|
r("div", Wn, [
|
|
2002
|
-
(a(!0), n(K, null,
|
|
2006
|
+
(a(!0), n(K, null, le(e.more, (E) => (a(), Z(d(Vt), {
|
|
2003
2007
|
key: E.value,
|
|
2004
2008
|
value: E.value,
|
|
2005
2009
|
"value-type": E.type,
|
|
@@ -2009,8 +2013,8 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2009
2013
|
"is-contact-data": e.isContactData,
|
|
2010
2014
|
"show-rate": e.showRate,
|
|
2011
2015
|
onCopy: S,
|
|
2012
|
-
onCorrect: (
|
|
2013
|
-
onIncorrect: (
|
|
2016
|
+
onCorrect: (N) => k(E),
|
|
2017
|
+
onIncorrect: (N) => _(E)
|
|
2014
2018
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate", "onCorrect", "onIncorrect"]))), 128))
|
|
2015
2019
|
])
|
|
2016
2020
|
])) : p("", !0)
|
|
@@ -2035,12 +2039,12 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2035
2039
|
}),
|
|
2036
2040
|
emits: ["update:modelValue"],
|
|
2037
2041
|
setup(e) {
|
|
2038
|
-
const i =
|
|
2042
|
+
const i = Re(e, "modelValue"), t = e;
|
|
2039
2043
|
function l() {
|
|
2040
2044
|
t.disabled || (i.value = !0);
|
|
2041
2045
|
}
|
|
2042
2046
|
return (o, s) => (a(), n("label", {
|
|
2043
|
-
class:
|
|
2047
|
+
class: C(["ds-radio", { "is-disabled": e.disabled }])
|
|
2044
2048
|
}, [
|
|
2045
2049
|
r("input", {
|
|
2046
2050
|
type: "radio",
|
|
@@ -2052,7 +2056,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2052
2056
|
onChange: l
|
|
2053
2057
|
}, null, 40, jn),
|
|
2054
2058
|
r("span", {
|
|
2055
|
-
class:
|
|
2059
|
+
class: C(["ds-radio__dot", { "is-active": i.value }]),
|
|
2056
2060
|
"aria-hidden": "true"
|
|
2057
2061
|
}, null, 2),
|
|
2058
2062
|
o.$slots.default || e.label ? (a(), n("span", Xn, [
|
|
@@ -2082,12 +2086,12 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2082
2086
|
}),
|
|
2083
2087
|
emits: ["update:modelValue"],
|
|
2084
2088
|
setup(e) {
|
|
2085
|
-
const i =
|
|
2086
|
-
function
|
|
2089
|
+
const i = Re(e, "modelValue"), t = e, l = xe(), o = me(), s = `${o}-input`, c = `${o}-description`, f = y(() => i.value === t.value), v = y(() => !!t.description || !!l.description);
|
|
2090
|
+
function $() {
|
|
2087
2091
|
t.disabled || (i.value = t.value);
|
|
2088
2092
|
}
|
|
2089
2093
|
return (S, m) => (a(), n("div", {
|
|
2090
|
-
class:
|
|
2094
|
+
class: C(["ds-radio-card", { "is-selected": f.value, "is-disabled": e.disabled }])
|
|
2091
2095
|
}, [
|
|
2092
2096
|
r("input", {
|
|
2093
2097
|
id: s,
|
|
@@ -2098,7 +2102,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2098
2102
|
checked: f.value,
|
|
2099
2103
|
disabled: e.disabled,
|
|
2100
2104
|
"aria-describedby": v.value ? c : void 0,
|
|
2101
|
-
onChange:
|
|
2105
|
+
onChange: $
|
|
2102
2106
|
}, null, 40, Qn),
|
|
2103
2107
|
r("div", Jn, [
|
|
2104
2108
|
r("div", eo, [
|
|
@@ -2121,7 +2125,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2121
2125
|
])) : p("", !0)
|
|
2122
2126
|
]),
|
|
2123
2127
|
r("span", {
|
|
2124
|
-
class:
|
|
2128
|
+
class: C(["ds-radio-card__dot", { "is-active": f.value }]),
|
|
2125
2129
|
"aria-hidden": "true"
|
|
2126
2130
|
}, null, 2)
|
|
2127
2131
|
]),
|
|
@@ -2151,14 +2155,14 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2151
2155
|
}),
|
|
2152
2156
|
emits: ["update:modelValue"],
|
|
2153
2157
|
setup(e) {
|
|
2154
|
-
const i =
|
|
2158
|
+
const i = Re(e, "modelValue"), t = e;
|
|
2155
2159
|
function l() {
|
|
2156
2160
|
t.disabled || t.loading || (i.value = !i.value);
|
|
2157
2161
|
}
|
|
2158
2162
|
return (o, s) => (a(), n("button", {
|
|
2159
2163
|
type: "button",
|
|
2160
2164
|
role: "switch",
|
|
2161
|
-
class:
|
|
2165
|
+
class: C(["ds-switch", { "is-disabled": e.disabled, "is-loading": e.loading }]),
|
|
2162
2166
|
"aria-checked": i.value,
|
|
2163
2167
|
"aria-busy": e.loading || void 0,
|
|
2164
2168
|
"aria-disabled": e.disabled || e.loading || void 0,
|
|
@@ -2167,7 +2171,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2167
2171
|
onClick: l
|
|
2168
2172
|
}, [
|
|
2169
2173
|
r("span", no, [
|
|
2170
|
-
e.loading ? (a(),
|
|
2174
|
+
e.loading ? (a(), Z(d(Ve), {
|
|
2171
2175
|
key: 0,
|
|
2172
2176
|
class: "ds-switch__spinner",
|
|
2173
2177
|
size: 12,
|
|
@@ -2199,7 +2203,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2199
2203
|
var f;
|
|
2200
2204
|
return a(), n("button", {
|
|
2201
2205
|
type: "button",
|
|
2202
|
-
class:
|
|
2206
|
+
class: C(["ds-item-selector-button", { "is-empty": !e.item, "is-disabled": e.disabled }]),
|
|
2203
2207
|
"aria-haspopup": "listbox",
|
|
2204
2208
|
"aria-label": e.ariaLabel || void 0,
|
|
2205
2209
|
disabled: e.disabled,
|
|
@@ -2208,8 +2212,8 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2208
2212
|
r("span", so, b(e.item ? e.item.name : e.emptyTitle), 1),
|
|
2209
2213
|
e.icon ? (a(), n("i", {
|
|
2210
2214
|
key: 0,
|
|
2211
|
-
class:
|
|
2212
|
-
style:
|
|
2215
|
+
class: C(["ds-item-selector-button__icon", e.item ? "material-symbols-filled" : "material-symbols-rounded"]),
|
|
2216
|
+
style: Q((f = e.item) != null && f.color ? { color: e.item.color } : void 0),
|
|
2213
2217
|
"aria-hidden": "true"
|
|
2214
2218
|
}, b(e.icon), 7)) : p("", !0)
|
|
2215
2219
|
], 10, io);
|
|
@@ -2295,10 +2299,10 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2295
2299
|
modelValue: { default: null },
|
|
2296
2300
|
modelModifiers: {}
|
|
2297
2301
|
}),
|
|
2298
|
-
emits: /* @__PURE__ */ be([
|
|
2302
|
+
emits: /* @__PURE__ */ be([$e], ["update:modelValue"]),
|
|
2299
2303
|
setup(e, { emit: i }) {
|
|
2300
|
-
const t = e, l = i, o =
|
|
2301
|
-
if (
|
|
2304
|
+
const t = e, l = i, o = Re(e, "modelValue"), s = `ds-select-${me()}`, c = `${s}-listbox`, f = (A) => `${s}-option-${A}`, v = R(null), $ = R(null), S = R(null), m = R(!1), g = R(-1), h = R(""), k = y(() => t.selectType === qt.FILTER_SUMMARY), _ = y(() => t.filterable && !t.remote), w = y(() => {
|
|
2305
|
+
if (!_.value) return t.options;
|
|
2302
2306
|
const A = h.value.trim().toLowerCase();
|
|
2303
2307
|
return A ? t.options.filter(
|
|
2304
2308
|
(H) => H.label.toLowerCase().includes(A) || (H.subLabel ? H.subLabel.toLowerCase().includes(A) : !1)
|
|
@@ -2307,86 +2311,86 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2307
2311
|
() => t.loading ? [] : w.value
|
|
2308
2312
|
), E = y(() => {
|
|
2309
2313
|
const A = [];
|
|
2310
|
-
return u.value.forEach((H,
|
|
2311
|
-
const B = H.group,
|
|
2312
|
-
B ? (
|
|
2314
|
+
return u.value.forEach((H, z) => {
|
|
2315
|
+
const B = H.group, Y = A[A.length - 1];
|
|
2316
|
+
B ? (Y == null ? void 0 : Y.kind) === "group" && Y.label === B ? Y.items.push({ option: H, index: z }) : A.push({
|
|
2313
2317
|
kind: "group",
|
|
2314
2318
|
label: B,
|
|
2315
|
-
headerId: `${s}-group-${
|
|
2316
|
-
key: `g-${
|
|
2317
|
-
items: [{ option: H, index:
|
|
2318
|
-
}) : (
|
|
2319
|
+
headerId: `${s}-group-${z}`,
|
|
2320
|
+
key: `g-${z}`,
|
|
2321
|
+
items: [{ option: H, index: z }]
|
|
2322
|
+
}) : (Y == null ? void 0 : Y.kind) === "plain" ? Y.items.push({ option: H, index: z }) : A.push({ kind: "plain", key: `p-${z}`, items: [{ option: H, index: z }] });
|
|
2319
2323
|
}), A;
|
|
2320
|
-
}),
|
|
2321
|
-
function
|
|
2322
|
-
return
|
|
2324
|
+
}), N = y(() => t.multiple ? Array.isArray(o.value) ? o.value : [] : o.value !== null && o.value !== void 0 ? [o.value] : []), U = y(() => N.value.length > 0), j = y(() => k.value && U.value);
|
|
2325
|
+
function X(A) {
|
|
2326
|
+
return N.value.includes(A);
|
|
2323
2327
|
}
|
|
2324
|
-
const
|
|
2325
|
-
|
|
2328
|
+
const O = Ta(/* @__PURE__ */ new Map());
|
|
2329
|
+
J(
|
|
2326
2330
|
() => t.options,
|
|
2327
|
-
(A) => A.forEach((H) =>
|
|
2331
|
+
(A) => A.forEach((H) => O.set(H.value, H.label)),
|
|
2328
2332
|
{ immediate: !0, deep: !0 }
|
|
2329
2333
|
);
|
|
2330
|
-
function
|
|
2331
|
-
var H,
|
|
2332
|
-
return (B = (
|
|
2334
|
+
function V(A) {
|
|
2335
|
+
var H, z, B;
|
|
2336
|
+
return (B = (z = (H = t.options.find((Y) => Y.value === A)) == null ? void 0 : H.label) != null ? z : O.get(A)) != null ? B : String(A);
|
|
2333
2337
|
}
|
|
2334
|
-
const T = y(() => k.value ?
|
|
2338
|
+
const T = y(() => k.value ? U.value ? t.multiple ? `${t.placeholder} (${N.value.length})` : V(N.value[0]) : t.placeholder : U.value ? t.multiple ? N.value.map(V).join(", ") : V(N.value[0]) : t.placeholder), D = Object.values(Gt), L = y(
|
|
2335
2339
|
() => typeof t.width == "string" && D.includes(t.width) ? `ds-select--w-${t.width}` : null
|
|
2336
|
-
),
|
|
2340
|
+
), I = y(() => {
|
|
2337
2341
|
if (!L.value)
|
|
2338
2342
|
return { width: typeof t.width == "number" ? `${t.width}px` : t.width };
|
|
2339
|
-
}),
|
|
2343
|
+
}), G = y(
|
|
2340
2344
|
() => m.value && g.value >= 0 ? f(g.value) : void 0
|
|
2341
2345
|
);
|
|
2342
|
-
function
|
|
2346
|
+
function te() {
|
|
2343
2347
|
if (u.value.length === 0) return -1;
|
|
2344
|
-
const A = u.value.findIndex((H) =>
|
|
2348
|
+
const A = u.value.findIndex((H) => X(H.value));
|
|
2345
2349
|
return A >= 0 ? A : 0;
|
|
2346
2350
|
}
|
|
2347
|
-
function
|
|
2348
|
-
t.disabled || (m.value = !0, g.value =
|
|
2351
|
+
function W() {
|
|
2352
|
+
t.disabled || (m.value = !0, g.value = te(), t.filterable && oe(() => {
|
|
2349
2353
|
var A;
|
|
2350
2354
|
return (A = S.value) == null ? void 0 : A.focus();
|
|
2351
2355
|
}));
|
|
2352
2356
|
}
|
|
2353
|
-
function
|
|
2354
|
-
m.value = !1, g.value = -1, h.value && (h.value = "", l(
|
|
2357
|
+
function ie(A = !0) {
|
|
2358
|
+
m.value = !1, g.value = -1, h.value && (h.value = "", l($e, "")), A && oe(() => {
|
|
2355
2359
|
var H;
|
|
2356
|
-
return (H =
|
|
2360
|
+
return (H = $.value) == null ? void 0 : H.focus();
|
|
2357
2361
|
});
|
|
2358
2362
|
}
|
|
2359
|
-
function
|
|
2360
|
-
t.disabled || (m.value ?
|
|
2363
|
+
function he() {
|
|
2364
|
+
t.disabled || (m.value ? ie() : W());
|
|
2361
2365
|
}
|
|
2362
|
-
function
|
|
2366
|
+
function Se(A) {
|
|
2363
2367
|
if (t.disabled) return;
|
|
2364
2368
|
if (t.multiple) {
|
|
2365
|
-
const
|
|
2366
|
-
o.value =
|
|
2369
|
+
const z = N.value;
|
|
2370
|
+
o.value = z.includes(A) ? z.filter((B) => B !== A) : [...z, A];
|
|
2367
2371
|
return;
|
|
2368
2372
|
}
|
|
2369
|
-
const H =
|
|
2370
|
-
o.value = H && t.showCheckbox ? null : A,
|
|
2373
|
+
const H = X(A);
|
|
2374
|
+
o.value = H && t.showCheckbox ? null : A, ie();
|
|
2371
2375
|
}
|
|
2372
|
-
function
|
|
2376
|
+
function ae() {
|
|
2373
2377
|
t.disabled || (o.value = t.multiple ? [] : null);
|
|
2374
2378
|
}
|
|
2375
|
-
function
|
|
2379
|
+
function ne(A) {
|
|
2376
2380
|
const H = u.value.length;
|
|
2377
2381
|
H !== 0 && (g.value < 0 ? g.value = A > 0 ? 0 : H - 1 : g.value = (g.value + A + H) % H, oe(() => {
|
|
2378
|
-
var
|
|
2379
|
-
(B = (
|
|
2382
|
+
var z, B;
|
|
2383
|
+
(B = (z = document.getElementById(f(g.value))) == null ? void 0 : z.scrollIntoView) == null || B.call(z, { block: "nearest" });
|
|
2380
2384
|
}));
|
|
2381
2385
|
}
|
|
2382
|
-
function
|
|
2386
|
+
function se(A) {
|
|
2383
2387
|
if (!t.disabled)
|
|
2384
2388
|
switch (A.key) {
|
|
2385
2389
|
case "ArrowDown":
|
|
2386
|
-
A.preventDefault(), m.value ?
|
|
2390
|
+
A.preventDefault(), m.value ? ne(1) : W();
|
|
2387
2391
|
break;
|
|
2388
2392
|
case "ArrowUp":
|
|
2389
|
-
A.preventDefault(), m.value ?
|
|
2393
|
+
A.preventDefault(), m.value ? ne(-1) : W();
|
|
2390
2394
|
break;
|
|
2391
2395
|
case "Home":
|
|
2392
2396
|
m.value && (A.preventDefault(), g.value = 0);
|
|
@@ -2398,95 +2402,95 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2398
2402
|
case " ":
|
|
2399
2403
|
case "Spacebar":
|
|
2400
2404
|
if (A.preventDefault(), !m.value)
|
|
2401
|
-
|
|
2405
|
+
W();
|
|
2402
2406
|
else if (g.value >= 0) {
|
|
2403
2407
|
const H = u.value[g.value];
|
|
2404
|
-
H &&
|
|
2408
|
+
H && Se(H.value);
|
|
2405
2409
|
}
|
|
2406
2410
|
break;
|
|
2407
2411
|
case "Escape":
|
|
2408
|
-
m.value && (A.preventDefault(), A.stopPropagation(),
|
|
2412
|
+
m.value && (A.preventDefault(), A.stopPropagation(), ie());
|
|
2409
2413
|
break;
|
|
2410
2414
|
case "Tab":
|
|
2411
|
-
m.value &&
|
|
2415
|
+
m.value && ie(!1);
|
|
2412
2416
|
break;
|
|
2413
2417
|
}
|
|
2414
2418
|
}
|
|
2415
|
-
function
|
|
2419
|
+
function Ne(A) {
|
|
2416
2420
|
if (!t.disabled)
|
|
2417
2421
|
switch (A.key) {
|
|
2418
2422
|
case "ArrowDown":
|
|
2419
|
-
A.preventDefault(),
|
|
2423
|
+
A.preventDefault(), ne(1);
|
|
2420
2424
|
break;
|
|
2421
2425
|
case "ArrowUp":
|
|
2422
|
-
A.preventDefault(),
|
|
2426
|
+
A.preventDefault(), ne(-1);
|
|
2423
2427
|
break;
|
|
2424
2428
|
case "Enter":
|
|
2425
2429
|
if (A.preventDefault(), g.value >= 0) {
|
|
2426
2430
|
const H = u.value[g.value];
|
|
2427
|
-
H &&
|
|
2431
|
+
H && Se(H.value);
|
|
2428
2432
|
}
|
|
2429
2433
|
break;
|
|
2430
2434
|
case "Escape":
|
|
2431
|
-
A.preventDefault(), A.stopPropagation(),
|
|
2435
|
+
A.preventDefault(), A.stopPropagation(), ie();
|
|
2432
2436
|
break;
|
|
2433
2437
|
case "Tab":
|
|
2434
|
-
m.value &&
|
|
2438
|
+
m.value && ie(!1);
|
|
2435
2439
|
break;
|
|
2436
2440
|
}
|
|
2437
2441
|
}
|
|
2438
2442
|
function it(A) {
|
|
2439
|
-
h.value = A.target.value, l(
|
|
2443
|
+
h.value = A.target.value, l($e, h.value);
|
|
2440
2444
|
}
|
|
2441
|
-
|
|
2445
|
+
J(u, (A) => {
|
|
2442
2446
|
m.value && (A.length === 0 ? g.value = -1 : (g.value < 0 || g.value >= A.length) && (g.value = 0));
|
|
2443
2447
|
});
|
|
2444
2448
|
function Ke(A) {
|
|
2445
|
-
v.value && !v.value.contains(A.target) &&
|
|
2449
|
+
v.value && !v.value.contains(A.target) && ie(!1);
|
|
2446
2450
|
}
|
|
2447
|
-
return
|
|
2451
|
+
return J(m, (A) => {
|
|
2448
2452
|
typeof document != "undefined" && (A ? document.addEventListener("mousedown", Ke) : document.removeEventListener("mousedown", Ke));
|
|
2449
|
-
}),
|
|
2453
|
+
}), J(
|
|
2450
2454
|
() => t.disabled,
|
|
2451
2455
|
(A) => {
|
|
2452
|
-
A && m.value &&
|
|
2456
|
+
A && m.value && ie(!1);
|
|
2453
2457
|
}
|
|
2454
|
-
),
|
|
2458
|
+
), de(() => {
|
|
2455
2459
|
typeof document != "undefined" && document.removeEventListener("mousedown", Ke);
|
|
2456
2460
|
}), (A, H) => (a(), n("div", {
|
|
2457
2461
|
ref_key: "rootRef",
|
|
2458
2462
|
ref: v,
|
|
2459
|
-
class:
|
|
2460
|
-
style:
|
|
2463
|
+
class: C(["ds-select", [`ds-select--${e.selectType}`, L.value, { "is-open": m.value }]]),
|
|
2464
|
+
style: Q(I.value)
|
|
2461
2465
|
}, [
|
|
2462
2466
|
r("div", {
|
|
2463
|
-
class:
|
|
2467
|
+
class: C(["ds-select__control", { "is-disabled": e.disabled, "is-filter-selected": j.value }])
|
|
2464
2468
|
}, [
|
|
2465
2469
|
r("button", {
|
|
2466
2470
|
ref_key: "triggerRef",
|
|
2467
|
-
ref:
|
|
2471
|
+
ref: $,
|
|
2468
2472
|
type: "button",
|
|
2469
2473
|
class: "ds-select__trigger",
|
|
2470
2474
|
disabled: e.disabled,
|
|
2471
2475
|
"aria-haspopup": "listbox",
|
|
2472
2476
|
"aria-expanded": m.value,
|
|
2473
2477
|
"aria-controls": m.value ? c : void 0,
|
|
2474
|
-
"aria-activedescendant": e.filterable ? void 0 :
|
|
2475
|
-
onClick:
|
|
2476
|
-
onKeydown:
|
|
2478
|
+
"aria-activedescendant": e.filterable ? void 0 : G.value,
|
|
2479
|
+
onClick: he,
|
|
2480
|
+
onKeydown: se
|
|
2477
2481
|
}, [
|
|
2478
2482
|
r("span", {
|
|
2479
2483
|
class: "ds-select__summary",
|
|
2480
2484
|
title: T.value
|
|
2481
2485
|
}, b(T.value), 9, uo)
|
|
2482
2486
|
], 40, co),
|
|
2483
|
-
k.value &&
|
|
2487
|
+
k.value && U.value ? (a(), n("button", {
|
|
2484
2488
|
key: 0,
|
|
2485
2489
|
type: "button",
|
|
2486
2490
|
class: "ds-select__clear",
|
|
2487
2491
|
disabled: e.disabled,
|
|
2488
2492
|
"aria-label": e.clearLabel || void 0,
|
|
2489
|
-
onClick:
|
|
2493
|
+
onClick: ae
|
|
2490
2494
|
}, [...H[1] || (H[1] = [
|
|
2491
2495
|
r("i", {
|
|
2492
2496
|
class: "material-symbols-filled",
|
|
@@ -2508,14 +2512,14 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2508
2512
|
role: "combobox",
|
|
2509
2513
|
"aria-expanded": "true",
|
|
2510
2514
|
"aria-controls": c,
|
|
2511
|
-
"aria-activedescendant":
|
|
2515
|
+
"aria-activedescendant": G.value,
|
|
2512
2516
|
"aria-autocomplete": "list",
|
|
2513
2517
|
autocomplete: "off",
|
|
2514
2518
|
"aria-label": e.searchLabel,
|
|
2515
2519
|
placeholder: e.searchPlaceholder,
|
|
2516
2520
|
value: h.value,
|
|
2517
2521
|
onInput: it,
|
|
2518
|
-
onKeydown:
|
|
2522
|
+
onKeydown: Ne
|
|
2519
2523
|
}, null, 40, yo)
|
|
2520
2524
|
])) : p("", !0),
|
|
2521
2525
|
r("ul", {
|
|
@@ -2524,54 +2528,54 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2524
2528
|
role: "listbox",
|
|
2525
2529
|
"aria-multiselectable": e.multiple || void 0,
|
|
2526
2530
|
"aria-busy": e.loading || void 0,
|
|
2527
|
-
onMousedown: H[0] || (H[0] =
|
|
2531
|
+
onMousedown: H[0] || (H[0] = Te(() => {
|
|
2528
2532
|
}, ["prevent"]))
|
|
2529
2533
|
}, [
|
|
2530
2534
|
e.loading ? (a(), n("li", ho, [
|
|
2531
2535
|
x(A.$slots, "loading", {}, () => [
|
|
2532
|
-
|
|
2536
|
+
q(d(Ve), { size: "small" })
|
|
2533
2537
|
], !0)
|
|
2534
2538
|
])) : (a(), n(K, { key: 1 }, [
|
|
2535
|
-
(a(!0), n(K, null,
|
|
2536
|
-
key:
|
|
2537
|
-
role:
|
|
2538
|
-
"aria-labelledby":
|
|
2539
|
-
class:
|
|
2539
|
+
(a(!0), n(K, null, le(E.value, (z) => (a(), n("li", {
|
|
2540
|
+
key: z.key,
|
|
2541
|
+
role: z.kind === "group" ? "group" : "presentation",
|
|
2542
|
+
"aria-labelledby": z.kind === "group" ? z.headerId : void 0,
|
|
2543
|
+
class: C(z.kind === "group" ? "ds-select__group" : "ds-select__run")
|
|
2540
2544
|
}, [
|
|
2541
|
-
|
|
2545
|
+
z.kind === "group" ? (a(), n("span", {
|
|
2542
2546
|
key: 0,
|
|
2543
|
-
id:
|
|
2547
|
+
id: z.headerId,
|
|
2544
2548
|
class: "ds-select__group-header"
|
|
2545
|
-
}, b(
|
|
2546
|
-
(a(!0), n(K, null,
|
|
2549
|
+
}, b(z.label), 9, ko)) : p("", !0),
|
|
2550
|
+
(a(!0), n(K, null, le(z.items, (B) => (a(), n("div", {
|
|
2547
2551
|
id: f(B.index),
|
|
2548
2552
|
key: B.option.value,
|
|
2549
|
-
class:
|
|
2550
|
-
"is-selected":
|
|
2553
|
+
class: C(["ds-select__option", {
|
|
2554
|
+
"is-selected": X(B.option.value),
|
|
2551
2555
|
"is-active": B.index === g.value,
|
|
2552
2556
|
"ds-select__option--checkbox": e.showCheckbox
|
|
2553
2557
|
}]),
|
|
2554
2558
|
role: "option",
|
|
2555
|
-
"aria-selected":
|
|
2556
|
-
onClick:
|
|
2557
|
-
onMouseenter: (
|
|
2559
|
+
"aria-selected": X(B.option.value),
|
|
2560
|
+
onClick: Te((Y) => Se(B.option.value), ["prevent"]),
|
|
2561
|
+
onMouseenter: (Y) => g.value = B.index
|
|
2558
2562
|
}, [
|
|
2559
|
-
e.showCheckbox ? (a(),
|
|
2563
|
+
e.showCheckbox ? (a(), Z(d(lt), {
|
|
2560
2564
|
key: 0,
|
|
2561
2565
|
class: "ds-select__option-check",
|
|
2562
|
-
"model-value":
|
|
2566
|
+
"model-value": X(B.option.value),
|
|
2563
2567
|
disabled: "",
|
|
2564
2568
|
"aria-hidden": "true"
|
|
2565
2569
|
}, null, 8, ["model-value"])) : p("", !0),
|
|
2566
2570
|
x(A.$slots, "option", {
|
|
2567
2571
|
option: B.option,
|
|
2568
|
-
selected:
|
|
2572
|
+
selected: X(B.option.value),
|
|
2569
2573
|
active: B.index === g.value
|
|
2570
2574
|
}, () => [
|
|
2571
2575
|
B.option.icon ? (a(), n("i", {
|
|
2572
2576
|
key: 0,
|
|
2573
2577
|
class: "material-symbols-filled ds-select__option-icon",
|
|
2574
|
-
style:
|
|
2578
|
+
style: Q(B.option.color ? { color: B.option.color } : void 0),
|
|
2575
2579
|
"aria-hidden": "true"
|
|
2576
2580
|
}, b(B.option.icon), 5)) : p("", !0),
|
|
2577
2581
|
r("span", _o, [
|
|
@@ -2607,7 +2611,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2607
2611
|
t.clickable && (c.key === "Enter" || c.key === " ") && (c.preventDefault(), l(ye));
|
|
2608
2612
|
}
|
|
2609
2613
|
return (c, f) => (a(), n("tr", {
|
|
2610
|
-
class:
|
|
2614
|
+
class: C(["ds-row", { "is-selected": e.selected, "is-clickable": e.clickable }]),
|
|
2611
2615
|
tabindex: e.clickable ? 0 : void 0,
|
|
2612
2616
|
onClick: o,
|
|
2613
2617
|
onKeydown: s
|
|
@@ -2638,19 +2642,19 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2638
2642
|
if (i.width != null && (o.width = t(i.width)), i.pinned) {
|
|
2639
2643
|
o.position = "sticky";
|
|
2640
2644
|
const s = i.pinnedOffset == null ? "0px" : t(i.pinnedOffset);
|
|
2641
|
-
o[i.pinned ===
|
|
2645
|
+
o[i.pinned === _e.LEFT ? "left" : "right"] = s;
|
|
2642
2646
|
}
|
|
2643
2647
|
return Object.keys(o).length ? o : void 0;
|
|
2644
2648
|
});
|
|
2645
2649
|
return (o, s) => (a(), n("td", {
|
|
2646
|
-
class:
|
|
2650
|
+
class: C(["ds-cell", {
|
|
2647
2651
|
"is-accent": e.first && e.selected,
|
|
2648
2652
|
"is-truncated": e.truncate,
|
|
2649
2653
|
"is-selected": e.selected,
|
|
2650
2654
|
"is-pinned": !!e.pinned,
|
|
2651
2655
|
[`is-pinned--${e.pinned}`]: !!e.pinned
|
|
2652
2656
|
}]),
|
|
2653
|
-
style:
|
|
2657
|
+
style: Q(l.value)
|
|
2654
2658
|
}, [
|
|
2655
2659
|
x(o.$slots, "default", {}, void 0, !0)
|
|
2656
2660
|
], 6));
|
|
@@ -2677,7 +2681,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2677
2681
|
},
|
|
2678
2682
|
setup(e) {
|
|
2679
2683
|
return (i, t) => (a(), n("span", {
|
|
2680
|
-
class:
|
|
2684
|
+
class: C(["ds-custom-tag", [`ds-custom-tag--${e.type}`, { "is-round": e.round }]])
|
|
2681
2685
|
}, [
|
|
2682
2686
|
x(i.$slots, "default", {}, void 0, !0)
|
|
2683
2687
|
], 2));
|
|
@@ -2722,8 +2726,8 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2722
2726
|
setup(e, { emit: i }) {
|
|
2723
2727
|
const t = i;
|
|
2724
2728
|
return (l, o) => (a(), n("span", {
|
|
2725
|
-
class:
|
|
2726
|
-
style:
|
|
2729
|
+
class: C(["ds-pill", [`ds-pill--${e.tone}`, { "ds-pill--has-icon": e.icon }]]),
|
|
2730
|
+
style: Q(e.background ? { background: e.background } : void 0)
|
|
2727
2731
|
}, [
|
|
2728
2732
|
r("span", Ao, [
|
|
2729
2733
|
x(l.$slots, "default", {}, void 0, !0)
|
|
@@ -2787,22 +2791,22 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2787
2791
|
showLegend: { type: Boolean, default: !1 }
|
|
2788
2792
|
},
|
|
2789
2793
|
setup(e) {
|
|
2790
|
-
const i = e, t =
|
|
2794
|
+
const i = e, t = xe(), l = y(() => i.segments.filter((s) => !!s.name)), o = y(
|
|
2791
2795
|
() => !!t.legend || i.showLegend && l.value.length > 0
|
|
2792
2796
|
);
|
|
2793
2797
|
return (s, c) => o.value ? (a(), n("div", zo, [
|
|
2794
|
-
r("div",
|
|
2798
|
+
r("div", Be(s.$attrs, {
|
|
2795
2799
|
class: "ds-segmented-progress-bar",
|
|
2796
2800
|
role: "img",
|
|
2797
2801
|
"aria-label": e.label || void 0,
|
|
2798
2802
|
style: { height: `${e.height}px` }
|
|
2799
2803
|
}), [
|
|
2800
|
-
(a(!0), n(K, null,
|
|
2801
|
-
var
|
|
2804
|
+
(a(!0), n(K, null, le(e.segments, (f, v) => {
|
|
2805
|
+
var $;
|
|
2802
2806
|
return a(), n("div", {
|
|
2803
|
-
key: `${(
|
|
2807
|
+
key: `${($ = f.name) != null ? $ : ""}-${v}`,
|
|
2804
2808
|
class: "ds-segmented-progress-bar__segment",
|
|
2805
|
-
style:
|
|
2809
|
+
style: Q({
|
|
2806
2810
|
width: `${e.total > 0 ? f.amount * 100 / e.total : 0}%`,
|
|
2807
2811
|
backgroundColor: f.color
|
|
2808
2812
|
}),
|
|
@@ -2812,30 +2816,30 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2812
2816
|
], 16, Uo),
|
|
2813
2817
|
x(s.$slots, "legend", {}, () => [
|
|
2814
2818
|
r("ul", qo, [
|
|
2815
|
-
(a(!0), n(K, null,
|
|
2819
|
+
(a(!0), n(K, null, le(l.value, (f, v) => (a(), n("li", {
|
|
2816
2820
|
key: `${f.name}-${v}`,
|
|
2817
2821
|
class: "ds-segmented-progress-bar__legend-item"
|
|
2818
2822
|
}, [
|
|
2819
2823
|
r("span", {
|
|
2820
2824
|
class: "ds-segmented-progress-bar__legend-swatch",
|
|
2821
|
-
style:
|
|
2825
|
+
style: Q({ backgroundColor: f.color })
|
|
2822
2826
|
}, null, 4),
|
|
2823
2827
|
r("span", Go, b(f.name), 1)
|
|
2824
2828
|
]))), 128))
|
|
2825
2829
|
])
|
|
2826
2830
|
], !0)
|
|
2827
|
-
])) : (a(), n("div",
|
|
2831
|
+
])) : (a(), n("div", Be({ key: 0 }, s.$attrs, {
|
|
2828
2832
|
class: "ds-segmented-progress-bar",
|
|
2829
2833
|
role: "img",
|
|
2830
2834
|
"aria-label": e.label || void 0,
|
|
2831
2835
|
style: { height: `${e.height}px` }
|
|
2832
2836
|
}), [
|
|
2833
|
-
(a(!0), n(K, null,
|
|
2834
|
-
var
|
|
2837
|
+
(a(!0), n(K, null, le(e.segments, (f, v) => {
|
|
2838
|
+
var $;
|
|
2835
2839
|
return a(), n("div", {
|
|
2836
|
-
key: `${(
|
|
2840
|
+
key: `${($ = f.name) != null ? $ : ""}-${v}`,
|
|
2837
2841
|
class: "ds-segmented-progress-bar__segment",
|
|
2838
|
-
style:
|
|
2842
|
+
style: Q({
|
|
2839
2843
|
width: `${e.total > 0 ? f.amount * 100 / e.total : 0}%`,
|
|
2840
2844
|
backgroundColor: f.color
|
|
2841
2845
|
}),
|
|
@@ -2862,7 +2866,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2862
2866
|
},
|
|
2863
2867
|
setup(e) {
|
|
2864
2868
|
return (i, t) => (a(), n("div", {
|
|
2865
|
-
class:
|
|
2869
|
+
class: C(["ds-empty-state", { "is-rounded": e.roundedBorder }])
|
|
2866
2870
|
}, [
|
|
2867
2871
|
i.$slots["table-header"] ? (a(), n("div", Ko, [
|
|
2868
2872
|
x(i.$slots, "table-header", {}, void 0, !0)
|
|
@@ -2910,52 +2914,52 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2910
2914
|
const v = o.value;
|
|
2911
2915
|
if (v <= 7)
|
|
2912
2916
|
return Array.from({ length: v }, (h, k) => k + 1);
|
|
2913
|
-
const
|
|
2914
|
-
|
|
2915
|
-
const m = Math.max(2,
|
|
2917
|
+
const $ = t.currentPage, S = [1];
|
|
2918
|
+
$ > 4 && S.push(oi);
|
|
2919
|
+
const m = Math.max(2, $ - 2), g = Math.min(v - 1, $ + 2);
|
|
2916
2920
|
for (let h = m; h <= g; h++)
|
|
2917
2921
|
S.push(h);
|
|
2918
|
-
return
|
|
2922
|
+
return $ < v - 3 && S.push(ii), S.push(v), S;
|
|
2919
2923
|
});
|
|
2920
2924
|
function c(v) {
|
|
2921
2925
|
v < 1 || v > o.value || l(Et, v);
|
|
2922
2926
|
}
|
|
2923
2927
|
function f(v) {
|
|
2924
|
-
const
|
|
2925
|
-
l(Tt, Number(
|
|
2928
|
+
const $ = v.target;
|
|
2929
|
+
l(Tt, Number($.value));
|
|
2926
2930
|
}
|
|
2927
|
-
return (v,
|
|
2931
|
+
return (v, $) => (a(), n("nav", {
|
|
2928
2932
|
class: "ds-paginator",
|
|
2929
2933
|
"aria-label": e.paginationLabel || void 0
|
|
2930
2934
|
}, [
|
|
2931
2935
|
e.limitMessage ? (a(), n("span", Jo, b(e.limitMessage), 1)) : p("", !0),
|
|
2932
2936
|
r("div", ei, [
|
|
2933
|
-
|
|
2937
|
+
q(d(re), {
|
|
2934
2938
|
variant: "tertiary",
|
|
2935
2939
|
circle: "",
|
|
2936
2940
|
size: "medium",
|
|
2937
2941
|
"left-icon": "chevron_left",
|
|
2938
2942
|
"aria-label": e.prevLabel || void 0,
|
|
2939
2943
|
disabled: e.currentPage <= 1,
|
|
2940
|
-
onClick:
|
|
2944
|
+
onClick: $[0] || ($[0] = (S) => c(e.currentPage - 1))
|
|
2941
2945
|
}, null, 8, ["aria-label", "disabled"]),
|
|
2942
|
-
(a(!0), n(K, null,
|
|
2946
|
+
(a(!0), n(K, null, le(s.value, (S) => (a(), n(K, { key: S }, [
|
|
2943
2947
|
typeof S == "string" ? (a(), n("span", ti, "…")) : (a(), n("button", {
|
|
2944
2948
|
key: 1,
|
|
2945
2949
|
type: "button",
|
|
2946
|
-
class:
|
|
2950
|
+
class: C(["ds-paginator__page", { "is-active": S === e.currentPage }]),
|
|
2947
2951
|
"aria-current": S === e.currentPage ? "page" : void 0,
|
|
2948
2952
|
onClick: (m) => c(S)
|
|
2949
2953
|
}, b(S), 11, ai))
|
|
2950
2954
|
], 64))), 128)),
|
|
2951
|
-
|
|
2955
|
+
q(d(re), {
|
|
2952
2956
|
variant: "tertiary",
|
|
2953
2957
|
circle: "",
|
|
2954
2958
|
size: "medium",
|
|
2955
2959
|
"left-icon": "chevron_right",
|
|
2956
2960
|
"aria-label": e.nextLabel || void 0,
|
|
2957
2961
|
disabled: e.currentPage >= o.value,
|
|
2958
|
-
onClick:
|
|
2962
|
+
onClick: $[1] || ($[1] = (S) => c(e.currentPage + 1))
|
|
2959
2963
|
}, null, 8, ["aria-label", "disabled"])
|
|
2960
2964
|
]),
|
|
2961
2965
|
r("select", {
|
|
@@ -2964,7 +2968,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2964
2968
|
value: e.pageSize,
|
|
2965
2969
|
onChange: f
|
|
2966
2970
|
}, [
|
|
2967
|
-
(a(!0), n(K, null,
|
|
2971
|
+
(a(!0), n(K, null, le(e.pageSizes, (S) => (a(), n("option", {
|
|
2968
2972
|
key: S,
|
|
2969
2973
|
value: S
|
|
2970
2974
|
}, b(S) + b(e.pageSizeSuffix), 9, ni))), 128))
|
|
@@ -2997,7 +3001,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
2997
3001
|
}
|
|
2998
3002
|
return (o, s) => (a(), n("button", {
|
|
2999
3003
|
type: "button",
|
|
3000
|
-
class:
|
|
3004
|
+
class: C(["ds-menu-item", { "is-active": e.active, "is-collapsed": e.collapsed }]),
|
|
3001
3005
|
"aria-current": e.active ? "page" : void 0,
|
|
3002
3006
|
title: e.text || void 0,
|
|
3003
3007
|
onClick: l
|
|
@@ -3010,7 +3014,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3010
3014
|
])) : p("", !0)
|
|
3011
3015
|
], 10, ri));
|
|
3012
3016
|
}
|
|
3013
|
-
}), Xd = /* @__PURE__ */ F(ui, [["__scopeId", "data-v-374c4426"]]),
|
|
3017
|
+
}), Xd = /* @__PURE__ */ F(ui, [["__scopeId", "data-v-374c4426"]]), Oe = {
|
|
3014
3018
|
ACTIVE: "active",
|
|
3015
3019
|
// current step — accent-tint chip, filled marker
|
|
3016
3020
|
COMPLETED: "completed",
|
|
@@ -3037,22 +3041,22 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3037
3041
|
emits: [rt, Ct],
|
|
3038
3042
|
setup(e, { emit: i }) {
|
|
3039
3043
|
const t = e, l = i, o = y(() => t.value === t.steps.length), s = y(
|
|
3040
|
-
() => t.steps.map((
|
|
3044
|
+
() => t.steps.map(($, S) => {
|
|
3041
3045
|
var h;
|
|
3042
3046
|
const m = S + 1;
|
|
3043
3047
|
let g;
|
|
3044
|
-
return m === t.value ? g =
|
|
3045
|
-
key: (h =
|
|
3048
|
+
return m === t.value ? g = Oe.ACTIVE : $.completed ? g = Oe.COMPLETED : $.visited ? g = Oe.INCOMPLETE : m < t.value ? g = Oe.COMPLETED : g = Oe.NEUTRAL, {
|
|
3049
|
+
key: (h = $.key) != null ? h : m,
|
|
3046
3050
|
index: m,
|
|
3047
|
-
label:
|
|
3051
|
+
label: $.label,
|
|
3048
3052
|
state: g,
|
|
3049
|
-
current: g ===
|
|
3050
|
-
marker: g ===
|
|
3053
|
+
current: g === Oe.ACTIVE,
|
|
3054
|
+
marker: g === Oe.INCOMPLETE ? "!" : String(m)
|
|
3051
3055
|
};
|
|
3052
3056
|
})
|
|
3053
3057
|
);
|
|
3054
|
-
function c(
|
|
3055
|
-
t.clickable && l(rt,
|
|
3058
|
+
function c($) {
|
|
3059
|
+
t.clickable && l(rt, $);
|
|
3056
3060
|
}
|
|
3057
3061
|
function f() {
|
|
3058
3062
|
t.value < t.steps.length && l(rt, t.value + 1);
|
|
@@ -3060,15 +3064,15 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3060
3064
|
function v() {
|
|
3061
3065
|
l(Ct);
|
|
3062
3066
|
}
|
|
3063
|
-
return (
|
|
3067
|
+
return ($, S) => (a(), n("div", fi, [
|
|
3064
3068
|
r("ol", vi, [
|
|
3065
|
-
(a(!0), n(K, null,
|
|
3069
|
+
(a(!0), n(K, null, le(s.value, (m) => (a(), n("li", {
|
|
3066
3070
|
key: m.key,
|
|
3067
3071
|
class: "ds-wizard-stepper__item"
|
|
3068
3072
|
}, [
|
|
3069
|
-
(a(),
|
|
3073
|
+
(a(), Z(Xt(e.clickable ? "button" : "div"), {
|
|
3070
3074
|
type: e.clickable ? "button" : void 0,
|
|
3071
|
-
class:
|
|
3075
|
+
class: C(["ds-wizard-step", [`ds-wizard-step--${m.state}`, { "is-clickable": e.clickable }]]),
|
|
3072
3076
|
"aria-current": m.current ? "step" : void 0,
|
|
3073
3077
|
onClick: (g) => c(m.index)
|
|
3074
3078
|
}, {
|
|
@@ -3080,7 +3084,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3080
3084
|
}, 1032, ["type", "class", "aria-current", "onClick"]))
|
|
3081
3085
|
]))), 128))
|
|
3082
3086
|
]),
|
|
3083
|
-
!o.value && e.nextLabel ? (a(),
|
|
3087
|
+
!o.value && e.nextLabel ? (a(), Z(d(re), {
|
|
3084
3088
|
key: 0,
|
|
3085
3089
|
variant: "primary",
|
|
3086
3090
|
size: "large",
|
|
@@ -3092,7 +3096,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3092
3096
|
]),
|
|
3093
3097
|
_: 1
|
|
3094
3098
|
})) : p("", !0),
|
|
3095
|
-
o.value && e.finalStepLabel ? (a(),
|
|
3099
|
+
o.value && e.finalStepLabel ? (a(), Z(d(re), {
|
|
3096
3100
|
key: 1,
|
|
3097
3101
|
variant: "primary",
|
|
3098
3102
|
size: "large",
|
|
@@ -3153,11 +3157,11 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3153
3157
|
setup(e, { emit: i }) {
|
|
3154
3158
|
const t = e, l = i, o = R(null);
|
|
3155
3159
|
let s = null;
|
|
3156
|
-
const c =
|
|
3157
|
-
|
|
3160
|
+
const c = xe(), f = me(), v = y(() => t.title && !c.header ? f : void 0), $ = (L) => Math.min(Math.max(L, t.minWidth), Math.max(t.minWidth, t.maxWidth)), S = R($(t.width));
|
|
3161
|
+
J(
|
|
3158
3162
|
() => [t.width, t.minWidth, t.maxWidth],
|
|
3159
3163
|
() => {
|
|
3160
|
-
|
|
3164
|
+
_.value || (S.value = $(t.width));
|
|
3161
3165
|
}
|
|
3162
3166
|
);
|
|
3163
3167
|
const m = y(() => ({ width: `${S.value}px` }));
|
|
@@ -3172,74 +3176,74 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3172
3176
|
}
|
|
3173
3177
|
t.fixed && t.closeOnOverlay && g();
|
|
3174
3178
|
}
|
|
3175
|
-
const
|
|
3179
|
+
const _ = R(!1);
|
|
3176
3180
|
let w = 0, u = 0;
|
|
3177
3181
|
function E(L) {
|
|
3178
|
-
const
|
|
3179
|
-
return
|
|
3182
|
+
const I = L.clientX - w, G = t.direction === Kt.RTL ? u - I : u + I;
|
|
3183
|
+
return $(G);
|
|
3180
3184
|
}
|
|
3181
|
-
function
|
|
3182
|
-
t.resizable && (
|
|
3185
|
+
function N(L) {
|
|
3186
|
+
t.resizable && (_.value = !0, w = L.clientX, u = S.value, document.addEventListener("pointermove", U), document.addEventListener("pointerup", j), document.addEventListener("pointercancel", j), l(Dt, S.value));
|
|
3183
3187
|
}
|
|
3184
|
-
function
|
|
3185
|
-
|
|
3188
|
+
function U(L) {
|
|
3189
|
+
_.value && (S.value = E(L), l(At, S.value));
|
|
3186
3190
|
}
|
|
3187
|
-
function
|
|
3188
|
-
|
|
3191
|
+
function j() {
|
|
3192
|
+
_.value && (X(), _.value = !1, h = !0, setTimeout(() => h = !1, 0), l(Rt, S.value));
|
|
3189
3193
|
}
|
|
3190
|
-
function
|
|
3191
|
-
document.removeEventListener("pointermove",
|
|
3194
|
+
function X() {
|
|
3195
|
+
document.removeEventListener("pointermove", U), document.removeEventListener("pointerup", j), document.removeEventListener("pointercancel", j);
|
|
3192
3196
|
}
|
|
3193
|
-
function
|
|
3197
|
+
function O() {
|
|
3194
3198
|
return o.value ? Array.from(o.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
3195
|
-
(
|
|
3199
|
+
(I) => !I.closest("[hidden]") && I.getAttribute("aria-hidden") !== "true"
|
|
3196
3200
|
) : [];
|
|
3197
3201
|
}
|
|
3198
|
-
function
|
|
3199
|
-
var
|
|
3202
|
+
function V(L) {
|
|
3203
|
+
var W;
|
|
3200
3204
|
if (L.key === "Escape") {
|
|
3201
3205
|
t.closeOnEscape && g();
|
|
3202
3206
|
return;
|
|
3203
3207
|
}
|
|
3204
3208
|
if (L.key !== "Tab") return;
|
|
3205
|
-
const
|
|
3206
|
-
if (
|
|
3207
|
-
L.preventDefault(), (
|
|
3209
|
+
const I = O();
|
|
3210
|
+
if (I.length === 0) {
|
|
3211
|
+
L.preventDefault(), (W = o.value) == null || W.focus();
|
|
3208
3212
|
return;
|
|
3209
3213
|
}
|
|
3210
|
-
const
|
|
3211
|
-
L.shiftKey && document.activeElement ===
|
|
3214
|
+
const G = I[0], te = I[I.length - 1];
|
|
3215
|
+
L.shiftKey && document.activeElement === G ? (L.preventDefault(), te.focus()) : !L.shiftKey && document.activeElement === te && (L.preventDefault(), G.focus());
|
|
3212
3216
|
}
|
|
3213
3217
|
function T() {
|
|
3214
|
-
s = document.activeElement, document.addEventListener("keydown",
|
|
3215
|
-
var L,
|
|
3216
|
-
return (
|
|
3218
|
+
s = document.activeElement, document.addEventListener("keydown", V), document.body.style.overflow = "hidden", oe(() => {
|
|
3219
|
+
var L, I;
|
|
3220
|
+
return (I = (L = O()[0]) != null ? L : o.value) == null ? void 0 : I.focus();
|
|
3217
3221
|
});
|
|
3218
3222
|
}
|
|
3219
3223
|
function D(L = !0) {
|
|
3220
|
-
var
|
|
3221
|
-
document.removeEventListener("keydown",
|
|
3224
|
+
var I;
|
|
3225
|
+
document.removeEventListener("keydown", V), document.body.style.overflow = "", L && ((I = s == null ? void 0 : s.focus) == null || I.call(s));
|
|
3222
3226
|
}
|
|
3223
|
-
return
|
|
3227
|
+
return J(
|
|
3224
3228
|
() => t.open && t.fixed,
|
|
3225
|
-
(L,
|
|
3226
|
-
typeof document != "undefined" && (L ? T() :
|
|
3229
|
+
(L, I) => {
|
|
3230
|
+
typeof document != "undefined" && (L ? T() : I && D());
|
|
3227
3231
|
},
|
|
3228
3232
|
{ immediate: !0 }
|
|
3229
|
-
),
|
|
3230
|
-
typeof document != "undefined" && (
|
|
3231
|
-
}), (L,
|
|
3233
|
+
), de(() => {
|
|
3234
|
+
typeof document != "undefined" && (X(), D(!1));
|
|
3235
|
+
}), (L, I) => (a(), Z(Xe, {
|
|
3232
3236
|
to: "body",
|
|
3233
3237
|
disabled: !e.fixed
|
|
3234
3238
|
}, [
|
|
3235
|
-
|
|
3239
|
+
q(Ce, {
|
|
3236
3240
|
name: `ds-drawer-${e.direction}`
|
|
3237
3241
|
}, {
|
|
3238
3242
|
default: M(() => [
|
|
3239
3243
|
e.open ? (a(), n("div", {
|
|
3240
3244
|
key: 0,
|
|
3241
|
-
class:
|
|
3242
|
-
onClick:
|
|
3245
|
+
class: C(["ds-drawer", [`ds-drawer--${e.direction}`, { "is-fixed": e.fixed, "is-resizing": _.value }]]),
|
|
3246
|
+
onClick: Te(k, ["self"])
|
|
3243
3247
|
}, [
|
|
3244
3248
|
r("aside", {
|
|
3245
3249
|
ref_key: "panelRef",
|
|
@@ -3250,13 +3254,13 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3250
3254
|
"aria-labelledby": v.value,
|
|
3251
3255
|
"aria-label": v.value ? void 0 : "drawer",
|
|
3252
3256
|
tabindex: "-1",
|
|
3253
|
-
style:
|
|
3257
|
+
style: Q(m.value)
|
|
3254
3258
|
}, [
|
|
3255
3259
|
e.resizable ? (a(), n("div", {
|
|
3256
3260
|
key: 0,
|
|
3257
3261
|
class: "ds-drawer__dragger",
|
|
3258
3262
|
"aria-hidden": "true",
|
|
3259
|
-
onPointerdown:
|
|
3263
|
+
onPointerdown: Te(N, ["stop", "prevent"])
|
|
3260
3264
|
}, null, 32)) : p("", !0),
|
|
3261
3265
|
e.title || e.showClose || L.$slots.header || L.$slots.actions ? (a(), n("header", hi, [
|
|
3262
3266
|
x(L.$slots, "header", {}, () => [
|
|
@@ -3275,7 +3279,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3275
3279
|
class: "ds-drawer__close",
|
|
3276
3280
|
"aria-label": e.closeLabel || void 0,
|
|
3277
3281
|
onClick: g
|
|
3278
|
-
}, [...
|
|
3282
|
+
}, [...I[0] || (I[0] = [
|
|
3279
3283
|
r("i", {
|
|
3280
3284
|
class: "material-symbols-filled",
|
|
3281
3285
|
"aria-hidden": "true"
|
|
@@ -3345,25 +3349,25 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3345
3349
|
// clickable end to end. Off = inline, as before.
|
|
3346
3350
|
block: { type: Boolean, default: !1 }
|
|
3347
3351
|
},
|
|
3348
|
-
emits: [
|
|
3352
|
+
emits: [ce],
|
|
3349
3353
|
setup(e, { emit: i }) {
|
|
3350
3354
|
var T;
|
|
3351
3355
|
const t = e, l = i, o = R(null), s = R(null), c = /* @__PURE__ */ new Set();
|
|
3352
3356
|
function f(D) {
|
|
3353
|
-
var L,
|
|
3354
|
-
return !!((L = o.value) != null && L.contains(D)) || !!((
|
|
3357
|
+
var L, I;
|
|
3358
|
+
return !!((L = o.value) != null && L.contains(D)) || !!((I = s.value) != null && I.contains(D)) || [...c].some((G) => G(D));
|
|
3355
3359
|
}
|
|
3356
3360
|
Ca(Wt, {
|
|
3357
3361
|
register(D) {
|
|
3358
3362
|
return c.add(D), () => c.delete(D);
|
|
3359
3363
|
}
|
|
3360
3364
|
});
|
|
3361
|
-
const
|
|
3365
|
+
const $ = (T = Ia(Wt, null)) == null ? void 0 : T.register(f), S = me(), {
|
|
3362
3366
|
shiftStyle: m,
|
|
3363
3367
|
resolvedPlacement: g,
|
|
3364
3368
|
activate: h,
|
|
3365
3369
|
deactivate: k
|
|
3366
|
-
} = na(s, () => t.placement, { trigger: o, gap: Ci }),
|
|
3370
|
+
} = na(s, () => t.placement, { trigger: o, gap: Ci }), _ = y(() => {
|
|
3367
3371
|
const L = {
|
|
3368
3372
|
...!!t.growTo ? {
|
|
3369
3373
|
width: "max-content",
|
|
@@ -3378,68 +3382,68 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3378
3382
|
anchorStyle: w,
|
|
3379
3383
|
track: u,
|
|
3380
3384
|
untrack: E
|
|
3381
|
-
} = la(o, { onTriggerHidden:
|
|
3385
|
+
} = la(o, { onTriggerHidden: j }), N = y(() => ({
|
|
3382
3386
|
zIndex: ht,
|
|
3383
3387
|
...w.value
|
|
3384
3388
|
}));
|
|
3385
|
-
let
|
|
3386
|
-
function
|
|
3387
|
-
l(
|
|
3389
|
+
let U = null;
|
|
3390
|
+
function j() {
|
|
3391
|
+
l(ce, !1);
|
|
3388
3392
|
}
|
|
3389
|
-
function
|
|
3390
|
-
t.triggerOnClick && l(
|
|
3393
|
+
function X() {
|
|
3394
|
+
t.triggerOnClick && l(ce, !t.open);
|
|
3391
3395
|
}
|
|
3392
|
-
function
|
|
3393
|
-
t.closeOnEscape && t.open &&
|
|
3396
|
+
function O() {
|
|
3397
|
+
t.closeOnEscape && t.open && j();
|
|
3394
3398
|
}
|
|
3395
|
-
function
|
|
3399
|
+
function V(D) {
|
|
3396
3400
|
const L = D.target;
|
|
3397
|
-
!L || f(L) ||
|
|
3401
|
+
!L || f(L) || j();
|
|
3398
3402
|
}
|
|
3399
|
-
return
|
|
3403
|
+
return J(
|
|
3400
3404
|
() => t.open,
|
|
3401
3405
|
(D, L) => {
|
|
3402
|
-
var
|
|
3403
|
-
typeof document != "undefined" && (D ? (
|
|
3404
|
-
var
|
|
3405
|
-
(
|
|
3406
|
-
})) : L && (document.removeEventListener("mousedown",
|
|
3406
|
+
var I;
|
|
3407
|
+
typeof document != "undefined" && (D ? (U = document.activeElement, t.closeOnOutside && document.addEventListener("mousedown", V), t.teleported && u(), oe(() => {
|
|
3408
|
+
var G, te, W;
|
|
3409
|
+
(G = s.value) != null && G.contains(document.activeElement) || (W = (te = s.value) == null ? void 0 : te.focus) == null || W.call(te, { preventScroll: !0 }), h();
|
|
3410
|
+
})) : L && (document.removeEventListener("mousedown", V), E(), k(), (I = U == null ? void 0 : U.focus) == null || I.call(U, { preventScroll: !0 })));
|
|
3407
3411
|
},
|
|
3408
3412
|
{ immediate: !0 }
|
|
3409
|
-
),
|
|
3410
|
-
|
|
3413
|
+
), de(() => {
|
|
3414
|
+
$ == null || $(), typeof document != "undefined" && (document.removeEventListener("mousedown", V), k());
|
|
3411
3415
|
}), (D, L) => (a(), n("div", {
|
|
3412
3416
|
ref_key: "rootRef",
|
|
3413
3417
|
ref: o,
|
|
3414
|
-
class:
|
|
3415
|
-
onKeydown: Ye(
|
|
3418
|
+
class: C(["ds-popover", { "ds-popover--block": e.block }]),
|
|
3419
|
+
onKeydown: Ye(O, ["esc"])
|
|
3416
3420
|
}, [
|
|
3417
3421
|
r("div", {
|
|
3418
3422
|
class: "ds-popover__trigger",
|
|
3419
|
-
onClick:
|
|
3423
|
+
onClick: X
|
|
3420
3424
|
}, [
|
|
3421
3425
|
x(D.$slots, "trigger", {}, void 0, !0)
|
|
3422
3426
|
]),
|
|
3423
|
-
e.teleported ? (a(),
|
|
3427
|
+
e.teleported ? (a(), Z(Xe, {
|
|
3424
3428
|
key: 0,
|
|
3425
3429
|
to: "body"
|
|
3426
3430
|
}, [
|
|
3427
|
-
|
|
3431
|
+
q(Ce, { name: "ds-popover-fade" }, {
|
|
3428
3432
|
default: M(() => [
|
|
3429
3433
|
e.open ? (a(), n("div", {
|
|
3430
3434
|
key: 0,
|
|
3431
3435
|
class: "ds-popover__anchor",
|
|
3432
|
-
style:
|
|
3433
|
-
onKeydown: Ye(
|
|
3436
|
+
style: Q(N.value),
|
|
3437
|
+
onKeydown: Ye(O, ["esc"])
|
|
3434
3438
|
}, [
|
|
3435
3439
|
r("div", {
|
|
3436
3440
|
id: d(S),
|
|
3437
3441
|
ref_key: "panelRef",
|
|
3438
3442
|
ref: s,
|
|
3439
|
-
class:
|
|
3443
|
+
class: C(["ds-popover__panel", [`ds-popover__panel--${d(g)}`, { "is-flush": e.flush }]]),
|
|
3440
3444
|
role: "dialog",
|
|
3441
3445
|
tabindex: "-1",
|
|
3442
|
-
style:
|
|
3446
|
+
style: Q(_.value)
|
|
3443
3447
|
}, [
|
|
3444
3448
|
x(D.$slots, "default", {}, void 0, !0)
|
|
3445
3449
|
], 14, Ei)
|
|
@@ -3447,7 +3451,7 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3447
3451
|
]),
|
|
3448
3452
|
_: 3
|
|
3449
3453
|
})
|
|
3450
|
-
])) : (a(),
|
|
3454
|
+
])) : (a(), Z(Ce, {
|
|
3451
3455
|
key: 1,
|
|
3452
3456
|
name: "ds-popover-fade"
|
|
3453
3457
|
}, {
|
|
@@ -3457,10 +3461,10 @@ const hn = ["title"], pn = { class: "ds-contact-value__marquee" }, kn = { class:
|
|
|
3457
3461
|
id: d(S),
|
|
3458
3462
|
ref_key: "panelRef",
|
|
3459
3463
|
ref: s,
|
|
3460
|
-
class:
|
|
3464
|
+
class: C(["ds-popover__panel", [`ds-popover__panel--${d(g)}`, { "is-flush": e.flush }]]),
|
|
3461
3465
|
role: "dialog",
|
|
3462
3466
|
tabindex: "-1",
|
|
3463
|
-
style:
|
|
3467
|
+
style: Q(_.value)
|
|
3464
3468
|
}, [
|
|
3465
3469
|
x(D.$slots, "default", {}, void 0, !0)
|
|
3466
3470
|
], 14, Ti)) : p("", !0)
|
|
@@ -3482,7 +3486,7 @@ function sa(e, i) {
|
|
|
3482
3486
|
});
|
|
3483
3487
|
}
|
|
3484
3488
|
function o(s) {
|
|
3485
|
-
var
|
|
3489
|
+
var $;
|
|
3486
3490
|
if (s.key === "Escape" || s.key === "Tab") {
|
|
3487
3491
|
s.key === "Escape" && s.stopPropagation(), i.onClose();
|
|
3488
3492
|
return;
|
|
@@ -3496,7 +3500,7 @@ function sa(e, i) {
|
|
|
3496
3500
|
else if (s.key === "Home") v = 0;
|
|
3497
3501
|
else if (s.key === "End") v = c.length - 1;
|
|
3498
3502
|
else return;
|
|
3499
|
-
s.preventDefault(), (
|
|
3503
|
+
s.preventDefault(), ($ = c[v]) == null || $.focus();
|
|
3500
3504
|
}
|
|
3501
3505
|
return { focusFirst: l, onKeydown: o };
|
|
3502
3506
|
}
|
|
@@ -3524,42 +3528,42 @@ const Yt = {
|
|
|
3524
3528
|
},
|
|
3525
3529
|
menuLabel: { type: String, default: "" }
|
|
3526
3530
|
},
|
|
3527
|
-
emits: [tt,
|
|
3531
|
+
emits: [tt, ce],
|
|
3528
3532
|
setup(e, { emit: i }) {
|
|
3529
3533
|
const t = e, l = i, o = R(!1), s = R(null), c = R(null), f = y(() => {
|
|
3530
|
-
var
|
|
3531
|
-
return (
|
|
3534
|
+
var _;
|
|
3535
|
+
return (_ = t.open) != null ? _ : o.value;
|
|
3532
3536
|
});
|
|
3533
|
-
function v(
|
|
3534
|
-
f.value !==
|
|
3537
|
+
function v(_) {
|
|
3538
|
+
f.value !== _ && (t.open === void 0 && (o.value = _), l(ce, _));
|
|
3535
3539
|
}
|
|
3536
|
-
function
|
|
3540
|
+
function $() {
|
|
3537
3541
|
v(!0);
|
|
3538
3542
|
}
|
|
3539
3543
|
function S() {
|
|
3540
3544
|
oe(
|
|
3541
3545
|
() => {
|
|
3542
|
-
var
|
|
3543
|
-
return (w = (
|
|
3546
|
+
var _, w;
|
|
3547
|
+
return (w = (_ = s.value) == null ? void 0 : _.querySelector('button, a[href], input, [tabindex]:not([tabindex="-1"])')) == null ? void 0 : w.focus();
|
|
3544
3548
|
}
|
|
3545
3549
|
);
|
|
3546
3550
|
}
|
|
3547
3551
|
function m() {
|
|
3548
3552
|
v(!1), S();
|
|
3549
3553
|
}
|
|
3550
|
-
function g(
|
|
3551
|
-
|
|
3554
|
+
function g(_) {
|
|
3555
|
+
_.disabled || (m(), l(tt, _.id));
|
|
3552
3556
|
}
|
|
3553
3557
|
const { focusFirst: h, onKeydown: k } = sa(c, {
|
|
3554
3558
|
onClose: m
|
|
3555
3559
|
});
|
|
3556
|
-
return
|
|
3560
|
+
return J(
|
|
3557
3561
|
f,
|
|
3558
|
-
(
|
|
3559
|
-
|
|
3562
|
+
(_) => {
|
|
3563
|
+
_ && h();
|
|
3560
3564
|
},
|
|
3561
3565
|
{ flush: "post" }
|
|
3562
|
-
), (
|
|
3566
|
+
), (_, w) => (a(), Z(d(He), {
|
|
3563
3567
|
class: "ds-action-menu",
|
|
3564
3568
|
open: f.value,
|
|
3565
3569
|
placement: e.placement,
|
|
@@ -3572,27 +3576,27 @@ const Yt = {
|
|
|
3572
3576
|
ref_key: "triggerRef",
|
|
3573
3577
|
ref: s,
|
|
3574
3578
|
class: "ds-action-menu__trigger",
|
|
3575
|
-
onKeydown: Ye(
|
|
3579
|
+
onKeydown: Ye(Te($, ["prevent"]), ["down"])
|
|
3576
3580
|
}, [
|
|
3577
|
-
x(
|
|
3581
|
+
x(_.$slots, "trigger", { open: f.value }, void 0, !0)
|
|
3578
3582
|
], 40, Ai)
|
|
3579
3583
|
]),
|
|
3580
3584
|
default: M(() => [
|
|
3581
3585
|
r("div", {
|
|
3582
3586
|
ref_key: "menuRef",
|
|
3583
3587
|
ref: c,
|
|
3584
|
-
class:
|
|
3588
|
+
class: C(["ds-action-menu__menu", { "ds-action-menu__menu--bold": e.weight === d(Yt).BOLD }]),
|
|
3585
3589
|
role: "menu",
|
|
3586
3590
|
"aria-label": e.menuLabel || void 0,
|
|
3587
3591
|
onKeydown: w[0] || (w[0] = //@ts-ignore
|
|
3588
3592
|
(...u) => d(k) && d(k)(...u))
|
|
3589
3593
|
}, [
|
|
3590
|
-
(a(!0), n(K, null,
|
|
3594
|
+
(a(!0), n(K, null, le(e.items, (u) => (a(), n("button", {
|
|
3591
3595
|
key: u.id,
|
|
3592
3596
|
type: "button",
|
|
3593
3597
|
role: "menuitem",
|
|
3594
3598
|
tabindex: "-1",
|
|
3595
|
-
class:
|
|
3599
|
+
class: C(["ds-action-menu__item", { "is-danger": u.danger }]),
|
|
3596
3600
|
disabled: u.disabled,
|
|
3597
3601
|
onClick: (E) => g(u)
|
|
3598
3602
|
}, [
|
|
@@ -3617,7 +3621,7 @@ const Yt = {
|
|
|
3617
3621
|
},
|
|
3618
3622
|
setup(e) {
|
|
3619
3623
|
const i = e, t = R(!1);
|
|
3620
|
-
|
|
3624
|
+
J(
|
|
3621
3625
|
() => i.src,
|
|
3622
3626
|
() => t.value = !1
|
|
3623
3627
|
);
|
|
@@ -3627,7 +3631,7 @@ const Yt = {
|
|
|
3627
3631
|
});
|
|
3628
3632
|
return (c, f) => (a(), n("span", {
|
|
3629
3633
|
class: "ds-company-logo",
|
|
3630
|
-
style:
|
|
3634
|
+
style: Q(o.value)
|
|
3631
3635
|
}, [
|
|
3632
3636
|
e.src && !t.value ? (a(), n("img", {
|
|
3633
3637
|
key: 0,
|
|
@@ -3635,7 +3639,7 @@ const Yt = {
|
|
|
3635
3639
|
src: e.src,
|
|
3636
3640
|
alt: "",
|
|
3637
3641
|
loading: "lazy",
|
|
3638
|
-
style:
|
|
3642
|
+
style: Q(s.value),
|
|
3639
3643
|
onError: f[0] || (f[0] = (v) => t.value = !0)
|
|
3640
3644
|
}, null, 44, xi)) : (a(), n("span", Pi, b(l.value), 1))
|
|
3641
3645
|
], 4));
|
|
@@ -3661,16 +3665,16 @@ const Yt = {
|
|
|
3661
3665
|
const i = e, t = y(() => i.details.filter((l) => l.value));
|
|
3662
3666
|
return (l, o) => (a(), n("div", zi, [
|
|
3663
3667
|
r("div", Ui, [
|
|
3664
|
-
|
|
3668
|
+
q(ra, {
|
|
3665
3669
|
src: e.logo,
|
|
3666
3670
|
name: e.name,
|
|
3667
3671
|
size: 34
|
|
3668
3672
|
}, null, 8, ["src", "name"]),
|
|
3669
3673
|
r("span", Vi, b(e.name), 1),
|
|
3670
|
-
e.websiteUrl ? (a(),
|
|
3674
|
+
e.websiteUrl ? (a(), Z(ge, {
|
|
3671
3675
|
key: 0,
|
|
3672
3676
|
content: e.websiteLabel,
|
|
3673
|
-
placement: d(
|
|
3677
|
+
placement: d(ke).BOTTOM
|
|
3674
3678
|
}, {
|
|
3675
3679
|
default: M(() => [
|
|
3676
3680
|
r("a", {
|
|
@@ -3697,7 +3701,7 @@ const Yt = {
|
|
|
3697
3701
|
"aria-label": e.linkedinLabel || void 0
|
|
3698
3702
|
}, "in", 8, Gi)) : p("", !0)
|
|
3699
3703
|
]),
|
|
3700
|
-
(a(!0), n(K, null,
|
|
3704
|
+
(a(!0), n(K, null, le(t.value, (s) => (a(), n("div", {
|
|
3701
3705
|
key: s.id,
|
|
3702
3706
|
class: "ds-company-card__row"
|
|
3703
3707
|
}, [
|
|
@@ -3766,9 +3770,9 @@ function es(e, i) {
|
|
|
3766
3770
|
}
|
|
3767
3771
|
const o = [];
|
|
3768
3772
|
return t.forEach((s, c) => {
|
|
3769
|
-
var v,
|
|
3773
|
+
var v, $;
|
|
3770
3774
|
let f = s.text;
|
|
3771
|
-
s.masked || ((v = t[c - 1]) != null && v.masked && (f = f.replace(/^-/, " ")), (
|
|
3775
|
+
s.masked || ((v = t[c - 1]) != null && v.masked && (f = f.replace(/^-/, " ")), ($ = t[c + 1]) != null && $.masked && (f = f.replace(/-$/, " "))), Ji(o, f, s.masked);
|
|
3772
3776
|
}), o;
|
|
3773
3777
|
}
|
|
3774
3778
|
const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
@@ -3797,12 +3801,12 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
3797
3801
|
})) : []
|
|
3798
3802
|
), o = y(() => l.value.findIndex((s) => s.circles));
|
|
3799
3803
|
return (s, c) => (a(), n("span", {
|
|
3800
|
-
class:
|
|
3804
|
+
class: C(["ds-masked-value", { "is-masked": e.masked }]),
|
|
3801
3805
|
title: e.masked ? void 0 : e.value
|
|
3802
3806
|
}, [
|
|
3803
|
-
e.masked ? (a(!0), n(K, { key: 0 },
|
|
3807
|
+
e.masked ? (a(!0), n(K, { key: 0 }, le(l.value, (f, v) => (a(), n("span", {
|
|
3804
3808
|
key: v,
|
|
3805
|
-
class:
|
|
3809
|
+
class: C(f.masked ? "ds-masked-value__mask" : "ds-masked-value__clear")
|
|
3806
3810
|
}, [
|
|
3807
3811
|
f.circles ? (a(), n(K, { key: 0 }, [
|
|
3808
3812
|
r("span", as, b(f.circles), 1),
|
|
@@ -3822,7 +3826,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
3822
3826
|
tooltip: { type: String, required: !0 },
|
|
3823
3827
|
placement: {
|
|
3824
3828
|
type: String,
|
|
3825
|
-
default:
|
|
3829
|
+
default: ke.TOP
|
|
3826
3830
|
},
|
|
3827
3831
|
// Standing alone the glyph is a tab stop so a keyboard user can reach its meaning.
|
|
3828
3832
|
// Inside an already-focusable trigger (the cell button) it must NOT be one: nested
|
|
@@ -3830,7 +3834,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
3830
3834
|
focusable: { type: Boolean, default: !0 }
|
|
3831
3835
|
},
|
|
3832
3836
|
setup(e) {
|
|
3833
|
-
return (i, t) => (a(),
|
|
3837
|
+
return (i, t) => (a(), Z(d(ge), {
|
|
3834
3838
|
class: "ds-deliverability-badge",
|
|
3835
3839
|
content: e.tooltip,
|
|
3836
3840
|
placement: e.placement
|
|
@@ -3856,7 +3860,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
3856
3860
|
setup(e) {
|
|
3857
3861
|
return (i, t) => e.overflow > 0 ? (a(), n("span", {
|
|
3858
3862
|
key: 0,
|
|
3859
|
-
class:
|
|
3863
|
+
class: C(["ds-more-count-chip", { "is-active": e.active }]),
|
|
3860
3864
|
"aria-label": e.label || void 0
|
|
3861
3865
|
}, "+" + b(e.overflow), 11, ds)) : p("", !0);
|
|
3862
3866
|
}
|
|
@@ -3907,7 +3911,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
3907
3911
|
correctLabel: { type: String, default: "Correct" },
|
|
3908
3912
|
incorrectLabel: { type: String, default: "Incorrect" }
|
|
3909
3913
|
},
|
|
3910
|
-
emits: [
|
|
3914
|
+
emits: [Ie, De, Ae],
|
|
3911
3915
|
setup(e, { emit: i }) {
|
|
3912
3916
|
const t = e, l = i, o = y(() => t.sections.length ? t.sections.filter((h) => h.items.length > 0).map((h, k) => ({
|
|
3913
3917
|
key: `${h.type}-${k}`,
|
|
@@ -3920,22 +3924,22 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
3920
3924
|
}
|
|
3921
3925
|
function f(h, k) {
|
|
3922
3926
|
var w;
|
|
3923
|
-
const
|
|
3924
|
-
return
|
|
3927
|
+
const _ = (w = h.type) != null ? w : k.type;
|
|
3928
|
+
return _ ? da(_, t.kind) : "";
|
|
3925
3929
|
}
|
|
3926
|
-
function v(h, k,
|
|
3930
|
+
function v(h, k, _) {
|
|
3927
3931
|
var w;
|
|
3928
|
-
return (w = h.id) != null ? w : `${k.key}:${
|
|
3932
|
+
return (w = h.id) != null ? w : `${k.key}:${_}`;
|
|
3929
3933
|
}
|
|
3930
|
-
const
|
|
3934
|
+
const $ = R(null);
|
|
3931
3935
|
let S;
|
|
3932
3936
|
const { copy: m } = oa();
|
|
3933
3937
|
async function g(h, k) {
|
|
3934
|
-
await m(h.value) && (
|
|
3935
|
-
|
|
3936
|
-
}, 1200), l(
|
|
3938
|
+
await m(h.value) && ($.value = k, clearTimeout(S), S = setTimeout(() => {
|
|
3939
|
+
$.value = null;
|
|
3940
|
+
}, 1200), l(Ie, h));
|
|
3937
3941
|
}
|
|
3938
|
-
return
|
|
3942
|
+
return de(() => clearTimeout(S)), (h, k) => (a(), n("div", us, [
|
|
3939
3943
|
e.title || h.$slots.actions ? (a(), n("div", fs, [
|
|
3940
3944
|
e.title ? (a(), n("span", vs, b(e.title), 1)) : p("", !0),
|
|
3941
3945
|
e.title ? (a(), n("span", ms, "(" + b(s.value) + ")", 1)) : p("", !0),
|
|
@@ -3944,29 +3948,29 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
3944
3948
|
])
|
|
3945
3949
|
])) : p("", !0),
|
|
3946
3950
|
!s.value && e.emptyLabel ? (a(), n("p", ys, b(e.emptyLabel), 1)) : p("", !0),
|
|
3947
|
-
(a(!0), n(K, null,
|
|
3948
|
-
key:
|
|
3951
|
+
(a(!0), n(K, null, le(o.value, (_) => (a(), n(K, {
|
|
3952
|
+
key: _.key
|
|
3949
3953
|
}, [
|
|
3950
|
-
|
|
3954
|
+
_.label ? (a(), n("p", gs, b(_.label) + " (" + b(_.items.length) + ") ", 1)) : p("", !0),
|
|
3951
3955
|
r("ul", {
|
|
3952
3956
|
class: "ds-contact-list__items",
|
|
3953
3957
|
role: "list",
|
|
3954
|
-
"aria-label":
|
|
3958
|
+
"aria-label": _.label || void 0
|
|
3955
3959
|
}, [
|
|
3956
|
-
(a(!0), n(K, null,
|
|
3957
|
-
key: v(w,
|
|
3958
|
-
class:
|
|
3960
|
+
(a(!0), n(K, null, le(_.items, (w, u) => (a(), n("li", {
|
|
3961
|
+
key: v(w, _, u),
|
|
3962
|
+
class: C(["ds-contact-list__item", { "is-primary": w.primary, "is-masked": w.masked }])
|
|
3959
3963
|
}, [
|
|
3960
|
-
f(w,
|
|
3964
|
+
f(w, _) ? (a(), n("i", ps, b(f(w, _)), 1)) : p("", !0),
|
|
3961
3965
|
r("span", ks, [
|
|
3962
|
-
|
|
3966
|
+
q(d(ca), {
|
|
3963
3967
|
class: "ds-contact-list__value",
|
|
3964
3968
|
value: w.value,
|
|
3965
3969
|
kind: e.kind,
|
|
3966
3970
|
masked: w.masked,
|
|
3967
3971
|
"masked-label": e.maskedLabel
|
|
3968
3972
|
}, null, 8, ["value", "kind", "masked", "masked-label"]),
|
|
3969
|
-
c(w) ? (a(),
|
|
3973
|
+
c(w) ? (a(), Z(d(ua), {
|
|
3970
3974
|
key: 0,
|
|
3971
3975
|
label: e.badgeLabel,
|
|
3972
3976
|
tooltip: e.badgeTooltip,
|
|
@@ -3976,24 +3980,24 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
3976
3980
|
w.masked ? p("", !0) : (a(), n("span", Ss, [
|
|
3977
3981
|
r("button", {
|
|
3978
3982
|
type: "button",
|
|
3979
|
-
class:
|
|
3980
|
-
"aria-label":
|
|
3981
|
-
title:
|
|
3982
|
-
onClick: (E) => g(w, v(w,
|
|
3983
|
+
class: C(["ds-contact-list__action", { "is-copied": $.value === v(w, _, u) }]),
|
|
3984
|
+
"aria-label": $.value === v(w, _, u) ? e.copiedLabel : e.copyLabel,
|
|
3985
|
+
title: $.value === v(w, _, u) ? e.copiedLabel : e.copyLabel,
|
|
3986
|
+
onClick: (E) => g(w, v(w, _, u))
|
|
3983
3987
|
}, [
|
|
3984
|
-
r("i", $s, b(
|
|
3988
|
+
r("i", $s, b($.value === v(w, _, u) ? "check" : "content_copy"), 1)
|
|
3985
3989
|
], 10, _s),
|
|
3986
3990
|
e.showRate ? (a(), n(K, { key: 0 }, [
|
|
3987
3991
|
r("button", {
|
|
3988
3992
|
type: "button",
|
|
3989
|
-
class:
|
|
3993
|
+
class: C(["ds-contact-list__action", { "is-on": w.rating === !0 }]),
|
|
3990
3994
|
"aria-label": e.correctLabel,
|
|
3991
3995
|
"aria-pressed": w.rating === !0,
|
|
3992
3996
|
title: e.correctLabel,
|
|
3993
|
-
onClick: (E) => l(d(
|
|
3997
|
+
onClick: (E) => l(d(De), w)
|
|
3994
3998
|
}, [
|
|
3995
3999
|
r("i", {
|
|
3996
|
-
class:
|
|
4000
|
+
class: C(
|
|
3997
4001
|
w.rating === !0 ? "material-symbols-filled" : "material-symbols-rounded"
|
|
3998
4002
|
),
|
|
3999
4003
|
"aria-hidden": "true"
|
|
@@ -4001,14 +4005,14 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4001
4005
|
], 10, ws),
|
|
4002
4006
|
r("button", {
|
|
4003
4007
|
type: "button",
|
|
4004
|
-
class:
|
|
4008
|
+
class: C(["ds-contact-list__action", { "is-on": w.rating === !1 }]),
|
|
4005
4009
|
"aria-label": e.incorrectLabel,
|
|
4006
4010
|
"aria-pressed": w.rating === !1,
|
|
4007
4011
|
title: e.incorrectLabel,
|
|
4008
|
-
onClick: (E) => l(d(
|
|
4012
|
+
onClick: (E) => l(d(Ae), w)
|
|
4009
4013
|
}, [
|
|
4010
4014
|
r("i", {
|
|
4011
|
-
class:
|
|
4015
|
+
class: C(
|
|
4012
4016
|
w.rating === !1 ? "material-symbols-filled" : "material-symbols-rounded"
|
|
4013
4017
|
),
|
|
4014
4018
|
"aria-hidden": "true"
|
|
@@ -4074,54 +4078,54 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4074
4078
|
correctLabel: { type: String, default: "Correct" },
|
|
4075
4079
|
incorrectLabel: { type: String, default: "Incorrect" }
|
|
4076
4080
|
},
|
|
4077
|
-
emits: [
|
|
4081
|
+
emits: [ce, Ie, De, Ae, $t],
|
|
4078
4082
|
setup(e, { emit: i }) {
|
|
4079
4083
|
const t = e, l = i, o = R(!1), s = R(!1), c = y(() => {
|
|
4080
|
-
var
|
|
4081
|
-
return (
|
|
4082
|
-
}), f = y(() => !t.disabled && t.items.length > 0), v = y(() => f.value && o.value),
|
|
4083
|
-
var
|
|
4084
|
-
return Qi((
|
|
4084
|
+
var O;
|
|
4085
|
+
return (O = t.items[0]) != null ? O : null;
|
|
4086
|
+
}), f = y(() => !t.disabled && t.items.length > 0), v = y(() => f.value && o.value), $ = y(() => {
|
|
4087
|
+
var O;
|
|
4088
|
+
return Qi((O = t.count) != null ? O : t.items.length);
|
|
4085
4089
|
}), S = y(
|
|
4086
4090
|
() => !!c.value && t.kind === Ze.EMAIL && c.value.valid
|
|
4087
4091
|
), m = y(
|
|
4088
|
-
() => t.items.some((
|
|
4092
|
+
() => t.items.some((O) => O.masked) || t.sections.some((O) => O.items.some((V) => V.masked))
|
|
4089
4093
|
), g = y(() => !!t.revealLabel && m.value), h = y(() => {
|
|
4090
|
-
var
|
|
4091
|
-
const
|
|
4092
|
-
return
|
|
4094
|
+
var V;
|
|
4095
|
+
const O = t.type || ((V = c.value) == null ? void 0 : V.type);
|
|
4096
|
+
return O ? da(O, t.kind) : "";
|
|
4093
4097
|
});
|
|
4094
4098
|
let k;
|
|
4095
|
-
function
|
|
4096
|
-
o.value !==
|
|
4099
|
+
function _(O) {
|
|
4100
|
+
o.value !== O && (o.value = O, l(ce, O));
|
|
4097
4101
|
}
|
|
4098
4102
|
function w() {
|
|
4099
|
-
f.value && (clearTimeout(k), s.value ||
|
|
4103
|
+
f.value && (clearTimeout(k), s.value || _(!0));
|
|
4100
4104
|
}
|
|
4101
4105
|
function u() {
|
|
4102
|
-
!f.value || s.value || (clearTimeout(k), k = setTimeout(() =>
|
|
4106
|
+
!f.value || s.value || (clearTimeout(k), k = setTimeout(() => _(!1), t.leaveDelay));
|
|
4103
4107
|
}
|
|
4104
4108
|
function E() {
|
|
4105
4109
|
t.teleported && w();
|
|
4106
4110
|
}
|
|
4107
|
-
function
|
|
4111
|
+
function N() {
|
|
4108
4112
|
t.teleported && u();
|
|
4109
4113
|
}
|
|
4110
|
-
function
|
|
4111
|
-
f.value && (clearTimeout(k), s.value ? (s.value = !1,
|
|
4114
|
+
function U() {
|
|
4115
|
+
f.value && (clearTimeout(k), s.value ? (s.value = !1, _(!1)) : (s.value = !0, _(!0)));
|
|
4112
4116
|
}
|
|
4113
|
-
function
|
|
4114
|
-
|
|
4117
|
+
function j(O) {
|
|
4118
|
+
O || (s.value = !1, clearTimeout(k), _(!1));
|
|
4115
4119
|
}
|
|
4116
|
-
function
|
|
4117
|
-
|
|
4120
|
+
function X(O) {
|
|
4121
|
+
O.key !== "Escape" || !o.value || (s.value = !1, _(!1));
|
|
4118
4122
|
}
|
|
4119
|
-
return
|
|
4120
|
-
typeof document != "undefined" && (
|
|
4121
|
-
}),
|
|
4122
|
-
clearTimeout(k), typeof document != "undefined" && document.removeEventListener("keydown",
|
|
4123
|
-
}), (
|
|
4124
|
-
class:
|
|
4123
|
+
return J(o, (O) => {
|
|
4124
|
+
typeof document != "undefined" && (O ? document.addEventListener("keydown", X) : document.removeEventListener("keydown", X));
|
|
4125
|
+
}), de(() => {
|
|
4126
|
+
clearTimeout(k), typeof document != "undefined" && document.removeEventListener("keydown", X);
|
|
4127
|
+
}), (O, V) => (a(), n("div", {
|
|
4128
|
+
class: C(["ds-contact-cell", {
|
|
4125
4129
|
"is-open": v.value,
|
|
4126
4130
|
"is-pinned": s.value,
|
|
4127
4131
|
"is-empty": !c.value,
|
|
@@ -4130,7 +4134,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4130
4134
|
onMouseenter: w,
|
|
4131
4135
|
onMouseleave: u
|
|
4132
4136
|
}, [
|
|
4133
|
-
|
|
4137
|
+
q(d(He), {
|
|
4134
4138
|
open: v.value,
|
|
4135
4139
|
placement: e.placement,
|
|
4136
4140
|
offset: e.offset,
|
|
@@ -4138,7 +4142,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4138
4142
|
teleported: e.teleported,
|
|
4139
4143
|
flush: "",
|
|
4140
4144
|
"trigger-on-click": !1,
|
|
4141
|
-
"onUpdate:open":
|
|
4145
|
+
"onUpdate:open": j
|
|
4142
4146
|
}, {
|
|
4143
4147
|
trigger: M(() => [
|
|
4144
4148
|
r("button", {
|
|
@@ -4146,27 +4150,27 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4146
4150
|
class: "ds-contact-cell__trigger",
|
|
4147
4151
|
"aria-haspopup": f.value ? "dialog" : void 0,
|
|
4148
4152
|
"aria-expanded": f.value ? v.value : void 0,
|
|
4149
|
-
onClick:
|
|
4153
|
+
onClick: U
|
|
4150
4154
|
}, [
|
|
4151
4155
|
c.value ? (a(), n(K, { key: 0 }, [
|
|
4152
4156
|
h.value ? (a(), n("i", Is, b(h.value), 1)) : p("", !0),
|
|
4153
4157
|
r("span", Ds, [
|
|
4154
|
-
|
|
4158
|
+
q(d(ca), {
|
|
4155
4159
|
class: "ds-contact-cell__value",
|
|
4156
4160
|
value: c.value.value,
|
|
4157
4161
|
kind: e.kind,
|
|
4158
4162
|
masked: c.value.masked,
|
|
4159
4163
|
"masked-label": e.maskedLabel
|
|
4160
4164
|
}, null, 8, ["value", "kind", "masked", "masked-label"]),
|
|
4161
|
-
S.value ? (a(),
|
|
4165
|
+
S.value ? (a(), Z(d(ua), {
|
|
4162
4166
|
key: 0,
|
|
4163
4167
|
label: e.badgeLabel,
|
|
4164
4168
|
tooltip: e.badgeTooltip,
|
|
4165
4169
|
focusable: !1
|
|
4166
4170
|
}, null, 8, ["label", "tooltip"])) : p("", !0)
|
|
4167
4171
|
]),
|
|
4168
|
-
|
|
4169
|
-
overflow:
|
|
4172
|
+
q(d(fa), {
|
|
4173
|
+
overflow: $.value,
|
|
4170
4174
|
active: v.value,
|
|
4171
4175
|
label: e.moreLabel
|
|
4172
4176
|
}, null, 8, ["overflow", "active", "label"])
|
|
@@ -4174,7 +4178,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4174
4178
|
], 8, Cs)
|
|
4175
4179
|
]),
|
|
4176
4180
|
default: M(() => [
|
|
4177
|
-
|
|
4181
|
+
q(d(Ts), {
|
|
4178
4182
|
items: e.items,
|
|
4179
4183
|
sections: e.sections,
|
|
4180
4184
|
kind: e.kind,
|
|
@@ -4188,31 +4192,31 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4188
4192
|
"copied-label": e.copiedLabel,
|
|
4189
4193
|
"correct-label": e.correctLabel,
|
|
4190
4194
|
"incorrect-label": e.incorrectLabel,
|
|
4191
|
-
class:
|
|
4195
|
+
class: C({ "ds-contact-cell__list--reveal": g.value }),
|
|
4192
4196
|
onMouseenter: E,
|
|
4193
|
-
onMouseleave:
|
|
4194
|
-
onCopy:
|
|
4195
|
-
onCorrect:
|
|
4196
|
-
onIncorrect:
|
|
4197
|
+
onMouseleave: N,
|
|
4198
|
+
onCopy: V[1] || (V[1] = (T) => l(d(Ie), T)),
|
|
4199
|
+
onCorrect: V[2] || (V[2] = (T) => l(d(De), T)),
|
|
4200
|
+
onIncorrect: V[3] || (V[3] = (T) => l(d(Ae), T))
|
|
4197
4201
|
}, mt({ _: 2 }, [
|
|
4198
|
-
g.value ||
|
|
4202
|
+
g.value || O.$slots.actions ? {
|
|
4199
4203
|
name: "actions",
|
|
4200
4204
|
fn: M(() => [
|
|
4201
|
-
g.value ? (a(),
|
|
4205
|
+
g.value ? (a(), Z(d(ge), {
|
|
4202
4206
|
key: 0,
|
|
4203
4207
|
class: "ds-contact-cell__reveal-tip",
|
|
4204
4208
|
content: e.revealTooltip,
|
|
4205
4209
|
disabled: !e.revealTooltip,
|
|
4206
|
-
placement: d(
|
|
4210
|
+
placement: d(ke).LEFT
|
|
4207
4211
|
}, {
|
|
4208
4212
|
default: M(() => [
|
|
4209
|
-
|
|
4213
|
+
q(d(re), {
|
|
4210
4214
|
class: "ds-contact-cell__reveal",
|
|
4211
|
-
variant: d(
|
|
4212
|
-
size: d(
|
|
4215
|
+
variant: d(ue).PRIMARY,
|
|
4216
|
+
size: d(fe).SMALL,
|
|
4213
4217
|
"left-icon": "visibility",
|
|
4214
4218
|
loading: e.revealing,
|
|
4215
|
-
onClick:
|
|
4219
|
+
onClick: V[0] || (V[0] = (T) => l(d($t)))
|
|
4216
4220
|
}, {
|
|
4217
4221
|
default: M(() => [
|
|
4218
4222
|
ee(b(e.revealLabel), 1)
|
|
@@ -4222,7 +4226,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4222
4226
|
]),
|
|
4223
4227
|
_: 1
|
|
4224
4228
|
}, 8, ["content", "disabled", "placement"])) : p("", !0),
|
|
4225
|
-
x(
|
|
4229
|
+
x(O.$slots, "actions", {}, void 0, !0)
|
|
4226
4230
|
]),
|
|
4227
4231
|
key: "0"
|
|
4228
4232
|
} : void 0
|
|
@@ -4262,17 +4266,17 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4262
4266
|
// before, with no tooltip and not focusable.
|
|
4263
4267
|
countHint: { type: String, default: "" }
|
|
4264
4268
|
},
|
|
4265
|
-
emits: [
|
|
4269
|
+
emits: [ce],
|
|
4266
4270
|
setup(e, { emit: i }) {
|
|
4267
|
-
const t = e, l = i, o =
|
|
4268
|
-
|
|
4271
|
+
const t = e, l = i, o = xe(), s = me(), c = me(), f = R(t.open);
|
|
4272
|
+
J(
|
|
4269
4273
|
() => t.open,
|
|
4270
4274
|
(m) => f.value = m
|
|
4271
4275
|
);
|
|
4272
4276
|
function v() {
|
|
4273
|
-
f.value = !f.value, l(
|
|
4277
|
+
f.value = !f.value, l(ce, f.value);
|
|
4274
4278
|
}
|
|
4275
|
-
const
|
|
4279
|
+
const $ = y(() => !!o.default && (!t.collapsible || f.value)), S = y(
|
|
4276
4280
|
() => t.collapsible ? { type: "button", "aria-expanded": String(f.value), "aria-controls": c } : {}
|
|
4277
4281
|
);
|
|
4278
4282
|
return (m, g) => (a(), n("section", {
|
|
@@ -4280,7 +4284,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4280
4284
|
"aria-labelledby": d(s)
|
|
4281
4285
|
}, [
|
|
4282
4286
|
r("div", Os, [
|
|
4283
|
-
(a(),
|
|
4287
|
+
(a(), Z(Xt(e.collapsible ? "button" : "div"), Be({
|
|
4284
4288
|
class: ["ds-profile-card__heading", { "ds-profile-card__toggle": e.collapsible }]
|
|
4285
4289
|
}, S.value, {
|
|
4286
4290
|
onClick: g[0] || (g[0] = (h) => e.collapsible ? v() : void 0)
|
|
@@ -4292,10 +4296,10 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4292
4296
|
class: "ds-profile-card__title"
|
|
4293
4297
|
}, b(e.title), 9, Ms),
|
|
4294
4298
|
e.count !== null && !e.countHint ? (a(), n("span", xs, b(e.count), 1)) : p("", !0),
|
|
4295
|
-
e.count !== null && e.countHint ? (a(),
|
|
4299
|
+
e.count !== null && e.countHint ? (a(), Z(ge, {
|
|
4296
4300
|
key: 1,
|
|
4297
4301
|
content: e.countHint,
|
|
4298
|
-
placement: d(
|
|
4302
|
+
placement: d(ke).BOTTOM
|
|
4299
4303
|
}, {
|
|
4300
4304
|
default: M(() => [
|
|
4301
4305
|
r("span", Ps, b(e.count), 1)
|
|
@@ -4310,10 +4314,10 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4310
4314
|
x(m.$slots, "actions", {}, void 0, !0)
|
|
4311
4315
|
])) : p("", !0)
|
|
4312
4316
|
]),
|
|
4313
|
-
|
|
4317
|
+
$.value ? (a(), n("div", {
|
|
4314
4318
|
key: 0,
|
|
4315
4319
|
id: d(c),
|
|
4316
|
-
class:
|
|
4320
|
+
class: C(["ds-profile-card__body", { "is-padded": e.padded }])
|
|
4317
4321
|
}, [
|
|
4318
4322
|
x(m.$slots, "default", {}, void 0, !0)
|
|
4319
4323
|
], 10, Us)) : p("", !0)
|
|
@@ -4366,11 +4370,11 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4366
4370
|
() => i.state === We.LOADING ? "autorenew" : Ys[i.kind]
|
|
4367
4371
|
);
|
|
4368
4372
|
return (l, o) => (a(), n("div", {
|
|
4369
|
-
class:
|
|
4373
|
+
class: C(["ds-contact-placeholder", `ds-contact-placeholder--${e.state}`]),
|
|
4370
4374
|
role: e.state === d(We).LOADING ? "status" : void 0
|
|
4371
4375
|
}, [
|
|
4372
4376
|
r("i", {
|
|
4373
|
-
class:
|
|
4377
|
+
class: C(["material-symbols-filled ds-contact-placeholder__icon", { "is-spinning": e.state === d(We).LOADING }]),
|
|
4374
4378
|
"aria-hidden": "true"
|
|
4375
4379
|
}, b(t.value), 3),
|
|
4376
4380
|
e.state === d(We).SKELETON ? (a(), n(K, { key: 0 }, [
|
|
@@ -4406,10 +4410,10 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4406
4410
|
const S = l.value;
|
|
4407
4411
|
!S || o.value || (s.value = S.scrollHeight > S.clientHeight + 1);
|
|
4408
4412
|
}
|
|
4409
|
-
|
|
4413
|
+
J(() => [i.text, i.lines, o.value], v, { flush: "post" }), we(() => {
|
|
4410
4414
|
v(), typeof ResizeObserver != "undefined" && l.value && (c = new ResizeObserver(v), c.observe(l.value));
|
|
4411
|
-
}),
|
|
4412
|
-
const
|
|
4415
|
+
}), de(() => c == null ? void 0 : c.disconnect());
|
|
4416
|
+
const $ = y(() => ({
|
|
4413
4417
|
type: "button",
|
|
4414
4418
|
class: "ds-clamped-text__toggle",
|
|
4415
4419
|
"aria-expanded": o.value,
|
|
@@ -4421,16 +4425,16 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4421
4425
|
return (S, m) => e.text ? (a(), n("div", er, [
|
|
4422
4426
|
e.label ? (a(), n("div", tr, [
|
|
4423
4427
|
r("span", ar, b(e.label), 1),
|
|
4424
|
-
f.value ? (a(), n("button", Da(
|
|
4428
|
+
f.value ? (a(), n("button", Da(Be({ key: 0 }, $.value)), b(o.value ? e.showLessLabel : e.showMoreLabel), 17)) : p("", !0)
|
|
4425
4429
|
])) : p("", !0),
|
|
4426
4430
|
r("div", {
|
|
4427
4431
|
id: d(t),
|
|
4428
4432
|
ref_key: "textRef",
|
|
4429
4433
|
ref: l,
|
|
4430
|
-
class:
|
|
4431
|
-
style:
|
|
4434
|
+
class: C(["ds-clamped-text__text", { "is-clamped": !o.value, "is-pre-line": e.preserveLineBreaks }]),
|
|
4435
|
+
style: Q({ "--ds-clamped-text-lines": e.lines })
|
|
4432
4436
|
}, b(e.text), 15, lr),
|
|
4433
|
-
!e.label && f.value ? (a(), n("button",
|
|
4437
|
+
!e.label && f.value ? (a(), n("button", Be({ key: 1 }, $.value, { class: "is-below" }), b(o.value ? e.showLessLabel : e.showMoreLabel), 17)) : p("", !0)
|
|
4434
4438
|
])) : p("", !0);
|
|
4435
4439
|
}
|
|
4436
4440
|
}), or = /* @__PURE__ */ F(nr, [["__scopeId", "data-v-1485808d"]]), ir = {
|
|
@@ -4466,7 +4470,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4466
4470
|
},
|
|
4467
4471
|
setup(e) {
|
|
4468
4472
|
const i = e, t = y(() => [i.industry, i.employees].filter(Boolean).join(" · ")), l = y(() => i.fields.filter((s) => s.value)), o = y(() => !!i.about || l.value.length > 0);
|
|
4469
|
-
return (s, c) => (a(),
|
|
4473
|
+
return (s, c) => (a(), Z(qs, {
|
|
4470
4474
|
class: "ds-profile-company-card",
|
|
4471
4475
|
icon: "corporate_fare",
|
|
4472
4476
|
title: e.title,
|
|
@@ -4475,9 +4479,9 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4475
4479
|
default: M(() => [
|
|
4476
4480
|
e.name ? (a(), n(K, { key: 1 }, [
|
|
4477
4481
|
r("div", {
|
|
4478
|
-
class:
|
|
4482
|
+
class: C(["ds-profile-company-card__header", { "has-rest": o.value }])
|
|
4479
4483
|
}, [
|
|
4480
|
-
|
|
4484
|
+
q(ra, {
|
|
4481
4485
|
class: "ds-profile-company-card__logo",
|
|
4482
4486
|
src: e.logo,
|
|
4483
4487
|
name: e.name,
|
|
@@ -4487,10 +4491,10 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4487
4491
|
r("div", dr, b(e.name), 1),
|
|
4488
4492
|
t.value ? (a(), n("div", cr, b(t.value), 1)) : p("", !0)
|
|
4489
4493
|
]),
|
|
4490
|
-
e.websiteUrl ? (a(),
|
|
4494
|
+
e.websiteUrl ? (a(), Z(ge, {
|
|
4491
4495
|
key: 0,
|
|
4492
4496
|
content: e.websiteLabel,
|
|
4493
|
-
placement: d(
|
|
4497
|
+
placement: d(ke).TOP
|
|
4494
4498
|
}, {
|
|
4495
4499
|
default: M(() => [
|
|
4496
4500
|
r("a", {
|
|
@@ -4518,16 +4522,16 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4518
4522
|
}, "in", 8, fr)) : p("", !0)
|
|
4519
4523
|
], 2),
|
|
4520
4524
|
e.about ? (a(), n("div", vr, [
|
|
4521
|
-
|
|
4525
|
+
q(or, {
|
|
4522
4526
|
text: e.about,
|
|
4523
4527
|
label: e.aboutLabel,
|
|
4524
4528
|
"show-more-label": e.showMoreLabel,
|
|
4525
4529
|
"show-less-label": e.showLessLabel
|
|
4526
4530
|
}, null, 8, ["text", "label", "show-more-label", "show-less-label"])
|
|
4527
4531
|
])) : p("", !0),
|
|
4528
|
-
(a(!0), n(K, null,
|
|
4532
|
+
(a(!0), n(K, null, le(l.value, (f, v) => (a(), n("div", {
|
|
4529
4533
|
key: f.id,
|
|
4530
|
-
class:
|
|
4534
|
+
class: C(["ds-profile-company-card__field", { "is-first": v === 0 && !e.about }])
|
|
4531
4535
|
}, [
|
|
4532
4536
|
r("span", mr, b(f.label), 1),
|
|
4533
4537
|
f.href ? (a(), n("a", {
|
|
@@ -4573,15 +4577,15 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4573
4577
|
const c = l.value;
|
|
4574
4578
|
o.value = !!c && c.scrollWidth > c.clientWidth;
|
|
4575
4579
|
}
|
|
4576
|
-
return
|
|
4580
|
+
return we(() => {
|
|
4577
4581
|
oe(s);
|
|
4578
|
-
}),
|
|
4582
|
+
}), J(
|
|
4579
4583
|
() => i.headline,
|
|
4580
4584
|
() => {
|
|
4581
4585
|
oe(s);
|
|
4582
4586
|
}
|
|
4583
4587
|
), (c, f) => (a(), n("div", hr, [
|
|
4584
|
-
|
|
4588
|
+
q(Za, {
|
|
4585
4589
|
class: "ds-profile-hero__avatar",
|
|
4586
4590
|
image: e.image,
|
|
4587
4591
|
"first-name": e.firstName,
|
|
@@ -4594,14 +4598,14 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4594
4598
|
}, null, 8, ["image", "first-name", "last-name", "alt"]),
|
|
4595
4599
|
r("div", pr, [
|
|
4596
4600
|
r("span", {
|
|
4597
|
-
class:
|
|
4601
|
+
class: C(["ds-profile-hero__name", { "ds-profile-hero__name--with-actions": c.$slots.actions }])
|
|
4598
4602
|
}, b(t.value), 3),
|
|
4599
|
-
e.headline ? (a(),
|
|
4603
|
+
e.headline ? (a(), Z(ge, {
|
|
4600
4604
|
key: 0,
|
|
4601
4605
|
class: "ds-profile-hero__headline-tooltip",
|
|
4602
4606
|
content: e.headline,
|
|
4603
4607
|
disabled: !o.value,
|
|
4604
|
-
placement: d(
|
|
4608
|
+
placement: d(ke).BOTTOM,
|
|
4605
4609
|
block: ""
|
|
4606
4610
|
}, {
|
|
4607
4611
|
default: M(() => [
|
|
@@ -4616,9 +4620,9 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4616
4620
|
_: 1
|
|
4617
4621
|
}, 8, ["content", "disabled", "placement"])) : p("", !0),
|
|
4618
4622
|
e.linkedinUrl ? (a(), n("div", kr, [
|
|
4619
|
-
|
|
4623
|
+
q(ge, {
|
|
4620
4624
|
content: e.linkedinLabel,
|
|
4621
|
-
placement: d(
|
|
4625
|
+
placement: d(ke).BOTTOM
|
|
4622
4626
|
}, {
|
|
4623
4627
|
default: M(() => [
|
|
4624
4628
|
r("a", {
|
|
@@ -4683,7 +4687,7 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4683
4687
|
},
|
|
4684
4688
|
setup(e) {
|
|
4685
4689
|
const i = e, t = R(!1);
|
|
4686
|
-
|
|
4690
|
+
J(
|
|
4687
4691
|
() => i.logo,
|
|
4688
4692
|
() => t.value = !1
|
|
4689
4693
|
);
|
|
@@ -4717,11 +4721,11 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4717
4721
|
hint: { type: String, default: "" }
|
|
4718
4722
|
},
|
|
4719
4723
|
setup(e) {
|
|
4720
|
-
return (i, t) => (a(),
|
|
4724
|
+
return (i, t) => (a(), Z(ge, {
|
|
4721
4725
|
class: "ds-profile-locked-card-tooltip",
|
|
4722
4726
|
content: e.hint,
|
|
4723
4727
|
disabled: !e.hint,
|
|
4724
|
-
placement: d(
|
|
4728
|
+
placement: d(ke).LEFT,
|
|
4725
4729
|
block: ""
|
|
4726
4730
|
}, {
|
|
4727
4731
|
default: M(() => [
|
|
@@ -4746,11 +4750,11 @@ const ts = ["title"], as = { "aria-hidden": "true" }, ls = {
|
|
|
4746
4750
|
}, ot = {
|
|
4747
4751
|
START: "start",
|
|
4748
4752
|
END: "end"
|
|
4749
|
-
}, va = "360px",
|
|
4753
|
+
}, va = "360px", pe = {
|
|
4750
4754
|
NONE: "none",
|
|
4751
4755
|
EVENT: "event",
|
|
4752
4756
|
FORM: "form"
|
|
4753
|
-
},
|
|
4757
|
+
}, Ee = {
|
|
4754
4758
|
NONE: "none",
|
|
4755
4759
|
EVENT: "event",
|
|
4756
4760
|
FORM: "form"
|
|
@@ -4775,17 +4779,17 @@ function ma(e, ...i) {
|
|
|
4775
4779
|
}
|
|
4776
4780
|
const ba = (e) => Array.isArray(e.colors) && e.colors.length > 0;
|
|
4777
4781
|
function ya(e, i) {
|
|
4778
|
-
return Object.values(
|
|
4782
|
+
return Object.values(pe).includes(e) ? e !== pe.FORM || ba(i) : !1;
|
|
4779
4783
|
}
|
|
4780
4784
|
function ga(e, i) {
|
|
4781
|
-
return typeof e == "boolean" ? !0 : Object.values(
|
|
4785
|
+
return typeof e == "boolean" ? !0 : Object.values(Ee).includes(e) ? e !== Ee.FORM || ba(i) : !1;
|
|
4782
4786
|
}
|
|
4783
4787
|
function ha(e) {
|
|
4784
4788
|
const i = e.colors.length > 0;
|
|
4785
4789
|
let t = e.create;
|
|
4786
|
-
t === void 0 && (!!e.aliases.createLabel || !!e.hasFooterSlot ? t = i ?
|
|
4790
|
+
t === void 0 && (!!e.aliases.createLabel || !!e.hasFooterSlot ? t = i ? pe.FORM : pe.EVENT : t = pe.NONE);
|
|
4787
4791
|
let l;
|
|
4788
|
-
typeof e.rowActions == "string" ? l = e.rowActions : e.rowActions === !0 ? l = i ?
|
|
4792
|
+
typeof e.rowActions == "string" ? l = e.rowActions : e.rowActions === !0 ? l = i ? Ee.FORM : Ee.EVENT : l = Ee.NONE;
|
|
4789
4793
|
const o = {};
|
|
4790
4794
|
for (const [s, c] of Object.entries(e.copyMap)) {
|
|
4791
4795
|
const f = e.aliases[s];
|
|
@@ -4819,43 +4823,43 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
4819
4823
|
},
|
|
4820
4824
|
emits: [Mt, xt, Pt, dt],
|
|
4821
4825
|
setup(e, { expose: i, emit: t }) {
|
|
4822
|
-
const l = e, o = t, s = me(), c = me(), f = R(), v = [],
|
|
4826
|
+
const l = e, o = t, s = me(), c = me(), f = R(), v = [], $ = R(!1), S = y(() => l.name.trim()), m = y(
|
|
4823
4827
|
() => S.value.length > 0 && S.value.length <= l.maxNameLength
|
|
4824
4828
|
), g = y(() => {
|
|
4825
|
-
var
|
|
4826
|
-
return l.originalName === void 0 ? !0 : S.value !== l.originalName.trim() || l.color.toLowerCase() !== ((
|
|
4827
|
-
}), h = y(() => m.value && g.value), k = y(() =>
|
|
4828
|
-
function u(
|
|
4829
|
-
|
|
4829
|
+
var V;
|
|
4830
|
+
return l.originalName === void 0 ? !0 : S.value !== l.originalName.trim() || l.color.toLowerCase() !== ((V = l.originalColor) != null ? V : "").toLowerCase();
|
|
4831
|
+
}), h = y(() => m.value && g.value), k = y(() => $.value ? S.value ? S.value.length > l.maxNameLength ? l.errorTooLongName : "" : l.errorMissingName : ""), _ = y(() => k.value || l.errorMessage), w = y(() => Math.max(l.colors.indexOf(l.color), 0));
|
|
4832
|
+
function u(V) {
|
|
4833
|
+
$.value = !0, o(Pt, V);
|
|
4830
4834
|
}
|
|
4831
4835
|
function E() {
|
|
4832
|
-
|
|
4836
|
+
$.value = !0, !(l.loading || !h.value) && o(xt, { name: S.value, color: l.color });
|
|
4833
4837
|
}
|
|
4834
|
-
function
|
|
4835
|
-
|
|
4838
|
+
function N(V) {
|
|
4839
|
+
V.isComposing || (V.preventDefault(), E());
|
|
4836
4840
|
}
|
|
4837
|
-
function
|
|
4838
|
-
v[T] =
|
|
4841
|
+
function U(V, T) {
|
|
4842
|
+
v[T] = V;
|
|
4839
4843
|
}
|
|
4840
|
-
const
|
|
4844
|
+
const j = {
|
|
4841
4845
|
ArrowRight: 1,
|
|
4842
4846
|
ArrowDown: 1,
|
|
4843
4847
|
ArrowLeft: -1,
|
|
4844
4848
|
ArrowUp: -1
|
|
4845
4849
|
};
|
|
4846
|
-
function
|
|
4847
|
-
var
|
|
4848
|
-
const D =
|
|
4850
|
+
function X(V, T) {
|
|
4851
|
+
var G;
|
|
4852
|
+
const D = j[V.key];
|
|
4849
4853
|
if (!D) return;
|
|
4850
|
-
|
|
4851
|
-
const L = l.colors.length,
|
|
4852
|
-
(
|
|
4854
|
+
V.preventDefault();
|
|
4855
|
+
const L = l.colors.length, I = (T + D + L) % L;
|
|
4856
|
+
(G = v[I]) == null || G.focus(), o(dt, l.colors[I]);
|
|
4853
4857
|
}
|
|
4854
|
-
const
|
|
4855
|
-
var
|
|
4856
|
-
return (
|
|
4858
|
+
const O = () => {
|
|
4859
|
+
var V;
|
|
4860
|
+
return (V = f.value) == null ? void 0 : V.focus();
|
|
4857
4861
|
};
|
|
4858
|
-
return
|
|
4862
|
+
return we(O), i({ focus: O }), (V, T) => (a(), n("div", {
|
|
4859
4863
|
class: "ds-organizer-form",
|
|
4860
4864
|
role: "group",
|
|
4861
4865
|
"aria-label": e.title
|
|
@@ -4874,18 +4878,18 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
4874
4878
|
], 8, qr),
|
|
4875
4879
|
T[2] || (T[2] = r("div", { class: "ds-organizer-form__divider" }, null, -1)),
|
|
4876
4880
|
r("div", Hr, [
|
|
4877
|
-
|
|
4881
|
+
q(d(nt), {
|
|
4878
4882
|
id: d(s),
|
|
4879
4883
|
ref_key: "inputRef",
|
|
4880
4884
|
ref: f,
|
|
4881
4885
|
"model-value": e.name,
|
|
4882
4886
|
size: d(Zt).MD,
|
|
4883
4887
|
placeholder: e.namePlaceholder,
|
|
4884
|
-
error:
|
|
4885
|
-
"error-message":
|
|
4888
|
+
error: !!_.value,
|
|
4889
|
+
"error-message": _.value,
|
|
4886
4890
|
autocomplete: "off",
|
|
4887
4891
|
"onUpdate:modelValue": u,
|
|
4888
|
-
onKeydown: Ye(
|
|
4892
|
+
onKeydown: Ye(N, ["enter"])
|
|
4889
4893
|
}, null, 8, ["id", "model-value", "size", "placeholder", "error", "error-message"])
|
|
4890
4894
|
]),
|
|
4891
4895
|
r("p", {
|
|
@@ -4897,29 +4901,29 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
4897
4901
|
role: "radiogroup",
|
|
4898
4902
|
"aria-labelledby": d(c)
|
|
4899
4903
|
}, [
|
|
4900
|
-
(a(!0), n(K, null,
|
|
4904
|
+
(a(!0), n(K, null, le(e.colors, (D, L) => (a(), n("button", {
|
|
4901
4905
|
key: D,
|
|
4902
4906
|
ref_for: !0,
|
|
4903
|
-
ref: (
|
|
4907
|
+
ref: (I) => U(I, L),
|
|
4904
4908
|
type: "button",
|
|
4905
4909
|
role: "radio",
|
|
4906
|
-
class:
|
|
4907
|
-
style:
|
|
4910
|
+
class: C(["ds-organizer-form__swatch", { "is-selected": D === e.color }]),
|
|
4911
|
+
style: Q({ "--swatch-color": D }),
|
|
4908
4912
|
"aria-checked": D === e.color,
|
|
4909
4913
|
"aria-label": D,
|
|
4910
4914
|
tabindex: L === w.value ? 0 : -1,
|
|
4911
|
-
onClick: (
|
|
4912
|
-
onKeydown: (
|
|
4915
|
+
onClick: (I) => o(d(dt), D),
|
|
4916
|
+
onKeydown: (I) => X(I, L)
|
|
4913
4917
|
}, [
|
|
4914
4918
|
D === e.color ? (a(), n("i", jr, "check")) : p("", !0)
|
|
4915
4919
|
], 46, Yr))), 128))
|
|
4916
4920
|
], 8, Wr),
|
|
4917
4921
|
T[3] || (T[3] = r("div", { class: "ds-organizer-form__divider" }, null, -1)),
|
|
4918
4922
|
r("div", Xr, [
|
|
4919
|
-
|
|
4923
|
+
q(d(re), {
|
|
4920
4924
|
class: "ds-organizer-form__submit",
|
|
4921
|
-
variant: d(
|
|
4922
|
-
size: d(
|
|
4925
|
+
variant: d(ue).PRIMARY,
|
|
4926
|
+
size: d(fe).LARGE,
|
|
4923
4927
|
loading: e.loading,
|
|
4924
4928
|
disabled: !h.value,
|
|
4925
4929
|
onClick: E
|
|
@@ -4941,22 +4945,22 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
4941
4945
|
deleteLabel: { type: String, default: "Delete" },
|
|
4942
4946
|
showEdit: { type: Boolean, default: !0 }
|
|
4943
4947
|
},
|
|
4944
|
-
emits: [
|
|
4948
|
+
emits: [Me, Ue],
|
|
4945
4949
|
setup(e, { emit: i }) {
|
|
4946
4950
|
const t = e, l = i, o = /* @__PURE__ */ Symbol("ds-picker-row-actions"), s = R(!1), c = R(null), f = R(null);
|
|
4947
4951
|
function v(k) {
|
|
4948
4952
|
s.value !== k && (s.value = k, k ? Fe.value = o : Fe.value === o && (Fe.value = null));
|
|
4949
4953
|
}
|
|
4950
|
-
|
|
4954
|
+
J(Fe, (k) => {
|
|
4951
4955
|
k !== o && v(!1);
|
|
4952
4956
|
});
|
|
4953
|
-
const { focusFirst:
|
|
4957
|
+
const { focusFirst: $, onKeydown: S } = sa(f, {
|
|
4954
4958
|
onClose: g
|
|
4955
4959
|
});
|
|
4956
|
-
|
|
4960
|
+
J(
|
|
4957
4961
|
s,
|
|
4958
4962
|
(k) => {
|
|
4959
|
-
k &&
|
|
4963
|
+
k && $();
|
|
4960
4964
|
},
|
|
4961
4965
|
{ flush: "post" }
|
|
4962
4966
|
);
|
|
@@ -4972,9 +4976,9 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
4972
4976
|
function h(k) {
|
|
4973
4977
|
v(!1), k === Ue && m(), l(k, t.option);
|
|
4974
4978
|
}
|
|
4975
|
-
return
|
|
4979
|
+
return de(() => {
|
|
4976
4980
|
Fe.value === o && (Fe.value = null);
|
|
4977
|
-
}), (k,
|
|
4981
|
+
}), (k, _) => (a(), Z(d(He), {
|
|
4978
4982
|
class: "ds-picker-row-actions",
|
|
4979
4983
|
open: s.value,
|
|
4980
4984
|
placement: d(qe).BOTTOM_END,
|
|
@@ -4991,7 +4995,7 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
4991
4995
|
"aria-label": e.actionsLabel,
|
|
4992
4996
|
"aria-haspopup": "menu",
|
|
4993
4997
|
"aria-expanded": s.value
|
|
4994
|
-
}, [
|
|
4998
|
+
}, [..._[3] || (_[3] = [
|
|
4995
4999
|
r("i", {
|
|
4996
5000
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
4997
5001
|
"aria-hidden": "true"
|
|
@@ -5005,7 +5009,7 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
5005
5009
|
class: "ds-picker-row-actions__menu",
|
|
5006
5010
|
role: "menu",
|
|
5007
5011
|
"aria-label": e.actionsLabel,
|
|
5008
|
-
onKeydown:
|
|
5012
|
+
onKeydown: _[2] || (_[2] = //@ts-ignore
|
|
5009
5013
|
(...w) => d(S) && d(S)(...w))
|
|
5010
5014
|
}, [
|
|
5011
5015
|
e.showEdit ? (a(), n("button", {
|
|
@@ -5014,9 +5018,9 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
5014
5018
|
role: "menuitem",
|
|
5015
5019
|
tabindex: "-1",
|
|
5016
5020
|
class: "ds-picker-row-actions__item",
|
|
5017
|
-
onClick:
|
|
5021
|
+
onClick: _[0] || (_[0] = (w) => h(d(Me)))
|
|
5018
5022
|
}, [
|
|
5019
|
-
|
|
5023
|
+
_[4] || (_[4] = r("i", {
|
|
5020
5024
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
5021
5025
|
"aria-hidden": "true"
|
|
5022
5026
|
}, "edit", -1)),
|
|
@@ -5027,9 +5031,9 @@ const Vr = ["aria-label"], qr = ["aria-label"], Gr = { class: "ds-organizer-form
|
|
|
5027
5031
|
role: "menuitem",
|
|
5028
5032
|
tabindex: "-1",
|
|
5029
5033
|
class: "ds-picker-row-actions__item ds-picker-row-actions__item--danger",
|
|
5030
|
-
onClick:
|
|
5034
|
+
onClick: _[1] || (_[1] = (w) => h(d(Ue)))
|
|
5031
5035
|
}, [
|
|
5032
|
-
|
|
5036
|
+
_[5] || (_[5] = r("i", {
|
|
5033
5037
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
5034
5038
|
"aria-hidden": "true"
|
|
5035
5039
|
}, "delete", -1)),
|
|
@@ -5045,7 +5049,7 @@ function Sa(e) {
|
|
|
5045
5049
|
const i = R("list"), t = R("create"), l = R(null), o = R(""), s = R(""), c = R(""), f = y(() => i.value === "form"), v = () => {
|
|
5046
5050
|
var u;
|
|
5047
5051
|
return (u = e.colors()[0]) != null ? u : "";
|
|
5048
|
-
},
|
|
5052
|
+
}, $ = y(() => {
|
|
5049
5053
|
const u = e.formError();
|
|
5050
5054
|
return u && u === c.value ? "" : u;
|
|
5051
5055
|
}), S = y(() => {
|
|
@@ -5060,12 +5064,12 @@ function Sa(e) {
|
|
|
5060
5064
|
}
|
|
5061
5065
|
function h(u) {
|
|
5062
5066
|
var E;
|
|
5063
|
-
e.emit(
|
|
5067
|
+
e.emit(Me, u), e.rowActions() === Ee.FORM && (t.value = "edit", l.value = u, o.value = u.name, s.value = (E = u.color) != null ? E : v(), i.value = "form");
|
|
5064
5068
|
}
|
|
5065
5069
|
function k(u) {
|
|
5066
5070
|
e.emit(Ue, u);
|
|
5067
5071
|
}
|
|
5068
|
-
function
|
|
5072
|
+
function _({ name: u, color: E }) {
|
|
5069
5073
|
c.value = "", t.value === "edit" && l.value ? e.emit(yt, { id: l.value.id, name: u, color: E }) : e.emit(bt, { name: u, color: E });
|
|
5070
5074
|
}
|
|
5071
5075
|
function w() {
|
|
@@ -5078,13 +5082,13 @@ function Sa(e) {
|
|
|
5078
5082
|
formName: o,
|
|
5079
5083
|
formColor: s,
|
|
5080
5084
|
isForm: f,
|
|
5081
|
-
shownFormError:
|
|
5085
|
+
shownFormError: $,
|
|
5082
5086
|
editingColor: S,
|
|
5083
5087
|
resetForm: m,
|
|
5084
5088
|
openCreateForm: g,
|
|
5085
5089
|
onEdit: h,
|
|
5086
5090
|
onDelete: k,
|
|
5087
|
-
onSubmit:
|
|
5091
|
+
onSubmit: _,
|
|
5088
5092
|
closeForm: w
|
|
5089
5093
|
};
|
|
5090
5094
|
}
|
|
@@ -5131,7 +5135,7 @@ const ld = {
|
|
|
5131
5135
|
tooltip: { type: String, default: "" },
|
|
5132
5136
|
tooltipPlacement: {
|
|
5133
5137
|
type: String,
|
|
5134
|
-
default:
|
|
5138
|
+
default: ke.BOTTOM
|
|
5135
5139
|
},
|
|
5136
5140
|
folder: { type: Object, default: null },
|
|
5137
5141
|
folders: { type: Array, required: !0 },
|
|
@@ -5183,9 +5187,9 @@ const ld = {
|
|
|
5183
5187
|
emits: [
|
|
5184
5188
|
Nt,
|
|
5185
5189
|
at,
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5190
|
+
$e,
|
|
5191
|
+
ce,
|
|
5192
|
+
Me,
|
|
5189
5193
|
Ue,
|
|
5190
5194
|
bt,
|
|
5191
5195
|
yt,
|
|
@@ -5200,65 +5204,65 @@ const ld = {
|
|
|
5200
5204
|
aliases: l,
|
|
5201
5205
|
copyMap: nd
|
|
5202
5206
|
})
|
|
5203
|
-
),
|
|
5207
|
+
), $ = y(() => v.value.create), S = y(() => v.value.rowActions), m = y(
|
|
5204
5208
|
() => ma(ld, v.value.copy, l.copy)
|
|
5205
5209
|
), {
|
|
5206
5210
|
mode: g,
|
|
5207
5211
|
editing: h,
|
|
5208
5212
|
formName: k,
|
|
5209
|
-
formColor:
|
|
5213
|
+
formColor: _,
|
|
5210
5214
|
isForm: w,
|
|
5211
5215
|
shownFormError: u,
|
|
5212
5216
|
editingColor: E,
|
|
5213
|
-
resetForm:
|
|
5214
|
-
openCreateForm:
|
|
5215
|
-
onEdit:
|
|
5216
|
-
onDelete:
|
|
5217
|
-
onSubmit:
|
|
5218
|
-
closeForm:
|
|
5217
|
+
resetForm: N,
|
|
5218
|
+
openCreateForm: U,
|
|
5219
|
+
onEdit: j,
|
|
5220
|
+
onDelete: X,
|
|
5221
|
+
onSubmit: O,
|
|
5222
|
+
closeForm: V
|
|
5219
5223
|
} = Sa({
|
|
5220
5224
|
colors: () => l.colors,
|
|
5221
5225
|
rowActions: () => S.value,
|
|
5222
5226
|
formError: () => l.formError,
|
|
5223
5227
|
emit: o,
|
|
5224
5228
|
focusSearch: () => {
|
|
5225
|
-
var
|
|
5226
|
-
return (
|
|
5229
|
+
var ae;
|
|
5230
|
+
return (ae = f.value) == null ? void 0 : ae.focus();
|
|
5227
5231
|
}
|
|
5228
|
-
}), T = me(), D = y(() => kt(l.align)), L = y(() => pt(l.folders, c.value)),
|
|
5229
|
-
() => l.size === Ge.LARGE ?
|
|
5232
|
+
}), T = me(), D = y(() => kt(l.align)), L = y(() => pt(l.folders, c.value)), I = y(
|
|
5233
|
+
() => l.size === Ge.LARGE ? fe.LARGE : fe.MEDIUM
|
|
5230
5234
|
);
|
|
5231
|
-
function
|
|
5232
|
-
return l.folder !== null && l.folder.id ===
|
|
5235
|
+
function G(ae) {
|
|
5236
|
+
return l.folder !== null && l.folder.id === ae.id;
|
|
5233
5237
|
}
|
|
5234
|
-
function
|
|
5235
|
-
s.value !==
|
|
5238
|
+
function te(ae) {
|
|
5239
|
+
s.value !== ae && (ae && (c.value = ""), N(), s.value = ae, o(ce, ae));
|
|
5236
5240
|
}
|
|
5237
|
-
function
|
|
5238
|
-
l.disabled ||
|
|
5241
|
+
function W() {
|
|
5242
|
+
l.disabled || te(!s.value);
|
|
5239
5243
|
}
|
|
5240
|
-
function
|
|
5241
|
-
o(Nt,
|
|
5244
|
+
function ie(ae) {
|
|
5245
|
+
o(Nt, ae), te(!1);
|
|
5242
5246
|
}
|
|
5243
|
-
function
|
|
5244
|
-
|
|
5247
|
+
function he(ae) {
|
|
5248
|
+
U(ae != null ? ae : c.value.trim());
|
|
5245
5249
|
}
|
|
5246
|
-
function
|
|
5247
|
-
if (
|
|
5248
|
-
|
|
5250
|
+
function Se() {
|
|
5251
|
+
if ($.value === pe.FORM) {
|
|
5252
|
+
he();
|
|
5249
5253
|
return;
|
|
5250
5254
|
}
|
|
5251
|
-
o(at, c.value.trim()),
|
|
5255
|
+
o(at, c.value.trim()), te(!1);
|
|
5252
5256
|
}
|
|
5253
|
-
return i({ closeForm:
|
|
5254
|
-
|
|
5255
|
-
var
|
|
5256
|
-
return (
|
|
5257
|
+
return i({ closeForm: V }), J(s, (ae) => {
|
|
5258
|
+
ae && oe(() => {
|
|
5259
|
+
var ne;
|
|
5260
|
+
return (ne = f.value) == null ? void 0 : ne.focus();
|
|
5257
5261
|
});
|
|
5258
|
-
}),
|
|
5259
|
-
class:
|
|
5262
|
+
}), J(c, (ae) => o($e, ae)), (ae, ne) => (a(), n("div", {
|
|
5263
|
+
class: C(["ds-saved-button", [`ds-saved-button--${e.size}`, { "is-open": s.value, "is-disabled": e.disabled }]])
|
|
5260
5264
|
}, [
|
|
5261
|
-
|
|
5265
|
+
q(d(He), {
|
|
5262
5266
|
open: s.value,
|
|
5263
5267
|
placement: D.value,
|
|
5264
5268
|
width: "300px",
|
|
@@ -5266,28 +5270,28 @@ const ld = {
|
|
|
5266
5270
|
flush: d(w),
|
|
5267
5271
|
"trigger-on-click": !1,
|
|
5268
5272
|
teleported: e.teleported,
|
|
5269
|
-
"onUpdate:open":
|
|
5273
|
+
"onUpdate:open": te
|
|
5270
5274
|
}, {
|
|
5271
5275
|
trigger: M(() => [
|
|
5272
|
-
|
|
5276
|
+
q(d(ge), {
|
|
5273
5277
|
content: e.tooltip,
|
|
5274
5278
|
disabled: !e.tooltip || s.value,
|
|
5275
5279
|
placement: e.tooltipPlacement,
|
|
5276
5280
|
teleported: ""
|
|
5277
5281
|
}, {
|
|
5278
5282
|
default: M(() => [
|
|
5279
|
-
|
|
5283
|
+
q(d(re), {
|
|
5280
5284
|
class: "ds-saved-button__trigger",
|
|
5281
|
-
variant: d(
|
|
5282
|
-
size:
|
|
5285
|
+
variant: d(ue).OUTLINE,
|
|
5286
|
+
size: I.value,
|
|
5283
5287
|
pill: e.pill,
|
|
5284
5288
|
disabled: e.disabled,
|
|
5285
5289
|
"aria-haspopup": "listbox",
|
|
5286
5290
|
"aria-expanded": s.value,
|
|
5287
|
-
onClick:
|
|
5291
|
+
onClick: W
|
|
5288
5292
|
}, mt({
|
|
5289
5293
|
trailing: M(() => [
|
|
5290
|
-
|
|
5294
|
+
ne[3] || (ne[3] = r("i", {
|
|
5291
5295
|
class: "material-symbols-filled ds-saved-button__caret",
|
|
5292
5296
|
"aria-hidden": "true"
|
|
5293
5297
|
}, "keyboard_arrow_down", -1))
|
|
@@ -5302,7 +5306,7 @@ const ld = {
|
|
|
5302
5306
|
fn: M(() => [
|
|
5303
5307
|
r("i", {
|
|
5304
5308
|
class: "material-symbols-filled ds-saved-button__icon",
|
|
5305
|
-
style:
|
|
5309
|
+
style: Q({ color: e.folder.color }),
|
|
5306
5310
|
"aria-hidden": "true"
|
|
5307
5311
|
}, b(e.icon), 5)
|
|
5308
5312
|
]),
|
|
@@ -5314,13 +5318,13 @@ const ld = {
|
|
|
5314
5318
|
}, 8, ["content", "disabled", "placement"])
|
|
5315
5319
|
]),
|
|
5316
5320
|
default: M(() => [
|
|
5317
|
-
d(w) ? (a(),
|
|
5321
|
+
d(w) ? (a(), Z(d(pa), {
|
|
5318
5322
|
key: 0,
|
|
5319
5323
|
class: "ds-saved-button__form",
|
|
5320
5324
|
title: d(g) === "edit" ? m.value.editFormTitle : m.value.createFormTitle,
|
|
5321
5325
|
"submit-label": d(g) === "edit" ? m.value.editSubmit : m.value.createSubmit,
|
|
5322
5326
|
name: d(k),
|
|
5323
|
-
color: d(
|
|
5327
|
+
color: d(_),
|
|
5324
5328
|
"original-name": d(h) ? d(h).name : void 0,
|
|
5325
5329
|
"original-color": d(h) ? d(E) : void 0,
|
|
5326
5330
|
colors: e.colors,
|
|
@@ -5331,71 +5335,71 @@ const ld = {
|
|
|
5331
5335
|
"back-label": m.value.back,
|
|
5332
5336
|
"error-missing-name": m.value.errorMissingName,
|
|
5333
5337
|
"error-too-long-name": m.value.errorTooLongName,
|
|
5334
|
-
"onUpdate:name":
|
|
5335
|
-
"onUpdate:color":
|
|
5336
|
-
onBack: d(
|
|
5337
|
-
onSubmit: d(
|
|
5338
|
+
"onUpdate:name": ne[0] || (ne[0] = (se) => k.value = se),
|
|
5339
|
+
"onUpdate:color": ne[1] || (ne[1] = (se) => _.value = se),
|
|
5340
|
+
onBack: d(V),
|
|
5341
|
+
onSubmit: d(O)
|
|
5338
5342
|
}, 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", "onBack", "onSubmit"])) : (a(), n("div", id, [
|
|
5339
|
-
|
|
5343
|
+
q(d(nt), {
|
|
5340
5344
|
ref_key: "searchRef",
|
|
5341
5345
|
ref: f,
|
|
5342
5346
|
modelValue: c.value,
|
|
5343
|
-
"onUpdate:modelValue":
|
|
5347
|
+
"onUpdate:modelValue": ne[2] || (ne[2] = (se) => c.value = se),
|
|
5344
5348
|
class: "ds-saved-button__search",
|
|
5345
5349
|
type: "search",
|
|
5346
5350
|
size: "sm",
|
|
5347
5351
|
placeholder: m.value.searchPlaceholder
|
|
5348
5352
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
5349
|
-
|
|
5353
|
+
ne[5] || (ne[5] = r("div", { class: "ds-saved-button__divider" }, null, -1)),
|
|
5350
5354
|
r("div", {
|
|
5351
5355
|
class: "ds-saved-button__list",
|
|
5352
5356
|
role: "radiogroup",
|
|
5353
5357
|
"aria-label": e.label
|
|
5354
5358
|
}, [
|
|
5355
|
-
(a(!0), n(K, null,
|
|
5356
|
-
key:
|
|
5357
|
-
class:
|
|
5359
|
+
(a(!0), n(K, null, le(L.value, (se) => (a(), n("div", {
|
|
5360
|
+
key: se.id,
|
|
5361
|
+
class: C(["ds-saved-button__option", { "is-current": G(se) }])
|
|
5358
5362
|
}, [
|
|
5359
|
-
|
|
5363
|
+
q(d(ia), {
|
|
5360
5364
|
name: d(T),
|
|
5361
|
-
value: String(
|
|
5362
|
-
"model-value":
|
|
5363
|
-
"onUpdate:modelValue": (
|
|
5365
|
+
value: String(se.id),
|
|
5366
|
+
"model-value": G(se),
|
|
5367
|
+
"onUpdate:modelValue": (Ne) => ie(se)
|
|
5364
5368
|
}, {
|
|
5365
5369
|
default: M(() => [
|
|
5366
5370
|
r("i", {
|
|
5367
5371
|
class: "material-symbols-filled ds-saved-button__option-icon",
|
|
5368
|
-
style:
|
|
5372
|
+
style: Q({ color: se.color }),
|
|
5369
5373
|
"aria-hidden": "true"
|
|
5370
5374
|
}, b(e.icon), 5),
|
|
5371
|
-
r("span", rd, b(
|
|
5375
|
+
r("span", rd, b(se.name), 1)
|
|
5372
5376
|
]),
|
|
5373
5377
|
_: 2
|
|
5374
5378
|
}, 1032, ["name", "value", "model-value", "onUpdate:modelValue"]),
|
|
5375
|
-
S.value !== d(
|
|
5379
|
+
S.value !== d(Ee).NONE ? (a(), Z(d(ka), {
|
|
5376
5380
|
key: 0,
|
|
5377
|
-
option:
|
|
5381
|
+
option: se,
|
|
5378
5382
|
"actions-label": m.value.actions,
|
|
5379
5383
|
"edit-label": m.value.edit,
|
|
5380
5384
|
"delete-label": m.value.delete,
|
|
5381
|
-
onEdit: d(
|
|
5382
|
-
onDelete: d(
|
|
5385
|
+
onEdit: d(j),
|
|
5386
|
+
onDelete: d(X)
|
|
5383
5387
|
}, null, 8, ["option", "actions-label", "edit-label", "delete-label", "onEdit", "onDelete"])) : p("", !0)
|
|
5384
5388
|
], 2))), 128)),
|
|
5385
5389
|
!L.value.length && m.value.empty ? (a(), n("p", dd, b(m.value.empty), 1)) : p("", !0)
|
|
5386
5390
|
], 8, sd),
|
|
5387
|
-
|
|
5388
|
-
|
|
5391
|
+
$.value !== d(pe).NONE || ae.$slots.footer ? (a(), n(K, { key: 0 }, [
|
|
5392
|
+
ne[4] || (ne[4] = r("div", { class: "ds-saved-button__divider" }, null, -1)),
|
|
5389
5393
|
r("div", cd, [
|
|
5390
|
-
x(
|
|
5394
|
+
x(ae.$slots, "footer", {
|
|
5391
5395
|
query: c.value,
|
|
5392
|
-
openCreateForm:
|
|
5396
|
+
openCreateForm: he
|
|
5393
5397
|
}, () => [
|
|
5394
|
-
|
|
5395
|
-
variant: d(
|
|
5396
|
-
size: d(
|
|
5398
|
+
q(d(re), {
|
|
5399
|
+
variant: d(ue).TERTIARY,
|
|
5400
|
+
size: d(fe).MEDIUM,
|
|
5397
5401
|
"left-icon": "add",
|
|
5398
|
-
onClick:
|
|
5402
|
+
onClick: Se
|
|
5399
5403
|
}, {
|
|
5400
5404
|
default: M(() => [
|
|
5401
5405
|
ee(b(m.value.create), 1)
|
|
@@ -5508,16 +5512,16 @@ const ld = {
|
|
|
5508
5512
|
emits: [
|
|
5509
5513
|
Ot,
|
|
5510
5514
|
at,
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5515
|
+
$e,
|
|
5516
|
+
ce,
|
|
5517
|
+
Me,
|
|
5514
5518
|
Ue,
|
|
5515
5519
|
bt,
|
|
5516
5520
|
yt,
|
|
5517
5521
|
gt
|
|
5518
5522
|
],
|
|
5519
5523
|
setup(e, { expose: i, emit: t }) {
|
|
5520
|
-
const l = e, o = t, s = R(!1), c = R(""), f = R(/* @__PURE__ */ new Set()), v = R(null),
|
|
5524
|
+
const l = e, o = t, s = R(!1), c = R(""), f = R(/* @__PURE__ */ new Set()), v = R(null), $ = y(
|
|
5521
5525
|
() => ha({
|
|
5522
5526
|
create: l.create,
|
|
5523
5527
|
rowActions: l.rowActions,
|
|
@@ -5525,21 +5529,21 @@ const ld = {
|
|
|
5525
5529
|
aliases: l,
|
|
5526
5530
|
copyMap: vd
|
|
5527
5531
|
})
|
|
5528
|
-
), S = y(() =>
|
|
5529
|
-
() => ma(fd,
|
|
5532
|
+
), S = y(() => $.value.create), m = y(() => $.value.rowActions), g = y(
|
|
5533
|
+
() => ma(fd, $.value.copy, l.copy)
|
|
5530
5534
|
), {
|
|
5531
5535
|
mode: h,
|
|
5532
5536
|
editing: k,
|
|
5533
|
-
formName:
|
|
5537
|
+
formName: _,
|
|
5534
5538
|
formColor: w,
|
|
5535
5539
|
isForm: u,
|
|
5536
5540
|
shownFormError: E,
|
|
5537
|
-
editingColor:
|
|
5538
|
-
resetForm:
|
|
5539
|
-
openCreateForm:
|
|
5540
|
-
onEdit:
|
|
5541
|
-
onDelete:
|
|
5542
|
-
onSubmit:
|
|
5541
|
+
editingColor: N,
|
|
5542
|
+
resetForm: U,
|
|
5543
|
+
openCreateForm: j,
|
|
5544
|
+
onEdit: X,
|
|
5545
|
+
onDelete: O,
|
|
5546
|
+
onSubmit: V,
|
|
5543
5547
|
closeForm: T
|
|
5544
5548
|
} = Sa({
|
|
5545
5549
|
colors: () => l.colors,
|
|
@@ -5547,102 +5551,102 @@ const ld = {
|
|
|
5547
5551
|
formError: () => l.formError,
|
|
5548
5552
|
emit: o,
|
|
5549
5553
|
focusSearch: () => {
|
|
5550
|
-
var
|
|
5551
|
-
return (
|
|
5554
|
+
var z;
|
|
5555
|
+
return (z = v.value) == null ? void 0 : z.focus();
|
|
5552
5556
|
}
|
|
5553
|
-
}), D = y(() => S.value ===
|
|
5557
|
+
}), D = y(() => S.value === pe.FORM), L = y(() => l.tags.length > 0), I = y(
|
|
5554
5558
|
() => L.value ? `${g.value.taggedAs} ${l.tags[0].name}` : l.label
|
|
5555
|
-
),
|
|
5556
|
-
if (S.value ===
|
|
5557
|
-
const
|
|
5558
|
-
return !l.options.some((B) => B.name.toLowerCase() ===
|
|
5559
|
-
}),
|
|
5560
|
-
() => l.size === Ge.LARGE ?
|
|
5559
|
+
), G = y(() => kt(l.align)), te = y(() => pt(l.options, c.value)), W = y(() => c.value.trim()), ie = y(() => {
|
|
5560
|
+
if (S.value === pe.NONE || !W.value) return !1;
|
|
5561
|
+
const z = W.value.toLowerCase();
|
|
5562
|
+
return !l.options.some((B) => B.name.toLowerCase() === z);
|
|
5563
|
+
}), he = y(
|
|
5564
|
+
() => l.size === Ge.LARGE ? fe.LARGE : fe.MEDIUM
|
|
5561
5565
|
);
|
|
5562
|
-
function
|
|
5563
|
-
s.value !==
|
|
5566
|
+
function Se(z) {
|
|
5567
|
+
s.value !== z && (z && (c.value = "", f.value = new Set(l.tags.map((B) => B.id))), U(), s.value = z, o(ce, z));
|
|
5564
5568
|
}
|
|
5565
|
-
function
|
|
5566
|
-
l.disabled ||
|
|
5569
|
+
function ae() {
|
|
5570
|
+
l.disabled || Se(!s.value);
|
|
5567
5571
|
}
|
|
5568
|
-
const
|
|
5569
|
-
function
|
|
5570
|
-
const
|
|
5571
|
-
|
|
5572
|
+
const ne = R(null), se = R(!1);
|
|
5573
|
+
function Ne() {
|
|
5574
|
+
const z = ne.value;
|
|
5575
|
+
se.value = !!z && z.scrollWidth > z.clientWidth;
|
|
5572
5576
|
}
|
|
5573
|
-
|
|
5574
|
-
oe(
|
|
5575
|
-
}),
|
|
5576
|
-
oe(
|
|
5577
|
+
we(() => {
|
|
5578
|
+
oe(Ne);
|
|
5579
|
+
}), J(I, () => {
|
|
5580
|
+
oe(Ne);
|
|
5577
5581
|
});
|
|
5578
|
-
function it(
|
|
5579
|
-
const
|
|
5580
|
-
B ?
|
|
5582
|
+
function it(z, B) {
|
|
5583
|
+
const Y = new Set(f.value);
|
|
5584
|
+
B ? Y.add(z.id) : Y.delete(z.id), f.value = Y;
|
|
5581
5585
|
}
|
|
5582
5586
|
function Ke() {
|
|
5583
|
-
const
|
|
5584
|
-
...l.options.filter((
|
|
5585
|
-
...l.tags.filter((
|
|
5587
|
+
const z = new Set(l.options.map((Y) => Y.id)), B = [
|
|
5588
|
+
...l.options.filter((Y) => f.value.has(Y.id)),
|
|
5589
|
+
...l.tags.filter((Y) => f.value.has(Y.id) && !z.has(Y.id))
|
|
5586
5590
|
];
|
|
5587
|
-
o(Ot, B),
|
|
5591
|
+
o(Ot, B), Se(!1);
|
|
5588
5592
|
}
|
|
5589
5593
|
function A() {
|
|
5590
|
-
|
|
5594
|
+
j(W.value);
|
|
5591
5595
|
}
|
|
5592
5596
|
function H() {
|
|
5593
|
-
S.value ===
|
|
5597
|
+
S.value === pe.FORM ? A() : o(at, W.value);
|
|
5594
5598
|
}
|
|
5595
|
-
return i({ closeForm: T }),
|
|
5596
|
-
|
|
5599
|
+
return i({ closeForm: T }), J(s, (z) => {
|
|
5600
|
+
z && oe(() => {
|
|
5597
5601
|
var B;
|
|
5598
5602
|
return (B = v.value) == null ? void 0 : B.focus();
|
|
5599
5603
|
});
|
|
5600
|
-
}),
|
|
5601
|
-
class:
|
|
5604
|
+
}), J(c, (z) => o($e, z)), (z, B) => (a(), n("div", {
|
|
5605
|
+
class: C(["ds-tag-picker", [
|
|
5602
5606
|
`ds-tag-picker--${e.size}`,
|
|
5603
5607
|
{ "is-open": s.value, "is-disabled": e.disabled, "has-tags": L.value }
|
|
5604
5608
|
]])
|
|
5605
5609
|
}, [
|
|
5606
|
-
|
|
5610
|
+
q(d(He), {
|
|
5607
5611
|
open: s.value,
|
|
5608
|
-
placement:
|
|
5612
|
+
placement: G.value,
|
|
5609
5613
|
width: "240px",
|
|
5610
5614
|
"grow-to": d(u) ? "" : d(va),
|
|
5611
5615
|
flush: d(u),
|
|
5612
5616
|
"trigger-on-click": !1,
|
|
5613
|
-
"onUpdate:open":
|
|
5617
|
+
"onUpdate:open": Se
|
|
5614
5618
|
}, {
|
|
5615
5619
|
trigger: M(() => [
|
|
5616
|
-
|
|
5617
|
-
content:
|
|
5618
|
-
disabled: !
|
|
5620
|
+
q(d(ge), {
|
|
5621
|
+
content: I.value,
|
|
5622
|
+
disabled: !se.value || s.value,
|
|
5619
5623
|
placement: "bottom",
|
|
5620
5624
|
teleported: ""
|
|
5621
5625
|
}, {
|
|
5622
5626
|
default: M(() => [
|
|
5623
|
-
|
|
5627
|
+
q(d(re), {
|
|
5624
5628
|
class: "ds-tag-picker__trigger",
|
|
5625
|
-
variant: d(
|
|
5626
|
-
size:
|
|
5629
|
+
variant: d(ue).OUTLINE,
|
|
5630
|
+
size: he.value,
|
|
5627
5631
|
pill: e.pill,
|
|
5628
5632
|
disabled: e.disabled,
|
|
5629
5633
|
"aria-haspopup": "dialog",
|
|
5630
5634
|
"aria-expanded": s.value,
|
|
5631
|
-
onClick:
|
|
5632
|
-
onMouseenter:
|
|
5633
|
-
onFocus:
|
|
5635
|
+
onClick: ae,
|
|
5636
|
+
onMouseenter: Ne,
|
|
5637
|
+
onFocus: Ne
|
|
5634
5638
|
}, mt({
|
|
5635
5639
|
leading: M(() => [
|
|
5636
5640
|
r("i", {
|
|
5637
5641
|
class: "material-symbols-filled ds-tag-picker__icon",
|
|
5638
|
-
style:
|
|
5642
|
+
style: Q(L.value ? { color: e.tags[0].color } : void 0),
|
|
5639
5643
|
"aria-hidden": "true"
|
|
5640
5644
|
}, b(L.value ? "sell" : "label"), 5)
|
|
5641
5645
|
]),
|
|
5642
5646
|
default: M(() => [
|
|
5643
5647
|
r("span", {
|
|
5644
5648
|
ref_key: "labelRef",
|
|
5645
|
-
ref:
|
|
5649
|
+
ref: ne,
|
|
5646
5650
|
class: "ds-tag-picker__label"
|
|
5647
5651
|
}, [
|
|
5648
5652
|
L.value ? (a(), n(K, { key: 0 }, [
|
|
@@ -5657,7 +5661,7 @@ const ld = {
|
|
|
5657
5661
|
L.value ? {
|
|
5658
5662
|
name: "trailing",
|
|
5659
5663
|
fn: M(() => [
|
|
5660
|
-
|
|
5664
|
+
q(d(fa), {
|
|
5661
5665
|
overflow: e.tags.length - 1,
|
|
5662
5666
|
label: g.value.more
|
|
5663
5667
|
}, null, 8, ["overflow", "label"])
|
|
@@ -5670,15 +5674,15 @@ const ld = {
|
|
|
5670
5674
|
}, 8, ["content", "disabled"])
|
|
5671
5675
|
]),
|
|
5672
5676
|
default: M(() => [
|
|
5673
|
-
d(u) ? (a(),
|
|
5677
|
+
d(u) ? (a(), Z(d(pa), {
|
|
5674
5678
|
key: 0,
|
|
5675
5679
|
class: "ds-tag-picker__form",
|
|
5676
5680
|
title: d(h) === "edit" ? g.value.editFormTitle : g.value.createFormTitle,
|
|
5677
5681
|
"submit-label": d(h) === "edit" ? g.value.editSubmit : g.value.createSubmit,
|
|
5678
|
-
name: d(
|
|
5682
|
+
name: d(_),
|
|
5679
5683
|
color: d(w),
|
|
5680
5684
|
"original-name": d(k) ? d(k).name : void 0,
|
|
5681
|
-
"original-color": d(k) ? d(
|
|
5685
|
+
"original-color": d(k) ? d(N) : void 0,
|
|
5682
5686
|
colors: e.colors,
|
|
5683
5687
|
loading: e.formLoading,
|
|
5684
5688
|
"error-message": d(E),
|
|
@@ -5687,16 +5691,16 @@ const ld = {
|
|
|
5687
5691
|
"back-label": g.value.back,
|
|
5688
5692
|
"error-missing-name": g.value.errorMissingName,
|
|
5689
5693
|
"error-too-long-name": g.value.errorTooLongName,
|
|
5690
|
-
"onUpdate:name": B[0] || (B[0] = (
|
|
5691
|
-
"onUpdate:color": B[1] || (B[1] = (
|
|
5694
|
+
"onUpdate:name": B[0] || (B[0] = (Y) => _.value = Y),
|
|
5695
|
+
"onUpdate:color": B[1] || (B[1] = (Y) => w.value = Y),
|
|
5692
5696
|
onBack: d(T),
|
|
5693
|
-
onSubmit: d(
|
|
5697
|
+
onSubmit: d(V)
|
|
5694
5698
|
}, 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", "onBack", "onSubmit"])) : (a(), n("div", md, [
|
|
5695
|
-
|
|
5699
|
+
q(d(nt), {
|
|
5696
5700
|
ref_key: "searchRef",
|
|
5697
5701
|
ref: v,
|
|
5698
5702
|
modelValue: c.value,
|
|
5699
|
-
"onUpdate:modelValue": B[2] || (B[2] = (
|
|
5703
|
+
"onUpdate:modelValue": B[2] || (B[2] = (Y) => c.value = Y),
|
|
5700
5704
|
class: "ds-tag-picker__search",
|
|
5701
5705
|
type: "search",
|
|
5702
5706
|
size: "sm",
|
|
@@ -5708,35 +5712,35 @@ const ld = {
|
|
|
5708
5712
|
role: "group",
|
|
5709
5713
|
"aria-label": e.label
|
|
5710
5714
|
}, [
|
|
5711
|
-
(a(!0), n(K, null,
|
|
5712
|
-
key:
|
|
5715
|
+
(a(!0), n(K, null, le(te.value, (Y) => (a(), n("div", {
|
|
5716
|
+
key: Y.id,
|
|
5713
5717
|
class: "ds-tag-picker__option"
|
|
5714
5718
|
}, [
|
|
5715
|
-
|
|
5716
|
-
"model-value": f.value.has(
|
|
5717
|
-
"onUpdate:modelValue": (_a) => it(
|
|
5719
|
+
q(d(lt), {
|
|
5720
|
+
"model-value": f.value.has(Y.id),
|
|
5721
|
+
"onUpdate:modelValue": (_a) => it(Y, _a)
|
|
5718
5722
|
}, {
|
|
5719
5723
|
default: M(() => [
|
|
5720
5724
|
r("span", {
|
|
5721
5725
|
class: "ds-tag-picker__dot",
|
|
5722
|
-
style:
|
|
5726
|
+
style: Q({ background: Y.color }),
|
|
5723
5727
|
"aria-hidden": "true"
|
|
5724
5728
|
}, null, 4),
|
|
5725
|
-
r("span", yd, b(
|
|
5729
|
+
r("span", yd, b(Y.name), 1)
|
|
5726
5730
|
]),
|
|
5727
5731
|
_: 2
|
|
5728
5732
|
}, 1032, ["model-value", "onUpdate:modelValue"]),
|
|
5729
|
-
m.value !== d(
|
|
5733
|
+
m.value !== d(Ee).NONE ? (a(), Z(d(ka), {
|
|
5730
5734
|
key: 0,
|
|
5731
|
-
option:
|
|
5735
|
+
option: Y,
|
|
5732
5736
|
"actions-label": g.value.actions,
|
|
5733
5737
|
"edit-label": g.value.edit,
|
|
5734
5738
|
"delete-label": g.value.delete,
|
|
5735
|
-
onEdit: d(
|
|
5736
|
-
onDelete: d(
|
|
5739
|
+
onEdit: d(X),
|
|
5740
|
+
onDelete: d(O)
|
|
5737
5741
|
}, null, 8, ["option", "actions-label", "edit-label", "delete-label", "onEdit", "onDelete"])) : p("", !0)
|
|
5738
5742
|
]))), 128)),
|
|
5739
|
-
|
|
5743
|
+
ie.value ? (a(), n("button", {
|
|
5740
5744
|
key: 0,
|
|
5741
5745
|
type: "button",
|
|
5742
5746
|
class: "ds-tag-picker__create",
|
|
@@ -5747,31 +5751,31 @@ const ld = {
|
|
|
5747
5751
|
"aria-hidden": "true"
|
|
5748
5752
|
}, "add", -1)),
|
|
5749
5753
|
r("span", null, b(g.value.createRow), 1),
|
|
5750
|
-
r("span", gd, "“" + b(
|
|
5754
|
+
r("span", gd, "“" + b(W.value) + "”", 1)
|
|
5751
5755
|
])) : p("", !0),
|
|
5752
|
-
!
|
|
5756
|
+
!te.value.length && !ie.value && g.value.empty ? (a(), n("p", hd, b(g.value.empty), 1)) : p("", !0)
|
|
5753
5757
|
], 8, bd),
|
|
5754
5758
|
B[6] || (B[6] = r("div", { class: "ds-tag-picker__divider" }, null, -1)),
|
|
5755
5759
|
r("div", {
|
|
5756
|
-
class:
|
|
5760
|
+
class: C(["ds-tag-picker__footer", { "is-split": D.value }])
|
|
5757
5761
|
}, [
|
|
5758
|
-
D.value ? (a(),
|
|
5762
|
+
D.value ? (a(), Z(d(re), {
|
|
5759
5763
|
key: 0,
|
|
5760
5764
|
class: "ds-tag-picker__new",
|
|
5761
|
-
variant: d(
|
|
5762
|
-
size: d(
|
|
5765
|
+
variant: d(ue).TERTIARY,
|
|
5766
|
+
size: d(fe).MEDIUM,
|
|
5763
5767
|
"left-icon": "add",
|
|
5764
|
-
onClick: B[3] || (B[3] = (
|
|
5768
|
+
onClick: B[3] || (B[3] = (Y) => A())
|
|
5765
5769
|
}, {
|
|
5766
5770
|
default: M(() => [
|
|
5767
5771
|
ee(b(g.value.newButton), 1)
|
|
5768
5772
|
]),
|
|
5769
5773
|
_: 1
|
|
5770
5774
|
}, 8, ["variant", "size"])) : p("", !0),
|
|
5771
|
-
|
|
5775
|
+
q(d(re), {
|
|
5772
5776
|
class: "ds-tag-picker__apply",
|
|
5773
|
-
variant: d(
|
|
5774
|
-
size: d(
|
|
5777
|
+
variant: d(ue).PRIMARY,
|
|
5778
|
+
size: d(fe).MEDIUM,
|
|
5775
5779
|
onClick: Ke
|
|
5776
5780
|
}, {
|
|
5777
5781
|
default: M(() => [
|
|
@@ -5821,44 +5825,44 @@ const ld = {
|
|
|
5821
5825
|
align: { type: String, default: ot.END },
|
|
5822
5826
|
disabled: { type: Boolean, default: !1 }
|
|
5823
5827
|
},
|
|
5824
|
-
emits: [Bt,
|
|
5828
|
+
emits: [Bt, $e, ce],
|
|
5825
5829
|
setup(e, { emit: i }) {
|
|
5826
|
-
const t = e, l = i, o = R(!1), s = R(""), c = R(null), f = R(t.defaultChannel), v = R(/* @__PURE__ */ new Set()),
|
|
5827
|
-
() => t.variant === jt.PRIMARY ?
|
|
5830
|
+
const t = e, l = i, o = R(!1), s = R(""), c = R(null), f = R(t.defaultChannel), v = R(/* @__PURE__ */ new Set()), $ = me(), S = y(() => kt(t.align)), m = y(() => pt(t.campaigns, s.value)), g = y(
|
|
5831
|
+
() => t.variant === jt.PRIMARY ? ue.PRIMARY : ue.OUTLINE
|
|
5828
5832
|
), h = y(
|
|
5829
|
-
() => t.size === Ge.LARGE ?
|
|
5833
|
+
() => t.size === Ge.LARGE ? fe.LARGE : fe.MEDIUM
|
|
5830
5834
|
);
|
|
5831
5835
|
function k(E) {
|
|
5832
|
-
o.value !== E && (E && (s.value = ""), o.value = E, l(
|
|
5836
|
+
o.value !== E && (E && (s.value = ""), o.value = E, l(ce, E));
|
|
5833
5837
|
}
|
|
5834
|
-
function
|
|
5838
|
+
function _() {
|
|
5835
5839
|
t.disabled || k(!o.value);
|
|
5836
5840
|
}
|
|
5837
|
-
function w(E,
|
|
5838
|
-
const
|
|
5839
|
-
|
|
5841
|
+
function w(E, N) {
|
|
5842
|
+
const U = new Set(v.value);
|
|
5843
|
+
N ? U.add(E.id) : U.delete(E.id), v.value = U;
|
|
5840
5844
|
}
|
|
5841
5845
|
function u() {
|
|
5842
5846
|
if (v.value.size === 0) return;
|
|
5843
5847
|
const E = {
|
|
5844
5848
|
channel: f.value,
|
|
5845
|
-
campaigns: t.campaigns.filter((
|
|
5849
|
+
campaigns: t.campaigns.filter((N) => v.value.has(N.id))
|
|
5846
5850
|
};
|
|
5847
5851
|
l(Bt, E), v.value = /* @__PURE__ */ new Set(), k(!1);
|
|
5848
5852
|
}
|
|
5849
|
-
return
|
|
5853
|
+
return J(o, (E) => {
|
|
5850
5854
|
E && oe(() => {
|
|
5851
|
-
var
|
|
5852
|
-
return (
|
|
5855
|
+
var N;
|
|
5856
|
+
return (N = c.value) == null ? void 0 : N.focus();
|
|
5853
5857
|
});
|
|
5854
|
-
}),
|
|
5855
|
-
class:
|
|
5858
|
+
}), J(s, (E) => l($e, E)), (E, N) => (a(), n("div", {
|
|
5859
|
+
class: C(["ds-add-to-sequence", [
|
|
5856
5860
|
`ds-add-to-sequence--${e.variant}`,
|
|
5857
5861
|
`ds-add-to-sequence--${e.size}`,
|
|
5858
5862
|
{ "is-open": o.value, "is-disabled": e.disabled }
|
|
5859
5863
|
]])
|
|
5860
5864
|
}, [
|
|
5861
|
-
|
|
5865
|
+
q(d(He), {
|
|
5862
5866
|
open: o.value,
|
|
5863
5867
|
placement: S.value,
|
|
5864
5868
|
width: "288px",
|
|
@@ -5866,13 +5870,13 @@ const ld = {
|
|
|
5866
5870
|
"onUpdate:open": k
|
|
5867
5871
|
}, {
|
|
5868
5872
|
trigger: M(() => [
|
|
5869
|
-
|
|
5873
|
+
q(d(ge), {
|
|
5870
5874
|
content: e.tooltip,
|
|
5871
5875
|
disabled: !e.tooltip || o.value,
|
|
5872
5876
|
placement: "bottom"
|
|
5873
5877
|
}, {
|
|
5874
5878
|
default: M(() => [
|
|
5875
|
-
|
|
5879
|
+
q(d(re), {
|
|
5876
5880
|
class: "ds-add-to-sequence__trigger",
|
|
5877
5881
|
variant: g.value,
|
|
5878
5882
|
size: h.value,
|
|
@@ -5880,9 +5884,9 @@ const ld = {
|
|
|
5880
5884
|
disabled: e.disabled,
|
|
5881
5885
|
"aria-haspopup": "dialog",
|
|
5882
5886
|
"aria-expanded": o.value,
|
|
5883
|
-
onClick:
|
|
5887
|
+
onClick: _
|
|
5884
5888
|
}, {
|
|
5885
|
-
leading: M(() => [...
|
|
5889
|
+
leading: M(() => [...N[1] || (N[1] = [
|
|
5886
5890
|
r("i", {
|
|
5887
5891
|
class: "material-symbols-filled ds-add-to-sequence__icon",
|
|
5888
5892
|
"aria-hidden": "true"
|
|
@@ -5905,28 +5909,28 @@ const ld = {
|
|
|
5905
5909
|
role: "radiogroup",
|
|
5906
5910
|
"aria-label": e.channelsLabel
|
|
5907
5911
|
}, [
|
|
5908
|
-
(a(!0), n(K, null,
|
|
5909
|
-
key:
|
|
5910
|
-
class:
|
|
5912
|
+
(a(!0), n(K, null, le(e.channels, (U) => (a(), n("div", {
|
|
5913
|
+
key: U.value,
|
|
5914
|
+
class: C(["ds-add-to-sequence__channel", { "is-on": f.value === U.value }])
|
|
5911
5915
|
}, [
|
|
5912
|
-
|
|
5913
|
-
name: d(
|
|
5914
|
-
value:
|
|
5915
|
-
"model-value": f.value ===
|
|
5916
|
-
"onUpdate:modelValue": (
|
|
5916
|
+
q(d(ia), {
|
|
5917
|
+
name: d($),
|
|
5918
|
+
value: U.value,
|
|
5919
|
+
"model-value": f.value === U.value,
|
|
5920
|
+
"onUpdate:modelValue": (j) => f.value = U.value
|
|
5917
5921
|
}, {
|
|
5918
5922
|
default: M(() => [
|
|
5919
|
-
ee(b(
|
|
5923
|
+
ee(b(U.label), 1)
|
|
5920
5924
|
]),
|
|
5921
5925
|
_: 2
|
|
5922
5926
|
}, 1032, ["name", "value", "model-value", "onUpdate:modelValue"])
|
|
5923
5927
|
], 2))), 128))
|
|
5924
5928
|
], 8, $d),
|
|
5925
|
-
|
|
5929
|
+
q(d(nt), {
|
|
5926
5930
|
ref_key: "searchRef",
|
|
5927
5931
|
ref: c,
|
|
5928
5932
|
modelValue: s.value,
|
|
5929
|
-
"onUpdate:modelValue":
|
|
5933
|
+
"onUpdate:modelValue": N[0] || (N[0] = (U) => s.value = U),
|
|
5930
5934
|
class: "ds-add-to-sequence__search",
|
|
5931
5935
|
type: "search",
|
|
5932
5936
|
size: "sm",
|
|
@@ -5938,28 +5942,28 @@ const ld = {
|
|
|
5938
5942
|
role: "group",
|
|
5939
5943
|
"aria-label": e.campaignsLabel || e.label
|
|
5940
5944
|
}, [
|
|
5941
|
-
(a(!0), n(K, null,
|
|
5942
|
-
key:
|
|
5945
|
+
(a(!0), n(K, null, le(m.value, (U) => (a(), n("div", {
|
|
5946
|
+
key: U.id,
|
|
5943
5947
|
class: "ds-add-to-sequence__option"
|
|
5944
5948
|
}, [
|
|
5945
|
-
|
|
5946
|
-
"model-value": v.value.has(
|
|
5947
|
-
"onUpdate:modelValue": (
|
|
5949
|
+
q(d(lt), {
|
|
5950
|
+
"model-value": v.value.has(U.id),
|
|
5951
|
+
"onUpdate:modelValue": (j) => w(U, j)
|
|
5948
5952
|
}, {
|
|
5949
5953
|
default: M(() => [
|
|
5950
|
-
ee(b(
|
|
5954
|
+
ee(b(U.name), 1)
|
|
5951
5955
|
]),
|
|
5952
5956
|
_: 2
|
|
5953
5957
|
}, 1032, ["model-value", "onUpdate:modelValue"])
|
|
5954
5958
|
]))), 128)),
|
|
5955
5959
|
!m.value.length && e.emptyLabel ? (a(), n("p", Ed, b(e.emptyLabel), 1)) : p("", !0)
|
|
5956
5960
|
], 8, Ld),
|
|
5957
|
-
|
|
5961
|
+
N[2] || (N[2] = r("div", { class: "ds-add-to-sequence__divider" }, null, -1)),
|
|
5958
5962
|
r("div", Td, [
|
|
5959
|
-
|
|
5963
|
+
q(d(re), {
|
|
5960
5964
|
class: "ds-add-to-sequence__add",
|
|
5961
|
-
variant: d(
|
|
5962
|
-
size: d(
|
|
5965
|
+
variant: d(ue).PRIMARY,
|
|
5966
|
+
size: d(fe).MEDIUM,
|
|
5963
5967
|
disabled: v.value.size === 0,
|
|
5964
5968
|
onClick: u
|
|
5965
5969
|
}, {
|
|
@@ -5984,8 +5988,8 @@ export {
|
|
|
5984
5988
|
Rl as DS_ALERT_TYPES,
|
|
5985
5989
|
ut as DS_BADGE_TONES,
|
|
5986
5990
|
Na as DS_BUTTON_NATIVE_TYPES,
|
|
5987
|
-
|
|
5988
|
-
|
|
5991
|
+
fe as DS_BUTTON_SIZES,
|
|
5992
|
+
ue as DS_BUTTON_VARIANTS,
|
|
5989
5993
|
Ze as DS_CONTACT_KINDS,
|
|
5990
5994
|
Ys as DS_CONTACT_PLACEHOLDER_ICONS,
|
|
5991
5995
|
We as DS_CONTACT_PLACEHOLDER_STATES,
|
|
@@ -6001,8 +6005,8 @@ export {
|
|
|
6001
6005
|
Od as DS_NOTIFICATION_ROLES,
|
|
6002
6006
|
zl as DS_NOTIFICATION_TYPES,
|
|
6003
6007
|
ot as DS_PICKER_ALIGNS,
|
|
6004
|
-
|
|
6005
|
-
|
|
6008
|
+
pe as DS_PICKER_CREATE_MODES,
|
|
6009
|
+
Ee as DS_PICKER_ROW_ACTIONS,
|
|
6006
6010
|
Ge as DS_PICKER_SIZES,
|
|
6007
6011
|
Ht as DS_PILL_TONES,
|
|
6008
6012
|
qe as DS_POPOVER_PLACEMENTS,
|
|
@@ -6013,20 +6017,20 @@ export {
|
|
|
6013
6017
|
st as DS_SPINNER_SIZES,
|
|
6014
6018
|
Qe as DS_SPINNER_TONES,
|
|
6015
6019
|
Ft as DS_TABLE_ALIGN,
|
|
6016
|
-
|
|
6020
|
+
_e as DS_TABLE_PIN,
|
|
6017
6021
|
fd as DS_TAG_PICKER_COPY,
|
|
6018
6022
|
Va as DS_TAG_TONES,
|
|
6019
6023
|
Ll as DS_TEXTAREA_RESIZE,
|
|
6020
6024
|
El as DS_TEXTAREA_VARIANTS,
|
|
6021
|
-
|
|
6025
|
+
ke as DS_TOOLTIP_PLACEMENTS,
|
|
6022
6026
|
ct as DS_VERIFICATION_STATES,
|
|
6023
|
-
|
|
6027
|
+
Oe as DS_WIZARD_STEP_STATES,
|
|
6024
6028
|
Jd as DsActionMenu,
|
|
6025
6029
|
uc as DsAddToSequence,
|
|
6026
6030
|
Nd as DsAlert,
|
|
6027
6031
|
Za as DsAvatar,
|
|
6028
6032
|
Wa as DsBadge,
|
|
6029
|
-
|
|
6033
|
+
re as DsButton,
|
|
6030
6034
|
qd as DsCell,
|
|
6031
6035
|
lt as DsCheckbox,
|
|
6032
6036
|
or as DsClampedText,
|