@dialpad/dialtone-vue 3.70.0 → 3.71.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 +21 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +7 -7
- package/dist/dialtone-vue.js +904 -846
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +23 -23
- 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,33 +1584,33 @@ 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 d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center" }, en = {
|
|
1585
1595
|
key: 0,
|
|
1586
1596
|
class: "dt-default-list-item--left d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pr8 d-jc-flex-end",
|
|
1587
1597
|
"data-qa": "dt-default-list-item-left-wrapper"
|
|
1588
|
-
},
|
|
1598
|
+
}, tn = { class: "d-fl-grow1" }, sn = { key: 0 }, nn = {
|
|
1589
1599
|
key: 2,
|
|
1590
1600
|
"data-qa": "dt-default-list-item-bottom-wrapper",
|
|
1591
1601
|
class: "d-mt2"
|
|
1592
|
-
},
|
|
1602
|
+
}, an = {
|
|
1593
1603
|
key: 1,
|
|
1594
1604
|
class: "dt-default-list-item--right d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pl8",
|
|
1595
1605
|
"data-qa": "dt-default-list-item-right-wrapper"
|
|
1596
1606
|
};
|
|
1597
|
-
function
|
|
1598
|
-
return a(), l("div",
|
|
1599
|
-
n.hasSlotContent(e.$slots.left) ? (a(), l("section",
|
|
1607
|
+
function on(e, s, t, o, n, i) {
|
|
1608
|
+
return a(), l("div", Ji, [
|
|
1609
|
+
n.hasSlotContent(e.$slots.left) ? (a(), l("section", en, [
|
|
1600
1610
|
d(e.$slots, "left")
|
|
1601
1611
|
])) : p("", !0),
|
|
1602
|
-
_("section",
|
|
1603
|
-
n.hasSlotContent(e.$slots.default) ? (a(), l("div",
|
|
1612
|
+
_("section", tn, [
|
|
1613
|
+
n.hasSlotContent(e.$slots.default) ? (a(), l("div", sn, [
|
|
1604
1614
|
d(e.$slots, "default")
|
|
1605
1615
|
])) : p("", !0),
|
|
1606
1616
|
n.hasSlotContent(e.$slots.subtitle) ? (a(), l("div", {
|
|
@@ -1610,21 +1620,21 @@ function sn(e, s, t, o, n, i) {
|
|
|
1610
1620
|
}, [
|
|
1611
1621
|
d(e.$slots, "subtitle")
|
|
1612
1622
|
], 2)) : p("", !0),
|
|
1613
|
-
n.hasSlotContent(e.$slots.bottom) ? (a(), l("div",
|
|
1623
|
+
n.hasSlotContent(e.$slots.bottom) ? (a(), l("div", nn, [
|
|
1614
1624
|
d(e.$slots, "bottom")
|
|
1615
1625
|
])) : p("", !0)
|
|
1616
1626
|
]),
|
|
1617
|
-
n.hasSlotContent(e.$slots.right) ? (a(), l("section",
|
|
1627
|
+
n.hasSlotContent(e.$slots.right) ? (a(), l("section", an, [
|
|
1618
1628
|
d(e.$slots, "right")
|
|
1619
1629
|
])) : p("", !0),
|
|
1620
1630
|
d(e.$slots, "selected")
|
|
1621
1631
|
]);
|
|
1622
1632
|
}
|
|
1623
|
-
const
|
|
1624
|
-
const
|
|
1633
|
+
const Nt = /* @__PURE__ */ v(Xi, [["render", on]]);
|
|
1634
|
+
const ln = {
|
|
1625
1635
|
name: "DtListItem",
|
|
1626
1636
|
components: {
|
|
1627
|
-
DtDefaultListItem:
|
|
1637
|
+
DtDefaultListItem: Nt,
|
|
1628
1638
|
DtIcon: x
|
|
1629
1639
|
},
|
|
1630
1640
|
/**
|
|
@@ -1725,7 +1735,7 @@ const nn = {
|
|
|
1725
1735
|
listItemType() {
|
|
1726
1736
|
switch (this.type) {
|
|
1727
1737
|
case je.DEFAULT:
|
|
1728
|
-
return
|
|
1738
|
+
return Nt;
|
|
1729
1739
|
default:
|
|
1730
1740
|
return null;
|
|
1731
1741
|
}
|
|
@@ -1772,7 +1782,7 @@ const nn = {
|
|
|
1772
1782
|
}
|
|
1773
1783
|
}
|
|
1774
1784
|
};
|
|
1775
|
-
function
|
|
1785
|
+
function rn(e, s, t, o, n, i) {
|
|
1776
1786
|
const r = f("dt-icon");
|
|
1777
1787
|
return a(), S(X(t.elementType), C({
|
|
1778
1788
|
id: t.id,
|
|
@@ -1786,7 +1796,7 @@ function an(e, s, t, o, n, i) {
|
|
|
1786
1796
|
"aria-selected": i.isHighlighted
|
|
1787
1797
|
}, M(i.listItemListeners)), {
|
|
1788
1798
|
default: c(() => [
|
|
1789
|
-
i.listItemType ? (a(), S(X(i.listItemType), { key: 0 },
|
|
1799
|
+
i.listItemType ? (a(), S(X(i.listItemType), { key: 0 }, Ee({ _: 2 }, [
|
|
1790
1800
|
ee(e.$slots, (h, u) => ({
|
|
1791
1801
|
name: u,
|
|
1792
1802
|
fn: c(() => [
|
|
@@ -1809,16 +1819,16 @@ function an(e, s, t, o, n, i) {
|
|
|
1809
1819
|
_: 3
|
|
1810
1820
|
}, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
|
|
1811
1821
|
}
|
|
1812
|
-
const ze = /* @__PURE__ */ v(
|
|
1822
|
+
const ze = /* @__PURE__ */ v(ln, [["render", rn]]), dn = {
|
|
1813
1823
|
name: "ComboboxLoadingList",
|
|
1814
|
-
components: { DtListItem: ze, DtSkeleton:
|
|
1815
|
-
},
|
|
1824
|
+
components: { DtListItem: ze, DtSkeleton: $s }
|
|
1825
|
+
}, cn = {
|
|
1816
1826
|
class: "d-p0 d-mt8 d-hmx332 d-of-y-auto",
|
|
1817
1827
|
"aria-busy": "true"
|
|
1818
1828
|
};
|
|
1819
|
-
function
|
|
1829
|
+
function un(e, s, t, o, n, i) {
|
|
1820
1830
|
const r = f("dt-skeleton"), h = f("dt-list-item");
|
|
1821
|
-
return a(), l("ol",
|
|
1831
|
+
return a(), l("ol", cn, [
|
|
1822
1832
|
(a(), l(Y, null, ee(7, (u) => m(h, {
|
|
1823
1833
|
key: u,
|
|
1824
1834
|
role: "option",
|
|
@@ -1834,8 +1844,8 @@ function rn(e, s, t, o, n, i) {
|
|
|
1834
1844
|
}, 1024)), 64))
|
|
1835
1845
|
]);
|
|
1836
1846
|
}
|
|
1837
|
-
const
|
|
1838
|
-
const
|
|
1847
|
+
const is = /* @__PURE__ */ v(dn, [["render", un]]);
|
|
1848
|
+
const hn = {
|
|
1839
1849
|
name: "ComboboxEmptyList",
|
|
1840
1850
|
components: { DtListItem: ze },
|
|
1841
1851
|
props: {
|
|
@@ -1856,13 +1866,13 @@ const dn = {
|
|
|
1856
1866
|
default: ""
|
|
1857
1867
|
}
|
|
1858
1868
|
}
|
|
1859
|
-
},
|
|
1869
|
+
}, fn = {
|
|
1860
1870
|
class: "d-p0",
|
|
1861
1871
|
"data-qa": "dt-combobox-empty-list"
|
|
1862
1872
|
};
|
|
1863
|
-
function
|
|
1873
|
+
function pn(e, s, t, o, n, i) {
|
|
1864
1874
|
const r = f("dt-list-item");
|
|
1865
|
-
return a(), l("ol",
|
|
1875
|
+
return a(), l("ol", fn, [
|
|
1866
1876
|
d(e.$slots, "default", {}, () => [
|
|
1867
1877
|
m(r, {
|
|
1868
1878
|
role: "option",
|
|
@@ -1878,20 +1888,20 @@ function un(e, s, t, o, n, i) {
|
|
|
1878
1888
|
])
|
|
1879
1889
|
]);
|
|
1880
1890
|
}
|
|
1881
|
-
const
|
|
1891
|
+
const ns = /* @__PURE__ */ v(hn, [["render", pn]]), as = {
|
|
1882
1892
|
EXTRA_SMALL: "xs",
|
|
1883
1893
|
SMALL: "sm",
|
|
1884
1894
|
DEFAULT: "md",
|
|
1885
1895
|
LARGE: "lg",
|
|
1886
1896
|
EXTRA_LARGE: "xl"
|
|
1887
|
-
},
|
|
1897
|
+
}, mn = {
|
|
1888
1898
|
name: "DtCombobox",
|
|
1889
1899
|
components: {
|
|
1890
|
-
ComboboxLoadingList:
|
|
1891
|
-
ComboboxEmptyList:
|
|
1900
|
+
ComboboxLoadingList: is,
|
|
1901
|
+
ComboboxEmptyList: ns
|
|
1892
1902
|
},
|
|
1893
1903
|
mixins: [
|
|
1894
|
-
|
|
1904
|
+
ss({
|
|
1895
1905
|
indexKey: "highlightIndex",
|
|
1896
1906
|
idKey: "highlightId",
|
|
1897
1907
|
listElementKey: "getListElement",
|
|
@@ -1924,7 +1934,7 @@ const ts = /* @__PURE__ */ v(dn, [["render", un]]), ss = {
|
|
|
1924
1934
|
size: {
|
|
1925
1935
|
type: String,
|
|
1926
1936
|
default: null,
|
|
1927
|
-
validator: (e) => Object.values(
|
|
1937
|
+
validator: (e) => Object.values(as).includes(e)
|
|
1928
1938
|
},
|
|
1929
1939
|
/**
|
|
1930
1940
|
* Description for the input
|
|
@@ -2154,20 +2164,20 @@ const ts = /* @__PURE__ */ v(dn, [["render", un]]), ss = {
|
|
|
2154
2164
|
empty message.`);
|
|
2155
2165
|
}
|
|
2156
2166
|
}
|
|
2157
|
-
},
|
|
2158
|
-
function
|
|
2167
|
+
}, gn = { "data-qa": "dt-combobox-input-wrapper" };
|
|
2168
|
+
function _n(e, s, t, o, n, i) {
|
|
2159
2169
|
const r = f("combobox-loading-list"), h = f("combobox-empty-list");
|
|
2160
2170
|
return a(), l("div", {
|
|
2161
2171
|
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] =
|
|
2172
|
+
s[3] || (s[3] = F(U((u) => i.onKeyValidation(u, "onEscapeKey"), ["stop"]), ["esc"])),
|
|
2173
|
+
s[4] || (s[4] = F(U((u) => i.onKeyValidation(u, "onEnterKey"), ["exact"]), ["enter"])),
|
|
2174
|
+
s[5] || (s[5] = F(U((u) => i.onKeyValidation(u, "onUpKey"), ["stop", "prevent"]), ["up"])),
|
|
2175
|
+
s[6] || (s[6] = F(U((u) => i.onKeyValidation(u, "onDownKey"), ["stop", "prevent"]), ["down"])),
|
|
2176
|
+
s[7] || (s[7] = F(U((u) => i.onKeyValidation(u, "onHomeKey"), ["stop", "prevent"]), ["home"])),
|
|
2177
|
+
s[8] || (s[8] = F(U((u) => i.onKeyValidation(u, "onEndKey"), ["stop", "prevent"]), ["end"]))
|
|
2168
2178
|
]
|
|
2169
2179
|
}, [
|
|
2170
|
-
_("div",
|
|
2180
|
+
_("div", gn, [
|
|
2171
2181
|
d(e.$slots, "input", { inputProps: i.inputProps })
|
|
2172
2182
|
]),
|
|
2173
2183
|
t.showList ? (a(), l("div", {
|
|
@@ -2178,7 +2188,7 @@ function pn(e, s, t, o, n, i) {
|
|
|
2178
2188
|
onFocusout: s[1] || (s[1] = (...u) => i.clearHighlightIndex && i.clearHighlightIndex(...u)),
|
|
2179
2189
|
onMousemoveCapture: s[2] || (s[2] = (...u) => i.onMouseHighlight && i.onMouseHighlight(...u))
|
|
2180
2190
|
}, [
|
|
2181
|
-
t.loading && !t.listRenderedOutside ? (a(), S(r,
|
|
2191
|
+
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
2192
|
message: t.emptyStateMessage,
|
|
2183
2193
|
"item-class": t.emptyStateClass
|
|
2184
2194
|
}), {
|
|
@@ -2195,8 +2205,8 @@ function pn(e, s, t, o, n, i) {
|
|
|
2195
2205
|
], 544)) : p("", !0)
|
|
2196
2206
|
], 32);
|
|
2197
2207
|
}
|
|
2198
|
-
const
|
|
2199
|
-
const
|
|
2208
|
+
const bn = /* @__PURE__ */ v(mn, [["render", _n]]);
|
|
2209
|
+
const yn = {
|
|
2200
2210
|
name: "DtCollapsibleLazyShow",
|
|
2201
2211
|
inheritAttrs: !1,
|
|
2202
2212
|
/******************
|
|
@@ -2306,8 +2316,8 @@ const gn = {
|
|
|
2306
2316
|
}
|
|
2307
2317
|
}
|
|
2308
2318
|
};
|
|
2309
|
-
function
|
|
2310
|
-
return a(), S(
|
|
2319
|
+
function vn(e, s, t, o, n, i) {
|
|
2320
|
+
return a(), S(Ze, C({
|
|
2311
2321
|
appear: t.appear,
|
|
2312
2322
|
"enter-active-class": "enter-active",
|
|
2313
2323
|
"leave-active-class": "leave-active"
|
|
@@ -2321,7 +2331,7 @@ function _n(e, s, t, o, n, i) {
|
|
|
2321
2331
|
onAfterLeave: i.afterLeave
|
|
2322
2332
|
}), {
|
|
2323
2333
|
default: c(() => [
|
|
2324
|
-
Se((a(), S(X(t.elementType),
|
|
2334
|
+
Se((a(), S(X(t.elementType), ke(Ye(e.$attrs)), {
|
|
2325
2335
|
default: c(() => [
|
|
2326
2336
|
n.initialized ? d(e.$slots, "default", { key: 0 }) : p("", !0)
|
|
2327
2337
|
]),
|
|
@@ -2333,11 +2343,11 @@ function _n(e, s, t, o, n, i) {
|
|
|
2333
2343
|
_: 3
|
|
2334
2344
|
}, 16, ["appear", "css", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
2335
2345
|
}
|
|
2336
|
-
const
|
|
2346
|
+
const Sn = /* @__PURE__ */ v(yn, [["render", vn]]), Cn = {
|
|
2337
2347
|
name: "DtCollapsible",
|
|
2338
2348
|
components: {
|
|
2339
2349
|
DtButton: K,
|
|
2340
|
-
DtCollapsibleLazyShow:
|
|
2350
|
+
DtCollapsibleLazyShow: Sn,
|
|
2341
2351
|
DtLazyShow: $e,
|
|
2342
2352
|
DtIcon: x
|
|
2343
2353
|
},
|
|
@@ -2454,7 +2464,7 @@ const bn = /* @__PURE__ */ v(gn, [["render", _n]]), yn = {
|
|
|
2454
2464
|
return this.ariaLabelledBy || !this.ariaLabel && q("DtCollapsible__anchor");
|
|
2455
2465
|
},
|
|
2456
2466
|
collapsibleListeners() {
|
|
2457
|
-
return
|
|
2467
|
+
return Qe(this.$attrs);
|
|
2458
2468
|
}
|
|
2459
2469
|
},
|
|
2460
2470
|
watch: {
|
|
@@ -2485,8 +2495,8 @@ const bn = /* @__PURE__ */ v(gn, [["render", _n]]), yn = {
|
|
|
2485
2495
|
!this.anchorText && !$(this.$slots.anchor) && console.error("anchor text and anchor slot content cannot both be falsy");
|
|
2486
2496
|
}
|
|
2487
2497
|
}
|
|
2488
|
-
},
|
|
2489
|
-
function
|
|
2498
|
+
}, In = ["id"], wn = ["title"];
|
|
2499
|
+
function En(e, s, t, o, n, i) {
|
|
2490
2500
|
const r = f("dt-icon"), h = f("dt-button"), u = f("dt-collapsible-lazy-show");
|
|
2491
2501
|
return a(), S(X(t.elementType), C({ ref: "collapsible" }, M(i.collapsibleListeners)), {
|
|
2492
2502
|
default: c(() => [
|
|
@@ -2523,12 +2533,12 @@ function Cn(e, s, t, o, n, i) {
|
|
|
2523
2533
|
_("span", {
|
|
2524
2534
|
class: "d-mr-auto d-truncate",
|
|
2525
2535
|
title: t.anchorText
|
|
2526
|
-
}, I(t.anchorText), 9,
|
|
2536
|
+
}, I(t.anchorText), 9, wn)
|
|
2527
2537
|
]),
|
|
2528
2538
|
_: 1
|
|
2529
2539
|
}, 8, ["aria-controls", "aria-expanded", "style", "onClick"])
|
|
2530
2540
|
])
|
|
2531
|
-
], 10,
|
|
2541
|
+
], 10, In),
|
|
2532
2542
|
m(u, C({
|
|
2533
2543
|
id: t.id,
|
|
2534
2544
|
ref: "contentWrapper",
|
|
@@ -2560,19 +2570,19 @@ function Cn(e, s, t, o, n, i) {
|
|
|
2560
2570
|
_: 3
|
|
2561
2571
|
}, 16);
|
|
2562
2572
|
}
|
|
2563
|
-
const
|
|
2573
|
+
const Xr = /* @__PURE__ */ v(Cn, [["render", En]]), zt = {
|
|
2564
2574
|
none: void 0,
|
|
2565
2575
|
small: "d-p4",
|
|
2566
2576
|
medium: "d-p8",
|
|
2567
2577
|
large: "d-p16"
|
|
2568
|
-
},
|
|
2578
|
+
}, kn = {
|
|
2569
2579
|
none: void 0,
|
|
2570
2580
|
small: "d-pl4",
|
|
2571
2581
|
medium: "d-pl8",
|
|
2572
2582
|
large: "d-pl16"
|
|
2573
|
-
},
|
|
2574
|
-
...
|
|
2575
|
-
],
|
|
2583
|
+
}, On = ["dialog", "menu", "listbox", "tree", "grid"], os = ["", "anchor"], Ln = ["none", "dialog", "first"], Me = ["parent", "body"], Tn = [
|
|
2584
|
+
...Ns
|
|
2585
|
+
], An = {
|
|
2576
2586
|
name: "PopoverHeaderFooter",
|
|
2577
2587
|
components: {
|
|
2578
2588
|
DtButton: K,
|
|
@@ -2633,7 +2643,7 @@ const Zr = /* @__PURE__ */ v(yn, [["render", Cn]]), Bt = {
|
|
|
2633
2643
|
}
|
|
2634
2644
|
}
|
|
2635
2645
|
};
|
|
2636
|
-
function
|
|
2646
|
+
function Dn(e, s, t, o, n, i) {
|
|
2637
2647
|
const r = f("dt-icon"), h = f("dt-button");
|
|
2638
2648
|
return a(), l("div", {
|
|
2639
2649
|
"data-qa": "dt-popover-header-footer",
|
|
@@ -2670,8 +2680,8 @@ function Ln(e, s, t, o, n, i) {
|
|
|
2670
2680
|
}, 16)) : p("", !0)
|
|
2671
2681
|
], 2);
|
|
2672
2682
|
}
|
|
2673
|
-
const
|
|
2674
|
-
const
|
|
2683
|
+
const Pn = /* @__PURE__ */ v(An, [["render", Dn]]);
|
|
2684
|
+
const xn = {
|
|
2675
2685
|
name: "DtPopover",
|
|
2676
2686
|
/********************
|
|
2677
2687
|
* CHILD COMPONENTS *
|
|
@@ -2679,7 +2689,7 @@ const An = {
|
|
|
2679
2689
|
components: {
|
|
2680
2690
|
SrOnlyCloseButton: Ne,
|
|
2681
2691
|
DtLazyShow: $e,
|
|
2682
|
-
PopoverHeaderFooter:
|
|
2692
|
+
PopoverHeaderFooter: Pn
|
|
2683
2693
|
},
|
|
2684
2694
|
mixins: [Le, ie],
|
|
2685
2695
|
props: {
|
|
@@ -2724,7 +2734,7 @@ const An = {
|
|
|
2724
2734
|
role: {
|
|
2725
2735
|
type: String,
|
|
2726
2736
|
default: "dialog",
|
|
2727
|
-
validator: (e) =>
|
|
2737
|
+
validator: (e) => On.includes(e)
|
|
2728
2738
|
},
|
|
2729
2739
|
/**
|
|
2730
2740
|
* ID of the element that serves as the label for the popover content.
|
|
@@ -2760,7 +2770,7 @@ const An = {
|
|
|
2760
2770
|
padding: {
|
|
2761
2771
|
type: String,
|
|
2762
2772
|
default: "large",
|
|
2763
|
-
validator: (e) => Object.keys(
|
|
2773
|
+
validator: (e) => Object.keys(zt).some((s) => s === e)
|
|
2764
2774
|
},
|
|
2765
2775
|
/**
|
|
2766
2776
|
* Additional class name for the content wrapper element.
|
|
@@ -2777,7 +2787,7 @@ const An = {
|
|
|
2777
2787
|
contentWidth: {
|
|
2778
2788
|
type: String,
|
|
2779
2789
|
default: "",
|
|
2780
|
-
validator: (e) =>
|
|
2790
|
+
validator: (e) => os.includes(e)
|
|
2781
2791
|
},
|
|
2782
2792
|
/**
|
|
2783
2793
|
* Whether to apply transition on initial render in the content lazy show component.
|
|
@@ -2911,7 +2921,7 @@ const An = {
|
|
|
2911
2921
|
sticky: {
|
|
2912
2922
|
type: [Boolean, String],
|
|
2913
2923
|
default: !1,
|
|
2914
|
-
validator: (e) =>
|
|
2924
|
+
validator: (e) => Tn.includes(e)
|
|
2915
2925
|
},
|
|
2916
2926
|
/**
|
|
2917
2927
|
* Determines maximum height for the popover before overflow.
|
|
@@ -2969,7 +2979,7 @@ const An = {
|
|
|
2969
2979
|
initialFocusElement: {
|
|
2970
2980
|
type: [String, HTMLElement],
|
|
2971
2981
|
default: "first",
|
|
2972
|
-
validator: (e) =>
|
|
2982
|
+
validator: (e) => Ln.includes(e) || e instanceof HTMLElement || e.startsWith("#")
|
|
2973
2983
|
},
|
|
2974
2984
|
/**
|
|
2975
2985
|
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
@@ -3014,8 +3024,8 @@ const An = {
|
|
|
3014
3024
|
],
|
|
3015
3025
|
data() {
|
|
3016
3026
|
return {
|
|
3017
|
-
POPOVER_PADDING_CLASSES:
|
|
3018
|
-
POPOVER_HEADER_FOOTER_PADDING_CLASSES:
|
|
3027
|
+
POPOVER_PADDING_CLASSES: zt,
|
|
3028
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES: kn,
|
|
3019
3029
|
intersectionObserver: null,
|
|
3020
3030
|
isOutsideViewport: !1,
|
|
3021
3031
|
isOpen: !1,
|
|
@@ -3122,11 +3132,11 @@ const An = {
|
|
|
3122
3132
|
const s = (o = e == null ? void 0 : e[0]) == null ? void 0 : o.target;
|
|
3123
3133
|
if (!s)
|
|
3124
3134
|
return;
|
|
3125
|
-
const t =
|
|
3135
|
+
const t = zs(s);
|
|
3126
3136
|
this.isOutsideViewport = t.bottom || t.top;
|
|
3127
3137
|
},
|
|
3128
3138
|
popperOptions() {
|
|
3129
|
-
return
|
|
3139
|
+
return Ms({
|
|
3130
3140
|
fallbackPlacements: this.fallbackPlacements,
|
|
3131
3141
|
tether: this.tether,
|
|
3132
3142
|
hasHideModifierEnabled: !0
|
|
@@ -3241,7 +3251,7 @@ const An = {
|
|
|
3241
3251
|
},
|
|
3242
3252
|
initTippyInstance() {
|
|
3243
3253
|
var e, s;
|
|
3244
|
-
this.tip =
|
|
3254
|
+
this.tip = Hs(this.anchorEl, {
|
|
3245
3255
|
popperOptions: this.popperOptions(),
|
|
3246
3256
|
contentElement: this.popoverContentEl,
|
|
3247
3257
|
placement: this.placement,
|
|
@@ -3259,11 +3269,11 @@ const An = {
|
|
|
3259
3269
|
});
|
|
3260
3270
|
}
|
|
3261
3271
|
}
|
|
3262
|
-
},
|
|
3263
|
-
function
|
|
3272
|
+
}, Rn = ["aria-hidden"], Bn = ["id", "tabindex"];
|
|
3273
|
+
function $n(e, s, t, o, n, i) {
|
|
3264
3274
|
const r = f("popover-header-footer"), h = f("sr-only-close-button"), u = f("dt-lazy-show");
|
|
3265
3275
|
return a(), l("div", null, [
|
|
3266
|
-
t.modal && n.isOpen ? (a(), S(
|
|
3276
|
+
t.modal && n.isOpen ? (a(), S(Wt, {
|
|
3267
3277
|
key: 0,
|
|
3268
3278
|
to: "body"
|
|
3269
3279
|
}, [
|
|
@@ -3272,7 +3282,7 @@ function xn(e, s, t, o, n, i) {
|
|
|
3272
3282
|
"aria-hidden": t.modal && n.isOpen ? "false" : "true",
|
|
3273
3283
|
onClick: s[0] || (s[0] = U(() => {
|
|
3274
3284
|
}, ["prevent", "stop"]))
|
|
3275
|
-
}, null, 8,
|
|
3285
|
+
}, null, 8, Rn)
|
|
3276
3286
|
])) : p("", !0),
|
|
3277
3287
|
(a(), S(X(t.elementType), {
|
|
3278
3288
|
ref: "popover",
|
|
@@ -3288,12 +3298,12 @@ function xn(e, s, t, o, n, i) {
|
|
|
3288
3298
|
onClickCapture: s[1] || (s[1] = (...g) => i.defaultToggleOpen && i.defaultToggleOpen(...g)),
|
|
3289
3299
|
onContextmenu: s[2] || (s[2] = (...g) => i.onContext && i.onContext(...g)),
|
|
3290
3300
|
onKeydown: [
|
|
3291
|
-
s[3] || (s[3] =
|
|
3292
|
-
s[4] || (s[4] =
|
|
3293
|
-
s[6] || (s[6] =
|
|
3294
|
-
s[7] || (s[7] =
|
|
3301
|
+
s[3] || (s[3] = F(U((...g) => i.onArrowKeyPress && i.onArrowKeyPress(...g), ["prevent"]), ["up"])),
|
|
3302
|
+
s[4] || (s[4] = F(U((...g) => i.onArrowKeyPress && i.onArrowKeyPress(...g), ["prevent"]), ["down"])),
|
|
3303
|
+
s[6] || (s[6] = F((g) => e.$emit("keydown", g), ["enter"])),
|
|
3304
|
+
s[7] || (s[7] = F((g) => e.$emit("keydown", g), ["space"]))
|
|
3295
3305
|
],
|
|
3296
|
-
onKeydownCapture: s[5] || (s[5] =
|
|
3306
|
+
onKeydownCapture: s[5] || (s[5] = F((...g) => i.closePopover && i.closePopover(...g), ["escape"]))
|
|
3297
3307
|
}, [
|
|
3298
3308
|
d(e.$slots, "anchor", {
|
|
3299
3309
|
attrs: {
|
|
@@ -3302,7 +3312,7 @@ function xn(e, s, t, o, n, i) {
|
|
|
3302
3312
|
"aria-haspopup": t.role
|
|
3303
3313
|
}
|
|
3304
3314
|
})
|
|
3305
|
-
], 40,
|
|
3315
|
+
], 40, Bn),
|
|
3306
3316
|
m(u, C({
|
|
3307
3317
|
id: t.id,
|
|
3308
3318
|
ref: "content",
|
|
@@ -3375,19 +3385,19 @@ function xn(e, s, t, o, n, i) {
|
|
|
3375
3385
|
}, 8, ["class"]))
|
|
3376
3386
|
]);
|
|
3377
3387
|
}
|
|
3378
|
-
const
|
|
3388
|
+
const ot = /* @__PURE__ */ v(xn, [["render", $n]]), ve = {
|
|
3379
3389
|
none: void 0,
|
|
3380
3390
|
small: "d-py0",
|
|
3381
3391
|
large: "d-py4"
|
|
3382
3392
|
};
|
|
3383
|
-
const
|
|
3393
|
+
const Nn = {
|
|
3384
3394
|
name: "DtDropdown",
|
|
3385
3395
|
components: {
|
|
3386
|
-
DtPopover:
|
|
3396
|
+
DtPopover: ot,
|
|
3387
3397
|
SrOnlyCloseButton: Ne
|
|
3388
3398
|
},
|
|
3389
3399
|
mixins: [
|
|
3390
|
-
|
|
3400
|
+
ss({
|
|
3391
3401
|
indexKey: "highlightIndex",
|
|
3392
3402
|
idKey: "highlightId",
|
|
3393
3403
|
listElementKey: "getListElement",
|
|
@@ -3717,8 +3727,8 @@ const Rn = {
|
|
|
3717
3727
|
return e.stopPropagation(), e.preventDefault(), this.onNavigationKey(e.key);
|
|
3718
3728
|
}
|
|
3719
3729
|
}
|
|
3720
|
-
},
|
|
3721
|
-
function
|
|
3730
|
+
}, zn = ["id"];
|
|
3731
|
+
function Mn(e, s, t, o, n, i) {
|
|
3722
3732
|
const r = f("sr-only-close-button"), h = f("dt-popover");
|
|
3723
3733
|
return a(), S(h, C({
|
|
3724
3734
|
ref: "popover",
|
|
@@ -3758,22 +3768,22 @@ function $n(e, s, t, o, n, i) {
|
|
|
3758
3768
|
tabindex: i.isArrowKeyNav ? -1 : 0,
|
|
3759
3769
|
onClose: u
|
|
3760
3770
|
}, null, 8, ["visually-hidden-close-label", "tabindex", "onClose"])) : p("", !0)
|
|
3761
|
-
], 42,
|
|
3771
|
+
], 42, zn)
|
|
3762
3772
|
]),
|
|
3763
3773
|
_: 3
|
|
3764
3774
|
}, 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
3775
|
}
|
|
3766
|
-
const
|
|
3767
|
-
const
|
|
3776
|
+
const Hn = /* @__PURE__ */ v(Nn, [["render", Mn]]);
|
|
3777
|
+
const Fn = {
|
|
3768
3778
|
name: "DtDropdownSeparator"
|
|
3769
|
-
},
|
|
3779
|
+
}, Vn = {
|
|
3770
3780
|
"aria-hidden": "true",
|
|
3771
3781
|
class: "dt-list-separator d-my4 d-mxn4"
|
|
3772
3782
|
};
|
|
3773
|
-
function
|
|
3774
|
-
return a(), l("li",
|
|
3783
|
+
function qn(e, s, t, o, n, i) {
|
|
3784
|
+
return a(), l("li", Vn);
|
|
3775
3785
|
}
|
|
3776
|
-
const
|
|
3786
|
+
const Jr = /* @__PURE__ */ v(Fn, [["render", qn]]), Kn = {
|
|
3777
3787
|
name: "DtImageViewer",
|
|
3778
3788
|
components: {
|
|
3779
3789
|
DtButton: K,
|
|
@@ -3901,13 +3911,13 @@ const Yr = /* @__PURE__ */ v(zn, [["render", Hn]]), Vn = {
|
|
|
3901
3911
|
this.isOpen && this.focusTrappedTabPress(e);
|
|
3902
3912
|
}
|
|
3903
3913
|
}
|
|
3904
|
-
},
|
|
3914
|
+
}, jn = ["src", "alt"], Gn = ["aria-hidden"], Un = {
|
|
3905
3915
|
"data-qa": "dt-image-viewer-full",
|
|
3906
3916
|
class: "d-p0 d-bar0 d-wmx80p d-hmx80p",
|
|
3907
3917
|
role: "dialog",
|
|
3908
3918
|
"aria-modal": "true"
|
|
3909
|
-
},
|
|
3910
|
-
function
|
|
3919
|
+
}, Wn = ["src", "alt"];
|
|
3920
|
+
function Zn(e, s, t, o, n, i) {
|
|
3911
3921
|
const r = f("dt-button"), h = f("dt-icon");
|
|
3912
3922
|
return a(), l("div", null, [
|
|
3913
3923
|
m(r, {
|
|
@@ -3922,11 +3932,11 @@ function Gn(e, s, t, o, n, i) {
|
|
|
3922
3932
|
class: y(t.imageButtonClass),
|
|
3923
3933
|
src: t.imageSrc,
|
|
3924
3934
|
alt: t.imageAlt
|
|
3925
|
-
}, null, 10,
|
|
3935
|
+
}, null, 10, jn)
|
|
3926
3936
|
]),
|
|
3927
3937
|
_: 1
|
|
3928
3938
|
}, 8, ["aria-label", "onClick"]),
|
|
3929
|
-
n.isOpen ? (a(), S(
|
|
3939
|
+
n.isOpen ? (a(), S(Wt, {
|
|
3930
3940
|
key: 0,
|
|
3931
3941
|
to: "body"
|
|
3932
3942
|
}, [
|
|
@@ -3940,14 +3950,14 @@ function Gn(e, s, t, o, n, i) {
|
|
|
3940
3950
|
onFocusin: s[2] || (s[2] = (u) => n.showCloseButton = !0),
|
|
3941
3951
|
onFocusout: s[3] || (s[3] = (u) => n.showCloseButton = !1)
|
|
3942
3952
|
}), [
|
|
3943
|
-
_("div",
|
|
3953
|
+
_("div", Un, [
|
|
3944
3954
|
_("img", {
|
|
3945
3955
|
class: "d-wmx100p d-hmx100p",
|
|
3946
3956
|
src: t.imageSrc,
|
|
3947
3957
|
alt: t.imageAlt
|
|
3948
|
-
}, null, 8,
|
|
3958
|
+
}, null, 8, Wn)
|
|
3949
3959
|
]),
|
|
3950
|
-
m(
|
|
3960
|
+
m(Ze, { name: "fade" }, {
|
|
3951
3961
|
default: c(() => [
|
|
3952
3962
|
n.showCloseButton ? (a(), S(r, {
|
|
3953
3963
|
key: 0,
|
|
@@ -3972,11 +3982,11 @@ function Gn(e, s, t, o, n, i) {
|
|
|
3972
3982
|
]),
|
|
3973
3983
|
_: 1
|
|
3974
3984
|
})
|
|
3975
|
-
], 16,
|
|
3985
|
+
], 16, Gn)
|
|
3976
3986
|
])) : p("", !0)
|
|
3977
3987
|
]);
|
|
3978
3988
|
}
|
|
3979
|
-
const
|
|
3989
|
+
const ed = /* @__PURE__ */ v(Kn, [["render", Zn]]), Yn = {
|
|
3980
3990
|
components: { DtValidationMessages: me },
|
|
3981
3991
|
// provide data to slotted components
|
|
3982
3992
|
provide() {
|
|
@@ -4030,7 +4040,7 @@ const Qr = /* @__PURE__ */ v(Vn, [["render", Gn]]), Un = {
|
|
|
4030
4040
|
messages: {
|
|
4031
4041
|
type: Array,
|
|
4032
4042
|
default: () => [],
|
|
4033
|
-
validator: (e) =>
|
|
4043
|
+
validator: (e) => Qt(e)
|
|
4034
4044
|
},
|
|
4035
4045
|
/**
|
|
4036
4046
|
* Show validation messages
|
|
@@ -4079,22 +4089,22 @@ const Qr = /* @__PURE__ */ v(Vn, [["render", Gn]]), Un = {
|
|
|
4079
4089
|
"input"
|
|
4080
4090
|
],
|
|
4081
4091
|
data() {
|
|
4082
|
-
const e =
|
|
4092
|
+
const e = Tt(this.messages);
|
|
4083
4093
|
return {
|
|
4084
4094
|
// wrap values in object to make reactive
|
|
4085
4095
|
provideObj: {
|
|
4086
4096
|
name: this.name,
|
|
4087
4097
|
disabled: this.disabled,
|
|
4088
|
-
validationState:
|
|
4098
|
+
validationState: We(e)
|
|
4089
4099
|
}
|
|
4090
4100
|
};
|
|
4091
4101
|
},
|
|
4092
4102
|
computed: {
|
|
4093
4103
|
formattedMessages() {
|
|
4094
|
-
return
|
|
4104
|
+
return Tt(this.messages);
|
|
4095
4105
|
},
|
|
4096
4106
|
validationState() {
|
|
4097
|
-
return
|
|
4107
|
+
return We(this.formattedMessages);
|
|
4098
4108
|
}
|
|
4099
4109
|
},
|
|
4100
4110
|
watch: {
|
|
@@ -4117,10 +4127,10 @@ const Qr = /* @__PURE__ */ v(Vn, [["render", Gn]]), Un = {
|
|
|
4117
4127
|
mounted() {
|
|
4118
4128
|
!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
4129
|
}
|
|
4120
|
-
},
|
|
4130
|
+
}, Qn = {
|
|
4121
4131
|
name: "DtInputGroup",
|
|
4122
4132
|
components: { DtValidationMessages: me },
|
|
4123
|
-
mixins: [
|
|
4133
|
+
mixins: [Yn],
|
|
4124
4134
|
props: {
|
|
4125
4135
|
/**
|
|
4126
4136
|
* A data qa tag for the input group
|
|
@@ -4171,8 +4181,8 @@ const Qr = /* @__PURE__ */ v(Vn, [["render", Gn]]), Un = {
|
|
|
4171
4181
|
return `input-group-message-${e}-${s}-${this.id}`;
|
|
4172
4182
|
}
|
|
4173
4183
|
}
|
|
4174
|
-
},
|
|
4175
|
-
function
|
|
4184
|
+
}, Xn = ["data-qa"], Jn = ["data-qa"];
|
|
4185
|
+
function ea(e, s, t, o, n, i) {
|
|
4176
4186
|
const r = f("dt-validation-messages");
|
|
4177
4187
|
return a(), l("fieldset", { "data-qa": t.dataQaGroup }, [
|
|
4178
4188
|
n.hasSlotContent(e.$slots.legend) || e.legend ? (a(), l("legend", C({
|
|
@@ -4182,7 +4192,7 @@ function Qn(e, s, t, o, n, i) {
|
|
|
4182
4192
|
d(e.$slots, "legend", {}, () => [
|
|
4183
4193
|
P(I(e.legend), 1)
|
|
4184
4194
|
])
|
|
4185
|
-
], 16,
|
|
4195
|
+
], 16, Jn)) : p("", !0),
|
|
4186
4196
|
d(e.$slots, "default"),
|
|
4187
4197
|
m(r, C({
|
|
4188
4198
|
"validation-messages": e.formattedMessages,
|
|
@@ -4190,26 +4200,26 @@ function Qn(e, s, t, o, n, i) {
|
|
|
4190
4200
|
class: e.messagesClass,
|
|
4191
4201
|
"data-qa": t.dataQaGroupMessages
|
|
4192
4202
|
}, e.messagesChildProps), null, 16, ["validation-messages", "show-messages", "class", "data-qa"])
|
|
4193
|
-
], 8,
|
|
4203
|
+
], 8, Xn);
|
|
4194
4204
|
}
|
|
4195
|
-
const
|
|
4205
|
+
const ls = /* @__PURE__ */ v(Qn, [["render", ea]]), Mt = {
|
|
4196
4206
|
default: "",
|
|
4197
4207
|
danger: "d-modal--danger"
|
|
4198
|
-
},
|
|
4208
|
+
}, Ht = {
|
|
4199
4209
|
default: "",
|
|
4200
4210
|
full: "d-modal--full"
|
|
4201
|
-
},
|
|
4211
|
+
}, Ft = {
|
|
4202
4212
|
error: "d-modal__banner--critical",
|
|
4203
4213
|
info: "d-modal__banner--info",
|
|
4204
4214
|
success: "d-modal__banner--success",
|
|
4205
4215
|
warning: "d-modal__banner--warning",
|
|
4206
4216
|
base: "d-modal__banner--general"
|
|
4207
|
-
},
|
|
4217
|
+
}, ta = {
|
|
4208
4218
|
name: "DtNotice",
|
|
4209
4219
|
components: {
|
|
4210
|
-
DtNoticeIcon:
|
|
4211
|
-
DtNoticeContent:
|
|
4212
|
-
DtNoticeAction:
|
|
4220
|
+
DtNoticeIcon: it,
|
|
4221
|
+
DtNoticeContent: nt,
|
|
4222
|
+
DtNoticeAction: at
|
|
4213
4223
|
},
|
|
4214
4224
|
mixins: [ie],
|
|
4215
4225
|
props: {
|
|
@@ -4246,7 +4256,7 @@ const ns = /* @__PURE__ */ v(Wn, [["render", Qn]]), $t = {
|
|
|
4246
4256
|
type: String,
|
|
4247
4257
|
default: "status",
|
|
4248
4258
|
validate(e) {
|
|
4249
|
-
return
|
|
4259
|
+
return ui.includes(e);
|
|
4250
4260
|
}
|
|
4251
4261
|
},
|
|
4252
4262
|
/**
|
|
@@ -4316,7 +4326,7 @@ const ns = /* @__PURE__ */ v(Wn, [["render", Qn]]), $t = {
|
|
|
4316
4326
|
}
|
|
4317
4327
|
}
|
|
4318
4328
|
};
|
|
4319
|
-
function
|
|
4329
|
+
function sa(e, s, t, o, n, i) {
|
|
4320
4330
|
const r = f("dt-notice-icon"), h = f("dt-notice-content"), u = f("dt-notice-action");
|
|
4321
4331
|
return a(), l("aside", {
|
|
4322
4332
|
class: y(i.noticeClass),
|
|
@@ -4356,7 +4366,7 @@ function Jn(e, s, t, o, n, i) {
|
|
|
4356
4366
|
}, 8, ["hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label"])
|
|
4357
4367
|
], 2);
|
|
4358
4368
|
}
|
|
4359
|
-
const
|
|
4369
|
+
const td = /* @__PURE__ */ v(ta, [["render", sa]]), ia = {
|
|
4360
4370
|
name: "DtModal",
|
|
4361
4371
|
components: {
|
|
4362
4372
|
DtLazyShow: $e,
|
|
@@ -4430,7 +4440,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4430
4440
|
kind: {
|
|
4431
4441
|
type: String,
|
|
4432
4442
|
default: "default",
|
|
4433
|
-
validator: (e) => Object.keys(
|
|
4443
|
+
validator: (e) => Object.keys(Mt).includes(e)
|
|
4434
4444
|
},
|
|
4435
4445
|
/**
|
|
4436
4446
|
* The size of the modal. size - default or full,
|
|
@@ -4439,7 +4449,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4439
4449
|
size: {
|
|
4440
4450
|
type: String,
|
|
4441
4451
|
default: "default",
|
|
4442
|
-
validator: (e) => Object.keys(
|
|
4452
|
+
validator: (e) => Object.keys(Ht).includes(e)
|
|
4443
4453
|
},
|
|
4444
4454
|
/**
|
|
4445
4455
|
* Additional class name for the root modal element.
|
|
@@ -4511,6 +4521,18 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4511
4521
|
fixedHeaderFooter: {
|
|
4512
4522
|
type: Boolean,
|
|
4513
4523
|
default: !0
|
|
4524
|
+
},
|
|
4525
|
+
/**
|
|
4526
|
+
* The element that is focused when the modal is opened. This can be an
|
|
4527
|
+
* HTMLElement within the modal, a string starting with '#' which will
|
|
4528
|
+
* find the element by ID. 'first' which will automatically focus
|
|
4529
|
+
* the first element, or 'dialog' which will focus the dialog window itself.
|
|
4530
|
+
* If the dialog is modal this prop cannot be 'none'.
|
|
4531
|
+
*/
|
|
4532
|
+
initialFocusElement: {
|
|
4533
|
+
type: [String, HTMLElement],
|
|
4534
|
+
default: "first",
|
|
4535
|
+
validator: (e) => e === "first" || e instanceof HTMLElement || e.startsWith("#")
|
|
4514
4536
|
}
|
|
4515
4537
|
},
|
|
4516
4538
|
emits: [
|
|
@@ -4539,9 +4561,9 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4539
4561
|
],
|
|
4540
4562
|
data() {
|
|
4541
4563
|
return {
|
|
4542
|
-
MODAL_KIND_MODIFIERS:
|
|
4543
|
-
MODAL_SIZE_MODIFIERS:
|
|
4544
|
-
MODAL_BANNER_KINDS:
|
|
4564
|
+
MODAL_KIND_MODIFIERS: Mt,
|
|
4565
|
+
MODAL_SIZE_MODIFIERS: Ht,
|
|
4566
|
+
MODAL_BANNER_KINDS: Ft,
|
|
4545
4567
|
EVENT_KEYNAMES: H,
|
|
4546
4568
|
hasSlotContent: $
|
|
4547
4569
|
};
|
|
@@ -4565,7 +4587,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4565
4587
|
this.$emit("keydown", e);
|
|
4566
4588
|
},
|
|
4567
4589
|
"after-enter": (e) => {
|
|
4568
|
-
e.target === e.currentTarget && this.setFocusAfterTransition();
|
|
4590
|
+
this.$emit("update:show", !0), e.target === e.currentTarget && this.setFocusAfterTransition();
|
|
4569
4591
|
}
|
|
4570
4592
|
};
|
|
4571
4593
|
},
|
|
@@ -4576,7 +4598,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4576
4598
|
return !!this.$slots.footer;
|
|
4577
4599
|
},
|
|
4578
4600
|
bannerKindClass() {
|
|
4579
|
-
return
|
|
4601
|
+
return Ft[this.bannerKind];
|
|
4580
4602
|
}
|
|
4581
4603
|
},
|
|
4582
4604
|
watch: {
|
|
@@ -4600,7 +4622,7 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4600
4622
|
this.$emit("update:show", !1);
|
|
4601
4623
|
},
|
|
4602
4624
|
setFocusAfterTransition() {
|
|
4603
|
-
this.focusFirstElement();
|
|
4625
|
+
this.initialFocusElement === "first" ? this.focusFirstElement() : this.initialFocusElement.startsWith("#") ? this.focusElementById(this.initialFocusElement) : this.initialFocusElement instanceof HTMLElement && this.initialFocusElement.focus();
|
|
4604
4626
|
},
|
|
4605
4627
|
trapFocus(e) {
|
|
4606
4628
|
this.show && this.focusTrappedTabPress(e);
|
|
@@ -4610,11 +4632,11 @@ const Xr = /* @__PURE__ */ v(Xn, [["render", Jn]]), ea = {
|
|
|
4610
4632
|
need to be set so the component always includes a close button`);
|
|
4611
4633
|
}
|
|
4612
4634
|
}
|
|
4613
|
-
},
|
|
4635
|
+
}, na = ["aria-describedby", "aria-labelledby"], aa = ["id"], oa = ["id"], la = {
|
|
4614
4636
|
key: 4,
|
|
4615
4637
|
class: "d-modal__footer"
|
|
4616
4638
|
};
|
|
4617
|
-
function
|
|
4639
|
+
function ra(e, s, t, o, n, i) {
|
|
4618
4640
|
const r = f("dt-icon"), h = f("dt-button"), u = f("sr-only-close-button"), g = f("dt-lazy-show");
|
|
4619
4641
|
return a(), S(g, C({
|
|
4620
4642
|
transition: "d-zoom",
|
|
@@ -4642,7 +4664,7 @@ function aa(e, s, t, o, n, i) {
|
|
|
4642
4664
|
P(I(t.bannerTitle), 1)
|
|
4643
4665
|
])
|
|
4644
4666
|
], 2)) : p("", !0),
|
|
4645
|
-
m(
|
|
4667
|
+
m(Ze, {
|
|
4646
4668
|
appear: "",
|
|
4647
4669
|
name: "d-modal__dialog"
|
|
4648
4670
|
}, {
|
|
@@ -4665,12 +4687,12 @@ function aa(e, s, t, o, n, i) {
|
|
|
4665
4687
|
"data-qa": "dt-modal-title"
|
|
4666
4688
|
}, [
|
|
4667
4689
|
d(e.$slots, "header")
|
|
4668
|
-
], 8,
|
|
4690
|
+
], 8, aa)) : (a(), l("h2", {
|
|
4669
4691
|
key: 1,
|
|
4670
4692
|
id: t.labelledById,
|
|
4671
4693
|
class: "d-modal__header",
|
|
4672
4694
|
"data-qa": "dt-modal-title"
|
|
4673
|
-
}, I(t.title), 9,
|
|
4695
|
+
}, I(t.title), 9, oa)),
|
|
4674
4696
|
n.hasSlotContent(e.$slots.default) ? (a(), l("div", {
|
|
4675
4697
|
key: 2,
|
|
4676
4698
|
class: y([
|
|
@@ -4688,7 +4710,7 @@ function aa(e, s, t, o, n, i) {
|
|
|
4688
4710
|
]),
|
|
4689
4711
|
"data-qa": "dt-modal-copy"
|
|
4690
4712
|
}, I(t.copy), 3)),
|
|
4691
|
-
i.hasFooterSlot ? (a(), l("footer",
|
|
4713
|
+
i.hasFooterSlot ? (a(), l("footer", la, [
|
|
4692
4714
|
d(e.$slots, "footer")
|
|
4693
4715
|
])) : p("", !0),
|
|
4694
4716
|
t.hideClose ? p("", !0) : (a(), S(h, C({
|
|
@@ -4712,7 +4734,7 @@ function aa(e, s, t, o, n, i) {
|
|
|
4712
4734
|
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
4713
4735
|
onClose: i.close
|
|
4714
4736
|
}, null, 8, ["visually-hidden-close-label", "onClose"])) : p("", !0)
|
|
4715
|
-
], 10,
|
|
4737
|
+
], 10, na), [
|
|
4716
4738
|
[Ce, t.show]
|
|
4717
4739
|
])
|
|
4718
4740
|
]),
|
|
@@ -4722,8 +4744,8 @@ function aa(e, s, t, o, n, i) {
|
|
|
4722
4744
|
_: 3
|
|
4723
4745
|
}, 16, ["show", "class", "aria-hidden"]);
|
|
4724
4746
|
}
|
|
4725
|
-
const
|
|
4726
|
-
const
|
|
4747
|
+
const sd = /* @__PURE__ */ v(ia, [["render", ra]]);
|
|
4748
|
+
const da = {
|
|
4727
4749
|
name: "ListSection",
|
|
4728
4750
|
components: {
|
|
4729
4751
|
// little trick to render vnode objects via a render function
|
|
@@ -4798,8 +4820,8 @@ const oa = {
|
|
|
4798
4820
|
this.showAll = !this.showAll;
|
|
4799
4821
|
}
|
|
4800
4822
|
}
|
|
4801
|
-
},
|
|
4802
|
-
function
|
|
4823
|
+
}, ca = ["id", "aria-labelledby"], ua = ["id"], ha = ["id"], fa = ["id"], pa = { class: "d-d-flex" };
|
|
4824
|
+
function ma(e, s, t, o, n, i) {
|
|
4803
4825
|
const r = f("vnodes"), h = f("dt-button");
|
|
4804
4826
|
return a(), l("div", {
|
|
4805
4827
|
id: t.id,
|
|
@@ -4819,19 +4841,19 @@ function ha(e, s, t, o, n, i) {
|
|
|
4819
4841
|
key: 0,
|
|
4820
4842
|
id: `${t.id}-list-section-header`,
|
|
4821
4843
|
class: "d-pl12 d-mt6"
|
|
4822
|
-
}, I(t.header), 9,
|
|
4844
|
+
}, I(t.header), 9, ua)) : p("", !0),
|
|
4823
4845
|
!i.isCollapsible || n.showAll ? (a(), l("ol", {
|
|
4824
4846
|
key: 1,
|
|
4825
4847
|
id: `${t.id}-list-section-content`
|
|
4826
4848
|
}, [
|
|
4827
4849
|
d(e.$slots, "default")
|
|
4828
|
-
], 8,
|
|
4850
|
+
], 8, ha)) : (a(), l("ol", {
|
|
4829
4851
|
key: 2,
|
|
4830
4852
|
id: `${t.id}-list-section-content`
|
|
4831
4853
|
}, [
|
|
4832
4854
|
m(r, { vnodes: i.displayedItems }, null, 8, ["vnodes"])
|
|
4833
|
-
], 8,
|
|
4834
|
-
_("div",
|
|
4855
|
+
], 8, fa)),
|
|
4856
|
+
_("div", pa, [
|
|
4835
4857
|
i.isCollapsible ? (a(), S(h, {
|
|
4836
4858
|
key: 0,
|
|
4837
4859
|
id: `${t.id}-list-section-show-more-less`,
|
|
@@ -4846,9 +4868,9 @@ function ha(e, s, t, o, n, i) {
|
|
|
4846
4868
|
}, 8, ["id", "onClick"])) : p("", !0),
|
|
4847
4869
|
d(e.$slots, "footer")
|
|
4848
4870
|
])
|
|
4849
|
-
], 10,
|
|
4871
|
+
], 10, ca);
|
|
4850
4872
|
}
|
|
4851
|
-
const
|
|
4873
|
+
const id = /* @__PURE__ */ v(da, [["render", ma]]), ga = {
|
|
4852
4874
|
name: "DtListItemGroup",
|
|
4853
4875
|
props: {
|
|
4854
4876
|
/**
|
|
@@ -4882,8 +4904,8 @@ const ed = /* @__PURE__ */ v(oa, [["render", ha]]), fa = {
|
|
|
4882
4904
|
default: ""
|
|
4883
4905
|
}
|
|
4884
4906
|
}
|
|
4885
|
-
},
|
|
4886
|
-
function
|
|
4907
|
+
}, _a = ["id", "aria-labelledby"], ba = ["id"];
|
|
4908
|
+
function ya(e, s, t, o, n, i) {
|
|
4887
4909
|
return a(), l("ul", {
|
|
4888
4910
|
id: t.id,
|
|
4889
4911
|
class: y(["d-ps-relative", "d-px0", t.listClass]),
|
|
@@ -4901,11 +4923,11 @@ function ga(e, s, t, o, n, i) {
|
|
|
4901
4923
|
d(e.$slots, "headingSlot", {}, () => [
|
|
4902
4924
|
P(I(t.heading), 1)
|
|
4903
4925
|
])
|
|
4904
|
-
], 10,
|
|
4926
|
+
], 10, ba)) : p("", !0),
|
|
4905
4927
|
d(e.$slots, "default")
|
|
4906
|
-
], 10,
|
|
4928
|
+
], 10, _a);
|
|
4907
4929
|
}
|
|
4908
|
-
const
|
|
4930
|
+
const nd = /* @__PURE__ */ v(ga, [["render", ya]]), va = {
|
|
4909
4931
|
name: "DtPagination",
|
|
4910
4932
|
components: {
|
|
4911
4933
|
DtButton: K,
|
|
@@ -5011,12 +5033,12 @@ const td = /* @__PURE__ */ v(fa, [["render", ga]]), _a = {
|
|
|
5011
5033
|
this.currentPage = e, this.$emit("change", this.currentPage);
|
|
5012
5034
|
}
|
|
5013
5035
|
}
|
|
5014
|
-
},
|
|
5036
|
+
}, Sa = ["aria-label"], Ca = {
|
|
5015
5037
|
key: 0,
|
|
5016
5038
|
class: "d-fc-tertiary d-w24 d-ta-center",
|
|
5017
5039
|
"data-qa": "dt-pagination-separator"
|
|
5018
5040
|
};
|
|
5019
|
-
function
|
|
5041
|
+
function Ia(e, s, t, o, n, i) {
|
|
5020
5042
|
const r = f("dt-icon"), h = f("dt-button");
|
|
5021
5043
|
return a(), l("nav", {
|
|
5022
5044
|
"aria-label": t.ariaLabel,
|
|
@@ -5043,7 +5065,7 @@ function va(e, s, t, o, n, i) {
|
|
|
5043
5065
|
key: `page-${u}-${g}`,
|
|
5044
5066
|
class: y({ "d-as-flex-end": isNaN(Number(u)) })
|
|
5045
5067
|
}, [
|
|
5046
|
-
isNaN(Number(u)) ? (a(), l("div",
|
|
5068
|
+
isNaN(Number(u)) ? (a(), l("div", Ca, [
|
|
5047
5069
|
m(r, {
|
|
5048
5070
|
name: "more-horizontal",
|
|
5049
5071
|
size: "300"
|
|
@@ -5079,16 +5101,16 @@ function va(e, s, t, o, n, i) {
|
|
|
5079
5101
|
]),
|
|
5080
5102
|
_: 1
|
|
5081
5103
|
}, 8, ["aria-label", "disabled", "importance", "class"])
|
|
5082
|
-
], 8,
|
|
5104
|
+
], 8, Sa);
|
|
5083
5105
|
}
|
|
5084
|
-
const
|
|
5106
|
+
const ad = /* @__PURE__ */ v(va, [["render", Ia]]), wa = {
|
|
5085
5107
|
warning: "d-radio--warning",
|
|
5086
5108
|
error: "d-radio--error",
|
|
5087
5109
|
success: "d-radio--success"
|
|
5088
|
-
},
|
|
5110
|
+
}, Ea = {
|
|
5089
5111
|
name: "DtRadio",
|
|
5090
5112
|
components: { DtValidationMessages: me },
|
|
5091
|
-
mixins: [
|
|
5113
|
+
mixins: [Xt, Jt, es, Xe],
|
|
5092
5114
|
inheritAttrs: !1,
|
|
5093
5115
|
props: {
|
|
5094
5116
|
/**
|
|
@@ -5143,7 +5165,7 @@ const sd = /* @__PURE__ */ v(_a, [["render", va]]), Sa = {
|
|
|
5143
5165
|
},
|
|
5144
5166
|
computed: {
|
|
5145
5167
|
inputValidationClass() {
|
|
5146
|
-
return
|
|
5168
|
+
return wa[this.internalValidationState];
|
|
5147
5169
|
},
|
|
5148
5170
|
radioGroupValue() {
|
|
5149
5171
|
var e;
|
|
@@ -5177,17 +5199,17 @@ const sd = /* @__PURE__ */ v(_a, [["render", va]]), Sa = {
|
|
|
5177
5199
|
e !== this.radioGroupValue && (this.setGroupValue(e), this.$emit("input", e));
|
|
5178
5200
|
}
|
|
5179
5201
|
}
|
|
5180
|
-
},
|
|
5202
|
+
}, ka = { class: "d-radio__input" }, Oa = ["checked", "name", "value", "disabled"], La = {
|
|
5181
5203
|
class: "d-radio__copy d-radio__label",
|
|
5182
5204
|
"data-qa": "radio-label-description-container"
|
|
5183
5205
|
};
|
|
5184
|
-
function
|
|
5206
|
+
function Ta(e, s, t, o, n, i) {
|
|
5185
5207
|
const r = f("dt-validation-messages");
|
|
5186
5208
|
return a(), l("label", null, [
|
|
5187
5209
|
_("div", {
|
|
5188
5210
|
class: y(["d-radio-group", { "d-radio-group--disabled": e.internalDisabled }])
|
|
5189
5211
|
}, [
|
|
5190
|
-
_("div",
|
|
5212
|
+
_("div", ka, [
|
|
5191
5213
|
_("input", C({
|
|
5192
5214
|
checked: e.internalChecked,
|
|
5193
5215
|
name: e.internalName,
|
|
@@ -5195,9 +5217,9 @@ function Ea(e, s, t, o, n, i) {
|
|
|
5195
5217
|
disabled: e.internalDisabled,
|
|
5196
5218
|
type: "radio",
|
|
5197
5219
|
class: ["d-radio", i.inputValidationClass, e.inputClass]
|
|
5198
|
-
}, e.$attrs, M(i.inputListeners, !0)), null, 16,
|
|
5220
|
+
}, e.$attrs, M(i.inputListeners, !0)), null, 16, Oa)
|
|
5199
5221
|
]),
|
|
5200
|
-
_("div",
|
|
5222
|
+
_("div", La, [
|
|
5201
5223
|
_("div", C({ class: e.labelClass }, e.labelChildProps, { "data-qa": "radio-label" }), [
|
|
5202
5224
|
d(e.$slots, "default", {}, () => [
|
|
5203
5225
|
P(I(e.label), 1)
|
|
@@ -5220,9 +5242,9 @@ function Ea(e, s, t, o, n, i) {
|
|
|
5220
5242
|
], 2)
|
|
5221
5243
|
]);
|
|
5222
5244
|
}
|
|
5223
|
-
const
|
|
5245
|
+
const od = /* @__PURE__ */ v(Ea, [["render", Ta]]), ld = {
|
|
5224
5246
|
name: "DtRadioGroup",
|
|
5225
|
-
extends:
|
|
5247
|
+
extends: ls,
|
|
5226
5248
|
props: {
|
|
5227
5249
|
/**
|
|
5228
5250
|
* A provided value for the radio group
|
|
@@ -5296,7 +5318,7 @@ const id = /* @__PURE__ */ v(Ca, [["render", Ea]]), nd = {
|
|
|
5296
5318
|
return `radio-group-message-${e}-${s}-${this.id}`;
|
|
5297
5319
|
}
|
|
5298
5320
|
}
|
|
5299
|
-
},
|
|
5321
|
+
}, Aa = {
|
|
5300
5322
|
name: "DtTabPanel",
|
|
5301
5323
|
mixins: [Le],
|
|
5302
5324
|
inject: ["groupContext"],
|
|
@@ -5358,8 +5380,8 @@ const id = /* @__PURE__ */ v(Ca, [["render", Ea]]), nd = {
|
|
|
5358
5380
|
return t;
|
|
5359
5381
|
}
|
|
5360
5382
|
}
|
|
5361
|
-
},
|
|
5362
|
-
function
|
|
5383
|
+
}, Da = ["id", "tabindex", "aria-labelledby", "aria-hidden"];
|
|
5384
|
+
function Pa(e, s, t, o, n, i) {
|
|
5363
5385
|
return Se((a(), l("div", {
|
|
5364
5386
|
id: `dt-panel-${t.id}`,
|
|
5365
5387
|
role: "tabpanel",
|
|
@@ -5375,18 +5397,18 @@ function Ta(e, s, t, o, n, i) {
|
|
|
5375
5397
|
"data-qa": "dt-tab-panel"
|
|
5376
5398
|
}, [
|
|
5377
5399
|
d(e.$slots, "default")
|
|
5378
|
-
], 10,
|
|
5400
|
+
], 10, Da)), [
|
|
5379
5401
|
[Ce, !t.hidden]
|
|
5380
5402
|
]);
|
|
5381
5403
|
}
|
|
5382
|
-
const
|
|
5404
|
+
const rd = /* @__PURE__ */ v(Aa, [["render", Pa]]), xa = {
|
|
5383
5405
|
error: "d-checkbox--error",
|
|
5384
5406
|
warning: "d-checkbox--warning",
|
|
5385
5407
|
success: "d-checkbox--success"
|
|
5386
|
-
},
|
|
5408
|
+
}, Ra = {
|
|
5387
5409
|
name: "DtCheckbox",
|
|
5388
5410
|
components: { DtValidationMessages: me },
|
|
5389
|
-
mixins: [
|
|
5411
|
+
mixins: [Xt, Jt, es, Xe],
|
|
5390
5412
|
inheritAttrs: !1,
|
|
5391
5413
|
emits: [
|
|
5392
5414
|
/**
|
|
@@ -5413,7 +5435,7 @@ const ad = /* @__PURE__ */ v(Oa, [["render", Ta]]), Aa = {
|
|
|
5413
5435
|
],
|
|
5414
5436
|
computed: {
|
|
5415
5437
|
inputValidationClass() {
|
|
5416
|
-
return
|
|
5438
|
+
return xa[this.internalValidationState];
|
|
5417
5439
|
},
|
|
5418
5440
|
checkboxGroupValueChecked() {
|
|
5419
5441
|
var e, s;
|
|
@@ -5463,18 +5485,18 @@ const ad = /* @__PURE__ */ v(Oa, [["render", Ta]]), Aa = {
|
|
|
5463
5485
|
this.validateInputLabels(this.hasLabel, this.$attrs["aria-label"]);
|
|
5464
5486
|
}
|
|
5465
5487
|
}
|
|
5466
|
-
},
|
|
5488
|
+
}, Ba = { class: "d-checkbox__input" }, $a = ["checked", "name", "value", "disabled", ".indeterminate"], Na = {
|
|
5467
5489
|
key: 0,
|
|
5468
5490
|
class: "d-checkbox__copy d-checkbox__label",
|
|
5469
5491
|
"data-qa": "checkbox-label-description-container"
|
|
5470
5492
|
};
|
|
5471
|
-
function
|
|
5493
|
+
function za(e, s, t, o, n, i) {
|
|
5472
5494
|
const r = f("dt-validation-messages");
|
|
5473
5495
|
return a(), l("label", null, [
|
|
5474
5496
|
_("div", {
|
|
5475
5497
|
class: y(["d-checkbox-group", { "d-checkbox-group--disabled": e.internalDisabled }])
|
|
5476
5498
|
}, [
|
|
5477
|
-
_("div",
|
|
5499
|
+
_("div", Ba, [
|
|
5478
5500
|
_("input", C({
|
|
5479
5501
|
type: "checkbox",
|
|
5480
5502
|
checked: e.internalChecked,
|
|
@@ -5482,9 +5504,9 @@ function Ba(e, s, t, o, n, i) {
|
|
|
5482
5504
|
value: e.value,
|
|
5483
5505
|
disabled: e.internalDisabled,
|
|
5484
5506
|
class: ["d-checkbox", i.inputValidationClass, e.inputClass]
|
|
5485
|
-
}, e.$attrs, { ".indeterminate": e.internalIndeterminate }, M(i.inputListeners, !0)), null, 16,
|
|
5507
|
+
}, e.$attrs, { ".indeterminate": e.internalIndeterminate }, M(i.inputListeners, !0)), null, 16, $a)
|
|
5486
5508
|
]),
|
|
5487
|
-
i.hasLabelOrDescription ? (a(), l("div",
|
|
5509
|
+
i.hasLabelOrDescription ? (a(), l("div", Na, [
|
|
5488
5510
|
i.hasLabel ? (a(), l("div", C({
|
|
5489
5511
|
key: 0,
|
|
5490
5512
|
class: e.labelClass
|
|
@@ -5510,9 +5532,9 @@ function Ba(e, s, t, o, n, i) {
|
|
|
5510
5532
|
], 2)
|
|
5511
5533
|
]);
|
|
5512
5534
|
}
|
|
5513
|
-
const
|
|
5535
|
+
const dd = /* @__PURE__ */ v(Ra, [["render", za]]), cd = {
|
|
5514
5536
|
name: "DtCheckboxGroup",
|
|
5515
|
-
extends:
|
|
5537
|
+
extends: ls,
|
|
5516
5538
|
model: {
|
|
5517
5539
|
prop: "selectedValues"
|
|
5518
5540
|
},
|
|
@@ -5602,19 +5624,19 @@ const od = /* @__PURE__ */ v(Da, [["render", Ba]]), ld = {
|
|
|
5602
5624
|
return `checkbox-group-message-${e}-${s}-${this.id}`;
|
|
5603
5625
|
}
|
|
5604
5626
|
}
|
|
5605
|
-
},
|
|
5627
|
+
}, Vt = {
|
|
5606
5628
|
xs: "d-chip__label--xs",
|
|
5607
5629
|
sm: "d-chip__label--sm",
|
|
5608
5630
|
md: ""
|
|
5609
|
-
},
|
|
5631
|
+
}, Ma = {
|
|
5610
5632
|
xs: "d-chip__close--xs",
|
|
5611
5633
|
sm: "d-chip__close--sm",
|
|
5612
5634
|
md: ""
|
|
5613
|
-
},
|
|
5635
|
+
}, Ha = {
|
|
5614
5636
|
xs: "200",
|
|
5615
5637
|
sm: "200",
|
|
5616
5638
|
md: "200"
|
|
5617
|
-
},
|
|
5639
|
+
}, Fa = {
|
|
5618
5640
|
name: "DtChip",
|
|
5619
5641
|
components: {
|
|
5620
5642
|
DtButton: K,
|
|
@@ -5646,7 +5668,7 @@ const od = /* @__PURE__ */ v(Da, [["render", Ba]]), ld = {
|
|
|
5646
5668
|
size: {
|
|
5647
5669
|
type: String,
|
|
5648
5670
|
default: "md",
|
|
5649
|
-
validator: (e) => Object.keys(
|
|
5671
|
+
validator: (e) => Object.keys(Vt).includes(e)
|
|
5650
5672
|
},
|
|
5651
5673
|
/**
|
|
5652
5674
|
* The interactivity of the chip.
|
|
@@ -5730,38 +5752,38 @@ const od = /* @__PURE__ */ v(Da, [["render", Ba]]), ld = {
|
|
|
5730
5752
|
};
|
|
5731
5753
|
},
|
|
5732
5754
|
closeButtonIconSize() {
|
|
5733
|
-
return
|
|
5755
|
+
return Ha[this.size];
|
|
5734
5756
|
}
|
|
5735
5757
|
},
|
|
5736
5758
|
methods: {
|
|
5737
5759
|
chipClasses() {
|
|
5738
5760
|
return [
|
|
5739
5761
|
this.$attrs["grouped-chip"] ? "d-chip" : "d-chip__label",
|
|
5740
|
-
|
|
5762
|
+
Vt[this.size],
|
|
5741
5763
|
this.labelClass
|
|
5742
5764
|
];
|
|
5743
5765
|
},
|
|
5744
5766
|
chipCloseButtonClasses() {
|
|
5745
5767
|
return [
|
|
5746
5768
|
"d-chip__close",
|
|
5747
|
-
|
|
5769
|
+
Ma[this.size]
|
|
5748
5770
|
];
|
|
5749
5771
|
},
|
|
5750
5772
|
onClose() {
|
|
5751
5773
|
this.hideClose || this.$emit("close");
|
|
5752
5774
|
}
|
|
5753
5775
|
}
|
|
5754
|
-
},
|
|
5776
|
+
}, Va = { class: "d-chip" }, qa = {
|
|
5755
5777
|
key: 0,
|
|
5756
5778
|
"data-qa": "dt-chip-icon",
|
|
5757
5779
|
class: "d-chip__icon"
|
|
5758
|
-
},
|
|
5780
|
+
}, Ka = {
|
|
5759
5781
|
key: 1,
|
|
5760
5782
|
"data-qa": "dt-chip-avatar"
|
|
5761
|
-
},
|
|
5762
|
-
function
|
|
5783
|
+
}, ja = ["id"];
|
|
5784
|
+
function Ga(e, s, t, o, n, i) {
|
|
5763
5785
|
const r = f("dt-icon"), h = f("dt-button");
|
|
5764
|
-
return a(), l("span",
|
|
5786
|
+
return a(), l("span", Va, [
|
|
5765
5787
|
(a(), S(X(t.interactive ? "button" : "span"), C({
|
|
5766
5788
|
id: t.id,
|
|
5767
5789
|
type: t.interactive && "button",
|
|
@@ -5771,9 +5793,9 @@ function qa(e, s, t, o, n, i) {
|
|
|
5771
5793
|
"aria-label": t.ariaLabel
|
|
5772
5794
|
}, M(i.chipListeners)), {
|
|
5773
5795
|
default: c(() => [
|
|
5774
|
-
n.hasSlotContent(e.$slots.icon) ? (a(), l("span",
|
|
5796
|
+
n.hasSlotContent(e.$slots.icon) ? (a(), l("span", qa, [
|
|
5775
5797
|
d(e.$slots, "icon")
|
|
5776
|
-
])) : n.hasSlotContent(e.$slots.avatar) ? (a(), l("span",
|
|
5798
|
+
])) : n.hasSlotContent(e.$slots.avatar) ? (a(), l("span", Ka, [
|
|
5777
5799
|
d(e.$slots, "avatar")
|
|
5778
5800
|
])) : p("", !0),
|
|
5779
5801
|
n.hasSlotContent(e.$slots.default) ? (a(), l("span", {
|
|
@@ -5783,7 +5805,7 @@ function qa(e, s, t, o, n, i) {
|
|
|
5783
5805
|
class: y(["d-truncate", "d-chip__text", t.contentClass])
|
|
5784
5806
|
}, [
|
|
5785
5807
|
d(e.$slots, "default")
|
|
5786
|
-
], 10,
|
|
5808
|
+
], 10, ja)) : p("", !0)
|
|
5787
5809
|
]),
|
|
5788
5810
|
_: 3
|
|
5789
5811
|
}, 16, ["id", "type", "class", "aria-labelledby", "aria-label"])),
|
|
@@ -5803,20 +5825,20 @@ function qa(e, s, t, o, n, i) {
|
|
|
5803
5825
|
}, 16, ["class", "aria-label"]))
|
|
5804
5826
|
]);
|
|
5805
5827
|
}
|
|
5806
|
-
const
|
|
5828
|
+
const rs = /* @__PURE__ */ v(Fa, [["render", Ga]]), qt = {
|
|
5807
5829
|
xs: "d-select--xs",
|
|
5808
5830
|
sm: "d-select--sm",
|
|
5809
5831
|
md: "",
|
|
5810
5832
|
lg: "d-select--lg",
|
|
5811
5833
|
xl: "d-select--xl"
|
|
5812
|
-
},
|
|
5834
|
+
}, Ua = {
|
|
5813
5835
|
error: "d-select__input--error",
|
|
5814
5836
|
warning: "d-select__input--warning",
|
|
5815
5837
|
success: "d-select__input--success"
|
|
5816
|
-
},
|
|
5838
|
+
}, 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
5839
|
name: "DtSelectMenu",
|
|
5818
5840
|
components: { DtValidationMessages: me },
|
|
5819
|
-
mixins: [
|
|
5841
|
+
mixins: [Xe],
|
|
5820
5842
|
inheritAttrs: !1,
|
|
5821
5843
|
props: {
|
|
5822
5844
|
/**
|
|
@@ -5844,7 +5866,7 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5844
5866
|
options: {
|
|
5845
5867
|
type: Array,
|
|
5846
5868
|
default: () => [],
|
|
5847
|
-
validator: (e) =>
|
|
5869
|
+
validator: (e) => Qa(e)
|
|
5848
5870
|
},
|
|
5849
5871
|
/**
|
|
5850
5872
|
* Controls the size of the select
|
|
@@ -5853,7 +5875,7 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5853
5875
|
size: {
|
|
5854
5876
|
type: String,
|
|
5855
5877
|
default: "md",
|
|
5856
|
-
validator: (e) => Object.keys(
|
|
5878
|
+
validator: (e) => Object.keys(qt).includes(e)
|
|
5857
5879
|
},
|
|
5858
5880
|
/**
|
|
5859
5881
|
* Used to customize the label container
|
|
@@ -5931,10 +5953,10 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5931
5953
|
],
|
|
5932
5954
|
data() {
|
|
5933
5955
|
return {
|
|
5934
|
-
LABEL_SIZE_MODIFIERS:
|
|
5935
|
-
DESCRIPTION_SIZE_MODIFIERS:
|
|
5936
|
-
SELECT_SIZE_MODIFIERS:
|
|
5937
|
-
SELECT_STATE_MODIFIERS:
|
|
5956
|
+
LABEL_SIZE_MODIFIERS: Fs,
|
|
5957
|
+
DESCRIPTION_SIZE_MODIFIERS: Vs,
|
|
5958
|
+
SELECT_SIZE_MODIFIERS: qt,
|
|
5959
|
+
SELECT_STATE_MODIFIERS: Ua,
|
|
5938
5960
|
hasSlotContent: $
|
|
5939
5961
|
};
|
|
5940
5962
|
},
|
|
@@ -5952,7 +5974,7 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5952
5974
|
};
|
|
5953
5975
|
},
|
|
5954
5976
|
state() {
|
|
5955
|
-
return
|
|
5977
|
+
return We(this.formattedMessages);
|
|
5956
5978
|
},
|
|
5957
5979
|
selectKey() {
|
|
5958
5980
|
return q();
|
|
@@ -5982,8 +6004,8 @@ const as = /* @__PURE__ */ v(za, [["render", qa]]), Ht = {
|
|
|
5982
6004
|
((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
6005
|
}
|
|
5984
6006
|
}
|
|
5985
|
-
},
|
|
5986
|
-
function
|
|
6007
|
+
}, Ja = ["aria-details"], eo = ["id"], to = ["disabled"], so = ["value"];
|
|
6008
|
+
function io(e, s, t, o, n, i) {
|
|
5987
6009
|
const r = f("dt-validation-messages");
|
|
5988
6010
|
return a(), l("div", null, [
|
|
5989
6011
|
_("label", null, [
|
|
@@ -5999,7 +6021,7 @@ function eo(e, s, t, o, n, i) {
|
|
|
5999
6021
|
d(e.$slots, "label", {}, () => [
|
|
6000
6022
|
P(I(t.label), 1)
|
|
6001
6023
|
])
|
|
6002
|
-
], 16,
|
|
6024
|
+
], 16, Ja)) : p("", !0),
|
|
6003
6025
|
n.hasSlotContent(e.$slots.description) || t.description ? (a(), l("div", C({
|
|
6004
6026
|
key: 1,
|
|
6005
6027
|
id: i.descriptionKey,
|
|
@@ -6012,7 +6034,7 @@ function eo(e, s, t, o, n, i) {
|
|
|
6012
6034
|
d(e.$slots, "description", {}, () => [
|
|
6013
6035
|
P(I(t.description), 1)
|
|
6014
6036
|
])
|
|
6015
|
-
], 16,
|
|
6037
|
+
], 16, eo)) : p("", !0),
|
|
6016
6038
|
_("div", {
|
|
6017
6039
|
class: y([
|
|
6018
6040
|
"d-select",
|
|
@@ -6036,9 +6058,9 @@ function eo(e, s, t, o, n, i) {
|
|
|
6036
6058
|
key: i.getOptionKey(h.value),
|
|
6037
6059
|
value: h.value,
|
|
6038
6060
|
class: t.optionClass
|
|
6039
|
-
}, t.optionChildProps), I(h.label), 17,
|
|
6061
|
+
}, t.optionChildProps), I(h.label), 17, so))), 128))
|
|
6040
6062
|
])
|
|
6041
|
-
], 16,
|
|
6063
|
+
], 16, to)
|
|
6042
6064
|
], 2)
|
|
6043
6065
|
]),
|
|
6044
6066
|
m(r, C({
|
|
@@ -6048,12 +6070,12 @@ function eo(e, s, t, o, n, i) {
|
|
|
6048
6070
|
}, e.messagesChildProps, { "data-qa": "dt-select-messages" }), null, 16, ["validation-messages", "show-messages", "class"])
|
|
6049
6071
|
]);
|
|
6050
6072
|
}
|
|
6051
|
-
const
|
|
6073
|
+
const ud = /* @__PURE__ */ v(Xa, [["render", io]]), no = ["status", "alert"], Kt = 6e3, ao = {
|
|
6052
6074
|
name: "DtToast",
|
|
6053
6075
|
components: {
|
|
6054
|
-
DtNoticeIcon:
|
|
6055
|
-
DtNoticeContent:
|
|
6056
|
-
DtNoticeAction:
|
|
6076
|
+
DtNoticeIcon: it,
|
|
6077
|
+
DtNoticeContent: nt,
|
|
6078
|
+
DtNoticeAction: at
|
|
6057
6079
|
},
|
|
6058
6080
|
mixins: [ie],
|
|
6059
6081
|
props: {
|
|
@@ -6099,7 +6121,7 @@ const rd = /* @__PURE__ */ v(Za, [["render", eo]]), to = ["status", "alert"], Vt
|
|
|
6099
6121
|
role: {
|
|
6100
6122
|
type: String,
|
|
6101
6123
|
default: "status",
|
|
6102
|
-
validator: (e) =>
|
|
6124
|
+
validator: (e) => no.includes(e)
|
|
6103
6125
|
},
|
|
6104
6126
|
/**
|
|
6105
6127
|
* Severity level of the toast, sets the icon and background
|
|
@@ -6152,7 +6174,7 @@ const rd = /* @__PURE__ */ v(Za, [["render", eo]]), to = ["status", "alert"], Vt
|
|
|
6152
6174
|
duration: {
|
|
6153
6175
|
type: Number,
|
|
6154
6176
|
default: null,
|
|
6155
|
-
validator: (e) => e >=
|
|
6177
|
+
validator: (e) => e >= Kt
|
|
6156
6178
|
}
|
|
6157
6179
|
},
|
|
6158
6180
|
emits: [
|
|
@@ -6179,7 +6201,7 @@ const rd = /* @__PURE__ */ v(Za, [["render", eo]]), to = ["status", "alert"], Vt
|
|
|
6179
6201
|
data() {
|
|
6180
6202
|
return {
|
|
6181
6203
|
isShown: !1,
|
|
6182
|
-
minDuration:
|
|
6204
|
+
minDuration: Kt
|
|
6183
6205
|
};
|
|
6184
6206
|
},
|
|
6185
6207
|
computed: {
|
|
@@ -6217,8 +6239,8 @@ const rd = /* @__PURE__ */ v(Za, [["render", eo]]), to = ["status", "alert"], Vt
|
|
|
6217
6239
|
}, this.duration));
|
|
6218
6240
|
}
|
|
6219
6241
|
}
|
|
6220
|
-
},
|
|
6221
|
-
function
|
|
6242
|
+
}, oo = ["aria-hidden"], lo = { class: "d-toast__dialog" };
|
|
6243
|
+
function ro(e, s, t, o, n, i) {
|
|
6222
6244
|
const r = f("dt-notice-icon"), h = f("dt-notice-content"), u = f("dt-notice-action");
|
|
6223
6245
|
return n.isShown ? (a(), l("div", {
|
|
6224
6246
|
key: 0,
|
|
@@ -6230,7 +6252,7 @@ function ao(e, s, t, o, n, i) {
|
|
|
6230
6252
|
"data-qa": "dt-toast",
|
|
6231
6253
|
"aria-hidden": (!n.isShown).toString()
|
|
6232
6254
|
}, [
|
|
6233
|
-
_("div",
|
|
6255
|
+
_("div", lo, [
|
|
6234
6256
|
m(r, { kind: t.kind }, {
|
|
6235
6257
|
default: c(() => [
|
|
6236
6258
|
d(e.$slots, "icon")
|
|
@@ -6266,12 +6288,12 @@ function ao(e, s, t, o, n, i) {
|
|
|
6266
6288
|
_: 3
|
|
6267
6289
|
}, 8, ["hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label", "onClose"])
|
|
6268
6290
|
])
|
|
6269
|
-
], 10,
|
|
6291
|
+
], 10, oo)) : p("", !0);
|
|
6270
6292
|
}
|
|
6271
|
-
const
|
|
6293
|
+
const hd = /* @__PURE__ */ v(ao, [["render", ro]]), jt = {
|
|
6272
6294
|
sm: "d-toggle--small",
|
|
6273
6295
|
md: ""
|
|
6274
|
-
},
|
|
6296
|
+
}, co = [!1, !0, "mixed"], uo = {
|
|
6275
6297
|
name: "DtToggle",
|
|
6276
6298
|
inheritAttrs: !1,
|
|
6277
6299
|
model: {
|
|
@@ -6304,7 +6326,7 @@ const dd = /* @__PURE__ */ v(so, [["render", ao]]), Ft = {
|
|
|
6304
6326
|
checked: {
|
|
6305
6327
|
type: [Boolean, String],
|
|
6306
6328
|
default: !1,
|
|
6307
|
-
validator: (e) =>
|
|
6329
|
+
validator: (e) => co.includes(e)
|
|
6308
6330
|
},
|
|
6309
6331
|
/**
|
|
6310
6332
|
* Whether the component toggles on click. If you set this to false it means you will handle the toggling manually
|
|
@@ -6322,7 +6344,7 @@ const dd = /* @__PURE__ */ v(so, [["render", ao]]), Ft = {
|
|
|
6322
6344
|
size: {
|
|
6323
6345
|
type: String,
|
|
6324
6346
|
default: "md",
|
|
6325
|
-
validator: (e) => Object.keys(
|
|
6347
|
+
validator: (e) => Object.keys(jt).includes(e)
|
|
6326
6348
|
},
|
|
6327
6349
|
/**
|
|
6328
6350
|
* Shows the icon
|
|
@@ -6379,7 +6401,7 @@ const dd = /* @__PURE__ */ v(so, [["render", ao]]), Ft = {
|
|
|
6379
6401
|
toggleClasses() {
|
|
6380
6402
|
return [
|
|
6381
6403
|
"d-toggle",
|
|
6382
|
-
|
|
6404
|
+
jt[this.size],
|
|
6383
6405
|
{
|
|
6384
6406
|
"d-toggle--checked": this.internalChecked === !0,
|
|
6385
6407
|
"d-toggle--disabled": this.disabled,
|
|
@@ -6413,19 +6435,19 @@ const dd = /* @__PURE__ */ v(so, [["render", ao]]), Ft = {
|
|
|
6413
6435
|
);
|
|
6414
6436
|
}
|
|
6415
6437
|
}
|
|
6416
|
-
},
|
|
6438
|
+
}, ho = { class: "d-d-flex d-ai-center" }, fo = ["for"], po = ["id", "role", "aria-checked", "disabled", "aria-disabled"], mo = {
|
|
6417
6439
|
key: 0,
|
|
6418
6440
|
class: "d-toggle__inner"
|
|
6419
6441
|
};
|
|
6420
|
-
function
|
|
6421
|
-
return a(), l("div",
|
|
6442
|
+
function go(e, s, t, o, n, i) {
|
|
6443
|
+
return a(), l("div", ho, [
|
|
6422
6444
|
n.hasSlotContent(e.$slots.default) ? (a(), l("label", C({
|
|
6423
6445
|
key: 0,
|
|
6424
6446
|
class: t.labelClass,
|
|
6425
6447
|
for: t.id
|
|
6426
6448
|
}, t.labelChildProps, { "data-qa": "toggle-label" }), [
|
|
6427
6449
|
d(e.$slots, "default")
|
|
6428
|
-
], 16,
|
|
6450
|
+
], 16, fo)) : p("", !0),
|
|
6429
6451
|
_("button", C({
|
|
6430
6452
|
id: t.id,
|
|
6431
6453
|
role: i.toggleRole,
|
|
@@ -6435,20 +6457,20 @@ function fo(e, s, t, o, n, i) {
|
|
|
6435
6457
|
"aria-disabled": t.disabled.toString(),
|
|
6436
6458
|
class: i.toggleClasses
|
|
6437
6459
|
}, i.inputListeners), [
|
|
6438
|
-
t.showIcon ? (a(), l("span",
|
|
6439
|
-
], 16,
|
|
6460
|
+
t.showIcon ? (a(), l("span", mo)) : p("", !0)
|
|
6461
|
+
], 16, po)
|
|
6440
6462
|
]);
|
|
6441
6463
|
}
|
|
6442
|
-
const
|
|
6464
|
+
const fd = /* @__PURE__ */ v(uo, [["render", go]]), ye = {
|
|
6443
6465
|
"{win}": "layout-grid",
|
|
6444
6466
|
"{arrow-right}": "arrow-right",
|
|
6445
6467
|
"{arrow-left}": "arrow-left",
|
|
6446
6468
|
"{arrow-up}": "arrow-up",
|
|
6447
6469
|
"{arrow-down}": "arrow-down",
|
|
6448
6470
|
"{cmd}": "command"
|
|
6449
|
-
},
|
|
6471
|
+
}, _o = {
|
|
6450
6472
|
"{plus}": "plus"
|
|
6451
|
-
},
|
|
6473
|
+
}, pd = Object.keys(ye), bo = {
|
|
6452
6474
|
name: "DtKeyboardShortcut",
|
|
6453
6475
|
components: {
|
|
6454
6476
|
DtIcon: x
|
|
@@ -6486,7 +6508,7 @@ const cd = /* @__PURE__ */ v(lo, [["render", fo]]), ye = {
|
|
|
6486
6508
|
},
|
|
6487
6509
|
computed: {
|
|
6488
6510
|
icons() {
|
|
6489
|
-
return { ...ye, ...
|
|
6511
|
+
return { ...ye, ..._o };
|
|
6490
6512
|
},
|
|
6491
6513
|
shortcutWithSeparator() {
|
|
6492
6514
|
return this.shortcut.replace(this.separator, "{plus}");
|
|
@@ -6500,11 +6522,11 @@ const cd = /* @__PURE__ */ v(lo, [["render", fo]]), ye = {
|
|
|
6500
6522
|
return this.formattedShortcut.split(s).filter(Boolean);
|
|
6501
6523
|
}
|
|
6502
6524
|
}
|
|
6503
|
-
},
|
|
6525
|
+
}, yo = {
|
|
6504
6526
|
key: 0,
|
|
6505
6527
|
class: "sr-only"
|
|
6506
|
-
},
|
|
6507
|
-
function
|
|
6528
|
+
}, vo = ["innerHTML"];
|
|
6529
|
+
function So(e, s, t, o, n, i) {
|
|
6508
6530
|
const r = f("dt-icon");
|
|
6509
6531
|
return a(), l("kbd", {
|
|
6510
6532
|
class: y([
|
|
@@ -6520,7 +6542,7 @@ function bo(e, s, t, o, n, i) {
|
|
|
6520
6542
|
t.inverted ? "d-bc-moderate-inverted" : "d-bc-default"
|
|
6521
6543
|
])
|
|
6522
6544
|
}, [
|
|
6523
|
-
t.screenReaderText ? (a(), l("span",
|
|
6545
|
+
t.screenReaderText ? (a(), l("span", yo, I(t.screenReaderText), 1)) : p("", !0),
|
|
6524
6546
|
(a(!0), l(Y, null, ee(i.formattedShortcutSplit, (h, u) => (a(), l(Y, null, [
|
|
6525
6547
|
i.icons[h] ? (a(), S(r, {
|
|
6526
6548
|
key: `${u}-${h}`,
|
|
@@ -6539,14 +6561,14 @@ function bo(e, s, t, o, n, i) {
|
|
|
6539
6561
|
"d-mr2"
|
|
6540
6562
|
]),
|
|
6541
6563
|
innerHTML: h
|
|
6542
|
-
}, null, 10,
|
|
6564
|
+
}, null, 10, vo))
|
|
6543
6565
|
], 64))), 256))
|
|
6544
6566
|
], 2);
|
|
6545
6567
|
}
|
|
6546
|
-
const
|
|
6568
|
+
const md = /* @__PURE__ */ v(bo, [["render", So]]), ds = {
|
|
6547
6569
|
LEFT: "left",
|
|
6548
6570
|
RIGHT: "right"
|
|
6549
|
-
},
|
|
6571
|
+
}, Co = ["sm", "md", "lg", null], Io = {
|
|
6550
6572
|
name: "DtRootLayoutBody",
|
|
6551
6573
|
props: {
|
|
6552
6574
|
/**
|
|
@@ -6605,12 +6627,12 @@ const hd = /* @__PURE__ */ v(mo, [["render", bo]]), os = {
|
|
|
6605
6627
|
bodyClasses() {
|
|
6606
6628
|
return [
|
|
6607
6629
|
this.bodyClass,
|
|
6608
|
-
{ "d-root-layout__body--invert": this.sidebarPosition ===
|
|
6630
|
+
{ "d-root-layout__body--invert": this.sidebarPosition === ds.RIGHT }
|
|
6609
6631
|
];
|
|
6610
6632
|
}
|
|
6611
6633
|
}
|
|
6612
6634
|
};
|
|
6613
|
-
function
|
|
6635
|
+
function wo(e, s, t, o, n, i) {
|
|
6614
6636
|
return a(), l("div", {
|
|
6615
6637
|
ref: "root-layout-body",
|
|
6616
6638
|
class: y(["d-root-layout__body", i.bodyClasses]),
|
|
@@ -6636,10 +6658,10 @@ function So(e, s, t, o, n, i) {
|
|
|
6636
6658
|
], 2)) : p("", !0)
|
|
6637
6659
|
], 2);
|
|
6638
6660
|
}
|
|
6639
|
-
const
|
|
6661
|
+
const Eo = /* @__PURE__ */ v(Io, [["render", wo]]), ko = {
|
|
6640
6662
|
name: "DtRootLayout",
|
|
6641
6663
|
components: {
|
|
6642
|
-
DtRootLayoutBody:
|
|
6664
|
+
DtRootLayoutBody: Eo
|
|
6643
6665
|
},
|
|
6644
6666
|
props: {
|
|
6645
6667
|
/**
|
|
@@ -6711,7 +6733,7 @@ const Co = /* @__PURE__ */ v(vo, [["render", So]]), Io = {
|
|
|
6711
6733
|
sidebarPosition: {
|
|
6712
6734
|
type: String,
|
|
6713
6735
|
default: "left",
|
|
6714
|
-
validator: (e) => Object.values(
|
|
6736
|
+
validator: (e) => Object.values(ds).includes(e)
|
|
6715
6737
|
},
|
|
6716
6738
|
/**
|
|
6717
6739
|
* Additional class name for the footer element
|
|
@@ -6735,7 +6757,7 @@ const Co = /* @__PURE__ */ v(vo, [["render", So]]), Io = {
|
|
|
6735
6757
|
responsiveBreakpoint: {
|
|
6736
6758
|
type: String,
|
|
6737
6759
|
default: null,
|
|
6738
|
-
validator: (e) =>
|
|
6760
|
+
validator: (e) => Co.includes(e)
|
|
6739
6761
|
}
|
|
6740
6762
|
},
|
|
6741
6763
|
data() {
|
|
@@ -6750,7 +6772,7 @@ const Co = /* @__PURE__ */ v(vo, [["render", So]]), Io = {
|
|
|
6750
6772
|
}
|
|
6751
6773
|
}
|
|
6752
6774
|
};
|
|
6753
|
-
function
|
|
6775
|
+
function Oo(e, s, t, o, n, i) {
|
|
6754
6776
|
const r = f("dt-root-layout-body");
|
|
6755
6777
|
return a(), l("div", {
|
|
6756
6778
|
class: y(["root-layout d-root-layout", { "d-root-layout--fixed": t.fixed }, i.responsiveClass]),
|
|
@@ -6773,7 +6795,7 @@ function wo(e, s, t, o, n, i) {
|
|
|
6773
6795
|
"header-height": n.hasSlotContent(e.$slots.header) ? t.headerHeight : "0px",
|
|
6774
6796
|
"footer-height": n.hasSlotContent(e.$slots.footer) ? t.footerHeight : "0px",
|
|
6775
6797
|
fixed: t.fixed
|
|
6776
|
-
},
|
|
6798
|
+
}, Ee({ _: 2 }, [
|
|
6777
6799
|
n.hasSlotContent(e.$slots.sidebar) ? {
|
|
6778
6800
|
name: "sidebar",
|
|
6779
6801
|
fn: c(() => [
|
|
@@ -6799,40 +6821,40 @@ function wo(e, s, t, o, n, i) {
|
|
|
6799
6821
|
], 6)) : p("", !0)
|
|
6800
6822
|
], 2);
|
|
6801
6823
|
}
|
|
6802
|
-
const
|
|
6824
|
+
const gd = /* @__PURE__ */ v(ko, [["render", Oo]]), ue = {
|
|
6803
6825
|
default: "column",
|
|
6804
6826
|
column: "column",
|
|
6805
6827
|
row: "row",
|
|
6806
6828
|
"row-reverse": "row-reverse",
|
|
6807
6829
|
"column-reverse": "column-reverse"
|
|
6808
|
-
},
|
|
6809
|
-
function
|
|
6830
|
+
}, cs = ["sm", "md", "lg", "xl"], lt = ["0", "100", "200", "300", "400", "500", "600"];
|
|
6831
|
+
function Gt(e) {
|
|
6810
6832
|
return e === ue.default;
|
|
6811
6833
|
}
|
|
6812
|
-
function
|
|
6834
|
+
function Ut(e) {
|
|
6813
6835
|
if (Ie(e) === "string")
|
|
6814
|
-
return
|
|
6836
|
+
return Gt(e) ? null : ue[e];
|
|
6815
6837
|
if (Ie(e) === "object") {
|
|
6816
6838
|
const { default: s } = e;
|
|
6817
|
-
return
|
|
6839
|
+
return Gt(s) ? null : ue[s];
|
|
6818
6840
|
} else
|
|
6819
6841
|
return null;
|
|
6820
6842
|
}
|
|
6821
6843
|
function Ie(e) {
|
|
6822
6844
|
return typeof e;
|
|
6823
6845
|
}
|
|
6824
|
-
function
|
|
6825
|
-
return
|
|
6846
|
+
function Lo(e) {
|
|
6847
|
+
return Ut(e) ? `d-stack--${ue[Ut(e)]}` : null;
|
|
6826
6848
|
}
|
|
6827
|
-
function
|
|
6849
|
+
function To(e) {
|
|
6828
6850
|
return Ie(e) === "object" ? [
|
|
6829
|
-
...
|
|
6851
|
+
...cs.map((s) => e[s] ? `d-stack--${s}--${e[s]}` : null)
|
|
6830
6852
|
] : null;
|
|
6831
6853
|
}
|
|
6832
|
-
function
|
|
6833
|
-
return
|
|
6854
|
+
function Ao(e) {
|
|
6855
|
+
return lt.includes(e) ? `d-stack--gap-${e}` : null;
|
|
6834
6856
|
}
|
|
6835
|
-
function
|
|
6857
|
+
function Do(e) {
|
|
6836
6858
|
if (Ie(e) === "string")
|
|
6837
6859
|
return Object.keys(ue).includes(e);
|
|
6838
6860
|
if (Ie(e) === "object") {
|
|
@@ -6841,10 +6863,10 @@ function Lo(e) {
|
|
|
6841
6863
|
} else
|
|
6842
6864
|
return null;
|
|
6843
6865
|
}
|
|
6844
|
-
function
|
|
6845
|
-
return
|
|
6866
|
+
function Po(e) {
|
|
6867
|
+
return lt.includes(e);
|
|
6846
6868
|
}
|
|
6847
|
-
const
|
|
6869
|
+
const xo = {
|
|
6848
6870
|
name: "DtStack",
|
|
6849
6871
|
props: {
|
|
6850
6872
|
/**
|
|
@@ -6855,7 +6877,7 @@ const Ao = {
|
|
|
6855
6877
|
direction: {
|
|
6856
6878
|
type: [String, Object],
|
|
6857
6879
|
default: "column",
|
|
6858
|
-
validator: (e) =>
|
|
6880
|
+
validator: (e) => Do(e)
|
|
6859
6881
|
},
|
|
6860
6882
|
/**
|
|
6861
6883
|
* Set this prop to render stack as a specific HTML element.
|
|
@@ -6871,29 +6893,29 @@ const Ao = {
|
|
|
6871
6893
|
gap: {
|
|
6872
6894
|
type: String,
|
|
6873
6895
|
default: "0",
|
|
6874
|
-
validator: (e) =>
|
|
6896
|
+
validator: (e) => Po(e)
|
|
6875
6897
|
}
|
|
6876
6898
|
},
|
|
6877
6899
|
data() {
|
|
6878
6900
|
return {
|
|
6879
6901
|
DT_STACK_DIRECTION: ue,
|
|
6880
|
-
DT_STACK_GAP:
|
|
6881
|
-
DT_STACK_RESPONSIVE_BREAKPOINTS:
|
|
6902
|
+
DT_STACK_GAP: lt,
|
|
6903
|
+
DT_STACK_RESPONSIVE_BREAKPOINTS: cs
|
|
6882
6904
|
};
|
|
6883
6905
|
},
|
|
6884
6906
|
computed: {
|
|
6885
6907
|
stackGap() {
|
|
6886
|
-
return
|
|
6908
|
+
return Ao(this.gap);
|
|
6887
6909
|
},
|
|
6888
6910
|
defaultDirection() {
|
|
6889
|
-
return
|
|
6911
|
+
return Lo(this.direction);
|
|
6890
6912
|
},
|
|
6891
6913
|
stackResponsive() {
|
|
6892
|
-
return
|
|
6914
|
+
return To(this.direction);
|
|
6893
6915
|
}
|
|
6894
6916
|
}
|
|
6895
6917
|
};
|
|
6896
|
-
function
|
|
6918
|
+
function Ro(e, s, t, o, n, i) {
|
|
6897
6919
|
return a(), S(X(t.as), {
|
|
6898
6920
|
class: y([
|
|
6899
6921
|
"d-stack",
|
|
@@ -6908,8 +6930,8 @@ function Do(e, s, t, o, n, i) {
|
|
|
6908
6930
|
_: 3
|
|
6909
6931
|
}, 8, ["class"]);
|
|
6910
6932
|
}
|
|
6911
|
-
const
|
|
6912
|
-
const
|
|
6933
|
+
const _d = /* @__PURE__ */ v(xo, [["render", Ro]]);
|
|
6934
|
+
const us = {
|
|
6913
6935
|
__name: "core_scroller",
|
|
6914
6936
|
props: {
|
|
6915
6937
|
/**
|
|
@@ -7003,50 +7025,50 @@ const rs = {
|
|
|
7003
7025
|
},
|
|
7004
7026
|
emits: ["user-position"],
|
|
7005
7027
|
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
|
|
7028
|
+
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");
|
|
7029
|
+
let b = 0, L = 0, B = !1, de = 0, he = null, fe = null, Fe = 0, ps = 0;
|
|
7030
|
+
const Ve = Re(() => {
|
|
7009
7031
|
if (o.itemSize === null) {
|
|
7010
7032
|
const O = {
|
|
7011
7033
|
"-1": { accumulator: 0 }
|
|
7012
|
-
}, A = o.items,
|
|
7013
|
-
let
|
|
7034
|
+
}, A = o.items, E = o.sizeField, Q = o.minItemSize;
|
|
7035
|
+
let V = 1e4, ne = 0, D;
|
|
7014
7036
|
for (let j = 0, ge = A.length; j < ge; j++)
|
|
7015
|
-
D = A[j][
|
|
7016
|
-
return fe =
|
|
7037
|
+
D = A[j][E] || Q, D < V && (V = D), ne += D, O[j] = { accumulator: ne, size: D };
|
|
7038
|
+
return fe = V, O;
|
|
7017
7039
|
}
|
|
7018
7040
|
return [];
|
|
7019
|
-
}),
|
|
7041
|
+
}), ms = Re(() => o.items.length && typeof o.items[0] != "object"), gs = Re(() => {
|
|
7020
7042
|
const O = {};
|
|
7021
|
-
for (let A = 0,
|
|
7043
|
+
for (let A = 0, E = o.items.length; A < E; A++)
|
|
7022
7044
|
O[o.items[A][o.keyField]] = A;
|
|
7023
7045
|
return O;
|
|
7024
7046
|
});
|
|
7025
|
-
|
|
7047
|
+
Zt(Ve, () => {
|
|
7026
7048
|
Te(!1);
|
|
7027
|
-
}, { deep: !0 }),
|
|
7028
|
-
|
|
7049
|
+
}, { deep: !0 }), ws(() => {
|
|
7050
|
+
Es(() => {
|
|
7029
7051
|
Te(!0), u.value = !0;
|
|
7030
7052
|
});
|
|
7031
7053
|
});
|
|
7032
|
-
const
|
|
7033
|
-
const ne =
|
|
7034
|
-
id:
|
|
7054
|
+
const mt = (O, A, E, Q, V) => {
|
|
7055
|
+
const ne = ks({
|
|
7056
|
+
id: ps++,
|
|
7035
7057
|
index: A,
|
|
7036
7058
|
used: !0,
|
|
7037
7059
|
key: Q,
|
|
7038
|
-
type:
|
|
7039
|
-
}), D =
|
|
7040
|
-
item:
|
|
7060
|
+
type: V
|
|
7061
|
+
}), D = Os({
|
|
7062
|
+
item: E,
|
|
7041
7063
|
position: 0,
|
|
7042
7064
|
nr: ne
|
|
7043
7065
|
});
|
|
7044
7066
|
return O.value.push(D), D;
|
|
7045
7067
|
}, qe = (O, A = !1) => {
|
|
7046
|
-
const
|
|
7047
|
-
let
|
|
7048
|
-
|
|
7049
|
-
},
|
|
7068
|
+
const E = i, Q = O.nr.type;
|
|
7069
|
+
let V = E.get(Q);
|
|
7070
|
+
V || (V = [], E.set(Q, V)), V.push(O), A || (O.nr.used = !1, O.position = -9999);
|
|
7071
|
+
}, _s = () => {
|
|
7050
7072
|
const O = o.direction === "vertical";
|
|
7051
7073
|
let A;
|
|
7052
7074
|
return O ? A = {
|
|
@@ -7056,91 +7078,91 @@ const rs = {
|
|
|
7056
7078
|
start: g.value.scrollLeft,
|
|
7057
7079
|
end: g.value.scrollLeft + g.value.clientWidth
|
|
7058
7080
|
}, A;
|
|
7059
|
-
},
|
|
7081
|
+
}, bs = () => {
|
|
7060
7082
|
throw setTimeout(() => {
|
|
7061
7083
|
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
7084
|
}), new Error("Rendered items limit reached");
|
|
7063
|
-
},
|
|
7085
|
+
}, ys = () => {
|
|
7064
7086
|
r.value.sort((O, A) => O.nr.index - A.nr.index);
|
|
7065
7087
|
}, Te = (O, A = !1) => {
|
|
7066
|
-
var
|
|
7067
|
-
const
|
|
7088
|
+
var bt, yt, vt, St, Ct, It, wt, Et;
|
|
7089
|
+
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
7090
|
let G, N, De, te, ae;
|
|
7069
7091
|
if (!D)
|
|
7070
7092
|
G = N = te = ae = De = 0;
|
|
7071
7093
|
else {
|
|
7072
|
-
const T =
|
|
7094
|
+
const T = _s();
|
|
7073
7095
|
if (A) {
|
|
7074
7096
|
let R = T.start - de.value;
|
|
7075
|
-
if (R < 0 && (R = -R),
|
|
7097
|
+
if (R < 0 && (R = -R), E === null && R < Q.value || R < E)
|
|
7076
7098
|
return {
|
|
7077
7099
|
continuous: !0
|
|
7078
7100
|
};
|
|
7079
7101
|
}
|
|
7080
7102
|
de = T.start;
|
|
7081
7103
|
const W = o.buffer;
|
|
7082
|
-
if (T.start -= W, T.end += W,
|
|
7083
|
-
let R, _e = 0,
|
|
7104
|
+
if (T.start -= W, T.end += W, E === null) {
|
|
7105
|
+
let R, _e = 0, kt = D - 1, Z = ~~(D / 2), Ot;
|
|
7084
7106
|
do
|
|
7085
|
-
|
|
7086
|
-
while (Z !==
|
|
7087
|
-
for (Z < 0 && (Z = 0), G = Z, De = (
|
|
7107
|
+
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);
|
|
7108
|
+
while (Z !== Ot);
|
|
7109
|
+
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
7110
|
;
|
|
7089
|
-
for (N === -1 ? N = ne.length - 1 : (N++, N > D && (N = D)), te = b; te < D && ((
|
|
7111
|
+
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
7112
|
;
|
|
7091
|
-
for (ae = te; ae < D && ((
|
|
7113
|
+
for (ae = te; ae < D && ((It = j[ae]) == null ? void 0 : It.accumulator) < T.end; ae++)
|
|
7092
7114
|
;
|
|
7093
7115
|
} else {
|
|
7094
|
-
G = ~~(T.start /
|
|
7116
|
+
G = ~~(T.start / E);
|
|
7095
7117
|
const R = G % 1;
|
|
7096
|
-
G -= R, N = Math.ceil(T.end /
|
|
7118
|
+
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
7119
|
}
|
|
7098
7120
|
}
|
|
7099
|
-
N - G > 1e3 &&
|
|
7100
|
-
let
|
|
7121
|
+
N - G > 1e3 && bs(), Fe = De;
|
|
7122
|
+
let k;
|
|
7101
7123
|
const Pe = G <= L && N >= G;
|
|
7102
7124
|
if (Pe)
|
|
7103
7125
|
for (let T = 0, W = Ae.value.length; T < W; T++)
|
|
7104
|
-
|
|
7105
|
-
const
|
|
7126
|
+
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));
|
|
7127
|
+
const _t = Pe ? null : /* @__PURE__ */ new Map();
|
|
7106
7128
|
let se, oe, xe;
|
|
7107
7129
|
for (let T = G; T < N; T++) {
|
|
7108
7130
|
se = ne[T];
|
|
7109
|
-
const W =
|
|
7131
|
+
const W = V ? se == null ? void 0 : se[V] : se;
|
|
7110
7132
|
if (W == null)
|
|
7111
|
-
throw new Error(`Key is ${W} on item (keyField is '${
|
|
7112
|
-
if (
|
|
7113
|
-
|
|
7133
|
+
throw new Error(`Key is ${W} on item (keyField is '${V}')`);
|
|
7134
|
+
if (k = ge.get(W), !E && !((wt = j[T]) != null && wt.size)) {
|
|
7135
|
+
k && qe(k);
|
|
7114
7136
|
continue;
|
|
7115
7137
|
}
|
|
7116
7138
|
oe = se.type;
|
|
7117
|
-
let R =
|
|
7118
|
-
if (!
|
|
7119
|
-
Pe ? R && R.length ?
|
|
7120
|
-
else if (!
|
|
7121
|
-
const _e = R.indexOf(
|
|
7139
|
+
let R = gt.get(oe);
|
|
7140
|
+
if (!k)
|
|
7141
|
+
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);
|
|
7142
|
+
else if (!k.nr.used && (k.nr.used = !0, R)) {
|
|
7143
|
+
const _e = R.indexOf(k);
|
|
7122
7144
|
_e !== -1 && R.splice(_e, 1);
|
|
7123
7145
|
}
|
|
7124
|
-
|
|
7146
|
+
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
7147
|
}
|
|
7126
|
-
return b = G, L = N, clearTimeout(he), he = setTimeout(
|
|
7148
|
+
return b = G, L = N, clearTimeout(he), he = setTimeout(ys, 300), {
|
|
7127
7149
|
continuous: Pe
|
|
7128
7150
|
};
|
|
7129
|
-
},
|
|
7130
|
-
const A = o.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" },
|
|
7131
|
-
|
|
7132
|
-
},
|
|
7133
|
-
var
|
|
7151
|
+
}, vs = (O) => {
|
|
7152
|
+
const A = o.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" }, E = g.value, Q = A.scroll;
|
|
7153
|
+
E[Q] = O;
|
|
7154
|
+
}, Ss = (O) => {
|
|
7155
|
+
var E;
|
|
7134
7156
|
let A;
|
|
7135
|
-
o.itemSize === null ? A = O > 0 ? (
|
|
7136
|
-
},
|
|
7157
|
+
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);
|
|
7158
|
+
}, Cs = () => {
|
|
7137
7159
|
const O = g.value;
|
|
7138
7160
|
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
7161
|
B = !1, Te(!1, !0);
|
|
7140
7162
|
}));
|
|
7141
7163
|
};
|
|
7142
7164
|
return s({
|
|
7143
|
-
scrollToItem:
|
|
7165
|
+
scrollToItem: Ss,
|
|
7144
7166
|
_updateVisibleItems: Te
|
|
7145
7167
|
}), (O, A) => (a(), l("div", {
|
|
7146
7168
|
ref_key: "scroller",
|
|
@@ -7149,30 +7171,30 @@ const rs = {
|
|
|
7149
7171
|
ready: u.value,
|
|
7150
7172
|
[`direction-${e.direction}`]: !0
|
|
7151
7173
|
}]),
|
|
7152
|
-
onScrollPassive:
|
|
7174
|
+
onScrollPassive: Cs
|
|
7153
7175
|
}, [
|
|
7154
7176
|
(a(), S(X(e.listTag), {
|
|
7155
7177
|
ref: "wrapper",
|
|
7156
|
-
style: re({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: `${
|
|
7178
|
+
style: re({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: `${Yt(Fe)}px` }),
|
|
7157
7179
|
class: y(["vue-recycle-scroller__item-wrapper", e.listClass])
|
|
7158
7180
|
}, {
|
|
7159
7181
|
default: c(() => [
|
|
7160
|
-
(a(!0), l(Y, null, ee(r.value, (
|
|
7161
|
-
key:
|
|
7182
|
+
(a(!0), l(Y, null, ee(r.value, (E) => (a(), S(X(e.itemTag), C({
|
|
7183
|
+
key: E.nr.id,
|
|
7162
7184
|
style: u.value ? {
|
|
7163
|
-
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${
|
|
7185
|
+
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${E.position}px) translate${e.direction === "vertical" ? "X" : "Y"}(${E.offset}px)`,
|
|
7164
7186
|
width: void 0,
|
|
7165
7187
|
height: void 0
|
|
7166
7188
|
} : null,
|
|
7167
7189
|
class: ["vue-recycle-scroller__item-view", [
|
|
7168
7190
|
e.itemClass,
|
|
7169
7191
|
{
|
|
7170
|
-
hover: !e.skipHover && h.value ===
|
|
7192
|
+
hover: !e.skipHover && h.value === E.nr.key
|
|
7171
7193
|
}
|
|
7172
7194
|
]]
|
|
7173
7195
|
}, M(e.skipHover ? {} : {
|
|
7174
7196
|
mouseenter: () => {
|
|
7175
|
-
h.value =
|
|
7197
|
+
h.value = E.nr.key;
|
|
7176
7198
|
},
|
|
7177
7199
|
mouseleave: () => {
|
|
7178
7200
|
h.value = null;
|
|
@@ -7180,9 +7202,9 @@ const rs = {
|
|
|
7180
7202
|
})), {
|
|
7181
7203
|
default: c(() => [
|
|
7182
7204
|
d(O.$slots, "default", {
|
|
7183
|
-
item:
|
|
7184
|
-
index:
|
|
7185
|
-
active:
|
|
7205
|
+
item: E.item,
|
|
7206
|
+
index: E.nr.index,
|
|
7207
|
+
active: E.nr.used
|
|
7186
7208
|
})
|
|
7187
7209
|
]),
|
|
7188
7210
|
_: 2
|
|
@@ -7192,7 +7214,7 @@ const rs = {
|
|
|
7192
7214
|
}, 8, ["style", "class"]))
|
|
7193
7215
|
], 34));
|
|
7194
7216
|
}
|
|
7195
|
-
},
|
|
7217
|
+
}, Bo = {
|
|
7196
7218
|
name: "DtScrollerItem",
|
|
7197
7219
|
inject: [
|
|
7198
7220
|
"vscrollData",
|
|
@@ -7310,13 +7332,13 @@ const rs = {
|
|
|
7310
7332
|
}
|
|
7311
7333
|
},
|
|
7312
7334
|
render() {
|
|
7313
|
-
return
|
|
7335
|
+
return Ls(this.tag, this.$slots.default());
|
|
7314
7336
|
}
|
|
7315
|
-
},
|
|
7337
|
+
}, $o = {
|
|
7316
7338
|
name: "DynamicScroller",
|
|
7317
7339
|
components: {
|
|
7318
|
-
CoreScroller:
|
|
7319
|
-
DtScrollerItem:
|
|
7340
|
+
CoreScroller: us,
|
|
7341
|
+
DtScrollerItem: Bo
|
|
7320
7342
|
},
|
|
7321
7343
|
provide() {
|
|
7322
7344
|
return typeof ResizeObserver < "u" && (this.$_resizeObserver = new ResizeObserver((e) => {
|
|
@@ -7484,7 +7506,7 @@ const rs = {
|
|
|
7484
7506
|
}
|
|
7485
7507
|
}
|
|
7486
7508
|
};
|
|
7487
|
-
function
|
|
7509
|
+
function No(e, s, t, o, n, i) {
|
|
7488
7510
|
const r = f("dt-scroller-item"), h = f("core-scroller");
|
|
7489
7511
|
return a(), S(h, C({
|
|
7490
7512
|
ref: "scroller",
|
|
@@ -7505,7 +7527,7 @@ function Ro(e, s, t, o, n, i) {
|
|
|
7505
7527
|
"data-index": g
|
|
7506
7528
|
}, {
|
|
7507
7529
|
default: c(() => [
|
|
7508
|
-
d(e.$slots, "default",
|
|
7530
|
+
d(e.$slots, "default", ke(Ye({
|
|
7509
7531
|
item: u.item,
|
|
7510
7532
|
index: g,
|
|
7511
7533
|
active: w,
|
|
@@ -7518,7 +7540,7 @@ function Ro(e, s, t, o, n, i) {
|
|
|
7518
7540
|
_: 3
|
|
7519
7541
|
}, 16, ["items", "min-item-size", "direction", "key-field", "list-tag", "item-tag"]);
|
|
7520
7542
|
}
|
|
7521
|
-
const
|
|
7543
|
+
const zo = /* @__PURE__ */ v($o, [["render", No]]), bd = {
|
|
7522
7544
|
__name: "scroller",
|
|
7523
7545
|
props: {
|
|
7524
7546
|
/**
|
|
@@ -7620,12 +7642,12 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7620
7642
|
],
|
|
7621
7643
|
setup(e, { expose: s, emit: t }) {
|
|
7622
7644
|
const o = e;
|
|
7623
|
-
|
|
7645
|
+
Ts("emit", t);
|
|
7624
7646
|
const n = pe(null), i = Re(() => ({
|
|
7625
7647
|
width: typeof o.scrollerWidth == "number" ? `${o.scrollerWidth}px` : o.scrollerWidth,
|
|
7626
7648
|
height: typeof o.scrollerHeight == "number" ? `${o.scrollerHeight}px` : o.scrollerHeight
|
|
7627
7649
|
}));
|
|
7628
|
-
|
|
7650
|
+
Zt(o, () => {
|
|
7629
7651
|
w();
|
|
7630
7652
|
}, { deep: !0, immediate: !0 });
|
|
7631
7653
|
function r() {
|
|
@@ -7648,7 +7670,7 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7648
7670
|
scrollToItem: h,
|
|
7649
7671
|
updateItems: u,
|
|
7650
7672
|
updateItemsFromBottom: g
|
|
7651
|
-
}), (b, L) => (a(), S(X(e.dynamic ?
|
|
7673
|
+
}), (b, L) => (a(), S(X(e.dynamic ? zo : us), {
|
|
7652
7674
|
ref_key: "scroller",
|
|
7653
7675
|
ref: n,
|
|
7654
7676
|
"data-qa": "dt-scroller",
|
|
@@ -7659,12 +7681,12 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7659
7681
|
"key-field": e.keyField,
|
|
7660
7682
|
"list-tag": e.listTag,
|
|
7661
7683
|
"item-tag": e.itemTag,
|
|
7662
|
-
style: re(
|
|
7684
|
+
style: re(Yt(i)),
|
|
7663
7685
|
tabindex: "0",
|
|
7664
7686
|
onUserPosition: L[0] || (L[0] = (B) => b.$emit("user-position", B))
|
|
7665
7687
|
}, {
|
|
7666
7688
|
default: c(({ item: B, index: de, active: he }) => [
|
|
7667
|
-
d(b.$slots, "default",
|
|
7689
|
+
d(b.$slots, "default", ke(Ye({
|
|
7668
7690
|
item: B,
|
|
7669
7691
|
index: de,
|
|
7670
7692
|
active: he
|
|
@@ -7673,13 +7695,13 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7673
7695
|
_: 3
|
|
7674
7696
|
}, 40, ["items", "item-size", "min-item-size", "direction", "key-field", "list-tag", "item-tag", "style"]));
|
|
7675
7697
|
}
|
|
7676
|
-
},
|
|
7698
|
+
}, Mo = {
|
|
7677
7699
|
name: "DtRecipeComboboxWithPopover",
|
|
7678
7700
|
components: {
|
|
7679
|
-
DtCombobox:
|
|
7680
|
-
DtPopover:
|
|
7681
|
-
ComboboxLoadingList:
|
|
7682
|
-
ComboboxEmptyList:
|
|
7701
|
+
DtCombobox: bn,
|
|
7702
|
+
DtPopover: ot,
|
|
7703
|
+
ComboboxLoadingList: is,
|
|
7704
|
+
ComboboxEmptyList: ns
|
|
7683
7705
|
},
|
|
7684
7706
|
mixins: [ie],
|
|
7685
7707
|
props: {
|
|
@@ -7705,7 +7727,7 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7705
7727
|
size: {
|
|
7706
7728
|
type: String,
|
|
7707
7729
|
default: null,
|
|
7708
|
-
validator: (e) => Object.values(
|
|
7730
|
+
validator: (e) => Object.values(as).includes(e)
|
|
7709
7731
|
},
|
|
7710
7732
|
/**
|
|
7711
7733
|
* Description for the input
|
|
@@ -7786,7 +7808,7 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7786
7808
|
contentWidth: {
|
|
7787
7809
|
type: String,
|
|
7788
7810
|
default: null,
|
|
7789
|
-
validator: (e) =>
|
|
7811
|
+
validator: (e) => os.includes(e)
|
|
7790
7812
|
},
|
|
7791
7813
|
/**
|
|
7792
7814
|
* If the list should be shown by pressing up or down arrow key on the input element.
|
|
@@ -7954,8 +7976,8 @@ const Bo = /* @__PURE__ */ v(xo, [["render", Ro]]), md = {
|
|
|
7954
7976
|
this.showList !== null || this.isListShown || !this.openWithArrowKeys || this.showComboboxList();
|
|
7955
7977
|
}
|
|
7956
7978
|
}
|
|
7957
|
-
},
|
|
7958
|
-
function
|
|
7979
|
+
}, Ho = ["id"], Fo = { ref: "header" }, Vo = ["onMouseleave", "onFocusout"], qo = { ref: "footer" };
|
|
7980
|
+
function Ko(e, s, t, o, n, i) {
|
|
7959
7981
|
const r = f("combobox-loading-list"), h = f("combobox-empty-list"), u = f("dt-popover"), g = f("dt-combobox");
|
|
7960
7982
|
return a(), S(g, C({
|
|
7961
7983
|
ref: "combobox",
|
|
@@ -7979,15 +8001,15 @@ function Vo(e, s, t, o, n, i) {
|
|
|
7979
8001
|
ref: "input",
|
|
7980
8002
|
onFocusin: s[0] || (s[0] = (...b) => i.onFocusIn && i.onFocusIn(...b)),
|
|
7981
8003
|
onKeydown: [
|
|
7982
|
-
s[1] || (s[1] =
|
|
7983
|
-
s[2] || (s[2] =
|
|
8004
|
+
s[1] || (s[1] = F((b) => i.openOnArrowKeyPress(b), ["up"])),
|
|
8005
|
+
s[2] || (s[2] = F((b) => i.openOnArrowKeyPress(b), ["down"]))
|
|
7984
8006
|
]
|
|
7985
8007
|
}, [
|
|
7986
8008
|
d(e.$slots, "input", {
|
|
7987
8009
|
inputProps: w,
|
|
7988
8010
|
onInput: i.handleDisplayList
|
|
7989
8011
|
})
|
|
7990
|
-
], 40,
|
|
8012
|
+
], 40, Ho)
|
|
7991
8013
|
]),
|
|
7992
8014
|
list: c(({ opened: w, listProps: b, clearHighlightIndex: L }) => [
|
|
7993
8015
|
m(u, {
|
|
@@ -8014,7 +8036,7 @@ function Vo(e, s, t, o, n, i) {
|
|
|
8014
8036
|
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
8015
8037
|
"visually-hidden-close": e.visuallyHiddenClose,
|
|
8016
8038
|
onOpened: w
|
|
8017
|
-
},
|
|
8039
|
+
}, Ee({
|
|
8018
8040
|
content: c(() => [
|
|
8019
8041
|
_("div", {
|
|
8020
8042
|
ref: "listWrapper",
|
|
@@ -8022,18 +8044,18 @@ function Vo(e, s, t, o, n, i) {
|
|
|
8022
8044
|
onMouseleave: L,
|
|
8023
8045
|
onFocusout: L
|
|
8024
8046
|
}, [
|
|
8025
|
-
t.loading ? (a(), S(r,
|
|
8047
|
+
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
8048
|
key: 2,
|
|
8027
8049
|
listProps: b
|
|
8028
8050
|
})
|
|
8029
|
-
], 42,
|
|
8051
|
+
], 42, Vo)
|
|
8030
8052
|
]),
|
|
8031
8053
|
_: 2
|
|
8032
8054
|
}, [
|
|
8033
8055
|
n.hasSlotContent(e.$slots.header) ? {
|
|
8034
8056
|
name: "headerContent",
|
|
8035
8057
|
fn: c(() => [
|
|
8036
|
-
_("div",
|
|
8058
|
+
_("div", Fo, [
|
|
8037
8059
|
d(e.$slots, "header")
|
|
8038
8060
|
], 512)
|
|
8039
8061
|
]),
|
|
@@ -8042,7 +8064,7 @@ function Vo(e, s, t, o, n, i) {
|
|
|
8042
8064
|
n.hasSlotContent(e.$slots.footer) ? {
|
|
8043
8065
|
name: "footerContent",
|
|
8044
8066
|
fn: c(() => [
|
|
8045
|
-
_("div",
|
|
8067
|
+
_("div", qo, [
|
|
8046
8068
|
d(e.$slots, "footer")
|
|
8047
8069
|
], 512)
|
|
8048
8070
|
]),
|
|
@@ -8053,25 +8075,25 @@ function Vo(e, s, t, o, n, i) {
|
|
|
8053
8075
|
_: 3
|
|
8054
8076
|
}, 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
8077
|
}
|
|
8056
|
-
const
|
|
8078
|
+
const jo = /* @__PURE__ */ v(Mo, [["render", Ko]]), Go = {
|
|
8057
8079
|
// Chip has no 'lg' and 'xl' size. So we don't support that in multi-select.
|
|
8058
8080
|
EXTRA_SMALL: "xs",
|
|
8059
8081
|
SMALL: "sm",
|
|
8060
8082
|
DEFAULT: "md"
|
|
8061
|
-
},
|
|
8083
|
+
}, Uo = {
|
|
8062
8084
|
xs: "xs",
|
|
8063
8085
|
sm: "xs",
|
|
8064
8086
|
md: "sm"
|
|
8065
|
-
},
|
|
8087
|
+
}, Wo = {
|
|
8066
8088
|
xs: 1.4,
|
|
8067
8089
|
sm: 0.4,
|
|
8068
8090
|
md: 0.2
|
|
8069
|
-
},
|
|
8091
|
+
}, Zo = {
|
|
8070
8092
|
name: "DtRecipeComboboxMultiSelect",
|
|
8071
8093
|
components: {
|
|
8072
|
-
DtRecipeComboboxWithPopover:
|
|
8073
|
-
DtInput:
|
|
8074
|
-
DtChip:
|
|
8094
|
+
DtRecipeComboboxWithPopover: jo,
|
|
8095
|
+
DtInput: qs,
|
|
8096
|
+
DtChip: rs,
|
|
8075
8097
|
DtValidationMessages: me
|
|
8076
8098
|
},
|
|
8077
8099
|
mixins: [ie],
|
|
@@ -8111,7 +8133,7 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8111
8133
|
inputMessages: {
|
|
8112
8134
|
type: Array,
|
|
8113
8135
|
default: () => [],
|
|
8114
|
-
validator: (e) =>
|
|
8136
|
+
validator: (e) => Qt(e)
|
|
8115
8137
|
},
|
|
8116
8138
|
/**
|
|
8117
8139
|
* Show input validation message
|
|
@@ -8198,7 +8220,7 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8198
8220
|
size: {
|
|
8199
8221
|
type: String,
|
|
8200
8222
|
default: "md",
|
|
8201
|
-
validator: (e) => Object.values(
|
|
8223
|
+
validator: (e) => Object.values(Go).includes(e)
|
|
8202
8224
|
},
|
|
8203
8225
|
/**
|
|
8204
8226
|
* Sets the element to which the popover is going to append to.
|
|
@@ -8264,7 +8286,7 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8264
8286
|
initialInputPadding: {},
|
|
8265
8287
|
resizeWindowObserver: null,
|
|
8266
8288
|
originalInputSize: null,
|
|
8267
|
-
CHIP_SIZES:
|
|
8289
|
+
CHIP_SIZES: Uo,
|
|
8268
8290
|
hasSlotContent: $
|
|
8269
8291
|
};
|
|
8270
8292
|
},
|
|
@@ -8389,7 +8411,7 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8389
8411
|
if (!e)
|
|
8390
8412
|
return;
|
|
8391
8413
|
const s = this.$refs.inputSlotWrapper, t = e.getBoundingClientRect().top - s.getBoundingClientRect().top, o = this.$refs.chipsWrapper;
|
|
8392
|
-
o.style.top = t -
|
|
8414
|
+
o.style.top = t - Wo[this.size] + "px";
|
|
8393
8415
|
},
|
|
8394
8416
|
setInputPadding() {
|
|
8395
8417
|
const e = this.getLastChip(), s = this.getInput(), t = this.$refs.chipsWrapper;
|
|
@@ -8415,17 +8437,17 @@ const Fo = /* @__PURE__ */ v($o, [["render", Vo]]), qo = {
|
|
|
8415
8437
|
this.maxSelected !== 0 && (this.selectedItems.length > this.maxSelected ? (this.showValidationMessages = !0, this.$emit("max-selected")) : this.showValidationMessages = !1);
|
|
8416
8438
|
}
|
|
8417
8439
|
}
|
|
8418
|
-
},
|
|
8440
|
+
}, Yo = {
|
|
8419
8441
|
ref: "inputSlotWrapper",
|
|
8420
8442
|
class: "d-ps-relative d-d-block"
|
|
8421
|
-
},
|
|
8443
|
+
}, Qo = {
|
|
8422
8444
|
ref: "chipsWrapper",
|
|
8423
8445
|
class: "d-ps-absolute d-mx2 d-pl1"
|
|
8424
|
-
},
|
|
8446
|
+
}, Xo = { ref: "header" }, Jo = {
|
|
8425
8447
|
key: 1,
|
|
8426
8448
|
class: "d-ta-center d-py16"
|
|
8427
|
-
},
|
|
8428
|
-
function
|
|
8449
|
+
}, el = { ref: "footer" };
|
|
8450
|
+
function tl(e, s, t, o, n, i) {
|
|
8429
8451
|
const r = f("dt-chip"), h = f("dt-input"), u = f("dt-validation-messages"), g = f("dt-recipe-combobox-with-popover");
|
|
8430
8452
|
return a(), S(g, {
|
|
8431
8453
|
ref: "comboboxWithPopover",
|
|
@@ -8440,10 +8462,10 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8440
8462
|
"append-to": t.appendTo,
|
|
8441
8463
|
transition: t.transition,
|
|
8442
8464
|
onSelect: i.onComboboxSelect
|
|
8443
|
-
},
|
|
8465
|
+
}, Ee({
|
|
8444
8466
|
input: c(({ onInput: w }) => [
|
|
8445
|
-
_("span",
|
|
8446
|
-
_("span",
|
|
8467
|
+
_("span", Yo, [
|
|
8468
|
+
_("span", Qo, [
|
|
8447
8469
|
(a(!0), l(Y, null, ee(t.selectedItems, (b) => (a(), S(r, C({
|
|
8448
8470
|
ref_for: !0,
|
|
8449
8471
|
ref: "chips",
|
|
@@ -8453,7 +8475,7 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8453
8475
|
"close-button-props": { ariaLabel: "close" },
|
|
8454
8476
|
size: n.CHIP_SIZES[t.size]
|
|
8455
8477
|
}, M(i.chipListeners), {
|
|
8456
|
-
onKeyup:
|
|
8478
|
+
onKeyup: F((L) => i.onChipRemove(b), ["backspace"]),
|
|
8457
8479
|
onClose: (L) => i.onChipRemove(b)
|
|
8458
8480
|
}), {
|
|
8459
8481
|
default: c(() => [
|
|
@@ -8487,7 +8509,7 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8487
8509
|
onMousedown: s[1] || (s[1] = U(() => {
|
|
8488
8510
|
}, ["prevent"]))
|
|
8489
8511
|
}, [
|
|
8490
|
-
t.loading ? (a(), l("div",
|
|
8512
|
+
t.loading ? (a(), l("div", Jo, I(t.loadingMessage), 1)) : d(e.$slots, "list", { key: 0 })
|
|
8491
8513
|
], 544)
|
|
8492
8514
|
]),
|
|
8493
8515
|
_: 2
|
|
@@ -8495,7 +8517,7 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8495
8517
|
n.hasSlotContent(e.$slots.header) ? {
|
|
8496
8518
|
name: "header",
|
|
8497
8519
|
fn: c(() => [
|
|
8498
|
-
_("div",
|
|
8520
|
+
_("div", Xo, [
|
|
8499
8521
|
d(e.$slots, "header")
|
|
8500
8522
|
], 512)
|
|
8501
8523
|
]),
|
|
@@ -8504,7 +8526,7 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8504
8526
|
n.hasSlotContent(e.$slots.footer) ? {
|
|
8505
8527
|
name: "footer",
|
|
8506
8528
|
fn: c(() => [
|
|
8507
|
-
_("div",
|
|
8529
|
+
_("div", el, [
|
|
8508
8530
|
d(e.$slots, "footer")
|
|
8509
8531
|
], 512)
|
|
8510
8532
|
]),
|
|
@@ -8512,10 +8534,10 @@ function Xo(e, s, t, o, n, i) {
|
|
|
8512
8534
|
} : void 0
|
|
8513
8535
|
]), 1032, ["label", "show-list", "max-height", "popover-offset", "has-suggestion-list", "visually-hidden-close-label", "visually-hidden-close", "append-to", "transition", "onSelect"]);
|
|
8514
8536
|
}
|
|
8515
|
-
const
|
|
8516
|
-
const
|
|
8537
|
+
const yd = /* @__PURE__ */ v(Zo, [["render", tl]]), hs = ["sm", "md", "lg", "xl"];
|
|
8538
|
+
const sl = {
|
|
8517
8539
|
name: "DtRecipeCallbarButton",
|
|
8518
|
-
components: { DtButton: K, DtTooltip:
|
|
8540
|
+
components: { DtButton: K, DtTooltip: Je },
|
|
8519
8541
|
inheritAttrs: !0,
|
|
8520
8542
|
props: {
|
|
8521
8543
|
/**
|
|
@@ -8593,7 +8615,7 @@ const Jo = {
|
|
|
8593
8615
|
buttonWidthSize: {
|
|
8594
8616
|
type: String,
|
|
8595
8617
|
default: "xl",
|
|
8596
|
-
validator: (e) =>
|
|
8618
|
+
validator: (e) => hs.includes(e)
|
|
8597
8619
|
},
|
|
8598
8620
|
/**
|
|
8599
8621
|
* The fill and outline of the button associated with its visual importance.
|
|
@@ -8641,7 +8663,7 @@ const Jo = {
|
|
|
8641
8663
|
}
|
|
8642
8664
|
}
|
|
8643
8665
|
};
|
|
8644
|
-
function
|
|
8666
|
+
function il(e, s, t, o, n, i) {
|
|
8645
8667
|
const r = f("dt-button"), h = f("dt-tooltip");
|
|
8646
8668
|
return a(), S(h, {
|
|
8647
8669
|
id: t.id,
|
|
@@ -8675,10 +8697,10 @@ function el(e, s, t, o, n, i) {
|
|
|
8675
8697
|
_: 3
|
|
8676
8698
|
}, 8, ["id"]);
|
|
8677
8699
|
}
|
|
8678
|
-
const
|
|
8679
|
-
const
|
|
8700
|
+
const nl = /* @__PURE__ */ v(sl, [["render", il]]);
|
|
8701
|
+
const al = {
|
|
8680
8702
|
name: "DtRecipeCallbarButtonWithPopover",
|
|
8681
|
-
components: { DtRecipeCallbarButton:
|
|
8703
|
+
components: { DtRecipeCallbarButton: nl, DtPopover: ot, DtButton: K, DtIcon: x },
|
|
8682
8704
|
/* inheritAttrs: false is generally an option we want to set on library
|
|
8683
8705
|
components. This allows any attributes passed in that are not recognized
|
|
8684
8706
|
as props to be passed down to another element or component using v-bind:$attrs
|
|
@@ -8811,7 +8833,7 @@ const sl = {
|
|
|
8811
8833
|
buttonWidthSize: {
|
|
8812
8834
|
type: String,
|
|
8813
8835
|
default: "xl",
|
|
8814
|
-
validator: (e) =>
|
|
8836
|
+
validator: (e) => hs.includes(e)
|
|
8815
8837
|
},
|
|
8816
8838
|
/**
|
|
8817
8839
|
* Additional class name for the popover content wrapper element.
|
|
@@ -8858,10 +8880,10 @@ const sl = {
|
|
|
8858
8880
|
this.open = e;
|
|
8859
8881
|
}
|
|
8860
8882
|
}
|
|
8861
|
-
},
|
|
8862
|
-
function
|
|
8883
|
+
}, ol = { class: "d-d-flex d-ai-center" };
|
|
8884
|
+
function ll(e, s, t, o, n, i) {
|
|
8863
8885
|
const r = f("dt-recipe-callbar-button"), h = f("dt-icon"), u = f("dt-button"), g = f("dt-popover");
|
|
8864
|
-
return a(), l("div",
|
|
8886
|
+
return a(), l("div", ol, [
|
|
8865
8887
|
m(r, {
|
|
8866
8888
|
"aria-label": t.ariaLabel,
|
|
8867
8889
|
disabled: t.disabled,
|
|
@@ -8930,10 +8952,10 @@ function nl(e, s, t, o, n, i) {
|
|
|
8930
8952
|
}, 16, ["id", "open", "placement", "initial-focus-element", "show-close-button", "dialog-class", "onOpened"])) : p("", !0)
|
|
8931
8953
|
]);
|
|
8932
8954
|
}
|
|
8933
|
-
const
|
|
8955
|
+
const vd = /* @__PURE__ */ v(al, [["render", ll]]), rl = {
|
|
8934
8956
|
name: "DtRecipeContactInfo",
|
|
8935
8957
|
components: {
|
|
8936
|
-
DtAvatar:
|
|
8958
|
+
DtAvatar: st,
|
|
8937
8959
|
DtIcon: x,
|
|
8938
8960
|
DtListItem: ze
|
|
8939
8961
|
},
|
|
@@ -9028,15 +9050,15 @@ const _d = /* @__PURE__ */ v(sl, [["render", nl]]), al = {
|
|
|
9028
9050
|
default: null
|
|
9029
9051
|
}
|
|
9030
9052
|
}
|
|
9031
|
-
},
|
|
9053
|
+
}, dl = {
|
|
9032
9054
|
key: 0,
|
|
9033
9055
|
class: "d-ps-relative",
|
|
9034
9056
|
"data-qa": "contact-info-left"
|
|
9035
|
-
},
|
|
9057
|
+
}, cl = {
|
|
9036
9058
|
key: 0,
|
|
9037
9059
|
class: "d-mrn4 d-d-flex d-fd-row"
|
|
9038
|
-
},
|
|
9039
|
-
function
|
|
9060
|
+
}, 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" };
|
|
9061
|
+
function yl(e, s, t, o, n, i) {
|
|
9040
9062
|
const r = f("dt-icon"), h = f("dt-avatar"), u = f("dt-list-item");
|
|
9041
9063
|
return a(), S(u, {
|
|
9042
9064
|
id: t.id,
|
|
@@ -9045,8 +9067,8 @@ function gl(e, s, t, o, n, i) {
|
|
|
9045
9067
|
"data-qa": "contact-info"
|
|
9046
9068
|
}, {
|
|
9047
9069
|
left: c(() => [
|
|
9048
|
-
t.showAvatar ? (a(), l("div",
|
|
9049
|
-
t.avatarList ? (a(), l("div",
|
|
9070
|
+
t.showAvatar ? (a(), l("div", dl, [
|
|
9071
|
+
t.avatarList ? (a(), l("div", cl, [
|
|
9050
9072
|
(a(!0), l(Y, null, ee(t.avatarList, (g, w) => (a(), l("div", { key: w }, [
|
|
9051
9073
|
m(h, {
|
|
9052
9074
|
size: t.avatarSize,
|
|
@@ -9063,7 +9085,7 @@ function gl(e, s, t, o, n, i) {
|
|
|
9063
9085
|
"data-qa": "dt-contact-avatar",
|
|
9064
9086
|
src: g.src,
|
|
9065
9087
|
alt: g.initials
|
|
9066
|
-
}, null, 8,
|
|
9088
|
+
}, null, 8, ul)) : g.initials ? (a(), l("div", hl, I(g.initials), 1)) : (a(), S(r, {
|
|
9067
9089
|
key: 2,
|
|
9068
9090
|
name: t.avatarIcon
|
|
9069
9091
|
}, null, 8, ["name"]))
|
|
@@ -9086,7 +9108,7 @@ function gl(e, s, t, o, n, i) {
|
|
|
9086
9108
|
initials: t.avatarInitials,
|
|
9087
9109
|
seed: t.avatarSeed,
|
|
9088
9110
|
alt: t.avatarInitials
|
|
9089
|
-
}, null, 8,
|
|
9111
|
+
}, null, 8, fl)) : t.avatarInitials ? (a(), l("div", pl, I(t.avatarInitials), 1)) : (a(), S(r, {
|
|
9090
9112
|
key: 2,
|
|
9091
9113
|
name: t.avatarIcon
|
|
9092
9114
|
}, null, 8, ["name"]))
|
|
@@ -9096,29 +9118,29 @@ function gl(e, s, t, o, n, i) {
|
|
|
9096
9118
|
])) : p("", !0)
|
|
9097
9119
|
]),
|
|
9098
9120
|
default: c(() => [
|
|
9099
|
-
_("div",
|
|
9121
|
+
_("div", ml, [
|
|
9100
9122
|
d(e.$slots, "header")
|
|
9101
9123
|
])
|
|
9102
9124
|
]),
|
|
9103
9125
|
subtitle: c(() => [
|
|
9104
|
-
_("div",
|
|
9126
|
+
_("div", gl, [
|
|
9105
9127
|
d(e.$slots, "subtitle")
|
|
9106
9128
|
])
|
|
9107
9129
|
]),
|
|
9108
9130
|
bottom: c(() => [
|
|
9109
|
-
_("div",
|
|
9131
|
+
_("div", _l, [
|
|
9110
9132
|
d(e.$slots, "bottom")
|
|
9111
9133
|
])
|
|
9112
9134
|
]),
|
|
9113
9135
|
right: c(() => [
|
|
9114
|
-
_("div",
|
|
9136
|
+
_("div", bl, [
|
|
9115
9137
|
d(e.$slots, "right")
|
|
9116
9138
|
])
|
|
9117
9139
|
]),
|
|
9118
9140
|
_: 3
|
|
9119
9141
|
}, 8, ["id", "role"]);
|
|
9120
9142
|
}
|
|
9121
|
-
const
|
|
9143
|
+
const Sd = /* @__PURE__ */ v(rl, [["render", yl]]), vl = [
|
|
9122
9144
|
"green300",
|
|
9123
9145
|
"green100",
|
|
9124
9146
|
"red200",
|
|
@@ -9128,7 +9150,7 @@ const bd = /* @__PURE__ */ v(al, [["render", gl]]), _l = [
|
|
|
9128
9150
|
"black100",
|
|
9129
9151
|
"white"
|
|
9130
9152
|
];
|
|
9131
|
-
const
|
|
9153
|
+
const Sl = {
|
|
9132
9154
|
name: "DtRecipeTopBannerInfo",
|
|
9133
9155
|
props: {
|
|
9134
9156
|
/**
|
|
@@ -9138,7 +9160,7 @@ const bl = {
|
|
|
9138
9160
|
type: String,
|
|
9139
9161
|
default: "green300",
|
|
9140
9162
|
validator: function(e) {
|
|
9141
|
-
return
|
|
9163
|
+
return vl.includes(e);
|
|
9142
9164
|
}
|
|
9143
9165
|
}
|
|
9144
9166
|
},
|
|
@@ -9158,41 +9180,41 @@ const bl = {
|
|
|
9158
9180
|
}[this.colorCode]];
|
|
9159
9181
|
}
|
|
9160
9182
|
}
|
|
9161
|
-
},
|
|
9162
|
-
function
|
|
9183
|
+
}, 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" };
|
|
9184
|
+
function El(e, s, t, o, n, i) {
|
|
9163
9185
|
return a(), l("div", {
|
|
9164
9186
|
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
9187
|
"data-qa": "banner-info"
|
|
9166
9188
|
}, [
|
|
9167
|
-
_("div",
|
|
9189
|
+
_("div", Cl, [
|
|
9168
9190
|
d(e.$slots, "left")
|
|
9169
9191
|
]),
|
|
9170
|
-
_("div",
|
|
9192
|
+
_("div", Il, [
|
|
9171
9193
|
d(e.$slots, "default")
|
|
9172
9194
|
]),
|
|
9173
|
-
_("div",
|
|
9195
|
+
_("div", wl, [
|
|
9174
9196
|
d(e.$slots, "right")
|
|
9175
9197
|
])
|
|
9176
9198
|
], 2);
|
|
9177
9199
|
}
|
|
9178
|
-
const
|
|
9179
|
-
[
|
|
9180
|
-
[
|
|
9181
|
-
[
|
|
9182
|
-
[
|
|
9183
|
-
[
|
|
9200
|
+
const Cd = /* @__PURE__ */ v(Sl, [["render", El]]), rt = "promptmenu", dt = "promptcollect", ct = "promptplay", ut = "gotoexpert", He = "goto", ht = "branch", ft = "transfer", pt = "hangup", kl = {
|
|
9201
|
+
[rt]: "keypad",
|
|
9202
|
+
[dt]: "dialer",
|
|
9203
|
+
[ct]: "volume-2",
|
|
9204
|
+
[ut]: "expert-node",
|
|
9205
|
+
[ht]: "branch",
|
|
9184
9206
|
[He]: "call-merge",
|
|
9185
|
-
[
|
|
9186
|
-
[
|
|
9187
|
-
},
|
|
9188
|
-
[
|
|
9189
|
-
[
|
|
9190
|
-
[
|
|
9191
|
-
[
|
|
9192
|
-
[
|
|
9207
|
+
[ft]: "transfer",
|
|
9208
|
+
[pt]: "phone-hang-up"
|
|
9209
|
+
}, Id = {
|
|
9210
|
+
[rt]: "Menu",
|
|
9211
|
+
[dt]: "Collect",
|
|
9212
|
+
[ct]: "Play",
|
|
9213
|
+
[ut]: "Expert",
|
|
9214
|
+
[ht]: "Branch",
|
|
9193
9215
|
[He]: "Go-to",
|
|
9194
|
-
[
|
|
9195
|
-
[
|
|
9216
|
+
[ft]: "Transfer",
|
|
9217
|
+
[pt]: "Hangup"
|
|
9196
9218
|
}, le = {
|
|
9197
9219
|
PROMPT: {
|
|
9198
9220
|
normal: "d-bc-blue-200",
|
|
@@ -9206,22 +9228,22 @@ const yd = /* @__PURE__ */ v(bl, [["render", Cl]]), at = "promptmenu", ot = "pro
|
|
|
9206
9228
|
normal: "d-bc-red-100",
|
|
9207
9229
|
selected: "d-bc-red-200"
|
|
9208
9230
|
}
|
|
9209
|
-
},
|
|
9210
|
-
[
|
|
9211
|
-
[
|
|
9212
|
-
[
|
|
9213
|
-
[
|
|
9214
|
-
[
|
|
9231
|
+
}, Ol = {
|
|
9232
|
+
[rt]: le.PROMPT,
|
|
9233
|
+
[dt]: le.PROMPT,
|
|
9234
|
+
[ct]: le.PROMPT,
|
|
9235
|
+
[ut]: le.LOGIC,
|
|
9236
|
+
[ht]: le.LOGIC,
|
|
9215
9237
|
[He]: le.LOGIC,
|
|
9216
|
-
[
|
|
9217
|
-
[
|
|
9238
|
+
[ft]: le.TERMINAL,
|
|
9239
|
+
[pt]: le.TERMINAL
|
|
9218
9240
|
};
|
|
9219
|
-
const
|
|
9241
|
+
const Ll = {
|
|
9220
9242
|
name: "DtRecipeIvrNode",
|
|
9221
9243
|
components: {
|
|
9222
|
-
DtCard:
|
|
9244
|
+
DtCard: Gi,
|
|
9223
9245
|
DtButton: K,
|
|
9224
|
-
DtDropdown:
|
|
9246
|
+
DtDropdown: Hn,
|
|
9225
9247
|
DtIcon: x
|
|
9226
9248
|
},
|
|
9227
9249
|
props: {
|
|
@@ -9282,10 +9304,10 @@ const kl = {
|
|
|
9282
9304
|
};
|
|
9283
9305
|
},
|
|
9284
9306
|
nodeIcon() {
|
|
9285
|
-
return
|
|
9307
|
+
return kl[this.nodeType];
|
|
9286
9308
|
},
|
|
9287
9309
|
headerColor() {
|
|
9288
|
-
const { normal: e, selected: s } =
|
|
9310
|
+
const { normal: e, selected: s } = Ol[this.nodeType];
|
|
9289
9311
|
return this.isSelected ? s : e;
|
|
9290
9312
|
},
|
|
9291
9313
|
isGotoNode() {
|
|
@@ -9297,11 +9319,11 @@ const kl = {
|
|
|
9297
9319
|
this.isOpen = !0;
|
|
9298
9320
|
}
|
|
9299
9321
|
}
|
|
9300
|
-
},
|
|
9322
|
+
}, Tl = { class: "d-d-flex d-ai-center" }, Al = {
|
|
9301
9323
|
class: "d-fs-200 d-fw-bold",
|
|
9302
9324
|
"data-qa": "ivr-node-label"
|
|
9303
|
-
},
|
|
9304
|
-
function
|
|
9325
|
+
}, Dl = { class: "d-w164" };
|
|
9326
|
+
function Pl(e, s, t, o, n, i) {
|
|
9305
9327
|
const r = f("dt-icon"), h = f("dt-button"), u = f("dt-dropdown"), g = f("dt-card");
|
|
9306
9328
|
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
9329
|
t.dtmfKey ? (a(), l("div", {
|
|
@@ -9332,7 +9354,7 @@ function Tl(e, s, t, o, n, i) {
|
|
|
9332
9354
|
]
|
|
9333
9355
|
}, {
|
|
9334
9356
|
header: c(() => [
|
|
9335
|
-
_("div",
|
|
9357
|
+
_("div", Tl, [
|
|
9336
9358
|
m(h, {
|
|
9337
9359
|
"aria-label": t.nodeType,
|
|
9338
9360
|
importance: "clear",
|
|
@@ -9348,7 +9370,7 @@ function Tl(e, s, t, o, n, i) {
|
|
|
9348
9370
|
]),
|
|
9349
9371
|
_: 1
|
|
9350
9372
|
}, 8, ["aria-label"]),
|
|
9351
|
-
_("p",
|
|
9373
|
+
_("p", Al, I(t.nodeLabel), 1)
|
|
9352
9374
|
]),
|
|
9353
9375
|
m(u, {
|
|
9354
9376
|
open: n.isOpen,
|
|
@@ -9372,7 +9394,7 @@ function Tl(e, s, t, o, n, i) {
|
|
|
9372
9394
|
}, 8, ["aria-label", "onClick"])
|
|
9373
9395
|
]),
|
|
9374
9396
|
list: c(({ close: w }) => [
|
|
9375
|
-
_("div",
|
|
9397
|
+
_("div", Dl, [
|
|
9376
9398
|
d(e.$slots, "menuItems", { close: w })
|
|
9377
9399
|
])
|
|
9378
9400
|
]),
|
|
@@ -9386,36 +9408,36 @@ function Tl(e, s, t, o, n, i) {
|
|
|
9386
9408
|
}, 8, ["container-class", "header-class"])
|
|
9387
9409
|
], 16);
|
|
9388
9410
|
}
|
|
9389
|
-
const
|
|
9390
|
-
const
|
|
9411
|
+
const wd = /* @__PURE__ */ v(Ll, [["render", Pl]]);
|
|
9412
|
+
const xl = {
|
|
9391
9413
|
name: "DtRecipeGroupedChip",
|
|
9392
9414
|
components: {
|
|
9393
|
-
DtChip:
|
|
9415
|
+
DtChip: rs
|
|
9394
9416
|
},
|
|
9395
9417
|
data() {
|
|
9396
9418
|
return {
|
|
9397
9419
|
hasSlotContent: $
|
|
9398
9420
|
};
|
|
9399
9421
|
}
|
|
9400
|
-
},
|
|
9422
|
+
}, Rl = {
|
|
9401
9423
|
"data-qa": "grouped-chip",
|
|
9402
9424
|
class: "d-d-inline-flex d-ws-nowrap d-bgc-unset"
|
|
9403
|
-
},
|
|
9425
|
+
}, Bl = {
|
|
9404
9426
|
key: 0,
|
|
9405
9427
|
"data-qa": "left-grouped-chip-icon"
|
|
9406
|
-
},
|
|
9428
|
+
}, $l = {
|
|
9407
9429
|
key: 0,
|
|
9408
9430
|
"data-qa": "left-grouped-chip-content"
|
|
9409
|
-
},
|
|
9431
|
+
}, Nl = {
|
|
9410
9432
|
key: 0,
|
|
9411
9433
|
"data-qa": "right-grouped-chip-icon"
|
|
9412
|
-
},
|
|
9434
|
+
}, zl = {
|
|
9413
9435
|
key: 0,
|
|
9414
9436
|
"data-qa": "right-grouped-chip-content"
|
|
9415
9437
|
};
|
|
9416
|
-
function
|
|
9438
|
+
function Ml(e, s, t, o, n, i) {
|
|
9417
9439
|
const r = f("dt-chip");
|
|
9418
|
-
return a(), l("div",
|
|
9440
|
+
return a(), l("div", Rl, [
|
|
9419
9441
|
m(r, {
|
|
9420
9442
|
"hide-close": !0,
|
|
9421
9443
|
interactive: !1,
|
|
@@ -9423,9 +9445,9 @@ function $l(e, s, t, o, n, i) {
|
|
|
9423
9445
|
size: "xs",
|
|
9424
9446
|
"grouped-chip": !0,
|
|
9425
9447
|
class: "d-blr-pill d-bgc-moderate-opaque d-wmx84 dt-chip-content"
|
|
9426
|
-
},
|
|
9448
|
+
}, Ee({
|
|
9427
9449
|
default: c(() => [
|
|
9428
|
-
n.hasSlotContent(e.$slots.leftContent) ? (a(), l("div",
|
|
9450
|
+
n.hasSlotContent(e.$slots.leftContent) ? (a(), l("div", $l, [
|
|
9429
9451
|
d(e.$slots, "leftContent")
|
|
9430
9452
|
])) : p("", !0)
|
|
9431
9453
|
]),
|
|
@@ -9434,7 +9456,7 @@ function $l(e, s, t, o, n, i) {
|
|
|
9434
9456
|
n.hasSlotContent(e.$slots.leftIcon) ? {
|
|
9435
9457
|
name: "icon",
|
|
9436
9458
|
fn: c(() => [
|
|
9437
|
-
n.hasSlotContent(e.$slots.leftIcon) ? (a(), l("div",
|
|
9459
|
+
n.hasSlotContent(e.$slots.leftIcon) ? (a(), l("div", Bl, [
|
|
9438
9460
|
d(e.$slots, "leftIcon")
|
|
9439
9461
|
])) : p("", !0)
|
|
9440
9462
|
]),
|
|
@@ -9450,12 +9472,12 @@ function $l(e, s, t, o, n, i) {
|
|
|
9450
9472
|
class: "d-brr-pill d-bgc-purple-200 d-wmx84 dt-chip-content"
|
|
9451
9473
|
}, {
|
|
9452
9474
|
icon: c(() => [
|
|
9453
|
-
n.hasSlotContent(e.$slots.rightIcon) ? (a(), l("div",
|
|
9475
|
+
n.hasSlotContent(e.$slots.rightIcon) ? (a(), l("div", Nl, [
|
|
9454
9476
|
d(e.$slots, "rightIcon")
|
|
9455
9477
|
])) : p("", !0)
|
|
9456
9478
|
]),
|
|
9457
9479
|
default: c(() => [
|
|
9458
|
-
n.hasSlotContent(e.$slots.rightContent) ? (a(), l("div",
|
|
9480
|
+
n.hasSlotContent(e.$slots.rightContent) ? (a(), l("div", zl, [
|
|
9459
9481
|
d(e.$slots, "rightContent")
|
|
9460
9482
|
])) : p("", !0)
|
|
9461
9483
|
]),
|
|
@@ -9463,8 +9485,8 @@ function $l(e, s, t, o, n, i) {
|
|
|
9463
9485
|
})
|
|
9464
9486
|
]);
|
|
9465
9487
|
}
|
|
9466
|
-
const
|
|
9467
|
-
const
|
|
9488
|
+
const Ed = /* @__PURE__ */ v(xl, [["render", Ml]]);
|
|
9489
|
+
const Hl = {
|
|
9468
9490
|
name: "DtRecipeSettingsMenuButton",
|
|
9469
9491
|
components: {
|
|
9470
9492
|
DtButton: K,
|
|
@@ -9490,7 +9512,7 @@ const Nl = {
|
|
|
9490
9512
|
}
|
|
9491
9513
|
}
|
|
9492
9514
|
};
|
|
9493
|
-
function
|
|
9515
|
+
function Fl(e, s, t, o, n, i) {
|
|
9494
9516
|
const r = f("dt-icon"), h = f("dt-button");
|
|
9495
9517
|
return t.updateAvailable ? (a(), S(h, C({
|
|
9496
9518
|
key: 0,
|
|
@@ -9527,7 +9549,7 @@ function zl(e, s, t, o, n, i) {
|
|
|
9527
9549
|
_: 1
|
|
9528
9550
|
}, 16, ["aria-label"]));
|
|
9529
9551
|
}
|
|
9530
|
-
const
|
|
9552
|
+
const kd = /* @__PURE__ */ v(Hl, [["render", Fl], ["__scopeId", "data-v-7712e6e1"]]), z = {
|
|
9531
9553
|
INBOX: "inbox",
|
|
9532
9554
|
CONTACTS: "contacts",
|
|
9533
9555
|
CHANNELS: "channels",
|
|
@@ -9540,7 +9562,7 @@ const Id = /* @__PURE__ */ v(Nl, [["render", zl], ["__scopeId", "data-v-7712e6e1
|
|
|
9540
9562
|
DIALBOT: "dialbot",
|
|
9541
9563
|
ASSIGNED: "assigned",
|
|
9542
9564
|
DIGITAL: "digital"
|
|
9543
|
-
},
|
|
9565
|
+
}, Vl = {
|
|
9544
9566
|
[z.INBOX]: "inbox",
|
|
9545
9567
|
[z.CONTACTS]: "contacts",
|
|
9546
9568
|
[z.CHANNELS]: "hash",
|
|
@@ -9564,10 +9586,10 @@ const Id = /* @__PURE__ */ v(Nl, [["render", zl], ["__scopeId", "data-v-7712e6e1
|
|
|
9564
9586
|
"purple-100": "d-bgc-purple-100",
|
|
9565
9587
|
"magenta-400": "d-bgc-magenta-400",
|
|
9566
9588
|
"magenta-100": "d-bgc-magenta-100"
|
|
9567
|
-
},
|
|
9589
|
+
}, ql = "If type is contact center, color must be oneof the following:" + Object.keys(Be).join(", "), Kl = [
|
|
9568
9590
|
"300",
|
|
9569
9591
|
"200"
|
|
9570
|
-
],
|
|
9592
|
+
], jl = {}, Gl = {
|
|
9571
9593
|
"aria-hidden": "true",
|
|
9572
9594
|
focusable: "false",
|
|
9573
9595
|
"aria-label": "Dialbot",
|
|
@@ -9576,15 +9598,15 @@ const Id = /* @__PURE__ */ v(Nl, [["render", zl], ["__scopeId", "data-v-7712e6e1
|
|
|
9576
9598
|
height: "358",
|
|
9577
9599
|
viewBox: "0 0 358 358",
|
|
9578
9600
|
fill: "none"
|
|
9579
|
-
},
|
|
9580
|
-
|
|
9601
|
+
}, 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 = [
|
|
9602
|
+
Ul
|
|
9581
9603
|
];
|
|
9582
|
-
function
|
|
9583
|
-
return a(), l("svg",
|
|
9604
|
+
function Zl(e, s) {
|
|
9605
|
+
return a(), l("svg", Gl, Wl);
|
|
9584
9606
|
}
|
|
9585
|
-
const
|
|
9607
|
+
const Yl = /* @__PURE__ */ v(jl, [["render", Zl]]), Ql = {
|
|
9586
9608
|
name: "DtRecipeLeftbarGeneralRowIcon",
|
|
9587
|
-
components: { DtIcon: x, IconDialbot:
|
|
9609
|
+
components: { DtIcon: x, IconDialbot: Yl },
|
|
9588
9610
|
props: {
|
|
9589
9611
|
type: {
|
|
9590
9612
|
type: String,
|
|
@@ -9610,7 +9632,7 @@ const Ul = /* @__PURE__ */ v(Fl, [["render", Gl]]), Wl = {
|
|
|
9610
9632
|
return this.type === z.DIALBOT;
|
|
9611
9633
|
},
|
|
9612
9634
|
getIconName() {
|
|
9613
|
-
return
|
|
9635
|
+
return Vl[this.type];
|
|
9614
9636
|
},
|
|
9615
9637
|
contactCenterIconClasses() {
|
|
9616
9638
|
return [
|
|
@@ -9629,7 +9651,7 @@ const Ul = /* @__PURE__ */ v(Fl, [["render", Gl]]), Wl = {
|
|
|
9629
9651
|
}
|
|
9630
9652
|
}
|
|
9631
9653
|
};
|
|
9632
|
-
function
|
|
9654
|
+
function Xl(e, s, t, o, n, i) {
|
|
9633
9655
|
const r = f("dt-icon"), h = f("icon-dialbot");
|
|
9634
9656
|
return i.isIconType ? (a(), S(r, {
|
|
9635
9657
|
key: 0,
|
|
@@ -9646,16 +9668,16 @@ function Zl(e, s, t, o, n, i) {
|
|
|
9646
9668
|
m(h, { class: "d-svg--size24" })
|
|
9647
9669
|
], 2)) : p("", !0);
|
|
9648
9670
|
}
|
|
9649
|
-
const
|
|
9650
|
-
const
|
|
9671
|
+
const Jl = /* @__PURE__ */ v(Ql, [["render", Xl]]);
|
|
9672
|
+
const er = {
|
|
9651
9673
|
name: "DtRecipeGeneralRow",
|
|
9652
9674
|
components: {
|
|
9653
|
-
DtEmojiTextWrapper:
|
|
9654
|
-
DtBadge:
|
|
9675
|
+
DtEmojiTextWrapper: et,
|
|
9676
|
+
DtBadge: ci,
|
|
9655
9677
|
DtIcon: x,
|
|
9656
9678
|
DtButton: K,
|
|
9657
|
-
DtTooltip:
|
|
9658
|
-
DtRecipeLeftbarGeneralRowIcon:
|
|
9679
|
+
DtTooltip: Je,
|
|
9680
|
+
DtRecipeLeftbarGeneralRowIcon: Jl
|
|
9659
9681
|
},
|
|
9660
9682
|
inheritAttrs: !1,
|
|
9661
9683
|
props: {
|
|
@@ -9776,7 +9798,7 @@ const Ql = {
|
|
|
9776
9798
|
iconSize: {
|
|
9777
9799
|
type: String,
|
|
9778
9800
|
default: "300",
|
|
9779
|
-
validator: (e) =>
|
|
9801
|
+
validator: (e) => Kl.includes(e)
|
|
9780
9802
|
}
|
|
9781
9803
|
},
|
|
9782
9804
|
emits: [
|
|
@@ -9820,10 +9842,10 @@ const Ql = {
|
|
|
9820
9842
|
return this.type;
|
|
9821
9843
|
},
|
|
9822
9844
|
generalRowListeners() {
|
|
9823
|
-
return
|
|
9845
|
+
return Qe(this.$attrs);
|
|
9824
9846
|
},
|
|
9825
9847
|
getAriaLabel() {
|
|
9826
|
-
return this.ariaLabel ? this.ariaLabel :
|
|
9848
|
+
return this.ariaLabel ? this.ariaLabel : tt([this.description, this.unreadCountTooltip, this.dndTextTooltip]);
|
|
9827
9849
|
}
|
|
9828
9850
|
},
|
|
9829
9851
|
watch: {
|
|
@@ -9837,25 +9859,25 @@ const Ql = {
|
|
|
9837
9859
|
},
|
|
9838
9860
|
methods: {
|
|
9839
9861
|
validateProps() {
|
|
9840
|
-
this.type === z.CONTACT_CENTER && !Object.keys(Be).includes(this.color) && console.error(
|
|
9862
|
+
this.type === z.CONTACT_CENTER && !Object.keys(Be).includes(this.color) && console.error(ql);
|
|
9841
9863
|
}
|
|
9842
9864
|
}
|
|
9843
|
-
},
|
|
9865
|
+
}, tr = ["data-qa", "aria-label", "title", "href"], sr = { class: "dt-leftbar-row__alpha" }, ir = {
|
|
9844
9866
|
key: 0,
|
|
9845
9867
|
class: "dt-leftbar-row__is-typing"
|
|
9846
|
-
},
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
],
|
|
9868
|
+
}, nr = /* @__PURE__ */ _("span", null, null, -1), ar = /* @__PURE__ */ _("span", null, null, -1), or = /* @__PURE__ */ _("span", null, null, -1), lr = [
|
|
9869
|
+
nr,
|
|
9870
|
+
ar,
|
|
9871
|
+
or
|
|
9872
|
+
], rr = { class: "dt-leftbar-row__label" }, dr = { class: "dt-leftbar-row__omega" }, cr = { class: "dt-leftbar-row__dnd" }, ur = {
|
|
9851
9873
|
key: 1,
|
|
9852
9874
|
class: "dt-leftbar-row__active-voice"
|
|
9853
|
-
},
|
|
9875
|
+
}, hr = {
|
|
9854
9876
|
key: 0,
|
|
9855
9877
|
class: "dt-leftbar-row__action",
|
|
9856
9878
|
"data-qa": "dt-leftbar-row-action"
|
|
9857
9879
|
};
|
|
9858
|
-
function
|
|
9880
|
+
function fr(e, s, t, o, n, i) {
|
|
9859
9881
|
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
9882
|
return a(), l("div", {
|
|
9861
9883
|
class: y(i.leftbarGeneralRowClasses),
|
|
@@ -9868,8 +9890,8 @@ function cr(e, s, t, o, n, i) {
|
|
|
9868
9890
|
title: t.description,
|
|
9869
9891
|
href: "href" in e.$attrs ? e.$attrs.href : "javascript:void(0)"
|
|
9870
9892
|
}, e.$attrs), [
|
|
9871
|
-
_("div",
|
|
9872
|
-
t.isTyping ? (a(), l("div",
|
|
9893
|
+
_("div", sr, [
|
|
9894
|
+
t.isTyping ? (a(), l("div", ir, lr)) : d(e.$slots, "left", { key: 1 }, () => [
|
|
9873
9895
|
m(r, {
|
|
9874
9896
|
type: i.getIcon,
|
|
9875
9897
|
color: t.color,
|
|
@@ -9878,7 +9900,7 @@ function cr(e, s, t, o, n, i) {
|
|
|
9878
9900
|
}, null, 8, ["type", "color", "icon-size"])
|
|
9879
9901
|
])
|
|
9880
9902
|
]),
|
|
9881
|
-
_("div",
|
|
9903
|
+
_("div", rr, [
|
|
9882
9904
|
d(e.$slots, "label", {}, () => [
|
|
9883
9905
|
m(h, {
|
|
9884
9906
|
class: "dt-leftbar-row__description",
|
|
@@ -9892,18 +9914,18 @@ function cr(e, s, t, o, n, i) {
|
|
|
9892
9914
|
})
|
|
9893
9915
|
])
|
|
9894
9916
|
]),
|
|
9895
|
-
_("div",
|
|
9917
|
+
_("div", dr, [
|
|
9896
9918
|
t.dndText ? (a(), S(u, {
|
|
9897
9919
|
key: 0,
|
|
9898
9920
|
placement: "top",
|
|
9899
9921
|
message: t.dndTextTooltip
|
|
9900
9922
|
}, {
|
|
9901
9923
|
anchor: c(() => [
|
|
9902
|
-
_("div",
|
|
9924
|
+
_("div", cr, I(t.dndText), 1)
|
|
9903
9925
|
]),
|
|
9904
9926
|
_: 1
|
|
9905
9927
|
}, 8, ["message"])) : p("", !0),
|
|
9906
|
-
t.activeVoiceChat ? (a(), l("div",
|
|
9928
|
+
t.activeVoiceChat ? (a(), l("div", ur, [
|
|
9907
9929
|
m(g, {
|
|
9908
9930
|
size: "300",
|
|
9909
9931
|
name: "activity"
|
|
@@ -9928,8 +9950,8 @@ function cr(e, s, t, o, n, i) {
|
|
|
9928
9950
|
_: 1
|
|
9929
9951
|
}, 8, ["message"])) : p("", !0)
|
|
9930
9952
|
])
|
|
9931
|
-
], 16,
|
|
9932
|
-
t.hasCallButton ? (a(), l("div",
|
|
9953
|
+
], 16, tr),
|
|
9954
|
+
t.hasCallButton ? (a(), l("div", hr, [
|
|
9933
9955
|
m(u, {
|
|
9934
9956
|
message: t.callButtonTooltip,
|
|
9935
9957
|
placement: "top"
|
|
@@ -9961,11 +9983,11 @@ function cr(e, s, t, o, n, i) {
|
|
|
9961
9983
|
])) : p("", !0)
|
|
9962
9984
|
], 2);
|
|
9963
9985
|
}
|
|
9964
|
-
const
|
|
9986
|
+
const fs = /* @__PURE__ */ v(er, [["render", fr]]), pr = {
|
|
9965
9987
|
name: "DtRecipeGroupRow",
|
|
9966
9988
|
components: {
|
|
9967
9989
|
DtIcon: x,
|
|
9968
|
-
DtRecipeGeneralRow:
|
|
9990
|
+
DtRecipeGeneralRow: fs
|
|
9969
9991
|
},
|
|
9970
9992
|
inheritAttrs: !1,
|
|
9971
9993
|
props: {
|
|
@@ -10028,13 +10050,18 @@ const cs = /* @__PURE__ */ v(Ql, [["render", cr]]), ur = {
|
|
|
10028
10050
|
* @type {PointerEvent | KeyboardEvent}
|
|
10029
10051
|
*/
|
|
10030
10052
|
"click"
|
|
10031
|
-
]
|
|
10053
|
+
],
|
|
10054
|
+
computed: {
|
|
10055
|
+
ariaLabel() {
|
|
10056
|
+
return tt([this.groupCountText, this.names]);
|
|
10057
|
+
}
|
|
10058
|
+
}
|
|
10032
10059
|
};
|
|
10033
|
-
function
|
|
10060
|
+
function mr(e, s, t, o, n, i) {
|
|
10034
10061
|
const r = f("dt-icon"), h = f("dt-recipe-general-row");
|
|
10035
10062
|
return a(), S(h, C({
|
|
10036
10063
|
description: t.names,
|
|
10037
|
-
"aria-label":
|
|
10064
|
+
"aria-label": i.ariaLabel,
|
|
10038
10065
|
"unread-count": t.unreadCount,
|
|
10039
10066
|
"has-unreads": t.hasUnreads,
|
|
10040
10067
|
"unread-count-tooltip": t.unreadCountTooltip,
|
|
@@ -10050,13 +10077,13 @@ function hr(e, s, t, o, n, i) {
|
|
|
10050
10077
|
_: 1
|
|
10051
10078
|
}, 16, ["description", "aria-label", "unread-count", "has-unreads", "unread-count-tooltip", "selected", "is-typing"]);
|
|
10052
10079
|
}
|
|
10053
|
-
const
|
|
10080
|
+
const Od = /* @__PURE__ */ v(pr, [["render", mr]]), gr = {
|
|
10054
10081
|
name: "DtRecipeGroupRow",
|
|
10055
10082
|
components: {
|
|
10056
|
-
DtAvatar:
|
|
10083
|
+
DtAvatar: st,
|
|
10057
10084
|
DtIcon: x,
|
|
10058
|
-
DtRecipeGeneralRow:
|
|
10059
|
-
DtEmojiTextWrapper:
|
|
10085
|
+
DtRecipeGeneralRow: fs,
|
|
10086
|
+
DtEmojiTextWrapper: et
|
|
10060
10087
|
},
|
|
10061
10088
|
inheritAttrs: !1,
|
|
10062
10089
|
props: {
|
|
@@ -10195,19 +10222,22 @@ const wd = /* @__PURE__ */ v(ur, [["render", hr]]), fr = {
|
|
|
10195
10222
|
}
|
|
10196
10223
|
},
|
|
10197
10224
|
contactRowListeners() {
|
|
10198
|
-
return
|
|
10225
|
+
return Qe(this.$attrs);
|
|
10199
10226
|
},
|
|
10200
10227
|
avatarInitial() {
|
|
10201
10228
|
var e;
|
|
10202
10229
|
return ((e = this.name) == null ? void 0 : e[0]) ?? "";
|
|
10230
|
+
},
|
|
10231
|
+
contactDescription() {
|
|
10232
|
+
return tt([this.name, this.presenceText, this.userStatus]);
|
|
10203
10233
|
}
|
|
10204
10234
|
}
|
|
10205
|
-
},
|
|
10206
|
-
function
|
|
10235
|
+
}, _r = ["src"], br = { class: "dt-leftbar-row__status" };
|
|
10236
|
+
function yr(e, s, t, o, n, i) {
|
|
10207
10237
|
const r = f("dt-icon"), h = f("dt-avatar"), u = f("dt-emoji-text-wrapper"), g = f("dt-recipe-general-row");
|
|
10208
10238
|
return a(), S(g, C({
|
|
10209
10239
|
"unread-count": t.unreadCount,
|
|
10210
|
-
description:
|
|
10240
|
+
description: i.contactDescription,
|
|
10211
10241
|
"has-unreads": t.hasUnreads,
|
|
10212
10242
|
selected: t.selected,
|
|
10213
10243
|
"has-call-button": t.hasCallButton,
|
|
@@ -10230,7 +10260,7 @@ function gr(e, s, t, o, n, i) {
|
|
|
10230
10260
|
"data-qa": "dt-avatar-image",
|
|
10231
10261
|
src: t.avatarSrc,
|
|
10232
10262
|
alt: ""
|
|
10233
|
-
}, null, 8,
|
|
10263
|
+
}, null, 8, _r)) : t.noInitials ? (a(), S(r, {
|
|
10234
10264
|
key: 1,
|
|
10235
10265
|
name: "user",
|
|
10236
10266
|
size: "200"
|
|
@@ -10252,7 +10282,7 @@ function gr(e, s, t, o, n, i) {
|
|
|
10252
10282
|
]),
|
|
10253
10283
|
_: 1
|
|
10254
10284
|
}),
|
|
10255
|
-
_("div",
|
|
10285
|
+
_("div", br, [
|
|
10256
10286
|
t.presenceText ? (a(), l("span", {
|
|
10257
10287
|
key: 0,
|
|
10258
10288
|
"data-qa": "dt-leftbar-row-presence-text",
|
|
@@ -10275,8 +10305,8 @@ function gr(e, s, t, o, n, i) {
|
|
|
10275
10305
|
_: 1
|
|
10276
10306
|
}, 16, ["unread-count", "description", "has-unreads", "selected", "has-call-button", "muted", "is-typing", "call-button-tooltip", "unread-count-tooltip"]);
|
|
10277
10307
|
}
|
|
10278
|
-
const
|
|
10279
|
-
const
|
|
10308
|
+
const Ld = /* @__PURE__ */ v(gr, [["render", yr]]), vr = ["up", "down"], Sr = ["mentions", "messages"];
|
|
10309
|
+
const Cr = {
|
|
10280
10310
|
name: "DtRecipeUnreadPill",
|
|
10281
10311
|
components: {
|
|
10282
10312
|
DtIcon: x
|
|
@@ -10289,7 +10319,7 @@ const yr = {
|
|
|
10289
10319
|
kind: {
|
|
10290
10320
|
type: String,
|
|
10291
10321
|
required: !0,
|
|
10292
|
-
validator: (e) =>
|
|
10322
|
+
validator: (e) => Sr.includes(e)
|
|
10293
10323
|
},
|
|
10294
10324
|
/**
|
|
10295
10325
|
* The direction of the arrow icon
|
|
@@ -10298,7 +10328,7 @@ const yr = {
|
|
|
10298
10328
|
direction: {
|
|
10299
10329
|
type: String,
|
|
10300
10330
|
required: !0,
|
|
10301
|
-
validator: (e) =>
|
|
10331
|
+
validator: (e) => vr.includes(e)
|
|
10302
10332
|
}
|
|
10303
10333
|
},
|
|
10304
10334
|
emits: [
|
|
@@ -10317,8 +10347,8 @@ const yr = {
|
|
|
10317
10347
|
};
|
|
10318
10348
|
}
|
|
10319
10349
|
}
|
|
10320
|
-
},
|
|
10321
|
-
function
|
|
10350
|
+
}, Ir = { "data-qa": "dt-leftbar-unread-pill__label" };
|
|
10351
|
+
function wr(e, s, t, o, n, i) {
|
|
10322
10352
|
const r = f("dt-icon");
|
|
10323
10353
|
return a(), l("button", C({
|
|
10324
10354
|
class: ["dt-leftbar-unread-pill", `dt-leftbar-unread-pill--${t.kind}`],
|
|
@@ -10329,16 +10359,20 @@ function Sr(e, s, t, o, n, i) {
|
|
|
10329
10359
|
name: `arrow-${t.direction}`,
|
|
10330
10360
|
size: "300"
|
|
10331
10361
|
}, null, 8, ["name"]),
|
|
10332
|
-
_("span",
|
|
10362
|
+
_("span", Ir, [
|
|
10333
10363
|
d(e.$slots, "default")
|
|
10334
10364
|
])
|
|
10335
10365
|
], 16);
|
|
10336
10366
|
}
|
|
10337
|
-
const
|
|
10338
|
-
|
|
10367
|
+
const Td = /* @__PURE__ */ v(Cr, [["render", wr]]), Ge = {
|
|
10368
|
+
NORMAL: "",
|
|
10369
|
+
SEARCHED: "d-bgc-warning-subtle",
|
|
10370
|
+
ERROR: "d-bgc-critical-subtle"
|
|
10371
|
+
}, Ue = "NORMAL";
|
|
10372
|
+
const Er = {
|
|
10339
10373
|
name: "DtRecipeFeedItemRow",
|
|
10340
10374
|
components: {
|
|
10341
|
-
DtAvatar:
|
|
10375
|
+
DtAvatar: st,
|
|
10342
10376
|
DtLazyShow: $e,
|
|
10343
10377
|
DtListItem: ze
|
|
10344
10378
|
},
|
|
@@ -10387,12 +10421,15 @@ const Cr = {
|
|
|
10387
10421
|
isActive: {
|
|
10388
10422
|
type: Boolean,
|
|
10389
10423
|
default: !1
|
|
10424
|
+
},
|
|
10425
|
+
/**
|
|
10426
|
+
* state for the feed item row. Can be default, searched & error
|
|
10427
|
+
*/
|
|
10428
|
+
state: {
|
|
10429
|
+
type: String,
|
|
10430
|
+
default: Ue,
|
|
10431
|
+
validator: (e) => Object.keys(Ge).includes(e)
|
|
10390
10432
|
}
|
|
10391
|
-
// TODO: implement as part of DT-1157
|
|
10392
|
-
// state: {
|
|
10393
|
-
// type: String,
|
|
10394
|
-
// default: 'normal',
|
|
10395
|
-
// },
|
|
10396
10433
|
},
|
|
10397
10434
|
emits: [
|
|
10398
10435
|
/**
|
|
@@ -10410,6 +10447,11 @@ const Cr = {
|
|
|
10410
10447
|
*/
|
|
10411
10448
|
"focus"
|
|
10412
10449
|
],
|
|
10450
|
+
data() {
|
|
10451
|
+
return {
|
|
10452
|
+
faded: !1
|
|
10453
|
+
};
|
|
10454
|
+
},
|
|
10413
10455
|
computed: {
|
|
10414
10456
|
avatarInitials() {
|
|
10415
10457
|
return (this.displayName || "").split(" ").map((t) => t.charAt(0)).join("").slice(0, 2).toUpperCase();
|
|
@@ -10421,6 +10463,19 @@ const Cr = {
|
|
|
10421
10463
|
focusin: () => this.setFocus(!0),
|
|
10422
10464
|
focusout: () => this.setFocus(!1)
|
|
10423
10465
|
};
|
|
10466
|
+
},
|
|
10467
|
+
listItemClasses() {
|
|
10468
|
+
return [
|
|
10469
|
+
"d-w100p",
|
|
10470
|
+
"d-box-border",
|
|
10471
|
+
"d-ps-relative",
|
|
10472
|
+
"d-px8",
|
|
10473
|
+
{ "d-bgc-secondary-opaque": this.isActive && this.state === Ue },
|
|
10474
|
+
Ge[this.state],
|
|
10475
|
+
"feed-item-row",
|
|
10476
|
+
"d-t",
|
|
10477
|
+
"d-tp-bgc"
|
|
10478
|
+
];
|
|
10424
10479
|
}
|
|
10425
10480
|
},
|
|
10426
10481
|
methods: {
|
|
@@ -10429,29 +10484,32 @@ const Cr = {
|
|
|
10429
10484
|
},
|
|
10430
10485
|
setHover(e) {
|
|
10431
10486
|
this.$emit("hover", e);
|
|
10487
|
+
},
|
|
10488
|
+
fade() {
|
|
10489
|
+
this.state === Ue || this.faded === !0 || (this.$refs.FeedItemRef.$el.classList.remove(Ge[this.state]), this.faded = !0);
|
|
10432
10490
|
}
|
|
10433
10491
|
}
|
|
10434
|
-
},
|
|
10492
|
+
}, kr = ["src"], Or = {
|
|
10435
10493
|
key: 0,
|
|
10436
10494
|
"data-qa": "feed-item-row-header",
|
|
10437
10495
|
class: "d-d-flex d-ai-center"
|
|
10438
|
-
},
|
|
10496
|
+
}, 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
10497
|
class: "content-text-wrapper-class",
|
|
10440
10498
|
"data-qa": "feed-item-row-content"
|
|
10441
|
-
},
|
|
10499
|
+
}, Dr = {
|
|
10442
10500
|
class: "d-d-flex d-fw-wrap",
|
|
10443
10501
|
"data-qa": "feed-item-row-reactions"
|
|
10444
|
-
},
|
|
10502
|
+
}, Pr = {
|
|
10445
10503
|
"data-qa": "feed-item-row-menu",
|
|
10446
10504
|
class: "d-ps-absolute d-tn16 d-r12"
|
|
10447
10505
|
};
|
|
10448
|
-
function
|
|
10506
|
+
function xr(e, s, t, o, n, i) {
|
|
10449
10507
|
const r = f("dt-avatar"), h = f("dt-lazy-show"), u = f("dt-list-item");
|
|
10450
10508
|
return a(), S(u, C({
|
|
10451
10509
|
ref: "FeedItemRef",
|
|
10452
10510
|
"navigation-type": "none"
|
|
10453
10511
|
}, e.$attrs, {
|
|
10454
|
-
class:
|
|
10512
|
+
class: i.listItemClasses,
|
|
10455
10513
|
"data-qa": "feed-item-row"
|
|
10456
10514
|
}, M(i.feedListeners)), {
|
|
10457
10515
|
left: c(() => [
|
|
@@ -10466,7 +10524,7 @@ function Ar(e, s, t, o, n, i) {
|
|
|
10466
10524
|
"data-qa": "feed-item-row-avatar-img",
|
|
10467
10525
|
alt: "",
|
|
10468
10526
|
src: t.avatarImageUrl
|
|
10469
|
-
}, null, 8,
|
|
10527
|
+
}, null, 8, kr)) : p("", !0)
|
|
10470
10528
|
]),
|
|
10471
10529
|
_: 1
|
|
10472
10530
|
}, 8, ["initials"])) : p("", !0),
|
|
@@ -10479,13 +10537,13 @@ function Ar(e, s, t, o, n, i) {
|
|
|
10479
10537
|
])
|
|
10480
10538
|
]),
|
|
10481
10539
|
bottom: c(() => [
|
|
10482
|
-
_("div",
|
|
10540
|
+
_("div", Dr, [
|
|
10483
10541
|
d(e.$slots, "reactions")
|
|
10484
10542
|
]),
|
|
10485
10543
|
d(e.$slots, "threading")
|
|
10486
10544
|
]),
|
|
10487
10545
|
right: c(() => [
|
|
10488
|
-
Se(_("div",
|
|
10546
|
+
Se(_("div", Pr, [
|
|
10489
10547
|
m(h, {
|
|
10490
10548
|
appear: !0,
|
|
10491
10549
|
transition: "fade",
|
|
@@ -10502,11 +10560,11 @@ function Ar(e, s, t, o, n, i) {
|
|
|
10502
10560
|
]),
|
|
10503
10561
|
default: c(() => [
|
|
10504
10562
|
_("article", null, [
|
|
10505
|
-
t.showHeader ? (a(), l("div",
|
|
10506
|
-
_("p",
|
|
10507
|
-
_("time",
|
|
10563
|
+
t.showHeader ? (a(), l("div", Or, [
|
|
10564
|
+
_("p", Lr, I(t.displayName), 1),
|
|
10565
|
+
_("time", Tr, I(t.time), 1)
|
|
10508
10566
|
])) : p("", !0),
|
|
10509
|
-
_("span",
|
|
10567
|
+
_("span", Ar, [
|
|
10510
10568
|
d(e.$slots, "default")
|
|
10511
10569
|
])
|
|
10512
10570
|
])
|
|
@@ -10514,7 +10572,7 @@ function Ar(e, s, t, o, n, i) {
|
|
|
10514
10572
|
_: 3
|
|
10515
10573
|
}, 16, ["class"]);
|
|
10516
10574
|
}
|
|
10517
|
-
const
|
|
10575
|
+
const Ad = /* @__PURE__ */ v(Er, [["render", xr]]), Rr = {
|
|
10518
10576
|
name: "DtRecipeTimePill",
|
|
10519
10577
|
props: {
|
|
10520
10578
|
/**
|
|
@@ -10537,23 +10595,23 @@ const Od = /* @__PURE__ */ v(Cr, [["render", Ar]]), Dr = {
|
|
|
10537
10595
|
}
|
|
10538
10596
|
}
|
|
10539
10597
|
}
|
|
10540
|
-
},
|
|
10541
|
-
function
|
|
10598
|
+
}, Br = ["dateTime"];
|
|
10599
|
+
function $r(e, s, t, o, n, i) {
|
|
10542
10600
|
return a(), l("time", {
|
|
10543
10601
|
"data-qa": "dt-time-pill",
|
|
10544
10602
|
dateTime: t.dateTime,
|
|
10545
10603
|
class: "d-ba d-bar-pill d-baw1 d-bc-black-300 d-px16 d-py4 d-fs-100"
|
|
10546
|
-
}, I(t.dateTimeDisplay), 9,
|
|
10604
|
+
}, I(t.dateTimeDisplay), 9, Br);
|
|
10547
10605
|
}
|
|
10548
|
-
const
|
|
10606
|
+
const Dd = /* @__PURE__ */ v(Rr, [["render", $r]]), Nr = [
|
|
10549
10607
|
"emojiUnicodeOrShortname",
|
|
10550
10608
|
"isSelected",
|
|
10551
10609
|
"ariaLabel",
|
|
10552
10610
|
"tooltip",
|
|
10553
10611
|
"num"
|
|
10554
|
-
],
|
|
10612
|
+
], zr = {
|
|
10555
10613
|
name: "DtRecipeEmojiRow",
|
|
10556
|
-
components: { DtTooltip:
|
|
10614
|
+
components: { DtTooltip: Je, DtButton: K, DtEmoji: Ks, DtEmojiTextWrapper: et },
|
|
10557
10615
|
mixins: [],
|
|
10558
10616
|
props: {
|
|
10559
10617
|
/**
|
|
@@ -10564,7 +10622,7 @@ const Ld = /* @__PURE__ */ v(Dr, [["render", xr]]), Rr = [
|
|
|
10564
10622
|
default: () => [],
|
|
10565
10623
|
validator: (e) => {
|
|
10566
10624
|
for (const s of e)
|
|
10567
|
-
if (!
|
|
10625
|
+
if (!Nr.every((o) => s[o] !== void 0))
|
|
10568
10626
|
return !1;
|
|
10569
10627
|
return !0;
|
|
10570
10628
|
}
|
|
@@ -10585,10 +10643,10 @@ const Ld = /* @__PURE__ */ v(Dr, [["render", xr]]), Rr = [
|
|
|
10585
10643
|
});
|
|
10586
10644
|
}
|
|
10587
10645
|
}
|
|
10588
|
-
},
|
|
10589
|
-
function
|
|
10646
|
+
}, 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" };
|
|
10647
|
+
function Kr(e, s, t, o, n, i) {
|
|
10590
10648
|
const r = f("dt-emoji-text-wrapper"), h = f("dt-emoji"), u = f("dt-button"), g = f("dt-tooltip");
|
|
10591
|
-
return a(), l("span",
|
|
10649
|
+
return a(), l("span", Mr, [
|
|
10592
10650
|
(a(!0), l(Y, null, ee(t.reactions, (w) => (a(), l("span", {
|
|
10593
10651
|
key: w.unicodeOutput,
|
|
10594
10652
|
reaction: w,
|
|
@@ -10614,19 +10672,19 @@ function Vr(e, s, t, o, n, i) {
|
|
|
10614
10672
|
onClick: (L) => i.emojiClicked(w)
|
|
10615
10673
|
}, {
|
|
10616
10674
|
default: c(() => [
|
|
10617
|
-
_("span",
|
|
10675
|
+
_("span", Vr, [
|
|
10618
10676
|
m(h, {
|
|
10619
10677
|
size: "200",
|
|
10620
10678
|
code: w.emojiUnicodeOrShortname
|
|
10621
10679
|
}, null, 8, ["code"])
|
|
10622
10680
|
]),
|
|
10623
|
-
_("span",
|
|
10681
|
+
_("span", qr, I(w.num), 1)
|
|
10624
10682
|
]),
|
|
10625
10683
|
_: 2
|
|
10626
10684
|
}, 1032, ["class", "aria-label", "attrs", "onClick"])
|
|
10627
10685
|
]),
|
|
10628
10686
|
default: c(() => [
|
|
10629
|
-
_("span",
|
|
10687
|
+
_("span", Fr, [
|
|
10630
10688
|
m(r, { size: "200" }, {
|
|
10631
10689
|
default: c(() => [
|
|
10632
10690
|
P(I(w.tooltip), 1)
|
|
@@ -10637,159 +10695,159 @@ function Vr(e, s, t, o, n, i) {
|
|
|
10637
10695
|
]),
|
|
10638
10696
|
_: 2
|
|
10639
10697
|
}, 1032, ["onShown"])
|
|
10640
|
-
], 8,
|
|
10698
|
+
], 8, Hr))), 128))
|
|
10641
10699
|
]);
|
|
10642
10700
|
}
|
|
10643
|
-
const
|
|
10701
|
+
const Pd = /* @__PURE__ */ v(zr, [["render", Kr]]);
|
|
10644
10702
|
export {
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10703
|
+
Xs as AVATAR_COLORS,
|
|
10704
|
+
Pt as AVATAR_GROUP_VALIDATOR,
|
|
10705
|
+
Ur as AVATAR_ICON_SIZES,
|
|
10706
|
+
At as AVATAR_KIND_MODIFIERS,
|
|
10707
|
+
Qs as AVATAR_PRESENCE_SIZE_MODIFIERS,
|
|
10708
|
+
Dt as AVATAR_PRESENCE_STATES,
|
|
10651
10709
|
Ke as AVATAR_SIZE_MODIFIERS,
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10710
|
+
Bt as BADGE_DECORATION_MODIFIERS,
|
|
10711
|
+
Rt as BADGE_KIND_MODIFIERS,
|
|
10712
|
+
xt as BADGE_TYPE_MODIFIERS,
|
|
10713
|
+
Pi as BREADCRUMBS_INVERTED_MODIFIER,
|
|
10714
|
+
Di as BREADCRUMB_ITEM_SELECTED_MODIFIER,
|
|
10715
|
+
$t as BUTTON_GROUP_ALIGNMENT,
|
|
10716
|
+
hs as CALLBAR_BUTTON_VALID_WIDTH_SIZE,
|
|
10717
|
+
Vt as CHIP_SIZE_MODIFIERS,
|
|
10718
|
+
vl as COLOR_CODES,
|
|
10719
|
+
Bd as DEFAULT_VALIDATION_MESSAGE_TYPE,
|
|
10720
|
+
$d as DESCRIPTION_SIZE_TYPES,
|
|
10721
|
+
st as DtAvatar,
|
|
10722
|
+
ci as DtBadge,
|
|
10723
|
+
Wr as DtBanner,
|
|
10724
|
+
zi as DtBreadcrumbItem,
|
|
10725
|
+
Zr as DtBreadcrumbs,
|
|
10668
10726
|
K as DtButton,
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10727
|
+
Yr as DtButtonGroup,
|
|
10728
|
+
Gi as DtCard,
|
|
10729
|
+
Jt as DtCheckableInputMixin,
|
|
10730
|
+
dd as DtCheckbox,
|
|
10731
|
+
cd as DtCheckboxGroup,
|
|
10732
|
+
rs as DtChip,
|
|
10733
|
+
Qr as DtCodeblock,
|
|
10734
|
+
Xr as DtCollapsible,
|
|
10735
|
+
bn as DtCombobox,
|
|
10736
|
+
Hn as DtDropdown,
|
|
10737
|
+
Jr as DtDropdownSeparator,
|
|
10738
|
+
es as DtGroupableInputMixin,
|
|
10681
10739
|
x as DtIcon,
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10740
|
+
ed as DtImageViewer,
|
|
10741
|
+
qs as DtInput,
|
|
10742
|
+
ls as DtInputGroup,
|
|
10743
|
+
Yn as DtInputGroupMixin,
|
|
10744
|
+
Xt as DtInputMixin,
|
|
10745
|
+
ss as DtKeyboardListNavigationMixin,
|
|
10746
|
+
md as DtKeyboardShortcut,
|
|
10689
10747
|
$e as DtLazyShow,
|
|
10690
|
-
|
|
10748
|
+
Bi as DtLink,
|
|
10691
10749
|
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
|
-
|
|
10750
|
+
nd as DtListItemGroup,
|
|
10751
|
+
id as DtListSection,
|
|
10752
|
+
sd as DtModal,
|
|
10753
|
+
td as DtNotice,
|
|
10754
|
+
ad as DtPagination,
|
|
10755
|
+
ot as DtPopover,
|
|
10756
|
+
Ys as DtPresence,
|
|
10757
|
+
od as DtRadio,
|
|
10758
|
+
ld as DtRadioGroup,
|
|
10759
|
+
nl as DtRecipeCallbarButton,
|
|
10760
|
+
vd as DtRecipeCallbarButtonWithPopover,
|
|
10761
|
+
yd as DtRecipeComboboxMultiSelect,
|
|
10762
|
+
jo as DtRecipeComboboxWithPopover,
|
|
10763
|
+
Sd as DtRecipeContactInfo,
|
|
10764
|
+
Ld as DtRecipeContactRow,
|
|
10765
|
+
Pd as DtRecipeEmojiRow,
|
|
10766
|
+
Ad as DtRecipeFeedItemRow,
|
|
10767
|
+
fs as DtRecipeGeneralRow,
|
|
10768
|
+
Od as DtRecipeGroupRow,
|
|
10769
|
+
Ed as DtRecipeGroupedChip,
|
|
10770
|
+
wd as DtRecipeIvrNode,
|
|
10771
|
+
kd as DtRecipeSettingsMenuButton,
|
|
10772
|
+
Dd as DtRecipeTimePill,
|
|
10773
|
+
Cd as DtRecipeTopBannerInfo,
|
|
10774
|
+
Td as DtRecipeUnreadPill,
|
|
10775
|
+
gd as DtRootLayout,
|
|
10776
|
+
bd as DtScroller,
|
|
10777
|
+
ud as DtSelectMenu,
|
|
10778
|
+
$s as DtSkeleton,
|
|
10779
|
+
Nd as DtSkeletonListItem,
|
|
10780
|
+
zd as DtSkeletonParagraph,
|
|
10781
|
+
Md as DtSkeletonShape,
|
|
10782
|
+
Hd as DtSkeletonText,
|
|
10783
|
+
_d as DtStack,
|
|
10784
|
+
Fd as DtTab,
|
|
10785
|
+
Vd as DtTabGroup,
|
|
10786
|
+
rd as DtTabPanel,
|
|
10787
|
+
hd as DtToast,
|
|
10788
|
+
fd as DtToggle,
|
|
10789
|
+
Je as DtTooltip,
|
|
10732
10790
|
me as DtValidationMessages,
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10791
|
+
qd as ICON_SIZE_MODIFIERS,
|
|
10792
|
+
Kd as INPUT_SIZES,
|
|
10793
|
+
jd as INPUT_TYPES,
|
|
10794
|
+
ht as IVR_NODE_BRANCH,
|
|
10795
|
+
ut as IVR_NODE_EXPERT,
|
|
10738
10796
|
He as IVR_NODE_GO_TO,
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10797
|
+
pt as IVR_NODE_HANGUP,
|
|
10798
|
+
kl as IVR_NODE_ICON_TYPES,
|
|
10799
|
+
Id as IVR_NODE_LABELS,
|
|
10800
|
+
dt as IVR_NODE_PROMPT_COLLECT,
|
|
10801
|
+
rt as IVR_NODE_PROMPT_MENU,
|
|
10802
|
+
ct as IVR_NODE_PROMPT_PLAY,
|
|
10803
|
+
ft as IVR_NODE_TRANSFER,
|
|
10746
10804
|
Be as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS,
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10805
|
+
ql as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR,
|
|
10806
|
+
Vl as LEFTBAR_GENERAL_ROW_ICON_MAPPING,
|
|
10807
|
+
Kl as LEFTBAR_GENERAL_ROW_ICON_SIZES,
|
|
10750
10808
|
z as LEFTBAR_GENERAL_ROW_TYPES,
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10809
|
+
xs as LINK_KIND_MODIFIERS,
|
|
10810
|
+
Ps as LINK_VARIANTS,
|
|
10811
|
+
Mt as MODAL_KIND_MODIFIERS,
|
|
10812
|
+
Ht as MODAL_SIZE_MODIFIERS,
|
|
10813
|
+
Go as MULTI_SELECT_SIZES,
|
|
10756
10814
|
Oe as NOTICE_KINDS,
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10815
|
+
os as POPOVER_CONTENT_WIDTHS,
|
|
10816
|
+
kn as POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
10817
|
+
Ln as POPOVER_INITIAL_FOCUS_STRINGS,
|
|
10818
|
+
zt as POPOVER_PADDING_CLASSES,
|
|
10819
|
+
On as POPOVER_ROLES,
|
|
10762
10820
|
be as PRESENCE_STATES,
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10821
|
+
js as PRESENCE_STATES_LIST,
|
|
10822
|
+
Nr as REACTIONS_ATTRIBUTES,
|
|
10823
|
+
Co as ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS,
|
|
10824
|
+
ds as ROOT_LAYOUT_SIDEBAR_POSITIONS,
|
|
10825
|
+
qt as SELECT_SIZE_MODIFIERS,
|
|
10826
|
+
Ua as SELECT_STATE_MODIFIERS,
|
|
10827
|
+
pd as SHORTCUTS_ALIASES_LIST,
|
|
10770
10828
|
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
|
-
|
|
10829
|
+
_o as SHORTCUTS_ICON_SEPARATOR,
|
|
10830
|
+
Gd as SKELETON_HEADING_HEIGHTS,
|
|
10831
|
+
Ud as SKELETON_RIPPLE_DURATION,
|
|
10832
|
+
Wd as SKELETON_SHAPES,
|
|
10833
|
+
Zd as SKELETON_SHAPE_SIZES,
|
|
10834
|
+
Yd as SKELETON_TEXT_TYPES,
|
|
10835
|
+
Qd as TAB_IMPORTANCE_MODIFIERS,
|
|
10836
|
+
Xd as TAB_LIST_IMPORTANCE_MODIFIERS,
|
|
10837
|
+
Jd as TAB_LIST_KIND_MODIFIERS,
|
|
10838
|
+
ec as TAB_LIST_SIZES,
|
|
10839
|
+
no as TOAST_ROLES,
|
|
10840
|
+
tc as TOOLTIP_DELAY_MS,
|
|
10841
|
+
sc as TOOLTIP_DIRECTIONS,
|
|
10842
|
+
ic as TOOLTIP_HIDE_ON_CLICK_VARIANTS,
|
|
10843
|
+
nc as TOOLTIP_KIND_MODIFIERS,
|
|
10844
|
+
ac as TOOLTIP_STICKY_VALUES,
|
|
10845
|
+
vr as UNREAD_PILL_DIRECTIONS,
|
|
10846
|
+
Sr as UNREAD_PILL_KINDS,
|
|
10847
|
+
oc as VALIDATION_MESSAGE_TYPES,
|
|
10848
|
+
lc as filterFormattedMessages,
|
|
10849
|
+
Tt as formatMessages,
|
|
10792
10850
|
q as getUniqueString,
|
|
10793
|
-
|
|
10794
|
-
|
|
10851
|
+
We as getValidationState,
|
|
10852
|
+
Qt as validationMessageValidator
|
|
10795
10853
|
};
|