@dialpad/dialtone-vue 3.70.0 → 3.72.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/CHANGELOG.json +1 -1
- package/CHANGELOG.md +33 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +7 -7
- package/dist/dialtone-vue.js +919 -854
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +49 -47
- package/dist/{emoji_text_wrapper-0b655103.cjs → emoji_text_wrapper-0681c5eb.cjs} +6 -6
- package/dist/{emoji_text_wrapper-a6cf0407.js → emoji_text_wrapper-2d0e6363.js} +5986 -5925
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/dialtone-vue.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { openBlock as a, createElementBlock as l, toDisplayString as I, createCommentVNode as p, createElementVNode as _, normalizeClass as y, warn as we, resolveComponent as f, renderSlot as d, createBlock as S, mergeProps as C, createVNode as m, createTextVNode as P, withKeys as
|
|
2
|
-
import { _ as v, D as x, g as q, a as
|
|
3
|
-
import {
|
|
1
|
+
import { openBlock as a, createElementBlock as l, toDisplayString as I, createCommentVNode as p, createElementVNode as _, normalizeClass as y, warn as we, resolveComponent as f, renderSlot as d, createBlock as S, mergeProps as C, createVNode as m, createTextVNode as P, withKeys as F, withModifiers as U, withCtx as c, normalizeStyle as re, Fragment as Y, renderList as ee, resolveDynamicComponent as X, toHandlers as M, createSlots as Ee, normalizeProps as ke, Transition as Ze, withDirectives as Se, guardReactiveProps as Ye, vShow as Ce, Teleport as Wt, reactive as Lt, ref as pe, computed as Re, watch as Zt, onMounted as ws, nextTick as Es, unref as Yt, markRaw as ks, shallowReactive as Os, h as Ls, provide as Ts, createStaticVNode as As } from "vue";
|
|
2
|
+
import { _ as v, D as x, g as q, a as Ds, h as $, b as K, u as J, L as Ps, c as xs, I as Rs, M as Bs, d as $s, e as $e, f as Qe, T as Ns, i as zs, j as Ms, k as Hs, E as H, l as me, v as Qt, m as Tt, n as We, o as Xt, C as Jt, G as es, p as Xe, q as Fs, r as Vs, s as qs, t as Je, w as et, x as tt, y as Ks } from "./emoji_text_wrapper-2d0e6363.js";
|
|
3
|
+
import { A as Bd, z as $d, Y as Nd, a0 as zd, $ as Md, Z as Hd, K as Fd, J as Vd, a6 as qd, H as Kd, F as jd, a5 as Gd, a1 as Ud, a2 as Wd, a4 as Zd, a3 as Yd, Q as Qd, P as Xd, N as Jd, O as ec, S as tc, R as sc, X as ic, U as nc, W as ac, V as oc, B as lc } from "./emoji_text_wrapper-2d0e6363.js";
|
|
4
4
|
const be = {
|
|
5
5
|
BUSY: "busy",
|
|
6
6
|
AWAY: "away",
|
|
7
7
|
OFFLINE: "offline",
|
|
8
8
|
ACTIVE: "active"
|
|
9
|
-
},
|
|
9
|
+
}, js = [
|
|
10
10
|
be.BUSY,
|
|
11
11
|
be.AWAY,
|
|
12
12
|
be.OFFLINE,
|
|
13
13
|
be.ACTIVE
|
|
14
|
-
],
|
|
14
|
+
], Gs = {
|
|
15
15
|
name: "DtPresence",
|
|
16
16
|
props: {
|
|
17
17
|
/**
|
|
@@ -22,7 +22,7 @@ const be = {
|
|
|
22
22
|
presence: {
|
|
23
23
|
type: String,
|
|
24
24
|
default: be.ACTIVE,
|
|
25
|
-
validator: (e) =>
|
|
25
|
+
validator: (e) => js.includes(e)
|
|
26
26
|
},
|
|
27
27
|
/**
|
|
28
28
|
* Since Presence is a visual element, we need SRs to read out any state changes
|
|
@@ -34,19 +34,19 @@ const be = {
|
|
|
34
34
|
default: null
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, Us = ["aria-live"], Ws = {
|
|
38
38
|
key: 0,
|
|
39
39
|
"data-qa": "dt-presence-sr-text",
|
|
40
40
|
class: "sr-only"
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function Zs(e, s, t, o, n, i) {
|
|
43
43
|
return a(), l("div", {
|
|
44
44
|
class: "d-presence",
|
|
45
45
|
"data-qa": "dt-presence",
|
|
46
46
|
role: "status",
|
|
47
47
|
"aria-live": e.$attrs.ariaLive || "off"
|
|
48
48
|
}, [
|
|
49
|
-
t.srText ? (a(), l("span",
|
|
49
|
+
t.srText ? (a(), l("span", Ws, I(t.srText), 1)) : p("", !0),
|
|
50
50
|
_("div", {
|
|
51
51
|
class: y(["d-presence__inner", {
|
|
52
52
|
"d-presence__inner--active": t.presence === "active",
|
|
@@ -55,34 +55,34 @@ function Gs(e, s, t, o, n, i) {
|
|
|
55
55
|
"d-presence__inner--offline": t.presence === "offline"
|
|
56
56
|
}])
|
|
57
57
|
}, null, 2)
|
|
58
|
-
], 8,
|
|
58
|
+
], 8, Us);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const Ys = /* @__PURE__ */ v(Gs, [["render", Zs]]), Ke = {
|
|
61
61
|
xs: "d-avatar--xs",
|
|
62
62
|
sm: "d-avatar--sm",
|
|
63
63
|
md: "d-avatar--md",
|
|
64
64
|
lg: "d-avatar--lg",
|
|
65
65
|
xl: "d-avatar--xl"
|
|
66
|
-
},
|
|
66
|
+
}, At = {
|
|
67
67
|
default: "",
|
|
68
68
|
icon: "d-avatar__icon",
|
|
69
69
|
initials: "d-avatar__initials"
|
|
70
|
-
},
|
|
70
|
+
}, Qs = {
|
|
71
71
|
md: "d-avatar__presence--md",
|
|
72
72
|
lg: "d-avatar__presence--lg"
|
|
73
|
-
},
|
|
73
|
+
}, Dt = {
|
|
74
74
|
NONE: "",
|
|
75
75
|
BUSY: "busy",
|
|
76
76
|
AWAY: "away",
|
|
77
77
|
OFFLINE: "offline",
|
|
78
78
|
ACTIVE: "active"
|
|
79
|
-
},
|
|
79
|
+
}, Ur = {
|
|
80
80
|
xs: void 0,
|
|
81
81
|
sm: "200",
|
|
82
82
|
md: "300",
|
|
83
83
|
lg: "500",
|
|
84
84
|
xl: "600"
|
|
85
|
-
},
|
|
85
|
+
}, Xs = [
|
|
86
86
|
void 0,
|
|
87
87
|
"100",
|
|
88
88
|
"200",
|
|
@@ -102,10 +102,10 @@ const Us = /* @__PURE__ */ v(qs, [["render", Gs]]), Ke = {
|
|
|
102
102
|
"1600",
|
|
103
103
|
"1700",
|
|
104
104
|
"1800"
|
|
105
|
-
],
|
|
106
|
-
const
|
|
105
|
+
], Pt = (e) => e > 1;
|
|
106
|
+
const Js = {
|
|
107
107
|
name: "DtAvatar",
|
|
108
|
-
components: { DtPresence:
|
|
108
|
+
components: { DtPresence: Ys, DtIcon: x },
|
|
109
109
|
inheritAttrs: !1,
|
|
110
110
|
props: {
|
|
111
111
|
/**
|
|
@@ -164,8 +164,8 @@ const Ys = {
|
|
|
164
164
|
*/
|
|
165
165
|
presence: {
|
|
166
166
|
type: String,
|
|
167
|
-
default:
|
|
168
|
-
validator: (e) => Object.values(
|
|
167
|
+
default: Dt.NONE,
|
|
168
|
+
validator: (e) => Object.values(Dt).includes(e)
|
|
169
169
|
},
|
|
170
170
|
/**
|
|
171
171
|
* A set of props to be passed into the presence component.
|
|
@@ -189,7 +189,7 @@ const Ys = {
|
|
|
189
189
|
group: {
|
|
190
190
|
type: Number,
|
|
191
191
|
default: void 0,
|
|
192
|
-
validator: (e) =>
|
|
192
|
+
validator: (e) => Pt(e)
|
|
193
193
|
},
|
|
194
194
|
/**
|
|
195
195
|
* The icon that overlays the avatar
|
|
@@ -218,8 +218,8 @@ const Ys = {
|
|
|
218
218
|
// initials, image or icon
|
|
219
219
|
kind: null,
|
|
220
220
|
AVATAR_SIZE_MODIFIERS: Ke,
|
|
221
|
-
AVATAR_KIND_MODIFIERS:
|
|
222
|
-
AVATAR_PRESENCE_SIZE_MODIFIERS:
|
|
221
|
+
AVATAR_KIND_MODIFIERS: At,
|
|
222
|
+
AVATAR_PRESENCE_SIZE_MODIFIERS: Qs,
|
|
223
223
|
imageLoadedSuccessfully: null,
|
|
224
224
|
slottedInitials: "",
|
|
225
225
|
formattedInitials: "",
|
|
@@ -251,7 +251,7 @@ const Ys = {
|
|
|
251
251
|
return this.kind === "initials" || this.kind === "image" && this.initials && this.imageLoadedSuccessfully !== !0;
|
|
252
252
|
},
|
|
253
253
|
showGroup() {
|
|
254
|
-
return
|
|
254
|
+
return Pt(this.group);
|
|
255
255
|
},
|
|
256
256
|
formattedGroup() {
|
|
257
257
|
return this.group > 99 ? "99+" : this.group;
|
|
@@ -282,7 +282,7 @@ const Ys = {
|
|
|
282
282
|
e.classList.add("d-avatar__image"), this.validateImageAttrsPresence(), this.setImageListeners(e);
|
|
283
283
|
break;
|
|
284
284
|
case "icon":
|
|
285
|
-
e.classList.add(
|
|
285
|
+
e.classList.add(At.icon);
|
|
286
286
|
break;
|
|
287
287
|
case "initials":
|
|
288
288
|
if (!e.textContent)
|
|
@@ -317,7 +317,7 @@ const Ys = {
|
|
|
317
317
|
return ((s = e == null ? void 0 : e.tagName) == null ? void 0 : s.toUpperCase()) === "IMG";
|
|
318
318
|
},
|
|
319
319
|
getColor() {
|
|
320
|
-
return this.color ??
|
|
320
|
+
return this.color ?? Ds(Xs, this.seed);
|
|
321
321
|
},
|
|
322
322
|
validateImageAttrsPresence() {
|
|
323
323
|
const e = !this.$refs.canvas.children[0].getAttribute("src"), s = this.$refs.canvas.children[0].getAttribute("alt") === null;
|
|
@@ -330,15 +330,15 @@ const Ys = {
|
|
|
330
330
|
this.imageLoadedSuccessfully = !1, e.classList.remove("d-avatar--image-loaded"), e.classList.add("d-d-none");
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
},
|
|
333
|
+
}, ei = ["id"], ti = {
|
|
334
334
|
key: 1,
|
|
335
335
|
class: "d-fs-200 d-fw-bold d-fc-white d-w100p d-ta-center"
|
|
336
|
-
},
|
|
336
|
+
}, si = {
|
|
337
337
|
key: 1,
|
|
338
338
|
class: "d-avatar__count d-zi-base",
|
|
339
339
|
"data-qa": "dt-avatar-count"
|
|
340
340
|
};
|
|
341
|
-
function
|
|
341
|
+
function ii(e, s, t, o, n, i) {
|
|
342
342
|
const r = f("dt-icon"), h = f("dt-presence");
|
|
343
343
|
return a(), l("div", {
|
|
344
344
|
id: t.id,
|
|
@@ -363,9 +363,9 @@ function ei(e, s, t, o, n, i) {
|
|
|
363
363
|
key: 0,
|
|
364
364
|
class: "d-fc-white d-w100p",
|
|
365
365
|
name: t.overlayIcon
|
|
366
|
-
}, null, 8, ["name"])) : t.overlayText ? (a(), l("p",
|
|
366
|
+
}, null, 8, ["name"])) : t.overlayText ? (a(), l("p", ti, I(t.overlayText), 1)) : p("", !0)
|
|
367
367
|
], 2)) : p("", !0),
|
|
368
|
-
i.showGroup ? (a(), l("span",
|
|
368
|
+
i.showGroup ? (a(), l("span", si, I(i.formattedGroup), 1)) : p("", !0),
|
|
369
369
|
t.presence && !i.showGroup ? (a(), S(h, C({
|
|
370
370
|
key: 2,
|
|
371
371
|
presence: t.presence,
|
|
@@ -374,9 +374,9 @@ function ei(e, s, t, o, n, i) {
|
|
|
374
374
|
n.AVATAR_PRESENCE_SIZE_MODIFIERS[t.size]
|
|
375
375
|
]]
|
|
376
376
|
}, t.presenceProps, { "data-qa": "dt-presence" }), null, 16, ["presence", "class"])) : p("", !0)
|
|
377
|
-
], 10,
|
|
377
|
+
], 10, ei);
|
|
378
378
|
}
|
|
379
|
-
const
|
|
379
|
+
const st = /* @__PURE__ */ v(Js, [["render", ii]]), xt = {
|
|
380
380
|
default: "",
|
|
381
381
|
info: "d-badge--info",
|
|
382
382
|
success: "d-badge--success",
|
|
@@ -384,10 +384,10 @@ const Je = /* @__PURE__ */ v(Ys, [["render", ei]]), At = {
|
|
|
384
384
|
critical: "d-badge--critical",
|
|
385
385
|
bulletin: "d-badge--bulletin",
|
|
386
386
|
ai: "d-badge--ai"
|
|
387
|
-
},
|
|
387
|
+
}, Rt = {
|
|
388
388
|
label: "",
|
|
389
389
|
count: "d-badge--count"
|
|
390
|
-
},
|
|
390
|
+
}, Bt = {
|
|
391
391
|
"black-400": "d-badge--decorate-black-400",
|
|
392
392
|
"black-500": "d-badge--decorate-black-500",
|
|
393
393
|
"black-900": "d-badge--decorate-black-900",
|
|
@@ -410,7 +410,7 @@ const Je = /* @__PURE__ */ v(Ys, [["render", ei]]), At = {
|
|
|
410
410
|
"magenta-200": "d-badge--decorate-magenta-200",
|
|
411
411
|
"magenta-300": "d-badge--decorate-magenta-300",
|
|
412
412
|
"magenta-400": "d-badge--decorate-magenta-400"
|
|
413
|
-
},
|
|
413
|
+
}, ni = {
|
|
414
414
|
name: "DtBadge",
|
|
415
415
|
components: {
|
|
416
416
|
DtIcon: x
|
|
@@ -447,7 +447,7 @@ const Je = /* @__PURE__ */ v(Ys, [["render", ei]]), At = {
|
|
|
447
447
|
kind: {
|
|
448
448
|
type: String,
|
|
449
449
|
default: "label",
|
|
450
|
-
validator: (e) => Object.keys(
|
|
450
|
+
validator: (e) => Object.keys(Rt).includes(e)
|
|
451
451
|
},
|
|
452
452
|
/**
|
|
453
453
|
* Color for the badge background
|
|
@@ -456,7 +456,7 @@ const Je = /* @__PURE__ */ v(Ys, [["render", ei]]), At = {
|
|
|
456
456
|
type: {
|
|
457
457
|
type: String,
|
|
458
458
|
default: "default",
|
|
459
|
-
validator: (e) => Object.keys(
|
|
459
|
+
validator: (e) => Object.keys(xt).includes(e)
|
|
460
460
|
},
|
|
461
461
|
/**
|
|
462
462
|
* Decoration for the badge. This can be only used with kind: label and type: default
|
|
@@ -468,14 +468,14 @@ const Je = /* @__PURE__ */ v(Ys, [["render", ei]]), At = {
|
|
|
468
468
|
decoration: {
|
|
469
469
|
type: String,
|
|
470
470
|
default: void 0,
|
|
471
|
-
validator: (e) => Object.keys(
|
|
471
|
+
validator: (e) => Object.keys(Bt).includes(e)
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
474
|
data() {
|
|
475
475
|
return {
|
|
476
|
-
BADGE_TYPE_MODIFIERS:
|
|
477
|
-
BADGE_KIND_MODIFIERS:
|
|
478
|
-
BADGE_DECORATION_MODIFIERS:
|
|
476
|
+
BADGE_TYPE_MODIFIERS: xt,
|
|
477
|
+
BADGE_KIND_MODIFIERS: Rt,
|
|
478
|
+
BADGE_DECORATION_MODIFIERS: Bt
|
|
479
479
|
};
|
|
480
480
|
},
|
|
481
481
|
computed: {
|
|
@@ -503,17 +503,17 @@ const Je = /* @__PURE__ */ v(Ys, [["render", ei]]), At = {
|
|
|
503
503
|
this.decoration && ((this.kind !== "label" || this.type !== "default") && console.error("DtBadge error: decoration prop can only be used with kind: 'label' and type: 'default'."), this.hasIcons && console.error("DtBadge error: decoration prop cannot be used with iconLeft or iconRight."));
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
},
|
|
506
|
+
}, ai = {
|
|
507
507
|
key: 0,
|
|
508
508
|
class: "d-badge__decorative"
|
|
509
|
-
},
|
|
509
|
+
}, oi = {
|
|
510
510
|
key: 1,
|
|
511
511
|
class: "d-badge__icon-left"
|
|
512
|
-
},
|
|
512
|
+
}, li = { class: "d-badge__label" }, ri = {
|
|
513
513
|
key: 2,
|
|
514
514
|
class: "d-badge__icon-right"
|
|
515
515
|
};
|
|
516
|
-
function
|
|
516
|
+
function di(e, s, t, o, n, i) {
|
|
517
517
|
const r = f("dt-icon");
|
|
518
518
|
return a(), l("span", {
|
|
519
519
|
class: y([
|
|
@@ -524,19 +524,19 @@ function oi(e, s, t, o, n, i) {
|
|
|
524
524
|
]),
|
|
525
525
|
"data-qa": "dt-badge"
|
|
526
526
|
}, [
|
|
527
|
-
t.decoration ? (a(), l("span",
|
|
528
|
-
t.iconLeft || t.type === "ai" ? (a(), l("span",
|
|
527
|
+
t.decoration ? (a(), l("span", ai)) : p("", !0),
|
|
528
|
+
t.iconLeft || t.type === "ai" ? (a(), l("span", oi, [
|
|
529
529
|
m(r, {
|
|
530
530
|
name: t.iconLeft || "dialpad-ai",
|
|
531
531
|
size: "200"
|
|
532
532
|
}, null, 8, ["name"])
|
|
533
533
|
])) : p("", !0),
|
|
534
|
-
_("span",
|
|
534
|
+
_("span", li, [
|
|
535
535
|
d(e.$slots, "default", {}, () => [
|
|
536
536
|
P(I(t.text), 1)
|
|
537
537
|
])
|
|
538
538
|
]),
|
|
539
|
-
t.iconRight ? (a(), l("span",
|
|
539
|
+
t.iconRight ? (a(), l("span", ri, [
|
|
540
540
|
m(r, {
|
|
541
541
|
name: t.iconRight,
|
|
542
542
|
size: "200"
|
|
@@ -544,13 +544,13 @@ function oi(e, s, t, o, n, i) {
|
|
|
544
544
|
])) : p("", !0)
|
|
545
545
|
], 2);
|
|
546
546
|
}
|
|
547
|
-
const
|
|
547
|
+
const ci = /* @__PURE__ */ v(ni, [["render", di]]), Oe = ["base", "error", "info", "success", "warning"], ui = ["alert", "alertdialog", "status"], hi = /* @__PURE__ */ new Map([
|
|
548
548
|
["info", "info"],
|
|
549
549
|
["success", "check-circle"],
|
|
550
550
|
["warning", "alert-triangle"],
|
|
551
551
|
["error", "alert-circle"],
|
|
552
552
|
["base", "bell"]
|
|
553
|
-
]),
|
|
553
|
+
]), fi = {
|
|
554
554
|
name: "DtNoticeIcon",
|
|
555
555
|
components: {
|
|
556
556
|
DtIcon: x
|
|
@@ -575,17 +575,17 @@ const li = /* @__PURE__ */ v(ti, [["render", oi]]), Oe = ["base", "error", "info
|
|
|
575
575
|
},
|
|
576
576
|
computed: {
|
|
577
577
|
defaultIcon() {
|
|
578
|
-
return
|
|
578
|
+
return hi.get(this.kind);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
},
|
|
581
|
+
}, pi = {
|
|
582
582
|
key: 0,
|
|
583
583
|
"aria-hidden": "true",
|
|
584
584
|
class: "d-notice__icon"
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function mi(e, s, t, o, n, i) {
|
|
587
587
|
const r = f("dt-icon");
|
|
588
|
-
return i.defaultIcon || n.hasSlotContent(e.$slots.default) ? (a(), l("div",
|
|
588
|
+
return i.defaultIcon || n.hasSlotContent(e.$slots.default) ? (a(), l("div", pi, [
|
|
589
589
|
d(e.$slots, "default", {}, () => [
|
|
590
590
|
m(r, {
|
|
591
591
|
name: i.defaultIcon,
|
|
@@ -594,7 +594,7 @@ function hi(e, s, t, o, n, i) {
|
|
|
594
594
|
])
|
|
595
595
|
])) : p("", !0);
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const it = /* @__PURE__ */ v(fi, [["render", mi]]), gi = {
|
|
598
598
|
name: "DtNoticeContent",
|
|
599
599
|
props: {
|
|
600
600
|
/**
|
|
@@ -626,12 +626,12 @@ const et = /* @__PURE__ */ v(ci, [["render", hi]]), fi = {
|
|
|
626
626
|
hasSlotContent: $
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
},
|
|
629
|
+
}, _i = {
|
|
630
630
|
class: "d-notice__content",
|
|
631
631
|
"data-qa": "notice-content"
|
|
632
|
-
},
|
|
633
|
-
function
|
|
634
|
-
return a(), l("div",
|
|
632
|
+
}, bi = ["id"], yi = ["id"];
|
|
633
|
+
function vi(e, s, t, o, n, i) {
|
|
634
|
+
return a(), l("div", _i, [
|
|
635
635
|
t.title || n.hasSlotContent(e.$slots.titleOverride) ? (a(), l("p", {
|
|
636
636
|
key: 0,
|
|
637
637
|
id: t.titleId,
|
|
@@ -641,17 +641,17 @@ function _i(e, s, t, o, n, i) {
|
|
|
641
641
|
d(e.$slots, "titleOverride", {}, () => [
|
|
642
642
|
P(I(t.title), 1)
|
|
643
643
|
])
|
|
644
|
-
], 8,
|
|
644
|
+
], 8, bi)) : p("", !0),
|
|
645
645
|
_("p", {
|
|
646
646
|
id: t.contentId,
|
|
647
647
|
class: "d-notice__message",
|
|
648
648
|
"data-qa": "notice-content-message"
|
|
649
649
|
}, [
|
|
650
650
|
d(e.$slots, "default")
|
|
651
|
-
], 8,
|
|
651
|
+
], 8, yi)
|
|
652
652
|
]);
|
|
653
653
|
}
|
|
654
|
-
const
|
|
654
|
+
const nt = /* @__PURE__ */ v(gi, [["render", vi]]), ie = {
|
|
655
655
|
props: {
|
|
656
656
|
/**
|
|
657
657
|
* If true, a hidden close button is included for screen readers
|
|
@@ -690,7 +690,7 @@ const tt = /* @__PURE__ */ v(fi, [["render", _i]]), ie = {
|
|
|
690
690
|
a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`);
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
},
|
|
693
|
+
}, Si = {
|
|
694
694
|
name: "SrOnlyCloseButton",
|
|
695
695
|
components: {
|
|
696
696
|
DtIcon: x,
|
|
@@ -713,7 +713,7 @@ const tt = /* @__PURE__ */ v(fi, [["render", _i]]), ie = {
|
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
715
|
};
|
|
716
|
-
function
|
|
716
|
+
function Ci(e, s, t, o, n, i) {
|
|
717
717
|
const r = f("dt-icon"), h = f("dt-button");
|
|
718
718
|
return a(), S(h, {
|
|
719
719
|
id: "sr-only-close-button",
|
|
@@ -721,7 +721,7 @@ function yi(e, s, t, o, n, i) {
|
|
|
721
721
|
class: "d-vi-visible-sr",
|
|
722
722
|
"aria-label": t.visuallyHiddenCloseLabel,
|
|
723
723
|
onClick: i.close,
|
|
724
|
-
onKeydown:
|
|
724
|
+
onKeydown: F(U(i.close, ["prevent", "stop"]), ["space"])
|
|
725
725
|
}, {
|
|
726
726
|
default: c(() => [
|
|
727
727
|
m(r, { name: "close" })
|
|
@@ -729,7 +729,7 @@ function yi(e, s, t, o, n, i) {
|
|
|
729
729
|
_: 1
|
|
730
730
|
}, 8, ["aria-label", "onClick", "onKeydown"]);
|
|
731
731
|
}
|
|
732
|
-
const Ne = /* @__PURE__ */ v(
|
|
732
|
+
const Ne = /* @__PURE__ */ v(Si, [["render", Ci]]), Ii = {
|
|
733
733
|
name: "DtNoticeAction",
|
|
734
734
|
components: {
|
|
735
735
|
DtIcon: x,
|
|
@@ -777,13 +777,13 @@ const Ne = /* @__PURE__ */ v(bi, [["render", yi]]), vi = {
|
|
|
777
777
|
this.$emit("close");
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
-
},
|
|
780
|
+
}, wi = {
|
|
781
781
|
class: "d-notice__actions",
|
|
782
782
|
"data-qa": "notice-content-actions"
|
|
783
783
|
};
|
|
784
|
-
function
|
|
784
|
+
function Ei(e, s, t, o, n, i) {
|
|
785
785
|
const r = f("dt-icon"), h = f("dt-button"), u = f("sr-only-close-button");
|
|
786
|
-
return a(), l("div",
|
|
786
|
+
return a(), l("div", wi, [
|
|
787
787
|
d(e.$slots, "default"),
|
|
788
788
|
t.hideClose ? p("", !0) : (a(), S(h, C({
|
|
789
789
|
key: 0,
|
|
@@ -809,7 +809,7 @@ function Ci(e, s, t, o, n, i) {
|
|
|
809
809
|
}, null, 8, ["visually-hidden-close-label", "onClose"])) : p("", !0)
|
|
810
810
|
]);
|
|
811
811
|
}
|
|
812
|
-
const
|
|
812
|
+
const at = /* @__PURE__ */ v(Ii, [["render", Ei]]), ts = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', ki = `${ts}:not([tabindex="-1"])`, Oi = "button,[href],input,select,textarea,details,[tabindex]", Le = {
|
|
813
813
|
methods: {
|
|
814
814
|
/**
|
|
815
815
|
* get the first focusable element in your component, includes tabindex="-1".
|
|
@@ -826,10 +826,20 @@ const st = /* @__PURE__ */ v(vi, [["render", Ci]]), Xt = ':not(:disabled):not([a
|
|
|
826
826
|
* @param {object} el - optional - ref of dom element to trap focus on.
|
|
827
827
|
* will default to the root node of the vue component
|
|
828
828
|
*/
|
|
829
|
-
async focusFirstElement(e) {
|
|
829
|
+
async focusFirstElement(e = this.$el) {
|
|
830
830
|
const s = await this.getFirstFocusableElement(e);
|
|
831
831
|
s == null || s.focus({ preventScroll: !0 });
|
|
832
832
|
},
|
|
833
|
+
async focusElementById(e) {
|
|
834
|
+
var t;
|
|
835
|
+
await this.$nextTick();
|
|
836
|
+
const s = (t = this.$el) == null ? void 0 : t.querySelector(e);
|
|
837
|
+
if (s) {
|
|
838
|
+
s.focus();
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
841
|
+
console.warn('Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.'), await this.focusFirstElement();
|
|
842
|
+
},
|
|
833
843
|
/**
|
|
834
844
|
* internal use only.
|
|
835
845
|
*
|
|
@@ -853,9 +863,9 @@ const st = /* @__PURE__ */ v(vi, [["render", Ci]]), Xt = ':not(:disabled):not([a
|
|
|
853
863
|
* @param {bool} includeNegativeTabIndex - will include tabindex="-1" in the list of focusable elements.
|
|
854
864
|
*/
|
|
855
865
|
_getFocusableElements(e = this.$el, s = !1) {
|
|
856
|
-
return e ? [...e.querySelectorAll(
|
|
866
|
+
return e ? [...e.querySelectorAll(Oi)].filter((o) => {
|
|
857
867
|
const n = window.getComputedStyle(o);
|
|
858
|
-
return n.getPropertyValue("display") !== "none" && n.getPropertyValue("visibility") !== "hidden" && o.matches(s ?
|
|
868
|
+
return n.getPropertyValue("display") !== "none" && n.getPropertyValue("visibility") !== "hidden" && o.matches(s ? ts : ki);
|
|
859
869
|
}) : [];
|
|
860
870
|
},
|
|
861
871
|
/**
|
|
@@ -876,12 +886,12 @@ const st = /* @__PURE__ */ v(vi, [["render", Ci]]), Xt = ':not(:disabled):not([a
|
|
|
876
886
|
e.shiftKey ? document.activeElement === n && (i.focus(), e.preventDefault()) : document.activeElement === i && (n.focus(), e.preventDefault());
|
|
877
887
|
}
|
|
878
888
|
}
|
|
879
|
-
},
|
|
889
|
+
}, Li = {
|
|
880
890
|
name: "DtBanner",
|
|
881
891
|
components: {
|
|
882
|
-
DtNoticeIcon:
|
|
883
|
-
DtNoticeContent:
|
|
884
|
-
DtNoticeAction:
|
|
892
|
+
DtNoticeIcon: it,
|
|
893
|
+
DtNoticeContent: nt,
|
|
894
|
+
DtNoticeAction: at
|
|
885
895
|
},
|
|
886
896
|
mixins: [Le, ie],
|
|
887
897
|
props: {
|
|
@@ -1029,13 +1039,13 @@ const st = /* @__PURE__ */ v(vi, [["render", Ci]]), Xt = ':not(:disabled):not([a
|
|
|
1029
1039
|
this.important && this.focusTrappedTabPress(e);
|
|
1030
1040
|
}
|
|
1031
1041
|
}
|
|
1032
|
-
},
|
|
1033
|
-
function
|
|
1042
|
+
}, Ti = ["role", "aria-labelledby", "aria-describedby"];
|
|
1043
|
+
function Ai(e, s, t, o, n, i) {
|
|
1034
1044
|
const r = f("dt-notice-icon"), h = f("dt-notice-content"), u = f("dt-notice-action");
|
|
1035
1045
|
return a(), l("aside", {
|
|
1036
1046
|
class: y(i.bannerClass),
|
|
1037
1047
|
style: re(i.bannerBackgroundImage),
|
|
1038
|
-
onKeydown: s[1] || (s[1] =
|
|
1048
|
+
onKeydown: s[1] || (s[1] = F((...g) => i.trapFocus && i.trapFocus(...g), ["tab"]))
|
|
1039
1049
|
}, [
|
|
1040
1050
|
_("div", {
|
|
1041
1051
|
class: y(["d-banner__dialog", t.dialogClass]),
|
|
@@ -1077,10 +1087,10 @@ function Oi(e, s, t, o, n, i) {
|
|
|
1077
1087
|
]),
|
|
1078
1088
|
_: 3
|
|
1079
1089
|
}, 8, ["hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label"])
|
|
1080
|
-
], 10,
|
|
1090
|
+
], 10, Ti)
|
|
1081
1091
|
], 38);
|
|
1082
1092
|
}
|
|
1083
|
-
const
|
|
1093
|
+
const Wr = /* @__PURE__ */ v(Li, [["render", Ai]]), Di = "d-breadcrumbs__item--selected", Pi = "d-breadcrumbs--inverted", xi = {
|
|
1084
1094
|
name: "DtLink",
|
|
1085
1095
|
props: {
|
|
1086
1096
|
/**
|
|
@@ -1091,17 +1101,17 @@ const jr = /* @__PURE__ */ v(ki, [["render", Oi]]), Li = "d-breadcrumbs__item--s
|
|
|
1091
1101
|
type: String,
|
|
1092
1102
|
default: "",
|
|
1093
1103
|
validator(e) {
|
|
1094
|
-
return
|
|
1104
|
+
return Ps.includes(e);
|
|
1095
1105
|
}
|
|
1096
1106
|
}
|
|
1097
1107
|
},
|
|
1098
1108
|
data() {
|
|
1099
1109
|
return {
|
|
1100
|
-
LINK_KIND_MODIFIERS:
|
|
1110
|
+
LINK_KIND_MODIFIERS: xs
|
|
1101
1111
|
};
|
|
1102
1112
|
}
|
|
1103
1113
|
};
|
|
1104
|
-
function
|
|
1114
|
+
function Ri(e, s, t, o, n, i) {
|
|
1105
1115
|
return a(), l("a", {
|
|
1106
1116
|
class: y([
|
|
1107
1117
|
"d-link",
|
|
@@ -1112,10 +1122,10 @@ function Di(e, s, t, o, n, i) {
|
|
|
1112
1122
|
d(e.$slots, "default")
|
|
1113
1123
|
], 2);
|
|
1114
1124
|
}
|
|
1115
|
-
const
|
|
1125
|
+
const Bi = /* @__PURE__ */ v(xi, [["render", Ri]]), $i = {
|
|
1116
1126
|
name: "DtBreadcrumbItem",
|
|
1117
1127
|
components: {
|
|
1118
|
-
DtLink:
|
|
1128
|
+
DtLink: Bi
|
|
1119
1129
|
},
|
|
1120
1130
|
inheritAttrs: !1,
|
|
1121
1131
|
props: {
|
|
@@ -1143,19 +1153,19 @@ const Pi = /* @__PURE__ */ v(Ai, [["render", Di]]), xi = {
|
|
|
1143
1153
|
},
|
|
1144
1154
|
data() {
|
|
1145
1155
|
return {
|
|
1146
|
-
BREADCRUMB_ITEM_SELECTED_MODIFIER:
|
|
1156
|
+
BREADCRUMB_ITEM_SELECTED_MODIFIER: Di
|
|
1147
1157
|
};
|
|
1148
1158
|
},
|
|
1149
1159
|
computed: {
|
|
1150
1160
|
linkKind() {
|
|
1151
|
-
return this.inverted ?
|
|
1161
|
+
return this.inverted ? Rs : Bs;
|
|
1152
1162
|
},
|
|
1153
1163
|
ariaCurrent() {
|
|
1154
1164
|
return this.selected ? "location" : void 0;
|
|
1155
1165
|
}
|
|
1156
1166
|
}
|
|
1157
1167
|
};
|
|
1158
|
-
function
|
|
1168
|
+
function Ni(e, s, t, o, n, i) {
|
|
1159
1169
|
const r = f("dt-link");
|
|
1160
1170
|
return a(), l("li", {
|
|
1161
1171
|
"data-qa": "dt-breadcrumb-item",
|
|
@@ -1178,10 +1188,10 @@ function Ri(e, s, t, o, n, i) {
|
|
|
1178
1188
|
}, 16, ["kind", "aria-current"])
|
|
1179
1189
|
], 2);
|
|
1180
1190
|
}
|
|
1181
|
-
const
|
|
1191
|
+
const zi = /* @__PURE__ */ v($i, [["render", Ni]]), Mi = {
|
|
1182
1192
|
name: "DtBreadcrumbs",
|
|
1183
1193
|
components: {
|
|
1184
|
-
DtBreadcrumbItem:
|
|
1194
|
+
DtBreadcrumbItem: zi
|
|
1185
1195
|
},
|
|
1186
1196
|
props: {
|
|
1187
1197
|
/**
|
|
@@ -1212,7 +1222,7 @@ const Bi = /* @__PURE__ */ v(xi, [["render", Ri]]), $i = {
|
|
|
1212
1222
|
},
|
|
1213
1223
|
data() {
|
|
1214
1224
|
return {
|
|
1215
|
-
BREADCRUMBS_INVERTED_MODIFIER:
|
|
1225
|
+
BREADCRUMBS_INVERTED_MODIFIER: Pi
|
|
1216
1226
|
};
|
|
1217
1227
|
},
|
|
1218
1228
|
methods: {
|
|
@@ -1220,8 +1230,8 @@ const Bi = /* @__PURE__ */ v(xi, [["render", Ri]]), $i = {
|
|
|
1220
1230
|
return `breadcrumbs-item-${e}-${J.getUniqueString()}`;
|
|
1221
1231
|
}
|
|
1222
1232
|
}
|
|
1223
|
-
},
|
|
1224
|
-
function
|
|
1233
|
+
}, Hi = ["aria-label"];
|
|
1234
|
+
function Fi(e, s, t, o, n, i) {
|
|
1225
1235
|
const r = f("dt-breadcrumb-item");
|
|
1226
1236
|
return a(), l("nav", {
|
|
1227
1237
|
"aria-label": t.ariaLabel,
|
|
@@ -1239,13 +1249,13 @@ function zi(e, s, t, o, n, i) {
|
|
|
1239
1249
|
}, h), null, 16, ["inverted"]))), 128))
|
|
1240
1250
|
])
|
|
1241
1251
|
])
|
|
1242
|
-
], 10,
|
|
1252
|
+
], 10, Hi);
|
|
1243
1253
|
}
|
|
1244
|
-
const
|
|
1254
|
+
const Zr = /* @__PURE__ */ v(Mi, [["render", Fi]]), $t = {
|
|
1245
1255
|
start: "d-btn-group--start",
|
|
1246
1256
|
end: "d-btn-group--end",
|
|
1247
1257
|
"space-between": "d-btn-group--space-between"
|
|
1248
|
-
},
|
|
1258
|
+
}, Vi = {
|
|
1249
1259
|
name: "DtButtonGroup",
|
|
1250
1260
|
props: {
|
|
1251
1261
|
/**
|
|
@@ -1254,16 +1264,16 @@ const Gr = /* @__PURE__ */ v($i, [["render", zi]]), xt = {
|
|
|
1254
1264
|
alignment: {
|
|
1255
1265
|
type: String,
|
|
1256
1266
|
default: "start",
|
|
1257
|
-
validator: (e) => Object.keys(
|
|
1267
|
+
validator: (e) => Object.keys($t).includes(e)
|
|
1258
1268
|
}
|
|
1259
1269
|
},
|
|
1260
1270
|
data() {
|
|
1261
1271
|
return {
|
|
1262
|
-
BUTTON_GROUP_ALIGNMENT:
|
|
1272
|
+
BUTTON_GROUP_ALIGNMENT: $t
|
|
1263
1273
|
};
|
|
1264
1274
|
}
|
|
1265
1275
|
};
|
|
1266
|
-
function
|
|
1276
|
+
function qi(e, s, t, o, n, i) {
|
|
1267
1277
|
return a(), l("div", {
|
|
1268
1278
|
class: y([
|
|
1269
1279
|
"d-btn-group",
|
|
@@ -1274,7 +1284,7 @@ function Hi(e, s, t, o, n, i) {
|
|
|
1274
1284
|
d(e.$slots, "default")
|
|
1275
1285
|
], 2);
|
|
1276
1286
|
}
|
|
1277
|
-
const
|
|
1287
|
+
const Yr = /* @__PURE__ */ v(Vi, [["render", qi]]), Ki = {
|
|
1278
1288
|
name: "DtCard",
|
|
1279
1289
|
props: {
|
|
1280
1290
|
/**
|
|
@@ -1320,7 +1330,7 @@ const Ur = /* @__PURE__ */ v(Mi, [["render", Hi]]), Vi = {
|
|
|
1320
1330
|
};
|
|
1321
1331
|
}
|
|
1322
1332
|
};
|
|
1323
|
-
function
|
|
1333
|
+
function ji(e, s, t, o, n, i) {
|
|
1324
1334
|
return a(), l("div", {
|
|
1325
1335
|
class: y([
|
|
1326
1336
|
"d-card",
|
|
@@ -1357,7 +1367,7 @@ function Fi(e, s, t, o, n, i) {
|
|
|
1357
1367
|
], 2)) : p("", !0)
|
|
1358
1368
|
], 2);
|
|
1359
1369
|
}
|
|
1360
|
-
const
|
|
1370
|
+
const Gi = /* @__PURE__ */ v(Ki, [["render", ji]]), Ui = {
|
|
1361
1371
|
name: "DtCodeblock",
|
|
1362
1372
|
props: {
|
|
1363
1373
|
text: {
|
|
@@ -1365,16 +1375,16 @@ const qi = /* @__PURE__ */ v(Vi, [["render", Fi]]), Ki = {
|
|
|
1365
1375
|
required: !0
|
|
1366
1376
|
}
|
|
1367
1377
|
}
|
|
1368
|
-
},
|
|
1369
|
-
function
|
|
1378
|
+
}, Wi = { class: "d-d-block d-bgc-secondary d-ws-pre-wrap d-p8 d-ba d-bc-subtle d-bar8 d-fs-200 d-ff-mono d-lh-400 d-fc-secondary" };
|
|
1379
|
+
function Zi(e, s, t, o, n, i) {
|
|
1370
1380
|
return a(), l("pre", null, [
|
|
1371
1381
|
P(" "),
|
|
1372
|
-
_("code",
|
|
1382
|
+
_("code", Wi, I(t.text), 1),
|
|
1373
1383
|
P(`
|
|
1374
1384
|
`)
|
|
1375
1385
|
]);
|
|
1376
1386
|
}
|
|
1377
|
-
const
|
|
1387
|
+
const Qr = /* @__PURE__ */ v(Ui, [["render", Zi]]), Yi = {
|
|
1378
1388
|
methods: {
|
|
1379
1389
|
/**
|
|
1380
1390
|
* Scroll an element into view if it is not fully visible in its nearest scrollable ancestor.
|
|
@@ -1446,7 +1456,7 @@ const Wr = /* @__PURE__ */ v(Ki, [["render", Gi]]), Ui = {
|
|
|
1446
1456
|
return s <= t.bottom + 3 * o / 4 && e >= t.top - o / 4;
|
|
1447
1457
|
}
|
|
1448
1458
|
}
|
|
1449
|
-
},
|
|
1459
|
+
}, Qi = "listElementKey is required or the referenced element doesn't exist. Received listElement: ", ss = ({
|
|
1450
1460
|
// Role of the list items in the component. This is used to identify the list items
|
|
1451
1461
|
// so you must update this if the role of your list items is anything other than 'option'
|
|
1452
1462
|
listItemRole: e = "option",
|
|
@@ -1471,7 +1481,7 @@ const Wr = /* @__PURE__ */ v(Ki, [["render", Gi]]), Ui = {
|
|
|
1471
1481
|
// Focus the active element on keyboard navigation.
|
|
1472
1482
|
focusOnKeyboardNavigation: w = !1
|
|
1473
1483
|
} = {}) => ({
|
|
1474
|
-
mixins: [
|
|
1484
|
+
mixins: [Yi],
|
|
1475
1485
|
data() {
|
|
1476
1486
|
return {
|
|
1477
1487
|
[s]: -1,
|
|
@@ -1502,7 +1512,7 @@ const Wr = /* @__PURE__ */ v(Ki, [["render", Gi]]), Ui = {
|
|
|
1502
1512
|
// Gets all the list item nodes within the list element
|
|
1503
1513
|
_getListItemNodes() {
|
|
1504
1514
|
const b = this._getListElement();
|
|
1505
|
-
return b ? Array.from(b.querySelectorAll(`[role="${e}"], #sr-only-close-button`)) : (console.error(
|
|
1515
|
+
return b ? Array.from(b.querySelectorAll(`[role="${e}"], #sr-only-close-button`)) : (console.error(Qi, b), null);
|
|
1506
1516
|
},
|
|
1507
1517
|
onUpKey() {
|
|
1508
1518
|
i && this[i](!0), this[s] > 0 ? this.setHighlightIndex(this[s] - 1) : h && this[h](), this.scrollActiveItemIntoViewIfNeeded(), this.focusActiveItemIfNeeded();
|
|
@@ -1574,57 +1584,64 @@ const Wr = /* @__PURE__ */ v(Ki, [["render", Gi]]), Ui = {
|
|
|
1574
1584
|
TAB: "tab",
|
|
1575
1585
|
NONE: "none"
|
|
1576
1586
|
};
|
|
1577
|
-
const
|
|
1587
|
+
const Xi = {
|
|
1578
1588
|
name: "DtDefaultListItem",
|
|
1579
1589
|
data() {
|
|
1580
1590
|
return {
|
|
1581
1591
|
hasSlotContent: $
|
|
1582
1592
|
};
|
|
1583
1593
|
}
|
|
1584
|
-
},
|
|
1594
|
+
}, Ji = { class: "dt-default-list-item" }, en = {
|
|
1585
1595
|
key: 0,
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
},
|
|
1596
|
+
"data-qa": "dt-default-list-item-left-wrapper",
|
|
1597
|
+
class: "dt-default-list-item--left"
|
|
1598
|
+
}, tn = {
|
|
1599
|
+
"data-qa": "dt-default-list-item-content-wrapper",
|
|
1600
|
+
class: "dt-default-list-item--content"
|
|
1601
|
+
}, sn = {
|
|
1602
|
+
key: 0,
|
|
1603
|
+
"data-qa": "dt-default-list-item-title-wrapper",
|
|
1604
|
+
class: "dt-default-list-item--title"
|
|
1605
|
+
}, nn = {
|
|
1589
1606
|
key: 2,
|
|
1590
1607
|
"data-qa": "dt-default-list-item-bottom-wrapper",
|
|
1591
|
-
class: "
|
|
1592
|
-
},
|
|
1608
|
+
class: "dt-default-list-item--bottom"
|
|
1609
|
+
}, an = {
|
|
1593
1610
|
key: 1,
|
|
1594
|
-
|
|
1595
|
-
|
|
1611
|
+
"data-qa": "dt-default-list-item-right-wrapper",
|
|
1612
|
+
class: "dt-default-list-item--right"
|
|
1596
1613
|
};
|
|
1597
|
-
function
|
|
1598
|
-
return a(), l("div",
|
|
1599
|
-
n.hasSlotContent(e.$slots.left) ? (a(), l("section",
|
|
1614
|
+
function on(e, s, t, o, n, i) {
|
|
1615
|
+
return a(), l("div", Ji, [
|
|
1616
|
+
n.hasSlotContent(e.$slots.left) ? (a(), l("section", en, [
|
|
1600
1617
|
d(e.$slots, "left")
|
|
1601
1618
|
])) : p("", !0),
|
|
1602
|
-
_("section",
|
|
1603
|
-
n.hasSlotContent(e.$slots.default) ? (a(), l("div",
|
|
1619
|
+
_("section", tn, [
|
|
1620
|
+
n.hasSlotContent(e.$slots.default) ? (a(), l("div", sn, [
|
|
1604
1621
|
d(e.$slots, "default")
|
|
1605
1622
|
])) : p("", !0),
|
|
1606
1623
|
n.hasSlotContent(e.$slots.subtitle) ? (a(), l("div", {
|
|
1607
1624
|
key: 1,
|
|
1608
1625
|
"data-qa": "dt-default-list-item-subtitle-wrapper",
|
|
1609
|
-
class: y(["
|
|
1626
|
+
class: y(["dt-default-list-item--subtitle", { "d-mtn2": e.$slots.default }])
|
|
1610
1627
|
}, [
|
|
1611
1628
|
d(e.$slots, "subtitle")
|
|
1612
1629
|
], 2)) : p("", !0),
|
|
1613
|
-
n.hasSlotContent(e.$slots.bottom) ? (a(), l("div",
|
|
1630
|
+
n.hasSlotContent(e.$slots.bottom) ? (a(), l("div", nn, [
|
|
1614
1631
|
d(e.$slots, "bottom")
|
|
1615
1632
|
])) : p("", !0)
|
|
1616
1633
|
]),
|
|
1617
|
-
n.hasSlotContent(e.$slots.right) ? (a(), l("section",
|
|
1634
|
+
n.hasSlotContent(e.$slots.right) ? (a(), l("section", an, [
|
|
1618
1635
|
d(e.$slots, "right")
|
|
1619
1636
|
])) : p("", !0),
|
|
1620
1637
|
d(e.$slots, "selected")
|
|
1621
1638
|
]);
|
|
1622
1639
|
}
|
|
1623
|
-
const
|
|
1624
|
-
const
|
|
1640
|
+
const Nt = /* @__PURE__ */ v(Xi, [["render", on]]);
|
|
1641
|
+
const ln = {
|
|
1625
1642
|
name: "DtListItem",
|
|
1626
1643
|
components: {
|
|
1627
|
-
DtDefaultListItem:
|
|
1644
|
+
DtDefaultListItem: Nt,
|
|
1628
1645
|
DtIcon: x
|
|
1629
1646
|
},
|
|
1630
1647
|
/**
|
|
@@ -1725,7 +1742,7 @@ const nn = {
|
|
|
1725
1742
|
listItemType() {
|
|
1726
1743
|
switch (this.type) {
|
|
1727
1744
|
case je.DEFAULT:
|
|
1728
|
-
return
|
|
1745
|
+
return Nt;
|
|
1729
1746
|
default:
|
|
1730
1747
|
return null;
|
|
1731
1748
|
}
|
|
@@ -1772,11 +1789,11 @@ const nn = {
|
|
|
1772
1789
|
}
|
|
1773
1790
|
}
|
|
1774
1791
|
};
|
|
1775
|
-
function
|
|
1792
|
+
function rn(e, s, t, o, n, i) {
|
|
1776
1793
|
const r = f("dt-icon");
|
|
1777
1794
|
return a(), S(X(t.elementType), C({
|
|
1778
1795
|
id: t.id,
|
|
1779
|
-
class: ["dt-list-item
|
|
1796
|
+
class: ["dt-list-item", {
|
|
1780
1797
|
"dt-list-item--focusable": i.isFocusable,
|
|
1781
1798
|
"dt-list-item--highlighted": i.isHighlighted,
|
|
1782
1799
|
"dt-list-item--static": !i.isHoverable
|
|
@@ -1786,7 +1803,7 @@ function an(e, s, t, o, n, i) {
|
|
|
1786
1803
|
"aria-selected": i.isHighlighted
|
|
1787
1804
|
}, M(i.listItemListeners)), {
|
|
1788
1805
|
default: c(() => [
|
|
1789
|
-
i.listItemType ? (a(), S(X(i.listItemType), { key: 0 },
|
|
1806
|
+
i.listItemType ? (a(), S(X(i.listItemType), { key: 0 }, Ee({ _: 2 }, [
|
|
1790
1807
|
ee(e.$slots, (h, u) => ({
|
|
1791
1808
|
name: u,
|
|
1792
1809
|
fn: c(() => [
|
|
@@ -1799,7 +1816,7 @@ function an(e, s, t, o, n, i) {
|
|
|
1799
1816
|
m(r, {
|
|
1800
1817
|
name: "check",
|
|
1801
1818
|
size: "400",
|
|
1802
|
-
class: "
|
|
1819
|
+
class: "dt-list-item--selected-icon"
|
|
1803
1820
|
})
|
|
1804
1821
|
]),
|
|
1805
1822
|
key: "0"
|
|
@@ -1809,16 +1826,16 @@ function an(e, s, t, o, n, i) {
|
|
|
1809
1826
|
_: 3
|
|
1810
1827
|
}, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
|
|
1811
1828
|
}
|
|
1812
|
-
const ze = /* @__PURE__ */ v(
|
|
1829
|
+
const ze = /* @__PURE__ */ v(ln, [["render", rn]]), dn = {
|
|
1813
1830
|
name: "ComboboxLoadingList",
|
|
1814
|
-
components: { DtListItem: ze, DtSkeleton:
|
|
1815
|
-
},
|
|
1831
|
+
components: { DtListItem: ze, DtSkeleton: $s }
|
|
1832
|
+
}, cn = {
|
|
1816
1833
|
class: "d-p0 d-mt8 d-hmx332 d-of-y-auto",
|
|
1817
1834
|
"aria-busy": "true"
|
|
1818
1835
|
};
|
|
1819
|
-
function
|
|
1836
|
+
function un(e, s, t, o, n, i) {
|
|
1820
1837
|
const r = f("dt-skeleton"), h = f("dt-list-item");
|
|
1821
|
-
return a(), l("ol",
|
|
1838
|
+
return a(), l("ol", cn, [
|
|
1822
1839
|
(a(), l(Y, null, ee(7, (u) => m(h, {
|
|
1823
1840
|
key: u,
|
|
1824
1841
|
role: "option",
|
|
@@ -1834,8 +1851,8 @@ function rn(e, s, t, o, n, i) {
|
|
|
1834
1851
|
}, 1024)), 64))
|
|
1835
1852
|
]);
|
|
1836
1853
|
}
|
|
1837
|
-
const
|
|
1838
|
-
const
|
|
1854
|
+
const is = /* @__PURE__ */ v(dn, [["render", un]]);
|
|
1855
|
+
const hn = {
|
|
1839
1856
|
name: "ComboboxEmptyList",
|
|
1840
1857
|
components: { DtListItem: ze },
|
|
1841
1858
|
props: {
|
|
@@ -1856,13 +1873,13 @@ const dn = {
|
|
|
1856
1873
|
default: ""
|
|
1857
1874
|
}
|
|
1858
1875
|
}
|
|
1859
|
-
},
|
|
1876
|
+
}, fn = {
|
|
1860
1877
|
class: "d-p0",
|
|
1861
1878
|
"data-qa": "dt-combobox-empty-list"
|
|
1862
1879
|
};
|
|
1863
|
-
function
|
|
1880
|
+
function pn(e, s, t, o, n, i) {
|
|
1864
1881
|
const r = f("dt-list-item");
|
|
1865
|
-
return a(), l("ol",
|
|
1882
|
+
return a(), l("ol", fn, [
|
|
1866
1883
|
d(e.$slots, "default", {}, () => [
|
|
1867
1884
|
m(r, {
|
|
1868
1885
|
role: "option",
|
|
@@ -1878,20 +1895,20 @@ function un(e, s, t, o, n, i) {
|
|
|
1878
1895
|
])
|
|
1879
1896
|
]);
|
|
1880
1897
|
}
|
|
1881
|
-
const
|
|
1898
|
+
const ns = /* @__PURE__ */ v(hn, [["render", pn]]), as = {
|
|
1882
1899
|
EXTRA_SMALL: "xs",
|
|
1883
1900
|
SMALL: "sm",
|
|
1884
1901
|
DEFAULT: "md",
|
|
1885
1902
|
LARGE: "lg",
|
|
1886
1903
|
EXTRA_LARGE: "xl"
|
|
1887
|
-
},
|
|
1904
|
+
}, mn = {
|
|
1888
1905
|
name: "DtCombobox",
|
|
1889
1906
|
components: {
|
|
1890
|
-
ComboboxLoadingList:
|
|
1891
|
-
ComboboxEmptyList:
|
|
1907
|
+
ComboboxLoadingList: is,
|
|
1908
|
+
ComboboxEmptyList: ns
|
|
1892
1909
|
},
|
|
1893
1910
|
mixins: [
|
|
1894
|
-
|
|
1911
|
+
ss({
|
|
1895
1912
|
indexKey: "highlightIndex",
|
|
1896
1913
|
idKey: "highlightId",
|
|
1897
1914
|
listElementKey: "getListElement",
|
|
@@ -1924,7 +1941,7 @@ const ts = /* @__PURE__ */ v(dn, [["render", un]]), ss = {
|
|
|
1924
1941
|
size: {
|
|
1925
1942
|
type: String,
|
|
1926
1943
|
default: null,
|
|
1927
|
-
validator: (e) => Object.values(
|
|
1944
|
+
validator: (e) => Object.values(as).includes(e)
|
|
1928
1945
|
},
|
|
1929
1946
|
/**
|
|
1930
1947
|
* Description for the input
|
|
@@ -2154,20 +2171,20 @@ const ts = /* @__PURE__ */ v(dn, [["render", un]]), ss = {
|
|
|
2154
2171
|
empty message.`);
|
|
2155
2172
|
}
|
|
2156
2173
|
}
|
|
2157
|
-
},
|
|
2158
|
-
function
|
|
2174
|
+
}, gn = { "data-qa": "dt-combobox-input-wrapper" };
|
|
2175
|
+
function _n(e, s, t, o, n, i) {
|
|
2159
2176
|
const r = f("combobox-loading-list"), h = f("combobox-empty-list");
|
|
2160
2177
|
return a(), l("div", {
|
|
2161
2178
|
onKeydown: [
|
|
2162
|
-
s[3] || (s[3] =
|
|
2163
|
-
s[4] || (s[4] =
|
|
2164
|
-
s[5] || (s[5] =
|
|
2165
|
-
s[6] || (s[6] =
|
|
2166
|
-
s[7] || (s[7] =
|
|
2167
|
-
s[8] || (s[8] =
|
|
2179
|
+
s[3] || (s[3] = F(U((u) => i.onKeyValidation(u, "onEscapeKey"), ["stop"]), ["esc"])),
|
|
2180
|
+
s[4] || (s[4] = F(U((u) => i.onKeyValidation(u, "onEnterKey"), ["exact"]), ["enter"])),
|
|
2181
|
+
s[5] || (s[5] = F(U((u) => i.onKeyValidation(u, "onUpKey"), ["stop", "prevent"]), ["up"])),
|
|
2182
|
+
s[6] || (s[6] = F(U((u) => i.onKeyValidation(u, "onDownKey"), ["stop", "prevent"]), ["down"])),
|
|
2183
|
+
s[7] || (s[7] = F(U((u) => i.onKeyValidation(u, "onHomeKey"), ["stop", "prevent"]), ["home"])),
|
|
2184
|
+
s[8] || (s[8] = F(U((u) => i.onKeyValidation(u, "onEndKey"), ["stop", "prevent"]), ["end"]))
|
|
2168
2185
|
]
|
|
2169
2186
|
}, [
|
|
2170
|
-
_("div",
|
|
2187
|
+
_("div", gn, [
|
|
2171
2188
|
d(e.$slots, "input", { inputProps: i.inputProps })
|
|
2172
2189
|
]),
|
|
2173
2190
|
t.showList ? (a(), l("div", {
|
|
@@ -2178,7 +2195,7 @@ function pn(e, s, t, o, n, i) {
|
|
|
2178
2195
|
onFocusout: s[1] || (s[1] = (...u) => i.clearHighlightIndex && i.clearHighlightIndex(...u)),
|
|
2179
2196
|
onMousemoveCapture: s[2] || (s[2] = (...u) => i.onMouseHighlight && i.onMouseHighlight(...u))
|
|
2180
2197
|
}, [
|
|
2181
|
-
t.loading && !t.listRenderedOutside ? (a(), S(r,
|
|
2198
|
+
t.loading && !t.listRenderedOutside ? (a(), S(r, ke(C({ key: 0 }, i.listProps)), null, 16)) : t.emptyList && (t.emptyStateMessage || n.hasSlotContent(e.$slots.emptyListItem)) && !t.listRenderedOutside ? (a(), S(h, C({ key: 1 }, i.listProps, {
|
|
2182
2199
|
message: t.emptyStateMessage,
|
|
2183
2200
|
"item-class": t.emptyStateClass
|
|
2184
2201
|
}), {
|
|
@@ -2195,8 +2212,8 @@ function pn(e, s, t, o, n, i) {
|
|
|
2195
2212
|
], 544)) : p("", !0)
|
|
2196
2213
|
], 32);
|
|
2197
2214
|
}
|
|
2198
|
-
const
|
|
2199
|
-
const
|
|
2215
|
+
const bn = /* @__PURE__ */ v(mn, [["render", _n]]);
|
|
2216
|
+
const yn = {
|
|
2200
2217
|
name: "DtCollapsibleLazyShow",
|
|
2201
2218
|
inheritAttrs: !1,
|
|
2202
2219
|
/******************
|
|
@@ -2306,8 +2323,8 @@ const gn = {
|
|
|
2306
2323
|
}
|
|
2307
2324
|
}
|
|
2308
2325
|
};
|
|
2309
|
-
function
|
|
2310
|
-
return a(), S(
|
|
2326
|
+
function vn(e, s, t, o, n, i) {
|
|
2327
|
+
return a(), S(Ze, C({
|
|
2311
2328
|
appear: t.appear,
|
|
2312
2329
|
"enter-active-class": "enter-active",
|
|
2313
2330
|
"leave-active-class": "leave-active"
|
|
@@ -2321,7 +2338,7 @@ function _n(e, s, t, o, n, i) {
|
|
|
2321
2338
|
onAfterLeave: i.afterLeave
|
|
2322
2339
|
}), {
|
|
2323
2340
|
default: c(() => [
|
|
2324
|
-
Se((a(), S(X(t.elementType),
|
|
2341
|
+
Se((a(), S(X(t.elementType), ke(Ye(e.$attrs)), {
|
|
2325
2342
|
default: c(() => [
|
|
2326
2343
|
n.initialized ? d(e.$slots, "default", { key: 0 }) : p("", !0)
|
|
2327
2344
|
]),
|
|
@@ -2333,11 +2350,11 @@ function _n(e, s, t, o, n, i) {
|
|
|
2333
2350
|
_: 3
|
|
2334
2351
|
}, 16, ["appear", "css", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
2335
2352
|
}
|
|
2336
|
-
const
|
|
2353
|
+
const Sn = /* @__PURE__ */ v(yn, [["render", vn]]), Cn = {
|
|
2337
2354
|
name: "DtCollapsible",
|
|
2338
2355
|
components: {
|
|
2339
2356
|
DtButton: K,
|
|
2340
|
-
DtCollapsibleLazyShow:
|
|
2357
|
+
DtCollapsibleLazyShow: Sn,
|
|
2341
2358
|
DtLazyShow: $e,
|
|
2342
2359
|
DtIcon: x
|
|
2343
2360
|
},
|
|
@@ -2454,7 +2471,7 @@ const bn = /* @__PURE__ */ v(gn, [["render", _n]]), yn = {
|
|
|
2454
2471
|
return this.ariaLabelledBy || !this.ariaLabel && q("DtCollapsible__anchor");
|
|
2455
2472
|
},
|
|
2456
2473
|
collapsibleListeners() {
|
|
2457
|
-
return
|
|
2474
|
+
return Qe(this.$attrs);
|
|
2458
2475
|
}
|
|
2459
2476
|
},
|
|
2460
2477
|
watch: {
|
|
@@ -2485,8 +2502,8 @@ const bn = /* @__PURE__ */ v(gn, [["render", _n]]), yn = {
|
|
|
2485
2502
|
!this.anchorText && !$(this.$slots.anchor) && console.error("anchor text and anchor slot content cannot both be falsy");
|
|
2486
2503
|
}
|
|
2487
2504
|
}
|
|
2488
|
-
},
|
|
2489
|
-
function
|
|
2505
|
+
}, In = ["id"], wn = ["title"];
|
|
2506
|
+
function En(e, s, t, o, n, i) {
|
|
2490
2507
|
const r = f("dt-icon"), h = f("dt-button"), u = f("dt-collapsible-lazy-show");
|
|
2491
2508
|
return a(), S(X(t.elementType), C({ ref: "collapsible" }, M(i.collapsibleListeners)), {
|
|
2492
2509
|
default: c(() => [
|
|
@@ -2523,12 +2540,12 @@ function Cn(e, s, t, o, n, i) {
|
|
|
2523
2540
|
_("span", {
|
|
2524
2541
|
class: "d-mr-auto d-truncate",
|
|
2525
2542
|
title: t.anchorText
|
|
2526
|
-
}, I(t.anchorText), 9,
|
|
2543
|
+
}, I(t.anchorText), 9, wn)
|
|
2527
2544
|
]),
|
|
2528
2545
|
_: 1
|
|
2529
2546
|
}, 8, ["aria-controls", "aria-expanded", "style", "onClick"])
|
|
2530
2547
|
])
|
|
2531
|
-
], 10,
|
|
2548
|
+
], 10, In),
|
|
2532
2549
|
m(u, C({
|
|
2533
2550
|
id: t.id,
|
|
2534
2551
|
ref: "contentWrapper",
|
|
@@ -2560,19 +2577,19 @@ function Cn(e, s, t, o, n, i) {
|
|
|
2560
2577
|
_: 3
|
|
2561
2578
|
}, 16);
|
|
2562
2579
|
}
|
|
2563
|
-
const
|
|
2580
|
+
const Xr = /* @__PURE__ */ v(Cn, [["render", En]]), zt = {
|
|
2564
2581
|
none: void 0,
|
|
2565
2582
|
small: "d-p4",
|
|
2566
2583
|
medium: "d-p8",
|
|
2567
2584
|
large: "d-p16"
|
|
2568
|
-
},
|
|
2585
|
+
}, kn = {
|
|
2569
2586
|
none: void 0,
|
|
2570
2587
|
small: "d-pl4",
|
|
2571
2588
|
medium: "d-pl8",
|
|
2572
2589
|
large: "d-pl16"
|
|
2573
|
-
},
|
|
2574
|
-
...
|
|
2575
|
-
],
|
|
2590
|
+
}, On = ["dialog", "menu", "listbox", "tree", "grid"], os = ["", "anchor"], Ln = ["none", "dialog", "first"], Me = ["parent", "body"], Tn = [
|
|
2591
|
+
...Ns
|
|
2592
|
+
], An = {
|
|
2576
2593
|
name: "PopoverHeaderFooter",
|
|
2577
2594
|
components: {
|
|
2578
2595
|
DtButton: K,
|
|
@@ -2633,7 +2650,7 @@ const Zr = /* @__PURE__ */ v(yn, [["render", Cn]]), Bt = {
|
|
|
2633
2650
|
}
|
|
2634
2651
|
}
|
|
2635
2652
|
};
|
|
2636
|
-
function
|
|
2653
|
+
function Dn(e, s, t, o, n, i) {
|
|
2637
2654
|
const r = f("dt-icon"), h = f("dt-button");
|
|
2638
2655
|
return a(), l("div", {
|
|
2639
2656
|
"data-qa": "dt-popover-header-footer",
|
|
@@ -2670,8 +2687,8 @@ function Ln(e, s, t, o, n, i) {
|
|
|
2670
2687
|
}, 16)) : p("", !0)
|
|
2671
2688
|
], 2);
|
|
2672
2689
|
}
|
|
2673
|
-
const
|
|
2674
|
-
const
|
|
2690
|
+
const Pn = /* @__PURE__ */ v(An, [["render", Dn]]);
|
|
2691
|
+
const xn = {
|
|
2675
2692
|
name: "DtPopover",
|
|
2676
2693
|
/********************
|
|
2677
2694
|
* CHILD COMPONENTS *
|
|
@@ -2679,7 +2696,7 @@ const An = {
|
|
|
2679
2696
|
components: {
|
|
2680
2697
|
SrOnlyCloseButton: Ne,
|
|
2681
2698
|
DtLazyShow: $e,
|
|
2682
|
-
PopoverHeaderFooter:
|
|
2699
|
+
PopoverHeaderFooter: Pn
|
|
2683
2700
|
},
|
|
2684
2701
|
mixins: [Le, ie],
|
|
2685
2702
|
props: {
|
|
@@ -2724,7 +2741,7 @@ const An = {
|
|
|
2724
2741
|
role: {
|
|
2725
2742
|
type: String,
|
|
2726
2743
|
default: "dialog",
|
|
2727
|
-
validator: (e) =>
|
|
2744
|
+
validator: (e) => On.includes(e)
|
|
2728
2745
|
},
|
|
2729
2746
|
/**
|
|
2730
2747
|
* ID of the element that serves as the label for the popover content.
|
|
@@ -2760,7 +2777,7 @@ const An = {
|
|
|
2760
2777
|
padding: {
|
|
2761
2778
|
type: String,
|
|
2762
2779
|
default: "large",
|
|
2763
|
-
validator: (e) => Object.keys(
|
|
2780
|
+
validator: (e) => Object.keys(zt).some((s) => s === e)
|
|
2764
2781
|
},
|
|
2765
2782
|
/**
|
|
2766
2783
|
* Additional class name for the content wrapper element.
|
|
@@ -2777,7 +2794,7 @@ const An = {
|
|
|
2777
2794
|
contentWidth: {
|
|
2778
2795
|
type: String,
|
|
2779
2796
|
default: "",
|
|
2780
|
-
validator: (e) =>
|
|
2797
|
+
validator: (e) => os.includes(e)
|
|
2781
2798
|
},
|
|
2782
2799
|
/**
|
|
2783
2800
|
* Whether to apply transition on initial render in the content lazy show component.
|
|
@@ -2911,7 +2928,7 @@ const An = {
|
|
|
2911
2928
|
sticky: {
|
|
2912
2929
|
type: [Boolean, String],
|
|
2913
2930
|
default: !1,
|
|
2914
|
-
validator: (e) =>
|
|
2931
|
+
validator: (e) => Tn.includes(e)
|
|
2915
2932
|
},
|
|
2916
2933
|
/**
|
|
2917
2934
|
* Determines maximum height for the popover before overflow.
|
|
@@ -2969,7 +2986,7 @@ const An = {
|
|
|
2969
2986
|
initialFocusElement: {
|
|
2970
2987
|
type: [String, HTMLElement],
|
|
2971
2988
|
default: "first",
|
|
2972
|
-
validator: (e) =>
|
|
2989
|
+
validator: (e) => Ln.includes(e) || e instanceof HTMLElement || e.startsWith("#")
|
|
2973
2990
|
},
|
|
2974
2991
|
/**
|
|
2975
2992
|
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
@@ -3014,8 +3031,8 @@ const An = {
|
|
|
3014
3031
|
],
|
|
3015
3032
|
data() {
|
|
3016
3033
|
return {
|
|
3017
|
-
POPOVER_PADDING_CLASSES:
|
|
3018
|
-
POPOVER_HEADER_FOOTER_PADDING_CLASSES:
|
|
3034
|
+
POPOVER_PADDING_CLASSES: zt,
|
|
3035
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES: kn,
|
|
3019
3036
|
intersectionObserver: null,
|
|
3020
3037
|
isOutsideViewport: !1,
|
|
3021
3038
|
isOpen: !1,
|
|
@@ -3122,11 +3139,11 @@ const An = {
|
|
|
3122
3139
|
const s = (o = e == null ? void 0 : e[0]) == null ? void 0 : o.target;
|
|
3123
3140
|
if (!s)
|
|
3124
3141
|
return;
|
|
3125
|
-
const t =
|
|
3142
|
+
const t = zs(s);
|
|
3126
3143
|
this.isOutsideViewport = t.bottom || t.top;
|
|
3127
3144
|
},
|
|
3128
3145
|
popperOptions() {
|
|
3129
|
-
return
|
|
3146
|
+
return Ms({
|
|
3130
3147
|
fallbackPlacements: this.fallbackPlacements,
|
|
3131
3148
|
tether: this.tether,
|
|
3132
3149
|
hasHideModifierEnabled: !0
|
|
@@ -3241,7 +3258,7 @@ const An = {
|
|
|
3241
3258
|
},
|
|
3242
3259
|
initTippyInstance() {
|
|
3243
3260
|
var e, s;
|
|
3244
|
-
this.tip =
|
|
3261
|
+
this.tip = Hs(this.anchorEl, {
|
|
3245
3262
|
popperOptions: this.popperOptions(),
|
|
3246
3263
|
contentElement: this.popoverContentEl,
|
|
3247
3264
|
placement: this.placement,
|
|
@@ -3259,11 +3276,11 @@ const An = {
|
|
|
3259
3276
|
});
|
|
3260
3277
|
}
|
|
3261
3278
|
}
|
|
3262
|
-
},
|
|
3263
|
-
function
|
|
3279
|
+
}, Rn = ["aria-hidden"], Bn = ["id", "tabindex"];
|
|
3280
|
+
function $n(e, s, t, o, n, i) {
|
|
3264
3281
|
const r = f("popover-header-footer"), h = f("sr-only-close-button"), u = f("dt-lazy-show");
|
|
3265
3282
|
return a(), l("div", null, [
|
|
3266
|
-
t.modal && n.isOpen ? (a(), S(
|
|
3283
|
+
t.modal && n.isOpen ? (a(), S(Wt, {
|
|
3267
3284
|
key: 0,
|
|
3268
3285
|
to: "body"
|
|
3269
3286
|
}, [
|
|
@@ -3272,7 +3289,7 @@ function xn(e, s, t, o, n, i) {
|
|
|
3272
3289
|
"aria-hidden": t.modal && n.isOpen ? "false" : "true",
|
|
3273
3290
|
onClick: s[0] || (s[0] = U(() => {
|
|
3274
3291
|
}, ["prevent", "stop"]))
|
|
3275
|
-
}, null, 8,
|
|
3292
|
+
}, null, 8, Rn)
|
|
3276
3293
|
])) : p("", !0),
|
|
3277
3294
|
(a(), S(X(t.elementType), {
|
|
3278
3295
|
ref: "popover",
|
|
@@ -3288,12 +3305,12 @@ function xn(e, s, t, o, n, i) {
|
|
|
3288
3305
|
onClickCapture: s[1] || (s[1] = (...g) => i.defaultToggleOpen && i.defaultToggleOpen(...g)),
|
|
3289
3306
|
onContextmenu: s[2] || (s[2] = (...g) => i.onContext && i.onContext(...g)),
|
|
3290
3307
|
onKeydown: [
|
|
3291
|
-
s[3] || (s[3] =
|
|
3292
|
-
s[4] || (s[4] =
|
|
3293
|
-
s[6] || (s[6] =
|
|
3294
|
-
s[7] || (s[7] =
|
|
3308
|
+
s[3] || (s[3] = F(U((...g) => i.onArrowKeyPress && i.onArrowKeyPress(...g), ["prevent"]), ["up"])),
|
|
3309
|
+
s[4] || (s[4] = F(U((...g) => i.onArrowKeyPress && i.onArrowKeyPress(...g), ["prevent"]), ["down"])),
|
|
3310
|
+
s[6] || (s[6] = F((g) => e.$emit("keydown", g), ["enter"])),
|
|
3311
|
+
s[7] || (s[7] = F((g) => e.$emit("keydown", g), ["space"]))
|
|
3295
3312
|
],
|
|
3296
|
-
onKeydownCapture: s[5] || (s[5] =
|
|
3313
|
+
onKeydownCapture: s[5] || (s[5] = F((...g) => i.closePopover && i.closePopover(...g), ["escape"]))
|
|
3297
3314
|
}, [
|
|
3298
3315
|
d(e.$slots, "anchor", {
|
|
3299
3316
|
attrs: {
|
|
@@ -3302,7 +3319,7 @@ function xn(e, s, t, o, n, i) {
|
|
|
3302
3319
|
"aria-haspopup": t.role
|
|
3303
3320
|
}
|
|
3304
3321
|
})
|
|
3305
|
-
], 40,
|
|
3322
|
+
], 40, Bn),
|
|
3306
3323
|
m(u, C({
|
|
3307
3324
|
id: t.id,
|
|
3308
3325
|
ref: "content",
|
|
@@ -3375,19 +3392,19 @@ function xn(e, s, t, o, n, i) {
|
|
|
3375
3392
|
}, 8, ["class"]))
|
|
3376
3393
|
]);
|
|
3377
3394
|
}
|
|
3378
|
-
const
|
|
3395
|
+
const ot = /* @__PURE__ */ v(xn, [["render", $n]]), ve = {
|
|
3379
3396
|
none: void 0,
|
|
3380
3397
|
small: "d-py0",
|
|
3381
3398
|
large: "d-py4"
|
|
3382
3399
|
};
|
|
3383
|
-
const
|
|
3400
|
+
const Nn = {
|
|
3384
3401
|
name: "DtDropdown",
|
|
3385
3402
|
components: {
|
|
3386
|
-
DtPopover:
|
|
3403
|
+
DtPopover: ot,
|
|
3387
3404
|
SrOnlyCloseButton: Ne
|
|
3388
3405
|
},
|
|
3389
3406
|
mixins: [
|
|
3390
|
-
|
|
3407
|
+
ss({
|
|
3391
3408
|
indexKey: "highlightIndex",
|
|
3392
3409
|
idKey: "highlightId",
|
|
3393
3410
|
listElementKey: "getListElement",
|
|
@@ -3717,8 +3734,8 @@ const Rn = {
|
|
|
3717
3734
|
return e.stopPropagation(), e.preventDefault(), this.onNavigationKey(e.key);
|
|
3718
3735
|
}
|
|
3719
3736
|
}
|
|
3720
|
-
},
|
|
3721
|
-
function
|
|
3737
|
+
}, zn = ["id"];
|
|
3738
|
+
function Mn(e, s, t, o, n, i) {
|
|
3722
3739
|
const r = f("sr-only-close-button"), h = f("dt-popover");
|
|
3723
3740
|
return a(), S(h, C({
|
|
3724
3741
|
ref: "popover",
|
|
@@ -3758,22 +3775,22 @@ function $n(e, s, t, o, n, i) {
|
|
|
3758
3775
|
tabindex: i.isArrowKeyNav ? -1 : 0,
|
|
3759
3776
|
onClose: u
|
|
3760
3777
|
}, null, 8, ["visually-hidden-close-label", "tabindex", "onClose"])) : p("", !0)
|
|
3761
|
-
], 42,
|
|
3778
|
+
], 42, zn)
|
|
3762
3779
|
]),
|
|
3763
3780
|
_: 3
|
|
3764
3781
|
}, 16, ["content-width", "open", "placement", "initial-focus-element", "fallback-placements", "append-to", "modal", "max-height", "max-width", "open-with-arrow-keys", "open-on-context", "tether", "transition"]);
|
|
3765
3782
|
}
|
|
3766
|
-
const
|
|
3767
|
-
const
|
|
3783
|
+
const Hn = /* @__PURE__ */ v(Nn, [["render", Mn]]);
|
|
3784
|
+
const Fn = {
|
|
3768
3785
|
name: "DtDropdownSeparator"
|
|
3769
|
-
},
|
|
3786
|
+
}, Vn = {
|
|
3770
3787
|
"aria-hidden": "true",
|
|
3771
3788
|
class: "dt-list-separator d-my4 d-mxn4"
|
|
3772
3789
|
};
|
|
3773
|
-
function
|
|
3774
|
-
return a(), l("li",
|
|
3790
|
+
function qn(e, s, t, o, n, i) {
|
|
3791
|
+
return a(), l("li", Vn);
|
|
3775
3792
|
}
|
|
3776
|
-
const
|
|
3793
|
+
const Jr = /* @__PURE__ */ v(Fn, [["render", qn]]), Kn = {
|
|
3777
3794
|
name: "DtImageViewer",
|
|
3778
3795
|
components: {
|
|
3779
3796
|
DtButton: K,
|
|
@@ -3901,13 +3918,13 @@ const Yr = /* @__PURE__ */ v(zn, [["render", Hn]]), Vn = {
|
|
|
3901
3918
|
this.isOpen && this.focusTrappedTabPress(e);
|
|
3902
3919
|
}
|
|
3903
3920
|
}
|
|
3904
|
-
},
|
|
3921
|
+
}, jn = ["src", "alt"], Gn = ["aria-hidden"], Un = {
|
|
3905
3922
|
"data-qa": "dt-image-viewer-full",
|
|
3906
3923
|
class: "d-p0 d-bar0 d-wmx80p d-hmx80p",
|
|
3907
3924
|
role: "dialog",
|
|
3908
3925
|
"aria-modal": "true"
|
|
3909
|
-
},
|
|
3910
|
-
function
|
|
3926
|
+
}, Wn = ["src", "alt"];
|
|
3927
|
+
function Zn(e, s, t, o, n, i) {
|
|
3911
3928
|
const r = f("dt-button"), h = f("dt-icon");
|
|
3912
3929
|
return a(), l("div", null, [
|
|
3913
3930
|
m(r, {
|
|
@@ -3922,11 +3939,11 @@ function Gn(e, s, t, o, n, i) {
|
|
|
3922
3939
|
class: y(t.imageButtonClass),
|
|
3923
3940
|
src: t.imageSrc,
|
|
3924
3941
|
alt: t.imageAlt
|
|
3925
|
-
}, null, 10,
|
|
3942
|
+
}, null, 10, jn)
|
|
3926
3943
|
]),
|
|
3927
3944
|
_: 1
|
|
3928
3945
|
}, 8, ["aria-label", "onClick"]),
|
|
3929
|
-
n.isOpen ? (a(), S(
|
|
3946
|
+
n.isOpen ? (a(), S(Wt, {
|
|
3930
3947
|
key: 0,
|
|
3931
3948
|
to: "body"
|
|
3932
3949
|
}, [
|
|
@@ -3940,14 +3957,14 @@ function Gn(e, s, t, o, n, i) {
|
|
|
3940
3957
|
onFocusin: s[2] || (s[2] = (u) => n.showCloseButton = !0),
|
|
3941
3958
|
onFocusout: s[3] || (s[3] = (u) => n.showCloseButton = !1)
|
|
3942
3959
|
}), [
|
|
3943
|
-
_("div",
|
|
3960
|
+
_("div", Un, [
|
|
3944
3961
|
_("img", {
|
|
3945
3962
|
class: "d-wmx100p d-hmx100p",
|
|
3946
3963
|
src: t.imageSrc,
|
|
3947
3964
|
alt: t.imageAlt
|
|
3948
|
-
}, null, 8,
|
|
3965
|
+
}, null, 8, Wn)
|
|
3949
3966
|
]),
|
|
3950
|
-
m(
|
|
3967
|
+
m(Ze, { name: "fade" }, {
|
|
3951
3968
|
default: c(() => [
|
|
3952
3969
|
n.showCloseButton ? (a(), S(r, {
|
|
3953
3970
|
key: 0,
|
|
@@ -3972,11 +3989,11 @@ function Gn(e, s, t, o, n, i) {
|
|
|
3972
3989
|
]),
|
|
3973
3990
|
_: 1
|
|
3974
3991
|
})
|
|
3975
|
-
], 16,
|
|
3992
|
+
], 16, Gn)
|
|
3976
3993
|
])) : p("", !0)
|
|
3977
3994
|
]);
|
|
3978
3995
|
}
|
|
3979
|
-
const
|
|
3996
|
+
const ed = /* @__PURE__ */ v(Kn, [["render", Zn]]), Yn = {
|
|
3980
3997
|
components: { DtValidationMessages: me },
|
|
3981
3998
|
// provide data to slotted components
|
|
3982
3999
|
provide() {
|
|
@@ -4030,7 +4047,7 @@ const Qr = /* @__PURE__ */ v(Vn, [["render", Gn]]), Un = {
|
|
|
4030
4047
|
messages: {
|
|
4031
4048
|
type: Array,
|
|
4032
4049
|
default: () => [],
|
|
4033
|
-
validator: (e) =>
|
|
4050
|
+
validator: (e) => Qt(e)
|
|
4034
4051
|
},
|
|
4035
4052
|
/**
|
|
4036
4053
|
* Show validation messages
|
|
@@ -4079,22 +4096,22 @@ const Qr = /* @__PURE__ */ v(Vn, [["render", Gn]]), Un = {
|
|
|
4079
4096
|
"input"
|
|
4080
4097
|
],
|
|
4081
4098
|
data() {
|
|
4082
|
-
const e =
|
|
4099
|
+
const e = Tt(this.messages);
|
|
4083
4100
|
return {
|
|
4084
4101
|
// wrap values in object to make reactive
|
|
4085
4102
|
provideObj: {
|
|
4086
4103
|
name: this.name,
|
|
4087
4104
|
disabled: this.disabled,
|
|
4088
|
-
validationState:
|
|
4105
|
+
validationState: We(e)
|
|
4089
4106
|
}
|
|
4090
4107
|
};
|
|
4091
4108
|
},
|
|
4092
4109
|
computed: {
|
|
4093
4110
|
formattedMessages() {
|
|
4094
|
-
return
|
|
4111
|
+
return Tt(this.messages);
|
|
4095
4112
|
},
|
|
4096
4113
|
validationState() {
|
|
4097
|
-
return
|
|
4114
|
+
return We(this.formattedMessages);
|
|
4098
4115
|
}
|
|
4099
4116
|
},
|
|
4100
4117
|
watch: {
|
|
@@ -4117,10 +4134,10 @@ const Qr = /* @__PURE__ */ v(Vn, [["render", Gn]]), Un = {
|
|
|
4117
4134
|
mounted() {
|
|
4118
4135
|
!this.legend && !this.$slots.legend && !this.$attrs["aria-label"] && we("It is expected that an aria-label is provided when there is no legend.", this);
|
|
4119
4136
|
}
|
|
4120
|
-
},
|
|
4137
|
+
}, Qn = {
|
|
4121
4138
|
name: "DtInputGroup",
|
|
4122
4139
|
components: { DtValidationMessages: me },
|
|
4123
|
-
mixins: [
|
|
4140
|
+
mixins: [Yn],
|
|
4124
4141
|
props: {
|
|
4125
4142
|
/**
|
|
4126
4143
|
* A data qa tag for the input group
|
|
@@ -4171,8 +4188,8 @@ const Qr = /* @__PURE__ */ v(Vn, [["render", Gn]]), Un = {
|
|
|
4171
4188
|
return `input-group-message-${e}-${s}-${this.id}`;
|
|
4172
4189
|
}
|
|
4173
4190
|
}
|
|
4174
|
-
},
|
|
4175
|
-
function
|
|
4191
|
+
}, Xn = ["data-qa"], Jn = ["data-qa"];
|
|
4192
|
+
function ea(e, s, t, o, n, i) {
|
|
4176
4193
|
const r = f("dt-validation-messages");
|
|
4177
4194
|
return a(), l("fieldset", { "data-qa": t.dataQaGroup }, [
|
|
4178
4195
|
n.hasSlotContent(e.$slots.legend) || e.legend ? (a(), l("legend", C({
|
|
@@ -4182,7 +4199,7 @@ function Qn(e, s, t, o, n, i) {
|
|
|
4182
4199
|
d(e.$slots, "legend", {}, () => [
|
|
4183
4200
|
P(I(e.legend), 1)
|
|
4184
4201
|
])
|
|
4185
|
-
], 16,
|
|
4202
|
+
], 16, Jn)) : p("", !0),
|
|
4186
4203
|
d(e.$slots, "default"),
|
|
4187
4204
|
m(r, C({
|
|
4188
4205
|
"validation-messages": e.formattedMessages,
|
|
@@ -4190,26 +4207,26 @@ function Qn(e, s, t, o, n, i) {
|
|
|
4190
4207
|
class: e.messagesClass,
|
|
4191
4208
|
"data-qa": t.dataQaGroupMessages
|
|
4192
4209
|
}, e.messagesChildProps), null, 16, ["validation-messages", "show-messages", "class", "data-qa"])
|
|
4193
|
-
], 8,
|
|
4210
|
+
], 8, Xn);
|
|
4194
4211
|
}
|
|
4195
|
-
const
|
|
4212
|
+
const ls = /* @__PURE__ */ v(Qn, [["render", ea]]), Mt = {
|
|
4196
4213
|
default: "",
|
|
4197
4214
|
danger: "d-modal--danger"
|
|
4198
|
-
},
|
|
4215
|
+
}, Ht = {
|
|
4199
4216
|
default: "",
|
|
4200
4217
|
full: "d-modal--full"
|
|
4201
|
-
},
|
|
4218
|
+
}, Ft = {
|
|
4202
4219
|
error: "d-modal__banner--critical",
|
|
4203
4220
|
info: "d-modal__banner--info",
|
|
4204
4221
|
success: "d-modal__banner--success",
|
|
4205
4222
|
warning: "d-modal__banner--warning",
|
|
4206
4223
|
base: "d-modal__banner--general"
|
|
4207
|
-
},
|
|
4224
|
+
}, ta = {
|
|
4208
4225
|
name: "DtNotice",
|
|
4209
4226
|
components: {
|
|
4210
|
-
DtNoticeIcon:
|
|
4211
|
-
DtNoticeContent:
|
|
4212
|
-
DtNoticeAction:
|
|
4227
|
+
DtNoticeIcon: it,
|
|
4228
|
+
DtNoticeContent: nt,
|
|
4229
|
+
DtNoticeAction: at
|
|
4213
4230
|
},
|
|
4214
4231
|
mixins: [ie],
|
|
4215
4232
|
props: {
|
|
@@ -4246,7 +4263,7 @@ const ns = /* @__PURE__ */ v(Wn, [["render", Qn]]), $t = {
|
|
|
4246
4263
|
type: String,
|
|
4247
4264
|
default: "status",
|
|
4248
4265
|
validate(e) {
|
|
4249
|
-
return
|
|
4266
|
+
return ui.includes(e);
|
|
4250
4267
|
}
|
|
4251
4268
|
},
|
|
4252
4269
|
/**
|
|
@@ -4316,7 +4333,7 @@ const ns = /* @__PURE__ */ v(Wn, [["render", Qn]]), $t = {
|
|
|
4316
4333
|
}
|
|
4317
4334
|
}
|
|
4318
4335
|
};
|
|
4319
|
-
function
|
|
4336
|
+
function sa(e, s, t, o, n, i) {
|
|
4320
4337
|
const r = f("dt-notice-icon"), h = f("dt-notice-content"), u = f("dt-notice-action");
|
|
4321
4338
|
return a(), l("aside", {
|
|
4322
4339
|
class: y(i.noticeClass),
|
|
@@ -4356,7 +4373,7 @@ function Jn(e, s, t, o, n, i) {
|
|
|
4356
4373
|
}, 8, ["hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label"])
|
|
4357
4374
|
], 2);
|
|
4358
4375
|
}
|
|
4359
|
-
const
|
|
4376
|
+
const td = /* @__PURE__ */ v(ta, [["render", sa]]), ia = {
|
|
4360
4377
|
name: "DtModal",
|
|
4361
4378
|
components: {
|
|
4362
4379
|
DtLazyShow: $e,
|
|
@@ -4430,7 +4447,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4430
4447
|
kind: {
|
|
4431
4448
|
type: String,
|
|
4432
4449
|
default: "default",
|
|
4433
|
-
validator: (e) => Object.keys(
|
|
4450
|
+
validator: (e) => Object.keys(Mt).includes(e)
|
|
4434
4451
|
},
|
|
4435
4452
|
/**
|
|
4436
4453
|
* The size of the modal. size - default or full,
|
|
@@ -4439,7 +4456,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4439
4456
|
size: {
|
|
4440
4457
|
type: String,
|
|
4441
4458
|
default: "default",
|
|
4442
|
-
validator: (e) => Object.keys(
|
|
4459
|
+
validator: (e) => Object.keys(Ht).includes(e)
|
|
4443
4460
|
},
|
|
4444
4461
|
/**
|
|
4445
4462
|
* Additional class name for the root modal element.
|
|
@@ -4511,6 +4528,18 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4511
4528
|
fixedHeaderFooter: {
|
|
4512
4529
|
type: Boolean,
|
|
4513
4530
|
default: !0
|
|
4531
|
+
},
|
|
4532
|
+
/**
|
|
4533
|
+
* The element that is focused when the modal is opened. This can be an
|
|
4534
|
+
* HTMLElement within the modal, a string starting with '#' which will
|
|
4535
|
+
* find the element by ID. 'first' which will automatically focus
|
|
4536
|
+
* the first element, or 'dialog' which will focus the dialog window itself.
|
|
4537
|
+
* If the dialog is modal this prop cannot be 'none'.
|
|
4538
|
+
*/
|
|
4539
|
+
initialFocusElement: {
|
|
4540
|
+
type: [String, HTMLElement],
|
|
4541
|
+
default: "first",
|
|
4542
|
+
validator: (e) => e === "first" || e instanceof HTMLElement || e.startsWith("#")
|
|
4514
4543
|
}
|
|
4515
4544
|
},
|
|
4516
4545
|
emits: [
|
|
@@ -4539,9 +4568,9 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4539
4568
|
],
|
|
4540
4569
|
data() {
|
|
4541
4570
|
return {
|
|
4542
|
-
MODAL_KIND_MODIFIERS:
|
|
4543
|
-
MODAL_SIZE_MODIFIERS:
|
|
4544
|
-
MODAL_BANNER_KINDS:
|
|
4571
|
+
MODAL_KIND_MODIFIERS: Mt,
|
|
4572
|
+
MODAL_SIZE_MODIFIERS: Ht,
|
|
4573
|
+
MODAL_BANNER_KINDS: Ft,
|
|
4545
4574
|
EVENT_KEYNAMES: H,
|
|
4546
4575
|
hasSlotContent: $
|
|
4547
4576
|
};
|
|
@@ -4565,7 +4594,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4565
4594
|
this.$emit("keydown", e);
|
|
4566
4595
|
},
|
|
4567
4596
|
"after-enter": (e) => {
|
|
4568
|
-
e.target === e.currentTarget && this.setFocusAfterTransition();
|
|
4597
|
+
this.$emit("update:show", !0), e.target === e.currentTarget && this.setFocusAfterTransition();
|
|
4569
4598
|
}
|
|
4570
4599
|
};
|
|
4571
4600
|
},
|
|
@@ -4576,7 +4605,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4576
4605
|
return !!this.$slots.footer;
|
|
4577
4606
|
},
|
|
4578
4607
|
bannerKindClass() {
|
|
4579
|
-
return
|
|
4608
|
+
return Ft[this.bannerKind];
|
|
4580
4609
|
}
|
|
4581
4610
|
},
|
|
4582
4611
|
watch: {
|
|
@@ -4600,7 +4629,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4600
4629
|
this.$emit("update:show", !1);
|
|
4601
4630
|
},
|
|
4602
4631
|
setFocusAfterTransition() {
|
|
4603
|
-
this.focusFirstElement();
|
|
4632
|
+
this.initialFocusElement === "first" ? this.focusFirstElement() : this.initialFocusElement.startsWith("#") ? this.focusElementById(this.initialFocusElement) : this.initialFocusElement instanceof HTMLElement && this.initialFocusElement.focus();
|
|
4604
4633
|
},
|
|
4605
4634
|
trapFocus(e) {
|
|
4606
4635
|
this.show && this.focusTrappedTabPress(e);
|
|
@@ -4610,11 +4639,11 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4610
4639
|
need to be set so the component always includes a close button`);
|
|
4611
4640
|
}
|
|
4612
4641
|
}
|
|
4613
|
-
},
|
|
4642
|
+
}, na = ["aria-describedby", "aria-labelledby"], aa = ["id"], oa = ["id"], la = {
|
|
4614
4643
|
key: 4,
|
|
4615
4644
|
class: "d-modal__footer"
|
|
4616
4645
|
};
|
|
4617
|
-
function
|
|
4646
|
+
function ra(e, s, t, o, n, i) {
|
|
4618
4647
|
const r = f("dt-icon"), h = f("dt-button"), u = f("sr-only-close-button"), g = f("dt-lazy-show");
|
|
4619
4648
|
return a(), S(g, C({
|
|
4620
4649
|
transition: "d-zoom",
|
|
@@ -4642,7 +4671,7 @@ function aa(e, s, t, o, n, i) {
|
|
|
4642
4671
|
P(I(t.bannerTitle), 1)
|
|
4643
4672
|
])
|
|
4644
4673
|
], 2)) : p("", !0),
|
|
4645
|
-
m(
|
|
4674
|
+
m(Ze, {
|
|
4646
4675
|
appear: "",
|
|
4647
4676
|
name: "d-modal__dialog"
|
|
4648
4677
|
}, {
|
|
@@ -4665,12 +4694,12 @@ function aa(e, s, t, o, n, i) {
|
|
|
4665
4694
|
"data-qa": "dt-modal-title"
|
|
4666
4695
|
}, [
|
|
4667
4696
|
d(e.$slots, "header")
|
|
4668
|
-
], 8,
|
|
4697
|
+
], 8, aa)) : (a(), l("h2", {
|
|
4669
4698
|
key: 1,
|
|
4670
4699
|
id: t.labelledById,
|
|
4671
4700
|
class: "d-modal__header",
|
|
4672
4701
|
"data-qa": "dt-modal-title"
|
|
4673
|
-
}, I(t.title), 9,
|
|
4702
|
+
}, I(t.title), 9, oa)),
|
|
4674
4703
|
n.hasSlotContent(e.$slots.default) ? (a(), l("div", {
|
|
4675
4704
|
key: 2,
|
|
4676
4705
|
class: y([
|
|
@@ -4688,7 +4717,7 @@ function aa(e, s, t, o, n, i) {
|
|
|
4688
4717
|
]),
|
|
4689
4718
|
"data-qa": "dt-modal-copy"
|
|
4690
4719
|
}, I(t.copy), 3)),
|
|
4691
|
-
i.hasFooterSlot ? (a(), l("footer",
|
|
4720
|
+
i.hasFooterSlot ? (a(), l("footer", la, [
|
|
4692
4721
|
d(e.$slots, "footer")
|
|
4693
4722
|
])) : p("", !0),
|
|
4694
4723
|
t.hideClose ? p("", !0) : (a(), S(h, C({
|
|
@@ -4712,7 +4741,7 @@ function aa(e, s, t, o, n, i) {
|
|
|
4712
4741
|
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
4713
4742
|
onClose: i.close
|
|
4714
4743
|
}, null, 8, ["visually-hidden-close-label", "onClose"])) : p("", !0)
|
|
4715
|
-
], 10,
|
|
4744
|
+
], 10, na), [
|
|
4716
4745
|
[Ce, t.show]
|
|
4717
4746
|
])
|
|
4718
4747
|
]),
|
|
@@ -4722,8 +4751,8 @@ function aa(e, s, t, o, n, i) {
|
|
|
4722
4751
|
_: 3
|
|
4723
4752
|
}, 16, ["show", "class", "aria-hidden"]);
|
|
4724
4753
|
}
|
|
4725
|
-
const
|
|
4726
|
-
const
|
|
4754
|
+
const sd = /* @__PURE__ */ v(ia, [["render", ra]]);
|
|
4755
|
+
const da = {
|
|
4727
4756
|
name: "ListSection",
|
|
4728
4757
|
components: {
|
|
4729
4758
|
// little trick to render vnode objects via a render function
|
|
@@ -4798,8 +4827,8 @@ const oa = {
|
|
|
4798
4827
|
this.showAll = !this.showAll;
|
|
4799
4828
|
}
|
|
4800
4829
|
}
|
|
4801
|
-
},
|
|
4802
|
-
function
|
|
4830
|
+
}, ca = ["id", "aria-labelledby"], ua = ["id"], ha = ["id"], fa = ["id"], pa = { class: "d-d-flex" };
|
|
4831
|
+
function ma(e, s, t, o, n, i) {
|
|
4803
4832
|
const r = f("vnodes"), h = f("dt-button");
|
|
4804
4833
|
return a(), l("div", {
|
|
4805
4834
|
id: t.id,
|
|
@@ -4819,19 +4848,19 @@ function ha(e, s, t, o, n, i) {
|
|
|
4819
4848
|
key: 0,
|
|
4820
4849
|
id: `${t.id}-list-section-header`,
|
|
4821
4850
|
class: "d-pl12 d-mt6"
|
|
4822
|
-
}, I(t.header), 9,
|
|
4851
|
+
}, I(t.header), 9, ua)) : p("", !0),
|
|
4823
4852
|
!i.isCollapsible || n.showAll ? (a(), l("ol", {
|
|
4824
4853
|
key: 1,
|
|
4825
4854
|
id: `${t.id}-list-section-content`
|
|
4826
4855
|
}, [
|
|
4827
4856
|
d(e.$slots, "default")
|
|
4828
|
-
], 8,
|
|
4857
|
+
], 8, ha)) : (a(), l("ol", {
|
|
4829
4858
|
key: 2,
|
|
4830
4859
|
id: `${t.id}-list-section-content`
|
|
4831
4860
|
}, [
|
|
4832
4861
|
m(r, { vnodes: i.displayedItems }, null, 8, ["vnodes"])
|
|
4833
|
-
], 8,
|
|
4834
|
-
_("div",
|
|
4862
|
+
], 8, fa)),
|
|
4863
|
+
_("div", pa, [
|
|
4835
4864
|
i.isCollapsible ? (a(), S(h, {
|
|
4836
4865
|
key: 0,
|
|
4837
4866
|
id: `${t.id}-list-section-show-more-less`,
|
|
@@ -4846,9 +4875,9 @@ function ha(e, s, t, o, n, i) {
|
|
|
4846
4875
|
}, 8, ["id", "onClick"])) : p("", !0),
|
|
4847
4876
|
d(e.$slots, "footer")
|
|
4848
4877
|
])
|
|
4849
|
-
], 10,
|
|
4878
|
+
], 10, ca);
|
|
4850
4879
|
}
|
|
4851
|
-
const
|
|
4880
|
+
const id = /* @__PURE__ */ v(da, [["render", ma]]), ga = {
|
|
4852
4881
|
name: "DtListItemGroup",
|
|
4853
4882
|
props: {
|
|
4854
4883
|
/**
|
|
@@ -4882,8 +4911,8 @@ const ed = /* @__PURE__ */ v(oa, [["render", ha]]), fa = {
|
|
|
4882
4911
|
default: ""
|
|
4883
4912
|
}
|
|
4884
4913
|
}
|
|
4885
|
-
},
|
|
4886
|
-
function
|
|
4914
|
+
}, _a = ["id", "aria-labelledby"], ba = ["id"];
|
|
4915
|
+
function ya(e, s, t, o, n, i) {
|
|
4887
4916
|
return a(), l("ul", {
|
|
4888
4917
|
id: t.id,
|
|
4889
4918
|
class: y(["d-ps-relative", "d-px0", t.listClass]),
|
|
@@ -4901,11 +4930,11 @@ function ga(e, s, t, o, n, i) {
|
|
|
4901
4930
|
d(e.$slots, "headingSlot", {}, () => [
|
|
4902
4931
|
P(I(t.heading), 1)
|
|
4903
4932
|
])
|
|
4904
|
-
], 10,
|
|
4933
|
+
], 10, ba)) : p("", !0),
|
|
4905
4934
|
d(e.$slots, "default")
|
|
4906
|
-
], 10,
|
|
4935
|
+
], 10, _a);
|
|
4907
4936
|
}
|
|
4908
|
-
const
|
|
4937
|
+
const nd = /* @__PURE__ */ v(ga, [["render", ya]]), va = {
|
|
4909
4938
|
name: "DtPagination",
|
|
4910
4939
|
components: {
|
|
4911
4940
|
DtButton: K,
|
|
@@ -5011,12 +5040,12 @@ const td = /* @__PURE__ */ v(fa, [["render", ga]]), _a = {
|
|
|
5011
5040
|
this.currentPage = e, this.$emit("change", this.currentPage);
|
|
5012
5041
|
}
|
|
5013
5042
|
}
|
|
5014
|
-
},
|
|
5043
|
+
}, Sa = ["aria-label"], Ca = {
|
|
5015
5044
|
key: 0,
|
|
5016
5045
|
class: "d-fc-tertiary d-w24 d-ta-center",
|
|
5017
5046
|
"data-qa": "dt-pagination-separator"
|
|
5018
5047
|
};
|
|
5019
|
-
function
|
|
5048
|
+
function Ia(e, s, t, o, n, i) {
|
|
5020
5049
|
const r = f("dt-icon"), h = f("dt-button");
|
|
5021
5050
|
return a(), l("nav", {
|
|
5022
5051
|
"aria-label": t.ariaLabel,
|
|
@@ -5043,7 +5072,7 @@ function va(e, s, t, o, n, i) {
|
|
|
5043
5072
|
key: `page-${u}-${g}`,
|
|
5044
5073
|
class: y({ "d-as-flex-end": isNaN(Number(u)) })
|
|
5045
5074
|
}, [
|
|
5046
|
-
isNaN(Number(u)) ? (a(), l("div",
|
|
5075
|
+
isNaN(Number(u)) ? (a(), l("div", Ca, [
|
|
5047
5076
|
m(r, {
|
|
5048
5077
|
name: "more-horizontal",
|
|
5049
5078
|
size: "300"
|
|
@@ -5079,16 +5108,16 @@ function va(e, s, t, o, n, i) {
|
|
|
5079
5108
|
]),
|
|
5080
5109
|
_: 1
|
|
5081
5110
|
}, 8, ["aria-label", "disabled", "importance", "class"])
|
|
5082
|
-
], 8,
|
|
5111
|
+
], 8, Sa);
|
|
5083
5112
|
}
|
|
5084
|
-
const
|
|
5113
|
+
const ad = /* @__PURE__ */ v(va, [["render", Ia]]), wa = {
|
|
5085
5114
|
warning: "d-radio--warning",
|
|
5086
5115
|
error: "d-radio--error",
|
|
5087
5116
|
success: "d-radio--success"
|
|
5088
|
-
},
|
|
5117
|
+
}, Ea = {
|
|
5089
5118
|
name: "DtRadio",
|
|
5090
5119
|
components: { DtValidationMessages: me },
|
|
5091
|
-
mixins: [
|
|
5120
|
+
mixins: [Xt, Jt, es, Xe],
|
|
5092
5121
|
inheritAttrs: !1,
|
|
5093
5122
|
props: {
|
|
5094
5123
|
/**
|
|
@@ -5143,7 +5172,7 @@ const sd = /* @__PURE__ */ v(_a, [["render", va]]), Sa = {
|
|
|
5143
5172
|
},
|
|
5144
5173
|
computed: {
|
|
5145
5174
|
inputValidationClass() {
|
|
5146
|
-
return
|
|
5175
|
+
return wa[this.internalValidationState];
|
|
5147
5176
|
},
|
|
5148
5177
|
radioGroupValue() {
|
|
5149
5178
|
var e;
|
|
@@ -5177,17 +5206,17 @@ const sd = /* @__PURE__ */ v(_a, [["render", va]]), Sa = {
|
|
|
5177
5206
|
e !== this.radioGroupValue && (this.setGroupValue(e), this.$emit("input", e));
|
|
5178
5207
|
}
|
|
5179
5208
|
}
|
|
5180
|
-
},
|
|
5209
|
+
}, ka = { class: "d-radio__input" }, Oa = ["checked", "name", "value", "disabled"], La = {
|
|
5181
5210
|
class: "d-radio__copy d-radio__label",
|
|
5182
5211
|
"data-qa": "radio-label-description-container"
|
|
5183
5212
|
};
|
|
5184
|
-
function
|
|
5213
|
+
function Ta(e, s, t, o, n, i) {
|
|
5185
5214
|
const r = f("dt-validation-messages");
|
|
5186
5215
|
return a(), l("label", null, [
|
|
5187
5216
|
_("div", {
|
|
5188
5217
|
class: y(["d-radio-group", { "d-radio-group--disabled": e.internalDisabled }])
|
|
5189
5218
|
}, [
|
|
5190
|
-
_("div",
|
|
5219
|
+
_("div", ka, [
|
|
5191
5220
|
_("input", C({
|
|
5192
5221
|
checked: e.internalChecked,
|
|
5193
5222
|
name: e.internalName,
|
|
@@ -5195,9 +5224,9 @@ function Ea(e, s, t, o, n, i) {
|
|
|
5195
5224
|
disabled: e.internalDisabled,
|
|
5196
5225
|
type: "radio",
|
|
5197
5226
|
class: ["d-radio", i.inputValidationClass, e.inputClass]
|
|
5198
|
-
}, e.$attrs, M(i.inputListeners, !0)), null, 16,
|
|
5227
|
+
}, e.$attrs, M(i.inputListeners, !0)), null, 16, Oa)
|
|
5199
5228
|
]),
|
|
5200
|
-
_("div",
|
|
5229
|
+
_("div", La, [
|
|
5201
5230
|
_("div", C({ class: e.labelClass }, e.labelChildProps, { "data-qa": "radio-label" }), [
|
|
5202
5231
|
d(e.$slots, "default", {}, () => [
|
|
5203
5232
|
P(I(e.label), 1)
|
|
@@ -5220,9 +5249,9 @@ function Ea(e, s, t, o, n, i) {
|
|
|
5220
5249
|
], 2)
|
|
5221
5250
|
]);
|
|
5222
5251
|
}
|
|
5223
|
-
const
|
|
5252
|
+
const od = /* @__PURE__ */ v(Ea, [["render", Ta]]), ld = {
|
|
5224
5253
|
name: "DtRadioGroup",
|
|
5225
|
-
extends:
|
|
5254
|
+
extends: ls,
|
|
5226
5255
|
props: {
|
|
5227
5256
|
/**
|
|
5228
5257
|
* A provided value for the radio group
|
|
@@ -5296,7 +5325,7 @@ const id = /* @__PURE__ */ v(Ca, [["render", Ea]]), nd = {
|
|
|
5296
5325
|
return `radio-group-message-${e}-${s}-${this.id}`;
|
|
5297
5326
|
}
|
|
5298
5327
|
}
|
|
5299
|
-
},
|
|
5328
|
+
}, Aa = {
|
|
5300
5329
|
name: "DtTabPanel",
|
|
5301
5330
|
mixins: [Le],
|
|
5302
5331
|
inject: ["groupContext"],
|
|
@@ -5358,8 +5387,8 @@ const id = /* @__PURE__ */ v(Ca, [["render", Ea]]), nd = {
|
|
|
5358
5387
|
return t;
|
|
5359
5388
|
}
|
|
5360
5389
|
}
|
|
5361
|
-
},
|
|
5362
|
-
function
|
|
5390
|
+
}, Da = ["id", "tabindex", "aria-labelledby", "aria-hidden"];
|
|
5391
|
+
function Pa(e, s, t, o, n, i) {
|
|
5363
5392
|
return Se((a(), l("div", {
|
|
5364
5393
|
id: `dt-panel-${t.id}`,
|
|
5365
5394
|
role: "tabpanel",
|
|
@@ -5375,18 +5404,18 @@ function Ta(e, s, t, o, n, i) {
|
|
|
5375
5404
|
"data-qa": "dt-tab-panel"
|
|
5376
5405
|
}, [
|
|
5377
5406
|
d(e.$slots, "default")
|
|
5378
|
-
], 10,
|
|
5407
|
+
], 10, Da)), [
|
|
5379
5408
|
[Ce, !t.hidden]
|
|
5380
5409
|
]);
|
|
5381
5410
|
}
|
|
5382
|
-
const
|
|
5411
|
+
const rd = /* @__PURE__ */ v(Aa, [["render", Pa]]), xa = {
|
|
5383
5412
|
error: "d-checkbox--error",
|
|
5384
5413
|
warning: "d-checkbox--warning",
|
|
5385
5414
|
success: "d-checkbox--success"
|
|
5386
|
-
},
|
|
5415
|
+
}, Ra = {
|
|
5387
5416
|
name: "DtCheckbox",
|
|
5388
5417
|
components: { DtValidationMessages: me },
|
|
5389
|
-
mixins: [
|
|
5418
|
+
mixins: [Xt, Jt, es, Xe],
|
|
5390
5419
|
inheritAttrs: !1,
|
|
5391
5420
|
emits: [
|
|
5392
5421
|
/**
|
|
@@ -5413,7 +5442,7 @@ const ad = /* @__PURE__ */ v(Oa, [["render", Ta]]), Aa = {
|
|
|
5413
5442
|
],
|
|
5414
5443
|
computed: {
|
|
5415
5444
|
inputValidationClass() {
|
|
5416
|
-
return
|
|
5445
|
+
return xa[this.internalValidationState];
|
|
5417
5446
|
},
|
|
5418
5447
|
checkboxGroupValueChecked() {
|
|
5419
5448
|
var e, s;
|
|
@@ -5463,18 +5492,18 @@ const ad = /* @__PURE__ */ v(Oa, [["render", Ta]]), Aa = {
|
|
|
5463
5492
|
this.validateInputLabels(this.hasLabel, this.$attrs["aria-label"]);
|
|
5464
5493
|
}
|
|
5465
5494
|
}
|
|
5466
|
-
},
|
|
5495
|
+
}, Ba = { class: "d-checkbox__input" }, $a = ["checked", "name", "value", "disabled", ".indeterminate"], Na = {
|
|
5467
5496
|
key: 0,
|
|
5468
5497
|
class: "d-checkbox__copy d-checkbox__label",
|
|
5469
5498
|
"data-qa": "checkbox-label-description-container"
|
|
5470
5499
|
};
|
|
5471
|
-
function
|
|
5500
|
+
function za(e, s, t, o, n, i) {
|
|
5472
5501
|
const r = f("dt-validation-messages");
|
|
5473
5502
|
return a(), l("label", null, [
|
|
5474
5503
|
_("div", {
|
|
5475
5504
|
class: y(["d-checkbox-group", { "d-checkbox-group--disabled": e.internalDisabled }])
|
|
5476
5505
|
}, [
|
|
5477
|
-
_("div",
|
|
5506
|
+
_("div", Ba, [
|
|
5478
5507
|
_("input", C({
|
|
5479
5508
|
type: "checkbox",
|
|
5480
5509
|
checked: e.internalChecked,
|
|
@@ -5482,9 +5511,9 @@ function Ba(e, s, t, o, n, i) {
|
|
|
5482
5511
|
value: e.value,
|
|
5483
5512
|
disabled: e.internalDisabled,
|
|
5484
5513
|
class: ["d-checkbox", i.inputValidationClass, e.inputClass]
|
|
5485
|
-
}, e.$attrs, { ".indeterminate": e.internalIndeterminate }, M(i.inputListeners, !0)), null, 16,
|
|
5514
|
+
}, e.$attrs, { ".indeterminate": e.internalIndeterminate }, M(i.inputListeners, !0)), null, 16, $a)
|
|
5486
5515
|
]),
|
|
5487
|
-
i.hasLabelOrDescription ? (a(), l("div",
|
|
5516
|
+
i.hasLabelOrDescription ? (a(), l("div", Na, [
|
|
5488
5517
|
i.hasLabel ? (a(), l("div", C({
|
|
5489
5518
|
key: 0,
|
|
5490
5519
|
class: e.labelClass
|
|
@@ -5510,9 +5539,9 @@ function Ba(e, s, t, o, n, i) {
|
|
|
5510
5539
|
], 2)
|
|
5511
5540
|
]);
|
|
5512
5541
|
}
|
|
5513
|
-
const
|
|
5542
|
+
const dd = /* @__PURE__ */ v(Ra, [["render", za]]), cd = {
|
|
5514
5543
|
name: "DtCheckboxGroup",
|
|
5515
|
-
extends:
|
|
5544
|
+
extends: ls,
|
|
5516
5545
|
model: {
|
|
5517
5546
|
prop: "selectedValues"
|
|
5518
5547
|
},
|
|
@@ -5602,19 +5631,19 @@ const od = /* @__PURE__ */ v(Da, [["render", Ba]]), ld = {
|
|
|
5602
5631
|
return `checkbox-group-message-${e}-${s}-${this.id}`;
|
|
5603
5632
|
}
|
|
5604
5633
|
}
|
|
5605
|
-
},
|
|
5634
|
+
}, Vt = {
|
|
5606
5635
|
xs: "d-chip__label--xs",
|
|
5607
5636
|
sm: "d-chip__label--sm",
|
|
5608
5637
|
md: ""
|
|
5609
|
-
},
|
|
5638
|
+
}, Ma = {
|
|
5610
5639
|
xs: "d-chip__close--xs",
|
|
5611
5640
|
sm: "d-chip__close--sm",
|
|
5612
5641
|
md: ""
|
|
5613
|
-
},
|
|
5642
|
+
}, Ha = {
|
|
5614
5643
|
xs: "200",
|
|
5615
5644
|
sm: "200",
|
|
5616
5645
|
md: "200"
|
|
5617
|
-
},
|
|
5646
|
+
}, Fa = {
|
|
5618
5647
|
name: "DtChip",
|
|
5619
5648
|
components: {
|
|
5620
5649
|
DtButton: K,
|
|
@@ -5646,7 +5675,7 @@ const od = /* @__PURE__ */ v(Da, [["render", Ba]]), ld = {
|
|
|
5646
5675
|
size: {
|
|
5647
5676
|
type: String,
|
|
5648
5677
|
default: "md",
|
|
5649
|
-
validator: (e) => Object.keys(
|
|
5678
|
+
validator: (e) => Object.keys(Vt).includes(e)
|
|
5650
5679
|
},
|
|
5651
5680
|
/**
|
|
5652
5681
|
* The interactivity of the chip.
|
|
@@ -5730,38 +5759,38 @@ const od = /* @__PURE__ */ v(Da, [["render", Ba]]), ld = {
|
|
|
5730
5759
|
};
|
|
5731
5760
|
},
|
|
5732
5761
|
closeButtonIconSize() {
|
|
5733
|
-
return
|
|
5762
|
+
return Ha[this.size];
|
|
5734
5763
|
}
|
|
5735
5764
|
},
|
|
5736
5765
|
methods: {
|
|
5737
5766
|
chipClasses() {
|
|
5738
5767
|
return [
|
|
5739
5768
|
this.$attrs["grouped-chip"] ? "d-chip" : "d-chip__label",
|
|
5740
|
-
|
|
5769
|
+
Vt[this.size],
|
|
5741
5770
|
this.labelClass
|
|
5742
5771
|
];
|
|
5743
5772
|
},
|
|
5744
5773
|
chipCloseButtonClasses() {
|
|
5745
5774
|
return [
|
|
5746
5775
|
"d-chip__close",
|
|
5747
|
-
|
|
5776
|
+
Ma[this.size]
|
|
5748
5777
|
];
|
|
5749
5778
|
},
|
|
5750
5779
|
onClose() {
|
|
5751
5780
|
this.hideClose || this.$emit("close");
|
|
5752
5781
|
}
|
|
5753
5782
|
}
|
|
5754
|
-
},
|
|
5783
|
+
}, Va = { class: "d-chip" }, qa = {
|
|
5755
5784
|
key: 0,
|
|
5756
5785
|
"data-qa": "dt-chip-icon",
|
|
5757
5786
|
class: "d-chip__icon"
|
|
5758
|
-
},
|
|
5787
|
+
}, Ka = {
|
|
5759
5788
|
key: 1,
|
|
5760
5789
|
"data-qa": "dt-chip-avatar"
|
|
5761
|
-
},
|
|
5762
|
-
function
|
|
5790
|
+
}, ja = ["id"];
|
|
5791
|
+
function Ga(e, s, t, o, n, i) {
|
|
5763
5792
|
const r = f("dt-icon"), h = f("dt-button");
|
|
5764
|
-
return a(), l("span",
|
|
5793
|
+
return a(), l("span", Va, [
|
|
5765
5794
|
(a(), S(X(t.interactive ? "button" : "span"), C({
|
|
5766
5795
|
id: t.id,
|
|
5767
5796
|
type: t.interactive && "button",
|
|
@@ -5771,9 +5800,9 @@ function qa(e, s, t, o, n, i) {
|
|
|
5771
5800
|
"aria-label": t.ariaLabel
|
|
5772
5801
|
}, M(i.chipListeners)), {
|
|
5773
5802
|
default: c(() => [
|
|
5774
|
-
n.hasSlotContent(e.$slots.icon) ? (a(), l("span",
|
|
5803
|
+
n.hasSlotContent(e.$slots.icon) ? (a(), l("span", qa, [
|
|
5775
5804
|
d(e.$slots, "icon")
|
|
5776
|
-
])) : n.hasSlotContent(e.$slots.avatar) ? (a(), l("span",
|
|
5805
|
+
])) : n.hasSlotContent(e.$slots.avatar) ? (a(), l("span", Ka, [
|
|
5777
5806
|
d(e.$slots, "avatar")
|
|
5778
5807
|
])) : p("", !0),
|
|
5779
5808
|
n.hasSlotContent(e.$slots.default) ? (a(), l("span", {
|
|
@@ -5783,7 +5812,7 @@ function qa(e, s, t, o, n, i) {
|
|
|
5783
5812
|
class: y(["d-truncate", "d-chip__text", t.contentClass])
|
|
5784
5813
|
}, [
|
|
5785
5814
|
d(e.$slots, "default")
|
|
5786
|
-
], 10,
|
|
5815
|
+
], 10, ja)) : p("", !0)
|
|
5787
5816
|
]),
|
|
5788
5817
|
_: 3
|
|
5789
5818
|
}, 16, ["id", "type", "class", "aria-labelledby", "aria-label"])),
|
|
@@ -5803,20 +5832,20 @@ function qa(e, s, t, o, n, i) {
|
|
|
5803
5832
|
}, 16, ["class", "aria-label"]))
|
|
5804
5833
|
]);
|
|
5805
5834
|
}
|
|
5806
|
-
const
|
|
5835
|
+
const rs = /* @__PURE__ */ v(Fa, [["render", Ga]]), qt = {
|
|
5807
5836
|
xs: "d-select--xs",
|
|
5808
5837
|
sm: "d-select--sm",
|
|
5809
5838
|
md: "",
|
|
5810
5839
|
lg: "d-select--lg",
|
|
5811
5840
|
xl: "d-select--xl"
|
|
5812
|
-
},
|
|
5841
|
+
}, Ua = {
|
|
5813
5842
|
error: "d-select__input--error",
|
|
5814
5843
|
warning: "d-select__input--warning",
|
|
5815
5844
|
success: "d-select__input--success"
|
|
5816
|
-
},
|
|
5845
|
+
}, Wa = (e) => !e.index || typeof e.index == "number", Za = (e) => e.value ? typeof e.value == "string" || typeof e.value == "number" : !1, Ya = (e) => e.label ? typeof e.label == "string" : !1, Qa = (e) => e ? e.every((s) => !(!Wa(s) || !Za(s) || !Ya(s))) : !0, Xa = {
|
|
5817
5846
|
name: "DtSelectMenu",
|
|
5818
5847
|
components: { DtValidationMessages: me },
|
|
5819
|
-
mixins: [
|
|
5848
|
+
mixins: [Xe],
|
|
5820
5849
|
inheritAttrs: !1,
|
|
5821
5850
|
props: {
|
|
5822
5851
|
/**
|
|
@@ -5844,7 +5873,7 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5844
5873
|
options: {
|
|
5845
5874
|
type: Array,
|
|
5846
5875
|
default: () => [],
|
|
5847
|
-
validator: (e) =>
|
|
5876
|
+
validator: (e) => Qa(e)
|
|
5848
5877
|
},
|
|
5849
5878
|
/**
|
|
5850
5879
|
* Controls the size of the select
|
|
@@ -5853,7 +5882,7 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5853
5882
|
size: {
|
|
5854
5883
|
type: String,
|
|
5855
5884
|
default: "md",
|
|
5856
|
-
validator: (e) => Object.keys(
|
|
5885
|
+
validator: (e) => Object.keys(qt).includes(e)
|
|
5857
5886
|
},
|
|
5858
5887
|
/**
|
|
5859
5888
|
* Used to customize the label container
|
|
@@ -5931,10 +5960,10 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5931
5960
|
],
|
|
5932
5961
|
data() {
|
|
5933
5962
|
return {
|
|
5934
|
-
LABEL_SIZE_MODIFIERS:
|
|
5935
|
-
DESCRIPTION_SIZE_MODIFIERS:
|
|
5936
|
-
SELECT_SIZE_MODIFIERS:
|
|
5937
|
-
SELECT_STATE_MODIFIERS:
|
|
5963
|
+
LABEL_SIZE_MODIFIERS: Fs,
|
|
5964
|
+
DESCRIPTION_SIZE_MODIFIERS: Vs,
|
|
5965
|
+
SELECT_SIZE_MODIFIERS: qt,
|
|
5966
|
+
SELECT_STATE_MODIFIERS: Ua,
|
|
5938
5967
|
hasSlotContent: $
|
|
5939
5968
|
};
|
|
5940
5969
|
},
|
|
@@ -5952,7 +5981,7 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5952
5981
|
};
|
|
5953
5982
|
},
|
|
5954
5983
|
state() {
|
|
5955
|
-
return
|
|
5984
|
+
return We(this.formattedMessages);
|
|
5956
5985
|
},
|
|
5957
5986
|
selectKey() {
|
|
5958
5987
|
return q();
|
|
@@ -5982,8 +6011,8 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5982
6011
|
((e = this.options) == null ? void 0 : e.length) < 1 && !this.$slots.default && we("Options are expected to be provided via prop or slot", this);
|
|
5983
6012
|
}
|
|
5984
6013
|
}
|
|
5985
|
-
},
|
|
5986
|
-
function
|
|
6014
|
+
}, Ja = ["aria-details"], eo = ["id"], to = ["disabled"], so = ["value"];
|
|
6015
|
+
function io(e, s, t, o, n, i) {
|
|
5987
6016
|
const r = f("dt-validation-messages");
|
|
5988
6017
|
return a(), l("div", null, [
|
|
5989
6018
|
_("label", null, [
|
|
@@ -5999,7 +6028,7 @@ function eo(e, s, t, o, n, i) {
|
|
|
5999
6028
|
d(e.$slots, "label", {}, () => [
|
|
6000
6029
|
P(I(t.label), 1)
|
|
6001
6030
|
])
|
|
6002
|
-
], 16,
|
|
6031
|
+
], 16, Ja)) : p("", !0),
|
|
6003
6032
|
n.hasSlotContent(e.$slots.description) || t.description ? (a(), l("div", C({
|
|
6004
6033
|
key: 1,
|
|
6005
6034
|
id: i.descriptionKey,
|
|
@@ -6012,7 +6041,7 @@ function eo(e, s, t, o, n, i) {
|
|
|
6012
6041
|
d(e.$slots, "description", {}, () => [
|
|
6013
6042
|
P(I(t.description), 1)
|
|
6014
6043
|
])
|
|
6015
|
-
], 16,
|
|
6044
|
+
], 16, eo)) : p("", !0),
|
|
6016
6045
|
_("div", {
|
|
6017
6046
|
class: y([
|
|
6018
6047
|
"d-select",
|
|
@@ -6036,9 +6065,9 @@ function eo(e, s, t, o, n, i) {
|
|
|
6036
6065
|
key: i.getOptionKey(h.value),
|
|
6037
6066
|
value: h.value,
|
|
6038
6067
|
class: t.optionClass
|
|
6039
|
-
}, t.optionChildProps), I(h.label), 17,
|
|
6068
|
+
}, t.optionChildProps), I(h.label), 17, so))), 128))
|
|
6040
6069
|
])
|
|
6041
|
-
], 16,
|
|
6070
|
+
], 16, to)
|
|
6042
6071
|
], 2)
|
|
6043
6072
|
]),
|
|
6044
6073
|
m(r, C({
|
|
@@ -6048,12 +6077,12 @@ function eo(e, s, t, o, n, i) {
|
|
|
6048
6077
|
}, e.messagesChildProps, { "data-qa": "dt-select-messages" }), null, 16, ["validation-messages", "show-messages", "class"])
|
|
6049
6078
|
]);
|
|
6050
6079
|
}
|
|
6051
|
-
const
|
|
6080
|
+
const ud = /* @__PURE__ */ v(Xa, [["render", io]]), no = ["status", "alert"], Kt = 6e3, ao = {
|
|
6052
6081
|
name: "DtToast",
|
|
6053
6082
|
components: {
|
|
6054
|
-
DtNoticeIcon:
|
|
6055
|
-
DtNoticeContent:
|
|
6056
|
-
DtNoticeAction:
|
|
6083
|
+
DtNoticeIcon: it,
|
|
6084
|
+
DtNoticeContent: nt,
|
|
6085
|
+
DtNoticeAction: at
|
|
6057
6086
|
},
|
|
6058
6087
|
mixins: [ie],
|
|
6059
6088
|
props: {
|
|
@@ -6099,7 +6128,7 @@ const rd = /* @__PURE__ */ v(Za, [["render", eo]]), to = ["status", "alert"], Vt
|
|
|
6099
6128
|
role: {
|
|
6100
6129
|
type: String,
|
|
6101
6130
|
default: "status",
|
|
6102
|
-
validator: (e) =>
|
|
6131
|
+
validator: (e) => no.includes(e)
|
|
6103
6132
|
},
|
|
6104
6133
|
/**
|
|
6105
6134
|
* Severity level of the toast, sets the icon and background
|
|
@@ -6152,7 +6181,7 @@ const rd = /* @__PURE__ */ v(Za, [["render", eo]]), to = ["status", "alert"], Vt
|
|
|
6152
6181
|
duration: {
|
|
6153
6182
|
type: Number,
|
|
6154
6183
|
default: null,
|
|
6155
|
-
validator: (e) => e >=
|
|
6184
|
+
validator: (e) => e >= Kt
|
|
6156
6185
|
}
|
|
6157
6186
|
},
|
|
6158
6187
|
emits: [
|
|
@@ -6179,7 +6208,7 @@ const rd = /* @__PURE__ */ v(Za, [["render", eo]]), to = ["status", "alert"], Vt
|
|
|
6179
6208
|
data() {
|
|
6180
6209
|
return {
|
|
6181
6210
|
isShown: !1,
|
|
6182
|
-
minDuration:
|
|
6211
|
+
minDuration: Kt
|
|
6183
6212
|
};
|
|
6184
6213
|
},
|
|
6185
6214
|
computed: {
|
|
@@ -6217,8 +6246,8 @@ const rd = /* @__PURE__ */ v(Za, [["render", eo]]), to = ["status", "alert"], Vt
|
|
|
6217
6246
|
}, this.duration));
|
|
6218
6247
|
}
|
|
6219
6248
|
}
|
|
6220
|
-
},
|
|
6221
|
-
function
|
|
6249
|
+
}, oo = ["aria-hidden"], lo = { class: "d-toast__dialog" };
|
|
6250
|
+
function ro(e, s, t, o, n, i) {
|
|
6222
6251
|
const r = f("dt-notice-icon"), h = f("dt-notice-content"), u = f("dt-notice-action");
|
|
6223
6252
|
return n.isShown ? (a(), l("div", {
|
|
6224
6253
|
key: 0,
|
|
@@ -6230,7 +6259,7 @@ function ao(e, s, t, o, n, i) {
|
|
|
6230
6259
|
"data-qa": "dt-toast",
|
|
6231
6260
|
"aria-hidden": (!n.isShown).toString()
|
|
6232
6261
|
}, [
|
|
6233
|
-
_("div",
|
|
6262
|
+
_("div", lo, [
|
|
6234
6263
|
m(r, { kind: t.kind }, {
|
|
6235
6264
|
default: c(() => [
|
|
6236
6265
|
d(e.$slots, "icon")
|
|
@@ -6266,12 +6295,12 @@ function ao(e, s, t, o, n, i) {
|
|
|
6266
6295
|
_: 3
|
|
6267
6296
|
}, 8, ["hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label", "onClose"])
|
|
6268
6297
|
])
|
|
6269
|
-
], 10,
|
|
6298
|
+
], 10, oo)) : p("", !0);
|
|
6270
6299
|
}
|
|
6271
|
-
const
|
|
6300
|
+
const hd = /* @__PURE__ */ v(ao, [["render", ro]]), jt = {
|
|
6272
6301
|
sm: "d-toggle--small",
|
|
6273
6302
|
md: ""
|
|
6274
|
-
},
|
|
6303
|
+
}, co = [!1, !0, "mixed"], uo = {
|
|
6275
6304
|
name: "DtToggle",
|
|
6276
6305
|
inheritAttrs: !1,
|
|
6277
6306
|
model: {
|
|
@@ -6304,7 +6333,7 @@ const dd = /* @__PURE__ */ v(so, [["render", ao]]), Ft = {
|
|
|
6304
6333
|
checked: {
|
|
6305
6334
|
type: [Boolean, String],
|
|
6306
6335
|
default: !1,
|
|
6307
|
-
validator: (e) =>
|
|
6336
|
+
validator: (e) => co.includes(e)
|
|
6308
6337
|
},
|
|
6309
6338
|
/**
|
|
6310
6339
|
* Whether the component toggles on click. If you set this to false it means you will handle the toggling manually
|
|
@@ -6322,7 +6351,7 @@ const dd = /* @__PURE__ */ v(so, [["render", ao]]), Ft = {
|
|
|
6322
6351
|
size: {
|
|
6323
6352
|
type: String,
|
|
6324
6353
|
default: "md",
|
|
6325
|
-
validator: (e) => Object.keys(
|
|
6354
|
+
validator: (e) => Object.keys(jt).includes(e)
|
|
6326
6355
|
},
|
|
6327
6356
|
/**
|
|
6328
6357
|
* Shows the icon
|
|
@@ -6379,7 +6408,7 @@ const dd = /* @__PURE__ */ v(so, [["render", ao]]), Ft = {
|
|
|
6379
6408
|
toggleClasses() {
|
|
6380
6409
|
return [
|
|
6381
6410
|
"d-toggle",
|
|
6382
|
-
|
|
6411
|
+
jt[this.size],
|
|
6383
6412
|
{
|
|
6384
6413
|
"d-toggle--checked": this.internalChecked === !0,
|
|
6385
6414
|
"d-toggle--disabled": this.disabled,
|
|
@@ -6413,19 +6442,19 @@ const dd = /* @__PURE__ */ v(so, [["render", ao]]), Ft = {
|
|
|
6413
6442
|
);
|
|
6414
6443
|
}
|
|
6415
6444
|
}
|
|
6416
|
-
},
|
|
6445
|
+
}, ho = { class: "d-d-flex d-ai-center" }, fo = ["for"], po = ["id", "role", "aria-checked", "disabled", "aria-disabled"], mo = {
|
|
6417
6446
|
key: 0,
|
|
6418
6447
|
class: "d-toggle__inner"
|
|
6419
6448
|
};
|
|
6420
|
-
function
|
|
6421
|
-
return a(), l("div",
|
|
6449
|
+
function go(e, s, t, o, n, i) {
|
|
6450
|
+
return a(), l("div", ho, [
|
|
6422
6451
|
n.hasSlotContent(e.$slots.default) ? (a(), l("label", C({
|
|
6423
6452
|
key: 0,
|
|
6424
6453
|
class: t.labelClass,
|
|
6425
6454
|
for: t.id
|
|
6426
6455
|
}, t.labelChildProps, { "data-qa": "toggle-label" }), [
|
|
6427
6456
|
d(e.$slots, "default")
|
|
6428
|
-
], 16,
|
|
6457
|
+
], 16, fo)) : p("", !0),
|
|
6429
6458
|
_("button", C({
|
|
6430
6459
|
id: t.id,
|
|
6431
6460
|
role: i.toggleRole,
|
|
@@ -6435,20 +6464,20 @@ function fo(e, s, t, o, n, i) {
|
|
|
6435
6464
|
"aria-disabled": t.disabled.toString(),
|
|
6436
6465
|
class: i.toggleClasses
|
|
6437
6466
|
}, i.inputListeners), [
|
|
6438
|
-
t.showIcon ? (a(), l("span",
|
|
6439
|
-
], 16,
|
|
6467
|
+
t.showIcon ? (a(), l("span", mo)) : p("", !0)
|
|
6468
|
+
], 16, po)
|
|
6440
6469
|
]);
|
|
6441
6470
|
}
|
|
6442
|
-
const
|
|
6471
|
+
const fd = /* @__PURE__ */ v(uo, [["render", go]]), ye = {
|
|
6443
6472
|
"{win}": "layout-grid",
|
|
6444
6473
|
"{arrow-right}": "arrow-right",
|
|
6445
6474
|
"{arrow-left}": "arrow-left",
|
|
6446
6475
|
"{arrow-up}": "arrow-up",
|
|
6447
6476
|
"{arrow-down}": "arrow-down",
|
|
6448
6477
|
"{cmd}": "command"
|
|
6449
|
-
},
|
|
6478
|
+
}, _o = {
|
|
6450
6479
|
"{plus}": "plus"
|
|
6451
|
-
},
|
|
6480
|
+
}, pd = Object.keys(ye), bo = {
|
|
6452
6481
|
name: "DtKeyboardShortcut",
|
|
6453
6482
|
components: {
|
|
6454
6483
|
DtIcon: x
|
|
@@ -6486,7 +6515,7 @@ const cd = /* @__PURE__ */ v(lo, [["render", fo]]), ye = {
|
|
|
6486
6515
|
},
|
|
6487
6516
|
computed: {
|
|
6488
6517
|
icons() {
|
|
6489
|
-
return { ...ye, ...
|
|
6518
|
+
return { ...ye, ..._o };
|
|
6490
6519
|
},
|
|
6491
6520
|
shortcutWithSeparator() {
|
|
6492
6521
|
return this.shortcut.replace(this.separator, "{plus}");
|
|
@@ -6500,11 +6529,11 @@ const cd = /* @__PURE__ */ v(lo, [["render", fo]]), ye = {
|
|
|
6500
6529
|
return this.formattedShortcut.split(s).filter(Boolean);
|
|
6501
6530
|
}
|
|
6502
6531
|
}
|
|
6503
|
-
},
|
|
6532
|
+
}, yo = {
|
|
6504
6533
|
key: 0,
|
|
6505
6534
|
class: "sr-only"
|
|
6506
|
-
},
|
|
6507
|
-
function
|
|
6535
|
+
}, vo = ["innerHTML"];
|
|
6536
|
+
function So(e, s, t, o, n, i) {
|
|
6508
6537
|
const r = f("dt-icon");
|
|
6509
6538
|
return a(), l("kbd", {
|
|
6510
6539
|
class: y([
|
|
@@ -6520,7 +6549,7 @@ function bo(e, s, t, o, n, i) {
|
|
|
6520
6549
|
t.inverted ? "d-bc-moderate-inverted" : "d-bc-default"
|
|
6521
6550
|
])
|
|
6522
6551
|
}, [
|
|
6523
|
-
t.screenReaderText ? (a(), l("span",
|
|
6552
|
+
t.screenReaderText ? (a(), l("span", yo, I(t.screenReaderText), 1)) : p("", !0),
|
|
6524
6553
|
(a(!0), l(Y, null, ee(i.formattedShortcutSplit, (h, u) => (a(), l(Y, null, [
|
|
6525
6554
|
i.icons[h] ? (a(), S(r, {
|
|
6526
6555
|
key: `${u}-${h}`,
|
|
@@ -6539,14 +6568,14 @@ function bo(e, s, t, o, n, i) {
|
|
|
6539
6568
|
"d-mr2"
|
|
6540
6569
|
]),
|
|
6541
6570
|
innerHTML: h
|
|
6542
|
-
}, null, 10,
|
|
6571
|
+
}, null, 10, vo))
|
|
6543
6572
|
], 64))), 256))
|
|
6544
6573
|
], 2);
|
|
6545
6574
|
}
|
|
6546
|
-
const
|
|
6575
|
+
const md = /* @__PURE__ */ v(bo, [["render", So]]), ds = {
|
|
6547
6576
|
LEFT: "left",
|
|
6548
6577
|
RIGHT: "right"
|
|
6549
|
-
},
|
|
6578
|
+
}, Co = ["sm", "md", "lg", null], Io = {
|
|
6550
6579
|
name: "DtRootLayoutBody",
|
|
6551
6580
|
props: {
|
|
6552
6581
|
/**
|
|
@@ -6605,12 +6634,12 @@ const hd = /* @__PURE__ */ v(mo, [["render", bo]]), os = {
|
|
|
6605
6634
|
bodyClasses() {
|
|
6606
6635
|
return [
|
|
6607
6636
|
this.bodyClass,
|
|
6608
|
-
{ "d-root-layout__body--invert": this.sidebarPosition ===
|
|
6637
|
+
{ "d-root-layout__body--invert": this.sidebarPosition === ds.RIGHT }
|
|
6609
6638
|
];
|
|
6610
6639
|
}
|
|
6611
6640
|
}
|
|
6612
6641
|
};
|
|
6613
|
-
function
|
|
6642
|
+
function wo(e, s, t, o, n, i) {
|
|
6614
6643
|
return a(), l("div", {
|
|
6615
6644
|
ref: "root-layout-body",
|
|
6616
6645
|
class: y(["d-root-layout__body", i.bodyClasses]),
|
|
@@ -6636,10 +6665,10 @@ function So(e, s, t, o, n, i) {
|
|
|
6636
6665
|
], 2)) : p("", !0)
|
|
6637
6666
|
], 2);
|
|
6638
6667
|
}
|
|
6639
|
-
const
|
|
6668
|
+
const Eo = /* @__PURE__ */ v(Io, [["render", wo]]), ko = {
|
|
6640
6669
|
name: "DtRootLayout",
|
|
6641
6670
|
components: {
|
|
6642
|
-
DtRootLayoutBody:
|
|
6671
|
+
DtRootLayoutBody: Eo
|
|
6643
6672
|
},
|
|
6644
6673
|
props: {
|
|
6645
6674
|
/**
|
|
@@ -6711,7 +6740,7 @@ const Co = /* @__PURE__ */ v(vo, [["render", So]]), Io = {
|
|
|
6711
6740
|
sidebarPosition: {
|
|
6712
6741
|
type: String,
|
|
6713
6742
|
default: "left",
|
|
6714
|
-
validator: (e) => Object.values(
|
|
6743
|
+
validator: (e) => Object.values(ds).includes(e)
|
|
6715
6744
|
},
|
|
6716
6745
|
/**
|
|
6717
6746
|
* Additional class name for the footer element
|
|
@@ -6735,7 +6764,7 @@ const Co = /* @__PURE__ */ v(vo, [["render", So]]), Io = {
|
|
|
6735
6764
|
responsiveBreakpoint: {
|
|
6736
6765
|
type: String,
|
|
6737
6766
|
default: null,
|
|
6738
|
-
validator: (e) =>
|
|
6767
|
+
validator: (e) => Co.includes(e)
|
|
6739
6768
|
}
|
|
6740
6769
|
},
|
|
6741
6770
|
data() {
|
|
@@ -6750,7 +6779,7 @@ const Co = /* @__PURE__ */ v(vo, [["render", So]]), Io = {
|
|
|
6750
6779
|
}
|
|
6751
6780
|
}
|
|
6752
6781
|
};
|
|
6753
|
-
function
|
|
6782
|
+
function Oo(e, s, t, o, n, i) {
|
|
6754
6783
|
const r = f("dt-root-layout-body");
|
|
6755
6784
|
return a(), l("div", {
|
|
6756
6785
|
class: y(["root-layout d-root-layout", { "d-root-layout--fixed": t.fixed }, i.responsiveClass]),
|
|
@@ -6773,7 +6802,7 @@ function wo(e, s, t, o, n, i) {
|
|
|
6773
6802
|
"header-height": n.hasSlotContent(e.$slots.header) ? t.headerHeight : "0px",
|
|
6774
6803
|
"footer-height": n.hasSlotContent(e.$slots.footer) ? t.footerHeight : "0px",
|
|
6775
6804
|
fixed: t.fixed
|
|
6776
|
-
},
|
|
6805
|
+
}, Ee({ _: 2 }, [
|
|
6777
6806
|
n.hasSlotContent(e.$slots.sidebar) ? {
|
|
6778
6807
|
name: "sidebar",
|
|
6779
6808
|
fn: c(() => [
|
|
@@ -6799,40 +6828,40 @@ function wo(e, s, t, o, n, i) {
|
|
|
6799
6828
|
], 6)) : p("", !0)
|
|
6800
6829
|
], 2);
|
|
6801
6830
|
}
|
|
6802
|
-
const
|
|
6831
|
+
const gd = /* @__PURE__ */ v(ko, [["render", Oo]]), ue = {
|
|
6803
6832
|
default: "column",
|
|
6804
6833
|
column: "column",
|
|
6805
6834
|
row: "row",
|
|
6806
6835
|
"row-reverse": "row-reverse",
|
|
6807
6836
|
"column-reverse": "column-reverse"
|
|
6808
|
-
},
|
|
6809
|
-
function
|
|
6837
|
+
}, cs = ["sm", "md", "lg", "xl"], lt = ["0", "100", "200", "300", "400", "500", "600"];
|
|
6838
|
+
function Gt(e) {
|
|
6810
6839
|
return e === ue.default;
|
|
6811
6840
|
}
|
|
6812
|
-
function
|
|
6841
|
+
function Ut(e) {
|
|
6813
6842
|
if (Ie(e) === "string")
|
|
6814
|
-
return
|
|
6843
|
+
return Gt(e) ? null : ue[e];
|
|
6815
6844
|
if (Ie(e) === "object") {
|
|
6816
6845
|
const { default: s } = e;
|
|
6817
|
-
return
|
|
6846
|
+
return Gt(s) ? null : ue[s];
|
|
6818
6847
|
} else
|
|
6819
6848
|
return null;
|
|
6820
6849
|
}
|
|
6821
6850
|
function Ie(e) {
|
|
6822
6851
|
return typeof e;
|
|
6823
6852
|
}
|
|
6824
|
-
function
|
|
6825
|
-
return
|
|
6853
|
+
function Lo(e) {
|
|
6854
|
+
return Ut(e) ? `d-stack--${ue[Ut(e)]}` : null;
|
|
6826
6855
|
}
|
|
6827
|
-
function
|
|
6856
|
+
function To(e) {
|
|
6828
6857
|
return Ie(e) === "object" ? [
|
|
6829
|
-
...
|
|
6858
|
+
...cs.map((s) => e[s] ? `d-stack--${s}--${e[s]}` : null)
|
|
6830
6859
|
] : null;
|
|
6831
6860
|
}
|
|
6832
|
-
function
|
|
6833
|
-
return
|
|
6861
|
+
function Ao(e) {
|
|
6862
|
+
return lt.includes(e) ? `d-stack--gap-${e}` : null;
|
|
6834
6863
|
}
|
|
6835
|
-
function
|
|
6864
|
+
function Do(e) {
|
|
6836
6865
|
if (Ie(e) === "string")
|
|
6837
6866
|
return Object.keys(ue).includes(e);
|
|
6838
6867
|
if (Ie(e) === "object") {
|
|
@@ -6841,10 +6870,10 @@ function Lo(e) {
|
|
|
6841
6870
|
} else
|
|
6842
6871
|
return null;
|
|
6843
6872
|
}
|
|
6844
|
-
function
|
|
6845
|
-
return
|
|
6873
|
+
function Po(e) {
|
|
6874
|
+
return lt.includes(e);
|
|
6846
6875
|
}
|
|
6847
|
-
const
|
|
6876
|
+
const xo = {
|
|
6848
6877
|
name: "DtStack",
|
|
6849
6878
|
props: {
|
|
6850
6879
|
/**
|
|
@@ -6855,7 +6884,7 @@ const Ao = {
|
|
|
6855
6884
|
direction: {
|
|
6856
6885
|
type: [String, Object],
|
|
6857
6886
|
default: "column",
|
|
6858
|
-
validator: (e) =>
|
|
6887
|
+
validator: (e) => Do(e)
|
|
6859
6888
|
},
|
|
6860
6889
|
/**
|
|
6861
6890
|
* Set this prop to render stack as a specific HTML element.
|
|
@@ -6871,29 +6900,29 @@ const Ao = {
|
|
|
6871
6900
|
gap: {
|
|
6872
6901
|
type: String,
|
|
6873
6902
|
default: "0",
|
|
6874
|
-
validator: (e) =>
|
|
6903
|
+
validator: (e) => Po(e)
|
|
6875
6904
|
}
|
|
6876
6905
|
},
|
|
6877
6906
|
data() {
|
|
6878
6907
|
return {
|
|
6879
6908
|
DT_STACK_DIRECTION: ue,
|
|
6880
|
-
DT_STACK_GAP:
|
|
6881
|
-
DT_STACK_RESPONSIVE_BREAKPOINTS:
|
|
6909
|
+
DT_STACK_GAP: lt,
|
|
6910
|
+
DT_STACK_RESPONSIVE_BREAKPOINTS: cs
|
|
6882
6911
|
};
|
|
6883
6912
|
},
|
|
6884
6913
|
computed: {
|
|
6885
6914
|
stackGap() {
|
|
6886
|
-
return
|
|
6915
|
+
return Ao(this.gap);
|
|
6887
6916
|
},
|
|
6888
6917
|
defaultDirection() {
|
|
6889
|
-
return
|
|
6918
|
+
return Lo(this.direction);
|
|
6890
6919
|
},
|
|
6891
6920
|
stackResponsive() {
|
|
6892
|
-
return
|
|
6921
|
+
return To(this.direction);
|
|
6893
6922
|
}
|
|
6894
6923
|
}
|
|
6895
6924
|
};
|
|
6896
|
-
function
|
|
6925
|
+
function Ro(e, s, t, o, n, i) {
|
|
6897
6926
|
return a(), S(X(t.as), {
|
|
6898
6927
|
class: y([
|
|
6899
6928
|
"d-stack",
|
|
@@ -6908,8 +6937,8 @@ function Do(e, s, t, o, n, i) {
|
|
|
6908
6937
|
_: 3
|
|
6909
6938
|
}, 8, ["class"]);
|
|
6910
6939
|
}
|
|
6911
|
-
const
|
|
6912
|
-
const
|
|
6940
|
+
const _d = /* @__PURE__ */ v(xo, [["render", Ro]]);
|
|
6941
|
+
const us = {
|
|
6913
6942
|
__name: "core_scroller",
|
|
6914
6943
|
props: {
|
|
6915
6944
|
/**
|
|
@@ -7003,50 +7032,50 @@ const rs = {
|
|
|
7003
7032
|
},
|
|
7004
7033
|
emits: ["user-position"],
|
|
7005
7034
|
setup(e, { expose: s, emit: t }) {
|
|
7006
|
-
const o = e, n =
|
|
7007
|
-
let b = 0, L = 0, B = !1, de = 0, he = null, fe = null,
|
|
7008
|
-
const
|
|
7035
|
+
const o = e, n = Lt(/* @__PURE__ */ new Map()), i = Lt(/* @__PURE__ */ new Map()), r = pe([]), h = pe(null), u = pe(!1), g = pe(null), w = pe("top");
|
|
7036
|
+
let b = 0, L = 0, B = !1, de = 0, he = null, fe = null, Fe = 0, ps = 0;
|
|
7037
|
+
const Ve = Re(() => {
|
|
7009
7038
|
if (o.itemSize === null) {
|
|
7010
7039
|
const O = {
|
|
7011
7040
|
"-1": { accumulator: 0 }
|
|
7012
|
-
}, A = o.items,
|
|
7013
|
-
let
|
|
7041
|
+
}, A = o.items, E = o.sizeField, Q = o.minItemSize;
|
|
7042
|
+
let V = 1e4, ne = 0, D;
|
|
7014
7043
|
for (let j = 0, ge = A.length; j < ge; j++)
|
|
7015
|
-
D = A[j][
|
|
7016
|
-
return fe =
|
|
7044
|
+
D = A[j][E] || Q, D < V && (V = D), ne += D, O[j] = { accumulator: ne, size: D };
|
|
7045
|
+
return fe = V, O;
|
|
7017
7046
|
}
|
|
7018
7047
|
return [];
|
|
7019
|
-
}),
|
|
7048
|
+
}), ms = Re(() => o.items.length && typeof o.items[0] != "object"), gs = Re(() => {
|
|
7020
7049
|
const O = {};
|
|
7021
|
-
for (let A = 0,
|
|
7050
|
+
for (let A = 0, E = o.items.length; A < E; A++)
|
|
7022
7051
|
O[o.items[A][o.keyField]] = A;
|
|
7023
7052
|
return O;
|
|
7024
7053
|
});
|
|
7025
|
-
|
|
7054
|
+
Zt(Ve, () => {
|
|
7026
7055
|
Te(!1);
|
|
7027
|
-
}, { deep: !0 }),
|
|
7028
|
-
|
|
7056
|
+
}, { deep: !0 }), ws(() => {
|
|
7057
|
+
Es(() => {
|
|
7029
7058
|
Te(!0), u.value = !0;
|
|
7030
7059
|
});
|
|
7031
7060
|
});
|
|
7032
|
-
const
|
|
7033
|
-
const ne =
|
|
7034
|
-
id:
|
|
7061
|
+
const mt = (O, A, E, Q, V) => {
|
|
7062
|
+
const ne = ks({
|
|
7063
|
+
id: ps++,
|
|
7035
7064
|
index: A,
|
|
7036
7065
|
used: !0,
|
|
7037
7066
|
key: Q,
|
|
7038
|
-
type:
|
|
7039
|
-
}), D =
|
|
7040
|
-
item:
|
|
7067
|
+
type: V
|
|
7068
|
+
}), D = Os({
|
|
7069
|
+
item: E,
|
|
7041
7070
|
position: 0,
|
|
7042
7071
|
nr: ne
|
|
7043
7072
|
});
|
|
7044
7073
|
return O.value.push(D), D;
|
|
7045
7074
|
}, qe = (O, A = !1) => {
|
|
7046
|
-
const
|
|
7047
|
-
let
|
|
7048
|
-
|
|
7049
|
-
},
|
|
7075
|
+
const E = i, Q = O.nr.type;
|
|
7076
|
+
let V = E.get(Q);
|
|
7077
|
+
V || (V = [], E.set(Q, V)), V.push(O), A || (O.nr.used = !1, O.position = -9999);
|
|
7078
|
+
}, _s = () => {
|
|
7050
7079
|
const O = o.direction === "vertical";
|
|
7051
7080
|
let A;
|
|
7052
7081
|
return O ? A = {
|
|
@@ -7056,91 +7085,91 @@ const rs = {
|
|
|
7056
7085
|
start: g.value.scrollLeft,
|
|
7057
7086
|
end: g.value.scrollLeft + g.value.clientWidth
|
|
7058
7087
|
}, A;
|
|
7059
|
-
},
|
|
7088
|
+
}, bs = () => {
|
|
7060
7089
|
throw setTimeout(() => {
|
|
7061
7090
|
console.error("It seems the scroller element isn't scrolling, so it tries to render all the items at once.", "Scroller:", g), console.error("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.");
|
|
7062
7091
|
}), new Error("Rendered items limit reached");
|
|
7063
|
-
},
|
|
7092
|
+
}, ys = () => {
|
|
7064
7093
|
r.value.sort((O, A) => O.nr.index - A.nr.index);
|
|
7065
7094
|
}, Te = (O, A = !1) => {
|
|
7066
|
-
var
|
|
7067
|
-
const
|
|
7095
|
+
var bt, yt, vt, St, Ct, It, wt, Et;
|
|
7096
|
+
const E = o.itemSize, Q = fe, V = ms.value ? null : o.keyField, ne = o.items, D = ne.length, j = Ve.value, ge = n, gt = i, Ae = r, Is = gs;
|
|
7068
7097
|
let G, N, De, te, ae;
|
|
7069
7098
|
if (!D)
|
|
7070
7099
|
G = N = te = ae = De = 0;
|
|
7071
7100
|
else {
|
|
7072
|
-
const T =
|
|
7101
|
+
const T = _s();
|
|
7073
7102
|
if (A) {
|
|
7074
7103
|
let R = T.start - de.value;
|
|
7075
|
-
if (R < 0 && (R = -R),
|
|
7104
|
+
if (R < 0 && (R = -R), E === null && R < Q.value || R < E)
|
|
7076
7105
|
return {
|
|
7077
7106
|
continuous: !0
|
|
7078
7107
|
};
|
|
7079
7108
|
}
|
|
7080
7109
|
de = T.start;
|
|
7081
7110
|
const W = o.buffer;
|
|
7082
|
-
if (T.start -= W, T.end += W,
|
|
7083
|
-
let R, _e = 0,
|
|
7111
|
+
if (T.start -= W, T.end += W, E === null) {
|
|
7112
|
+
let R, _e = 0, kt = D - 1, Z = ~~(D / 2), Ot;
|
|
7084
7113
|
do
|
|
7085
|
-
|
|
7086
|
-
while (Z !==
|
|
7087
|
-
for (Z < 0 && (Z = 0), G = Z, De = (
|
|
7114
|
+
Ot = Z, R = (bt = j[Z]) == null ? void 0 : bt.accumulator, R < T.start ? _e = Z : Z < D - 1 && ((yt = j[Z + 1]) == null ? void 0 : yt.accumulator) > T.start && (kt = Z), Z = ~~((_e + kt) / 2);
|
|
7115
|
+
while (Z !== Ot);
|
|
7116
|
+
for (Z < 0 && (Z = 0), G = Z, De = (vt = j[D - 1]) == null ? void 0 : vt.accumulator, N = Z; N < D && ((St = j[N]) == null ? void 0 : St.accumulator) < T.end; N++)
|
|
7088
7117
|
;
|
|
7089
|
-
for (N === -1 ? N = ne.length - 1 : (N++, N > D && (N = D)), te = b; te < D && ((
|
|
7118
|
+
for (N === -1 ? N = ne.length - 1 : (N++, N > D && (N = D)), te = b; te < D && ((Ct = j[te]) == null ? void 0 : Ct.accumulator) < T.start; te++)
|
|
7090
7119
|
;
|
|
7091
|
-
for (ae = te; ae < D && ((
|
|
7120
|
+
for (ae = te; ae < D && ((It = j[ae]) == null ? void 0 : It.accumulator) < T.end; ae++)
|
|
7092
7121
|
;
|
|
7093
7122
|
} else {
|
|
7094
|
-
G = ~~(T.start /
|
|
7123
|
+
G = ~~(T.start / E);
|
|
7095
7124
|
const R = G % 1;
|
|
7096
|
-
G -= R, N = Math.ceil(T.end /
|
|
7125
|
+
G -= R, N = Math.ceil(T.end / E), te = Math.max(0, Math.floor(T.start / E)), ae = Math.floor(T.end / E), G < 0 && (G = 0), N > D && (N = D), te < 0 && (te = 0), ae > D && (ae = D), De = Math.ceil(D / 1) * E;
|
|
7097
7126
|
}
|
|
7098
7127
|
}
|
|
7099
|
-
N - G > 1e3 &&
|
|
7100
|
-
let
|
|
7128
|
+
N - G > 1e3 && bs(), Fe = De;
|
|
7129
|
+
let k;
|
|
7101
7130
|
const Pe = G <= L && N >= G;
|
|
7102
7131
|
if (Pe)
|
|
7103
7132
|
for (let T = 0, W = Ae.value.length; T < W; T++)
|
|
7104
|
-
|
|
7105
|
-
const
|
|
7133
|
+
k = Ae.value[T], k != null && k.nr.used && (O && (k.nr.index = Is[k.item[V]]), (k.nr.index == null || k.nr.index < G || k.nr.index >= N) && qe(k));
|
|
7134
|
+
const _t = Pe ? null : /* @__PURE__ */ new Map();
|
|
7106
7135
|
let se, oe, xe;
|
|
7107
7136
|
for (let T = G; T < N; T++) {
|
|
7108
7137
|
se = ne[T];
|
|
7109
|
-
const W =
|
|
7138
|
+
const W = V ? se == null ? void 0 : se[V] : se;
|
|
7110
7139
|
if (W == null)
|
|
7111
|
-
throw new Error(`Key is ${W} on item (keyField is '${
|
|
7112
|
-
if (
|
|
7113
|
-
|
|
7140
|
+
throw new Error(`Key is ${W} on item (keyField is '${V}')`);
|
|
7141
|
+
if (k = ge.get(W), !E && !((wt = j[T]) != null && wt.size)) {
|
|
7142
|
+
k && qe(k);
|
|
7114
7143
|
continue;
|
|
7115
7144
|
}
|
|
7116
7145
|
oe = se.type;
|
|
7117
|
-
let R =
|
|
7118
|
-
if (!
|
|
7119
|
-
Pe ? R && R.length ?
|
|
7120
|
-
else if (!
|
|
7121
|
-
const _e = R.indexOf(
|
|
7146
|
+
let R = gt.get(oe);
|
|
7147
|
+
if (!k)
|
|
7148
|
+
Pe ? R && R.length ? k = R.pop() : k = mt(Ae, T, se, W, oe) : (xe = _t.get(oe) || 0, (!R || xe >= R.length) && (k = mt(Ae, T, se, W, oe), qe(k, !0), R = gt.get(oe)), k = R[xe], _t.set(oe, xe + 1)), ge.delete(k.nr.key), k.nr.used = !0, k.nr.index = T, k.nr.key = W, k.nr.type = oe, ge.set(W, k);
|
|
7149
|
+
else if (!k.nr.used && (k.nr.used = !0, R)) {
|
|
7150
|
+
const _e = R.indexOf(k);
|
|
7122
7151
|
_e !== -1 && R.splice(_e, 1);
|
|
7123
7152
|
}
|
|
7124
|
-
|
|
7153
|
+
k.item = se, E === null ? (k.position = (Et = j[T - 1]) == null ? void 0 : Et.accumulator, k.offset = 0) : (k.position = Math.floor(T) * E, k.offset = T % 1 * E);
|
|
7125
7154
|
}
|
|
7126
|
-
return b = G, L = N, clearTimeout(he), he = setTimeout(
|
|
7155
|
+
return b = G, L = N, clearTimeout(he), he = setTimeout(ys, 300), {
|
|
7127
7156
|
continuous: Pe
|
|
7128
7157
|
};
|
|
7129
|
-
},
|
|
7130
|
-
const A = o.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" },
|
|
7131
|
-
|
|
7132
|
-
},
|
|
7133
|
-
var
|
|
7158
|
+
}, vs = (O) => {
|
|
7159
|
+
const A = o.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" }, E = g.value, Q = A.scroll;
|
|
7160
|
+
E[Q] = O;
|
|
7161
|
+
}, Ss = (O) => {
|
|
7162
|
+
var E;
|
|
7134
7163
|
let A;
|
|
7135
|
-
o.itemSize === null ? A = O > 0 ? (
|
|
7136
|
-
},
|
|
7164
|
+
o.itemSize === null ? A = O > 0 ? (E = Ve.value[O - 1]) == null ? void 0 : E.accumulator : 0 : A = Math.floor(O) * o.itemSize, vs(A);
|
|
7165
|
+
}, Cs = () => {
|
|
7137
7166
|
const O = g.value;
|
|
7138
7167
|
w.value !== "middle" && (w.value = "middle", t("user-position", "middle")), O.scrollTop === 0 && (w.value = "top", t("user-position", "top")), O.scrollTop + O.clientHeight === O.scrollHeight && (w.value = "bottom", t("user-position", "bottom")), B || (B = !0, requestAnimationFrame(() => {
|
|
7139
7168
|
B = !1, Te(!1, !0);
|
|
7140
7169
|
}));
|
|
7141
7170
|
};
|
|
7142
7171
|
return s({
|
|
7143
|
-
scrollToItem:
|
|
7172
|
+
scrollToItem: Ss,
|
|
7144
7173
|
_updateVisibleItems: Te
|
|
7145
7174
|
}), (O, A) => (a(), l("div", {
|
|
7146
7175
|
ref_key: "scroller",
|
|
@@ -7149,30 +7178,30 @@ const rs = {
|
|
|
7149
7178
|
ready: u.value,
|
|
7150
7179
|
[`direction-${e.direction}`]: !0
|
|
7151
7180
|
}]),
|
|
7152
|
-
onScrollPassive:
|
|
7181
|
+
onScrollPassive: Cs
|
|
7153
7182
|
}, [
|
|
7154
7183
|
(a(), S(X(e.listTag), {
|
|
7155
7184
|
ref: "wrapper",
|
|
7156
|
-
style: re({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: `${
|
|
7185
|
+
style: re({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: `${Yt(Fe)}px` }),
|
|
7157
7186
|
class: y(["vue-recycle-scroller__item-wrapper", e.listClass])
|
|
7158
7187
|
}, {
|
|
7159
7188
|
default: c(() => [
|
|
7160
|
-
(a(!0), l(Y, null, ee(r.value, (
|
|
7161
|
-
key:
|
|
7189
|
+
(a(!0), l(Y, null, ee(r.value, (E) => (a(), S(X(e.itemTag), C({
|
|
7190
|
+
key: E.nr.id,
|
|
7162
7191
|
style: u.value ? {
|
|
7163
|
-
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${
|
|
7192
|
+
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${E.position}px) translate${e.direction === "vertical" ? "X" : "Y"}(${E.offset}px)`,
|
|
7164
7193
|
width: void 0,
|
|
7165
7194
|
height: void 0
|
|
7166
7195
|
} : null,
|
|
7167
7196
|
class: ["vue-recycle-scroller__item-view", [
|
|
7168
7197
|
e.itemClass,
|
|
7169
7198
|
{
|
|
7170
|
-
hover: !e.skipHover && h.value ===
|
|
7199
|
+
hover: !e.skipHover && h.value === E.nr.key
|
|
7171
7200
|
}
|
|
7172
7201
|
]]
|
|
7173
7202
|
}, M(e.skipHover ? {} : {
|
|
7174
7203
|
mouseenter: () => {
|
|
7175
|
-
h.value =
|
|
7204
|
+
h.value = E.nr.key;
|
|
7176
7205
|
},
|
|
7177
7206
|
mouseleave: () => {
|
|
7178
7207
|
h.value = null;
|
|
@@ -7180,9 +7209,9 @@ const rs = {
|
|
|
7180
7209
|
})), {
|
|
7181
7210
|
default: c(() => [
|
|
7182
7211
|
d(O.$slots, "default", {
|
|
7183
|
-
item:
|
|
7184
|
-
index:
|
|
7185
|
-
active:
|
|
7212
|
+
item: E.item,
|
|
7213
|
+
index: E.nr.index,
|
|
7214
|
+
active: E.nr.used
|
|
7186
7215
|
})
|
|
7187
7216
|
]),
|
|
7188
7217
|
_: 2
|
|
@@ -7192,7 +7221,7 @@ const rs = {
|
|
|
7192
7221
|
}, 8, ["style", "class"]))
|
|
7193
7222
|
], 34));
|
|
7194
7223
|
}
|
|
7195
|
-
},
|
|
7224
|
+
}, Bo = {
|
|
7196
7225
|
name: "DtScrollerItem",
|
|
7197
7226
|
inject: [
|
|
7198
7227
|
"vscrollData",
|
|
@@ -7310,13 +7339,13 @@ const rs = {
|
|
|
7310
7339
|
}
|
|
7311
7340
|
},
|
|
7312
7341
|
render() {
|
|
7313
|
-
return
|
|
7342
|
+
return Ls(this.tag, this.$slots.default());
|
|
7314
7343
|
}
|
|
7315
|
-
},
|
|
7344
|
+
}, $o = {
|
|
7316
7345
|
name: "DynamicScroller",
|
|
7317
7346
|
components: {
|
|
7318
|
-
CoreScroller:
|
|
7319
|
-
DtScrollerItem:
|
|
7347
|
+
CoreScroller: us,
|
|
7348
|
+
DtScrollerItem: Bo
|
|
7320
7349
|
},
|
|
7321
7350
|
provide() {
|
|
7322
7351
|
return typeof ResizeObserver < "u" && (this.$_resizeObserver = new ResizeObserver((e) => {
|
|
@@ -7484,7 +7513,7 @@ const rs = {
|
|
|
7484
7513
|
}
|
|
7485
7514
|
}
|
|
7486
7515
|
};
|
|
7487
|
-
function
|
|
7516
|
+
function No(e, s, t, o, n, i) {
|
|
7488
7517
|
const r = f("dt-scroller-item"), h = f("core-scroller");
|
|
7489
7518
|
return a(), S(h, C({
|
|
7490
7519
|
ref: "scroller",
|
|
@@ -7505,7 +7534,7 @@ function Ro(e, s, t, o, n, i) {
|
|
|
7505
7534
|
"data-index": g
|
|
7506
7535
|
}, {
|
|
7507
7536
|
default: c(() => [
|
|
7508
|
-
d(e.$slots, "default",
|
|
7537
|
+
d(e.$slots, "default", ke(Ye({
|
|
7509
7538
|
item: u.item,
|
|
7510
7539
|
index: g,
|
|
7511
7540
|
active: w,
|
|
@@ -7518,7 +7547,7 @@ function Ro(e, s, t, o, n, i) {
|
|
|
7518
7547
|
_: 3
|
|
7519
7548
|
}, 16, ["items", "min-item-size", "direction", "key-field", "list-tag", "item-tag"]);
|
|
7520
7549
|
}
|
|
7521
|
-
const
|
|
7550
|
+
const zo = /* @__PURE__ */ v($o, [["render", No]]), bd = {
|
|
7522
7551
|
__name: "scroller",
|
|
7523
7552
|
props: {
|
|
7524
7553
|
/**
|
|
@@ -7620,12 +7649,12 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7620
7649
|
],
|
|
7621
7650
|
setup(e, { expose: s, emit: t }) {
|
|
7622
7651
|
const o = e;
|
|
7623
|
-
|
|
7652
|
+
Ts("emit", t);
|
|
7624
7653
|
const n = pe(null), i = Re(() => ({
|
|
7625
7654
|
width: typeof o.scrollerWidth == "number" ? `${o.scrollerWidth}px` : o.scrollerWidth,
|
|
7626
7655
|
height: typeof o.scrollerHeight == "number" ? `${o.scrollerHeight}px` : o.scrollerHeight
|
|
7627
7656
|
}));
|
|
7628
|
-
|
|
7657
|
+
Zt(o, () => {
|
|
7629
7658
|
w();
|
|
7630
7659
|
}, { deep: !0, immediate: !0 });
|
|
7631
7660
|
function r() {
|
|
@@ -7648,7 +7677,7 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7648
7677
|
scrollToItem: h,
|
|
7649
7678
|
updateItems: u,
|
|
7650
7679
|
updateItemsFromBottom: g
|
|
7651
|
-
}), (b, L) => (a(), S(X(e.dynamic ?
|
|
7680
|
+
}), (b, L) => (a(), S(X(e.dynamic ? zo : us), {
|
|
7652
7681
|
ref_key: "scroller",
|
|
7653
7682
|
ref: n,
|
|
7654
7683
|
"data-qa": "dt-scroller",
|
|
@@ -7659,12 +7688,12 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7659
7688
|
"key-field": e.keyField,
|
|
7660
7689
|
"list-tag": e.listTag,
|
|
7661
7690
|
"item-tag": e.itemTag,
|
|
7662
|
-
style: re(
|
|
7691
|
+
style: re(Yt(i)),
|
|
7663
7692
|
tabindex: "0",
|
|
7664
7693
|
onUserPosition: L[0] || (L[0] = (B) => b.$emit("user-position", B))
|
|
7665
7694
|
}, {
|
|
7666
7695
|
default: c(({ item: B, index: de, active: he }) => [
|
|
7667
|
-
d(b.$slots, "default",
|
|
7696
|
+
d(b.$slots, "default", ke(Ye({
|
|
7668
7697
|
item: B,
|
|
7669
7698
|
index: de,
|
|
7670
7699
|
active: he
|
|
@@ -7673,13 +7702,13 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7673
7702
|
_: 3
|
|
7674
7703
|
}, 40, ["items", "item-size", "min-item-size", "direction", "key-field", "list-tag", "item-tag", "style"]));
|
|
7675
7704
|
}
|
|
7676
|
-
},
|
|
7705
|
+
}, Mo = {
|
|
7677
7706
|
name: "DtRecipeComboboxWithPopover",
|
|
7678
7707
|
components: {
|
|
7679
|
-
DtCombobox:
|
|
7680
|
-
DtPopover:
|
|
7681
|
-
ComboboxLoadingList:
|
|
7682
|
-
ComboboxEmptyList:
|
|
7708
|
+
DtCombobox: bn,
|
|
7709
|
+
DtPopover: ot,
|
|
7710
|
+
ComboboxLoadingList: is,
|
|
7711
|
+
ComboboxEmptyList: ns
|
|
7683
7712
|
},
|
|
7684
7713
|
mixins: [ie],
|
|
7685
7714
|
props: {
|
|
@@ -7705,7 +7734,7 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7705
7734
|
size: {
|
|
7706
7735
|
type: String,
|
|
7707
7736
|
default: null,
|
|
7708
|
-
validator: (e) => Object.values(
|
|
7737
|
+
validator: (e) => Object.values(as).includes(e)
|
|
7709
7738
|
},
|
|
7710
7739
|
/**
|
|
7711
7740
|
* Description for the input
|
|
@@ -7786,7 +7815,7 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7786
7815
|
contentWidth: {
|
|
7787
7816
|
type: String,
|
|
7788
7817
|
default: null,
|
|
7789
|
-
validator: (e) =>
|
|
7818
|
+
validator: (e) => os.includes(e)
|
|
7790
7819
|
},
|
|
7791
7820
|
/**
|
|
7792
7821
|
* If the list should be shown by pressing up or down arrow key on the input element.
|
|
@@ -7954,8 +7983,8 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7954
7983
|
this.showList !== null || this.isListShown || !this.openWithArrowKeys || this.showComboboxList();
|
|
7955
7984
|
}
|
|
7956
7985
|
}
|
|
7957
|
-
},
|
|
7958
|
-
function
|
|
7986
|
+
}, Ho = ["id"], Fo = { ref: "header" }, Vo = ["onMouseleave", "onFocusout"], qo = { ref: "footer" };
|
|
7987
|
+
function Ko(e, s, t, o, n, i) {
|
|
7959
7988
|
const r = f("combobox-loading-list"), h = f("combobox-empty-list"), u = f("dt-popover"), g = f("dt-combobox");
|
|
7960
7989
|
return a(), S(g, C({
|
|
7961
7990
|
ref: "combobox",
|
|
@@ -7979,15 +8008,15 @@ function Vo(e, s, t, o, n, i) {
|
|
|
7979
8008
|
ref: "input",
|
|
7980
8009
|
onFocusin: s[0] || (s[0] = (...b) => i.onFocusIn && i.onFocusIn(...b)),
|
|
7981
8010
|
onKeydown: [
|
|
7982
|
-
s[1] || (s[1] =
|
|
7983
|
-
s[2] || (s[2] =
|
|
8011
|
+
s[1] || (s[1] = F((b) => i.openOnArrowKeyPress(b), ["up"])),
|
|
8012
|
+
s[2] || (s[2] = F((b) => i.openOnArrowKeyPress(b), ["down"]))
|
|
7984
8013
|
]
|
|
7985
8014
|
}, [
|
|
7986
8015
|
d(e.$slots, "input", {
|
|
7987
8016
|
inputProps: w,
|
|
7988
8017
|
onInput: i.handleDisplayList
|
|
7989
8018
|
})
|
|
7990
|
-
], 40,
|
|
8019
|
+
], 40, Ho)
|
|
7991
8020
|
]),
|
|
7992
8021
|
list: c(({ opened: w, listProps: b, clearHighlightIndex: L }) => [
|
|
7993
8022
|
m(u, {
|
|
@@ -8014,7 +8043,7 @@ function Vo(e, s, t, o, n, i) {
|
|
|
8014
8043
|
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
8015
8044
|
"visually-hidden-close": e.visuallyHiddenClose,
|
|
8016
8045
|
onOpened: w
|
|
8017
|
-
},
|
|
8046
|
+
}, Ee({
|
|
8018
8047
|
content: c(() => [
|
|
8019
8048
|
_("div", {
|
|
8020
8049
|
ref: "listWrapper",
|
|
@@ -8022,18 +8051,18 @@ function Vo(e, s, t, o, n, i) {
|
|
|
8022
8051
|
onMouseleave: L,
|
|
8023
8052
|
onFocusout: L
|
|
8024
8053
|
}, [
|
|
8025
|
-
t.loading ? (a(), S(r,
|
|
8054
|
+
t.loading ? (a(), S(r, ke(C({ key: 0 }, b)), null, 16)) : t.emptyList && t.emptyStateMessage ? (a(), S(h, C({ key: 1 }, b, { message: t.emptyStateMessage }), null, 16, ["message"])) : d(e.$slots, "list", {
|
|
8026
8055
|
key: 2,
|
|
8027
8056
|
listProps: b
|
|
8028
8057
|
})
|
|
8029
|
-
], 42,
|
|
8058
|
+
], 42, Vo)
|
|
8030
8059
|
]),
|
|
8031
8060
|
_: 2
|
|
8032
8061
|
}, [
|
|
8033
8062
|
n.hasSlotContent(e.$slots.header) ? {
|
|
8034
8063
|
name: "headerContent",
|
|
8035
8064
|
fn: c(() => [
|
|
8036
|
-
_("div",
|
|
8065
|
+
_("div", Fo, [
|
|
8037
8066
|
d(e.$slots, "header")
|
|
8038
8067
|
], 512)
|
|
8039
8068
|
]),
|
|
@@ -8042,7 +8071,7 @@ function Vo(e, s, t, o, n, i) {
|
|
|
8042
8071
|
n.hasSlotContent(e.$slots.footer) ? {
|
|
8043
8072
|
name: "footerContent",
|
|
8044
8073
|
fn: c(() => [
|
|
8045
|
-
_("div",
|
|
8074
|
+
_("div", qo, [
|
|
8046
8075
|
d(e.$slots, "footer")
|
|
8047
8076
|
], 512)
|
|
8048
8077
|
]),
|
|
@@ -8053,25 +8082,25 @@ function Vo(e, s, t, o, n, i) {
|
|
|
8053
8082
|
_: 3
|
|
8054
8083
|
}, 16, ["loading", "label", "label-visible", "size", "description", "empty-list", "empty-state-message", "show-list", "on-beginning-of-list", "on-end-of-list", "list-id"]);
|
|
8055
8084
|
}
|
|
8056
|
-
const
|
|
8085
|
+
const jo = /* @__PURE__ */ v(Mo, [["render", Ko]]), Go = {
|
|
8057
8086
|
// Chip has no 'lg' and 'xl' size. So we don't support that in multi-select.
|
|
8058
8087
|
EXTRA_SMALL: "xs",
|
|
8059
8088
|
SMALL: "sm",
|
|
8060
8089
|
DEFAULT: "md"
|
|
8061
|
-
},
|
|
8090
|
+
}, Uo = {
|
|
8062
8091
|
xs: "xs",
|
|
8063
8092
|
sm: "xs",
|
|
8064
8093
|
md: "sm"
|
|
8065
|
-
},
|
|
8094
|
+
}, Wo = {
|
|
8066
8095
|
xs: 1.4,
|
|
8067
8096
|
sm: 0.4,
|
|
8068
8097
|
md: 0.2
|
|
8069
|
-
},
|
|
8098
|
+
}, Zo = {
|
|
8070
8099
|
name: "DtRecipeComboboxMultiSelect",
|
|
8071
8100
|
components: {
|
|
8072
|
-
DtRecipeComboboxWithPopover:
|
|
8073
|
-
DtInput:
|
|
8074
|
-
DtChip:
|
|
8101
|
+
DtRecipeComboboxWithPopover: jo,
|
|
8102
|
+
DtInput: qs,
|
|
8103
|
+
DtChip: rs,
|
|
8075
8104
|
DtValidationMessages: me
|
|
8076
8105
|
},
|
|
8077
8106
|
mixins: [ie],
|
|
@@ -8111,7 +8140,7 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8111
8140
|
inputMessages: {
|
|
8112
8141
|
type: Array,
|
|
8113
8142
|
default: () => [],
|
|
8114
|
-
validator: (e) =>
|
|
8143
|
+
validator: (e) => Qt(e)
|
|
8115
8144
|
},
|
|
8116
8145
|
/**
|
|
8117
8146
|
* Show input validation message
|
|
@@ -8198,7 +8227,7 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8198
8227
|
size: {
|
|
8199
8228
|
type: String,
|
|
8200
8229
|
default: "md",
|
|
8201
|
-
validator: (e) => Object.values(
|
|
8230
|
+
validator: (e) => Object.values(Go).includes(e)
|
|
8202
8231
|
},
|
|
8203
8232
|
/**
|
|
8204
8233
|
* Sets the element to which the popover is going to append to.
|
|
@@ -8264,7 +8293,7 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8264
8293
|
initialInputPadding: {},
|
|
8265
8294
|
resizeWindowObserver: null,
|
|
8266
8295
|
originalInputSize: null,
|
|
8267
|
-
CHIP_SIZES:
|
|
8296
|
+
CHIP_SIZES: Uo,
|
|
8268
8297
|
hasSlotContent: $
|
|
8269
8298
|
};
|
|
8270
8299
|
},
|
|
@@ -8389,7 +8418,7 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8389
8418
|
if (!e)
|
|
8390
8419
|
return;
|
|
8391
8420
|
const s = this.$refs.inputSlotWrapper, t = e.getBoundingClientRect().top - s.getBoundingClientRect().top, o = this.$refs.chipsWrapper;
|
|
8392
|
-
o.style.top = t -
|
|
8421
|
+
o.style.top = t - Wo[this.size] + "px";
|
|
8393
8422
|
},
|
|
8394
8423
|
setInputPadding() {
|
|
8395
8424
|
const e = this.getLastChip(), s = this.getInput(), t = this.$refs.chipsWrapper;
|
|
@@ -8415,17 +8444,17 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8415
8444
|
this.maxSelected !== 0 && (this.selectedItems.length > this.maxSelected ? (this.showValidationMessages = !0, this.$emit("max-selected")) : this.showValidationMessages = !1);
|
|
8416
8445
|
}
|
|
8417
8446
|
}
|
|
8418
|
-
},
|
|
8447
|
+
}, Yo = {
|
|
8419
8448
|
ref: "inputSlotWrapper",
|
|
8420
8449
|
class: "d-ps-relative d-d-block"
|
|
8421
|
-
},
|
|
8450
|
+
}, Qo = {
|
|
8422
8451
|
ref: "chipsWrapper",
|
|
8423
8452
|
class: "d-ps-absolute d-mx2 d-pl1"
|
|
8424
|
-
},
|
|
8453
|
+
}, Xo = { ref: "header" }, Jo = {
|
|
8425
8454
|
key: 1,
|
|
8426
8455
|
class: "d-ta-center d-py16"
|
|
8427
|
-
},
|
|
8428
|
-
function
|
|
8456
|
+
}, el = { ref: "footer" };
|
|
8457
|
+
function tl(e, s, t, o, n, i) {
|
|
8429
8458
|
const r = f("dt-chip"), h = f("dt-input"), u = f("dt-validation-messages"), g = f("dt-recipe-combobox-with-popover");
|
|
8430
8459
|
return a(), S(g, {
|
|
8431
8460
|
ref: "comboboxWithPopover",
|
|
@@ -8440,10 +8469,10 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8440
8469
|
"append-to": t.appendTo,
|
|
8441
8470
|
transition: t.transition,
|
|
8442
8471
|
onSelect: i.onComboboxSelect
|
|
8443
|
-
},
|
|
8472
|
+
}, Ee({
|
|
8444
8473
|
input: c(({ onInput: w }) => [
|
|
8445
|
-
_("span",
|
|
8446
|
-
_("span",
|
|
8474
|
+
_("span", Yo, [
|
|
8475
|
+
_("span", Qo, [
|
|
8447
8476
|
(a(!0), l(Y, null, ee(t.selectedItems, (b) => (a(), S(r, C({
|
|
8448
8477
|
ref_for: !0,
|
|
8449
8478
|
ref: "chips",
|
|
@@ -8453,7 +8482,7 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8453
8482
|
"close-button-props": { ariaLabel: "close" },
|
|
8454
8483
|
size: n.CHIP_SIZES[t.size]
|
|
8455
8484
|
}, M(i.chipListeners), {
|
|
8456
|
-
onKeyup:
|
|
8485
|
+
onKeyup: F((L) => i.onChipRemove(b), ["backspace"]),
|
|
8457
8486
|
onClose: (L) => i.onChipRemove(b)
|
|
8458
8487
|
}), {
|
|
8459
8488
|
default: c(() => [
|
|
@@ -8487,7 +8516,7 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8487
8516
|
onMousedown: s[1] || (s[1] = U(() => {
|
|
8488
8517
|
}, ["prevent"]))
|
|
8489
8518
|
}, [
|
|
8490
|
-
t.loading ? (a(), l("div",
|
|
8519
|
+
t.loading ? (a(), l("div", Jo, I(t.loadingMessage), 1)) : d(e.$slots, "list", { key: 0 })
|
|
8491
8520
|
], 544)
|
|
8492
8521
|
]),
|
|
8493
8522
|
_: 2
|
|
@@ -8495,7 +8524,7 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8495
8524
|
n.hasSlotContent(e.$slots.header) ? {
|
|
8496
8525
|
name: "header",
|
|
8497
8526
|
fn: c(() => [
|
|
8498
|
-
_("div",
|
|
8527
|
+
_("div", Xo, [
|
|
8499
8528
|
d(e.$slots, "header")
|
|
8500
8529
|
], 512)
|
|
8501
8530
|
]),
|
|
@@ -8504,7 +8533,7 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8504
8533
|
n.hasSlotContent(e.$slots.footer) ? {
|
|
8505
8534
|
name: "footer",
|
|
8506
8535
|
fn: c(() => [
|
|
8507
|
-
_("div",
|
|
8536
|
+
_("div", el, [
|
|
8508
8537
|
d(e.$slots, "footer")
|
|
8509
8538
|
], 512)
|
|
8510
8539
|
]),
|
|
@@ -8512,10 +8541,10 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8512
8541
|
} : void 0
|
|
8513
8542
|
]), 1032, ["label", "show-list", "max-height", "popover-offset", "has-suggestion-list", "visually-hidden-close-label", "visually-hidden-close", "append-to", "transition", "onSelect"]);
|
|
8514
8543
|
}
|
|
8515
|
-
const
|
|
8516
|
-
const
|
|
8544
|
+
const yd = /* @__PURE__ */ v(Zo, [["render", tl]]), hs = ["sm", "md", "lg", "xl"];
|
|
8545
|
+
const sl = {
|
|
8517
8546
|
name: "DtRecipeCallbarButton",
|
|
8518
|
-
components: { DtButton: K, DtTooltip:
|
|
8547
|
+
components: { DtButton: K, DtTooltip: Je },
|
|
8519
8548
|
inheritAttrs: !0,
|
|
8520
8549
|
props: {
|
|
8521
8550
|
/**
|
|
@@ -8593,7 +8622,7 @@ const Jo = {
|
|
|
8593
8622
|
buttonWidthSize: {
|
|
8594
8623
|
type: String,
|
|
8595
8624
|
default: "xl",
|
|
8596
|
-
validator: (e) =>
|
|
8625
|
+
validator: (e) => hs.includes(e)
|
|
8597
8626
|
},
|
|
8598
8627
|
/**
|
|
8599
8628
|
* The fill and outline of the button associated with its visual importance.
|
|
@@ -8641,7 +8670,7 @@ const Jo = {
|
|
|
8641
8670
|
}
|
|
8642
8671
|
}
|
|
8643
8672
|
};
|
|
8644
|
-
function
|
|
8673
|
+
function il(e, s, t, o, n, i) {
|
|
8645
8674
|
const r = f("dt-button"), h = f("dt-tooltip");
|
|
8646
8675
|
return a(), S(h, {
|
|
8647
8676
|
id: t.id,
|
|
@@ -8675,10 +8704,10 @@ function el(e, s, t, o, n, i) {
|
|
|
8675
8704
|
_: 3
|
|
8676
8705
|
}, 8, ["id"]);
|
|
8677
8706
|
}
|
|
8678
|
-
const
|
|
8679
|
-
const
|
|
8707
|
+
const nl = /* @__PURE__ */ v(sl, [["render", il]]);
|
|
8708
|
+
const al = {
|
|
8680
8709
|
name: "DtRecipeCallbarButtonWithPopover",
|
|
8681
|
-
components: { DtRecipeCallbarButton:
|
|
8710
|
+
components: { DtRecipeCallbarButton: nl, DtPopover: ot, DtButton: K, DtIcon: x },
|
|
8682
8711
|
/* inheritAttrs: false is generally an option we want to set on library
|
|
8683
8712
|
components. This allows any attributes passed in that are not recognized
|
|
8684
8713
|
as props to be passed down to another element or component using v-bind:$attrs
|
|
@@ -8811,7 +8840,7 @@ const sl = {
|
|
|
8811
8840
|
buttonWidthSize: {
|
|
8812
8841
|
type: String,
|
|
8813
8842
|
default: "xl",
|
|
8814
|
-
validator: (e) =>
|
|
8843
|
+
validator: (e) => hs.includes(e)
|
|
8815
8844
|
},
|
|
8816
8845
|
/**
|
|
8817
8846
|
* Additional class name for the popover content wrapper element.
|
|
@@ -8858,10 +8887,10 @@ const sl = {
|
|
|
8858
8887
|
this.open = e;
|
|
8859
8888
|
}
|
|
8860
8889
|
}
|
|
8861
|
-
},
|
|
8862
|
-
function
|
|
8890
|
+
}, ol = { class: "d-d-flex d-ai-center" };
|
|
8891
|
+
function ll(e, s, t, o, n, i) {
|
|
8863
8892
|
const r = f("dt-recipe-callbar-button"), h = f("dt-icon"), u = f("dt-button"), g = f("dt-popover");
|
|
8864
|
-
return a(), l("div",
|
|
8893
|
+
return a(), l("div", ol, [
|
|
8865
8894
|
m(r, {
|
|
8866
8895
|
"aria-label": t.ariaLabel,
|
|
8867
8896
|
disabled: t.disabled,
|
|
@@ -8930,10 +8959,10 @@ function nl(e, s, t, o, n, i) {
|
|
|
8930
8959
|
}, 16, ["id", "open", "placement", "initial-focus-element", "show-close-button", "dialog-class", "onOpened"])) : p("", !0)
|
|
8931
8960
|
]);
|
|
8932
8961
|
}
|
|
8933
|
-
const
|
|
8962
|
+
const vd = /* @__PURE__ */ v(al, [["render", ll]]), rl = {
|
|
8934
8963
|
name: "DtRecipeContactInfo",
|
|
8935
8964
|
components: {
|
|
8936
|
-
DtAvatar:
|
|
8965
|
+
DtAvatar: st,
|
|
8937
8966
|
DtIcon: x,
|
|
8938
8967
|
DtListItem: ze
|
|
8939
8968
|
},
|
|
@@ -9028,15 +9057,15 @@ const _d = /* @__PURE__ */ v(sl, [["render", nl]]), al = {
|
|
|
9028
9057
|
default: null
|
|
9029
9058
|
}
|
|
9030
9059
|
}
|
|
9031
|
-
},
|
|
9060
|
+
}, dl = {
|
|
9032
9061
|
key: 0,
|
|
9033
9062
|
class: "d-ps-relative",
|
|
9034
9063
|
"data-qa": "contact-info-left"
|
|
9035
|
-
},
|
|
9064
|
+
}, cl = {
|
|
9036
9065
|
key: 0,
|
|
9037
9066
|
class: "d-mrn4 d-d-flex d-fd-row"
|
|
9038
|
-
},
|
|
9039
|
-
function
|
|
9067
|
+
}, ul = ["src", "alt"], hl = { key: 1 }, fl = ["src", "initials", "seed", "alt"], pl = { key: 1 }, ml = { "data-qa": "contact-info-header" }, gl = { "data-qa": "contact-info-subtitle" }, _l = { "data-qa": "contact-info-bottom" }, bl = { "data-qa": "contact-info-right" };
|
|
9068
|
+
function yl(e, s, t, o, n, i) {
|
|
9040
9069
|
const r = f("dt-icon"), h = f("dt-avatar"), u = f("dt-list-item");
|
|
9041
9070
|
return a(), S(u, {
|
|
9042
9071
|
id: t.id,
|
|
@@ -9045,8 +9074,8 @@ function gl(e, s, t, o, n, i) {
|
|
|
9045
9074
|
"data-qa": "contact-info"
|
|
9046
9075
|
}, {
|
|
9047
9076
|
left: c(() => [
|
|
9048
|
-
t.showAvatar ? (a(), l("div",
|
|
9049
|
-
t.avatarList ? (a(), l("div",
|
|
9077
|
+
t.showAvatar ? (a(), l("div", dl, [
|
|
9078
|
+
t.avatarList ? (a(), l("div", cl, [
|
|
9050
9079
|
(a(!0), l(Y, null, ee(t.avatarList, (g, w) => (a(), l("div", { key: w }, [
|
|
9051
9080
|
m(h, {
|
|
9052
9081
|
size: t.avatarSize,
|
|
@@ -9063,7 +9092,7 @@ function gl(e, s, t, o, n, i) {
|
|
|
9063
9092
|
"data-qa": "dt-contact-avatar",
|
|
9064
9093
|
src: g.src,
|
|
9065
9094
|
alt: g.initials
|
|
9066
|
-
}, null, 8,
|
|
9095
|
+
}, null, 8, ul)) : g.initials ? (a(), l("div", hl, I(g.initials), 1)) : (a(), S(r, {
|
|
9067
9096
|
key: 2,
|
|
9068
9097
|
name: t.avatarIcon
|
|
9069
9098
|
}, null, 8, ["name"]))
|
|
@@ -9086,7 +9115,7 @@ function gl(e, s, t, o, n, i) {
|
|
|
9086
9115
|
initials: t.avatarInitials,
|
|
9087
9116
|
seed: t.avatarSeed,
|
|
9088
9117
|
alt: t.avatarInitials
|
|
9089
|
-
}, null, 8,
|
|
9118
|
+
}, null, 8, fl)) : t.avatarInitials ? (a(), l("div", pl, I(t.avatarInitials), 1)) : (a(), S(r, {
|
|
9090
9119
|
key: 2,
|
|
9091
9120
|
name: t.avatarIcon
|
|
9092
9121
|
}, null, 8, ["name"]))
|
|
@@ -9096,29 +9125,29 @@ function gl(e, s, t, o, n, i) {
|
|
|
9096
9125
|
])) : p("", !0)
|
|
9097
9126
|
]),
|
|
9098
9127
|
default: c(() => [
|
|
9099
|
-
_("div",
|
|
9128
|
+
_("div", ml, [
|
|
9100
9129
|
d(e.$slots, "header")
|
|
9101
9130
|
])
|
|
9102
9131
|
]),
|
|
9103
9132
|
subtitle: c(() => [
|
|
9104
|
-
_("div",
|
|
9133
|
+
_("div", gl, [
|
|
9105
9134
|
d(e.$slots, "subtitle")
|
|
9106
9135
|
])
|
|
9107
9136
|
]),
|
|
9108
9137
|
bottom: c(() => [
|
|
9109
|
-
_("div",
|
|
9138
|
+
_("div", _l, [
|
|
9110
9139
|
d(e.$slots, "bottom")
|
|
9111
9140
|
])
|
|
9112
9141
|
]),
|
|
9113
9142
|
right: c(() => [
|
|
9114
|
-
_("div",
|
|
9143
|
+
_("div", bl, [
|
|
9115
9144
|
d(e.$slots, "right")
|
|
9116
9145
|
])
|
|
9117
9146
|
]),
|
|
9118
9147
|
_: 3
|
|
9119
9148
|
}, 8, ["id", "role"]);
|
|
9120
9149
|
}
|
|
9121
|
-
const
|
|
9150
|
+
const Sd = /* @__PURE__ */ v(rl, [["render", yl]]), vl = [
|
|
9122
9151
|
"green300",
|
|
9123
9152
|
"green100",
|
|
9124
9153
|
"red200",
|
|
@@ -9128,7 +9157,7 @@ const bd = /* @__PURE__ */ v(al, [["render", gl]]), _l = [
|
|
|
9128
9157
|
"black100",
|
|
9129
9158
|
"white"
|
|
9130
9159
|
];
|
|
9131
|
-
const
|
|
9160
|
+
const Sl = {
|
|
9132
9161
|
name: "DtRecipeTopBannerInfo",
|
|
9133
9162
|
props: {
|
|
9134
9163
|
/**
|
|
@@ -9138,7 +9167,7 @@ const bl = {
|
|
|
9138
9167
|
type: String,
|
|
9139
9168
|
default: "green300",
|
|
9140
9169
|
validator: function(e) {
|
|
9141
|
-
return
|
|
9170
|
+
return vl.includes(e);
|
|
9142
9171
|
}
|
|
9143
9172
|
}
|
|
9144
9173
|
},
|
|
@@ -9158,41 +9187,41 @@ const bl = {
|
|
|
9158
9187
|
}[this.colorCode]];
|
|
9159
9188
|
}
|
|
9160
9189
|
}
|
|
9161
|
-
},
|
|
9162
|
-
function
|
|
9190
|
+
}, Cl = { class: "d-top-banner-info__left" }, Il = { class: "d-top-banner-info__middle d-my4" }, wl = { class: "d-top-banner-info__right d-ta-right" };
|
|
9191
|
+
function El(e, s, t, o, n, i) {
|
|
9163
9192
|
return a(), l("div", {
|
|
9164
9193
|
class: y(["d-fs-100 d-d-flex d-top-banner-info d-jc-space-between d-ai-center d-fc-primary", i.bannerInfoClass]),
|
|
9165
9194
|
"data-qa": "banner-info"
|
|
9166
9195
|
}, [
|
|
9167
|
-
_("div",
|
|
9196
|
+
_("div", Cl, [
|
|
9168
9197
|
d(e.$slots, "left")
|
|
9169
9198
|
]),
|
|
9170
|
-
_("div",
|
|
9199
|
+
_("div", Il, [
|
|
9171
9200
|
d(e.$slots, "default")
|
|
9172
9201
|
]),
|
|
9173
|
-
_("div",
|
|
9202
|
+
_("div", wl, [
|
|
9174
9203
|
d(e.$slots, "right")
|
|
9175
9204
|
])
|
|
9176
9205
|
], 2);
|
|
9177
9206
|
}
|
|
9178
|
-
const
|
|
9179
|
-
[
|
|
9180
|
-
[
|
|
9181
|
-
[
|
|
9182
|
-
[
|
|
9183
|
-
[
|
|
9207
|
+
const Cd = /* @__PURE__ */ v(Sl, [["render", El]]), rt = "promptmenu", dt = "promptcollect", ct = "promptplay", ut = "gotoexpert", He = "goto", ht = "branch", ft = "transfer", pt = "hangup", kl = {
|
|
9208
|
+
[rt]: "keypad",
|
|
9209
|
+
[dt]: "dialer",
|
|
9210
|
+
[ct]: "volume-2",
|
|
9211
|
+
[ut]: "expert-node",
|
|
9212
|
+
[ht]: "branch",
|
|
9184
9213
|
[He]: "call-merge",
|
|
9185
|
-
[
|
|
9186
|
-
[
|
|
9187
|
-
},
|
|
9188
|
-
[
|
|
9189
|
-
[
|
|
9190
|
-
[
|
|
9191
|
-
[
|
|
9192
|
-
[
|
|
9214
|
+
[ft]: "transfer",
|
|
9215
|
+
[pt]: "phone-hang-up"
|
|
9216
|
+
}, Id = {
|
|
9217
|
+
[rt]: "Menu",
|
|
9218
|
+
[dt]: "Collect",
|
|
9219
|
+
[ct]: "Play",
|
|
9220
|
+
[ut]: "Expert",
|
|
9221
|
+
[ht]: "Branch",
|
|
9193
9222
|
[He]: "Go-to",
|
|
9194
|
-
[
|
|
9195
|
-
[
|
|
9223
|
+
[ft]: "Transfer",
|
|
9224
|
+
[pt]: "Hangup"
|
|
9196
9225
|
}, le = {
|
|
9197
9226
|
PROMPT: {
|
|
9198
9227
|
normal: "d-bc-blue-200",
|
|
@@ -9206,22 +9235,22 @@ const yd = /* @__PURE__ */ v(bl, [["render", Cl]]), at = "promptmenu", ot = "pro
|
|
|
9206
9235
|
normal: "d-bc-red-100",
|
|
9207
9236
|
selected: "d-bc-red-200"
|
|
9208
9237
|
}
|
|
9209
|
-
},
|
|
9210
|
-
[
|
|
9211
|
-
[
|
|
9212
|
-
[
|
|
9213
|
-
[
|
|
9214
|
-
[
|
|
9238
|
+
}, Ol = {
|
|
9239
|
+
[rt]: le.PROMPT,
|
|
9240
|
+
[dt]: le.PROMPT,
|
|
9241
|
+
[ct]: le.PROMPT,
|
|
9242
|
+
[ut]: le.LOGIC,
|
|
9243
|
+
[ht]: le.LOGIC,
|
|
9215
9244
|
[He]: le.LOGIC,
|
|
9216
|
-
[
|
|
9217
|
-
[
|
|
9245
|
+
[ft]: le.TERMINAL,
|
|
9246
|
+
[pt]: le.TERMINAL
|
|
9218
9247
|
};
|
|
9219
|
-
const
|
|
9248
|
+
const Ll = {
|
|
9220
9249
|
name: "DtRecipeIvrNode",
|
|
9221
9250
|
components: {
|
|
9222
|
-
DtCard:
|
|
9251
|
+
DtCard: Gi,
|
|
9223
9252
|
DtButton: K,
|
|
9224
|
-
DtDropdown:
|
|
9253
|
+
DtDropdown: Hn,
|
|
9225
9254
|
DtIcon: x
|
|
9226
9255
|
},
|
|
9227
9256
|
props: {
|
|
@@ -9282,10 +9311,10 @@ const kl = {
|
|
|
9282
9311
|
};
|
|
9283
9312
|
},
|
|
9284
9313
|
nodeIcon() {
|
|
9285
|
-
return
|
|
9314
|
+
return kl[this.nodeType];
|
|
9286
9315
|
},
|
|
9287
9316
|
headerColor() {
|
|
9288
|
-
const { normal: e, selected: s } =
|
|
9317
|
+
const { normal: e, selected: s } = Ol[this.nodeType];
|
|
9289
9318
|
return this.isSelected ? s : e;
|
|
9290
9319
|
},
|
|
9291
9320
|
isGotoNode() {
|
|
@@ -9297,11 +9326,11 @@ const kl = {
|
|
|
9297
9326
|
this.isOpen = !0;
|
|
9298
9327
|
}
|
|
9299
9328
|
}
|
|
9300
|
-
},
|
|
9329
|
+
}, Tl = { class: "d-d-flex d-ai-center" }, Al = {
|
|
9301
9330
|
class: "d-fs-200 d-fw-bold",
|
|
9302
9331
|
"data-qa": "ivr-node-label"
|
|
9303
|
-
},
|
|
9304
|
-
function
|
|
9332
|
+
}, Dl = { class: "d-w164" };
|
|
9333
|
+
function Pl(e, s, t, o, n, i) {
|
|
9305
9334
|
const r = f("dt-icon"), h = f("dt-button"), u = f("dt-dropdown"), g = f("dt-card");
|
|
9306
9335
|
return a(), l("div", C({ class: "d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width" }, M(i.nodeListeners, !0)), [
|
|
9307
9336
|
t.dtmfKey ? (a(), l("div", {
|
|
@@ -9332,7 +9361,7 @@ function Tl(e, s, t, o, n, i) {
|
|
|
9332
9361
|
]
|
|
9333
9362
|
}, {
|
|
9334
9363
|
header: c(() => [
|
|
9335
|
-
_("div",
|
|
9364
|
+
_("div", Tl, [
|
|
9336
9365
|
m(h, {
|
|
9337
9366
|
"aria-label": t.nodeType,
|
|
9338
9367
|
importance: "clear",
|
|
@@ -9348,7 +9377,7 @@ function Tl(e, s, t, o, n, i) {
|
|
|
9348
9377
|
]),
|
|
9349
9378
|
_: 1
|
|
9350
9379
|
}, 8, ["aria-label"]),
|
|
9351
|
-
_("p",
|
|
9380
|
+
_("p", Al, I(t.nodeLabel), 1)
|
|
9352
9381
|
]),
|
|
9353
9382
|
m(u, {
|
|
9354
9383
|
open: n.isOpen,
|
|
@@ -9372,7 +9401,7 @@ function Tl(e, s, t, o, n, i) {
|
|
|
9372
9401
|
}, 8, ["aria-label", "onClick"])
|
|
9373
9402
|
]),
|
|
9374
9403
|
list: c(({ close: w }) => [
|
|
9375
|
-
_("div",
|
|
9404
|
+
_("div", Dl, [
|
|
9376
9405
|
d(e.$slots, "menuItems", { close: w })
|
|
9377
9406
|
])
|
|
9378
9407
|
]),
|
|
@@ -9386,36 +9415,36 @@ function Tl(e, s, t, o, n, i) {
|
|
|
9386
9415
|
}, 8, ["container-class", "header-class"])
|
|
9387
9416
|
], 16);
|
|
9388
9417
|
}
|
|
9389
|
-
const
|
|
9390
|
-
const
|
|
9418
|
+
const wd = /* @__PURE__ */ v(Ll, [["render", Pl]]);
|
|
9419
|
+
const xl = {
|
|
9391
9420
|
name: "DtRecipeGroupedChip",
|
|
9392
9421
|
components: {
|
|
9393
|
-
DtChip:
|
|
9422
|
+
DtChip: rs
|
|
9394
9423
|
},
|
|
9395
9424
|
data() {
|
|
9396
9425
|
return {
|
|
9397
9426
|
hasSlotContent: $
|
|
9398
9427
|
};
|
|
9399
9428
|
}
|
|
9400
|
-
},
|
|
9429
|
+
}, Rl = {
|
|
9401
9430
|
"data-qa": "grouped-chip",
|
|
9402
9431
|
class: "d-d-inline-flex d-ws-nowrap d-bgc-unset"
|
|
9403
|
-
},
|
|
9432
|
+
}, Bl = {
|
|
9404
9433
|
key: 0,
|
|
9405
9434
|
"data-qa": "left-grouped-chip-icon"
|
|
9406
|
-
},
|
|
9435
|
+
}, $l = {
|
|
9407
9436
|
key: 0,
|
|
9408
9437
|
"data-qa": "left-grouped-chip-content"
|
|
9409
|
-
},
|
|
9438
|
+
}, Nl = {
|
|
9410
9439
|
key: 0,
|
|
9411
9440
|
"data-qa": "right-grouped-chip-icon"
|
|
9412
|
-
},
|
|
9441
|
+
}, zl = {
|
|
9413
9442
|
key: 0,
|
|
9414
9443
|
"data-qa": "right-grouped-chip-content"
|
|
9415
9444
|
};
|
|
9416
|
-
function
|
|
9445
|
+
function Ml(e, s, t, o, n, i) {
|
|
9417
9446
|
const r = f("dt-chip");
|
|
9418
|
-
return a(), l("div",
|
|
9447
|
+
return a(), l("div", Rl, [
|
|
9419
9448
|
m(r, {
|
|
9420
9449
|
"hide-close": !0,
|
|
9421
9450
|
interactive: !1,
|
|
@@ -9423,9 +9452,9 @@ function $l(e, s, t, o, n, i) {
|
|
|
9423
9452
|
size: "xs",
|
|
9424
9453
|
"grouped-chip": !0,
|
|
9425
9454
|
class: "d-blr-pill d-bgc-moderate-opaque d-wmx84 dt-chip-content"
|
|
9426
|
-
},
|
|
9455
|
+
}, Ee({
|
|
9427
9456
|
default: c(() => [
|
|
9428
|
-
n.hasSlotContent(e.$slots.leftContent) ? (a(), l("div",
|
|
9457
|
+
n.hasSlotContent(e.$slots.leftContent) ? (a(), l("div", $l, [
|
|
9429
9458
|
d(e.$slots, "leftContent")
|
|
9430
9459
|
])) : p("", !0)
|
|
9431
9460
|
]),
|
|
@@ -9434,7 +9463,7 @@ function $l(e, s, t, o, n, i) {
|
|
|
9434
9463
|
n.hasSlotContent(e.$slots.leftIcon) ? {
|
|
9435
9464
|
name: "icon",
|
|
9436
9465
|
fn: c(() => [
|
|
9437
|
-
n.hasSlotContent(e.$slots.leftIcon) ? (a(), l("div",
|
|
9466
|
+
n.hasSlotContent(e.$slots.leftIcon) ? (a(), l("div", Bl, [
|
|
9438
9467
|
d(e.$slots, "leftIcon")
|
|
9439
9468
|
])) : p("", !0)
|
|
9440
9469
|
]),
|
|
@@ -9450,12 +9479,12 @@ function $l(e, s, t, o, n, i) {
|
|
|
9450
9479
|
class: "d-brr-pill d-bgc-purple-200 d-wmx84 dt-chip-content"
|
|
9451
9480
|
}, {
|
|
9452
9481
|
icon: c(() => [
|
|
9453
|
-
n.hasSlotContent(e.$slots.rightIcon) ? (a(), l("div",
|
|
9482
|
+
n.hasSlotContent(e.$slots.rightIcon) ? (a(), l("div", Nl, [
|
|
9454
9483
|
d(e.$slots, "rightIcon")
|
|
9455
9484
|
])) : p("", !0)
|
|
9456
9485
|
]),
|
|
9457
9486
|
default: c(() => [
|
|
9458
|
-
n.hasSlotContent(e.$slots.rightContent) ? (a(), l("div",
|
|
9487
|
+
n.hasSlotContent(e.$slots.rightContent) ? (a(), l("div", zl, [
|
|
9459
9488
|
d(e.$slots, "rightContent")
|
|
9460
9489
|
])) : p("", !0)
|
|
9461
9490
|
]),
|
|
@@ -9463,8 +9492,8 @@ function $l(e, s, t, o, n, i) {
|
|
|
9463
9492
|
})
|
|
9464
9493
|
]);
|
|
9465
9494
|
}
|
|
9466
|
-
const
|
|
9467
|
-
const
|
|
9495
|
+
const Ed = /* @__PURE__ */ v(xl, [["render", Ml]]);
|
|
9496
|
+
const Hl = {
|
|
9468
9497
|
name: "DtRecipeSettingsMenuButton",
|
|
9469
9498
|
components: {
|
|
9470
9499
|
DtButton: K,
|
|
@@ -9490,7 +9519,7 @@ const Nl = {
|
|
|
9490
9519
|
}
|
|
9491
9520
|
}
|
|
9492
9521
|
};
|
|
9493
|
-
function
|
|
9522
|
+
function Fl(e, s, t, o, n, i) {
|
|
9494
9523
|
const r = f("dt-icon"), h = f("dt-button");
|
|
9495
9524
|
return t.updateAvailable ? (a(), S(h, C({
|
|
9496
9525
|
key: 0,
|
|
@@ -9527,7 +9556,7 @@ function zl(e, s, t, o, n, i) {
|
|
|
9527
9556
|
_: 1
|
|
9528
9557
|
}, 16, ["aria-label"]));
|
|
9529
9558
|
}
|
|
9530
|
-
const
|
|
9559
|
+
const kd = /* @__PURE__ */ v(Hl, [["render", Fl], ["__scopeId", "data-v-7712e6e1"]]), z = {
|
|
9531
9560
|
INBOX: "inbox",
|
|
9532
9561
|
CONTACTS: "contacts",
|
|
9533
9562
|
CHANNELS: "channels",
|
|
@@ -9540,7 +9569,7 @@ const Id = /* @__PURE__ */ v(Nl, [["render", zl], ["__scopeId", "data-v-7712e6e1
|
|
|
9540
9569
|
DIALBOT: "dialbot",
|
|
9541
9570
|
ASSIGNED: "assigned",
|
|
9542
9571
|
DIGITAL: "digital"
|
|
9543
|
-
},
|
|
9572
|
+
}, Vl = {
|
|
9544
9573
|
[z.INBOX]: "inbox",
|
|
9545
9574
|
[z.CONTACTS]: "contacts",
|
|
9546
9575
|
[z.CHANNELS]: "hash",
|
|
@@ -9564,10 +9593,10 @@ const Id = /* @__PURE__ */ v(Nl, [["render", zl], ["__scopeId", "data-v-7712e6e1
|
|
|
9564
9593
|
"purple-100": "d-bgc-purple-100",
|
|
9565
9594
|
"magenta-400": "d-bgc-magenta-400",
|
|
9566
9595
|
"magenta-100": "d-bgc-magenta-100"
|
|
9567
|
-
},
|
|
9596
|
+
}, ql = "If type is contact center, color must be oneof the following:" + Object.keys(Be).join(", "), Kl = [
|
|
9568
9597
|
"300",
|
|
9569
9598
|
"200"
|
|
9570
|
-
],
|
|
9599
|
+
], jl = {}, Gl = {
|
|
9571
9600
|
"aria-hidden": "true",
|
|
9572
9601
|
focusable: "false",
|
|
9573
9602
|
"aria-label": "Dialbot",
|
|
@@ -9576,15 +9605,15 @@ const Id = /* @__PURE__ */ v(Nl, [["render", zl], ["__scopeId", "data-v-7712e6e1
|
|
|
9576
9605
|
height: "358",
|
|
9577
9606
|
viewBox: "0 0 358 358",
|
|
9578
9607
|
fill: "none"
|
|
9579
|
-
},
|
|
9580
|
-
|
|
9608
|
+
}, Ul = /* @__PURE__ */ As('<circle cx="179" cy="179" r="179" fill="url(#paint0_linear_4_44)"></circle><path d="M179 268.5v-11.933V268.5Zm86.517 0v11.933h19.308l-8.635-17.27-10.673 5.337Zm-16.73-33.459-9.3-7.478-4.797 5.967 3.424 6.848 10.673-5.337ZM179 101.433c42.839 0 77.567 34.728 77.567 77.567h23.866c0-56.02-45.413-101.433-101.433-101.433v23.866ZM101.433 179c0-42.839 34.728-77.567 77.567-77.567V77.567C122.98 77.567 77.567 122.98 77.567 179h23.866ZM179 256.567c-42.839 0-77.567-34.728-77.567-77.567H77.567c0 56.02 45.413 101.433 101.433 101.433v-23.866Zm86.517 0H179v23.866h86.517v-23.866Zm-27.403-16.189 16.729 33.459 21.347-10.674-16.729-33.459-21.347 10.674ZM256.567 179c0 18.396-6.39 35.268-17.08 48.563l18.6 14.955c13.975-17.38 22.346-39.488 22.346-63.518h-23.866Z" fill="white"></path><path d="M226.733 202.867c-6.527 5.701-13.942 10.11-22.243 13.226-8.302 3.116-16.781 4.674-25.437 4.674-8.727 0-17.241-1.558-25.543-4.674-8.301-3.116-15.716-7.525-22.243-13.226v-11.934c4.399 2.652 9.365 4.939 14.9 6.862a112.163 112.163 0 0 0 16.815 4.674c5.748 1.127 11.105 1.69 16.071 1.69 5.038 0 10.395-.563 16.071-1.69a112.209 112.209 0 0 0 16.816-4.674c5.534-1.923 10.465-4.21 14.793-6.862v11.934Z" fill="white"></path><defs><linearGradient id="paint0_linear_4_44" x1="0" y1="0" x2="358" y2="358" gradientUnits="userSpaceOnUse"><stop stop-color="#7C52FF"></stop><stop offset="1" stop-color="#F9008E"></stop></linearGradient></defs>', 4), Wl = [
|
|
9609
|
+
Ul
|
|
9581
9610
|
];
|
|
9582
|
-
function
|
|
9583
|
-
return a(), l("svg",
|
|
9611
|
+
function Zl(e, s) {
|
|
9612
|
+
return a(), l("svg", Gl, Wl);
|
|
9584
9613
|
}
|
|
9585
|
-
const
|
|
9614
|
+
const Yl = /* @__PURE__ */ v(jl, [["render", Zl]]), Ql = {
|
|
9586
9615
|
name: "DtRecipeLeftbarGeneralRowIcon",
|
|
9587
|
-
components: { DtIcon: x, IconDialbot:
|
|
9616
|
+
components: { DtIcon: x, IconDialbot: Yl },
|
|
9588
9617
|
props: {
|
|
9589
9618
|
type: {
|
|
9590
9619
|
type: String,
|
|
@@ -9610,7 +9639,7 @@ const Ul = /* @__PURE__ */ v(Fl, [["render", Gl]]), Wl = {
|
|
|
9610
9639
|
return this.type === z.DIALBOT;
|
|
9611
9640
|
},
|
|
9612
9641
|
getIconName() {
|
|
9613
|
-
return
|
|
9642
|
+
return Vl[this.type];
|
|
9614
9643
|
},
|
|
9615
9644
|
contactCenterIconClasses() {
|
|
9616
9645
|
return [
|
|
@@ -9629,7 +9658,7 @@ const Ul = /* @__PURE__ */ v(Fl, [["render", Gl]]), Wl = {
|
|
|
9629
9658
|
}
|
|
9630
9659
|
}
|
|
9631
9660
|
};
|
|
9632
|
-
function
|
|
9661
|
+
function Xl(e, s, t, o, n, i) {
|
|
9633
9662
|
const r = f("dt-icon"), h = f("icon-dialbot");
|
|
9634
9663
|
return i.isIconType ? (a(), S(r, {
|
|
9635
9664
|
key: 0,
|
|
@@ -9646,16 +9675,16 @@ function Zl(e, s, t, o, n, i) {
|
|
|
9646
9675
|
m(h, { class: "d-svg--size24" })
|
|
9647
9676
|
], 2)) : p("", !0);
|
|
9648
9677
|
}
|
|
9649
|
-
const
|
|
9650
|
-
const
|
|
9678
|
+
const Jl = /* @__PURE__ */ v(Ql, [["render", Xl]]);
|
|
9679
|
+
const er = {
|
|
9651
9680
|
name: "DtRecipeGeneralRow",
|
|
9652
9681
|
components: {
|
|
9653
|
-
DtEmojiTextWrapper:
|
|
9654
|
-
DtBadge:
|
|
9682
|
+
DtEmojiTextWrapper: et,
|
|
9683
|
+
DtBadge: ci,
|
|
9655
9684
|
DtIcon: x,
|
|
9656
9685
|
DtButton: K,
|
|
9657
|
-
DtTooltip:
|
|
9658
|
-
DtRecipeLeftbarGeneralRowIcon:
|
|
9686
|
+
DtTooltip: Je,
|
|
9687
|
+
DtRecipeLeftbarGeneralRowIcon: Jl
|
|
9659
9688
|
},
|
|
9660
9689
|
inheritAttrs: !1,
|
|
9661
9690
|
props: {
|
|
@@ -9776,7 +9805,7 @@ const Ql = {
|
|
|
9776
9805
|
iconSize: {
|
|
9777
9806
|
type: String,
|
|
9778
9807
|
default: "300",
|
|
9779
|
-
validator: (e) =>
|
|
9808
|
+
validator: (e) => Kl.includes(e)
|
|
9780
9809
|
}
|
|
9781
9810
|
},
|
|
9782
9811
|
emits: [
|
|
@@ -9820,10 +9849,10 @@ const Ql = {
|
|
|
9820
9849
|
return this.type;
|
|
9821
9850
|
},
|
|
9822
9851
|
generalRowListeners() {
|
|
9823
|
-
return
|
|
9852
|
+
return Qe(this.$attrs);
|
|
9824
9853
|
},
|
|
9825
9854
|
getAriaLabel() {
|
|
9826
|
-
return this.ariaLabel ? this.ariaLabel :
|
|
9855
|
+
return this.ariaLabel ? this.ariaLabel : tt([this.description, this.unreadCountTooltip, this.dndTextTooltip]);
|
|
9827
9856
|
}
|
|
9828
9857
|
},
|
|
9829
9858
|
watch: {
|
|
@@ -9837,25 +9866,25 @@ const Ql = {
|
|
|
9837
9866
|
},
|
|
9838
9867
|
methods: {
|
|
9839
9868
|
validateProps() {
|
|
9840
|
-
this.type === z.CONTACT_CENTER && !Object.keys(Be).includes(this.color) && console.error(
|
|
9869
|
+
this.type === z.CONTACT_CENTER && !Object.keys(Be).includes(this.color) && console.error(ql);
|
|
9841
9870
|
}
|
|
9842
9871
|
}
|
|
9843
|
-
},
|
|
9872
|
+
}, tr = ["data-qa", "aria-label", "title", "href"], sr = { class: "dt-leftbar-row__alpha" }, ir = {
|
|
9844
9873
|
key: 0,
|
|
9845
9874
|
class: "dt-leftbar-row__is-typing"
|
|
9846
|
-
},
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
],
|
|
9875
|
+
}, nr = /* @__PURE__ */ _("span", null, null, -1), ar = /* @__PURE__ */ _("span", null, null, -1), or = /* @__PURE__ */ _("span", null, null, -1), lr = [
|
|
9876
|
+
nr,
|
|
9877
|
+
ar,
|
|
9878
|
+
or
|
|
9879
|
+
], rr = { class: "dt-leftbar-row__label" }, dr = { class: "dt-leftbar-row__omega" }, cr = { class: "dt-leftbar-row__dnd" }, ur = {
|
|
9851
9880
|
key: 1,
|
|
9852
9881
|
class: "dt-leftbar-row__active-voice"
|
|
9853
|
-
},
|
|
9882
|
+
}, hr = {
|
|
9854
9883
|
key: 0,
|
|
9855
9884
|
class: "dt-leftbar-row__action",
|
|
9856
9885
|
"data-qa": "dt-leftbar-row-action"
|
|
9857
9886
|
};
|
|
9858
|
-
function
|
|
9887
|
+
function fr(e, s, t, o, n, i) {
|
|
9859
9888
|
const r = f("dt-recipe-leftbar-general-row-icon"), h = f("dt-emoji-text-wrapper"), u = f("dt-tooltip"), g = f("dt-icon"), w = f("dt-badge"), b = f("dt-button");
|
|
9860
9889
|
return a(), l("div", {
|
|
9861
9890
|
class: y(i.leftbarGeneralRowClasses),
|
|
@@ -9868,8 +9897,8 @@ function cr(e, s, t, o, n, i) {
|
|
|
9868
9897
|
title: t.description,
|
|
9869
9898
|
href: "href" in e.$attrs ? e.$attrs.href : "javascript:void(0)"
|
|
9870
9899
|
}, e.$attrs), [
|
|
9871
|
-
_("div",
|
|
9872
|
-
t.isTyping ? (a(), l("div",
|
|
9900
|
+
_("div", sr, [
|
|
9901
|
+
t.isTyping ? (a(), l("div", ir, lr)) : d(e.$slots, "left", { key: 1 }, () => [
|
|
9873
9902
|
m(r, {
|
|
9874
9903
|
type: i.getIcon,
|
|
9875
9904
|
color: t.color,
|
|
@@ -9878,7 +9907,7 @@ function cr(e, s, t, o, n, i) {
|
|
|
9878
9907
|
}, null, 8, ["type", "color", "icon-size"])
|
|
9879
9908
|
])
|
|
9880
9909
|
]),
|
|
9881
|
-
_("div",
|
|
9910
|
+
_("div", rr, [
|
|
9882
9911
|
d(e.$slots, "label", {}, () => [
|
|
9883
9912
|
m(h, {
|
|
9884
9913
|
class: "dt-leftbar-row__description",
|
|
@@ -9892,18 +9921,18 @@ function cr(e, s, t, o, n, i) {
|
|
|
9892
9921
|
})
|
|
9893
9922
|
])
|
|
9894
9923
|
]),
|
|
9895
|
-
_("div",
|
|
9924
|
+
_("div", dr, [
|
|
9896
9925
|
t.dndText ? (a(), S(u, {
|
|
9897
9926
|
key: 0,
|
|
9898
9927
|
placement: "top",
|
|
9899
9928
|
message: t.dndTextTooltip
|
|
9900
9929
|
}, {
|
|
9901
9930
|
anchor: c(() => [
|
|
9902
|
-
_("div",
|
|
9931
|
+
_("div", cr, I(t.dndText), 1)
|
|
9903
9932
|
]),
|
|
9904
9933
|
_: 1
|
|
9905
9934
|
}, 8, ["message"])) : p("", !0),
|
|
9906
|
-
t.activeVoiceChat ? (a(), l("div",
|
|
9935
|
+
t.activeVoiceChat ? (a(), l("div", ur, [
|
|
9907
9936
|
m(g, {
|
|
9908
9937
|
size: "300",
|
|
9909
9938
|
name: "activity"
|
|
@@ -9928,8 +9957,8 @@ function cr(e, s, t, o, n, i) {
|
|
|
9928
9957
|
_: 1
|
|
9929
9958
|
}, 8, ["message"])) : p("", !0)
|
|
9930
9959
|
])
|
|
9931
|
-
], 16,
|
|
9932
|
-
t.hasCallButton ? (a(), l("div",
|
|
9960
|
+
], 16, tr),
|
|
9961
|
+
t.hasCallButton ? (a(), l("div", hr, [
|
|
9933
9962
|
m(u, {
|
|
9934
9963
|
message: t.callButtonTooltip,
|
|
9935
9964
|
placement: "top"
|
|
@@ -9961,11 +9990,11 @@ function cr(e, s, t, o, n, i) {
|
|
|
9961
9990
|
])) : p("", !0)
|
|
9962
9991
|
], 2);
|
|
9963
9992
|
}
|
|
9964
|
-
const
|
|
9993
|
+
const fs = /* @__PURE__ */ v(er, [["render", fr]]), pr = {
|
|
9965
9994
|
name: "DtRecipeGroupRow",
|
|
9966
9995
|
components: {
|
|
9967
9996
|
DtIcon: x,
|
|
9968
|
-
DtRecipeGeneralRow:
|
|
9997
|
+
DtRecipeGeneralRow: fs
|
|
9969
9998
|
},
|
|
9970
9999
|
inheritAttrs: !1,
|
|
9971
10000
|
props: {
|
|
@@ -10028,13 +10057,18 @@ const cs = /* @__PURE__ */ v(Ql, [["render", cr]]), ur = {
|
|
|
10028
10057
|
* @type {PointerEvent | KeyboardEvent}
|
|
10029
10058
|
*/
|
|
10030
10059
|
"click"
|
|
10031
|
-
]
|
|
10060
|
+
],
|
|
10061
|
+
computed: {
|
|
10062
|
+
ariaLabel() {
|
|
10063
|
+
return tt([this.groupCountText, this.names]);
|
|
10064
|
+
}
|
|
10065
|
+
}
|
|
10032
10066
|
};
|
|
10033
|
-
function
|
|
10067
|
+
function mr(e, s, t, o, n, i) {
|
|
10034
10068
|
const r = f("dt-icon"), h = f("dt-recipe-general-row");
|
|
10035
10069
|
return a(), S(h, C({
|
|
10036
10070
|
description: t.names,
|
|
10037
|
-
"aria-label":
|
|
10071
|
+
"aria-label": i.ariaLabel,
|
|
10038
10072
|
"unread-count": t.unreadCount,
|
|
10039
10073
|
"has-unreads": t.hasUnreads,
|
|
10040
10074
|
"unread-count-tooltip": t.unreadCountTooltip,
|
|
@@ -10050,13 +10084,13 @@ function hr(e, s, t, o, n, i) {
|
|
|
10050
10084
|
_: 1
|
|
10051
10085
|
}, 16, ["description", "aria-label", "unread-count", "has-unreads", "unread-count-tooltip", "selected", "is-typing"]);
|
|
10052
10086
|
}
|
|
10053
|
-
const
|
|
10087
|
+
const Od = /* @__PURE__ */ v(pr, [["render", mr]]), gr = {
|
|
10054
10088
|
name: "DtRecipeGroupRow",
|
|
10055
10089
|
components: {
|
|
10056
|
-
DtAvatar:
|
|
10090
|
+
DtAvatar: st,
|
|
10057
10091
|
DtIcon: x,
|
|
10058
|
-
DtRecipeGeneralRow:
|
|
10059
|
-
DtEmojiTextWrapper:
|
|
10092
|
+
DtRecipeGeneralRow: fs,
|
|
10093
|
+
DtEmojiTextWrapper: et
|
|
10060
10094
|
},
|
|
10061
10095
|
inheritAttrs: !1,
|
|
10062
10096
|
props: {
|
|
@@ -10195,19 +10229,22 @@ const wd = /* @__PURE__ */ v(ur, [["render", hr]]), fr = {
|
|
|
10195
10229
|
}
|
|
10196
10230
|
},
|
|
10197
10231
|
contactRowListeners() {
|
|
10198
|
-
return
|
|
10232
|
+
return Qe(this.$attrs);
|
|
10199
10233
|
},
|
|
10200
10234
|
avatarInitial() {
|
|
10201
10235
|
var e;
|
|
10202
10236
|
return ((e = this.name) == null ? void 0 : e[0]) ?? "";
|
|
10237
|
+
},
|
|
10238
|
+
contactDescription() {
|
|
10239
|
+
return tt([this.name, this.presenceText, this.userStatus]);
|
|
10203
10240
|
}
|
|
10204
10241
|
}
|
|
10205
|
-
},
|
|
10206
|
-
function
|
|
10242
|
+
}, _r = ["src"], br = { class: "dt-leftbar-row__status" };
|
|
10243
|
+
function yr(e, s, t, o, n, i) {
|
|
10207
10244
|
const r = f("dt-icon"), h = f("dt-avatar"), u = f("dt-emoji-text-wrapper"), g = f("dt-recipe-general-row");
|
|
10208
10245
|
return a(), S(g, C({
|
|
10209
10246
|
"unread-count": t.unreadCount,
|
|
10210
|
-
description:
|
|
10247
|
+
description: i.contactDescription,
|
|
10211
10248
|
"has-unreads": t.hasUnreads,
|
|
10212
10249
|
selected: t.selected,
|
|
10213
10250
|
"has-call-button": t.hasCallButton,
|
|
@@ -10230,7 +10267,7 @@ function gr(e, s, t, o, n, i) {
|
|
|
10230
10267
|
"data-qa": "dt-avatar-image",
|
|
10231
10268
|
src: t.avatarSrc,
|
|
10232
10269
|
alt: ""
|
|
10233
|
-
}, null, 8,
|
|
10270
|
+
}, null, 8, _r)) : t.noInitials ? (a(), S(r, {
|
|
10234
10271
|
key: 1,
|
|
10235
10272
|
name: "user",
|
|
10236
10273
|
size: "200"
|
|
@@ -10252,7 +10289,7 @@ function gr(e, s, t, o, n, i) {
|
|
|
10252
10289
|
]),
|
|
10253
10290
|
_: 1
|
|
10254
10291
|
}),
|
|
10255
|
-
_("div",
|
|
10292
|
+
_("div", br, [
|
|
10256
10293
|
t.presenceText ? (a(), l("span", {
|
|
10257
10294
|
key: 0,
|
|
10258
10295
|
"data-qa": "dt-leftbar-row-presence-text",
|
|
@@ -10275,8 +10312,8 @@ function gr(e, s, t, o, n, i) {
|
|
|
10275
10312
|
_: 1
|
|
10276
10313
|
}, 16, ["unread-count", "description", "has-unreads", "selected", "has-call-button", "muted", "is-typing", "call-button-tooltip", "unread-count-tooltip"]);
|
|
10277
10314
|
}
|
|
10278
|
-
const
|
|
10279
|
-
const
|
|
10315
|
+
const Ld = /* @__PURE__ */ v(gr, [["render", yr]]), vr = ["up", "down"], Sr = ["mentions", "messages"];
|
|
10316
|
+
const Cr = {
|
|
10280
10317
|
name: "DtRecipeUnreadPill",
|
|
10281
10318
|
components: {
|
|
10282
10319
|
DtIcon: x
|
|
@@ -10289,7 +10326,7 @@ const yr = {
|
|
|
10289
10326
|
kind: {
|
|
10290
10327
|
type: String,
|
|
10291
10328
|
required: !0,
|
|
10292
|
-
validator: (e) =>
|
|
10329
|
+
validator: (e) => Sr.includes(e)
|
|
10293
10330
|
},
|
|
10294
10331
|
/**
|
|
10295
10332
|
* The direction of the arrow icon
|
|
@@ -10298,7 +10335,7 @@ const yr = {
|
|
|
10298
10335
|
direction: {
|
|
10299
10336
|
type: String,
|
|
10300
10337
|
required: !0,
|
|
10301
|
-
validator: (e) =>
|
|
10338
|
+
validator: (e) => vr.includes(e)
|
|
10302
10339
|
}
|
|
10303
10340
|
},
|
|
10304
10341
|
emits: [
|
|
@@ -10317,8 +10354,8 @@ const yr = {
|
|
|
10317
10354
|
};
|
|
10318
10355
|
}
|
|
10319
10356
|
}
|
|
10320
|
-
},
|
|
10321
|
-
function
|
|
10357
|
+
}, Ir = { "data-qa": "dt-leftbar-unread-pill__label" };
|
|
10358
|
+
function wr(e, s, t, o, n, i) {
|
|
10322
10359
|
const r = f("dt-icon");
|
|
10323
10360
|
return a(), l("button", C({
|
|
10324
10361
|
class: ["dt-leftbar-unread-pill", `dt-leftbar-unread-pill--${t.kind}`],
|
|
@@ -10329,16 +10366,20 @@ function Sr(e, s, t, o, n, i) {
|
|
|
10329
10366
|
name: `arrow-${t.direction}`,
|
|
10330
10367
|
size: "300"
|
|
10331
10368
|
}, null, 8, ["name"]),
|
|
10332
|
-
_("span",
|
|
10369
|
+
_("span", Ir, [
|
|
10333
10370
|
d(e.$slots, "default")
|
|
10334
10371
|
])
|
|
10335
10372
|
], 16);
|
|
10336
10373
|
}
|
|
10337
|
-
const
|
|
10338
|
-
|
|
10374
|
+
const Td = /* @__PURE__ */ v(Cr, [["render", wr]]), Ge = {
|
|
10375
|
+
NORMAL: "",
|
|
10376
|
+
SEARCHED: "d-bgc-warning-subtle",
|
|
10377
|
+
ERROR: "d-bgc-critical-subtle"
|
|
10378
|
+
}, Ue = "NORMAL";
|
|
10379
|
+
const Er = {
|
|
10339
10380
|
name: "DtRecipeFeedItemRow",
|
|
10340
10381
|
components: {
|
|
10341
|
-
DtAvatar:
|
|
10382
|
+
DtAvatar: st,
|
|
10342
10383
|
DtLazyShow: $e,
|
|
10343
10384
|
DtListItem: ze
|
|
10344
10385
|
},
|
|
@@ -10387,12 +10428,15 @@ const Cr = {
|
|
|
10387
10428
|
isActive: {
|
|
10388
10429
|
type: Boolean,
|
|
10389
10430
|
default: !1
|
|
10431
|
+
},
|
|
10432
|
+
/**
|
|
10433
|
+
* state for the feed item row. Can be default, searched & error
|
|
10434
|
+
*/
|
|
10435
|
+
state: {
|
|
10436
|
+
type: String,
|
|
10437
|
+
default: Ue,
|
|
10438
|
+
validator: (e) => Object.keys(Ge).includes(e)
|
|
10390
10439
|
}
|
|
10391
|
-
// TODO: implement as part of DT-1157
|
|
10392
|
-
// state: {
|
|
10393
|
-
// type: String,
|
|
10394
|
-
// default: 'normal',
|
|
10395
|
-
// },
|
|
10396
10440
|
},
|
|
10397
10441
|
emits: [
|
|
10398
10442
|
/**
|
|
@@ -10410,6 +10454,11 @@ const Cr = {
|
|
|
10410
10454
|
*/
|
|
10411
10455
|
"focus"
|
|
10412
10456
|
],
|
|
10457
|
+
data() {
|
|
10458
|
+
return {
|
|
10459
|
+
faded: !1
|
|
10460
|
+
};
|
|
10461
|
+
},
|
|
10413
10462
|
computed: {
|
|
10414
10463
|
avatarInitials() {
|
|
10415
10464
|
return (this.displayName || "").split(" ").map((t) => t.charAt(0)).join("").slice(0, 2).toUpperCase();
|
|
@@ -10421,6 +10470,19 @@ const Cr = {
|
|
|
10421
10470
|
focusin: () => this.setFocus(!0),
|
|
10422
10471
|
focusout: () => this.setFocus(!1)
|
|
10423
10472
|
};
|
|
10473
|
+
},
|
|
10474
|
+
listItemClasses() {
|
|
10475
|
+
return [
|
|
10476
|
+
"d-w100p",
|
|
10477
|
+
"d-box-border",
|
|
10478
|
+
"d-ps-relative",
|
|
10479
|
+
"d-px8",
|
|
10480
|
+
{ "d-bgc-secondary-opaque": this.isActive && this.state === Ue },
|
|
10481
|
+
Ge[this.state],
|
|
10482
|
+
"feed-item-row",
|
|
10483
|
+
"d-t",
|
|
10484
|
+
"d-tp-bgc"
|
|
10485
|
+
];
|
|
10424
10486
|
}
|
|
10425
10487
|
},
|
|
10426
10488
|
methods: {
|
|
@@ -10429,29 +10491,32 @@ const Cr = {
|
|
|
10429
10491
|
},
|
|
10430
10492
|
setHover(e) {
|
|
10431
10493
|
this.$emit("hover", e);
|
|
10494
|
+
},
|
|
10495
|
+
fade() {
|
|
10496
|
+
this.state === Ue || this.faded === !0 || (this.$refs.FeedItemRef.$el.classList.remove(Ge[this.state]), this.faded = !0);
|
|
10432
10497
|
}
|
|
10433
10498
|
}
|
|
10434
|
-
},
|
|
10499
|
+
}, kr = ["src"], Or = {
|
|
10435
10500
|
key: 0,
|
|
10436
10501
|
"data-qa": "feed-item-row-header",
|
|
10437
10502
|
class: "d-d-flex d-ai-center"
|
|
10438
|
-
},
|
|
10503
|
+
}, Lr = { class: "d-fs-200 d-lh-300 d-fw-bold d-to-ellipsis d-of-hidden d-ws-nowrap" }, Tr = { class: "d-fs-100 d-mt2 d-lh-300 d-fc-tertiary d-fw-normal d-ml4 d-fl-shrink0" }, Ar = {
|
|
10439
10504
|
class: "content-text-wrapper-class",
|
|
10440
10505
|
"data-qa": "feed-item-row-content"
|
|
10441
|
-
},
|
|
10506
|
+
}, Dr = {
|
|
10442
10507
|
class: "d-d-flex d-fw-wrap",
|
|
10443
10508
|
"data-qa": "feed-item-row-reactions"
|
|
10444
|
-
},
|
|
10509
|
+
}, Pr = {
|
|
10445
10510
|
"data-qa": "feed-item-row-menu",
|
|
10446
10511
|
class: "d-ps-absolute d-tn16 d-r12"
|
|
10447
10512
|
};
|
|
10448
|
-
function
|
|
10513
|
+
function xr(e, s, t, o, n, i) {
|
|
10449
10514
|
const r = f("dt-avatar"), h = f("dt-lazy-show"), u = f("dt-list-item");
|
|
10450
10515
|
return a(), S(u, C({
|
|
10451
10516
|
ref: "FeedItemRef",
|
|
10452
10517
|
"navigation-type": "none"
|
|
10453
10518
|
}, e.$attrs, {
|
|
10454
|
-
class:
|
|
10519
|
+
class: i.listItemClasses,
|
|
10455
10520
|
"data-qa": "feed-item-row"
|
|
10456
10521
|
}, M(i.feedListeners)), {
|
|
10457
10522
|
left: c(() => [
|
|
@@ -10466,7 +10531,7 @@ function Ar(e, s, t, o, n, i) {
|
|
|
10466
10531
|
"data-qa": "feed-item-row-avatar-img",
|
|
10467
10532
|
alt: "",
|
|
10468
10533
|
src: t.avatarImageUrl
|
|
10469
|
-
}, null, 8,
|
|
10534
|
+
}, null, 8, kr)) : p("", !0)
|
|
10470
10535
|
]),
|
|
10471
10536
|
_: 1
|
|
10472
10537
|
}, 8, ["initials"])) : p("", !0),
|
|
@@ -10479,13 +10544,13 @@ function Ar(e, s, t, o, n, i) {
|
|
|
10479
10544
|
])
|
|
10480
10545
|
]),
|
|
10481
10546
|
bottom: c(() => [
|
|
10482
|
-
_("div",
|
|
10547
|
+
_("div", Dr, [
|
|
10483
10548
|
d(e.$slots, "reactions")
|
|
10484
10549
|
]),
|
|
10485
10550
|
d(e.$slots, "threading")
|
|
10486
10551
|
]),
|
|
10487
10552
|
right: c(() => [
|
|
10488
|
-
Se(_("div",
|
|
10553
|
+
Se(_("div", Pr, [
|
|
10489
10554
|
m(h, {
|
|
10490
10555
|
appear: !0,
|
|
10491
10556
|
transition: "fade",
|
|
@@ -10502,11 +10567,11 @@ function Ar(e, s, t, o, n, i) {
|
|
|
10502
10567
|
]),
|
|
10503
10568
|
default: c(() => [
|
|
10504
10569
|
_("article", null, [
|
|
10505
|
-
t.showHeader ? (a(), l("div",
|
|
10506
|
-
_("p",
|
|
10507
|
-
_("time",
|
|
10570
|
+
t.showHeader ? (a(), l("div", Or, [
|
|
10571
|
+
_("p", Lr, I(t.displayName), 1),
|
|
10572
|
+
_("time", Tr, I(t.time), 1)
|
|
10508
10573
|
])) : p("", !0),
|
|
10509
|
-
_("span",
|
|
10574
|
+
_("span", Ar, [
|
|
10510
10575
|
d(e.$slots, "default")
|
|
10511
10576
|
])
|
|
10512
10577
|
])
|
|
@@ -10514,7 +10579,7 @@ function Ar(e, s, t, o, n, i) {
|
|
|
10514
10579
|
_: 3
|
|
10515
10580
|
}, 16, ["class"]);
|
|
10516
10581
|
}
|
|
10517
|
-
const
|
|
10582
|
+
const Ad = /* @__PURE__ */ v(Er, [["render", xr]]), Rr = {
|
|
10518
10583
|
name: "DtRecipeTimePill",
|
|
10519
10584
|
props: {
|
|
10520
10585
|
/**
|
|
@@ -10537,23 +10602,23 @@ const Od = /* @__PURE__ */ v(Cr, [["render", Ar]]), Dr = {
|
|
|
10537
10602
|
}
|
|
10538
10603
|
}
|
|
10539
10604
|
}
|
|
10540
|
-
},
|
|
10541
|
-
function
|
|
10605
|
+
}, Br = ["dateTime"];
|
|
10606
|
+
function $r(e, s, t, o, n, i) {
|
|
10542
10607
|
return a(), l("time", {
|
|
10543
10608
|
"data-qa": "dt-time-pill",
|
|
10544
10609
|
dateTime: t.dateTime,
|
|
10545
10610
|
class: "d-ba d-bar-pill d-baw1 d-bc-black-300 d-px16 d-py4 d-fs-100"
|
|
10546
|
-
}, I(t.dateTimeDisplay), 9,
|
|
10611
|
+
}, I(t.dateTimeDisplay), 9, Br);
|
|
10547
10612
|
}
|
|
10548
|
-
const
|
|
10613
|
+
const Dd = /* @__PURE__ */ v(Rr, [["render", $r]]), Nr = [
|
|
10549
10614
|
"emojiUnicodeOrShortname",
|
|
10550
10615
|
"isSelected",
|
|
10551
10616
|
"ariaLabel",
|
|
10552
10617
|
"tooltip",
|
|
10553
10618
|
"num"
|
|
10554
|
-
],
|
|
10619
|
+
], zr = {
|
|
10555
10620
|
name: "DtRecipeEmojiRow",
|
|
10556
|
-
components: { DtTooltip:
|
|
10621
|
+
components: { DtTooltip: Je, DtButton: K, DtEmoji: Ks, DtEmojiTextWrapper: et },
|
|
10557
10622
|
mixins: [],
|
|
10558
10623
|
props: {
|
|
10559
10624
|
/**
|
|
@@ -10564,7 +10629,7 @@ const Ld = /* @__PURE__ */ v(Dr, [["render", xr]]), Rr = [
|
|
|
10564
10629
|
default: () => [],
|
|
10565
10630
|
validator: (e) => {
|
|
10566
10631
|
for (const s of e)
|
|
10567
|
-
if (!
|
|
10632
|
+
if (!Nr.every((o) => s[o] !== void 0))
|
|
10568
10633
|
return !1;
|
|
10569
10634
|
return !0;
|
|
10570
10635
|
}
|
|
@@ -10585,10 +10650,10 @@ const Ld = /* @__PURE__ */ v(Dr, [["render", xr]]), Rr = [
|
|
|
10585
10650
|
});
|
|
10586
10651
|
}
|
|
10587
10652
|
}
|
|
10588
|
-
},
|
|
10589
|
-
function
|
|
10653
|
+
}, Mr = { class: "d-d-flex d-fw-wrap" }, Hr = ["reaction"], Fr = { "aria-hidden": "true" }, Vr = { class: "d-mr4" }, qr = { class: "d-fw-bold d-fs-100" };
|
|
10654
|
+
function Kr(e, s, t, o, n, i) {
|
|
10590
10655
|
const r = f("dt-emoji-text-wrapper"), h = f("dt-emoji"), u = f("dt-button"), g = f("dt-tooltip");
|
|
10591
|
-
return a(), l("span",
|
|
10656
|
+
return a(), l("span", Mr, [
|
|
10592
10657
|
(a(!0), l(Y, null, ee(t.reactions, (w) => (a(), l("span", {
|
|
10593
10658
|
key: w.unicodeOutput,
|
|
10594
10659
|
reaction: w,
|
|
@@ -10614,19 +10679,19 @@ function Vr(e, s, t, o, n, i) {
|
|
|
10614
10679
|
onClick: (L) => i.emojiClicked(w)
|
|
10615
10680
|
}, {
|
|
10616
10681
|
default: c(() => [
|
|
10617
|
-
_("span",
|
|
10682
|
+
_("span", Vr, [
|
|
10618
10683
|
m(h, {
|
|
10619
10684
|
size: "200",
|
|
10620
10685
|
code: w.emojiUnicodeOrShortname
|
|
10621
10686
|
}, null, 8, ["code"])
|
|
10622
10687
|
]),
|
|
10623
|
-
_("span",
|
|
10688
|
+
_("span", qr, I(w.num), 1)
|
|
10624
10689
|
]),
|
|
10625
10690
|
_: 2
|
|
10626
10691
|
}, 1032, ["class", "aria-label", "attrs", "onClick"])
|
|
10627
10692
|
]),
|
|
10628
10693
|
default: c(() => [
|
|
10629
|
-
_("span",
|
|
10694
|
+
_("span", Fr, [
|
|
10630
10695
|
m(r, { size: "200" }, {
|
|
10631
10696
|
default: c(() => [
|
|
10632
10697
|
P(I(w.tooltip), 1)
|
|
@@ -10637,159 +10702,159 @@ function Vr(e, s, t, o, n, i) {
|
|
|
10637
10702
|
]),
|
|
10638
10703
|
_: 2
|
|
10639
10704
|
}, 1032, ["onShown"])
|
|
10640
|
-
], 8,
|
|
10705
|
+
], 8, Hr))), 128))
|
|
10641
10706
|
]);
|
|
10642
10707
|
}
|
|
10643
|
-
const
|
|
10708
|
+
const Pd = /* @__PURE__ */ v(zr, [["render", Kr]]);
|
|
10644
10709
|
export {
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10710
|
+
Xs as AVATAR_COLORS,
|
|
10711
|
+
Pt as AVATAR_GROUP_VALIDATOR,
|
|
10712
|
+
Ur as AVATAR_ICON_SIZES,
|
|
10713
|
+
At as AVATAR_KIND_MODIFIERS,
|
|
10714
|
+
Qs as AVATAR_PRESENCE_SIZE_MODIFIERS,
|
|
10715
|
+
Dt as AVATAR_PRESENCE_STATES,
|
|
10651
10716
|
Ke as AVATAR_SIZE_MODIFIERS,
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10717
|
+
Bt as BADGE_DECORATION_MODIFIERS,
|
|
10718
|
+
Rt as BADGE_KIND_MODIFIERS,
|
|
10719
|
+
xt as BADGE_TYPE_MODIFIERS,
|
|
10720
|
+
Pi as BREADCRUMBS_INVERTED_MODIFIER,
|
|
10721
|
+
Di as BREADCRUMB_ITEM_SELECTED_MODIFIER,
|
|
10722
|
+
$t as BUTTON_GROUP_ALIGNMENT,
|
|
10723
|
+
hs as CALLBAR_BUTTON_VALID_WIDTH_SIZE,
|
|
10724
|
+
Vt as CHIP_SIZE_MODIFIERS,
|
|
10725
|
+
vl as COLOR_CODES,
|
|
10726
|
+
Bd as DEFAULT_VALIDATION_MESSAGE_TYPE,
|
|
10727
|
+
$d as DESCRIPTION_SIZE_TYPES,
|
|
10728
|
+
st as DtAvatar,
|
|
10729
|
+
ci as DtBadge,
|
|
10730
|
+
Wr as DtBanner,
|
|
10731
|
+
zi as DtBreadcrumbItem,
|
|
10732
|
+
Zr as DtBreadcrumbs,
|
|
10668
10733
|
K as DtButton,
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10734
|
+
Yr as DtButtonGroup,
|
|
10735
|
+
Gi as DtCard,
|
|
10736
|
+
Jt as DtCheckableInputMixin,
|
|
10737
|
+
dd as DtCheckbox,
|
|
10738
|
+
cd as DtCheckboxGroup,
|
|
10739
|
+
rs as DtChip,
|
|
10740
|
+
Qr as DtCodeblock,
|
|
10741
|
+
Xr as DtCollapsible,
|
|
10742
|
+
bn as DtCombobox,
|
|
10743
|
+
Hn as DtDropdown,
|
|
10744
|
+
Jr as DtDropdownSeparator,
|
|
10745
|
+
es as DtGroupableInputMixin,
|
|
10681
10746
|
x as DtIcon,
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10747
|
+
ed as DtImageViewer,
|
|
10748
|
+
qs as DtInput,
|
|
10749
|
+
ls as DtInputGroup,
|
|
10750
|
+
Yn as DtInputGroupMixin,
|
|
10751
|
+
Xt as DtInputMixin,
|
|
10752
|
+
ss as DtKeyboardListNavigationMixin,
|
|
10753
|
+
md as DtKeyboardShortcut,
|
|
10689
10754
|
$e as DtLazyShow,
|
|
10690
|
-
|
|
10755
|
+
Bi as DtLink,
|
|
10691
10756
|
ze as DtListItem,
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10757
|
+
nd as DtListItemGroup,
|
|
10758
|
+
id as DtListSection,
|
|
10759
|
+
sd as DtModal,
|
|
10760
|
+
td as DtNotice,
|
|
10761
|
+
ad as DtPagination,
|
|
10762
|
+
ot as DtPopover,
|
|
10763
|
+
Ys as DtPresence,
|
|
10764
|
+
od as DtRadio,
|
|
10765
|
+
ld as DtRadioGroup,
|
|
10766
|
+
nl as DtRecipeCallbarButton,
|
|
10767
|
+
vd as DtRecipeCallbarButtonWithPopover,
|
|
10768
|
+
yd as DtRecipeComboboxMultiSelect,
|
|
10769
|
+
jo as DtRecipeComboboxWithPopover,
|
|
10770
|
+
Sd as DtRecipeContactInfo,
|
|
10771
|
+
Ld as DtRecipeContactRow,
|
|
10772
|
+
Pd as DtRecipeEmojiRow,
|
|
10773
|
+
Ad as DtRecipeFeedItemRow,
|
|
10774
|
+
fs as DtRecipeGeneralRow,
|
|
10775
|
+
Od as DtRecipeGroupRow,
|
|
10776
|
+
Ed as DtRecipeGroupedChip,
|
|
10777
|
+
wd as DtRecipeIvrNode,
|
|
10778
|
+
kd as DtRecipeSettingsMenuButton,
|
|
10779
|
+
Dd as DtRecipeTimePill,
|
|
10780
|
+
Cd as DtRecipeTopBannerInfo,
|
|
10781
|
+
Td as DtRecipeUnreadPill,
|
|
10782
|
+
gd as DtRootLayout,
|
|
10783
|
+
bd as DtScroller,
|
|
10784
|
+
ud as DtSelectMenu,
|
|
10785
|
+
$s as DtSkeleton,
|
|
10786
|
+
Nd as DtSkeletonListItem,
|
|
10787
|
+
zd as DtSkeletonParagraph,
|
|
10788
|
+
Md as DtSkeletonShape,
|
|
10789
|
+
Hd as DtSkeletonText,
|
|
10790
|
+
_d as DtStack,
|
|
10791
|
+
Fd as DtTab,
|
|
10792
|
+
Vd as DtTabGroup,
|
|
10793
|
+
rd as DtTabPanel,
|
|
10794
|
+
hd as DtToast,
|
|
10795
|
+
fd as DtToggle,
|
|
10796
|
+
Je as DtTooltip,
|
|
10732
10797
|
me as DtValidationMessages,
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10798
|
+
qd as ICON_SIZE_MODIFIERS,
|
|
10799
|
+
Kd as INPUT_SIZES,
|
|
10800
|
+
jd as INPUT_TYPES,
|
|
10801
|
+
ht as IVR_NODE_BRANCH,
|
|
10802
|
+
ut as IVR_NODE_EXPERT,
|
|
10738
10803
|
He as IVR_NODE_GO_TO,
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10804
|
+
pt as IVR_NODE_HANGUP,
|
|
10805
|
+
kl as IVR_NODE_ICON_TYPES,
|
|
10806
|
+
Id as IVR_NODE_LABELS,
|
|
10807
|
+
dt as IVR_NODE_PROMPT_COLLECT,
|
|
10808
|
+
rt as IVR_NODE_PROMPT_MENU,
|
|
10809
|
+
ct as IVR_NODE_PROMPT_PLAY,
|
|
10810
|
+
ft as IVR_NODE_TRANSFER,
|
|
10746
10811
|
Be as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS,
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10812
|
+
ql as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR,
|
|
10813
|
+
Vl as LEFTBAR_GENERAL_ROW_ICON_MAPPING,
|
|
10814
|
+
Kl as LEFTBAR_GENERAL_ROW_ICON_SIZES,
|
|
10750
10815
|
z as LEFTBAR_GENERAL_ROW_TYPES,
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10816
|
+
xs as LINK_KIND_MODIFIERS,
|
|
10817
|
+
Ps as LINK_VARIANTS,
|
|
10818
|
+
Mt as MODAL_KIND_MODIFIERS,
|
|
10819
|
+
Ht as MODAL_SIZE_MODIFIERS,
|
|
10820
|
+
Go as MULTI_SELECT_SIZES,
|
|
10756
10821
|
Oe as NOTICE_KINDS,
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10822
|
+
os as POPOVER_CONTENT_WIDTHS,
|
|
10823
|
+
kn as POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
10824
|
+
Ln as POPOVER_INITIAL_FOCUS_STRINGS,
|
|
10825
|
+
zt as POPOVER_PADDING_CLASSES,
|
|
10826
|
+
On as POPOVER_ROLES,
|
|
10762
10827
|
be as PRESENCE_STATES,
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10828
|
+
js as PRESENCE_STATES_LIST,
|
|
10829
|
+
Nr as REACTIONS_ATTRIBUTES,
|
|
10830
|
+
Co as ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS,
|
|
10831
|
+
ds as ROOT_LAYOUT_SIDEBAR_POSITIONS,
|
|
10832
|
+
qt as SELECT_SIZE_MODIFIERS,
|
|
10833
|
+
Ua as SELECT_STATE_MODIFIERS,
|
|
10834
|
+
pd as SHORTCUTS_ALIASES_LIST,
|
|
10770
10835
|
ye as SHORTCUTS_ICON_ALIASES,
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10836
|
+
_o as SHORTCUTS_ICON_SEPARATOR,
|
|
10837
|
+
Gd as SKELETON_HEADING_HEIGHTS,
|
|
10838
|
+
Ud as SKELETON_RIPPLE_DURATION,
|
|
10839
|
+
Wd as SKELETON_SHAPES,
|
|
10840
|
+
Zd as SKELETON_SHAPE_SIZES,
|
|
10841
|
+
Yd as SKELETON_TEXT_TYPES,
|
|
10842
|
+
Qd as TAB_IMPORTANCE_MODIFIERS,
|
|
10843
|
+
Xd as TAB_LIST_IMPORTANCE_MODIFIERS,
|
|
10844
|
+
Jd as TAB_LIST_KIND_MODIFIERS,
|
|
10845
|
+
ec as TAB_LIST_SIZES,
|
|
10846
|
+
no as TOAST_ROLES,
|
|
10847
|
+
tc as TOOLTIP_DELAY_MS,
|
|
10848
|
+
sc as TOOLTIP_DIRECTIONS,
|
|
10849
|
+
ic as TOOLTIP_HIDE_ON_CLICK_VARIANTS,
|
|
10850
|
+
nc as TOOLTIP_KIND_MODIFIERS,
|
|
10851
|
+
ac as TOOLTIP_STICKY_VALUES,
|
|
10852
|
+
vr as UNREAD_PILL_DIRECTIONS,
|
|
10853
|
+
Sr as UNREAD_PILL_KINDS,
|
|
10854
|
+
oc as VALIDATION_MESSAGE_TYPES,
|
|
10855
|
+
lc as filterFormattedMessages,
|
|
10856
|
+
Tt as formatMessages,
|
|
10792
10857
|
q as getUniqueString,
|
|
10793
|
-
|
|
10794
|
-
|
|
10858
|
+
We as getValidationState,
|
|
10859
|
+
Qt as validationMessageValidator
|
|
10795
10860
|
};
|