@salesql/sql_components_vue3 3.15.0 → 3.15.1
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 +322 -320
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +5 -5
- package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +5 -5
- package/llms-full.txt +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -28,26 +28,26 @@ const Qe = {
|
|
|
28
28
|
label: { type: String, default: "Loading" }
|
|
29
29
|
},
|
|
30
30
|
setup(e) {
|
|
31
|
-
const
|
|
31
|
+
const i = {
|
|
32
32
|
[st.SMALL]: 20,
|
|
33
33
|
[st.MEDIUM]: 32,
|
|
34
34
|
[st.LARGE]: 48
|
|
35
35
|
}, t = e, l = y(
|
|
36
36
|
() => {
|
|
37
37
|
var o;
|
|
38
|
-
return typeof t.size == "string" ? (o =
|
|
38
|
+
return typeof t.size == "string" ? (o = i[t.size]) != null ? o : 24 : t.size;
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
return (o,
|
|
41
|
+
return (o, s) => (a(), n("span", {
|
|
42
42
|
class: D(["ds-spinner", `ds-spinner--${e.tone}`]),
|
|
43
43
|
role: "status",
|
|
44
44
|
style: j({ width: `${l.value}px`, height: `${l.value}px` }),
|
|
45
45
|
"aria-label": e.label || void 0
|
|
46
46
|
}, null, 14, Ia));
|
|
47
47
|
}
|
|
48
|
-
}), F = (e,
|
|
48
|
+
}), F = (e, i) => {
|
|
49
49
|
const t = e.__vccOpts || e;
|
|
50
|
-
for (const [l, o] of
|
|
50
|
+
for (const [l, o] of i)
|
|
51
51
|
t[l] = o;
|
|
52
52
|
return t;
|
|
53
53
|
}, Ve = /* @__PURE__ */ F(Aa, [["__scopeId", "data-v-aaf2f048"]]), ye = "click", ve = "close", Je = "focus", et = "blur", kt = "change", St = "field-blur", Te = "copy", _t = "reveal", Ce = "correct", De = "incorrect", $t = "sort", Be = "edit", wt = "select-all", Lt = "page-change", Et = "page-size-change", _e = "search", tt = "select", rt = "step", Tt = "final-step", Ct = "navigate", Dt = "resize-start", It = "resize", At = "resize-end", de = "update:open", Rt = "pick", Nt = "apply", Ot = "add", at = "create", Bt = "back", Mt = "submit", Ue = "delete", bt = "create-option", yt = "update-option", xt = "update:name", dt = "update:color", gt = "form-close", ce = {
|
|
@@ -138,13 +138,13 @@ const Qe = {
|
|
|
138
138
|
autofocus: Boolean
|
|
139
139
|
},
|
|
140
140
|
emits: [ye],
|
|
141
|
-
setup(e, { emit:
|
|
142
|
-
const t = e, l =
|
|
141
|
+
setup(e, { emit: i }) {
|
|
142
|
+
const t = e, l = i, o = y(() => t.size === ue.SMALL ? 14 : 20), s = [
|
|
143
143
|
ce.PRIMARY,
|
|
144
144
|
ce.WARNING,
|
|
145
145
|
ce.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);
|
|
@@ -237,8 +237,8 @@ const Qe = {
|
|
|
237
237
|
default: ""
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
|
-
setup(e, { emit:
|
|
241
|
-
const t =
|
|
240
|
+
setup(e, { emit: i }) {
|
|
241
|
+
const t = i;
|
|
242
242
|
return (l, o) => (a(), n("span", {
|
|
243
243
|
class: D(["ds-tag", [
|
|
244
244
|
`ds-tag--${e.tone}`,
|
|
@@ -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] = Le((
|
|
256
|
+
onClick: o[0] || (o[0] = Le((s) => t(d(ve)), ["stop"]))
|
|
257
257
|
}, [...o[1] || (o[1] = [
|
|
258
258
|
r("i", {
|
|
259
259
|
class: "material-symbols-filled",
|
|
@@ -284,10 +284,10 @@ const Qe = {
|
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
286
|
setup(e) {
|
|
287
|
-
return (
|
|
287
|
+
return (i, t) => (a(), n("span", {
|
|
288
288
|
class: D(["ds-badge", `ds-badge--${e.tone}`])
|
|
289
289
|
}, [
|
|
290
|
-
x(
|
|
290
|
+
x(i.$slots, "default", {}, void 0, !0)
|
|
291
291
|
], 2));
|
|
292
292
|
}
|
|
293
293
|
}), Ka = /* @__PURE__ */ F(Ha, [["__scopeId", "data-v-f10a17a0"]]), Wa = ["src", "alt"], Ya = ["aria-label"], ja = /* @__PURE__ */ P({
|
|
@@ -319,30 +319,30 @@ const Qe = {
|
|
|
319
319
|
alt: { type: String, default: void 0 }
|
|
320
320
|
},
|
|
321
321
|
setup(e) {
|
|
322
|
-
const
|
|
322
|
+
const i = e, t = R(!1);
|
|
323
323
|
Q(
|
|
324
|
-
() =>
|
|
324
|
+
() => i.image,
|
|
325
325
|
() => t.value = !1
|
|
326
326
|
);
|
|
327
327
|
function l() {
|
|
328
328
|
t.value = !0;
|
|
329
329
|
}
|
|
330
|
-
const o = y(() => !!
|
|
330
|
+
const o = y(() => !!i.image && !t.value), s = y(() => i.letters ? i.letters : i.firstName && i.lastName ? (i.firstName.charAt(0) + i.lastName.charAt(0)).toUpperCase() : ""), c = y(() => `${i.firstName} ${i.lastName}`.trim() || i.letters), f = y(() => {
|
|
331
331
|
var g;
|
|
332
|
-
return (g =
|
|
332
|
+
return (g = i.alt) != null ? g : c.value;
|
|
333
333
|
}), v = y(() => {
|
|
334
334
|
var g;
|
|
335
|
-
return (g =
|
|
335
|
+
return (g = i.width) != null ? g : i.size;
|
|
336
336
|
}), $ = y(() => {
|
|
337
337
|
var g;
|
|
338
|
-
return (g =
|
|
338
|
+
return (g = i.height) != null ? g : i.size;
|
|
339
339
|
}), k = y(() => ({ width: `${v.value}px`, height: `${$.value}px` })), m = y(
|
|
340
340
|
() => {
|
|
341
341
|
var g;
|
|
342
|
-
return (g =
|
|
342
|
+
return (g = i.textSize) != null ? g : Math.round(Math.min(v.value, $.value) * 0.4);
|
|
343
343
|
}
|
|
344
344
|
), h = y(() => {
|
|
345
|
-
const g =
|
|
345
|
+
const g = i.uid || i.firstName + i.lastName || i.letters;
|
|
346
346
|
let S = 0;
|
|
347
347
|
for (let u = 0; u < g.length; u++)
|
|
348
348
|
S = g.charCodeAt(u) + ((S << 5) - S), S = S & S;
|
|
@@ -358,7 +358,7 @@ const Qe = {
|
|
|
358
358
|
alt: f.value,
|
|
359
359
|
style: j(k.value),
|
|
360
360
|
onError: l
|
|
361
|
-
}, null, 46, Wa)) :
|
|
361
|
+
}, null, 46, Wa)) : s.value ? (a(), n("div", {
|
|
362
362
|
key: 1,
|
|
363
363
|
class: D(["ds-avatar ds-avatar--initials", { "is-circular": e.circular, "ds-avatar--accent": e.accent }]),
|
|
364
364
|
role: "img",
|
|
@@ -374,7 +374,7 @@ const Qe = {
|
|
|
374
374
|
fontWeight: e.fontWeight
|
|
375
375
|
}
|
|
376
376
|
])
|
|
377
|
-
}, b(
|
|
377
|
+
}, b(s.value), 15, Ya)) : (a(), n("div", {
|
|
378
378
|
key: 2,
|
|
379
379
|
class: D(["ds-avatar ds-avatar--placeholder", { "is-circular": e.circular }]),
|
|
380
380
|
style: j(k.value),
|
|
@@ -414,27 +414,27 @@ const Qe = {
|
|
|
414
414
|
}),
|
|
415
415
|
emits: ["update:modelValue"],
|
|
416
416
|
setup(e) {
|
|
417
|
-
const
|
|
417
|
+
const i = Ie(e, "modelValue"), t = e, l = R(null);
|
|
418
418
|
function o() {
|
|
419
419
|
l.value && (l.value.indeterminate = t.indeterminate);
|
|
420
420
|
}
|
|
421
|
-
return Ae(o), Q(() => t.indeterminate, o), (
|
|
421
|
+
return Ae(o), Q(() => t.indeterminate, o), (s, c) => (a(), n("label", {
|
|
422
422
|
class: D(["ds-checkbox", { "is-disabled": e.disabled }])
|
|
423
423
|
}, [
|
|
424
424
|
vt(r("input", {
|
|
425
425
|
ref_key: "inputRef",
|
|
426
426
|
ref: l,
|
|
427
|
-
"onUpdate:modelValue": c[0] || (c[0] = (f) =>
|
|
427
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
428
428
|
type: "checkbox",
|
|
429
429
|
class: "ds-checkbox__native",
|
|
430
430
|
disabled: e.disabled,
|
|
431
431
|
name: e.name || void 0,
|
|
432
432
|
"aria-label": e.ariaLabel || void 0
|
|
433
433
|
}, null, 8, Za), [
|
|
434
|
-
[_a,
|
|
434
|
+
[_a, i.value]
|
|
435
435
|
]),
|
|
436
436
|
r("span", {
|
|
437
|
-
class: D(["ds-checkbox__box", { "is-active":
|
|
437
|
+
class: D(["ds-checkbox__box", { "is-active": i.value || e.indeterminate }]),
|
|
438
438
|
"aria-hidden": "true"
|
|
439
439
|
}, [
|
|
440
440
|
e.indeterminate ? (a(), n("svg", Qa, [...c[1] || (c[1] = [
|
|
@@ -444,12 +444,12 @@ const Qe = {
|
|
|
444
444
|
x2: "12",
|
|
445
445
|
y2: "8"
|
|
446
446
|
}, null, -1)
|
|
447
|
-
])])) :
|
|
447
|
+
])])) : i.value ? (a(), n("svg", Ja, [...c[2] || (c[2] = [
|
|
448
448
|
r("path", { d: "M3.5 8.5l3 3 6-6" }, null, -1)
|
|
449
449
|
])])) : p("", !0)
|
|
450
450
|
], 2),
|
|
451
|
-
|
|
452
|
-
x(
|
|
451
|
+
s.$slots.default || e.label ? (a(), n("span", el, [
|
|
452
|
+
x(s.$slots, "default", {}, () => [
|
|
453
453
|
ee(b(e.label), 1)
|
|
454
454
|
], !0)
|
|
455
455
|
])) : p("", !0)
|
|
@@ -521,10 +521,10 @@ const Qe = {
|
|
|
521
521
|
loadingLabel: { type: String, default: "" }
|
|
522
522
|
},
|
|
523
523
|
emits: [wt],
|
|
524
|
-
setup(e, { emit:
|
|
525
|
-
const t = e, l =
|
|
524
|
+
setup(e, { emit: i }) {
|
|
525
|
+
const t = e, l = i, o = y(
|
|
526
526
|
() => Math.max(1, t.headers.length + (t.selectable ? 1 : 0))
|
|
527
|
-
),
|
|
527
|
+
), s = y(
|
|
528
528
|
() => t.rowHeight == null ? void 0 : {
|
|
529
529
|
"--ds-table-row-height": typeof t.rowHeight == "number" ? `${t.rowHeight}px` : t.rowHeight
|
|
530
530
|
}
|
|
@@ -677,7 +677,7 @@ const Qe = {
|
|
|
677
677
|
}, [
|
|
678
678
|
r("table", {
|
|
679
679
|
class: D(["ds-table__table", { "has-row-height": e.rowHeight != null }]),
|
|
680
|
-
style: j(
|
|
680
|
+
style: j(s.value)
|
|
681
681
|
}, [
|
|
682
682
|
r("thead", null, [
|
|
683
683
|
r("tr", null, [
|
|
@@ -796,11 +796,11 @@ const Qe = {
|
|
|
796
796
|
modelModifiers: {}
|
|
797
797
|
}),
|
|
798
798
|
emits: /* @__PURE__ */ be([Je, et, kt, St], ["update:modelValue"]),
|
|
799
|
-
setup(e, { expose:
|
|
800
|
-
const l = Ie(e, "modelValue"), o = e,
|
|
799
|
+
setup(e, { expose: i, emit: t }) {
|
|
800
|
+
const l = Ie(e, "modelValue"), o = e, s = t, c = R();
|
|
801
801
|
function f(w) {
|
|
802
802
|
const u = w.relatedTarget, T = w.currentTarget;
|
|
803
|
-
u && (T != null && T.contains(u)) ||
|
|
803
|
+
u && (T != null && T.contains(u)) || s(St, w);
|
|
804
804
|
}
|
|
805
805
|
const v = Me(), $ = R(!1);
|
|
806
806
|
function k() {
|
|
@@ -809,7 +809,7 @@ const Qe = {
|
|
|
809
809
|
const m = y(() => o.type === Pe.PASSWORD), h = y(() => o.type === Pe.SEARCH), g = y(() => m.value ? $.value ? Pe.TEXT : Pe.PASSWORD : h.value ? Pe.TEXT : o.type), S = y(() => m.value && !!o.toggleLabel), _ = y(
|
|
810
810
|
() => !!v.suffix || o.error && o.showErrorIcon || S.value
|
|
811
811
|
);
|
|
812
|
-
return
|
|
812
|
+
return i({
|
|
813
813
|
focus: () => {
|
|
814
814
|
var w;
|
|
815
815
|
return (w = c.value) == null ? void 0 : w.focus();
|
|
@@ -850,9 +850,9 @@ const Qe = {
|
|
|
850
850
|
autocomplete: e.autocomplete || void 0,
|
|
851
851
|
"aria-invalid": e.error || void 0,
|
|
852
852
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
853
|
-
onFocus: u[1] || (u[1] = (T) =>
|
|
854
|
-
onBlur: u[2] || (u[2] = (T) =>
|
|
855
|
-
onChange: u[3] || (u[3] = (T) =>
|
|
853
|
+
onFocus: u[1] || (u[1] = (T) => s(d(Je), T)),
|
|
854
|
+
onBlur: u[2] || (u[2] = (T) => s(d(et), T)),
|
|
855
|
+
onChange: u[3] || (u[3] = (T) => s(d(kt), T))
|
|
856
856
|
}, null, 42, gl), [
|
|
857
857
|
[$a, l.value]
|
|
858
858
|
]),
|
|
@@ -922,8 +922,8 @@ const Qe = {
|
|
|
922
922
|
modelModifiers: {}
|
|
923
923
|
}),
|
|
924
924
|
emits: /* @__PURE__ */ be([Je, et], ["update:modelValue"]),
|
|
925
|
-
setup(e, { emit:
|
|
926
|
-
const t = Ie(e, "modelValue"), l = e, o =
|
|
925
|
+
setup(e, { emit: i }) {
|
|
926
|
+
const t = Ie(e, "modelValue"), l = e, o = i, s = y({
|
|
927
927
|
get: () => t.value,
|
|
928
928
|
set: (u) => {
|
|
929
929
|
l.readonly || (t.value = u);
|
|
@@ -979,7 +979,7 @@ const Qe = {
|
|
|
979
979
|
id: e.id || void 0,
|
|
980
980
|
ref_key: "control",
|
|
981
981
|
ref: c,
|
|
982
|
-
"onUpdate:modelValue": T[0] || (T[0] = (O) =>
|
|
982
|
+
"onUpdate:modelValue": T[0] || (T[0] = (O) => s.value = O),
|
|
983
983
|
class: "ds-textarea__control",
|
|
984
984
|
placeholder: e.placeholder,
|
|
985
985
|
rows: e.autoGrow ? e.minRows : e.rows,
|
|
@@ -991,7 +991,7 @@ const Qe = {
|
|
|
991
991
|
onFocus: $,
|
|
992
992
|
onBlur: k
|
|
993
993
|
}), null, 16, Tl), [
|
|
994
|
-
[La,
|
|
994
|
+
[La, s.value]
|
|
995
995
|
]),
|
|
996
996
|
e.error && e.errorMessage ? (a(), n("p", {
|
|
997
997
|
key: 1,
|
|
@@ -1040,8 +1040,8 @@ const Qe = {
|
|
|
1040
1040
|
visibleModifiers: {}
|
|
1041
1041
|
}),
|
|
1042
1042
|
emits: /* @__PURE__ */ be([ve], ["update:visible"]),
|
|
1043
|
-
setup(e, { emit:
|
|
1044
|
-
const t = e, l =
|
|
1043
|
+
setup(e, { emit: i }) {
|
|
1044
|
+
const t = e, l = i, o = Ie(e, "visible"), s = Me(), c = y(() => Nl[t.type]), f = y(() => !!s.default || t.description.length > 0), v = y(() => !!s.title || t.title.length > 0);
|
|
1045
1045
|
function $() {
|
|
1046
1046
|
o.value = !1, l(ve);
|
|
1047
1047
|
}
|
|
@@ -1110,10 +1110,10 @@ const Qe = {
|
|
|
1110
1110
|
function Ul(e) {
|
|
1111
1111
|
if (e !== Zt.TOP_CENTER || typeof document == "undefined")
|
|
1112
1112
|
return "body";
|
|
1113
|
-
const
|
|
1113
|
+
const i = `${zt}--${e}`, t = document.body.querySelector(`:scope > .${i}`);
|
|
1114
1114
|
if (t) return t;
|
|
1115
1115
|
const l = document.createElement("div");
|
|
1116
|
-
return l.className = `${zt} ${
|
|
1116
|
+
return l.className = `${zt} ${i}`, document.body.appendChild(l), l;
|
|
1117
1117
|
}
|
|
1118
1118
|
const Vl = {
|
|
1119
1119
|
class: "material-symbols-filled ds-notification__icon",
|
|
@@ -1154,8 +1154,8 @@ const Vl = {
|
|
|
1154
1154
|
duration: { type: Number, default: 3500 }
|
|
1155
1155
|
},
|
|
1156
1156
|
emits: [ve, Ct],
|
|
1157
|
-
setup(e, { emit:
|
|
1158
|
-
const t = e, l =
|
|
1157
|
+
setup(e, { emit: i }) {
|
|
1158
|
+
const t = e, l = i, o = R(!0), s = y(() => zl[t.type]), c = Ul(t.position), f = y(
|
|
1159
1159
|
() => t.linkTarget === Ft.BLANK ? "noopener noreferrer" : void 0
|
|
1160
1160
|
);
|
|
1161
1161
|
let v, $ = 0, k = t.duration;
|
|
@@ -1193,7 +1193,7 @@ const Vl = {
|
|
|
1193
1193
|
onMouseenter: g,
|
|
1194
1194
|
onMouseleave: S
|
|
1195
1195
|
}, [
|
|
1196
|
-
r("i", Vl, b(
|
|
1196
|
+
r("i", Vl, b(s.value), 1),
|
|
1197
1197
|
r("div", ql, [
|
|
1198
1198
|
e.title ? (a(), n("span", Gl, b(e.title), 1)) : p("", !0),
|
|
1199
1199
|
e.description ? (a(), n("p", Hl, b(e.description), 1)) : p("", !0),
|
|
@@ -1255,9 +1255,9 @@ const Vl = {
|
|
|
1255
1255
|
closeLabel: { type: String, default: "Close" }
|
|
1256
1256
|
},
|
|
1257
1257
|
emits: [ve],
|
|
1258
|
-
setup(e, { emit:
|
|
1259
|
-
const t = e, l =
|
|
1260
|
-
let
|
|
1258
|
+
setup(e, { emit: i }) {
|
|
1259
|
+
const t = e, l = i, o = R(null);
|
|
1260
|
+
let s = null;
|
|
1261
1261
|
const c = me(), f = y(() => ({
|
|
1262
1262
|
width: t.width,
|
|
1263
1263
|
...t.height ? { height: t.height } : {}
|
|
@@ -1286,14 +1286,14 @@ const Vl = {
|
|
|
1286
1286
|
g.shiftKey && document.activeElement === _ ? (g.preventDefault(), w.focus()) : !g.shiftKey && document.activeElement === w && (g.preventDefault(), _.focus());
|
|
1287
1287
|
}
|
|
1288
1288
|
function m() {
|
|
1289
|
-
|
|
1289
|
+
s = document.activeElement, document.addEventListener("keydown", k), document.body.style.overflow = "hidden", oe(() => {
|
|
1290
1290
|
var g, S;
|
|
1291
1291
|
return (S = (g = $()[0]) != null ? g : o.value) == null ? void 0 : S.focus();
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
function h(g = !0) {
|
|
1295
1295
|
var S;
|
|
1296
|
-
document.removeEventListener("keydown", k), document.body.style.overflow = "", g && ((S =
|
|
1296
|
+
document.removeEventListener("keydown", k), document.body.style.overflow = "", g && ((S = s == null ? void 0 : s.focus) == null || S.call(s));
|
|
1297
1297
|
}
|
|
1298
1298
|
return Q(
|
|
1299
1299
|
() => t.open && t.fixed,
|
|
@@ -1380,10 +1380,10 @@ function ln(e) {
|
|
|
1380
1380
|
function nn() {
|
|
1381
1381
|
return Ae(tn), re(an), { isKeyboardFocus: ln };
|
|
1382
1382
|
}
|
|
1383
|
-
function aa(e, { onTriggerHidden:
|
|
1383
|
+
function aa(e, { onTriggerHidden: i } = {}) {
|
|
1384
1384
|
const t = R(null);
|
|
1385
1385
|
let l = !1, o = null;
|
|
1386
|
-
const
|
|
1386
|
+
const s = y(() => {
|
|
1387
1387
|
const k = { position: "fixed", pointerEvents: "none" }, m = t.value;
|
|
1388
1388
|
return m ? {
|
|
1389
1389
|
...k,
|
|
@@ -1399,8 +1399,8 @@ function aa(e, { onTriggerHidden: s } = {}) {
|
|
|
1399
1399
|
k && (t.value = { top: k.top, left: k.left, width: k.width, height: k.height });
|
|
1400
1400
|
}
|
|
1401
1401
|
function f() {
|
|
1402
|
-
!
|
|
1403
|
-
k.some((m) => !m.isIntersecting) &&
|
|
1402
|
+
!i || typeof IntersectionObserver == "undefined" || !e.value || (o = new IntersectionObserver((k) => {
|
|
1403
|
+
k.some((m) => !m.isIntersecting) && i();
|
|
1404
1404
|
}), o.observe(e.value));
|
|
1405
1405
|
}
|
|
1406
1406
|
function v() {
|
|
@@ -1409,7 +1409,7 @@ function aa(e, { onTriggerHidden: s } = {}) {
|
|
|
1409
1409
|
function $() {
|
|
1410
1410
|
l && (l = !1, window.removeEventListener("resize", c), window.removeEventListener("scroll", c, { capture: !0 }), o == null || o.disconnect(), o = null);
|
|
1411
1411
|
}
|
|
1412
|
-
return re($), { anchorStyle:
|
|
1412
|
+
return re($), { anchorStyle: s, track: v, untrack: $ };
|
|
1413
1413
|
}
|
|
1414
1414
|
const on = "--ds-overlay-shift", $e = 8, sn = {
|
|
1415
1415
|
top: "bottom",
|
|
@@ -1417,18 +1417,18 @@ const on = "--ds-overlay-shift", $e = 8, sn = {
|
|
|
1417
1417
|
left: "right",
|
|
1418
1418
|
right: "left"
|
|
1419
1419
|
};
|
|
1420
|
-
function la(e,
|
|
1421
|
-
const l = R(0), o = R(!1),
|
|
1420
|
+
function la(e, i, t) {
|
|
1421
|
+
const l = R(0), o = R(!1), s = y(
|
|
1422
1422
|
() => l.value ? { [on]: `${Math.round(l.value)}px` } : null
|
|
1423
1423
|
), c = y(() => {
|
|
1424
|
-
const m =
|
|
1424
|
+
const m = i();
|
|
1425
1425
|
if (!o.value) return m;
|
|
1426
1426
|
const h = m.indexOf("-"), g = h === -1 ? m : m.slice(0, h), S = sn[g];
|
|
1427
1427
|
return S ? h === -1 ? S : S + m.slice(h) : m;
|
|
1428
1428
|
});
|
|
1429
1429
|
function f() {
|
|
1430
1430
|
if (!t) return;
|
|
1431
|
-
const m =
|
|
1431
|
+
const m = i().split("-")[0];
|
|
1432
1432
|
if (m === "over") {
|
|
1433
1433
|
o.value = !1;
|
|
1434
1434
|
return;
|
|
@@ -1449,7 +1449,7 @@ function la(e, s, t) {
|
|
|
1449
1449
|
f(), l.value = 0, await oe();
|
|
1450
1450
|
const m = e.value;
|
|
1451
1451
|
if (!m) return;
|
|
1452
|
-
const h = m.getBoundingClientRect(), g =
|
|
1452
|
+
const h = m.getBoundingClientRect(), g = i().split("-")[0], S = g === "top" || g === "bottom" || g === "over", [_, w, u] = S ? [h.left, h.right, window.innerWidth] : [h.top, h.bottom, window.innerHeight];
|
|
1453
1453
|
_ < $e ? l.value = $e - _ : w > u - $e && (l.value = u - $e - w);
|
|
1454
1454
|
}
|
|
1455
1455
|
function $() {
|
|
@@ -1458,7 +1458,7 @@ function la(e, s, t) {
|
|
|
1458
1458
|
function k() {
|
|
1459
1459
|
typeof window != "undefined" && (window.removeEventListener("resize", v), window.removeEventListener("scroll", v, { capture: !0 }), l.value = 0, o.value = !1);
|
|
1460
1460
|
}
|
|
1461
|
-
return { shift: l, shiftStyle:
|
|
1461
|
+
return { shift: l, shiftStyle: s, resolvedPlacement: c, measure: v, activate: $, deactivate: k };
|
|
1462
1462
|
}
|
|
1463
1463
|
const pe = {
|
|
1464
1464
|
TOP: "top",
|
|
@@ -1490,18 +1490,18 @@ const pe = {
|
|
|
1490
1490
|
teleported: { type: Boolean, default: !1 }
|
|
1491
1491
|
},
|
|
1492
1492
|
setup(e) {
|
|
1493
|
-
const
|
|
1493
|
+
const i = e, t = Me(), l = me(), o = R(null), s = R(!1), c = R(null), { isKeyboardFocus: f } = nn(), {
|
|
1494
1494
|
shiftStyle: v,
|
|
1495
1495
|
resolvedPlacement: $,
|
|
1496
1496
|
activate: k,
|
|
1497
1497
|
deactivate: m
|
|
1498
|
-
} = la(c, () =>
|
|
1499
|
-
Q(
|
|
1500
|
-
N ? (
|
|
1498
|
+
} = la(c, () => i.placement, { trigger: o, gap: cn }), { anchorStyle: h, track: g, untrack: S } = aa(o);
|
|
1499
|
+
Q(s, (N) => {
|
|
1500
|
+
N ? (i.teleported && g(), oe(k)) : (S(), m());
|
|
1501
1501
|
});
|
|
1502
|
-
const _ = y(() => !
|
|
1502
|
+
const _ = y(() => !i.disabled && (i.content.length > 0 || !!t.content));
|
|
1503
1503
|
Q(
|
|
1504
|
-
() =>
|
|
1504
|
+
() => i.disabled,
|
|
1505
1505
|
(N) => {
|
|
1506
1506
|
N && C();
|
|
1507
1507
|
}
|
|
@@ -1521,22 +1521,22 @@ const pe = {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
function q() {
|
|
1523
1523
|
_.value && (w = !0, X(), T = setTimeout(() => {
|
|
1524
|
-
|
|
1525
|
-
},
|
|
1524
|
+
s.value = !0;
|
|
1525
|
+
}, i.delay));
|
|
1526
1526
|
}
|
|
1527
1527
|
function E() {
|
|
1528
1528
|
w = !1, X(), u || C();
|
|
1529
1529
|
}
|
|
1530
1530
|
function I(N) {
|
|
1531
1531
|
const J = N.target;
|
|
1532
|
-
!_.value || !u && !f(J) || (u = !0, X(),
|
|
1532
|
+
!_.value || !u && !f(J) || (u = !0, X(), s.value = !0, Z(J));
|
|
1533
1533
|
}
|
|
1534
1534
|
function L(N) {
|
|
1535
1535
|
const J = N.relatedTarget, ne = N.currentTarget;
|
|
1536
1536
|
J && (ne != null && ne.contains(J)) || (u = !1, w || C());
|
|
1537
1537
|
}
|
|
1538
1538
|
function C() {
|
|
1539
|
-
X(),
|
|
1539
|
+
X(), s.value = !1, U();
|
|
1540
1540
|
}
|
|
1541
1541
|
return re(() => {
|
|
1542
1542
|
X(), U(), m();
|
|
@@ -1557,7 +1557,7 @@ const pe = {
|
|
|
1557
1557
|
}, [
|
|
1558
1558
|
G(Ee, { name: "ds-tooltip-fade" }, {
|
|
1559
1559
|
default: M(() => [
|
|
1560
|
-
|
|
1560
|
+
s.value ? (a(), n("div", {
|
|
1561
1561
|
key: 0,
|
|
1562
1562
|
class: "ds-tooltip__anchor",
|
|
1563
1563
|
style: j(d(h))
|
|
@@ -1583,7 +1583,7 @@ const pe = {
|
|
|
1583
1583
|
name: "ds-tooltip-fade"
|
|
1584
1584
|
}, {
|
|
1585
1585
|
default: M(() => [
|
|
1586
|
-
|
|
1586
|
+
s.value ? (a(), n("div", {
|
|
1587
1587
|
key: 0,
|
|
1588
1588
|
id: d(l),
|
|
1589
1589
|
ref_key: "bubbleRef",
|
|
@@ -1630,17 +1630,17 @@ const pe = {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
},
|
|
1632
1632
|
setup(e) {
|
|
1633
|
-
const
|
|
1633
|
+
const i = e, t = y(() => i.verified === null || i.verified === void 0 ? {
|
|
1634
1634
|
state: ct.NEW,
|
|
1635
1635
|
icon: "new_releases",
|
|
1636
1636
|
label: "Newly found"
|
|
1637
|
-
} :
|
|
1637
|
+
} : i.verified ? {
|
|
1638
1638
|
state: ct.VERIFIED,
|
|
1639
1639
|
icon: "verified",
|
|
1640
1640
|
label: "Verified"
|
|
1641
1641
|
} : {
|
|
1642
1642
|
state: ct.UNVERIFIED,
|
|
1643
|
-
icon:
|
|
1643
|
+
icon: i.isContactData ? "dangerous" : "error",
|
|
1644
1644
|
label: "Not verified"
|
|
1645
1645
|
});
|
|
1646
1646
|
return (l, o) => (a(), n("i", {
|
|
@@ -1664,7 +1664,7 @@ function na() {
|
|
|
1664
1664
|
re(() => {
|
|
1665
1665
|
e = !0;
|
|
1666
1666
|
});
|
|
1667
|
-
async function
|
|
1667
|
+
async function i(t) {
|
|
1668
1668
|
var l;
|
|
1669
1669
|
if (typeof navigator == "undefined" || typeof ((l = navigator.clipboard) == null ? void 0 : l.writeText) != "function")
|
|
1670
1670
|
return !1;
|
|
@@ -1675,7 +1675,7 @@ function na() {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
return !e;
|
|
1677
1677
|
}
|
|
1678
|
-
return { copy:
|
|
1678
|
+
return { copy: i };
|
|
1679
1679
|
}
|
|
1680
1680
|
const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class: "ds-contact-value__actions" }, hn = ["role", "aria-label", "aria-hidden"], pn = ["aria-label", "title"], kn = {
|
|
1681
1681
|
class: "material-symbols-rounded",
|
|
@@ -1701,13 +1701,13 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
1701
1701
|
hideValueLabel: { type: String, default: "" }
|
|
1702
1702
|
},
|
|
1703
1703
|
emits: [Te, Ce, De],
|
|
1704
|
-
setup(e, { emit:
|
|
1705
|
-
const t = e, l =
|
|
1706
|
-
let
|
|
1704
|
+
setup(e, { emit: i }) {
|
|
1705
|
+
const t = e, l = i, o = R(!1);
|
|
1706
|
+
let s;
|
|
1707
1707
|
const { copy: c } = na();
|
|
1708
1708
|
async function f() {
|
|
1709
1709
|
const k = t.value;
|
|
1710
|
-
await c(k) && (o.value = !0, clearTimeout(
|
|
1710
|
+
await c(k) && (o.value = !0, clearTimeout(s), s = setTimeout(() => {
|
|
1711
1711
|
o.value = !1;
|
|
1712
1712
|
}, 1200), l(Te, k));
|
|
1713
1713
|
}
|
|
@@ -1717,7 +1717,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
1717
1717
|
function $() {
|
|
1718
1718
|
l(De);
|
|
1719
1719
|
}
|
|
1720
|
-
return re(() => clearTimeout(
|
|
1720
|
+
return re(() => clearTimeout(s)), (k, m) => (a(), n("div", {
|
|
1721
1721
|
class: D(["ds-contact-value", { "ds-contact-value--main": e.main }])
|
|
1722
1722
|
}, [
|
|
1723
1723
|
G(d(mn), {
|
|
@@ -1858,8 +1858,8 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
1858
1858
|
closeLabel: { type: String, default: "Close" }
|
|
1859
1859
|
},
|
|
1860
1860
|
emits: [Te, $t, Be, ve, Ce, De],
|
|
1861
|
-
setup(e, { emit:
|
|
1862
|
-
const t = e, l =
|
|
1861
|
+
setup(e, { emit: i }) {
|
|
1862
|
+
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);
|
|
1863
1863
|
function $() {
|
|
1864
1864
|
o.value = !o.value;
|
|
1865
1865
|
}
|
|
@@ -2020,11 +2020,11 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2020
2020
|
}),
|
|
2021
2021
|
emits: ["update:modelValue"],
|
|
2022
2022
|
setup(e) {
|
|
2023
|
-
const
|
|
2023
|
+
const i = Ie(e, "modelValue"), t = e;
|
|
2024
2024
|
function l() {
|
|
2025
|
-
t.disabled || (
|
|
2025
|
+
t.disabled || (i.value = !0);
|
|
2026
2026
|
}
|
|
2027
|
-
return (o,
|
|
2027
|
+
return (o, s) => (a(), n("label", {
|
|
2028
2028
|
class: D(["ds-radio", { "is-disabled": e.disabled }])
|
|
2029
2029
|
}, [
|
|
2030
2030
|
r("input", {
|
|
@@ -2032,12 +2032,12 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2032
2032
|
class: "ds-radio__native",
|
|
2033
2033
|
name: e.name || void 0,
|
|
2034
2034
|
value: e.value || void 0,
|
|
2035
|
-
checked:
|
|
2035
|
+
checked: i.value,
|
|
2036
2036
|
disabled: e.disabled,
|
|
2037
2037
|
onChange: l
|
|
2038
2038
|
}, null, 40, Kn),
|
|
2039
2039
|
r("span", {
|
|
2040
|
-
class: D(["ds-radio__dot", { "is-active":
|
|
2040
|
+
class: D(["ds-radio__dot", { "is-active": i.value }]),
|
|
2041
2041
|
"aria-hidden": "true"
|
|
2042
2042
|
}, null, 2),
|
|
2043
2043
|
o.$slots.default || e.label ? (a(), n("span", Wn, [
|
|
@@ -2067,15 +2067,15 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2067
2067
|
}),
|
|
2068
2068
|
emits: ["update:modelValue"],
|
|
2069
2069
|
setup(e) {
|
|
2070
|
-
const
|
|
2070
|
+
const i = Ie(e, "modelValue"), t = e, l = Me(), o = me(), s = `${o}-input`, c = `${o}-description`, f = y(() => i.value === t.value), v = y(() => !!t.description || !!l.description);
|
|
2071
2071
|
function $() {
|
|
2072
|
-
t.disabled || (
|
|
2072
|
+
t.disabled || (i.value = t.value);
|
|
2073
2073
|
}
|
|
2074
2074
|
return (k, m) => (a(), n("div", {
|
|
2075
2075
|
class: D(["ds-radio-card", { "is-selected": f.value, "is-disabled": e.disabled }])
|
|
2076
2076
|
}, [
|
|
2077
2077
|
r("input", {
|
|
2078
|
-
id:
|
|
2078
|
+
id: s,
|
|
2079
2079
|
type: "radio",
|
|
2080
2080
|
class: "ds-radio-card__native",
|
|
2081
2081
|
name: e.name || void 0,
|
|
@@ -2088,7 +2088,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2088
2088
|
r("div", Xn, [
|
|
2089
2089
|
r("div", Zn, [
|
|
2090
2090
|
r("label", {
|
|
2091
|
-
for:
|
|
2091
|
+
for: s,
|
|
2092
2092
|
class: "ds-radio-card__title"
|
|
2093
2093
|
}, [
|
|
2094
2094
|
x(k.$slots, "title", {}, () => [
|
|
@@ -2136,15 +2136,15 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2136
2136
|
}),
|
|
2137
2137
|
emits: ["update:modelValue"],
|
|
2138
2138
|
setup(e) {
|
|
2139
|
-
const
|
|
2139
|
+
const i = Ie(e, "modelValue"), t = e;
|
|
2140
2140
|
function l() {
|
|
2141
|
-
t.disabled || t.loading || (
|
|
2141
|
+
t.disabled || t.loading || (i.value = !i.value);
|
|
2142
2142
|
}
|
|
2143
|
-
return (o,
|
|
2143
|
+
return (o, s) => (a(), n("button", {
|
|
2144
2144
|
type: "button",
|
|
2145
2145
|
role: "switch",
|
|
2146
2146
|
class: D(["ds-switch", { "is-disabled": e.disabled, "is-loading": e.loading }]),
|
|
2147
|
-
"aria-checked":
|
|
2147
|
+
"aria-checked": i.value,
|
|
2148
2148
|
"aria-busy": e.loading || void 0,
|
|
2149
2149
|
"aria-disabled": e.disabled || e.loading || void 0,
|
|
2150
2150
|
"aria-label": e.ariaLabel || void 0,
|
|
@@ -2175,12 +2175,12 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2175
2175
|
disabled: Boolean
|
|
2176
2176
|
},
|
|
2177
2177
|
emits: [ye],
|
|
2178
|
-
setup(e, { emit:
|
|
2179
|
-
const t = e, l =
|
|
2180
|
-
function o(
|
|
2181
|
-
t.disabled || l(ye,
|
|
2178
|
+
setup(e, { emit: i }) {
|
|
2179
|
+
const t = e, l = i;
|
|
2180
|
+
function o(s) {
|
|
2181
|
+
t.disabled || l(ye, s);
|
|
2182
2182
|
}
|
|
2183
|
-
return (
|
|
2183
|
+
return (s, c) => {
|
|
2184
2184
|
var f;
|
|
2185
2185
|
return a(), n("button", {
|
|
2186
2186
|
type: "button",
|
|
@@ -2281,8 +2281,8 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2281
2281
|
modelModifiers: {}
|
|
2282
2282
|
}),
|
|
2283
2283
|
emits: /* @__PURE__ */ be([_e], ["update:modelValue"]),
|
|
2284
|
-
setup(e, { emit:
|
|
2285
|
-
const t = e, l =
|
|
2284
|
+
setup(e, { emit: i }) {
|
|
2285
|
+
const t = e, l = i, o = Ie(e, "modelValue"), s = `ds-select-${me()}`, c = `${s}-listbox`, f = (A) => `${s}-option-${A}`, v = R(null), $ = R(null), k = R(null), m = R(!1), h = R(-1), g = R(""), S = y(() => t.selectType === Vt.FILTER_SUMMARY), _ = y(() => t.filterable && !t.remote), w = y(() => {
|
|
2286
2286
|
if (!_.value) return t.options;
|
|
2287
2287
|
const A = g.value.trim().toLowerCase();
|
|
2288
2288
|
return A ? t.options.filter(
|
|
@@ -2297,7 +2297,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2297
2297
|
B ? (W == null ? void 0 : W.kind) === "group" && W.label === B ? W.items.push({ option: H, index: V }) : A.push({
|
|
2298
2298
|
kind: "group",
|
|
2299
2299
|
label: B,
|
|
2300
|
-
headerId: `${
|
|
2300
|
+
headerId: `${s}-group-${V}`,
|
|
2301
2301
|
key: `g-${V}`,
|
|
2302
2302
|
items: [{ option: H, index: V }]
|
|
2303
2303
|
}) : (W == null ? void 0 : W.kind) === "plain" ? W.items.push({ option: H, index: V }) : A.push({ kind: "plain", key: `p-${V}`, items: [{ option: H, index: V }] });
|
|
@@ -2583,19 +2583,19 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2583
2583
|
clickable: { type: Boolean, default: !1 }
|
|
2584
2584
|
},
|
|
2585
2585
|
emits: [ye],
|
|
2586
|
-
setup(e, { emit:
|
|
2587
|
-
const t = e, l =
|
|
2586
|
+
setup(e, { emit: i }) {
|
|
2587
|
+
const t = e, l = i;
|
|
2588
2588
|
function o() {
|
|
2589
2589
|
t.clickable && l(ye);
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function s(c) {
|
|
2592
2592
|
t.clickable && (c.key === "Enter" || c.key === " ") && (c.preventDefault(), l(ye));
|
|
2593
2593
|
}
|
|
2594
2594
|
return (c, f) => (a(), n("tr", {
|
|
2595
2595
|
class: D(["ds-row", { "is-selected": e.selected, "is-clickable": e.clickable }]),
|
|
2596
2596
|
tabindex: e.clickable ? 0 : void 0,
|
|
2597
2597
|
onClick: o,
|
|
2598
|
-
onKeydown:
|
|
2598
|
+
onKeydown: s
|
|
2599
2599
|
}, [
|
|
2600
2600
|
x(c.$slots, "default", {}, void 0, !0)
|
|
2601
2601
|
], 42, $o));
|
|
@@ -2618,16 +2618,16 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2618
2618
|
}
|
|
2619
2619
|
},
|
|
2620
2620
|
setup(e) {
|
|
2621
|
-
const
|
|
2621
|
+
const i = e, t = (o) => typeof o == "number" ? `${o}px` : o, l = y(() => {
|
|
2622
2622
|
const o = {};
|
|
2623
|
-
if (
|
|
2623
|
+
if (i.width != null && (o.width = t(i.width)), i.pinned) {
|
|
2624
2624
|
o.position = "sticky";
|
|
2625
|
-
const
|
|
2626
|
-
o[
|
|
2625
|
+
const s = i.pinnedOffset == null ? "0px" : t(i.pinnedOffset);
|
|
2626
|
+
o[i.pinned === Se.LEFT ? "left" : "right"] = s;
|
|
2627
2627
|
}
|
|
2628
2628
|
return Object.keys(o).length ? o : void 0;
|
|
2629
2629
|
});
|
|
2630
|
-
return (o,
|
|
2630
|
+
return (o, s) => (a(), n("td", {
|
|
2631
2631
|
class: D(["ds-cell", {
|
|
2632
2632
|
"is-accent": e.first && e.selected,
|
|
2633
2633
|
"is-truncated": e.truncate,
|
|
@@ -2661,10 +2661,10 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2661
2661
|
round: Boolean
|
|
2662
2662
|
},
|
|
2663
2663
|
setup(e) {
|
|
2664
|
-
return (
|
|
2664
|
+
return (i, t) => (a(), n("span", {
|
|
2665
2665
|
class: D(["ds-custom-tag", [`ds-custom-tag--${e.type}`, { "is-round": e.round }]])
|
|
2666
2666
|
}, [
|
|
2667
|
-
x(
|
|
2667
|
+
x(i.$slots, "default", {}, void 0, !0)
|
|
2668
2668
|
], 2));
|
|
2669
2669
|
}
|
|
2670
2670
|
}), Ud = /* @__PURE__ */ F(To, [["__scopeId", "data-v-c0220631"]]), Gt = {
|
|
@@ -2704,8 +2704,8 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2704
2704
|
}
|
|
2705
2705
|
},
|
|
2706
2706
|
emits: [ye],
|
|
2707
|
-
setup(e, { emit:
|
|
2708
|
-
const t =
|
|
2707
|
+
setup(e, { emit: i }) {
|
|
2708
|
+
const t = i;
|
|
2709
2709
|
return (l, o) => (a(), n("span", {
|
|
2710
2710
|
class: D(["ds-pill", [`ds-pill--${e.tone}`, { "ds-pill--has-icon": e.icon }]]),
|
|
2711
2711
|
style: j(e.background ? { background: e.background } : void 0)
|
|
@@ -2718,7 +2718,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2718
2718
|
type: "button",
|
|
2719
2719
|
class: "ds-pill__icon",
|
|
2720
2720
|
"aria-label": e.iconLabel || void 0,
|
|
2721
|
-
onClick: o[0] || (o[0] = (
|
|
2721
|
+
onClick: o[0] || (o[0] = (s) => t(d(ye)))
|
|
2722
2722
|
}, [
|
|
2723
2723
|
r("i", Io, b(e.icon), 1)
|
|
2724
2724
|
], 8, Do)) : p("", !0)
|
|
@@ -2730,12 +2730,12 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2730
2730
|
}, No = { class: "ds-pill-with-border__label" }, Oo = /* @__PURE__ */ P({
|
|
2731
2731
|
__name: "DsPillWithBorder",
|
|
2732
2732
|
emits: [ye],
|
|
2733
|
-
setup(e, { emit:
|
|
2734
|
-
const t =
|
|
2733
|
+
setup(e, { emit: i }) {
|
|
2734
|
+
const t = i;
|
|
2735
2735
|
return (l, o) => (a(), n("button", {
|
|
2736
2736
|
type: "button",
|
|
2737
2737
|
class: "ds-pill-with-border",
|
|
2738
|
-
onClick: o[0] || (o[0] = (
|
|
2738
|
+
onClick: o[0] || (o[0] = (s) => t(d(ye)))
|
|
2739
2739
|
}, [
|
|
2740
2740
|
l.$slots.icon ? (a(), n("span", Ro, [
|
|
2741
2741
|
x(l.$slots, "icon", {}, void 0, !0)
|
|
@@ -2772,11 +2772,11 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2772
2772
|
showLegend: { type: Boolean, default: !1 }
|
|
2773
2773
|
},
|
|
2774
2774
|
setup(e) {
|
|
2775
|
-
const
|
|
2776
|
-
() => !!t.legend ||
|
|
2775
|
+
const i = e, t = Me(), l = y(() => i.segments.filter((s) => !!s.name)), o = y(
|
|
2776
|
+
() => !!t.legend || i.showLegend && l.value.length > 0
|
|
2777
2777
|
);
|
|
2778
|
-
return (
|
|
2779
|
-
r("div", Oe(
|
|
2778
|
+
return (s, c) => o.value ? (a(), n("div", xo, [
|
|
2779
|
+
r("div", Oe(s.$attrs, {
|
|
2780
2780
|
class: "ds-segmented-progress-bar",
|
|
2781
2781
|
role: "img",
|
|
2782
2782
|
"aria-label": e.label || void 0,
|
|
@@ -2795,7 +2795,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2795
2795
|
}, null, 12, Fo);
|
|
2796
2796
|
}), 128))
|
|
2797
2797
|
], 16, Po),
|
|
2798
|
-
x(
|
|
2798
|
+
x(s.$slots, "legend", {}, () => [
|
|
2799
2799
|
r("ul", zo, [
|
|
2800
2800
|
(a(!0), n(K, null, ae(l.value, (f, v) => (a(), n("li", {
|
|
2801
2801
|
key: `${f.name}-${v}`,
|
|
@@ -2809,7 +2809,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2809
2809
|
]))), 128))
|
|
2810
2810
|
])
|
|
2811
2811
|
], !0)
|
|
2812
|
-
])) : (a(), n("div", Oe({ key: 0 },
|
|
2812
|
+
])) : (a(), n("div", Oe({ key: 0 }, s.$attrs, {
|
|
2813
2813
|
class: "ds-segmented-progress-bar",
|
|
2814
2814
|
role: "img",
|
|
2815
2815
|
"aria-label": e.label || void 0,
|
|
@@ -2846,11 +2846,11 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2846
2846
|
roundedBorder: { type: Boolean, default: !1 }
|
|
2847
2847
|
},
|
|
2848
2848
|
setup(e) {
|
|
2849
|
-
return (
|
|
2849
|
+
return (i, t) => (a(), n("div", {
|
|
2850
2850
|
class: D(["ds-empty-state", { "is-rounded": e.roundedBorder }])
|
|
2851
2851
|
}, [
|
|
2852
|
-
|
|
2853
|
-
x(
|
|
2852
|
+
i.$slots["table-header"] ? (a(), n("div", qo, [
|
|
2853
|
+
x(i.$slots, "table-header", {}, void 0, !0)
|
|
2854
2854
|
])) : p("", !0),
|
|
2855
2855
|
r("div", Go, [
|
|
2856
2856
|
e.image ? (a(), n("img", {
|
|
@@ -2861,7 +2861,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2861
2861
|
}, null, 8, Ho)) : p("", !0),
|
|
2862
2862
|
r("p", Ko, b(e.title), 1),
|
|
2863
2863
|
e.subtitle ? (a(), n("p", Wo, b(e.subtitle), 1)) : p("", !0),
|
|
2864
|
-
x(
|
|
2864
|
+
x(i.$slots, "button", {}, void 0, !0)
|
|
2865
2865
|
])
|
|
2866
2866
|
], 2));
|
|
2867
2867
|
}
|
|
@@ -2890,8 +2890,8 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2890
2890
|
pageSizeLabel: { type: String, default: "" }
|
|
2891
2891
|
},
|
|
2892
2892
|
emits: [Lt, Et],
|
|
2893
|
-
setup(e, { emit:
|
|
2894
|
-
const t = e, l =
|
|
2893
|
+
setup(e, { emit: i }) {
|
|
2894
|
+
const t = e, l = i, o = y(() => Math.max(1, Math.ceil(t.total / t.pageSize))), s = y(() => {
|
|
2895
2895
|
const v = o.value;
|
|
2896
2896
|
if (v <= 7)
|
|
2897
2897
|
return Array.from({ length: v }, (g, S) => S + 1);
|
|
@@ -2924,7 +2924,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2924
2924
|
disabled: e.currentPage <= 1,
|
|
2925
2925
|
onClick: $[0] || ($[0] = (k) => c(e.currentPage - 1))
|
|
2926
2926
|
}, null, 8, ["aria-label", "disabled"]),
|
|
2927
|
-
(a(!0), n(K, null, ae(
|
|
2927
|
+
(a(!0), n(K, null, ae(s.value, (k) => (a(), n(K, { key: k }, [
|
|
2928
2928
|
typeof k == "string" ? (a(), n("span", Qo, "…")) : (a(), n("button", {
|
|
2929
2929
|
key: 1,
|
|
2930
2930
|
type: "button",
|
|
@@ -2975,12 +2975,12 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
2975
2975
|
collapsed: Boolean
|
|
2976
2976
|
},
|
|
2977
2977
|
emits: [tt],
|
|
2978
|
-
setup(e, { emit:
|
|
2979
|
-
const t =
|
|
2978
|
+
setup(e, { emit: i }) {
|
|
2979
|
+
const t = i;
|
|
2980
2980
|
function l(o) {
|
|
2981
2981
|
t(tt, o);
|
|
2982
2982
|
}
|
|
2983
|
-
return (o,
|
|
2983
|
+
return (o, s) => (a(), n("button", {
|
|
2984
2984
|
type: "button",
|
|
2985
2985
|
class: D(["ds-menu-item", { "is-active": e.active, "is-collapsed": e.collapsed }]),
|
|
2986
2986
|
"aria-current": e.active ? "page" : void 0,
|
|
@@ -3020,8 +3020,8 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3020
3020
|
clickable: { type: Boolean, default: !0 }
|
|
3021
3021
|
},
|
|
3022
3022
|
emits: [rt, Tt],
|
|
3023
|
-
setup(e, { emit:
|
|
3024
|
-
const t = e, l =
|
|
3023
|
+
setup(e, { emit: i }) {
|
|
3024
|
+
const t = e, l = i, o = y(() => t.value === t.steps.length), s = y(
|
|
3025
3025
|
() => t.steps.map(($, k) => {
|
|
3026
3026
|
var g;
|
|
3027
3027
|
const m = k + 1;
|
|
@@ -3047,7 +3047,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3047
3047
|
}
|
|
3048
3048
|
return ($, k) => (a(), n("div", di, [
|
|
3049
3049
|
r("ol", ci, [
|
|
3050
|
-
(a(!0), n(K, null, ae(
|
|
3050
|
+
(a(!0), n(K, null, ae(s.value, (m) => (a(), n("li", {
|
|
3051
3051
|
key: m.key,
|
|
3052
3052
|
class: "ds-wizard-stepper__item"
|
|
3053
3053
|
}, [
|
|
@@ -3135,9 +3135,9 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3135
3135
|
fixed: { type: Boolean, default: !0 }
|
|
3136
3136
|
},
|
|
3137
3137
|
emits: [ve, Dt, It, At],
|
|
3138
|
-
setup(e, { emit:
|
|
3139
|
-
const t = e, l =
|
|
3140
|
-
let
|
|
3138
|
+
setup(e, { emit: i }) {
|
|
3139
|
+
const t = e, l = i, o = R(null);
|
|
3140
|
+
let s = null;
|
|
3141
3141
|
const c = Me(), 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)), k = R($(t.width));
|
|
3142
3142
|
Q(
|
|
3143
3143
|
() => [t.width, t.minWidth, t.maxWidth],
|
|
@@ -3196,14 +3196,14 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3196
3196
|
L.shiftKey && document.activeElement === N ? (L.preventDefault(), J.focus()) : !L.shiftKey && document.activeElement === J && (L.preventDefault(), N.focus());
|
|
3197
3197
|
}
|
|
3198
3198
|
function E() {
|
|
3199
|
-
|
|
3199
|
+
s = document.activeElement, document.addEventListener("keydown", q), document.body.style.overflow = "hidden", oe(() => {
|
|
3200
3200
|
var L, C;
|
|
3201
3201
|
return (C = (L = U()[0]) != null ? L : o.value) == null ? void 0 : C.focus();
|
|
3202
3202
|
});
|
|
3203
3203
|
}
|
|
3204
3204
|
function I(L = !0) {
|
|
3205
3205
|
var C;
|
|
3206
|
-
document.removeEventListener("keydown", q), document.body.style.overflow = "", L && ((C =
|
|
3206
|
+
document.removeEventListener("keydown", q), document.body.style.overflow = "", L && ((C = s == null ? void 0 : s.focus) == null || C.call(s));
|
|
3207
3207
|
}
|
|
3208
3208
|
return Q(
|
|
3209
3209
|
() => t.open && t.fixed,
|
|
@@ -3331,12 +3331,12 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3331
3331
|
block: { type: Boolean, default: !1 }
|
|
3332
3332
|
},
|
|
3333
3333
|
emits: [de],
|
|
3334
|
-
setup(e, { emit:
|
|
3334
|
+
setup(e, { emit: i }) {
|
|
3335
3335
|
var E;
|
|
3336
|
-
const t = e, l =
|
|
3336
|
+
const t = e, l = i, o = R(null), s = R(null), c = /* @__PURE__ */ new Set();
|
|
3337
3337
|
function f(I) {
|
|
3338
3338
|
var L, C;
|
|
3339
|
-
return !!((L = o.value) != null && L.contains(I)) || !!((C =
|
|
3339
|
+
return !!((L = o.value) != null && L.contains(I)) || !!((C = s.value) != null && C.contains(I)) || [...c].some((N) => N(I));
|
|
3340
3340
|
}
|
|
3341
3341
|
Ta(Kt, {
|
|
3342
3342
|
register(I) {
|
|
@@ -3348,7 +3348,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3348
3348
|
resolvedPlacement: h,
|
|
3349
3349
|
activate: g,
|
|
3350
3350
|
deactivate: S
|
|
3351
|
-
} = la(
|
|
3351
|
+
} = la(s, () => t.placement, { trigger: o, gap: Ei }), _ = y(() => {
|
|
3352
3352
|
const L = {
|
|
3353
3353
|
...!!t.growTo ? {
|
|
3354
3354
|
width: "max-content",
|
|
@@ -3387,7 +3387,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3387
3387
|
var C;
|
|
3388
3388
|
typeof document != "undefined" && (I ? (z = document.activeElement, t.closeOnOutside && document.addEventListener("mousedown", q), t.teleported && u(), oe(() => {
|
|
3389
3389
|
var N, J, ne;
|
|
3390
|
-
(N =
|
|
3390
|
+
(N = s.value) != null && N.contains(document.activeElement) || (ne = (J = s.value) == null ? void 0 : J.focus) == null || ne.call(J, { preventScroll: !0 }), g();
|
|
3391
3391
|
})) : L && (document.removeEventListener("mousedown", q), T(), S(), (C = z == null ? void 0 : z.focus) == null || C.call(z, { preventScroll: !0 })));
|
|
3392
3392
|
},
|
|
3393
3393
|
{ immediate: !0 }
|
|
@@ -3420,7 +3420,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3420
3420
|
r("div", {
|
|
3421
3421
|
id: d(k),
|
|
3422
3422
|
ref_key: "panelRef",
|
|
3423
|
-
ref:
|
|
3423
|
+
ref: s,
|
|
3424
3424
|
class: D(["ds-popover__panel", [`ds-popover__panel--${d(h)}`, { "is-flush": e.flush }]]),
|
|
3425
3425
|
role: "dialog",
|
|
3426
3426
|
tabindex: "-1",
|
|
@@ -3441,7 +3441,7 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3441
3441
|
key: 0,
|
|
3442
3442
|
id: d(k),
|
|
3443
3443
|
ref_key: "panelRef",
|
|
3444
|
-
ref:
|
|
3444
|
+
ref: s,
|
|
3445
3445
|
class: D(["ds-popover__panel", [`ds-popover__panel--${d(h)}`, { "is-flush": e.flush }]]),
|
|
3446
3446
|
role: "dialog",
|
|
3447
3447
|
tabindex: "-1",
|
|
@@ -3455,33 +3455,33 @@ const bn = ["title"], yn = { class: "ds-contact-value__marquee" }, gn = { class:
|
|
|
3455
3455
|
], 34));
|
|
3456
3456
|
}
|
|
3457
3457
|
}), He = /* @__PURE__ */ F(Ti, [["__scopeId", "data-v-e70bc7e7"]]), Ci = '[role="menuitem"]:not(:disabled):not([aria-disabled="true"])';
|
|
3458
|
-
function ia(e,
|
|
3458
|
+
function ia(e, i) {
|
|
3459
3459
|
const t = () => {
|
|
3460
|
-
var
|
|
3461
|
-
return [...(c = (
|
|
3460
|
+
var s, c;
|
|
3461
|
+
return [...(c = (s = e.value) == null ? void 0 : s.querySelectorAll(Ci)) != null ? c : []];
|
|
3462
3462
|
};
|
|
3463
3463
|
function l() {
|
|
3464
3464
|
return oe(() => {
|
|
3465
|
-
var
|
|
3466
|
-
return (
|
|
3465
|
+
var s;
|
|
3466
|
+
return (s = t()[0]) == null ? void 0 : s.focus();
|
|
3467
3467
|
});
|
|
3468
3468
|
}
|
|
3469
|
-
function o(
|
|
3469
|
+
function o(s) {
|
|
3470
3470
|
var $;
|
|
3471
|
-
if (
|
|
3472
|
-
|
|
3471
|
+
if (s.key === "Escape" || s.key === "Tab") {
|
|
3472
|
+
s.key === "Escape" && s.stopPropagation(), i.onClose();
|
|
3473
3473
|
return;
|
|
3474
3474
|
}
|
|
3475
3475
|
const c = t();
|
|
3476
3476
|
if (c.length === 0) return;
|
|
3477
3477
|
const f = c.indexOf(document.activeElement);
|
|
3478
3478
|
let v;
|
|
3479
|
-
if (
|
|
3480
|
-
else if (
|
|
3481
|
-
else if (
|
|
3482
|
-
else if (
|
|
3479
|
+
if (s.key === "ArrowDown") v = (f + 1) % c.length;
|
|
3480
|
+
else if (s.key === "ArrowUp") v = (f - 1 + c.length) % c.length;
|
|
3481
|
+
else if (s.key === "Home") v = 0;
|
|
3482
|
+
else if (s.key === "End") v = c.length - 1;
|
|
3483
3483
|
else return;
|
|
3484
|
-
|
|
3484
|
+
s.preventDefault(), ($ = c[v]) == null || $.focus();
|
|
3485
3485
|
}
|
|
3486
3486
|
return { focusFirst: l, onKeydown: o };
|
|
3487
3487
|
}
|
|
@@ -3510,8 +3510,8 @@ const Wt = {
|
|
|
3510
3510
|
menuLabel: { type: String, default: "" }
|
|
3511
3511
|
},
|
|
3512
3512
|
emits: [tt, de],
|
|
3513
|
-
setup(e, { emit:
|
|
3514
|
-
const t = e, l =
|
|
3513
|
+
setup(e, { emit: i }) {
|
|
3514
|
+
const t = e, l = i, o = R(!1), s = R(null), c = R(null), f = y(() => {
|
|
3515
3515
|
var _;
|
|
3516
3516
|
return (_ = t.open) != null ? _ : o.value;
|
|
3517
3517
|
});
|
|
@@ -3525,7 +3525,7 @@ const Wt = {
|
|
|
3525
3525
|
oe(
|
|
3526
3526
|
() => {
|
|
3527
3527
|
var _, w;
|
|
3528
|
-
return (w = (_ =
|
|
3528
|
+
return (w = (_ = s.value) == null ? void 0 : _.querySelector('button, a[href], input, [tabindex]:not([tabindex="-1"])')) == null ? void 0 : w.focus();
|
|
3529
3529
|
}
|
|
3530
3530
|
);
|
|
3531
3531
|
}
|
|
@@ -3555,7 +3555,7 @@ const Wt = {
|
|
|
3555
3555
|
trigger: M(() => [
|
|
3556
3556
|
r("span", {
|
|
3557
3557
|
ref_key: "triggerRef",
|
|
3558
|
-
ref:
|
|
3558
|
+
ref: s,
|
|
3559
3559
|
class: "ds-action-menu__trigger",
|
|
3560
3560
|
onKeydown: Ye(Le($, ["prevent"]), ["down"])
|
|
3561
3561
|
}, [
|
|
@@ -3601,13 +3601,13 @@ const Wt = {
|
|
|
3601
3601
|
size: { type: Number, default: 36 }
|
|
3602
3602
|
},
|
|
3603
3603
|
setup(e) {
|
|
3604
|
-
const
|
|
3604
|
+
const i = e, t = R(!1);
|
|
3605
3605
|
Q(
|
|
3606
|
-
() =>
|
|
3606
|
+
() => i.src,
|
|
3607
3607
|
() => t.value = !1
|
|
3608
3608
|
);
|
|
3609
|
-
const l = y(() => (
|
|
3610
|
-
const c = `${Math.round(
|
|
3609
|
+
const l = y(() => (i.name || "?").slice(0, 1)), o = y(() => ({ width: `${i.size}px`, height: `${i.size}px` })), s = y(() => {
|
|
3610
|
+
const c = `${Math.round(i.size * 0.61)}px`;
|
|
3611
3611
|
return { width: c, height: c };
|
|
3612
3612
|
});
|
|
3613
3613
|
return (c, f) => (a(), n("span", {
|
|
@@ -3620,7 +3620,7 @@ const Wt = {
|
|
|
3620
3620
|
src: e.src,
|
|
3621
3621
|
alt: "",
|
|
3622
3622
|
loading: "lazy",
|
|
3623
|
-
style: j(
|
|
3623
|
+
style: j(s.value),
|
|
3624
3624
|
onError: f[0] || (f[0] = (v) => t.value = !0)
|
|
3625
3625
|
}, null, 44, Bi)) : (a(), n("span", Mi, b(l.value), 1))
|
|
3626
3626
|
], 4));
|
|
@@ -3643,7 +3643,7 @@ const Wt = {
|
|
|
3643
3643
|
details: { type: Array, default: () => [] }
|
|
3644
3644
|
},
|
|
3645
3645
|
setup(e) {
|
|
3646
|
-
const
|
|
3646
|
+
const i = e, t = y(() => i.details.filter((l) => l.value));
|
|
3647
3647
|
return (l, o) => (a(), n("div", Pi, [
|
|
3648
3648
|
r("div", Fi, [
|
|
3649
3649
|
G(sa, {
|
|
@@ -3682,20 +3682,20 @@ const Wt = {
|
|
|
3682
3682
|
"aria-label": e.linkedinLabel || void 0
|
|
3683
3683
|
}, "in", 8, Vi)) : p("", !0)
|
|
3684
3684
|
]),
|
|
3685
|
-
(a(!0), n(K, null, ae(t.value, (
|
|
3686
|
-
key:
|
|
3685
|
+
(a(!0), n(K, null, ae(t.value, (s) => (a(), n("div", {
|
|
3686
|
+
key: s.id,
|
|
3687
3687
|
class: "ds-company-card__row"
|
|
3688
3688
|
}, [
|
|
3689
|
-
r("i", qi, b(
|
|
3689
|
+
r("i", qi, b(s.icon), 1),
|
|
3690
3690
|
r("div", Gi, [
|
|
3691
|
-
r("div", Hi, b(
|
|
3692
|
-
|
|
3691
|
+
r("div", Hi, b(s.label), 1),
|
|
3692
|
+
s.href ? (a(), n("a", {
|
|
3693
3693
|
key: 0,
|
|
3694
3694
|
class: "ds-company-card__row-value is-link",
|
|
3695
|
-
href:
|
|
3695
|
+
href: s.href,
|
|
3696
3696
|
target: "_blank",
|
|
3697
3697
|
rel: "noopener noreferrer"
|
|
3698
|
-
}, b(
|
|
3698
|
+
}, b(s.value), 9, Ki)) : (a(), n("div", Wi, b(s.value), 1))
|
|
3699
3699
|
])
|
|
3700
3700
|
]))), 128))
|
|
3701
3701
|
]));
|
|
@@ -3716,44 +3716,44 @@ const Wt = {
|
|
|
3716
3716
|
[ze.HQ]: "corporate_fare",
|
|
3717
3717
|
[ze.OTHER]: "alternate_email"
|
|
3718
3718
|
};
|
|
3719
|
-
function ra(e,
|
|
3720
|
-
return e === ze.DIRECT &&
|
|
3719
|
+
function ra(e, i) {
|
|
3720
|
+
return e === ze.DIRECT && i === Ze.PHONE ? "call" : ji[e];
|
|
3721
3721
|
}
|
|
3722
3722
|
const ft = ["*", "•", "."];
|
|
3723
3723
|
function Xi(e) {
|
|
3724
3724
|
return e > 1 ? e - 1 : 0;
|
|
3725
3725
|
}
|
|
3726
|
-
function Zi(e,
|
|
3726
|
+
function Zi(e, i, t) {
|
|
3727
3727
|
const l = e[e.length - 1];
|
|
3728
3728
|
if (l && l.masked === t) {
|
|
3729
|
-
l.text +=
|
|
3729
|
+
l.text += i;
|
|
3730
3730
|
return;
|
|
3731
3731
|
}
|
|
3732
|
-
e.push({ text:
|
|
3732
|
+
e.push({ text: i, masked: t });
|
|
3733
3733
|
}
|
|
3734
|
-
function Qi(e,
|
|
3734
|
+
function Qi(e, i) {
|
|
3735
3735
|
if (!e) return [];
|
|
3736
|
-
if (
|
|
3737
|
-
const
|
|
3738
|
-
return
|
|
3739
|
-
{ text: e.slice(0,
|
|
3740
|
-
{ text: e.slice(
|
|
3736
|
+
if (i === Ze.EMAIL) {
|
|
3737
|
+
const s = e.indexOf("@");
|
|
3738
|
+
return s <= 0 ? [{ text: e, masked: !0 }] : [
|
|
3739
|
+
{ text: e.slice(0, s), masked: !0 },
|
|
3740
|
+
{ text: e.slice(s), masked: !1 }
|
|
3741
3741
|
];
|
|
3742
3742
|
}
|
|
3743
3743
|
const t = [];
|
|
3744
3744
|
let l = 0;
|
|
3745
3745
|
for (; l < e.length; ) {
|
|
3746
|
-
const
|
|
3746
|
+
const s = ft.includes(e[l]);
|
|
3747
3747
|
let c = l;
|
|
3748
|
-
for (; c < e.length && ft.includes(e[c]) ===
|
|
3748
|
+
for (; c < e.length && ft.includes(e[c]) === s; ) c += 1;
|
|
3749
3749
|
const f = e.slice(l, c);
|
|
3750
|
-
t.push({ text: f, masked:
|
|
3750
|
+
t.push({ text: f, masked: s && f !== "." }), l = c;
|
|
3751
3751
|
}
|
|
3752
3752
|
const o = [];
|
|
3753
|
-
return t.forEach((
|
|
3753
|
+
return t.forEach((s, c) => {
|
|
3754
3754
|
var v, $;
|
|
3755
|
-
let f =
|
|
3756
|
-
|
|
3755
|
+
let f = s.text;
|
|
3756
|
+
s.masked || ((v = t[c - 1]) != null && v.masked && (f = f.replace(/^-/, " ")), ($ = t[c + 1]) != null && $.masked && (f = f.replace(/-$/, " "))), Zi(o, f, s.masked);
|
|
3757
3757
|
}), o;
|
|
3758
3758
|
}
|
|
3759
3759
|
const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
@@ -3769,19 +3769,19 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
3769
3769
|
maskedLabel: { type: String, default: "Hidden" }
|
|
3770
3770
|
},
|
|
3771
3771
|
setup(e) {
|
|
3772
|
-
const
|
|
3773
|
-
function t(
|
|
3774
|
-
return !
|
|
3775
|
-
|
|
3772
|
+
const i = e;
|
|
3773
|
+
function t(s) {
|
|
3774
|
+
return !s.masked || ![...s.text].every((c) => ft.includes(c)) ? "" : ls.repeat(
|
|
3775
|
+
i.kind === Ze.EMAIL ? as : s.text.length
|
|
3776
3776
|
);
|
|
3777
3777
|
}
|
|
3778
3778
|
const l = y(
|
|
3779
|
-
() =>
|
|
3780
|
-
...
|
|
3781
|
-
circles: t(
|
|
3779
|
+
() => i.masked ? Qi(i.value, i.kind).map((s) => ({
|
|
3780
|
+
...s,
|
|
3781
|
+
circles: t(s)
|
|
3782
3782
|
})) : []
|
|
3783
|
-
), o = y(() => l.value.findIndex((
|
|
3784
|
-
return (
|
|
3783
|
+
), o = y(() => l.value.findIndex((s) => s.circles));
|
|
3784
|
+
return (s, c) => (a(), n("span", {
|
|
3785
3785
|
class: D(["ds-masked-value", { "is-masked": e.masked }]),
|
|
3786
3786
|
title: e.masked ? void 0 : e.value
|
|
3787
3787
|
}, [
|
|
@@ -3815,7 +3815,7 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
3815
3815
|
focusable: { type: Boolean, default: !0 }
|
|
3816
3816
|
},
|
|
3817
3817
|
setup(e) {
|
|
3818
|
-
return (
|
|
3818
|
+
return (i, t) => (a(), Y(d(ge), {
|
|
3819
3819
|
class: "ds-deliverability-badge",
|
|
3820
3820
|
content: e.tooltip,
|
|
3821
3821
|
placement: e.placement
|
|
@@ -3839,7 +3839,7 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
3839
3839
|
label: { type: String, default: "" }
|
|
3840
3840
|
},
|
|
3841
3841
|
setup(e) {
|
|
3842
|
-
return (
|
|
3842
|
+
return (i, t) => e.overflow > 0 ? (a(), n("span", {
|
|
3843
3843
|
key: 0,
|
|
3844
3844
|
class: D(["ds-more-count-chip", { "is-active": e.active }]),
|
|
3845
3845
|
"aria-label": e.label || void 0
|
|
@@ -3893,13 +3893,13 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
3893
3893
|
incorrectLabel: { type: String, default: "Incorrect" }
|
|
3894
3894
|
},
|
|
3895
3895
|
emits: [Te, Ce, De],
|
|
3896
|
-
setup(e, { emit:
|
|
3897
|
-
const t = e, l =
|
|
3896
|
+
setup(e, { emit: i }) {
|
|
3897
|
+
const t = e, l = i, o = y(() => t.sections.length ? t.sections.filter((g) => g.items.length > 0).map((g, S) => ({
|
|
3898
3898
|
key: `${g.type}-${S}`,
|
|
3899
3899
|
label: g.label,
|
|
3900
3900
|
type: g.type,
|
|
3901
3901
|
items: g.items
|
|
3902
|
-
})) : t.items.length ? [{ key: "group", label: "", type: t.type, items: t.items }] : []),
|
|
3902
|
+
})) : t.items.length ? [{ key: "group", label: "", type: t.type, items: t.items }] : []), s = y(() => o.value.reduce((g, S) => g + S.items.length, 0));
|
|
3903
3903
|
function c(g) {
|
|
3904
3904
|
return t.kind === Ze.EMAIL && g.valid;
|
|
3905
3905
|
}
|
|
@@ -3923,12 +3923,12 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
3923
3923
|
return re(() => clearTimeout(k)), (g, S) => (a(), n("div", ds, [
|
|
3924
3924
|
e.title || g.$slots.actions ? (a(), n("div", cs, [
|
|
3925
3925
|
e.title ? (a(), n("span", us, b(e.title), 1)) : p("", !0),
|
|
3926
|
-
e.title ? (a(), n("span", fs, "(" + b(
|
|
3926
|
+
e.title ? (a(), n("span", fs, "(" + b(s.value) + ")", 1)) : p("", !0),
|
|
3927
3927
|
r("span", vs, [
|
|
3928
3928
|
x(g.$slots, "actions", {}, void 0, !0)
|
|
3929
3929
|
])
|
|
3930
3930
|
])) : p("", !0),
|
|
3931
|
-
!
|
|
3931
|
+
!s.value && e.emptyLabel ? (a(), n("p", ms, b(e.emptyLabel), 1)) : p("", !0),
|
|
3932
3932
|
(a(!0), n(K, null, ae(o.value, (_) => (a(), n(K, {
|
|
3933
3933
|
key: _.key
|
|
3934
3934
|
}, [
|
|
@@ -4060,8 +4060,8 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4060
4060
|
incorrectLabel: { type: String, default: "Incorrect" }
|
|
4061
4061
|
},
|
|
4062
4062
|
emits: [de, Te, Ce, De, _t],
|
|
4063
|
-
setup(e, { emit:
|
|
4064
|
-
const t = e, l =
|
|
4063
|
+
setup(e, { emit: i }) {
|
|
4064
|
+
const t = e, l = i, o = R(!1), s = R(!1), c = y(() => {
|
|
4065
4065
|
var U;
|
|
4066
4066
|
return (U = t.items[0]) != null ? U : null;
|
|
4067
4067
|
}), f = y(() => !t.disabled && t.items.length > 0), v = y(() => f.value && o.value), $ = y(() => {
|
|
@@ -4081,10 +4081,10 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4081
4081
|
o.value !== U && (o.value = U, l(de, U));
|
|
4082
4082
|
}
|
|
4083
4083
|
function w() {
|
|
4084
|
-
f.value && (clearTimeout(S),
|
|
4084
|
+
f.value && (clearTimeout(S), s.value || _(!0));
|
|
4085
4085
|
}
|
|
4086
4086
|
function u() {
|
|
4087
|
-
!f.value ||
|
|
4087
|
+
!f.value || s.value || (clearTimeout(S), S = setTimeout(() => _(!1), t.leaveDelay));
|
|
4088
4088
|
}
|
|
4089
4089
|
function T() {
|
|
4090
4090
|
t.teleported && w();
|
|
@@ -4093,13 +4093,13 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4093
4093
|
t.teleported && u();
|
|
4094
4094
|
}
|
|
4095
4095
|
function z() {
|
|
4096
|
-
f.value && (clearTimeout(S),
|
|
4096
|
+
f.value && (clearTimeout(S), s.value ? (s.value = !1, _(!1)) : (s.value = !0, _(!0)));
|
|
4097
4097
|
}
|
|
4098
4098
|
function X(U) {
|
|
4099
|
-
U || (
|
|
4099
|
+
U || (s.value = !1, clearTimeout(S), _(!1));
|
|
4100
4100
|
}
|
|
4101
4101
|
function Z(U) {
|
|
4102
|
-
U.key !== "Escape" || !o.value || (
|
|
4102
|
+
U.key !== "Escape" || !o.value || (s.value = !1, _(!1));
|
|
4103
4103
|
}
|
|
4104
4104
|
return Q(o, (U) => {
|
|
4105
4105
|
typeof document != "undefined" && (U ? document.addEventListener("keydown", Z) : document.removeEventListener("keydown", Z));
|
|
@@ -4108,7 +4108,7 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4108
4108
|
}), (U, q) => (a(), n("div", {
|
|
4109
4109
|
class: D(["ds-contact-cell", {
|
|
4110
4110
|
"is-open": v.value,
|
|
4111
|
-
"is-pinned":
|
|
4111
|
+
"is-pinned": s.value,
|
|
4112
4112
|
"is-empty": !c.value,
|
|
4113
4113
|
"is-disabled": e.disabled
|
|
4114
4114
|
}]),
|
|
@@ -4248,8 +4248,8 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4248
4248
|
countHint: { type: String, default: "" }
|
|
4249
4249
|
},
|
|
4250
4250
|
emits: [de],
|
|
4251
|
-
setup(e, { emit:
|
|
4252
|
-
const t = e, l =
|
|
4251
|
+
setup(e, { emit: i }) {
|
|
4252
|
+
const t = e, l = i, o = Me(), s = me(), c = me(), f = R(t.open);
|
|
4253
4253
|
Q(
|
|
4254
4254
|
() => t.open,
|
|
4255
4255
|
(m) => f.value = m
|
|
@@ -4262,7 +4262,7 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4262
4262
|
);
|
|
4263
4263
|
return (m, h) => (a(), n("section", {
|
|
4264
4264
|
class: "ds-profile-card",
|
|
4265
|
-
"aria-labelledby": d(
|
|
4265
|
+
"aria-labelledby": d(s)
|
|
4266
4266
|
}, [
|
|
4267
4267
|
r("div", Rs, [
|
|
4268
4268
|
(a(), Y(jt(e.collapsible ? "button" : "div"), Oe({
|
|
@@ -4273,7 +4273,7 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4273
4273
|
default: M(() => [
|
|
4274
4274
|
r("i", Ns, b(e.icon), 1),
|
|
4275
4275
|
r("span", {
|
|
4276
|
-
id: d(
|
|
4276
|
+
id: d(s),
|
|
4277
4277
|
class: "ds-profile-card__title"
|
|
4278
4278
|
}, b(e.title), 9, Os),
|
|
4279
4279
|
e.count !== null && !e.countHint ? (a(), n("span", Bs, b(e.count), 1)) : p("", !0),
|
|
@@ -4313,10 +4313,10 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4313
4313
|
label: { type: String, required: !0 }
|
|
4314
4314
|
},
|
|
4315
4315
|
setup(e) {
|
|
4316
|
-
return (
|
|
4316
|
+
return (i, t) => (a(), n("div", Vs, [
|
|
4317
4317
|
r("span", qs, b(e.label), 1),
|
|
4318
|
-
|
|
4319
|
-
x(
|
|
4318
|
+
i.$slots.actions ? (a(), n("span", Gs, [
|
|
4319
|
+
x(i.$slots, "actions", {}, void 0, !0)
|
|
4320
4320
|
])) : p("", !0)
|
|
4321
4321
|
]));
|
|
4322
4322
|
}
|
|
@@ -4347,8 +4347,8 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4347
4347
|
label: { type: String, default: "" }
|
|
4348
4348
|
},
|
|
4349
4349
|
setup(e) {
|
|
4350
|
-
const
|
|
4351
|
-
() =>
|
|
4350
|
+
const i = e, t = y(
|
|
4351
|
+
() => i.state === We.LOADING ? "autorenew" : Ks[i.kind]
|
|
4352
4352
|
);
|
|
4353
4353
|
return (l, o) => (a(), n("div", {
|
|
4354
4354
|
class: D(["ds-contact-placeholder", `ds-contact-placeholder--${e.state}`]),
|
|
@@ -4384,14 +4384,14 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4384
4384
|
preserveLineBreaks: { type: Boolean, default: !1 }
|
|
4385
4385
|
},
|
|
4386
4386
|
setup(e) {
|
|
4387
|
-
const
|
|
4387
|
+
const i = e, t = me(), l = R(null), o = R(!1), s = R(!1);
|
|
4388
4388
|
let c = null;
|
|
4389
|
-
const f = y(() => o.value ||
|
|
4389
|
+
const f = y(() => o.value || s.value);
|
|
4390
4390
|
function v() {
|
|
4391
4391
|
const k = l.value;
|
|
4392
|
-
!k || o.value || (
|
|
4392
|
+
!k || o.value || (s.value = k.scrollHeight > k.clientHeight + 1);
|
|
4393
4393
|
}
|
|
4394
|
-
Q(() => [
|
|
4394
|
+
Q(() => [i.text, i.lines, o.value], v, { flush: "post" }), Ae(() => {
|
|
4395
4395
|
v(), typeof ResizeObserver != "undefined" && l.value && (c = new ResizeObserver(v), c.observe(l.value));
|
|
4396
4396
|
}), re(() => c == null ? void 0 : c.disconnect());
|
|
4397
4397
|
const $ = y(() => ({
|
|
@@ -4450,8 +4450,8 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4450
4450
|
emptyLabel: { type: String, default: "" }
|
|
4451
4451
|
},
|
|
4452
4452
|
setup(e) {
|
|
4453
|
-
const
|
|
4454
|
-
return (
|
|
4453
|
+
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);
|
|
4454
|
+
return (s, c) => (a(), Y(Us, {
|
|
4455
4455
|
class: "ds-profile-company-card",
|
|
4456
4456
|
icon: "corporate_fare",
|
|
4457
4457
|
title: e.title,
|
|
@@ -4553,17 +4553,17 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4553
4553
|
alt: { type: String, default: void 0 }
|
|
4554
4554
|
},
|
|
4555
4555
|
setup(e) {
|
|
4556
|
-
const
|
|
4557
|
-
function
|
|
4556
|
+
const i = e, t = y(() => `${i.firstName} ${i.lastName}`.trim()), l = R(null), o = R(!1);
|
|
4557
|
+
function s() {
|
|
4558
4558
|
const c = l.value;
|
|
4559
4559
|
o.value = !!c && c.scrollWidth > c.clientWidth;
|
|
4560
4560
|
}
|
|
4561
4561
|
return Ae(() => {
|
|
4562
|
-
oe(
|
|
4562
|
+
oe(s);
|
|
4563
4563
|
}), Q(
|
|
4564
|
-
() =>
|
|
4564
|
+
() => i.headline,
|
|
4565
4565
|
() => {
|
|
4566
|
-
oe(
|
|
4566
|
+
oe(s);
|
|
4567
4567
|
}
|
|
4568
4568
|
), (c, f) => (a(), n("div", yr, [
|
|
4569
4569
|
G(Xa, {
|
|
@@ -4594,8 +4594,8 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4594
4594
|
ref_key: "headlineRef",
|
|
4595
4595
|
ref: l,
|
|
4596
4596
|
class: "ds-profile-hero__headline",
|
|
4597
|
-
onMouseenter:
|
|
4598
|
-
onFocus:
|
|
4597
|
+
onMouseenter: s,
|
|
4598
|
+
onFocus: s
|
|
4599
4599
|
}, b(e.headline), 545)
|
|
4600
4600
|
]),
|
|
4601
4601
|
_: 1
|
|
@@ -4637,7 +4637,7 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4637
4637
|
href: { type: String, default: "" }
|
|
4638
4638
|
},
|
|
4639
4639
|
setup(e) {
|
|
4640
|
-
return (
|
|
4640
|
+
return (i, t) => e.value ? (a(), n("div", _r, [
|
|
4641
4641
|
r("span", $r, b(e.label), 1),
|
|
4642
4642
|
e.href ? (a(), n("a", {
|
|
4643
4643
|
key: 0,
|
|
@@ -4667,16 +4667,16 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4667
4667
|
dates: { type: String, default: "" }
|
|
4668
4668
|
},
|
|
4669
4669
|
setup(e) {
|
|
4670
|
-
const
|
|
4670
|
+
const i = e, t = R(!1);
|
|
4671
4671
|
Q(
|
|
4672
|
-
() =>
|
|
4672
|
+
() => i.logo,
|
|
4673
4673
|
() => t.value = !1
|
|
4674
4674
|
);
|
|
4675
4675
|
function l() {
|
|
4676
4676
|
t.value = !0;
|
|
4677
4677
|
}
|
|
4678
|
-
const o = y(() => !!
|
|
4679
|
-
return (
|
|
4678
|
+
const o = y(() => !!i.logo && !t.value);
|
|
4679
|
+
return (s, c) => (a(), n("div", Tr, [
|
|
4680
4680
|
o.value ? (a(), n("img", {
|
|
4681
4681
|
key: 0,
|
|
4682
4682
|
class: "ds-profile-timeline-row__logo",
|
|
@@ -4702,7 +4702,7 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4702
4702
|
hint: { type: String, default: "" }
|
|
4703
4703
|
},
|
|
4704
4704
|
setup(e) {
|
|
4705
|
-
return (
|
|
4705
|
+
return (i, t) => (a(), Y(ge, {
|
|
4706
4706
|
class: "ds-profile-locked-card-tooltip",
|
|
4707
4707
|
content: e.hint,
|
|
4708
4708
|
disabled: !e.hint,
|
|
@@ -4743,37 +4743,37 @@ const Ji = ["title"], es = { "aria-hidden": "true" }, ts = {
|
|
|
4743
4743
|
WORK: "work",
|
|
4744
4744
|
DIRECT: "direct"
|
|
4745
4745
|
};
|
|
4746
|
-
function ht(e,
|
|
4747
|
-
const t =
|
|
4746
|
+
function ht(e, i) {
|
|
4747
|
+
const t = i.trim().toLowerCase();
|
|
4748
4748
|
return t ? e.filter((l) => l.name.toLowerCase().includes(t)) : [...e];
|
|
4749
4749
|
}
|
|
4750
4750
|
function pt(e) {
|
|
4751
4751
|
return e === ot.END ? qe.BOTTOM_END : qe.BOTTOM_START;
|
|
4752
4752
|
}
|
|
4753
|
-
function va(e, ...
|
|
4753
|
+
function va(e, ...i) {
|
|
4754
4754
|
const t = { ...e };
|
|
4755
|
-
for (const l of
|
|
4755
|
+
for (const l of i)
|
|
4756
4756
|
if (l)
|
|
4757
4757
|
for (const o of Object.keys(l))
|
|
4758
4758
|
l[o] !== void 0 && (t[o] = l[o]);
|
|
4759
4759
|
return t;
|
|
4760
4760
|
}
|
|
4761
4761
|
const ma = (e) => Array.isArray(e.colors) && e.colors.length > 0;
|
|
4762
|
-
function ba(e,
|
|
4763
|
-
return Object.values(he).includes(e) ? e !== he.FORM || ma(
|
|
4762
|
+
function ba(e, i) {
|
|
4763
|
+
return Object.values(he).includes(e) ? e !== he.FORM || ma(i) : !1;
|
|
4764
4764
|
}
|
|
4765
|
-
function ya(e,
|
|
4766
|
-
return typeof e == "boolean" ? !0 : Object.values(we).includes(e) ? e !== we.FORM || ma(
|
|
4765
|
+
function ya(e, i) {
|
|
4766
|
+
return typeof e == "boolean" ? !0 : Object.values(we).includes(e) ? e !== we.FORM || ma(i) : !1;
|
|
4767
4767
|
}
|
|
4768
4768
|
function ga(e) {
|
|
4769
|
-
const
|
|
4769
|
+
const i = e.colors.length > 0;
|
|
4770
4770
|
let t = e.create;
|
|
4771
|
-
t === void 0 && (!!e.aliases.createLabel || !!e.hasFooterSlot ? t =
|
|
4771
|
+
t === void 0 && (!!e.aliases.createLabel || !!e.hasFooterSlot ? t = i ? he.FORM : he.EVENT : t = he.NONE);
|
|
4772
4772
|
let l;
|
|
4773
|
-
typeof e.rowActions == "string" ? l = e.rowActions : e.rowActions === !0 ? l =
|
|
4773
|
+
typeof e.rowActions == "string" ? l = e.rowActions : e.rowActions === !0 ? l = i ? we.FORM : we.EVENT : l = we.NONE;
|
|
4774
4774
|
const o = {};
|
|
4775
|
-
for (const [
|
|
4776
|
-
const f = e.aliases[
|
|
4775
|
+
for (const [s, c] of Object.entries(e.copyMap)) {
|
|
4776
|
+
const f = e.aliases[s];
|
|
4777
4777
|
if (typeof f == "string")
|
|
4778
4778
|
for (const v of typeof c == "string" ? [c] : c) o[v] = f;
|
|
4779
4779
|
}
|
|
@@ -4803,8 +4803,8 @@ const zr = ["aria-label"], Ur = ["aria-label"], Vr = { class: "ds-organizer-form
|
|
|
4803
4803
|
originalColor: { type: String, default: void 0 }
|
|
4804
4804
|
},
|
|
4805
4805
|
emits: [Bt, Mt, xt, dt],
|
|
4806
|
-
setup(e, { expose:
|
|
4807
|
-
const l = e, o = t,
|
|
4806
|
+
setup(e, { expose: i, emit: t }) {
|
|
4807
|
+
const l = e, o = t, s = me(), c = me(), f = R(), v = [], $ = R(!1), k = y(() => l.name.trim()), m = y(
|
|
4808
4808
|
() => k.value.length > 0 && k.value.length <= l.maxNameLength
|
|
4809
4809
|
), h = y(() => {
|
|
4810
4810
|
var q;
|
|
@@ -4840,7 +4840,7 @@ const zr = ["aria-label"], Ur = ["aria-label"], Vr = { class: "ds-organizer-form
|
|
|
4840
4840
|
var q;
|
|
4841
4841
|
return (q = f.value) == null ? void 0 : q.focus();
|
|
4842
4842
|
};
|
|
4843
|
-
return Ae(U),
|
|
4843
|
+
return Ae(U), i({ focus: U }), (q, E) => (a(), n("div", {
|
|
4844
4844
|
class: "ds-organizer-form",
|
|
4845
4845
|
role: "group",
|
|
4846
4846
|
"aria-label": e.title
|
|
@@ -4860,7 +4860,7 @@ const zr = ["aria-label"], Ur = ["aria-label"], Vr = { class: "ds-organizer-form
|
|
|
4860
4860
|
E[2] || (E[2] = r("div", { class: "ds-organizer-form__divider" }, null, -1)),
|
|
4861
4861
|
r("div", qr, [
|
|
4862
4862
|
G(d(nt), {
|
|
4863
|
-
id: d(
|
|
4863
|
+
id: d(s),
|
|
4864
4864
|
ref_key: "inputRef",
|
|
4865
4865
|
ref: f,
|
|
4866
4866
|
"model-value": e.name,
|
|
@@ -4927,10 +4927,10 @@ const zr = ["aria-label"], Ur = ["aria-label"], Vr = { class: "ds-organizer-form
|
|
|
4927
4927
|
showEdit: { type: Boolean, default: !0 }
|
|
4928
4928
|
},
|
|
4929
4929
|
emits: [Be, Ue],
|
|
4930
|
-
setup(e, { emit:
|
|
4931
|
-
const t = e, l =
|
|
4930
|
+
setup(e, { emit: i }) {
|
|
4931
|
+
const t = e, l = i, o = /* @__PURE__ */ Symbol("ds-picker-row-actions"), s = R(!1), c = R(null), f = R(null);
|
|
4932
4932
|
function v(S) {
|
|
4933
|
-
|
|
4933
|
+
s.value !== S && (s.value = S, S ? Fe.value = o : Fe.value === o && (Fe.value = null));
|
|
4934
4934
|
}
|
|
4935
4935
|
Q(Fe, (S) => {
|
|
4936
4936
|
S !== o && v(!1);
|
|
@@ -4939,7 +4939,7 @@ const zr = ["aria-label"], Ur = ["aria-label"], Vr = { class: "ds-organizer-form
|
|
|
4939
4939
|
onClose: h
|
|
4940
4940
|
});
|
|
4941
4941
|
Q(
|
|
4942
|
-
|
|
4942
|
+
s,
|
|
4943
4943
|
(S) => {
|
|
4944
4944
|
S && $();
|
|
4945
4945
|
},
|
|
@@ -4961,7 +4961,7 @@ const zr = ["aria-label"], Ur = ["aria-label"], Vr = { class: "ds-organizer-form
|
|
|
4961
4961
|
Fe.value === o && (Fe.value = null);
|
|
4962
4962
|
}), (S, _) => (a(), Y(d(He), {
|
|
4963
4963
|
class: "ds-picker-row-actions",
|
|
4964
|
-
open:
|
|
4964
|
+
open: s.value,
|
|
4965
4965
|
placement: d(qe).BOTTOM_END,
|
|
4966
4966
|
width: "150px",
|
|
4967
4967
|
teleported: "",
|
|
@@ -4975,7 +4975,7 @@ const zr = ["aria-label"], Ur = ["aria-label"], Vr = { class: "ds-organizer-form
|
|
|
4975
4975
|
class: "ds-picker-row-actions__trigger",
|
|
4976
4976
|
"aria-label": e.actionsLabel,
|
|
4977
4977
|
"aria-haspopup": "menu",
|
|
4978
|
-
"aria-expanded":
|
|
4978
|
+
"aria-expanded": s.value
|
|
4979
4979
|
}, [..._[3] || (_[3] = [
|
|
4980
4980
|
r("i", {
|
|
4981
4981
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
@@ -5027,7 +5027,7 @@ const zr = ["aria-label"], Ur = ["aria-label"], Vr = { class: "ds-organizer-form
|
|
|
5027
5027
|
}
|
|
5028
5028
|
}), pa = /* @__PURE__ */ F(ed, [["__scopeId", "data-v-dc883564"]]);
|
|
5029
5029
|
function ka(e) {
|
|
5030
|
-
const
|
|
5030
|
+
const i = R("list"), t = R("create"), l = R(null), o = R(""), s = R(""), c = R(""), f = y(() => i.value === "form"), v = () => {
|
|
5031
5031
|
var u;
|
|
5032
5032
|
return (u = e.colors()[0]) != null ? u : "";
|
|
5033
5033
|
}, $ = y(() => {
|
|
@@ -5038,14 +5038,14 @@ function ka(e) {
|
|
|
5038
5038
|
return (T = (u = l.value) == null ? void 0 : u.color) != null ? T : v();
|
|
5039
5039
|
});
|
|
5040
5040
|
function m() {
|
|
5041
|
-
|
|
5041
|
+
i.value === "form" && (c.value = e.formError(), e.emit(gt)), i.value = "list", t.value = "create", l.value = null, o.value = "", s.value = "";
|
|
5042
5042
|
}
|
|
5043
5043
|
function h(u = "") {
|
|
5044
|
-
t.value = "create", l.value = null, o.value = u,
|
|
5044
|
+
t.value = "create", l.value = null, o.value = u, s.value = v(), i.value = "form";
|
|
5045
5045
|
}
|
|
5046
5046
|
function g(u) {
|
|
5047
5047
|
var T;
|
|
5048
|
-
e.emit(Be, u), e.rowActions() === we.FORM && (t.value = "edit", l.value = u, o.value = u.name,
|
|
5048
|
+
e.emit(Be, u), e.rowActions() === we.FORM && (t.value = "edit", l.value = u, o.value = u.name, s.value = (T = u.color) != null ? T : v(), i.value = "form");
|
|
5049
5049
|
}
|
|
5050
5050
|
function S(u) {
|
|
5051
5051
|
e.emit(Ue, u);
|
|
@@ -5057,11 +5057,11 @@ function ka(e) {
|
|
|
5057
5057
|
m(), oe(e.focusSearch);
|
|
5058
5058
|
}
|
|
5059
5059
|
return {
|
|
5060
|
-
view:
|
|
5060
|
+
view: i,
|
|
5061
5061
|
mode: t,
|
|
5062
5062
|
editing: l,
|
|
5063
5063
|
formName: o,
|
|
5064
|
-
formColor:
|
|
5064
|
+
formColor: s,
|
|
5065
5065
|
isForm: f,
|
|
5066
5066
|
shownFormError: $,
|
|
5067
5067
|
editingColor: k,
|
|
@@ -5134,12 +5134,13 @@ const td = {
|
|
|
5134
5134
|
create: {
|
|
5135
5135
|
type: String,
|
|
5136
5136
|
default: void 0,
|
|
5137
|
-
validator
|
|
5137
|
+
// Inline so the published types don't reference the unexported validator.
|
|
5138
|
+
validator: (e, i) => ba(e, i)
|
|
5138
5139
|
},
|
|
5139
5140
|
rowActions: {
|
|
5140
5141
|
type: [Boolean, String],
|
|
5141
5142
|
default: void 0,
|
|
5142
|
-
validator: ya
|
|
5143
|
+
validator: (e, i) => ya(e, i)
|
|
5143
5144
|
},
|
|
5144
5145
|
// Only the swatches of the in-panel form; the modes above decide what opens it.
|
|
5145
5146
|
colors: { type: Array, default: () => [] },
|
|
@@ -5175,8 +5176,8 @@ const td = {
|
|
|
5175
5176
|
yt,
|
|
5176
5177
|
gt
|
|
5177
5178
|
],
|
|
5178
|
-
setup(e, { expose:
|
|
5179
|
-
const l = e, o = t,
|
|
5179
|
+
setup(e, { expose: i, emit: t }) {
|
|
5180
|
+
const l = e, o = t, s = R(!1), c = R(""), f = R(null), v = y(
|
|
5180
5181
|
() => ga({
|
|
5181
5182
|
create: l.create,
|
|
5182
5183
|
rowActions: l.rowActions,
|
|
@@ -5216,10 +5217,10 @@ const td = {
|
|
|
5216
5217
|
return l.folder !== null && l.folder.id === te.id;
|
|
5217
5218
|
}
|
|
5218
5219
|
function J(te) {
|
|
5219
|
-
|
|
5220
|
+
s.value !== te && (te && (c.value = ""), O(), s.value = te, o(de, te));
|
|
5220
5221
|
}
|
|
5221
5222
|
function ne() {
|
|
5222
|
-
l.disabled || J(!
|
|
5223
|
+
l.disabled || J(!s.value);
|
|
5223
5224
|
}
|
|
5224
5225
|
function fe(te) {
|
|
5225
5226
|
o(Rt, te), J(!1);
|
|
@@ -5234,16 +5235,16 @@ const td = {
|
|
|
5234
5235
|
}
|
|
5235
5236
|
o(at, c.value.trim()), J(!1);
|
|
5236
5237
|
}
|
|
5237
|
-
return
|
|
5238
|
+
return i({ closeForm: q }), Q(s, (te) => {
|
|
5238
5239
|
te && oe(() => {
|
|
5239
5240
|
var le;
|
|
5240
5241
|
return (le = f.value) == null ? void 0 : le.focus();
|
|
5241
5242
|
});
|
|
5242
5243
|
}), Q(c, (te) => o(_e, te)), (te, le) => (a(), n("div", {
|
|
5243
|
-
class: D(["ds-saved-button", [`ds-saved-button--${e.size}`, { "is-open":
|
|
5244
|
+
class: D(["ds-saved-button", [`ds-saved-button--${e.size}`, { "is-open": s.value, "is-disabled": e.disabled }]])
|
|
5244
5245
|
}, [
|
|
5245
5246
|
G(d(He), {
|
|
5246
|
-
open:
|
|
5247
|
+
open: s.value,
|
|
5247
5248
|
placement: I.value,
|
|
5248
5249
|
width: "300px",
|
|
5249
5250
|
"grow-to": d(w) ? "" : d(fa),
|
|
@@ -5255,7 +5256,7 @@ const td = {
|
|
|
5255
5256
|
trigger: M(() => [
|
|
5256
5257
|
G(d(ge), {
|
|
5257
5258
|
content: e.tooltip,
|
|
5258
|
-
disabled: !e.tooltip ||
|
|
5259
|
+
disabled: !e.tooltip || s.value,
|
|
5259
5260
|
placement: e.tooltipPlacement,
|
|
5260
5261
|
teleported: ""
|
|
5261
5262
|
}, {
|
|
@@ -5267,7 +5268,7 @@ const td = {
|
|
|
5267
5268
|
pill: e.pill,
|
|
5268
5269
|
disabled: e.disabled,
|
|
5269
5270
|
"aria-haspopup": "listbox",
|
|
5270
|
-
"aria-expanded":
|
|
5271
|
+
"aria-expanded": s.value,
|
|
5271
5272
|
onClick: ne
|
|
5272
5273
|
}, mt({
|
|
5273
5274
|
trailing: M(() => [
|
|
@@ -5395,7 +5396,7 @@ const td = {
|
|
|
5395
5396
|
}, 8, ["open", "placement", "grow-to", "flush", "teleported"])
|
|
5396
5397
|
], 2));
|
|
5397
5398
|
}
|
|
5398
|
-
}), ic = /* @__PURE__ */ F(dd, [["__scopeId", "data-v-
|
|
5399
|
+
}), ic = /* @__PURE__ */ F(dd, [["__scopeId", "data-v-ffa33fdd"]]), cd = {
|
|
5399
5400
|
taggedAs: "Tagged as",
|
|
5400
5401
|
apply: "Apply",
|
|
5401
5402
|
searchPlaceholder: "Search tags",
|
|
@@ -5455,12 +5456,13 @@ const td = {
|
|
|
5455
5456
|
create: {
|
|
5456
5457
|
type: String,
|
|
5457
5458
|
default: void 0,
|
|
5458
|
-
validator
|
|
5459
|
+
// Inline so the published types don't reference the unexported validator.
|
|
5460
|
+
validator: (e, i) => ba(e, i)
|
|
5459
5461
|
},
|
|
5460
5462
|
rowActions: {
|
|
5461
5463
|
type: [Boolean, String],
|
|
5462
5464
|
default: void 0,
|
|
5463
|
-
validator: ya
|
|
5465
|
+
validator: (e, i) => ya(e, i)
|
|
5464
5466
|
},
|
|
5465
5467
|
// Only the swatches of the in-panel form; the modes above decide what opens it.
|
|
5466
5468
|
colors: { type: Array, default: () => [] },
|
|
@@ -5499,8 +5501,8 @@ const td = {
|
|
|
5499
5501
|
yt,
|
|
5500
5502
|
gt
|
|
5501
5503
|
],
|
|
5502
|
-
setup(e, { expose:
|
|
5503
|
-
const l = e, o = t,
|
|
5504
|
+
setup(e, { expose: i, emit: t }) {
|
|
5505
|
+
const l = e, o = t, s = R(!1), c = R(""), f = R(/* @__PURE__ */ new Set()), v = R(null), $ = y(
|
|
5504
5506
|
() => ga({
|
|
5505
5507
|
create: l.create,
|
|
5506
5508
|
rowActions: l.rowActions,
|
|
@@ -5543,10 +5545,10 @@ const td = {
|
|
|
5543
5545
|
() => l.size === Ge.LARGE ? ue.LARGE : ue.MEDIUM
|
|
5544
5546
|
);
|
|
5545
5547
|
function ke(V) {
|
|
5546
|
-
|
|
5548
|
+
s.value !== V && (V && (c.value = "", f.value = new Set(l.tags.map((B) => B.id))), z(), s.value = V, o(de, V));
|
|
5547
5549
|
}
|
|
5548
5550
|
function te() {
|
|
5549
|
-
l.disabled || ke(!
|
|
5551
|
+
l.disabled || ke(!s.value);
|
|
5550
5552
|
}
|
|
5551
5553
|
const le = R(null), ie = R(!1);
|
|
5552
5554
|
function Re() {
|
|
@@ -5575,7 +5577,7 @@ const td = {
|
|
|
5575
5577
|
function H() {
|
|
5576
5578
|
k.value === he.FORM ? A() : o(at, ne.value);
|
|
5577
5579
|
}
|
|
5578
|
-
return
|
|
5580
|
+
return i({ closeForm: E }), Q(s, (V) => {
|
|
5579
5581
|
V && oe(() => {
|
|
5580
5582
|
var B;
|
|
5581
5583
|
return (B = v.value) == null ? void 0 : B.focus();
|
|
@@ -5583,11 +5585,11 @@ const td = {
|
|
|
5583
5585
|
}), Q(c, (V) => o(_e, V)), (V, B) => (a(), n("div", {
|
|
5584
5586
|
class: D(["ds-tag-picker", [
|
|
5585
5587
|
`ds-tag-picker--${e.size}`,
|
|
5586
|
-
{ "is-open":
|
|
5588
|
+
{ "is-open": s.value, "is-disabled": e.disabled, "has-tags": L.value }
|
|
5587
5589
|
]])
|
|
5588
5590
|
}, [
|
|
5589
5591
|
G(d(He), {
|
|
5590
|
-
open:
|
|
5592
|
+
open: s.value,
|
|
5591
5593
|
placement: N.value,
|
|
5592
5594
|
width: "240px",
|
|
5593
5595
|
"grow-to": d(u) ? "" : d(fa),
|
|
@@ -5598,7 +5600,7 @@ const td = {
|
|
|
5598
5600
|
trigger: M(() => [
|
|
5599
5601
|
G(d(ge), {
|
|
5600
5602
|
content: C.value,
|
|
5601
|
-
disabled: !ie.value ||
|
|
5603
|
+
disabled: !ie.value || s.value,
|
|
5602
5604
|
placement: "bottom",
|
|
5603
5605
|
teleported: ""
|
|
5604
5606
|
}, {
|
|
@@ -5610,7 +5612,7 @@ const td = {
|
|
|
5610
5612
|
pill: e.pill,
|
|
5611
5613
|
disabled: e.disabled,
|
|
5612
5614
|
"aria-haspopup": "dialog",
|
|
5613
|
-
"aria-expanded":
|
|
5615
|
+
"aria-expanded": s.value,
|
|
5614
5616
|
onClick: te,
|
|
5615
5617
|
onMouseenter: Re,
|
|
5616
5618
|
onFocus: Re
|
|
@@ -5769,7 +5771,7 @@ const td = {
|
|
|
5769
5771
|
}, 8, ["open", "placement", "grow-to", "flush"])
|
|
5770
5772
|
], 2));
|
|
5771
5773
|
}
|
|
5772
|
-
}), sc = /* @__PURE__ */ F(gd, [["__scopeId", "data-v-
|
|
5774
|
+
}), sc = /* @__PURE__ */ F(gd, [["__scopeId", "data-v-da4a36a8"]]), Yt = {
|
|
5773
5775
|
SECONDARY: "secondary",
|
|
5774
5776
|
PRIMARY: "primary"
|
|
5775
5777
|
}, hd = { class: "ds-add-to-sequence__label" }, pd = { class: "ds-add-to-sequence__menu" }, kd = { class: "ds-add-to-sequence__section" }, Sd = ["aria-label"], _d = {
|
|
@@ -5805,14 +5807,14 @@ const td = {
|
|
|
5805
5807
|
disabled: { type: Boolean, default: !1 }
|
|
5806
5808
|
},
|
|
5807
5809
|
emits: [Ot, _e, de],
|
|
5808
|
-
setup(e, { emit:
|
|
5809
|
-
const t = e, l =
|
|
5810
|
+
setup(e, { emit: i }) {
|
|
5811
|
+
const t = e, l = i, o = R(!1), s = R(""), c = R(null), f = R(t.defaultChannel), v = R(/* @__PURE__ */ new Set()), $ = me(), k = y(() => pt(t.align)), m = y(() => ht(t.campaigns, s.value)), h = y(
|
|
5810
5812
|
() => t.variant === Yt.PRIMARY ? ce.PRIMARY : ce.OUTLINE
|
|
5811
5813
|
), g = y(
|
|
5812
5814
|
() => t.size === Ge.LARGE ? ue.LARGE : ue.MEDIUM
|
|
5813
5815
|
);
|
|
5814
5816
|
function S(T) {
|
|
5815
|
-
o.value !== T && (T && (
|
|
5817
|
+
o.value !== T && (T && (s.value = ""), o.value = T, l(de, T));
|
|
5816
5818
|
}
|
|
5817
5819
|
function _() {
|
|
5818
5820
|
t.disabled || S(!o.value);
|
|
@@ -5834,7 +5836,7 @@ const td = {
|
|
|
5834
5836
|
var O;
|
|
5835
5837
|
return (O = c.value) == null ? void 0 : O.focus();
|
|
5836
5838
|
});
|
|
5837
|
-
}), Q(
|
|
5839
|
+
}), Q(s, (T) => l(_e, T)), (T, O) => (a(), n("div", {
|
|
5838
5840
|
class: D(["ds-add-to-sequence", [
|
|
5839
5841
|
`ds-add-to-sequence--${e.variant}`,
|
|
5840
5842
|
`ds-add-to-sequence--${e.size}`,
|
|
@@ -5908,8 +5910,8 @@ const td = {
|
|
|
5908
5910
|
G(d(nt), {
|
|
5909
5911
|
ref_key: "searchRef",
|
|
5910
5912
|
ref: c,
|
|
5911
|
-
modelValue:
|
|
5912
|
-
"onUpdate:modelValue": O[0] || (O[0] = (z) =>
|
|
5913
|
+
modelValue: s.value,
|
|
5914
|
+
"onUpdate:modelValue": O[0] || (O[0] = (z) => s.value = z),
|
|
5913
5915
|
class: "ds-add-to-sequence__search",
|
|
5914
5916
|
type: "search",
|
|
5915
5917
|
size: "sm",
|