@dialpad/dialtone-vue 3.65.3 → 3.66.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 +14 -0
- package/dist/dialtone-vue.cjs +6 -6
- package/dist/dialtone-vue.js +739 -707
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +98 -99
- package/dist/emoji_text_wrapper-099f66b6.cjs +38 -0
- package/dist/{emoji_text_wrapper-7edbe839.js → emoji_text_wrapper-2f4dd42b.js} +12715 -7077
- package/dist/style.css +1 -1
- package/package.json +9 -13
- package/dist/emoji_text_wrapper-14adf3de.cjs +0 -25
package/dist/dialtone-vue.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { z as Id, y as wd, X as Ed, $ as kd, Z as Od, Y as Ld, J as Td, H as Ad, a5 as Dd, F as Pd, B as xd, a4 as Rd, a0 as Bd, a1 as Nd, a3 as zd, a2 as $d, P as Md, O as Hd, K as Vd, N as qd, R as Fd, Q as Kd, W as jd, S as Gd, U as Wd, V as Ud, A as Zd } from "./emoji_text_wrapper-7edbe839.js";
|
|
1
|
+
import { _ as v, o as a, c as r, t as I, a as p, b as m, n as b, D as R, g as F, d as Ke, s as Is, w as we, r as f, e as c, f as S, m as C, h as se, i as g, j as D, k as N, l as K, p as u, q as V, u as W, v as Q, L as ws, x as Es, I as ks, M as Os, F as X, y as ie, z as M, A as J, B as Ee, C as Ls, E as ke, G as Se, H as Ce, J as Ue, T as Ze, K as Ne, N as Ye, O as Ts, P as As, Q as Ds, R as Ps, S as jt, U as H, V as me, W as Gt, X as wt, Y as We, Z as Wt, $ as Ut, a0 as Zt, a1 as Qe, a2 as xs, a3 as Rs, a4 as Et, a5 as pe, a6 as Re, a7 as Yt, a8 as Bs, a9 as Ns, aa as Qt, ab as zs, ac as $s, ad as Ms, ae as Hs, af as Vs, ag as Xt, ah as qs, ai as Jt } from "./emoji_text_wrapper-2f4dd42b.js";
|
|
2
|
+
import { al as Cd, ak as Id, aA as wd, aD as Ed, aC as kd, aB as Od, aq as Ld, ap as Td, aJ as Ad, ao as Dd, an as Pd, aI as xd, aE as Rd, aF as Bd, aH as Nd, aG as zd, au as $d, at as Md, ar as Hd, as as Vd, aw as qd, av as Fd, az as Kd, ax as jd, ay as Gd, aj as Wd, am as Ud } from "./emoji_text_wrapper-2f4dd42b.js";
|
|
4
3
|
const be = {
|
|
5
4
|
BUSY: "busy",
|
|
6
5
|
AWAY: "away",
|
|
@@ -48,7 +47,7 @@ function Ws(e, s, t, o, n, i) {
|
|
|
48
47
|
}, [
|
|
49
48
|
t.srText ? (a(), r("span", Gs, I(t.srText), 1)) : p("", !0),
|
|
50
49
|
m("div", {
|
|
51
|
-
class:
|
|
50
|
+
class: b(["d-presence__inner", {
|
|
52
51
|
"d-presence__inner--active": t.presence === "active",
|
|
53
52
|
"d-presence__inner--away": t.presence === "away",
|
|
54
53
|
"d-presence__inner--busy": t.presence === "busy",
|
|
@@ -57,29 +56,29 @@ function Ws(e, s, t, o, n, i) {
|
|
|
57
56
|
}, null, 2)
|
|
58
57
|
], 8, js);
|
|
59
58
|
}
|
|
60
|
-
const Us = /* @__PURE__ */ v(Ks, [["render", Ws]]),
|
|
59
|
+
const Us = /* @__PURE__ */ v(Ks, [["render", Ws]]), je = {
|
|
61
60
|
xs: "d-avatar--xs",
|
|
62
61
|
sm: "d-avatar--sm",
|
|
63
62
|
md: "d-avatar--md",
|
|
64
63
|
lg: "d-avatar--lg",
|
|
65
64
|
xl: "d-avatar--xl"
|
|
66
|
-
},
|
|
65
|
+
}, kt = {
|
|
67
66
|
default: "",
|
|
68
67
|
icon: "d-avatar__icon",
|
|
69
68
|
initials: "d-avatar__initials"
|
|
70
69
|
}, Zs = {
|
|
71
70
|
md: "d-avatar__presence--md",
|
|
72
71
|
lg: "d-avatar__presence--lg"
|
|
73
|
-
},
|
|
72
|
+
}, Ot = {
|
|
74
73
|
NONE: "",
|
|
75
74
|
BUSY: "busy",
|
|
76
75
|
AWAY: "away",
|
|
77
76
|
OFFLINE: "offline",
|
|
78
77
|
ACTIVE: "active"
|
|
79
|
-
}, Ys = [45, -45, 90, -90, 135, -135, 180, -180],
|
|
78
|
+
}, Ys = [45, -45, 90, -90, 135, -135, 180, -180], Lt = {
|
|
80
79
|
with100: ["purple-100", "magenta-100", "gold-100", "blue-100"],
|
|
81
80
|
with200: ["purple-200", "magenta-200", "gold-200", "blue-200"]
|
|
82
|
-
}, Qs = 3, Xs = 2,
|
|
81
|
+
}, Qs = 3, Xs = 2, Tt = (e) => e > 1;
|
|
83
82
|
const Js = {
|
|
84
83
|
name: "DtAvatar",
|
|
85
84
|
components: { DtPresence: Us, DtIcon: R },
|
|
@@ -109,7 +108,7 @@ const Js = {
|
|
|
109
108
|
size: {
|
|
110
109
|
type: String,
|
|
111
110
|
default: "md",
|
|
112
|
-
validator: (e) => Object.keys(
|
|
111
|
+
validator: (e) => Object.keys(je).includes(e)
|
|
113
112
|
},
|
|
114
113
|
/**
|
|
115
114
|
* Used to customize the avatar container
|
|
@@ -133,8 +132,8 @@ const Js = {
|
|
|
133
132
|
*/
|
|
134
133
|
presence: {
|
|
135
134
|
type: String,
|
|
136
|
-
default:
|
|
137
|
-
validator: (e) => Object.values(
|
|
135
|
+
default: Ot.NONE,
|
|
136
|
+
validator: (e) => Object.values(Ot).includes(e)
|
|
138
137
|
},
|
|
139
138
|
/**
|
|
140
139
|
* A set of props to be passed into the presence component.
|
|
@@ -165,7 +164,7 @@ const Js = {
|
|
|
165
164
|
group: {
|
|
166
165
|
type: Number,
|
|
167
166
|
default: void 0,
|
|
168
|
-
validator: (e) =>
|
|
167
|
+
validator: (e) => Tt(e)
|
|
169
168
|
},
|
|
170
169
|
/**
|
|
171
170
|
* The icon that overlays the avatar
|
|
@@ -193,8 +192,8 @@ const Js = {
|
|
|
193
192
|
return {
|
|
194
193
|
// initials, image or icon
|
|
195
194
|
kind: null,
|
|
196
|
-
AVATAR_SIZE_MODIFIERS:
|
|
197
|
-
AVATAR_KIND_MODIFIERS:
|
|
195
|
+
AVATAR_SIZE_MODIFIERS: je,
|
|
196
|
+
AVATAR_KIND_MODIFIERS: kt,
|
|
198
197
|
AVATAR_PRESENCE_SIZE_MODIFIERS: Zs,
|
|
199
198
|
imageLoadedSuccessfully: null,
|
|
200
199
|
slottedInitials: "",
|
|
@@ -206,7 +205,7 @@ const Js = {
|
|
|
206
205
|
avatarClasses() {
|
|
207
206
|
return [
|
|
208
207
|
"d-avatar",
|
|
209
|
-
|
|
208
|
+
je[this.validatedSize],
|
|
210
209
|
this.avatarClass,
|
|
211
210
|
{
|
|
212
211
|
"d-avatar--no-gradient": !this.gradient,
|
|
@@ -227,7 +226,7 @@ const Js = {
|
|
|
227
226
|
return this.kind === "initials" || this.kind === "image" && this.initials && this.imageLoadedSuccessfully !== !0;
|
|
228
227
|
},
|
|
229
228
|
showGroup() {
|
|
230
|
-
return
|
|
229
|
+
return Tt(this.group);
|
|
231
230
|
},
|
|
232
231
|
initialKindStyle() {
|
|
233
232
|
const e = this.randomizeGradientColorStops();
|
|
@@ -267,7 +266,7 @@ const Js = {
|
|
|
267
266
|
e.classList.add("d-avatar__image"), this.validateImageAttrsPresence(), this.setImageListeners(e);
|
|
268
267
|
break;
|
|
269
268
|
case "icon":
|
|
270
|
-
e.classList.add(
|
|
269
|
+
e.classList.add(kt.icon);
|
|
271
270
|
break;
|
|
272
271
|
case "initials":
|
|
273
272
|
if (!e.textContent)
|
|
@@ -302,16 +301,16 @@ const Js = {
|
|
|
302
301
|
return ((s = e == null ? void 0 : e.tagName) == null ? void 0 : s.toUpperCase()) === "IMG";
|
|
303
302
|
},
|
|
304
303
|
randomizeGradientAngle() {
|
|
305
|
-
return
|
|
304
|
+
return Ke(Ys, this.seed);
|
|
306
305
|
},
|
|
307
306
|
randomizeGradientColorStops() {
|
|
308
307
|
const e = /* @__PURE__ */ new Set();
|
|
309
308
|
let s = 0;
|
|
310
309
|
for (; e.size < Qs; ) {
|
|
311
310
|
const o = this.seed === void 0 ? void 0 : this.seed + s.toString();
|
|
312
|
-
e.size === Xs ? e.add(
|
|
311
|
+
e.size === Xs ? e.add(Ke(Lt.with200, o)) : e.add(Ke(Lt.with100, o)), s++;
|
|
313
312
|
}
|
|
314
|
-
const t =
|
|
313
|
+
const t = Is(this.seed);
|
|
315
314
|
return Array.from(e).sort(() => 0.5 - t());
|
|
316
315
|
},
|
|
317
316
|
validateImageAttrsPresence() {
|
|
@@ -337,23 +336,23 @@ function ii(e, s, t, o, n, i) {
|
|
|
337
336
|
const l = f("dt-icon"), h = f("dt-presence");
|
|
338
337
|
return a(), r("div", {
|
|
339
338
|
id: t.id,
|
|
340
|
-
class:
|
|
341
|
-
style:
|
|
339
|
+
class: b(i.avatarClasses),
|
|
340
|
+
style: se(i.initialKindStyle),
|
|
342
341
|
"data-qa": "dt-avatar"
|
|
343
342
|
}, [
|
|
344
343
|
m("div", {
|
|
345
344
|
ref: "canvas",
|
|
346
|
-
class:
|
|
345
|
+
class: b([t.canvasClass, "d-avatar__canvas"])
|
|
347
346
|
}, [
|
|
348
347
|
i.showDefaultSlot ? c(e.$slots, "default", { key: 0 }) : p("", !0),
|
|
349
348
|
i.showInitials ? (a(), r("span", {
|
|
350
349
|
key: 1,
|
|
351
|
-
class:
|
|
350
|
+
class: b(["d-ps-absolute d-zi-base", n.AVATAR_KIND_MODIFIERS.initials])
|
|
352
351
|
}, I(n.formattedInitials), 3)) : p("", !0)
|
|
353
352
|
], 2),
|
|
354
353
|
t.overlayIcon || t.overlayText ? (a(), r("div", {
|
|
355
354
|
key: 0,
|
|
356
|
-
class:
|
|
355
|
+
class: b(i.overlayClasses)
|
|
357
356
|
}, [
|
|
358
357
|
t.overlayIcon ? (a(), S(l, {
|
|
359
358
|
key: 0,
|
|
@@ -372,7 +371,7 @@ function ii(e, s, t, o, n, i) {
|
|
|
372
371
|
}, t.presenceProps, { "data-qa": "dt-presence" }), null, 16, ["presence", "class"])) : p("", !0)
|
|
373
372
|
], 14, ei);
|
|
374
373
|
}
|
|
375
|
-
const
|
|
374
|
+
const Xe = /* @__PURE__ */ v(Js, [["render", ii]]), At = {
|
|
376
375
|
default: "",
|
|
377
376
|
info: "d-badge--info",
|
|
378
377
|
success: "d-badge--success",
|
|
@@ -380,10 +379,10 @@ const tt = /* @__PURE__ */ v(Js, [["render", ii]]), Dt = {
|
|
|
380
379
|
critical: "d-badge--critical",
|
|
381
380
|
bulletin: "d-badge--bulletin",
|
|
382
381
|
ai: "d-badge--ai"
|
|
383
|
-
},
|
|
382
|
+
}, Dt = {
|
|
384
383
|
label: "",
|
|
385
384
|
count: "d-badge--count"
|
|
386
|
-
},
|
|
385
|
+
}, Pt = {
|
|
387
386
|
"black-400": "d-badge--decorate-black-400",
|
|
388
387
|
"black-500": "d-badge--decorate-black-500",
|
|
389
388
|
"black-900": "d-badge--decorate-black-900",
|
|
@@ -443,7 +442,7 @@ const tt = /* @__PURE__ */ v(Js, [["render", ii]]), Dt = {
|
|
|
443
442
|
kind: {
|
|
444
443
|
type: String,
|
|
445
444
|
default: "label",
|
|
446
|
-
validator: (e) => Object.keys(
|
|
445
|
+
validator: (e) => Object.keys(Dt).includes(e)
|
|
447
446
|
},
|
|
448
447
|
/**
|
|
449
448
|
* Color for the badge background
|
|
@@ -452,7 +451,7 @@ const tt = /* @__PURE__ */ v(Js, [["render", ii]]), Dt = {
|
|
|
452
451
|
type: {
|
|
453
452
|
type: String,
|
|
454
453
|
default: "default",
|
|
455
|
-
validator: (e) => Object.keys(
|
|
454
|
+
validator: (e) => Object.keys(At).includes(e)
|
|
456
455
|
},
|
|
457
456
|
/**
|
|
458
457
|
* Decoration for the badge. This can be only used with kind: label and type: default
|
|
@@ -464,14 +463,14 @@ const tt = /* @__PURE__ */ v(Js, [["render", ii]]), Dt = {
|
|
|
464
463
|
decoration: {
|
|
465
464
|
type: String,
|
|
466
465
|
default: void 0,
|
|
467
|
-
validator: (e) => Object.keys(
|
|
466
|
+
validator: (e) => Object.keys(Pt).includes(e)
|
|
468
467
|
}
|
|
469
468
|
},
|
|
470
469
|
data() {
|
|
471
470
|
return {
|
|
472
|
-
BADGE_TYPE_MODIFIERS:
|
|
473
|
-
BADGE_KIND_MODIFIERS:
|
|
474
|
-
BADGE_DECORATION_MODIFIERS:
|
|
471
|
+
BADGE_TYPE_MODIFIERS: At,
|
|
472
|
+
BADGE_KIND_MODIFIERS: Dt,
|
|
473
|
+
BADGE_DECORATION_MODIFIERS: Pt
|
|
475
474
|
};
|
|
476
475
|
},
|
|
477
476
|
computed: {
|
|
@@ -512,7 +511,7 @@ const tt = /* @__PURE__ */ v(Js, [["render", ii]]), Dt = {
|
|
|
512
511
|
function di(e, s, t, o, n, i) {
|
|
513
512
|
const l = f("dt-icon");
|
|
514
513
|
return a(), r("span", {
|
|
515
|
-
class:
|
|
514
|
+
class: b([
|
|
516
515
|
"d-badge",
|
|
517
516
|
n.BADGE_TYPE_MODIFIERS[t.type],
|
|
518
517
|
n.BADGE_KIND_MODIFIERS[t.kind],
|
|
@@ -566,7 +565,7 @@ const ci = /* @__PURE__ */ v(ni, [["render", di]]), Oe = ["base", "error", "info
|
|
|
566
565
|
},
|
|
567
566
|
data() {
|
|
568
567
|
return {
|
|
569
|
-
hasSlotContent:
|
|
568
|
+
hasSlotContent: N
|
|
570
569
|
};
|
|
571
570
|
},
|
|
572
571
|
computed: {
|
|
@@ -590,7 +589,7 @@ function mi(e, s, t, o, n, i) {
|
|
|
590
589
|
])
|
|
591
590
|
])) : p("", !0);
|
|
592
591
|
}
|
|
593
|
-
const
|
|
592
|
+
const Je = /* @__PURE__ */ v(fi, [["render", mi]]), gi = {
|
|
594
593
|
name: "DtNoticeContent",
|
|
595
594
|
props: {
|
|
596
595
|
/**
|
|
@@ -619,7 +618,7 @@ const st = /* @__PURE__ */ v(fi, [["render", mi]]), gi = {
|
|
|
619
618
|
},
|
|
620
619
|
data() {
|
|
621
620
|
return {
|
|
622
|
-
hasSlotContent:
|
|
621
|
+
hasSlotContent: N
|
|
623
622
|
};
|
|
624
623
|
}
|
|
625
624
|
}, _i = {
|
|
@@ -647,7 +646,7 @@ function vi(e, s, t, o, n, i) {
|
|
|
647
646
|
], 8, yi)
|
|
648
647
|
]);
|
|
649
648
|
}
|
|
650
|
-
const
|
|
649
|
+
const et = /* @__PURE__ */ v(gi, [["render", vi]]), ne = {
|
|
651
650
|
props: {
|
|
652
651
|
/**
|
|
653
652
|
* If true, a hidden close button is included for screen readers
|
|
@@ -717,7 +716,7 @@ function Ci(e, s, t, o, n, i) {
|
|
|
717
716
|
class: "d-vi-visible-sr",
|
|
718
717
|
"aria-label": t.visuallyHiddenCloseLabel,
|
|
719
718
|
onClick: i.close,
|
|
720
|
-
onKeydown:
|
|
719
|
+
onKeydown: V(W(i.close, ["prevent", "stop"]), ["space"])
|
|
721
720
|
}, {
|
|
722
721
|
default: u(() => [
|
|
723
722
|
g(l, { name: "close" })
|
|
@@ -725,14 +724,14 @@ function Ci(e, s, t, o, n, i) {
|
|
|
725
724
|
_: 1
|
|
726
725
|
}, 8, ["aria-label", "onClick", "onKeydown"]);
|
|
727
726
|
}
|
|
728
|
-
const
|
|
727
|
+
const ze = /* @__PURE__ */ v(Si, [["render", Ci]]), Ii = {
|
|
729
728
|
name: "DtNoticeAction",
|
|
730
729
|
components: {
|
|
731
730
|
DtIcon: R,
|
|
732
731
|
DtButton: K,
|
|
733
|
-
SrOnlyCloseButton:
|
|
732
|
+
SrOnlyCloseButton: ze
|
|
734
733
|
},
|
|
735
|
-
mixins: [
|
|
734
|
+
mixins: [ne],
|
|
736
735
|
props: {
|
|
737
736
|
/**
|
|
738
737
|
* Props for the notice close button.
|
|
@@ -805,7 +804,7 @@ function Ei(e, s, t, o, n, i) {
|
|
|
805
804
|
}, null, 8, ["visually-hidden-close-label", "onClose"])) : p("", !0)
|
|
806
805
|
]);
|
|
807
806
|
}
|
|
808
|
-
const
|
|
807
|
+
const tt = /* @__PURE__ */ v(Ii, [["render", Ei]]), es = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', ki = `${es}:not([tabindex="-1"])`, Oi = "button,[href],input,select,textarea,details,[tabindex]", Le = {
|
|
809
808
|
methods: {
|
|
810
809
|
/**
|
|
811
810
|
* get the first focusable element in your component, includes tabindex="-1".
|
|
@@ -875,11 +874,11 @@ const nt = /* @__PURE__ */ v(Ii, [["render", Ei]]), es = ':not(:disabled):not([a
|
|
|
875
874
|
}, Li = {
|
|
876
875
|
name: "DtBanner",
|
|
877
876
|
components: {
|
|
878
|
-
DtNoticeIcon:
|
|
879
|
-
DtNoticeContent:
|
|
880
|
-
DtNoticeAction:
|
|
877
|
+
DtNoticeIcon: Je,
|
|
878
|
+
DtNoticeContent: et,
|
|
879
|
+
DtNoticeAction: tt
|
|
881
880
|
},
|
|
882
|
-
mixins: [Le,
|
|
881
|
+
mixins: [Le, ne],
|
|
883
882
|
props: {
|
|
884
883
|
/**
|
|
885
884
|
* Sets an ID on the title element of the component. Useful for aria-describedby
|
|
@@ -888,7 +887,7 @@ const nt = /* @__PURE__ */ v(Ii, [["render", Ei]]), es = ':not(:disabled):not([a
|
|
|
888
887
|
titleId: {
|
|
889
888
|
type: String,
|
|
890
889
|
default() {
|
|
891
|
-
return
|
|
890
|
+
return Q.getUniqueString();
|
|
892
891
|
}
|
|
893
892
|
},
|
|
894
893
|
/**
|
|
@@ -898,7 +897,7 @@ const nt = /* @__PURE__ */ v(Ii, [["render", Ei]]), es = ':not(:disabled):not([a
|
|
|
898
897
|
contentId: {
|
|
899
898
|
type: String,
|
|
900
899
|
default() {
|
|
901
|
-
return
|
|
900
|
+
return Q.getUniqueString();
|
|
902
901
|
}
|
|
903
902
|
},
|
|
904
903
|
/**
|
|
@@ -1029,12 +1028,12 @@ const nt = /* @__PURE__ */ v(Ii, [["render", Ei]]), es = ':not(:disabled):not([a
|
|
|
1029
1028
|
function Ai(e, s, t, o, n, i) {
|
|
1030
1029
|
const l = f("dt-notice-icon"), h = f("dt-notice-content"), d = f("dt-notice-action");
|
|
1031
1030
|
return a(), r("aside", {
|
|
1032
|
-
class:
|
|
1033
|
-
style:
|
|
1034
|
-
onKeydown: s[1] || (s[1] =
|
|
1031
|
+
class: b(i.bannerClass),
|
|
1032
|
+
style: se(i.bannerBackgroundImage),
|
|
1033
|
+
onKeydown: s[1] || (s[1] = V((...y) => i.trapFocus && i.trapFocus(...y), ["tab"]))
|
|
1035
1034
|
}, [
|
|
1036
1035
|
m("div", {
|
|
1037
|
-
class:
|
|
1036
|
+
class: b(["d-banner__dialog", t.dialogClass]),
|
|
1038
1037
|
role: i.role,
|
|
1039
1038
|
"aria-labelledby": t.titleId,
|
|
1040
1039
|
"aria-describedby": t.contentId
|
|
@@ -1076,7 +1075,7 @@ function Ai(e, s, t, o, n, i) {
|
|
|
1076
1075
|
], 10, Ti)
|
|
1077
1076
|
], 38);
|
|
1078
1077
|
}
|
|
1079
|
-
const
|
|
1078
|
+
const Nr = /* @__PURE__ */ v(Li, [["render", Ai]]), Di = "d-breadcrumbs__item--selected", Pi = "d-breadcrumbs--inverted", xi = {
|
|
1080
1079
|
name: "DtLink",
|
|
1081
1080
|
props: {
|
|
1082
1081
|
/**
|
|
@@ -1087,19 +1086,19 @@ const zr = /* @__PURE__ */ v(Li, [["render", Ai]]), Di = "d-breadcrumbs__item--s
|
|
|
1087
1086
|
type: String,
|
|
1088
1087
|
default: "",
|
|
1089
1088
|
validator(e) {
|
|
1090
|
-
return
|
|
1089
|
+
return ws.includes(e);
|
|
1091
1090
|
}
|
|
1092
1091
|
}
|
|
1093
1092
|
},
|
|
1094
1093
|
data() {
|
|
1095
1094
|
return {
|
|
1096
|
-
LINK_KIND_MODIFIERS:
|
|
1095
|
+
LINK_KIND_MODIFIERS: Es
|
|
1097
1096
|
};
|
|
1098
1097
|
}
|
|
1099
1098
|
};
|
|
1100
1099
|
function Ri(e, s, t, o, n, i) {
|
|
1101
1100
|
return a(), r("a", {
|
|
1102
|
-
class:
|
|
1101
|
+
class: b([
|
|
1103
1102
|
"d-link",
|
|
1104
1103
|
n.LINK_KIND_MODIFIERS[t.kind]
|
|
1105
1104
|
]),
|
|
@@ -1144,7 +1143,7 @@ const Bi = /* @__PURE__ */ v(xi, [["render", Ri]]), Ni = {
|
|
|
1144
1143
|
},
|
|
1145
1144
|
computed: {
|
|
1146
1145
|
linkKind() {
|
|
1147
|
-
return this.inverted ?
|
|
1146
|
+
return this.inverted ? ks : Os;
|
|
1148
1147
|
},
|
|
1149
1148
|
ariaCurrent() {
|
|
1150
1149
|
return this.selected ? "location" : void 0;
|
|
@@ -1155,7 +1154,7 @@ function zi(e, s, t, o, n, i) {
|
|
|
1155
1154
|
const l = f("dt-link");
|
|
1156
1155
|
return a(), r("li", {
|
|
1157
1156
|
"data-qa": "dt-breadcrumb-item",
|
|
1158
|
-
class:
|
|
1157
|
+
class: b([
|
|
1159
1158
|
"d-breadcrumbs__item",
|
|
1160
1159
|
{ [n.BREADCRUMB_ITEM_SELECTED_MODIFIER]: t.selected }
|
|
1161
1160
|
])
|
|
@@ -1213,7 +1212,7 @@ const $i = /* @__PURE__ */ v(Ni, [["render", zi]]), Mi = {
|
|
|
1213
1212
|
},
|
|
1214
1213
|
methods: {
|
|
1215
1214
|
getBreadcrumbItemKey(e) {
|
|
1216
|
-
return `breadcrumbs-item-${e}-${
|
|
1215
|
+
return `breadcrumbs-item-${e}-${Q.getUniqueString()}`;
|
|
1217
1216
|
}
|
|
1218
1217
|
}
|
|
1219
1218
|
}, Hi = ["aria-label"];
|
|
@@ -1222,14 +1221,14 @@ function Vi(e, s, t, o, n, i) {
|
|
|
1222
1221
|
return a(), r("nav", {
|
|
1223
1222
|
"aria-label": t.ariaLabel,
|
|
1224
1223
|
"data-qa": "dt-breadcrumbs",
|
|
1225
|
-
class:
|
|
1224
|
+
class: b([
|
|
1226
1225
|
"d-breadcrumbs",
|
|
1227
1226
|
{ [n.BREADCRUMBS_INVERTED_MODIFIER]: t.inverted }
|
|
1228
1227
|
])
|
|
1229
1228
|
}, [
|
|
1230
1229
|
m("ol", null, [
|
|
1231
1230
|
c(e.$slots, "default", {}, () => [
|
|
1232
|
-
(a(!0), r(
|
|
1231
|
+
(a(!0), r(X, null, ie(t.breadcrumbs, (h, d) => (a(), S(l, C({
|
|
1233
1232
|
key: i.getBreadcrumbItemKey(d),
|
|
1234
1233
|
inverted: t.inverted
|
|
1235
1234
|
}, h), null, 16, ["inverted"]))), 128))
|
|
@@ -1237,7 +1236,7 @@ function Vi(e, s, t, o, n, i) {
|
|
|
1237
1236
|
])
|
|
1238
1237
|
], 10, Hi);
|
|
1239
1238
|
}
|
|
1240
|
-
const
|
|
1239
|
+
const zr = /* @__PURE__ */ v(Mi, [["render", Vi]]), xt = {
|
|
1241
1240
|
start: "d-btn-group--start",
|
|
1242
1241
|
end: "d-btn-group--end",
|
|
1243
1242
|
"space-between": "d-btn-group--space-between"
|
|
@@ -1250,18 +1249,18 @@ const $r = /* @__PURE__ */ v(Mi, [["render", Vi]]), Rt = {
|
|
|
1250
1249
|
alignment: {
|
|
1251
1250
|
type: String,
|
|
1252
1251
|
default: "start",
|
|
1253
|
-
validator: (e) => Object.keys(
|
|
1252
|
+
validator: (e) => Object.keys(xt).includes(e)
|
|
1254
1253
|
}
|
|
1255
1254
|
},
|
|
1256
1255
|
data() {
|
|
1257
1256
|
return {
|
|
1258
|
-
BUTTON_GROUP_ALIGNMENT:
|
|
1257
|
+
BUTTON_GROUP_ALIGNMENT: xt
|
|
1259
1258
|
};
|
|
1260
1259
|
}
|
|
1261
1260
|
};
|
|
1262
1261
|
function Fi(e, s, t, o, n, i) {
|
|
1263
1262
|
return a(), r("div", {
|
|
1264
|
-
class:
|
|
1263
|
+
class: b([
|
|
1265
1264
|
"d-btn-group",
|
|
1266
1265
|
n.BUTTON_GROUP_ALIGNMENT[t.alignment]
|
|
1267
1266
|
]),
|
|
@@ -1270,7 +1269,7 @@ function Fi(e, s, t, o, n, i) {
|
|
|
1270
1269
|
c(e.$slots, "default")
|
|
1271
1270
|
], 2);
|
|
1272
1271
|
}
|
|
1273
|
-
const
|
|
1272
|
+
const $r = /* @__PURE__ */ v(qi, [["render", Fi]]), Ki = {
|
|
1274
1273
|
name: "DtCard",
|
|
1275
1274
|
props: {
|
|
1276
1275
|
/**
|
|
@@ -1312,13 +1311,13 @@ const Mr = /* @__PURE__ */ v(qi, [["render", Fi]]), Ki = {
|
|
|
1312
1311
|
},
|
|
1313
1312
|
data() {
|
|
1314
1313
|
return {
|
|
1315
|
-
hasSlotContent:
|
|
1314
|
+
hasSlotContent: N
|
|
1316
1315
|
};
|
|
1317
1316
|
}
|
|
1318
1317
|
};
|
|
1319
1318
|
function ji(e, s, t, o, n, i) {
|
|
1320
1319
|
return a(), r("div", {
|
|
1321
|
-
class:
|
|
1320
|
+
class: b([
|
|
1322
1321
|
"d-card",
|
|
1323
1322
|
t.containerClass
|
|
1324
1323
|
]),
|
|
@@ -1326,7 +1325,7 @@ function ji(e, s, t, o, n, i) {
|
|
|
1326
1325
|
}, [
|
|
1327
1326
|
n.hasSlotContent(e.$slots.header) ? (a(), r("div", {
|
|
1328
1327
|
key: 0,
|
|
1329
|
-
class:
|
|
1328
|
+
class: b([
|
|
1330
1329
|
"d-card__header",
|
|
1331
1330
|
t.headerClass
|
|
1332
1331
|
])
|
|
@@ -1334,17 +1333,17 @@ function ji(e, s, t, o, n, i) {
|
|
|
1334
1333
|
c(e.$slots, "header")
|
|
1335
1334
|
], 2)) : p("", !0),
|
|
1336
1335
|
m("div", {
|
|
1337
|
-
class:
|
|
1336
|
+
class: b([
|
|
1338
1337
|
"d-card__content",
|
|
1339
1338
|
t.contentClass
|
|
1340
1339
|
]),
|
|
1341
|
-
style:
|
|
1340
|
+
style: se({ "max-height": t.maxHeight })
|
|
1342
1341
|
}, [
|
|
1343
1342
|
c(e.$slots, "content")
|
|
1344
1343
|
], 6),
|
|
1345
1344
|
n.hasSlotContent(e.$slots.footer) ? (a(), r("div", {
|
|
1346
1345
|
key: 1,
|
|
1347
|
-
class:
|
|
1346
|
+
class: b([
|
|
1348
1347
|
"d-card__footer",
|
|
1349
1348
|
t.footerClass
|
|
1350
1349
|
])
|
|
@@ -1370,7 +1369,7 @@ function Zi(e, s, t, o, n, i) {
|
|
|
1370
1369
|
`)
|
|
1371
1370
|
]);
|
|
1372
1371
|
}
|
|
1373
|
-
const
|
|
1372
|
+
const Mr = /* @__PURE__ */ v(Wi, [["render", Zi]]), Yi = {
|
|
1374
1373
|
methods: {
|
|
1375
1374
|
/**
|
|
1376
1375
|
* Scroll an element into view if it is not fully visible in its nearest scrollable ancestor.
|
|
@@ -1397,23 +1396,23 @@ const Hr = /* @__PURE__ */ v(Wi, [["render", Zi]]), Yi = {
|
|
|
1397
1396
|
scrollIntoView(e, s, t, o, n) {
|
|
1398
1397
|
if (!e || !e.parentElement)
|
|
1399
1398
|
return;
|
|
1400
|
-
const i = e.offsetTop, l = n || e.parentElement, h = this._getScrollBounds(l), d = h.bottom - h.top, y = this._getElementHeight(e),
|
|
1401
|
-
let
|
|
1399
|
+
const i = e.offsetTop, l = n || e.parentElement, h = this._getScrollBounds(l), d = h.bottom - h.top, y = this._getElementHeight(e), O = i + y;
|
|
1400
|
+
let _ = -1;
|
|
1402
1401
|
switch (s) {
|
|
1403
1402
|
case "top":
|
|
1404
|
-
|
|
1403
|
+
_ = i;
|
|
1405
1404
|
break;
|
|
1406
1405
|
case "center":
|
|
1407
|
-
|
|
1406
|
+
_ = i + (y - d) / 2;
|
|
1408
1407
|
break;
|
|
1409
1408
|
case "bottom":
|
|
1410
|
-
|
|
1409
|
+
_ = _ = O - d;
|
|
1411
1410
|
break;
|
|
1412
1411
|
default:
|
|
1413
|
-
i - h.top <= d / 2 ?
|
|
1412
|
+
i - h.top <= d / 2 ? _ = i : _ = O - d;
|
|
1414
1413
|
break;
|
|
1415
1414
|
}
|
|
1416
|
-
this._setScrollTop(l,
|
|
1415
|
+
this._setScrollTop(l, _, h, i, O, t, o);
|
|
1417
1416
|
},
|
|
1418
1417
|
_setScrollTop(e, s, t, o, n, i, l) {
|
|
1419
1418
|
t = t || this._getScrollBounds(e);
|
|
@@ -1465,7 +1464,7 @@ const Hr = /* @__PURE__ */ v(Wi, [["render", Zi]]), Yi = {
|
|
|
1465
1464
|
// Scroll the active element into view when highlighted by a keyboard event.
|
|
1466
1465
|
scrollToOnHighlight: y = !0,
|
|
1467
1466
|
// Focus the active element on keyboard navigation.
|
|
1468
|
-
focusOnKeyboardNavigation:
|
|
1467
|
+
focusOnKeyboardNavigation: O = !1
|
|
1469
1468
|
} = {}) => ({
|
|
1470
1469
|
mixins: [Yi],
|
|
1471
1470
|
data() {
|
|
@@ -1473,7 +1472,7 @@ const Hr = /* @__PURE__ */ v(Wi, [["render", Zi]]), Yi = {
|
|
|
1473
1472
|
[s]: -1,
|
|
1474
1473
|
[t]: "",
|
|
1475
1474
|
scrollToOnHighlight: y,
|
|
1476
|
-
focusOnKeyboardNavigation:
|
|
1475
|
+
focusOnKeyboardNavigation: O
|
|
1477
1476
|
};
|
|
1478
1477
|
},
|
|
1479
1478
|
provide() {
|
|
@@ -1486,19 +1485,19 @@ const Hr = /* @__PURE__ */ v(Wi, [["render", Zi]]), Yi = {
|
|
|
1486
1485
|
// this[listElement]() can return a Vue component, in which case we need to target
|
|
1487
1486
|
// the $el property, or it can simply be an html element.
|
|
1488
1487
|
_getListElement() {
|
|
1489
|
-
var
|
|
1490
|
-
return ((
|
|
1488
|
+
var _;
|
|
1489
|
+
return ((_ = this[o]()) == null ? void 0 : _.$el) || this[o]();
|
|
1491
1490
|
},
|
|
1492
1491
|
// Gets the length of all the items in the list, uses the listItemRole param to determine
|
|
1493
1492
|
// whether an element is a list item.
|
|
1494
1493
|
_itemsLength() {
|
|
1495
|
-
const
|
|
1496
|
-
return
|
|
1494
|
+
const _ = this._getListItemNodes();
|
|
1495
|
+
return _ === null ? 0 : _.length;
|
|
1497
1496
|
},
|
|
1498
1497
|
// Gets all the list item nodes within the list element
|
|
1499
1498
|
_getListItemNodes() {
|
|
1500
|
-
const
|
|
1501
|
-
return
|
|
1499
|
+
const _ = this._getListElement();
|
|
1500
|
+
return _ ? Array.from(_.querySelectorAll(`[role="${e}"], #sr-only-close-button`)) : (console.error(Qi, _), null);
|
|
1502
1501
|
},
|
|
1503
1502
|
onUpKey() {
|
|
1504
1503
|
i && this[i](!0), this[s] > 0 ? this.setHighlightIndex(this[s] - 1) : h && this[h](), this.scrollActiveItemIntoViewIfNeeded(), this.focusActiveItemIfNeeded();
|
|
@@ -1512,17 +1511,17 @@ const Hr = /* @__PURE__ */ v(Wi, [["render", Zi]]), Yi = {
|
|
|
1512
1511
|
onEndKey() {
|
|
1513
1512
|
this.jumpToEnd(), this.scrollActiveItemIntoViewIfNeeded(), this.focusActiveItemIfNeeded();
|
|
1514
1513
|
},
|
|
1515
|
-
onNavigationKey(
|
|
1516
|
-
const L = this._getListItemNodes(),
|
|
1517
|
-
if (
|
|
1514
|
+
onNavigationKey(_) {
|
|
1515
|
+
const L = this._getListItemNodes(), B = L.filter((fe) => fe.textContent.trim().toLowerCase().startsWith(_.toLowerCase()));
|
|
1516
|
+
if (B.length <= 0)
|
|
1518
1517
|
return;
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1518
|
+
const de = B.findIndex((fe) => this[s] === L.indexOf(fe)), he = L.indexOf(
|
|
1519
|
+
de < B.length - 1 ? B[de + 1] : B[0]
|
|
1521
1520
|
);
|
|
1522
|
-
this.setHighlightIndex(
|
|
1521
|
+
this.setHighlightIndex(he), this.scrollActiveItemIntoViewIfNeeded(), this.focusActiveItemIfNeeded();
|
|
1523
1522
|
},
|
|
1524
|
-
isValidLetter(
|
|
1525
|
-
return
|
|
1523
|
+
isValidLetter(_) {
|
|
1524
|
+
return _.length > 1 ? !1 : _ >= "a" && _ <= "z" || _ >= "A" && _ <= "Z";
|
|
1526
1525
|
},
|
|
1527
1526
|
jumpToBeginning() {
|
|
1528
1527
|
this.setHighlightIndex(0);
|
|
@@ -1530,42 +1529,42 @@ const Hr = /* @__PURE__ */ v(Wi, [["render", Zi]]), Yi = {
|
|
|
1530
1529
|
jumpToEnd() {
|
|
1531
1530
|
this.setHighlightIndex(this._itemsLength() - 1);
|
|
1532
1531
|
},
|
|
1533
|
-
setHighlightIndex(
|
|
1534
|
-
this[s] =
|
|
1532
|
+
setHighlightIndex(_) {
|
|
1533
|
+
this[s] = _, this[t] = this._getItemId(_), this._itemsLength() && l && this[l](_);
|
|
1535
1534
|
},
|
|
1536
|
-
setHighlightId(
|
|
1537
|
-
this[t] =
|
|
1535
|
+
setHighlightId(_) {
|
|
1536
|
+
this[t] = _, this[s] = this._getItemIndex(_), this._itemsLength() && l && this[l](this._getItemIndex(_));
|
|
1538
1537
|
},
|
|
1539
|
-
_getItemIndex(
|
|
1538
|
+
_getItemIndex(_) {
|
|
1540
1539
|
const L = this._getListElement();
|
|
1541
|
-
return L ? Array.from(L.querySelectorAll(`[role="${e}"], #sr-only-close-button`)).indexOf(L.querySelector(`#${
|
|
1540
|
+
return L ? Array.from(L.querySelectorAll(`[role="${e}"], #sr-only-close-button`)).indexOf(L.querySelector(`#${_}`)) : void 0;
|
|
1542
1541
|
},
|
|
1543
|
-
_getItemId(
|
|
1544
|
-
var
|
|
1542
|
+
_getItemId(_) {
|
|
1543
|
+
var B;
|
|
1545
1544
|
const L = this._getListElement();
|
|
1546
1545
|
if (L)
|
|
1547
|
-
return (
|
|
1546
|
+
return (B = L.querySelectorAll(`[role="${e}"], #sr-only-close-button`)[_]) == null ? void 0 : B.id;
|
|
1548
1547
|
},
|
|
1549
1548
|
scrollActiveItemIntoViewIfNeeded() {
|
|
1550
1549
|
if (!this.scrollToOnHighlight)
|
|
1551
1550
|
return;
|
|
1552
|
-
const
|
|
1553
|
-
if (
|
|
1551
|
+
const _ = this[n];
|
|
1552
|
+
if (_) {
|
|
1554
1553
|
const L = this._getListElement();
|
|
1555
|
-
this.scrollElementIntoViewIfNeeded(
|
|
1554
|
+
this.scrollElementIntoViewIfNeeded(_, null, null, L);
|
|
1556
1555
|
}
|
|
1557
1556
|
},
|
|
1558
1557
|
focusActiveItemIfNeeded() {
|
|
1559
1558
|
if (!this.focusOnKeyboardNavigation)
|
|
1560
1559
|
return;
|
|
1561
|
-
const
|
|
1562
|
-
|
|
1560
|
+
const _ = this[n];
|
|
1561
|
+
_ && _.focus();
|
|
1563
1562
|
}
|
|
1564
1563
|
}
|
|
1565
|
-
}),
|
|
1564
|
+
}), Ge = {
|
|
1566
1565
|
DEFAULT: "default",
|
|
1567
1566
|
CUSTOM: "custom"
|
|
1568
|
-
},
|
|
1567
|
+
}, ce = {
|
|
1569
1568
|
ARROW_KEYS: "arrow-keys",
|
|
1570
1569
|
TAB: "tab",
|
|
1571
1570
|
NONE: "none"
|
|
@@ -1574,7 +1573,7 @@ const Xi = {
|
|
|
1574
1573
|
name: "DtDefaultListItem",
|
|
1575
1574
|
data() {
|
|
1576
1575
|
return {
|
|
1577
|
-
hasSlotContent:
|
|
1576
|
+
hasSlotContent: N
|
|
1578
1577
|
};
|
|
1579
1578
|
}
|
|
1580
1579
|
}, Ji = { class: "dt-default-list-item d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center" }, en = {
|
|
@@ -1602,7 +1601,7 @@ function on(e, s, t, o, n, i) {
|
|
|
1602
1601
|
n.hasSlotContent(e.$slots.subtitle) ? (a(), r("div", {
|
|
1603
1602
|
key: 1,
|
|
1604
1603
|
"data-qa": "dt-default-list-item-subtitle-wrapper",
|
|
1605
|
-
class:
|
|
1604
|
+
class: b(["d-fs-100 d-fc-tertiary", { "d-mtn2": e.$slots.default }])
|
|
1606
1605
|
}, [
|
|
1607
1606
|
c(e.$slots, "subtitle")
|
|
1608
1607
|
], 2)) : p("", !0),
|
|
@@ -1616,11 +1615,11 @@ function on(e, s, t, o, n, i) {
|
|
|
1616
1615
|
c(e.$slots, "selected")
|
|
1617
1616
|
]);
|
|
1618
1617
|
}
|
|
1619
|
-
const
|
|
1618
|
+
const Rt = /* @__PURE__ */ v(Xi, [["render", on]]);
|
|
1620
1619
|
const ln = {
|
|
1621
1620
|
name: "DtListItem",
|
|
1622
1621
|
components: {
|
|
1623
|
-
DtDefaultListItem:
|
|
1622
|
+
DtDefaultListItem: Rt,
|
|
1624
1623
|
DtIcon: R
|
|
1625
1624
|
},
|
|
1626
1625
|
/**
|
|
@@ -1636,7 +1635,7 @@ const ln = {
|
|
|
1636
1635
|
id: {
|
|
1637
1636
|
type: String,
|
|
1638
1637
|
default() {
|
|
1639
|
-
return
|
|
1638
|
+
return Q.getUniqueString();
|
|
1640
1639
|
}
|
|
1641
1640
|
},
|
|
1642
1641
|
/**
|
|
@@ -1659,8 +1658,8 @@ const ln = {
|
|
|
1659
1658
|
*/
|
|
1660
1659
|
type: {
|
|
1661
1660
|
type: String,
|
|
1662
|
-
default:
|
|
1663
|
-
validator: (e) => Object.values(
|
|
1661
|
+
default: Ge.DEFAULT,
|
|
1662
|
+
validator: (e) => Object.values(Ge).includes(e)
|
|
1664
1663
|
},
|
|
1665
1664
|
/**
|
|
1666
1665
|
* The type of navigation that this component should support.
|
|
@@ -1671,8 +1670,8 @@ const ln = {
|
|
|
1671
1670
|
*/
|
|
1672
1671
|
navigationType: {
|
|
1673
1672
|
type: String,
|
|
1674
|
-
default:
|
|
1675
|
-
validator: (e) => Object.values(
|
|
1673
|
+
default: ce.NONE,
|
|
1674
|
+
validator: (e) => Object.values(ce).includes(e)
|
|
1676
1675
|
},
|
|
1677
1676
|
/**
|
|
1678
1677
|
* Applies selected styles to the list item
|
|
@@ -1720,8 +1719,8 @@ const ln = {
|
|
|
1720
1719
|
computed: {
|
|
1721
1720
|
listItemType() {
|
|
1722
1721
|
switch (this.type) {
|
|
1723
|
-
case
|
|
1724
|
-
return
|
|
1722
|
+
case Ge.DEFAULT:
|
|
1723
|
+
return Rt;
|
|
1725
1724
|
default:
|
|
1726
1725
|
return null;
|
|
1727
1726
|
}
|
|
@@ -1747,13 +1746,13 @@ const ln = {
|
|
|
1747
1746
|
return this.isHoverable ? this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted : !1;
|
|
1748
1747
|
},
|
|
1749
1748
|
isFocusable() {
|
|
1750
|
-
return this.navigationType ===
|
|
1749
|
+
return this.navigationType === ce.TAB;
|
|
1751
1750
|
},
|
|
1752
1751
|
/**
|
|
1753
1752
|
* Whether or not to apply hover styles.
|
|
1754
1753
|
*/
|
|
1755
1754
|
isHoverable() {
|
|
1756
|
-
return this.navigationType !==
|
|
1755
|
+
return this.navigationType !== ce.NONE;
|
|
1757
1756
|
}
|
|
1758
1757
|
},
|
|
1759
1758
|
methods: {
|
|
@@ -1770,7 +1769,7 @@ const ln = {
|
|
|
1770
1769
|
};
|
|
1771
1770
|
function rn(e, s, t, o, n, i) {
|
|
1772
1771
|
const l = f("dt-icon");
|
|
1773
|
-
return a(), S(
|
|
1772
|
+
return a(), S(J(t.elementType), C({
|
|
1774
1773
|
id: t.id,
|
|
1775
1774
|
class: ["dt-list-item d-ls-none", {
|
|
1776
1775
|
"dt-list-item--focusable": i.isFocusable,
|
|
@@ -1780,10 +1779,10 @@ function rn(e, s, t, o, n, i) {
|
|
|
1780
1779
|
tabindex: i.isFocusable ? 0 : -1,
|
|
1781
1780
|
role: t.role,
|
|
1782
1781
|
"aria-selected": i.isHighlighted
|
|
1783
|
-
},
|
|
1782
|
+
}, M(i.listItemListeners)), {
|
|
1784
1783
|
default: u(() => [
|
|
1785
|
-
i.listItemType ? (a(), S(
|
|
1786
|
-
|
|
1784
|
+
i.listItemType ? (a(), S(J(i.listItemType), { key: 0 }, Ee({ _: 2 }, [
|
|
1785
|
+
ie(e.$slots, (h, d) => ({
|
|
1787
1786
|
name: d,
|
|
1788
1787
|
fn: u(() => [
|
|
1789
1788
|
c(e.$slots, d)
|
|
@@ -1805,9 +1804,9 @@ function rn(e, s, t, o, n, i) {
|
|
|
1805
1804
|
_: 3
|
|
1806
1805
|
}, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
|
|
1807
1806
|
}
|
|
1808
|
-
const
|
|
1807
|
+
const $e = /* @__PURE__ */ v(ln, [["render", rn]]), dn = {
|
|
1809
1808
|
name: "ComboboxLoadingList",
|
|
1810
|
-
components: { DtListItem:
|
|
1809
|
+
components: { DtListItem: $e, DtSkeleton: Ls }
|
|
1811
1810
|
}, cn = {
|
|
1812
1811
|
class: "d-p0 d-mt8 d-hmx332 d-of-y-auto",
|
|
1813
1812
|
"aria-busy": "true"
|
|
@@ -1815,7 +1814,7 @@ const Me = /* @__PURE__ */ v(ln, [["render", rn]]), dn = {
|
|
|
1815
1814
|
function un(e, s, t, o, n, i) {
|
|
1816
1815
|
const l = f("dt-skeleton"), h = f("dt-list-item");
|
|
1817
1816
|
return a(), r("ol", cn, [
|
|
1818
|
-
(a(), r(
|
|
1817
|
+
(a(), r(X, null, ie(7, (d) => g(h, {
|
|
1819
1818
|
key: d,
|
|
1820
1819
|
role: "option",
|
|
1821
1820
|
"navigation-type": "none"
|
|
@@ -1833,7 +1832,7 @@ function un(e, s, t, o, n, i) {
|
|
|
1833
1832
|
const ss = /* @__PURE__ */ v(dn, [["render", un]]);
|
|
1834
1833
|
const hn = {
|
|
1835
1834
|
name: "ComboboxEmptyList",
|
|
1836
|
-
components: { DtListItem:
|
|
1835
|
+
components: { DtListItem: $e },
|
|
1837
1836
|
props: {
|
|
1838
1837
|
/**
|
|
1839
1838
|
* Message to display when list is empty
|
|
@@ -1864,7 +1863,7 @@ function pn(e, s, t, o, n, i) {
|
|
|
1864
1863
|
role: "option",
|
|
1865
1864
|
"navigation-type": "none",
|
|
1866
1865
|
type: "custom",
|
|
1867
|
-
class:
|
|
1866
|
+
class: b(["dt-empty-list-item", t.itemClass])
|
|
1868
1867
|
}, {
|
|
1869
1868
|
default: u(() => [
|
|
1870
1869
|
m("span", null, I(t.message), 1)
|
|
@@ -2046,7 +2045,7 @@ const is = /* @__PURE__ */ v(hn, [["render", pn]]), ns = {
|
|
|
2046
2045
|
// of this component, this is the ref to that dom element. Set
|
|
2047
2046
|
// by the onOpen method.
|
|
2048
2047
|
outsideRenderedListRef: null,
|
|
2049
|
-
hasSlotContent:
|
|
2048
|
+
hasSlotContent: N
|
|
2050
2049
|
};
|
|
2051
2050
|
},
|
|
2052
2051
|
computed: {
|
|
@@ -2155,12 +2154,12 @@ function _n(e, s, t, o, n, i) {
|
|
|
2155
2154
|
const l = f("combobox-loading-list"), h = f("combobox-empty-list");
|
|
2156
2155
|
return a(), r("div", {
|
|
2157
2156
|
onKeydown: [
|
|
2158
|
-
s[3] || (s[3] =
|
|
2159
|
-
s[4] || (s[4] =
|
|
2160
|
-
s[5] || (s[5] =
|
|
2161
|
-
s[6] || (s[6] =
|
|
2162
|
-
s[7] || (s[7] =
|
|
2163
|
-
s[8] || (s[8] =
|
|
2157
|
+
s[3] || (s[3] = V(W((d) => i.onKeyValidation(d, "onEscapeKey"), ["stop"]), ["esc"])),
|
|
2158
|
+
s[4] || (s[4] = V(W((d) => i.onKeyValidation(d, "onEnterKey"), ["exact"]), ["enter"])),
|
|
2159
|
+
s[5] || (s[5] = V(W((d) => i.onKeyValidation(d, "onUpKey"), ["stop", "prevent"]), ["up"])),
|
|
2160
|
+
s[6] || (s[6] = V(W((d) => i.onKeyValidation(d, "onDownKey"), ["stop", "prevent"]), ["down"])),
|
|
2161
|
+
s[7] || (s[7] = V(W((d) => i.onKeyValidation(d, "onHomeKey"), ["stop", "prevent"]), ["home"])),
|
|
2162
|
+
s[8] || (s[8] = V(W((d) => i.onKeyValidation(d, "onEndKey"), ["stop", "prevent"]), ["end"]))
|
|
2164
2163
|
]
|
|
2165
2164
|
}, [
|
|
2166
2165
|
m("div", gn, [
|
|
@@ -2303,7 +2302,7 @@ const yn = {
|
|
|
2303
2302
|
}
|
|
2304
2303
|
};
|
|
2305
2304
|
function vn(e, s, t, o, n, i) {
|
|
2306
|
-
return a(), S(
|
|
2305
|
+
return a(), S(Ze, C({
|
|
2307
2306
|
appear: t.appear,
|
|
2308
2307
|
"enter-active-class": "enter-active",
|
|
2309
2308
|
"leave-active-class": "leave-active"
|
|
@@ -2317,7 +2316,7 @@ function vn(e, s, t, o, n, i) {
|
|
|
2317
2316
|
onAfterLeave: i.afterLeave
|
|
2318
2317
|
}), {
|
|
2319
2318
|
default: u(() => [
|
|
2320
|
-
Se((a(), S(
|
|
2319
|
+
Se((a(), S(J(t.elementType), ke(Ue(e.$attrs)), {
|
|
2321
2320
|
default: u(() => [
|
|
2322
2321
|
n.initialized ? c(e.$slots, "default", { key: 0 }) : p("", !0)
|
|
2323
2322
|
]),
|
|
@@ -2334,7 +2333,7 @@ const Sn = /* @__PURE__ */ v(yn, [["render", vn]]), Cn = {
|
|
|
2334
2333
|
components: {
|
|
2335
2334
|
DtButton: K,
|
|
2336
2335
|
DtCollapsibleLazyShow: Sn,
|
|
2337
|
-
DtLazyShow:
|
|
2336
|
+
DtLazyShow: Ne,
|
|
2338
2337
|
DtIcon: R
|
|
2339
2338
|
},
|
|
2340
2339
|
props: {
|
|
@@ -2450,7 +2449,7 @@ const Sn = /* @__PURE__ */ v(yn, [["render", vn]]), Cn = {
|
|
|
2450
2449
|
return this.ariaLabelledBy || !this.ariaLabel && F("DtCollapsible__anchor");
|
|
2451
2450
|
},
|
|
2452
2451
|
collapsibleListeners() {
|
|
2453
|
-
return
|
|
2452
|
+
return Ye(this.$attrs);
|
|
2454
2453
|
}
|
|
2455
2454
|
},
|
|
2456
2455
|
watch: {
|
|
@@ -2478,18 +2477,18 @@ const Sn = /* @__PURE__ */ v(yn, [["render", vn]]), Cn = {
|
|
|
2478
2477
|
this.isOpen = !this.isOpen;
|
|
2479
2478
|
},
|
|
2480
2479
|
validateProperAnchor() {
|
|
2481
|
-
!this.anchorText && !
|
|
2480
|
+
!this.anchorText && !N(this.$slots.anchor) && console.error("anchor text and anchor slot content cannot both be falsy");
|
|
2482
2481
|
}
|
|
2483
2482
|
}
|
|
2484
2483
|
}, In = ["id"], wn = ["title"];
|
|
2485
2484
|
function En(e, s, t, o, n, i) {
|
|
2486
2485
|
const l = f("dt-icon"), h = f("dt-button"), d = f("dt-collapsible-lazy-show");
|
|
2487
|
-
return a(), S(
|
|
2486
|
+
return a(), S(J(t.elementType), C({ ref: "collapsible" }, M(i.collapsibleListeners)), {
|
|
2488
2487
|
default: u(() => [
|
|
2489
2488
|
m("div", {
|
|
2490
2489
|
id: !t.ariaLabelledBy && i.labelledBy,
|
|
2491
2490
|
ref: "anchor",
|
|
2492
|
-
class:
|
|
2491
|
+
class: b([
|
|
2493
2492
|
"d-dt-collapsibe__anchor",
|
|
2494
2493
|
t.anchorClass
|
|
2495
2494
|
])
|
|
@@ -2506,7 +2505,7 @@ function En(e, s, t, o, n, i) {
|
|
|
2506
2505
|
kind: "muted",
|
|
2507
2506
|
"aria-controls": t.id,
|
|
2508
2507
|
"aria-expanded": `${n.isOpen}`,
|
|
2509
|
-
style:
|
|
2508
|
+
style: se({
|
|
2510
2509
|
width: t.maxWidth
|
|
2511
2510
|
}),
|
|
2512
2511
|
onClick: i.defaultToggleOpen
|
|
@@ -2543,7 +2542,7 @@ function En(e, s, t, o, n, i) {
|
|
|
2543
2542
|
},
|
|
2544
2543
|
tabindex: "-1",
|
|
2545
2544
|
appear: ""
|
|
2546
|
-
},
|
|
2545
|
+
}, M(i.collapsibleListeners), {
|
|
2547
2546
|
onAfterLeave: i.onLeaveTransitionComplete,
|
|
2548
2547
|
onAfterEnter: i.onEnterTransitionComplete
|
|
2549
2548
|
}), {
|
|
@@ -2556,7 +2555,7 @@ function En(e, s, t, o, n, i) {
|
|
|
2556
2555
|
_: 3
|
|
2557
2556
|
}, 16);
|
|
2558
2557
|
}
|
|
2559
|
-
const
|
|
2558
|
+
const Hr = /* @__PURE__ */ v(Cn, [["render", En]]), Bt = {
|
|
2560
2559
|
none: void 0,
|
|
2561
2560
|
small: "d-p4",
|
|
2562
2561
|
medium: "d-p8",
|
|
@@ -2566,8 +2565,8 @@ const Vr = /* @__PURE__ */ v(Cn, [["render", En]]), Nt = {
|
|
|
2566
2565
|
small: "d-pl4",
|
|
2567
2566
|
medium: "d-pl8",
|
|
2568
2567
|
large: "d-pl16"
|
|
2569
|
-
}, On = ["dialog", "menu", "listbox", "tree", "grid"], as = ["", "anchor"], Ln = ["none", "dialog", "first"],
|
|
2570
|
-
...
|
|
2568
|
+
}, On = ["dialog", "menu", "listbox", "tree", "grid"], as = ["", "anchor"], Ln = ["none", "dialog", "first"], Me = ["parent", "body"], Tn = [
|
|
2569
|
+
...Ts
|
|
2571
2570
|
], An = {
|
|
2572
2571
|
name: "PopoverHeaderFooter",
|
|
2573
2572
|
components: {
|
|
@@ -2618,7 +2617,7 @@ const Vr = /* @__PURE__ */ v(Cn, [["render", En]]), Nt = {
|
|
|
2618
2617
|
],
|
|
2619
2618
|
data() {
|
|
2620
2619
|
return {
|
|
2621
|
-
hasSlotContent:
|
|
2620
|
+
hasSlotContent: N
|
|
2622
2621
|
};
|
|
2623
2622
|
},
|
|
2624
2623
|
methods: {
|
|
@@ -2633,7 +2632,7 @@ function Dn(e, s, t, o, n, i) {
|
|
|
2633
2632
|
const l = f("dt-icon"), h = f("dt-button");
|
|
2634
2633
|
return a(), r("div", {
|
|
2635
2634
|
"data-qa": "dt-popover-header-footer",
|
|
2636
|
-
class:
|
|
2635
|
+
class: b({
|
|
2637
2636
|
"d-popover__header": t.type === "header",
|
|
2638
2637
|
"d-popover__footer": t.type === "footer"
|
|
2639
2638
|
})
|
|
@@ -2641,7 +2640,7 @@ function Dn(e, s, t, o, n, i) {
|
|
|
2641
2640
|
n.hasSlotContent(e.$slots.content) ? (a(), r("div", {
|
|
2642
2641
|
key: 0,
|
|
2643
2642
|
"data-qa": "dt-popover-header-footer-content",
|
|
2644
|
-
class:
|
|
2643
|
+
class: b(["d-to-ellipsis", "d-w100p", t.contentClass])
|
|
2645
2644
|
}, [
|
|
2646
2645
|
c(e.$slots, "content")
|
|
2647
2646
|
], 2)) : p("", !0),
|
|
@@ -2673,11 +2672,11 @@ const xn = {
|
|
|
2673
2672
|
* CHILD COMPONENTS *
|
|
2674
2673
|
********************/
|
|
2675
2674
|
components: {
|
|
2676
|
-
SrOnlyCloseButton:
|
|
2677
|
-
DtLazyShow:
|
|
2675
|
+
SrOnlyCloseButton: ze,
|
|
2676
|
+
DtLazyShow: Ne,
|
|
2678
2677
|
PopoverHeaderFooter: Pn
|
|
2679
2678
|
},
|
|
2680
|
-
mixins: [Le,
|
|
2679
|
+
mixins: [Le, ne],
|
|
2681
2680
|
props: {
|
|
2682
2681
|
/**
|
|
2683
2682
|
* Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
|
|
@@ -2756,7 +2755,7 @@ const xn = {
|
|
|
2756
2755
|
padding: {
|
|
2757
2756
|
type: String,
|
|
2758
2757
|
default: "large",
|
|
2759
|
-
validator: (e) => Object.keys(
|
|
2758
|
+
validator: (e) => Object.keys(Bt).some((s) => s === e)
|
|
2760
2759
|
},
|
|
2761
2760
|
/**
|
|
2762
2761
|
* Additional class name for the content wrapper element.
|
|
@@ -2954,7 +2953,7 @@ const xn = {
|
|
|
2954
2953
|
appendTo: {
|
|
2955
2954
|
type: [HTMLElement, String],
|
|
2956
2955
|
default: "body",
|
|
2957
|
-
validator: (e) =>
|
|
2956
|
+
validator: (e) => Me.includes(e) || e instanceof HTMLElement
|
|
2958
2957
|
}
|
|
2959
2958
|
},
|
|
2960
2959
|
emits: [
|
|
@@ -2980,7 +2979,7 @@ const xn = {
|
|
|
2980
2979
|
],
|
|
2981
2980
|
data() {
|
|
2982
2981
|
return {
|
|
2983
|
-
POPOVER_PADDING_CLASSES:
|
|
2982
|
+
POPOVER_PADDING_CLASSES: Bt,
|
|
2984
2983
|
POPOVER_HEADER_FOOTER_PADDING_CLASSES: kn,
|
|
2985
2984
|
intersectionObserver: null,
|
|
2986
2985
|
isOutsideViewport: !1,
|
|
@@ -2988,7 +2987,7 @@ const xn = {
|
|
|
2988
2987
|
toAppear: !1,
|
|
2989
2988
|
anchorEl: null,
|
|
2990
2989
|
popoverContentEl: null,
|
|
2991
|
-
hasSlotContent:
|
|
2990
|
+
hasSlotContent: N
|
|
2992
2991
|
};
|
|
2993
2992
|
},
|
|
2994
2993
|
computed: {
|
|
@@ -3088,11 +3087,11 @@ const xn = {
|
|
|
3088
3087
|
const s = (o = e == null ? void 0 : e[0]) == null ? void 0 : o.target;
|
|
3089
3088
|
if (!s)
|
|
3090
3089
|
return;
|
|
3091
|
-
const t =
|
|
3090
|
+
const t = As(s);
|
|
3092
3091
|
this.isOutsideViewport = t.bottom || t.top;
|
|
3093
3092
|
},
|
|
3094
3093
|
popperOptions() {
|
|
3095
|
-
return
|
|
3094
|
+
return Ds({
|
|
3096
3095
|
fallbackPlacements: this.fallbackPlacements,
|
|
3097
3096
|
tether: this.tether,
|
|
3098
3097
|
hasHideModifierEnabled: !0
|
|
@@ -3203,7 +3202,7 @@ const xn = {
|
|
|
3203
3202
|
},
|
|
3204
3203
|
initTippyInstance() {
|
|
3205
3204
|
var e, s;
|
|
3206
|
-
this.tip =
|
|
3205
|
+
this.tip = Ps(this.anchorEl, {
|
|
3207
3206
|
popperOptions: this.popperOptions(),
|
|
3208
3207
|
contentElement: this.popoverContentEl,
|
|
3209
3208
|
placement: this.placement,
|
|
@@ -3225,7 +3224,7 @@ const xn = {
|
|
|
3225
3224
|
function Nn(e, s, t, o, n, i) {
|
|
3226
3225
|
const l = f("popover-header-footer"), h = f("sr-only-close-button"), d = f("dt-lazy-show");
|
|
3227
3226
|
return a(), r("div", null, [
|
|
3228
|
-
t.modal && n.isOpen ? (a(), S(
|
|
3227
|
+
t.modal && n.isOpen ? (a(), S(jt, {
|
|
3229
3228
|
key: 0,
|
|
3230
3229
|
to: "body"
|
|
3231
3230
|
}, [
|
|
@@ -3236,9 +3235,9 @@ function Nn(e, s, t, o, n, i) {
|
|
|
3236
3235
|
}, ["prevent", "stop"]))
|
|
3237
3236
|
}, null, 8, Rn)
|
|
3238
3237
|
])) : p("", !0),
|
|
3239
|
-
(a(), S(
|
|
3238
|
+
(a(), S(J(t.elementType), {
|
|
3240
3239
|
ref: "popover",
|
|
3241
|
-
class:
|
|
3240
|
+
class: b(["d-popover", { "d-popover__anchor--opened": n.isOpen }]),
|
|
3242
3241
|
"data-qa": "dt-popover-container"
|
|
3243
3242
|
}, {
|
|
3244
3243
|
default: u(() => [
|
|
@@ -3250,12 +3249,12 @@ function Nn(e, s, t, o, n, i) {
|
|
|
3250
3249
|
onClickCapture: s[1] || (s[1] = (...y) => i.defaultToggleOpen && i.defaultToggleOpen(...y)),
|
|
3251
3250
|
onContextmenu: s[2] || (s[2] = (...y) => i.onContext && i.onContext(...y)),
|
|
3252
3251
|
onKeydown: [
|
|
3253
|
-
s[3] || (s[3] =
|
|
3254
|
-
s[4] || (s[4] =
|
|
3255
|
-
s[6] || (s[6] =
|
|
3256
|
-
s[7] || (s[7] =
|
|
3252
|
+
s[3] || (s[3] = V(W((...y) => i.onArrowKeyPress && i.onArrowKeyPress(...y), ["prevent"]), ["up"])),
|
|
3253
|
+
s[4] || (s[4] = V(W((...y) => i.onArrowKeyPress && i.onArrowKeyPress(...y), ["prevent"]), ["down"])),
|
|
3254
|
+
s[6] || (s[6] = V((y) => e.$emit("keydown", y), ["enter"])),
|
|
3255
|
+
s[7] || (s[7] = V((y) => e.$emit("keydown", y), ["space"]))
|
|
3257
3256
|
],
|
|
3258
|
-
onKeydownCapture: s[5] || (s[5] =
|
|
3257
|
+
onKeydownCapture: s[5] || (s[5] = V((...y) => i.closePopover && i.closePopover(...y), ["escape"]))
|
|
3259
3258
|
}, [
|
|
3260
3259
|
c(e.$slots, "anchor", {
|
|
3261
3260
|
attrs: {
|
|
@@ -3284,12 +3283,12 @@ function Nn(e, s, t, o, n, i) {
|
|
|
3284
3283
|
},
|
|
3285
3284
|
css: e.$attrs.css,
|
|
3286
3285
|
tabindex: t.contentTabindex
|
|
3287
|
-
},
|
|
3286
|
+
}, M(i.popoverListeners)), {
|
|
3288
3287
|
default: u(() => [
|
|
3289
3288
|
n.hasSlotContent(e.$slots.headerContent) || t.showCloseButton ? (a(), S(l, {
|
|
3290
3289
|
key: 0,
|
|
3291
3290
|
ref: "popover__header",
|
|
3292
|
-
class:
|
|
3291
|
+
class: b(n.POPOVER_HEADER_FOOTER_PADDING_CLASSES[t.padding]),
|
|
3293
3292
|
"content-class": t.headerClass,
|
|
3294
3293
|
type: "header",
|
|
3295
3294
|
"show-close-button": t.showCloseButton,
|
|
@@ -3304,7 +3303,7 @@ function Nn(e, s, t, o, n, i) {
|
|
|
3304
3303
|
m("div", {
|
|
3305
3304
|
ref: "popover__content",
|
|
3306
3305
|
"data-qa": "dt-popover-content",
|
|
3307
|
-
class:
|
|
3306
|
+
class: b([
|
|
3308
3307
|
"d-popover__content",
|
|
3309
3308
|
n.POPOVER_PADDING_CLASSES[t.padding],
|
|
3310
3309
|
t.contentClass
|
|
@@ -3316,7 +3315,7 @@ function Nn(e, s, t, o, n, i) {
|
|
|
3316
3315
|
key: 1,
|
|
3317
3316
|
ref: "popover__footer",
|
|
3318
3317
|
type: "footer",
|
|
3319
|
-
class:
|
|
3318
|
+
class: b(n.POPOVER_HEADER_FOOTER_PADDING_CLASSES[t.padding]),
|
|
3320
3319
|
"content-class": t.footerClass
|
|
3321
3320
|
}, {
|
|
3322
3321
|
content: u(() => [
|
|
@@ -3337,7 +3336,7 @@ function Nn(e, s, t, o, n, i) {
|
|
|
3337
3336
|
}, 8, ["class"]))
|
|
3338
3337
|
]);
|
|
3339
3338
|
}
|
|
3340
|
-
const
|
|
3339
|
+
const st = /* @__PURE__ */ v(xn, [["render", Nn]]), ve = {
|
|
3341
3340
|
none: void 0,
|
|
3342
3341
|
small: "d-py0",
|
|
3343
3342
|
large: "d-py4"
|
|
@@ -3345,8 +3344,8 @@ const at = /* @__PURE__ */ v(xn, [["render", Nn]]), ve = {
|
|
|
3345
3344
|
const zn = {
|
|
3346
3345
|
name: "DtDropdown",
|
|
3347
3346
|
components: {
|
|
3348
|
-
DtPopover:
|
|
3349
|
-
SrOnlyCloseButton:
|
|
3347
|
+
DtPopover: st,
|
|
3348
|
+
SrOnlyCloseButton: ze
|
|
3350
3349
|
},
|
|
3351
3350
|
mixins: [
|
|
3352
3351
|
ts({
|
|
@@ -3360,7 +3359,7 @@ const zn = {
|
|
|
3360
3359
|
activeItemKey: "activeItemEl",
|
|
3361
3360
|
focusOnKeyboardNavigation: !0
|
|
3362
3361
|
}),
|
|
3363
|
-
|
|
3362
|
+
ne
|
|
3364
3363
|
],
|
|
3365
3364
|
inheritAttrs: !1,
|
|
3366
3365
|
props: {
|
|
@@ -3442,8 +3441,8 @@ const zn = {
|
|
|
3442
3441
|
*/
|
|
3443
3442
|
navigationType: {
|
|
3444
3443
|
type: String,
|
|
3445
|
-
default:
|
|
3446
|
-
validator: (e) => Object.values(
|
|
3444
|
+
default: ce.ARROW_KEYS,
|
|
3445
|
+
validator: (e) => Object.values(ce).includes(e)
|
|
3447
3446
|
},
|
|
3448
3447
|
/**
|
|
3449
3448
|
* If the dropdown does not fit in the direction described by "placement",
|
|
@@ -3495,7 +3494,7 @@ const zn = {
|
|
|
3495
3494
|
appendTo: {
|
|
3496
3495
|
type: [HTMLElement, String],
|
|
3497
3496
|
default: "body",
|
|
3498
|
-
validator: (e) =>
|
|
3497
|
+
validator: (e) => Me.includes(e) || e instanceof HTMLElement
|
|
3499
3498
|
},
|
|
3500
3499
|
/**
|
|
3501
3500
|
* If set to false the dialog will display over top of the anchor when there is insufficient space.
|
|
@@ -3551,7 +3550,7 @@ const zn = {
|
|
|
3551
3550
|
],
|
|
3552
3551
|
data() {
|
|
3553
3552
|
return {
|
|
3554
|
-
LIST_ITEM_NAVIGATION_TYPES:
|
|
3553
|
+
LIST_ITEM_NAVIGATION_TYPES: ce,
|
|
3555
3554
|
DROPDOWN_PADDING_CLASSES: ve,
|
|
3556
3555
|
openedWithKeyboard: !1,
|
|
3557
3556
|
isOpen: null
|
|
@@ -3565,25 +3564,25 @@ const zn = {
|
|
|
3565
3564
|
},
|
|
3566
3565
|
keydown: (e) => {
|
|
3567
3566
|
switch (e.code) {
|
|
3568
|
-
case
|
|
3569
|
-
case
|
|
3567
|
+
case H.up:
|
|
3568
|
+
case H.arrowup:
|
|
3570
3569
|
this.onUpKeyPress(e), e.stopPropagation(), e.preventDefault();
|
|
3571
3570
|
break;
|
|
3572
|
-
case
|
|
3573
|
-
case
|
|
3571
|
+
case H.down:
|
|
3572
|
+
case H.arrowdown:
|
|
3574
3573
|
this.onDownKeyPress(e), e.stopPropagation(), e.preventDefault();
|
|
3575
3574
|
break;
|
|
3576
|
-
case
|
|
3577
|
-
case
|
|
3575
|
+
case H.space:
|
|
3576
|
+
case H.spacebar:
|
|
3578
3577
|
this.onSpaceKey();
|
|
3579
3578
|
break;
|
|
3580
|
-
case
|
|
3579
|
+
case H.enter:
|
|
3581
3580
|
this.onEnterKey();
|
|
3582
3581
|
break;
|
|
3583
|
-
case
|
|
3582
|
+
case H.home:
|
|
3584
3583
|
this.onHomeKeyPress(e), e.stopPropagation(), e.preventDefault();
|
|
3585
3584
|
break;
|
|
3586
|
-
case
|
|
3585
|
+
case H.end:
|
|
3587
3586
|
this.onEndKeyPress(e), e.stopPropagation(), e.preventDefault();
|
|
3588
3587
|
break;
|
|
3589
3588
|
default:
|
|
@@ -3694,7 +3693,7 @@ function Mn(e, s, t, o, n, i) {
|
|
|
3694
3693
|
}, e.$attrs, {
|
|
3695
3694
|
tether: t.tether,
|
|
3696
3695
|
transition: t.transition
|
|
3697
|
-
},
|
|
3696
|
+
}, M(i.dropdownListeners)), {
|
|
3698
3697
|
anchor: u(({ attrs: d }) => [
|
|
3699
3698
|
c(e.$slots, "anchor", C({ ref: "anchor" }, d))
|
|
3700
3699
|
]),
|
|
@@ -3702,7 +3701,7 @@ function Mn(e, s, t, o, n, i) {
|
|
|
3702
3701
|
m("ul", {
|
|
3703
3702
|
id: t.listId,
|
|
3704
3703
|
ref: "listWrapper",
|
|
3705
|
-
class:
|
|
3704
|
+
class: b(i.listClasses),
|
|
3706
3705
|
"data-qa": "dt-dropdown-list-wrapper",
|
|
3707
3706
|
onMouseleave: s[0] || (s[0] = (...y) => i.clearHighlightIndex && i.clearHighlightIndex(...y)),
|
|
3708
3707
|
onMousemoveCapture: s[1] || (s[1] = (...y) => i.onMouseHighlight && i.onMouseHighlight(...y))
|
|
@@ -3729,7 +3728,7 @@ const Vn = {
|
|
|
3729
3728
|
function Fn(e, s, t, o, n, i) {
|
|
3730
3729
|
return a(), r("li", qn);
|
|
3731
3730
|
}
|
|
3732
|
-
const
|
|
3731
|
+
const Vr = /* @__PURE__ */ v(Vn, [["render", Fn]]), Kn = {
|
|
3733
3732
|
name: "DtImageViewer",
|
|
3734
3733
|
components: {
|
|
3735
3734
|
DtButton: K,
|
|
@@ -3813,11 +3812,11 @@ const qr = /* @__PURE__ */ v(Vn, [["render", Fn]]), Kn = {
|
|
|
3813
3812
|
},
|
|
3814
3813
|
keydown: (e) => {
|
|
3815
3814
|
switch (e.code) {
|
|
3816
|
-
case
|
|
3817
|
-
case
|
|
3815
|
+
case H.esc:
|
|
3816
|
+
case H.escape:
|
|
3818
3817
|
this.close();
|
|
3819
3818
|
break;
|
|
3820
|
-
case
|
|
3819
|
+
case H.tab:
|
|
3821
3820
|
this.trapFocus(e);
|
|
3822
3821
|
break;
|
|
3823
3822
|
}
|
|
@@ -3875,14 +3874,14 @@ function Zn(e, s, t, o, n, i) {
|
|
|
3875
3874
|
}, {
|
|
3876
3875
|
default: u(() => [
|
|
3877
3876
|
m("img", {
|
|
3878
|
-
class:
|
|
3877
|
+
class: b(t.imageButtonClass),
|
|
3879
3878
|
src: t.imageSrc,
|
|
3880
3879
|
alt: t.imageAlt
|
|
3881
3880
|
}, null, 10, jn)
|
|
3882
3881
|
]),
|
|
3883
3882
|
_: 1
|
|
3884
3883
|
}, 8, ["aria-label", "onClick"]),
|
|
3885
|
-
n.isOpen ? (a(), S(
|
|
3884
|
+
n.isOpen ? (a(), S(jt, {
|
|
3886
3885
|
key: 0,
|
|
3887
3886
|
to: "body"
|
|
3888
3887
|
}, [
|
|
@@ -3890,7 +3889,7 @@ function Zn(e, s, t, o, n, i) {
|
|
|
3890
3889
|
"aria-hidden": n.isOpen ? "false" : "true",
|
|
3891
3890
|
class: "d-modal",
|
|
3892
3891
|
"data-qa": "dt-modal"
|
|
3893
|
-
},
|
|
3892
|
+
}, M(i.modalListeners, !0), {
|
|
3894
3893
|
onMouseover: s[0] || (s[0] = (d) => n.showCloseButton = !0),
|
|
3895
3894
|
onMouseleave: s[1] || (s[1] = (d) => n.showCloseButton = !1),
|
|
3896
3895
|
onFocusin: s[2] || (s[2] = (d) => n.showCloseButton = !0),
|
|
@@ -3903,7 +3902,7 @@ function Zn(e, s, t, o, n, i) {
|
|
|
3903
3902
|
alt: t.imageAlt
|
|
3904
3903
|
}, null, 8, Un)
|
|
3905
3904
|
]),
|
|
3906
|
-
g(
|
|
3905
|
+
g(Ze, { name: "fade" }, {
|
|
3907
3906
|
default: u(() => [
|
|
3908
3907
|
n.showCloseButton ? (a(), S(l, {
|
|
3909
3908
|
key: 0,
|
|
@@ -3932,8 +3931,8 @@ function Zn(e, s, t, o, n, i) {
|
|
|
3932
3931
|
])) : p("", !0)
|
|
3933
3932
|
]);
|
|
3934
3933
|
}
|
|
3935
|
-
const
|
|
3936
|
-
components: { DtValidationMessages:
|
|
3934
|
+
const qr = /* @__PURE__ */ v(Kn, [["render", Zn]]), Yn = {
|
|
3935
|
+
components: { DtValidationMessages: me },
|
|
3937
3936
|
// provide data to slotted components
|
|
3938
3937
|
provide() {
|
|
3939
3938
|
return {
|
|
@@ -3986,7 +3985,7 @@ const Fr = /* @__PURE__ */ v(Kn, [["render", Zn]]), Yn = {
|
|
|
3986
3985
|
messages: {
|
|
3987
3986
|
type: Array,
|
|
3988
3987
|
default: () => [],
|
|
3989
|
-
validator: (e) =>
|
|
3988
|
+
validator: (e) => Gt(e)
|
|
3990
3989
|
},
|
|
3991
3990
|
/**
|
|
3992
3991
|
* Show validation messages
|
|
@@ -4035,22 +4034,22 @@ const Fr = /* @__PURE__ */ v(Kn, [["render", Zn]]), Yn = {
|
|
|
4035
4034
|
"input"
|
|
4036
4035
|
],
|
|
4037
4036
|
data() {
|
|
4038
|
-
const e =
|
|
4037
|
+
const e = wt(this.messages);
|
|
4039
4038
|
return {
|
|
4040
4039
|
// wrap values in object to make reactive
|
|
4041
4040
|
provideObj: {
|
|
4042
4041
|
name: this.name,
|
|
4043
4042
|
disabled: this.disabled,
|
|
4044
|
-
validationState:
|
|
4043
|
+
validationState: We(e)
|
|
4045
4044
|
}
|
|
4046
4045
|
};
|
|
4047
4046
|
},
|
|
4048
4047
|
computed: {
|
|
4049
4048
|
formattedMessages() {
|
|
4050
|
-
return
|
|
4049
|
+
return wt(this.messages);
|
|
4051
4050
|
},
|
|
4052
4051
|
validationState() {
|
|
4053
|
-
return
|
|
4052
|
+
return We(this.formattedMessages);
|
|
4054
4053
|
}
|
|
4055
4054
|
},
|
|
4056
4055
|
watch: {
|
|
@@ -4075,7 +4074,7 @@ const Fr = /* @__PURE__ */ v(Kn, [["render", Zn]]), Yn = {
|
|
|
4075
4074
|
}
|
|
4076
4075
|
}, Qn = {
|
|
4077
4076
|
name: "DtInputGroup",
|
|
4078
|
-
components: { DtValidationMessages:
|
|
4077
|
+
components: { DtValidationMessages: me },
|
|
4079
4078
|
mixins: [Yn],
|
|
4080
4079
|
props: {
|
|
4081
4080
|
/**
|
|
@@ -4103,7 +4102,7 @@ const Fr = /* @__PURE__ */ v(Kn, [["render", Zn]]), Yn = {
|
|
|
4103
4102
|
data() {
|
|
4104
4103
|
return {
|
|
4105
4104
|
internalValue: this.value,
|
|
4106
|
-
hasSlotContent:
|
|
4105
|
+
hasSlotContent: N
|
|
4107
4106
|
};
|
|
4108
4107
|
},
|
|
4109
4108
|
watch: {
|
|
@@ -4148,13 +4147,13 @@ function ea(e, s, t, o, n, i) {
|
|
|
4148
4147
|
}, e.messagesChildProps), null, 16, ["validation-messages", "show-messages", "class", "data-qa"])
|
|
4149
4148
|
], 8, Xn);
|
|
4150
4149
|
}
|
|
4151
|
-
const os = /* @__PURE__ */ v(Qn, [["render", ea]]),
|
|
4150
|
+
const os = /* @__PURE__ */ v(Qn, [["render", ea]]), Nt = {
|
|
4152
4151
|
default: "",
|
|
4153
4152
|
danger: "d-modal--danger"
|
|
4154
|
-
},
|
|
4153
|
+
}, zt = {
|
|
4155
4154
|
default: "",
|
|
4156
4155
|
full: "d-modal--full"
|
|
4157
|
-
},
|
|
4156
|
+
}, $t = {
|
|
4158
4157
|
error: "d-modal__banner--critical",
|
|
4159
4158
|
info: "d-modal__banner--info",
|
|
4160
4159
|
success: "d-modal__banner--success",
|
|
@@ -4163,11 +4162,11 @@ const os = /* @__PURE__ */ v(Qn, [["render", ea]]), zt = {
|
|
|
4163
4162
|
}, ta = {
|
|
4164
4163
|
name: "DtNotice",
|
|
4165
4164
|
components: {
|
|
4166
|
-
DtNoticeIcon:
|
|
4167
|
-
DtNoticeContent:
|
|
4168
|
-
DtNoticeAction:
|
|
4165
|
+
DtNoticeIcon: Je,
|
|
4166
|
+
DtNoticeContent: et,
|
|
4167
|
+
DtNoticeAction: tt
|
|
4169
4168
|
},
|
|
4170
|
-
mixins: [
|
|
4169
|
+
mixins: [ne],
|
|
4171
4170
|
props: {
|
|
4172
4171
|
/**
|
|
4173
4172
|
* Sets an ID on the title element of the component. Useful for aria-describedby
|
|
@@ -4275,7 +4274,7 @@ const os = /* @__PURE__ */ v(Qn, [["render", ea]]), zt = {
|
|
|
4275
4274
|
function sa(e, s, t, o, n, i) {
|
|
4276
4275
|
const l = f("dt-notice-icon"), h = f("dt-notice-content"), d = f("dt-notice-action");
|
|
4277
4276
|
return a(), r("aside", {
|
|
4278
|
-
class:
|
|
4277
|
+
class: b(i.noticeClass),
|
|
4279
4278
|
"data-qa": "notice"
|
|
4280
4279
|
}, [
|
|
4281
4280
|
g(l, { kind: t.kind }, {
|
|
@@ -4312,15 +4311,15 @@ function sa(e, s, t, o, n, i) {
|
|
|
4312
4311
|
}, 8, ["hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label"])
|
|
4313
4312
|
], 2);
|
|
4314
4313
|
}
|
|
4315
|
-
const
|
|
4314
|
+
const Fr = /* @__PURE__ */ v(ta, [["render", sa]]), ia = {
|
|
4316
4315
|
name: "DtModal",
|
|
4317
4316
|
components: {
|
|
4318
|
-
DtLazyShow:
|
|
4317
|
+
DtLazyShow: Ne,
|
|
4319
4318
|
DtButton: K,
|
|
4320
4319
|
DtIcon: R,
|
|
4321
|
-
SrOnlyCloseButton:
|
|
4320
|
+
SrOnlyCloseButton: ze
|
|
4322
4321
|
},
|
|
4323
|
-
mixins: [Le,
|
|
4322
|
+
mixins: [Le, ne],
|
|
4324
4323
|
props: {
|
|
4325
4324
|
/**
|
|
4326
4325
|
* A set of props to be passed into the modal's close button.
|
|
@@ -4386,7 +4385,7 @@ const Kr = /* @__PURE__ */ v(ta, [["render", sa]]), ia = {
|
|
|
4386
4385
|
kind: {
|
|
4387
4386
|
type: String,
|
|
4388
4387
|
default: "default",
|
|
4389
|
-
validator: (e) => Object.keys(
|
|
4388
|
+
validator: (e) => Object.keys(Nt).includes(e)
|
|
4390
4389
|
},
|
|
4391
4390
|
/**
|
|
4392
4391
|
* The size of the modal. size - default or full,
|
|
@@ -4395,7 +4394,7 @@ const Kr = /* @__PURE__ */ v(ta, [["render", sa]]), ia = {
|
|
|
4395
4394
|
size: {
|
|
4396
4395
|
type: String,
|
|
4397
4396
|
default: "default",
|
|
4398
|
-
validator: (e) => Object.keys(
|
|
4397
|
+
validator: (e) => Object.keys(zt).includes(e)
|
|
4399
4398
|
},
|
|
4400
4399
|
/**
|
|
4401
4400
|
* Additional class name for the root modal element.
|
|
@@ -4495,11 +4494,11 @@ const Kr = /* @__PURE__ */ v(ta, [["render", sa]]), ia = {
|
|
|
4495
4494
|
],
|
|
4496
4495
|
data() {
|
|
4497
4496
|
return {
|
|
4498
|
-
MODAL_KIND_MODIFIERS:
|
|
4499
|
-
MODAL_SIZE_MODIFIERS:
|
|
4500
|
-
MODAL_BANNER_KINDS:
|
|
4501
|
-
EVENT_KEYNAMES:
|
|
4502
|
-
hasSlotContent:
|
|
4497
|
+
MODAL_KIND_MODIFIERS: Nt,
|
|
4498
|
+
MODAL_SIZE_MODIFIERS: zt,
|
|
4499
|
+
MODAL_BANNER_KINDS: $t,
|
|
4500
|
+
EVENT_KEYNAMES: H,
|
|
4501
|
+
hasSlotContent: N
|
|
4503
4502
|
};
|
|
4504
4503
|
},
|
|
4505
4504
|
computed: {
|
|
@@ -4510,11 +4509,11 @@ const Kr = /* @__PURE__ */ v(ta, [["render", sa]]), ia = {
|
|
|
4510
4509
|
},
|
|
4511
4510
|
keydown: (e) => {
|
|
4512
4511
|
switch (e.code) {
|
|
4513
|
-
case
|
|
4514
|
-
case
|
|
4512
|
+
case H.esc:
|
|
4513
|
+
case H.escape:
|
|
4515
4514
|
this.close();
|
|
4516
4515
|
break;
|
|
4517
|
-
case
|
|
4516
|
+
case H.tab:
|
|
4518
4517
|
this.trapFocus(e);
|
|
4519
4518
|
break;
|
|
4520
4519
|
}
|
|
@@ -4532,7 +4531,7 @@ const Kr = /* @__PURE__ */ v(ta, [["render", sa]]), ia = {
|
|
|
4532
4531
|
return !!this.$slots.footer;
|
|
4533
4532
|
},
|
|
4534
4533
|
bannerKindClass() {
|
|
4535
|
-
return
|
|
4534
|
+
return $t[this.bannerKind];
|
|
4536
4535
|
}
|
|
4537
4536
|
},
|
|
4538
4537
|
watch: {
|
|
@@ -4583,12 +4582,12 @@ function ra(e, s, t, o, n, i) {
|
|
|
4583
4582
|
],
|
|
4584
4583
|
"data-qa": "dt-modal",
|
|
4585
4584
|
"aria-hidden": i.open
|
|
4586
|
-
},
|
|
4585
|
+
}, M(i.modalListeners)), {
|
|
4587
4586
|
default: u(() => [
|
|
4588
4587
|
t.show && (n.hasSlotContent(e.$slots.banner) || t.bannerTitle) ? (a(), r("div", {
|
|
4589
4588
|
key: 0,
|
|
4590
4589
|
"data-qa": "dt-modal-banner",
|
|
4591
|
-
class:
|
|
4590
|
+
class: b([
|
|
4592
4591
|
"d-modal__banner",
|
|
4593
4592
|
t.bannerClass,
|
|
4594
4593
|
i.bannerKindClass
|
|
@@ -4598,13 +4597,13 @@ function ra(e, s, t, o, n, i) {
|
|
|
4598
4597
|
D(I(t.bannerTitle), 1)
|
|
4599
4598
|
])
|
|
4600
4599
|
], 2)) : p("", !0),
|
|
4601
|
-
g(
|
|
4600
|
+
g(Ze, {
|
|
4602
4601
|
appear: "",
|
|
4603
4602
|
name: "d-modal__dialog"
|
|
4604
4603
|
}, {
|
|
4605
4604
|
default: u(() => [
|
|
4606
4605
|
Se(m("div", {
|
|
4607
|
-
class:
|
|
4606
|
+
class: b([
|
|
4608
4607
|
"d-modal__dialog",
|
|
4609
4608
|
{ "d-modal__dialog--scrollable": t.fixedHeaderFooter },
|
|
4610
4609
|
t.dialogClass
|
|
@@ -4629,7 +4628,7 @@ function ra(e, s, t, o, n, i) {
|
|
|
4629
4628
|
}, I(t.title), 9, oa)),
|
|
4630
4629
|
n.hasSlotContent(e.$slots.default) ? (a(), r("div", {
|
|
4631
4630
|
key: 2,
|
|
4632
|
-
class:
|
|
4631
|
+
class: b([
|
|
4633
4632
|
"d-modal__content",
|
|
4634
4633
|
t.contentClass
|
|
4635
4634
|
]),
|
|
@@ -4638,7 +4637,7 @@ function ra(e, s, t, o, n, i) {
|
|
|
4638
4637
|
c(e.$slots, "default")
|
|
4639
4638
|
], 2)) : (a(), r("p", {
|
|
4640
4639
|
key: 3,
|
|
4641
|
-
class:
|
|
4640
|
+
class: b([
|
|
4642
4641
|
"d-modal__content",
|
|
4643
4642
|
t.contentClass
|
|
4644
4643
|
]),
|
|
@@ -4678,7 +4677,7 @@ function ra(e, s, t, o, n, i) {
|
|
|
4678
4677
|
_: 3
|
|
4679
4678
|
}, 16, ["show", "class", "aria-hidden"]);
|
|
4680
4679
|
}
|
|
4681
|
-
const
|
|
4680
|
+
const Kr = /* @__PURE__ */ v(ia, [["render", ra]]);
|
|
4682
4681
|
const da = {
|
|
4683
4682
|
name: "ListSection",
|
|
4684
4683
|
components: {
|
|
@@ -4693,7 +4692,7 @@ const da = {
|
|
|
4693
4692
|
id: {
|
|
4694
4693
|
type: String,
|
|
4695
4694
|
default() {
|
|
4696
|
-
return
|
|
4695
|
+
return Q.getUniqueString();
|
|
4697
4696
|
}
|
|
4698
4697
|
},
|
|
4699
4698
|
// Leave blank if you want no header
|
|
@@ -4762,7 +4761,7 @@ function ma(e, s, t, o, n, i) {
|
|
|
4762
4761
|
role: "group",
|
|
4763
4762
|
"aria-labelledby": `${t.id}-list-section-header`,
|
|
4764
4763
|
tabindex: "-1",
|
|
4765
|
-
class:
|
|
4764
|
+
class: b([
|
|
4766
4765
|
"dt-list-section",
|
|
4767
4766
|
"d-fs-200",
|
|
4768
4767
|
"d-lh6",
|
|
@@ -4804,7 +4803,7 @@ function ma(e, s, t, o, n, i) {
|
|
|
4804
4803
|
])
|
|
4805
4804
|
], 10, ca);
|
|
4806
4805
|
}
|
|
4807
|
-
const
|
|
4806
|
+
const jr = /* @__PURE__ */ v(da, [["render", ma]]), ga = {
|
|
4808
4807
|
name: "DtListItemGroup",
|
|
4809
4808
|
props: {
|
|
4810
4809
|
/**
|
|
@@ -4842,7 +4841,7 @@ const Gr = /* @__PURE__ */ v(da, [["render", ma]]), ga = {
|
|
|
4842
4841
|
function ya(e, s, t, o, n, i) {
|
|
4843
4842
|
return a(), r("ul", {
|
|
4844
4843
|
id: t.id,
|
|
4845
|
-
class:
|
|
4844
|
+
class: b(["d-ps-relative", "d-px0", t.listClass]),
|
|
4846
4845
|
role: "group",
|
|
4847
4846
|
"data-qa": "dt-dropdown-list-wrapper",
|
|
4848
4847
|
"aria-labelledby": `${t.id}-heading`
|
|
@@ -4852,7 +4851,7 @@ function ya(e, s, t, o, n, i) {
|
|
|
4852
4851
|
id: `${t.id}-heading`,
|
|
4853
4852
|
role: "presentation",
|
|
4854
4853
|
"data-qa": "dt-dropdown-list-heading",
|
|
4855
|
-
class:
|
|
4854
|
+
class: b(["dt-dropdown-list--header", t.headingClass])
|
|
4856
4855
|
}, [
|
|
4857
4856
|
c(e.$slots, "headingSlot", {}, () => [
|
|
4858
4857
|
D(I(t.heading), 1)
|
|
@@ -4861,7 +4860,7 @@ function ya(e, s, t, o, n, i) {
|
|
|
4861
4860
|
c(e.$slots, "default")
|
|
4862
4861
|
], 10, _a);
|
|
4863
4862
|
}
|
|
4864
|
-
const
|
|
4863
|
+
const Gr = /* @__PURE__ */ v(ga, [["render", ya]]), va = {
|
|
4865
4864
|
name: "DtPagination",
|
|
4866
4865
|
components: {
|
|
4867
4866
|
DtButton: K,
|
|
@@ -4979,7 +4978,7 @@ function Ia(e, s, t, o, n, i) {
|
|
|
4979
4978
|
class: "d-d-flex d-fd-row d-gg4 d-ai-center"
|
|
4980
4979
|
}, [
|
|
4981
4980
|
g(h, {
|
|
4982
|
-
class:
|
|
4981
|
+
class: b(["d-px8", i.isFirstPage ? "d-fc-black-300 d-bgc-transparent" : "d-fc-tertiary"]),
|
|
4983
4982
|
"data-qa": "dt-pagination-prev",
|
|
4984
4983
|
"aria-label": t.prevAriaLabel,
|
|
4985
4984
|
kind: "muted",
|
|
@@ -4995,9 +4994,9 @@ function Ia(e, s, t, o, n, i) {
|
|
|
4995
4994
|
]),
|
|
4996
4995
|
_: 1
|
|
4997
4996
|
}, 8, ["aria-label", "importance", "disabled", "class"]),
|
|
4998
|
-
(a(!0), r(
|
|
4997
|
+
(a(!0), r(X, null, ie(i.pages, (d, y) => (a(), r("div", {
|
|
4999
4998
|
key: `page-${d}-${y}`,
|
|
5000
|
-
class:
|
|
4999
|
+
class: b({ "d-as-flex-end": isNaN(Number(d)) })
|
|
5001
5000
|
}, [
|
|
5002
5001
|
isNaN(Number(d)) ? (a(), r("div", Ca, [
|
|
5003
5002
|
g(l, {
|
|
@@ -5010,7 +5009,7 @@ function Ia(e, s, t, o, n, i) {
|
|
|
5010
5009
|
kind: n.currentPage === d ? "default" : "muted",
|
|
5011
5010
|
importance: n.currentPage === d ? "primary" : "clear",
|
|
5012
5011
|
"label-class": "",
|
|
5013
|
-
onClick: (
|
|
5012
|
+
onClick: (O) => i.changePage(d)
|
|
5014
5013
|
}, {
|
|
5015
5014
|
default: u(() => [
|
|
5016
5015
|
D(I(d), 1)
|
|
@@ -5019,7 +5018,7 @@ function Ia(e, s, t, o, n, i) {
|
|
|
5019
5018
|
}, 1032, ["aria-label", "kind", "importance", "onClick"]))
|
|
5020
5019
|
], 2))), 128)),
|
|
5021
5020
|
g(h, {
|
|
5022
|
-
class:
|
|
5021
|
+
class: b(["d-px8", i.isLastPage ? "d-fc-black-300 d-bgc-transparent" : "d-fc-tertiary"]),
|
|
5023
5022
|
"data-qa": "dt-pagination-next",
|
|
5024
5023
|
"aria-label": t.nextAriaLabel,
|
|
5025
5024
|
disabled: i.isLastPage,
|
|
@@ -5037,14 +5036,14 @@ function Ia(e, s, t, o, n, i) {
|
|
|
5037
5036
|
}, 8, ["aria-label", "disabled", "importance", "class"])
|
|
5038
5037
|
], 8, Sa);
|
|
5039
5038
|
}
|
|
5040
|
-
const
|
|
5039
|
+
const Wr = /* @__PURE__ */ v(va, [["render", Ia]]), wa = {
|
|
5041
5040
|
warning: "d-radio--warning",
|
|
5042
5041
|
error: "d-radio--error",
|
|
5043
5042
|
success: "d-radio--success"
|
|
5044
5043
|
}, Ea = {
|
|
5045
5044
|
name: "DtRadio",
|
|
5046
|
-
components: { DtValidationMessages:
|
|
5047
|
-
mixins: [
|
|
5045
|
+
components: { DtValidationMessages: me },
|
|
5046
|
+
mixins: [Wt, Ut, Zt, Qe],
|
|
5048
5047
|
inheritAttrs: !1,
|
|
5049
5048
|
props: {
|
|
5050
5049
|
/**
|
|
@@ -5094,7 +5093,7 @@ const Ur = /* @__PURE__ */ v(va, [["render", Ia]]), wa = {
|
|
|
5094
5093
|
],
|
|
5095
5094
|
data() {
|
|
5096
5095
|
return {
|
|
5097
|
-
hasSlotContent:
|
|
5096
|
+
hasSlotContent: N
|
|
5098
5097
|
};
|
|
5099
5098
|
},
|
|
5100
5099
|
computed: {
|
|
@@ -5141,7 +5140,7 @@ function Ta(e, s, t, o, n, i) {
|
|
|
5141
5140
|
const l = f("dt-validation-messages");
|
|
5142
5141
|
return a(), r("label", null, [
|
|
5143
5142
|
m("div", {
|
|
5144
|
-
class:
|
|
5143
|
+
class: b(["d-radio-group", { "d-radio-group--disabled": e.internalDisabled }])
|
|
5145
5144
|
}, [
|
|
5146
5145
|
m("div", ka, [
|
|
5147
5146
|
m("input", C({
|
|
@@ -5151,7 +5150,7 @@ function Ta(e, s, t, o, n, i) {
|
|
|
5151
5150
|
disabled: e.internalDisabled,
|
|
5152
5151
|
type: "radio",
|
|
5153
5152
|
class: ["d-radio", i.inputValidationClass, e.inputClass]
|
|
5154
|
-
}, e.$attrs,
|
|
5153
|
+
}, e.$attrs, M(i.inputListeners, !0)), null, 16, Oa)
|
|
5155
5154
|
]),
|
|
5156
5155
|
m("div", La, [
|
|
5157
5156
|
m("div", C({ class: e.labelClass }, e.labelChildProps, { "data-qa": "radio-label" }), [
|
|
@@ -5176,7 +5175,7 @@ function Ta(e, s, t, o, n, i) {
|
|
|
5176
5175
|
], 2)
|
|
5177
5176
|
]);
|
|
5178
5177
|
}
|
|
5179
|
-
const
|
|
5178
|
+
const Ur = /* @__PURE__ */ v(Ea, [["render", Ta]]), Zr = {
|
|
5180
5179
|
name: "DtRadioGroup",
|
|
5181
5180
|
extends: os,
|
|
5182
5181
|
props: {
|
|
@@ -5322,7 +5321,7 @@ function Pa(e, s, t, o, n, i) {
|
|
|
5322
5321
|
tabindex: n.isFirstElementFocusable ? -1 : 0,
|
|
5323
5322
|
"aria-labelledby": `dt-tab-${t.tabId}`,
|
|
5324
5323
|
"aria-hidden": `${i.hidePanel}`,
|
|
5325
|
-
class:
|
|
5324
|
+
class: b([
|
|
5326
5325
|
{
|
|
5327
5326
|
"d-d-none": i.hidePanel
|
|
5328
5327
|
},
|
|
@@ -5335,14 +5334,14 @@ function Pa(e, s, t, o, n, i) {
|
|
|
5335
5334
|
[Ce, !t.hidden]
|
|
5336
5335
|
]);
|
|
5337
5336
|
}
|
|
5338
|
-
const
|
|
5337
|
+
const Yr = /* @__PURE__ */ v(Aa, [["render", Pa]]), xa = {
|
|
5339
5338
|
error: "d-checkbox--error",
|
|
5340
5339
|
warning: "d-checkbox--warning",
|
|
5341
5340
|
success: "d-checkbox--success"
|
|
5342
5341
|
}, Ra = {
|
|
5343
5342
|
name: "DtCheckbox",
|
|
5344
|
-
components: { DtValidationMessages:
|
|
5345
|
-
mixins: [
|
|
5343
|
+
components: { DtValidationMessages: me },
|
|
5344
|
+
mixins: [Wt, Ut, Zt, Qe],
|
|
5346
5345
|
inheritAttrs: !1,
|
|
5347
5346
|
emits: [
|
|
5348
5347
|
/**
|
|
@@ -5428,7 +5427,7 @@ function $a(e, s, t, o, n, i) {
|
|
|
5428
5427
|
const l = f("dt-validation-messages");
|
|
5429
5428
|
return a(), r("label", null, [
|
|
5430
5429
|
m("div", {
|
|
5431
|
-
class:
|
|
5430
|
+
class: b(["d-checkbox-group", { "d-checkbox-group--disabled": e.internalDisabled }])
|
|
5432
5431
|
}, [
|
|
5433
5432
|
m("div", Ba, [
|
|
5434
5433
|
m("input", C({
|
|
@@ -5438,7 +5437,7 @@ function $a(e, s, t, o, n, i) {
|
|
|
5438
5437
|
value: e.value,
|
|
5439
5438
|
disabled: e.internalDisabled,
|
|
5440
5439
|
class: ["d-checkbox", i.inputValidationClass, e.inputClass]
|
|
5441
|
-
}, e.$attrs, { ".indeterminate": e.internalIndeterminate },
|
|
5440
|
+
}, e.$attrs, { ".indeterminate": e.internalIndeterminate }, M(i.inputListeners, !0)), null, 16, Na)
|
|
5442
5441
|
]),
|
|
5443
5442
|
i.hasLabelOrDescription ? (a(), r("div", za, [
|
|
5444
5443
|
i.hasLabel ? (a(), r("div", C({
|
|
@@ -5466,7 +5465,7 @@ function $a(e, s, t, o, n, i) {
|
|
|
5466
5465
|
], 2)
|
|
5467
5466
|
]);
|
|
5468
5467
|
}
|
|
5469
|
-
const
|
|
5468
|
+
const Qr = /* @__PURE__ */ v(Ra, [["render", $a]]), Xr = {
|
|
5470
5469
|
name: "DtCheckboxGroup",
|
|
5471
5470
|
extends: os,
|
|
5472
5471
|
model: {
|
|
@@ -5558,7 +5557,7 @@ const Xr = /* @__PURE__ */ v(Ra, [["render", $a]]), Jr = {
|
|
|
5558
5557
|
return `checkbox-group-message-${e}-${s}-${this.id}`;
|
|
5559
5558
|
}
|
|
5560
5559
|
}
|
|
5561
|
-
},
|
|
5560
|
+
}, Mt = {
|
|
5562
5561
|
xs: "d-chip__label--xs",
|
|
5563
5562
|
sm: "d-chip__label--sm",
|
|
5564
5563
|
md: ""
|
|
@@ -5602,7 +5601,7 @@ const Xr = /* @__PURE__ */ v(Ra, [["render", $a]]), Jr = {
|
|
|
5602
5601
|
size: {
|
|
5603
5602
|
type: String,
|
|
5604
5603
|
default: "md",
|
|
5605
|
-
validator: (e) => Object.keys(
|
|
5604
|
+
validator: (e) => Object.keys(Mt).includes(e)
|
|
5606
5605
|
},
|
|
5607
5606
|
/**
|
|
5608
5607
|
* The interactivity of the chip.
|
|
@@ -5670,7 +5669,7 @@ const Xr = /* @__PURE__ */ v(Ra, [["render", $a]]), Jr = {
|
|
|
5670
5669
|
data() {
|
|
5671
5670
|
return {
|
|
5672
5671
|
isActive: !1,
|
|
5673
|
-
hasSlotContent:
|
|
5672
|
+
hasSlotContent: N
|
|
5674
5673
|
};
|
|
5675
5674
|
},
|
|
5676
5675
|
computed: {
|
|
@@ -5693,7 +5692,7 @@ const Xr = /* @__PURE__ */ v(Ra, [["render", $a]]), Jr = {
|
|
|
5693
5692
|
chipClasses() {
|
|
5694
5693
|
return [
|
|
5695
5694
|
this.$attrs["grouped-chip"] ? "d-chip" : "d-chip__label",
|
|
5696
|
-
|
|
5695
|
+
Mt[this.size],
|
|
5697
5696
|
this.labelClass
|
|
5698
5697
|
];
|
|
5699
5698
|
},
|
|
@@ -5718,14 +5717,14 @@ const Xr = /* @__PURE__ */ v(Ra, [["render", $a]]), Jr = {
|
|
|
5718
5717
|
function Ga(e, s, t, o, n, i) {
|
|
5719
5718
|
const l = f("dt-icon"), h = f("dt-button");
|
|
5720
5719
|
return a(), r("span", qa, [
|
|
5721
|
-
(a(), S(
|
|
5720
|
+
(a(), S(J(t.interactive ? "button" : "span"), C({
|
|
5722
5721
|
id: t.id,
|
|
5723
5722
|
type: t.interactive && "button",
|
|
5724
5723
|
class: i.chipClasses(),
|
|
5725
5724
|
"data-qa": "dt-chip",
|
|
5726
5725
|
"aria-labelledby": t.ariaLabel ? void 0 : `${t.id}-content`,
|
|
5727
5726
|
"aria-label": t.ariaLabel
|
|
5728
|
-
},
|
|
5727
|
+
}, M(i.chipListeners)), {
|
|
5729
5728
|
default: u(() => [
|
|
5730
5729
|
n.hasSlotContent(e.$slots.icon) ? (a(), r("span", Fa, [
|
|
5731
5730
|
c(e.$slots, "icon")
|
|
@@ -5736,7 +5735,7 @@ function Ga(e, s, t, o, n, i) {
|
|
|
5736
5735
|
key: 2,
|
|
5737
5736
|
id: `${t.id}-content`,
|
|
5738
5737
|
"data-qa": "dt-chip-label",
|
|
5739
|
-
class:
|
|
5738
|
+
class: b(["d-truncate", "d-chip__text", t.contentClass])
|
|
5740
5739
|
}, [
|
|
5741
5740
|
c(e.$slots, "default")
|
|
5742
5741
|
], 10, ja)) : p("", !0)
|
|
@@ -5759,7 +5758,7 @@ function Ga(e, s, t, o, n, i) {
|
|
|
5759
5758
|
}, 16, ["class", "aria-label"]))
|
|
5760
5759
|
]);
|
|
5761
5760
|
}
|
|
5762
|
-
const ls = /* @__PURE__ */ v(Va, [["render", Ga]]),
|
|
5761
|
+
const ls = /* @__PURE__ */ v(Va, [["render", Ga]]), Ht = {
|
|
5763
5762
|
xs: "d-select--xs",
|
|
5764
5763
|
sm: "d-select--sm",
|
|
5765
5764
|
md: "",
|
|
@@ -5771,8 +5770,8 @@ const ls = /* @__PURE__ */ v(Va, [["render", Ga]]), Vt = {
|
|
|
5771
5770
|
success: "d-select__input--success"
|
|
5772
5771
|
}, Ua = (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) => !(!Ua(s) || !Za(s) || !Ya(s))) : !0, Xa = {
|
|
5773
5772
|
name: "DtSelectMenu",
|
|
5774
|
-
components: { DtValidationMessages:
|
|
5775
|
-
mixins: [
|
|
5773
|
+
components: { DtValidationMessages: me },
|
|
5774
|
+
mixins: [Qe],
|
|
5776
5775
|
inheritAttrs: !1,
|
|
5777
5776
|
props: {
|
|
5778
5777
|
/**
|
|
@@ -5809,7 +5808,7 @@ const ls = /* @__PURE__ */ v(Va, [["render", Ga]]), Vt = {
|
|
|
5809
5808
|
size: {
|
|
5810
5809
|
type: String,
|
|
5811
5810
|
default: "md",
|
|
5812
|
-
validator: (e) => Object.keys(
|
|
5811
|
+
validator: (e) => Object.keys(Ht).includes(e)
|
|
5813
5812
|
},
|
|
5814
5813
|
/**
|
|
5815
5814
|
* Used to customize the label container
|
|
@@ -5887,11 +5886,11 @@ const ls = /* @__PURE__ */ v(Va, [["render", Ga]]), Vt = {
|
|
|
5887
5886
|
],
|
|
5888
5887
|
data() {
|
|
5889
5888
|
return {
|
|
5890
|
-
LABEL_SIZE_MODIFIERS:
|
|
5891
|
-
DESCRIPTION_SIZE_MODIFIERS:
|
|
5892
|
-
SELECT_SIZE_MODIFIERS:
|
|
5889
|
+
LABEL_SIZE_MODIFIERS: xs,
|
|
5890
|
+
DESCRIPTION_SIZE_MODIFIERS: Rs,
|
|
5891
|
+
SELECT_SIZE_MODIFIERS: Ht,
|
|
5893
5892
|
SELECT_STATE_MODIFIERS: Wa,
|
|
5894
|
-
hasSlotContent:
|
|
5893
|
+
hasSlotContent: N
|
|
5895
5894
|
};
|
|
5896
5895
|
},
|
|
5897
5896
|
computed: {
|
|
@@ -5908,7 +5907,7 @@ const ls = /* @__PURE__ */ v(Va, [["render", Ga]]), Vt = {
|
|
|
5908
5907
|
};
|
|
5909
5908
|
},
|
|
5910
5909
|
state() {
|
|
5911
|
-
return
|
|
5910
|
+
return We(this.formattedMessages);
|
|
5912
5911
|
},
|
|
5913
5912
|
selectKey() {
|
|
5914
5913
|
return F();
|
|
@@ -5970,7 +5969,7 @@ function io(e, s, t, o, n, i) {
|
|
|
5970
5969
|
])
|
|
5971
5970
|
], 16, eo)) : p("", !0),
|
|
5972
5971
|
m("div", {
|
|
5973
|
-
class:
|
|
5972
|
+
class: b([
|
|
5974
5973
|
"d-select",
|
|
5975
5974
|
n.SELECT_SIZE_MODIFIERS[t.size],
|
|
5976
5975
|
t.selectClass,
|
|
@@ -5986,9 +5985,9 @@ function io(e, s, t, o, n, i) {
|
|
|
5986
5985
|
}, e.$attrs, {
|
|
5987
5986
|
"data-qa": "dt-select",
|
|
5988
5987
|
disabled: t.disabled
|
|
5989
|
-
},
|
|
5988
|
+
}, M(i.selectListeners, !0)), [
|
|
5990
5989
|
c(e.$slots, "default", {}, () => [
|
|
5991
|
-
(a(!0), r(
|
|
5990
|
+
(a(!0), r(X, null, ie(t.options, (h) => (a(), r("option", C({
|
|
5992
5991
|
key: i.getOptionKey(h.value),
|
|
5993
5992
|
value: h.value,
|
|
5994
5993
|
class: t.optionClass
|
|
@@ -6004,14 +6003,14 @@ function io(e, s, t, o, n, i) {
|
|
|
6004
6003
|
}, e.messagesChildProps, { "data-qa": "dt-select-messages" }), null, 16, ["validation-messages", "show-messages", "class"])
|
|
6005
6004
|
]);
|
|
6006
6005
|
}
|
|
6007
|
-
const
|
|
6006
|
+
const Jr = /* @__PURE__ */ v(Xa, [["render", io]]), no = ["status", "alert"], Vt = 6e3, ao = {
|
|
6008
6007
|
name: "DtToast",
|
|
6009
6008
|
components: {
|
|
6010
|
-
DtNoticeIcon:
|
|
6011
|
-
DtNoticeContent:
|
|
6012
|
-
DtNoticeAction:
|
|
6009
|
+
DtNoticeIcon: Je,
|
|
6010
|
+
DtNoticeContent: et,
|
|
6011
|
+
DtNoticeAction: tt
|
|
6013
6012
|
},
|
|
6014
|
-
mixins: [
|
|
6013
|
+
mixins: [ne],
|
|
6015
6014
|
props: {
|
|
6016
6015
|
/**
|
|
6017
6016
|
* Sets an ID on the title element of the component. Useful for aria-describedby
|
|
@@ -6020,7 +6019,7 @@ const ed = /* @__PURE__ */ v(Xa, [["render", io]]), no = ["status", "alert"], qt
|
|
|
6020
6019
|
titleId: {
|
|
6021
6020
|
type: String,
|
|
6022
6021
|
default() {
|
|
6023
|
-
return
|
|
6022
|
+
return Q.getUniqueString();
|
|
6024
6023
|
}
|
|
6025
6024
|
},
|
|
6026
6025
|
/**
|
|
@@ -6030,7 +6029,7 @@ const ed = /* @__PURE__ */ v(Xa, [["render", io]]), no = ["status", "alert"], qt
|
|
|
6030
6029
|
contentId: {
|
|
6031
6030
|
type: String,
|
|
6032
6031
|
default() {
|
|
6033
|
-
return
|
|
6032
|
+
return Q.getUniqueString();
|
|
6034
6033
|
}
|
|
6035
6034
|
},
|
|
6036
6035
|
/**
|
|
@@ -6108,7 +6107,7 @@ const ed = /* @__PURE__ */ v(Xa, [["render", io]]), no = ["status", "alert"], qt
|
|
|
6108
6107
|
duration: {
|
|
6109
6108
|
type: Number,
|
|
6110
6109
|
default: null,
|
|
6111
|
-
validator: (e) => e >=
|
|
6110
|
+
validator: (e) => e >= Vt
|
|
6112
6111
|
}
|
|
6113
6112
|
},
|
|
6114
6113
|
emits: [
|
|
@@ -6135,7 +6134,7 @@ const ed = /* @__PURE__ */ v(Xa, [["render", io]]), no = ["status", "alert"], qt
|
|
|
6135
6134
|
data() {
|
|
6136
6135
|
return {
|
|
6137
6136
|
isShown: !1,
|
|
6138
|
-
minDuration:
|
|
6137
|
+
minDuration: Vt
|
|
6139
6138
|
};
|
|
6140
6139
|
},
|
|
6141
6140
|
computed: {
|
|
@@ -6178,7 +6177,7 @@ function ro(e, s, t, o, n, i) {
|
|
|
6178
6177
|
const l = f("dt-notice-icon"), h = f("dt-notice-content"), d = f("dt-notice-action");
|
|
6179
6178
|
return n.isShown ? (a(), r("div", {
|
|
6180
6179
|
key: 0,
|
|
6181
|
-
class:
|
|
6180
|
+
class: b([
|
|
6182
6181
|
"d-toast",
|
|
6183
6182
|
i.kindClass,
|
|
6184
6183
|
{ "d-toast--important": t.important }
|
|
@@ -6224,7 +6223,7 @@ function ro(e, s, t, o, n, i) {
|
|
|
6224
6223
|
])
|
|
6225
6224
|
], 10, oo)) : p("", !0);
|
|
6226
6225
|
}
|
|
6227
|
-
const
|
|
6226
|
+
const ed = /* @__PURE__ */ v(ao, [["render", ro]]), qt = {
|
|
6228
6227
|
sm: "d-toggle--small",
|
|
6229
6228
|
md: ""
|
|
6230
6229
|
}, co = [!1, !0, "mixed"], uo = {
|
|
@@ -6278,7 +6277,7 @@ const td = /* @__PURE__ */ v(ao, [["render", ro]]), Ft = {
|
|
|
6278
6277
|
size: {
|
|
6279
6278
|
type: String,
|
|
6280
6279
|
default: "md",
|
|
6281
|
-
validator: (e) => Object.keys(
|
|
6280
|
+
validator: (e) => Object.keys(qt).includes(e)
|
|
6282
6281
|
},
|
|
6283
6282
|
/**
|
|
6284
6283
|
* Shows the icon
|
|
@@ -6316,7 +6315,7 @@ const td = /* @__PURE__ */ v(ao, [["render", ro]]), Ft = {
|
|
|
6316
6315
|
data() {
|
|
6317
6316
|
return {
|
|
6318
6317
|
internalChecked: this.checked,
|
|
6319
|
-
hasSlotContent:
|
|
6318
|
+
hasSlotContent: N
|
|
6320
6319
|
};
|
|
6321
6320
|
},
|
|
6322
6321
|
computed: {
|
|
@@ -6335,7 +6334,7 @@ const td = /* @__PURE__ */ v(ao, [["render", ro]]), Ft = {
|
|
|
6335
6334
|
toggleClasses() {
|
|
6336
6335
|
return [
|
|
6337
6336
|
"d-toggle",
|
|
6338
|
-
|
|
6337
|
+
qt[this.size],
|
|
6339
6338
|
{
|
|
6340
6339
|
"d-toggle--checked": this.internalChecked === !0,
|
|
6341
6340
|
"d-toggle--disabled": this.disabled,
|
|
@@ -6395,7 +6394,7 @@ function go(e, s, t, o, n, i) {
|
|
|
6395
6394
|
], 16, po)
|
|
6396
6395
|
]);
|
|
6397
6396
|
}
|
|
6398
|
-
const
|
|
6397
|
+
const td = /* @__PURE__ */ v(uo, [["render", go]]), ye = {
|
|
6399
6398
|
"{win}": "layout-grid",
|
|
6400
6399
|
"{arrow-right}": "arrow-right",
|
|
6401
6400
|
"{arrow-left}": "arrow-left",
|
|
@@ -6404,7 +6403,7 @@ const sd = /* @__PURE__ */ v(uo, [["render", go]]), ye = {
|
|
|
6404
6403
|
"{cmd}": "command"
|
|
6405
6404
|
}, _o = {
|
|
6406
6405
|
"{plus}": "plus"
|
|
6407
|
-
},
|
|
6406
|
+
}, sd = Object.keys(ye), bo = {
|
|
6408
6407
|
name: "DtKeyboardShortcut",
|
|
6409
6408
|
components: {
|
|
6410
6409
|
DtIcon: R
|
|
@@ -6463,7 +6462,7 @@ const sd = /* @__PURE__ */ v(uo, [["render", go]]), ye = {
|
|
|
6463
6462
|
function So(e, s, t, o, n, i) {
|
|
6464
6463
|
const l = f("dt-icon");
|
|
6465
6464
|
return a(), r("kbd", {
|
|
6466
|
-
class:
|
|
6465
|
+
class: b([
|
|
6467
6466
|
"d-d-inline-flex",
|
|
6468
6467
|
"d-ff-custom",
|
|
6469
6468
|
"d-ai-center",
|
|
@@ -6477,20 +6476,20 @@ function So(e, s, t, o, n, i) {
|
|
|
6477
6476
|
])
|
|
6478
6477
|
}, [
|
|
6479
6478
|
t.screenReaderText ? (a(), r("span", yo, I(t.screenReaderText), 1)) : p("", !0),
|
|
6480
|
-
(a(!0), r(
|
|
6479
|
+
(a(!0), r(X, null, ie(i.formattedShortcutSplit, (h, d) => (a(), r(X, null, [
|
|
6481
6480
|
i.icons[h] ? (a(), S(l, {
|
|
6482
6481
|
key: `${d}-${h}`,
|
|
6483
6482
|
name: i.icons[h],
|
|
6484
6483
|
size: "100",
|
|
6485
6484
|
"aria-hidden": "true",
|
|
6486
|
-
class:
|
|
6485
|
+
class: b([
|
|
6487
6486
|
t.inverted ? "d-fc-secondary-inverted" : "d-fc-tertiary",
|
|
6488
6487
|
"d-mr2"
|
|
6489
6488
|
])
|
|
6490
6489
|
}, null, 8, ["name", "class"])) : (a(), r("span", {
|
|
6491
6490
|
key: `${d}-${h}`,
|
|
6492
6491
|
"aria-hidden": "true",
|
|
6493
|
-
class:
|
|
6492
|
+
class: b([
|
|
6494
6493
|
t.inverted ? "d-fc-secondary-inverted" : "d-fc-tertiary",
|
|
6495
6494
|
"d-mr2"
|
|
6496
6495
|
]),
|
|
@@ -6499,7 +6498,7 @@ function So(e, s, t, o, n, i) {
|
|
|
6499
6498
|
], 64))), 256))
|
|
6500
6499
|
], 2);
|
|
6501
6500
|
}
|
|
6502
|
-
const
|
|
6501
|
+
const id = /* @__PURE__ */ v(bo, [["render", So]]), rs = {
|
|
6503
6502
|
LEFT: "left",
|
|
6504
6503
|
RIGHT: "right"
|
|
6505
6504
|
}, Co = ["sm", "md", "lg", null], Io = {
|
|
@@ -6554,7 +6553,7 @@ const nd = /* @__PURE__ */ v(bo, [["render", So]]), rs = {
|
|
|
6554
6553
|
},
|
|
6555
6554
|
data() {
|
|
6556
6555
|
return {
|
|
6557
|
-
hasSlotContent:
|
|
6556
|
+
hasSlotContent: N
|
|
6558
6557
|
};
|
|
6559
6558
|
},
|
|
6560
6559
|
computed: {
|
|
@@ -6569,14 +6568,14 @@ const nd = /* @__PURE__ */ v(bo, [["render", So]]), rs = {
|
|
|
6569
6568
|
function wo(e, s, t, o, n, i) {
|
|
6570
6569
|
return a(), r("div", {
|
|
6571
6570
|
ref: "root-layout-body",
|
|
6572
|
-
class:
|
|
6571
|
+
class: b(["d-root-layout__body", i.bodyClasses]),
|
|
6573
6572
|
"data-qa": "dt-root-layout-body"
|
|
6574
6573
|
}, [
|
|
6575
6574
|
n.hasSlotContent(e.$slots.sidebar) ? (a(), r("aside", {
|
|
6576
6575
|
key: 0,
|
|
6577
6576
|
ref: "root-layout-sidebar",
|
|
6578
|
-
class:
|
|
6579
|
-
style:
|
|
6577
|
+
class: b(["d-root-layout__sidebar", { "d-root-layout__sidebar--sticky": t.fixed }, t.sidebarClass]),
|
|
6578
|
+
style: se({ "flex-basis": t.sidebarWidth }),
|
|
6580
6579
|
"data-qa": "dt-root-layout-sidebar"
|
|
6581
6580
|
}, [
|
|
6582
6581
|
c(e.$slots, "sidebar")
|
|
@@ -6584,7 +6583,7 @@ function wo(e, s, t, o, n, i) {
|
|
|
6584
6583
|
n.hasSlotContent(e.$slots.content) ? (a(), r("main", {
|
|
6585
6584
|
key: 1,
|
|
6586
6585
|
ref: "root-layout-content",
|
|
6587
|
-
class:
|
|
6586
|
+
class: b(["d-root-layout__content", t.contentClass]),
|
|
6588
6587
|
"data-qa": "dt-root-layout-content",
|
|
6589
6588
|
tabindex: "0"
|
|
6590
6589
|
}, [
|
|
@@ -6696,7 +6695,7 @@ const Eo = /* @__PURE__ */ v(Io, [["render", wo]]), ko = {
|
|
|
6696
6695
|
},
|
|
6697
6696
|
data() {
|
|
6698
6697
|
return {
|
|
6699
|
-
hasSlotContent:
|
|
6698
|
+
hasSlotContent: N
|
|
6700
6699
|
};
|
|
6701
6700
|
},
|
|
6702
6701
|
computed: {
|
|
@@ -6709,13 +6708,13 @@ const Eo = /* @__PURE__ */ v(Io, [["render", wo]]), ko = {
|
|
|
6709
6708
|
function Oo(e, s, t, o, n, i) {
|
|
6710
6709
|
const l = f("dt-root-layout-body");
|
|
6711
6710
|
return a(), r("div", {
|
|
6712
|
-
class:
|
|
6711
|
+
class: b(["root-layout d-root-layout", { "d-root-layout--fixed": t.fixed }, i.responsiveClass]),
|
|
6713
6712
|
"data-qa": "dt-root-layout"
|
|
6714
6713
|
}, [
|
|
6715
6714
|
n.hasSlotContent(e.$slots.header) ? (a(), r("header", {
|
|
6716
6715
|
key: 0,
|
|
6717
|
-
class:
|
|
6718
|
-
style:
|
|
6716
|
+
class: b(["d-root-layout__header", { "d-root-layout__header--sticky": t.headerSticky }, t.headerClass]),
|
|
6717
|
+
style: se({ height: t.headerHeight, "min-height": t.headerHeight }),
|
|
6719
6718
|
"data-qa": "dt-root-layout-header"
|
|
6720
6719
|
}, [
|
|
6721
6720
|
c(e.$slots, "header")
|
|
@@ -6747,30 +6746,30 @@ function Oo(e, s, t, o, n, i) {
|
|
|
6747
6746
|
]), 1032, ["body-class", "content-class", "sidebar-class", "sidebar-width", "sidebar-position", "header-height", "footer-height", "fixed"]),
|
|
6748
6747
|
n.hasSlotContent(e.$slots.footer) ? (a(), r("footer", {
|
|
6749
6748
|
key: 1,
|
|
6750
|
-
class:
|
|
6751
|
-
style:
|
|
6749
|
+
class: b(["d-root-layout__footer", t.footerClass]),
|
|
6750
|
+
style: se({ height: t.footerHeight, "min-height": t.footerHeight }),
|
|
6752
6751
|
"data-qa": "dt-root-layout-footer"
|
|
6753
6752
|
}, [
|
|
6754
6753
|
c(e.$slots, "footer")
|
|
6755
6754
|
], 6)) : p("", !0)
|
|
6756
6755
|
], 2);
|
|
6757
6756
|
}
|
|
6758
|
-
const
|
|
6757
|
+
const nd = /* @__PURE__ */ v(ko, [["render", Oo]]), ue = {
|
|
6759
6758
|
default: "column",
|
|
6760
6759
|
column: "column",
|
|
6761
6760
|
row: "row",
|
|
6762
6761
|
"row-reverse": "row-reverse",
|
|
6763
6762
|
"column-reverse": "column-reverse"
|
|
6764
|
-
}, ds = ["sm", "md", "lg", "xl"],
|
|
6765
|
-
function
|
|
6766
|
-
return e ===
|
|
6763
|
+
}, ds = ["sm", "md", "lg", "xl"], it = ["0", "100", "200", "300", "400", "500", "600"];
|
|
6764
|
+
function Ft(e) {
|
|
6765
|
+
return e === ue.default;
|
|
6767
6766
|
}
|
|
6768
|
-
function
|
|
6767
|
+
function Kt(e) {
|
|
6769
6768
|
if (Ie(e) === "string")
|
|
6770
|
-
return
|
|
6769
|
+
return Ft(e) ? null : ue[e];
|
|
6771
6770
|
if (Ie(e) === "object") {
|
|
6772
6771
|
const { default: s } = e;
|
|
6773
|
-
return
|
|
6772
|
+
return Ft(s) ? null : ue[s];
|
|
6774
6773
|
} else
|
|
6775
6774
|
return null;
|
|
6776
6775
|
}
|
|
@@ -6778,7 +6777,7 @@ function Ie(e) {
|
|
|
6778
6777
|
return typeof e;
|
|
6779
6778
|
}
|
|
6780
6779
|
function Lo(e) {
|
|
6781
|
-
return
|
|
6780
|
+
return Kt(e) ? `d-stack--${ue[Kt(e)]}` : null;
|
|
6782
6781
|
}
|
|
6783
6782
|
function To(e) {
|
|
6784
6783
|
return Ie(e) === "object" ? [
|
|
@@ -6786,19 +6785,19 @@ function To(e) {
|
|
|
6786
6785
|
] : null;
|
|
6787
6786
|
}
|
|
6788
6787
|
function Ao(e) {
|
|
6789
|
-
return
|
|
6788
|
+
return it.includes(e) ? `d-stack--gap-${e}` : null;
|
|
6790
6789
|
}
|
|
6791
6790
|
function Do(e) {
|
|
6792
6791
|
if (Ie(e) === "string")
|
|
6793
|
-
return Object.keys(
|
|
6792
|
+
return Object.keys(ue).includes(e);
|
|
6794
6793
|
if (Ie(e) === "object") {
|
|
6795
6794
|
const { default: s } = e;
|
|
6796
|
-
return Object.keys(
|
|
6795
|
+
return Object.keys(ue).includes(s);
|
|
6797
6796
|
} else
|
|
6798
6797
|
return null;
|
|
6799
6798
|
}
|
|
6800
6799
|
function Po(e) {
|
|
6801
|
-
return
|
|
6800
|
+
return it.includes(e);
|
|
6802
6801
|
}
|
|
6803
6802
|
const xo = {
|
|
6804
6803
|
name: "DtStack",
|
|
@@ -6832,8 +6831,8 @@ const xo = {
|
|
|
6832
6831
|
},
|
|
6833
6832
|
data() {
|
|
6834
6833
|
return {
|
|
6835
|
-
DT_STACK_DIRECTION:
|
|
6836
|
-
DT_STACK_GAP:
|
|
6834
|
+
DT_STACK_DIRECTION: ue,
|
|
6835
|
+
DT_STACK_GAP: it,
|
|
6837
6836
|
DT_STACK_RESPONSIVE_BREAKPOINTS: ds
|
|
6838
6837
|
};
|
|
6839
6838
|
},
|
|
@@ -6850,8 +6849,8 @@ const xo = {
|
|
|
6850
6849
|
}
|
|
6851
6850
|
};
|
|
6852
6851
|
function Ro(e, s, t, o, n, i) {
|
|
6853
|
-
return a(), S(
|
|
6854
|
-
class:
|
|
6852
|
+
return a(), S(J(t.as), {
|
|
6853
|
+
class: b([
|
|
6855
6854
|
"d-stack",
|
|
6856
6855
|
i.defaultDirection,
|
|
6857
6856
|
i.stackResponsive,
|
|
@@ -6864,9 +6863,9 @@ function Ro(e, s, t, o, n, i) {
|
|
|
6864
6863
|
_: 3
|
|
6865
6864
|
}, 8, ["class"]);
|
|
6866
6865
|
}
|
|
6867
|
-
const
|
|
6866
|
+
const ad = /* @__PURE__ */ v(xo, [["render", Ro]]);
|
|
6868
6867
|
const cs = {
|
|
6869
|
-
__name: "
|
|
6868
|
+
__name: "core_scroller",
|
|
6870
6869
|
props: {
|
|
6871
6870
|
/**
|
|
6872
6871
|
* List of items you want to display in the scroller.
|
|
@@ -6957,188 +6956,188 @@ const cs = {
|
|
|
6957
6956
|
default: ""
|
|
6958
6957
|
}
|
|
6959
6958
|
},
|
|
6960
|
-
emits: ["
|
|
6959
|
+
emits: ["user-position"],
|
|
6961
6960
|
setup(e, { expose: s, emit: t }) {
|
|
6962
|
-
const o = e, n =
|
|
6963
|
-
let
|
|
6964
|
-
const
|
|
6961
|
+
const o = e, n = Et(/* @__PURE__ */ new Map()), i = Et(/* @__PURE__ */ new Map()), l = pe([]), h = pe(null), d = pe(!1), y = pe(null), O = pe("top");
|
|
6962
|
+
let _ = 0, L = 0, B = !1, de = 0, he = null, fe = null, Ve = 0, fs = 0;
|
|
6963
|
+
const qe = Re(() => {
|
|
6965
6964
|
if (o.itemSize === null) {
|
|
6966
|
-
const
|
|
6965
|
+
const k = {
|
|
6967
6966
|
"-1": { accumulator: 0 }
|
|
6968
|
-
}, A = o.items,
|
|
6969
|
-
let q = 1e4,
|
|
6970
|
-
for (let j = 0,
|
|
6971
|
-
P = A[j][
|
|
6972
|
-
return
|
|
6967
|
+
}, A = o.items, w = o.sizeField, Y = o.minItemSize;
|
|
6968
|
+
let q = 1e4, ae = 0, P;
|
|
6969
|
+
for (let j = 0, ge = A.length; j < ge; j++)
|
|
6970
|
+
P = A[j][w] || Y, P < q && (q = P), ae += P, k[j] = { accumulator: ae, size: P };
|
|
6971
|
+
return fe = q, k;
|
|
6973
6972
|
}
|
|
6974
6973
|
return [];
|
|
6975
|
-
}), ps =
|
|
6976
|
-
const
|
|
6977
|
-
for (let A = 0,
|
|
6978
|
-
|
|
6979
|
-
return
|
|
6974
|
+
}), ps = Re(() => o.items.length && typeof o.items[0] != "object"), ms = Re(() => {
|
|
6975
|
+
const k = {};
|
|
6976
|
+
for (let A = 0, w = o.items.length; A < w; A++)
|
|
6977
|
+
k[o.items[A][o.keyField]] = A;
|
|
6978
|
+
return k;
|
|
6980
6979
|
});
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
}
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
ws(() => {
|
|
6987
|
-
Ae(!0), y.value = !0;
|
|
6980
|
+
Yt(qe, () => {
|
|
6981
|
+
Te(!1);
|
|
6982
|
+
}, { deep: !0 }), Bs(() => {
|
|
6983
|
+
Ns(() => {
|
|
6984
|
+
Te(!0), d.value = !0;
|
|
6988
6985
|
});
|
|
6989
6986
|
});
|
|
6990
|
-
const
|
|
6991
|
-
const
|
|
6987
|
+
const ut = (k, A, w, Y, q) => {
|
|
6988
|
+
const ae = zs({
|
|
6992
6989
|
id: fs++,
|
|
6993
6990
|
index: A,
|
|
6994
6991
|
used: !0,
|
|
6995
6992
|
key: Y,
|
|
6996
6993
|
type: q
|
|
6997
|
-
}), P =
|
|
6998
|
-
item:
|
|
6994
|
+
}), P = $s({
|
|
6995
|
+
item: w,
|
|
6999
6996
|
position: 0,
|
|
7000
|
-
nr:
|
|
6997
|
+
nr: ae
|
|
7001
6998
|
});
|
|
7002
|
-
return
|
|
7003
|
-
},
|
|
7004
|
-
const
|
|
7005
|
-
let q =
|
|
7006
|
-
q || (q = [],
|
|
6999
|
+
return k.value.push(P), P;
|
|
7000
|
+
}, Fe = (k, A = !1) => {
|
|
7001
|
+
const w = i, Y = k.nr.type;
|
|
7002
|
+
let q = w.get(Y);
|
|
7003
|
+
q || (q = [], w.set(Y, q)), q.push(k), A || (k.nr.used = !1, k.position = -9999);
|
|
7007
7004
|
}, gs = () => {
|
|
7008
|
-
const
|
|
7005
|
+
const k = o.direction === "vertical";
|
|
7009
7006
|
let A;
|
|
7010
|
-
return
|
|
7011
|
-
start:
|
|
7012
|
-
end:
|
|
7007
|
+
return k ? A = {
|
|
7008
|
+
start: y.value.scrollTop,
|
|
7009
|
+
end: y.value.scrollTop + y.value.clientHeight
|
|
7013
7010
|
} : A = {
|
|
7014
|
-
start:
|
|
7015
|
-
end:
|
|
7011
|
+
start: y.value.scrollLeft,
|
|
7012
|
+
end: y.value.scrollLeft + y.value.clientWidth
|
|
7016
7013
|
}, A;
|
|
7017
7014
|
}, _s = () => {
|
|
7018
7015
|
throw setTimeout(() => {
|
|
7019
|
-
console.error("It seems the scroller element isn't scrolling, so it tries to render all the items at once.", "Scroller:",
|
|
7016
|
+
console.error("It seems the scroller element isn't scrolling, so it tries to render all the items at once.", "Scroller:", y), 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.");
|
|
7020
7017
|
}), new Error("Rendered items limit reached");
|
|
7021
7018
|
}, bs = () => {
|
|
7022
|
-
|
|
7023
|
-
},
|
|
7024
|
-
var
|
|
7025
|
-
const
|
|
7026
|
-
let G,
|
|
7019
|
+
l.value.sort((k, A) => k.nr.index - A.nr.index);
|
|
7020
|
+
}, Te = (k, A = !1) => {
|
|
7021
|
+
var pt, mt, gt, _t, bt, yt, vt, St;
|
|
7022
|
+
const w = o.itemSize, Y = fe, q = ps.value ? null : o.keyField, ae = o.items, P = ae.length, j = qe.value, ge = n, ht = i, Ae = l, Cs = ms;
|
|
7023
|
+
let G, z, De, ee, oe;
|
|
7027
7024
|
if (!P)
|
|
7028
|
-
G =
|
|
7025
|
+
G = z = ee = oe = De = 0;
|
|
7029
7026
|
else {
|
|
7030
|
-
const
|
|
7027
|
+
const T = gs();
|
|
7031
7028
|
if (A) {
|
|
7032
|
-
let x =
|
|
7033
|
-
if (x < 0 && (x = -x),
|
|
7029
|
+
let x = T.start - de.value;
|
|
7030
|
+
if (x < 0 && (x = -x), w === null && x < Y.value || x < w)
|
|
7034
7031
|
return {
|
|
7035
7032
|
continuous: !0
|
|
7036
7033
|
};
|
|
7037
7034
|
}
|
|
7038
|
-
|
|
7035
|
+
de = T.start;
|
|
7039
7036
|
const U = o.buffer;
|
|
7040
|
-
if (
|
|
7041
|
-
let x,
|
|
7037
|
+
if (T.start -= U, T.end += U, w === null) {
|
|
7038
|
+
let x, _e = 0, Ct = P - 1, Z = ~~(P / 2), It;
|
|
7042
7039
|
do
|
|
7043
|
-
|
|
7044
|
-
while (Z !==
|
|
7045
|
-
for (Z < 0 && (Z = 0), G = Z,
|
|
7040
|
+
It = Z, x = (pt = j[Z]) == null ? void 0 : pt.accumulator, x < T.start ? _e = Z : Z < P - 1 && ((mt = j[Z + 1]) == null ? void 0 : mt.accumulator) > T.start && (Ct = Z), Z = ~~((_e + Ct) / 2);
|
|
7041
|
+
while (Z !== It);
|
|
7042
|
+
for (Z < 0 && (Z = 0), G = Z, De = (gt = j[P - 1]) == null ? void 0 : gt.accumulator, z = Z; z < P && ((_t = j[z]) == null ? void 0 : _t.accumulator) < T.end; z++)
|
|
7046
7043
|
;
|
|
7047
|
-
for (
|
|
7044
|
+
for (z === -1 ? z = ae.length - 1 : (z++, z > P && (z = P)), ee = _; ee < P && ((bt = j[ee]) == null ? void 0 : bt.accumulator) < T.start; ee++)
|
|
7048
7045
|
;
|
|
7049
|
-
for (oe =
|
|
7046
|
+
for (oe = ee; oe < P && ((yt = j[oe]) == null ? void 0 : yt.accumulator) < T.end; oe++)
|
|
7050
7047
|
;
|
|
7051
7048
|
} else {
|
|
7052
|
-
G = ~~(
|
|
7049
|
+
G = ~~(T.start / w);
|
|
7053
7050
|
const x = G % 1;
|
|
7054
|
-
G -= x,
|
|
7051
|
+
G -= x, z = Math.ceil(T.end / w), ee = Math.max(0, Math.floor(T.start / w)), oe = Math.floor(T.end / w), G < 0 && (G = 0), z > P && (z = P), ee < 0 && (ee = 0), oe > P && (oe = P), De = Math.ceil(P / 1) * w;
|
|
7055
7052
|
}
|
|
7056
7053
|
}
|
|
7057
|
-
|
|
7058
|
-
let
|
|
7059
|
-
const
|
|
7060
|
-
if (
|
|
7061
|
-
for (let
|
|
7062
|
-
|
|
7063
|
-
const
|
|
7064
|
-
let
|
|
7065
|
-
for (let
|
|
7066
|
-
|
|
7067
|
-
const U = q ?
|
|
7054
|
+
z - G > 1e3 && _s(), Ve = De;
|
|
7055
|
+
let E;
|
|
7056
|
+
const Pe = G <= L && z >= G;
|
|
7057
|
+
if (Pe)
|
|
7058
|
+
for (let T = 0, U = Ae.value.length; T < U; T++)
|
|
7059
|
+
E = Ae.value[T], E != null && E.nr.used && (k && (E.nr.index = Cs[E.item[q]]), (E.nr.index == null || E.nr.index < G || E.nr.index >= z) && Fe(E));
|
|
7060
|
+
const ft = Pe ? null : /* @__PURE__ */ new Map();
|
|
7061
|
+
let te, le, xe;
|
|
7062
|
+
for (let T = G; T < z; T++) {
|
|
7063
|
+
te = ae[T];
|
|
7064
|
+
const U = q ? te == null ? void 0 : te[q] : te;
|
|
7068
7065
|
if (U == null)
|
|
7069
7066
|
throw new Error(`Key is ${U} on item (keyField is '${q}')`);
|
|
7070
|
-
if (
|
|
7071
|
-
|
|
7067
|
+
if (E = ge.get(U), !w && !((vt = j[T]) != null && vt.size)) {
|
|
7068
|
+
E && Fe(E);
|
|
7072
7069
|
continue;
|
|
7073
7070
|
}
|
|
7074
|
-
le =
|
|
7075
|
-
let x =
|
|
7076
|
-
if (!
|
|
7077
|
-
|
|
7078
|
-
else if (!
|
|
7079
|
-
const
|
|
7080
|
-
|
|
7071
|
+
le = te.type;
|
|
7072
|
+
let x = ht.get(le);
|
|
7073
|
+
if (!E)
|
|
7074
|
+
Pe ? x && x.length ? E = x.pop() : E = ut(Ae, T, te, U, le) : (xe = ft.get(le) || 0, (!x || xe >= x.length) && (E = ut(Ae, T, te, U, le), Fe(E, !0), x = ht.get(le)), E = x[xe], ft.set(le, xe + 1)), ge.delete(E.nr.key), E.nr.used = !0, E.nr.index = T, E.nr.key = U, E.nr.type = le, ge.set(U, E);
|
|
7075
|
+
else if (!E.nr.used && (E.nr.used = !0, x)) {
|
|
7076
|
+
const _e = x.indexOf(E);
|
|
7077
|
+
_e !== -1 && x.splice(_e, 1);
|
|
7081
7078
|
}
|
|
7082
|
-
|
|
7079
|
+
E.item = te, w === null ? (E.position = (St = j[T - 1]) == null ? void 0 : St.accumulator, E.offset = 0) : (E.position = Math.floor(T) * w, E.offset = T % 1 * w);
|
|
7083
7080
|
}
|
|
7084
|
-
return
|
|
7085
|
-
continuous:
|
|
7081
|
+
return _ = G, L = z, clearTimeout(he), he = setTimeout(bs, 300), {
|
|
7082
|
+
continuous: Pe
|
|
7086
7083
|
};
|
|
7087
|
-
}, ys = (
|
|
7088
|
-
const A = o.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" },
|
|
7089
|
-
|
|
7090
|
-
}, vs = (
|
|
7091
|
-
var
|
|
7084
|
+
}, ys = (k) => {
|
|
7085
|
+
const A = o.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" }, w = y.value, Y = A.scroll;
|
|
7086
|
+
w[Y] = k;
|
|
7087
|
+
}, vs = (k) => {
|
|
7088
|
+
var w;
|
|
7092
7089
|
let A;
|
|
7093
|
-
o.itemSize === null ? A =
|
|
7090
|
+
o.itemSize === null ? A = k > 0 ? (w = qe.value[k - 1]) == null ? void 0 : w.accumulator : 0 : A = Math.floor(k) * o.itemSize, ys(A);
|
|
7094
7091
|
}, Ss = () => {
|
|
7095
|
-
|
|
7096
|
-
|
|
7092
|
+
const k = y.value;
|
|
7093
|
+
O.value !== "middle" && (O.value = "middle", t("user-position", "middle")), k.scrollTop === 0 && (O.value = "top", t("user-position", "top")), k.scrollTop + k.clientHeight === k.scrollHeight && (O.value = "bottom", t("user-position", "bottom")), B || (B = !0, requestAnimationFrame(() => {
|
|
7094
|
+
B = !1, Te(!1, !0);
|
|
7097
7095
|
}));
|
|
7098
7096
|
};
|
|
7099
7097
|
return s({
|
|
7100
|
-
scrollToItem: vs
|
|
7101
|
-
|
|
7098
|
+
scrollToItem: vs,
|
|
7099
|
+
_updateVisibleItems: Te
|
|
7100
|
+
}), (k, A) => (a(), r("div", {
|
|
7102
7101
|
ref_key: "scroller",
|
|
7103
|
-
ref:
|
|
7104
|
-
class:
|
|
7105
|
-
ready:
|
|
7102
|
+
ref: y,
|
|
7103
|
+
class: b(["vue-recycle-scroller", {
|
|
7104
|
+
ready: d.value,
|
|
7106
7105
|
[`direction-${e.direction}`]: !0
|
|
7107
7106
|
}]),
|
|
7108
7107
|
onScrollPassive: Ss
|
|
7109
7108
|
}, [
|
|
7110
|
-
(a(), S(
|
|
7109
|
+
(a(), S(J(e.listTag), {
|
|
7111
7110
|
ref: "wrapper",
|
|
7112
|
-
style:
|
|
7113
|
-
class:
|
|
7111
|
+
style: se({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: `${Qt(Ve)}px` }),
|
|
7112
|
+
class: b(["vue-recycle-scroller__item-wrapper", e.listClass])
|
|
7114
7113
|
}, {
|
|
7115
7114
|
default: u(() => [
|
|
7116
|
-
(a(!0), r(
|
|
7117
|
-
key:
|
|
7118
|
-
style:
|
|
7119
|
-
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${
|
|
7115
|
+
(a(!0), r(X, null, ie(l.value, (w) => (a(), S(J(e.itemTag), C({
|
|
7116
|
+
key: w.nr.id,
|
|
7117
|
+
style: d.value ? {
|
|
7118
|
+
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${w.position}px) translate${e.direction === "vertical" ? "X" : "Y"}(${w.offset}px)`,
|
|
7120
7119
|
width: void 0,
|
|
7121
7120
|
height: void 0
|
|
7122
7121
|
} : null,
|
|
7123
7122
|
class: ["vue-recycle-scroller__item-view", [
|
|
7124
7123
|
e.itemClass,
|
|
7125
7124
|
{
|
|
7126
|
-
hover: !e.skipHover &&
|
|
7125
|
+
hover: !e.skipHover && h.value === w.nr.key
|
|
7127
7126
|
}
|
|
7128
7127
|
]]
|
|
7129
|
-
},
|
|
7128
|
+
}, M(e.skipHover ? {} : {
|
|
7130
7129
|
mouseenter: () => {
|
|
7131
|
-
|
|
7130
|
+
h.value = w.nr.key;
|
|
7132
7131
|
},
|
|
7133
7132
|
mouseleave: () => {
|
|
7134
|
-
|
|
7133
|
+
h.value = null;
|
|
7135
7134
|
}
|
|
7136
7135
|
})), {
|
|
7137
7136
|
default: u(() => [
|
|
7138
|
-
c(
|
|
7139
|
-
item:
|
|
7140
|
-
index:
|
|
7141
|
-
active:
|
|
7137
|
+
c(k.$slots, "default", {
|
|
7138
|
+
item: w.item,
|
|
7139
|
+
index: w.nr.index,
|
|
7140
|
+
active: w.nr.used
|
|
7142
7141
|
})
|
|
7143
7142
|
]),
|
|
7144
7143
|
_: 2
|
|
@@ -7266,7 +7265,7 @@ const cs = {
|
|
|
7266
7265
|
}
|
|
7267
7266
|
},
|
|
7268
7267
|
render() {
|
|
7269
|
-
return
|
|
7268
|
+
return Ms(this.tag, this.$slots.default());
|
|
7270
7269
|
}
|
|
7271
7270
|
}, No = {
|
|
7272
7271
|
name: "DynamicScroller",
|
|
@@ -7414,6 +7413,21 @@ const cs = {
|
|
|
7414
7413
|
scrollToItem(e) {
|
|
7415
7414
|
const s = this.$refs.scroller;
|
|
7416
7415
|
s && s.scrollToItem(e);
|
|
7416
|
+
},
|
|
7417
|
+
scrollToBottom() {
|
|
7418
|
+
if (this.$_scrollingToBottom)
|
|
7419
|
+
return;
|
|
7420
|
+
this.$_scrollingToBottom = !0;
|
|
7421
|
+
const e = this.$el;
|
|
7422
|
+
this.$nextTick(() => {
|
|
7423
|
+
e.scrollTop = e.scrollHeight + 5e3;
|
|
7424
|
+
const s = () => {
|
|
7425
|
+
e.scrollTop = e.scrollHeight + 5e3, requestAnimationFrame(() => {
|
|
7426
|
+
e.scrollTop = e.scrollHeight + 5e3, this.$_undefinedSizes === 0 ? this.$_scrollingToBottom = !1 : requestAnimationFrame(s);
|
|
7427
|
+
});
|
|
7428
|
+
};
|
|
7429
|
+
requestAnimationFrame(s);
|
|
7430
|
+
});
|
|
7417
7431
|
}
|
|
7418
7432
|
}
|
|
7419
7433
|
};
|
|
@@ -7424,24 +7438,24 @@ function zo(e, s, t, o, n, i) {
|
|
|
7424
7438
|
items: i.itemsWithSize,
|
|
7425
7439
|
"min-item-size": t.minItemSize,
|
|
7426
7440
|
direction: t.direction,
|
|
7427
|
-
"key-field":
|
|
7441
|
+
"key-field": t.keyField,
|
|
7428
7442
|
"list-tag": t.listTag,
|
|
7429
7443
|
"item-tag": t.itemTag
|
|
7430
7444
|
}, e.$attrs), {
|
|
7431
|
-
default: u(({ item: d, index: y, active:
|
|
7445
|
+
default: u(({ item: d, index: y, active: O }) => [
|
|
7432
7446
|
g(l, {
|
|
7433
7447
|
item: d,
|
|
7434
|
-
active:
|
|
7448
|
+
active: O,
|
|
7435
7449
|
"size-dependencies": [
|
|
7436
7450
|
d.message
|
|
7437
7451
|
],
|
|
7438
7452
|
"data-index": y
|
|
7439
7453
|
}, {
|
|
7440
7454
|
default: u(() => [
|
|
7441
|
-
c(e.$slots, "default", ke(
|
|
7455
|
+
c(e.$slots, "default", ke(Ue({
|
|
7442
7456
|
item: d.item,
|
|
7443
7457
|
index: y,
|
|
7444
|
-
active:
|
|
7458
|
+
active: O,
|
|
7445
7459
|
itemWithSize: d
|
|
7446
7460
|
})))
|
|
7447
7461
|
]),
|
|
@@ -7449,10 +7463,10 @@ function zo(e, s, t, o, n, i) {
|
|
|
7449
7463
|
}, 1032, ["item", "active", "size-dependencies", "data-index"])
|
|
7450
7464
|
]),
|
|
7451
7465
|
_: 3
|
|
7452
|
-
}, 16, ["items", "min-item-size", "direction", "list-tag", "item-tag"]);
|
|
7466
|
+
}, 16, ["items", "min-item-size", "direction", "key-field", "list-tag", "item-tag"]);
|
|
7453
7467
|
}
|
|
7454
|
-
const $o = /* @__PURE__ */ v(No, [["render", zo]]),
|
|
7455
|
-
__name: "
|
|
7468
|
+
const $o = /* @__PURE__ */ v(No, [["render", zo]]), od = {
|
|
7469
|
+
__name: "scroller",
|
|
7456
7470
|
props: {
|
|
7457
7471
|
/**
|
|
7458
7472
|
* The direction of the scroller.
|
|
@@ -7543,26 +7557,45 @@ const $o = /* @__PURE__ */ v(No, [["render", zo]]), ld = {
|
|
|
7543
7557
|
default: "100%"
|
|
7544
7558
|
}
|
|
7545
7559
|
},
|
|
7546
|
-
emits: [
|
|
7560
|
+
emits: [
|
|
7561
|
+
/**
|
|
7562
|
+
* Describe when the scroller changes from start/middle/end
|
|
7563
|
+
* @param {string} position The position of the scroller.
|
|
7564
|
+
* @values start, middle, end
|
|
7565
|
+
*/
|
|
7566
|
+
"user-position"
|
|
7567
|
+
],
|
|
7547
7568
|
setup(e, { expose: s, emit: t }) {
|
|
7548
7569
|
const o = e;
|
|
7549
|
-
|
|
7550
|
-
const n =
|
|
7570
|
+
Hs("emit", t);
|
|
7571
|
+
const n = pe(null), i = Re(() => ({
|
|
7551
7572
|
width: typeof o.scrollerWidth == "number" ? `${o.scrollerWidth}px` : o.scrollerWidth,
|
|
7552
7573
|
height: typeof o.scrollerHeight == "number" ? `${o.scrollerHeight}px` : o.scrollerHeight
|
|
7553
7574
|
}));
|
|
7554
|
-
|
|
7555
|
-
|
|
7575
|
+
Yt(o, () => {
|
|
7576
|
+
O();
|
|
7556
7577
|
}, { deep: !0, immediate: !0 });
|
|
7557
|
-
function l(
|
|
7558
|
-
n.value && n.value.
|
|
7578
|
+
function l() {
|
|
7579
|
+
n.value && n.value.scrollToBottom();
|
|
7580
|
+
}
|
|
7581
|
+
function h(_) {
|
|
7582
|
+
n.value && n.value.scrollToItem(_);
|
|
7583
|
+
}
|
|
7584
|
+
function d() {
|
|
7585
|
+
n.value && n.value._updateVisibleItems(!0);
|
|
7586
|
+
}
|
|
7587
|
+
function y() {
|
|
7588
|
+
n.value && n.value._updateVisibleItems(!1, !0);
|
|
7559
7589
|
}
|
|
7560
|
-
function
|
|
7590
|
+
function O() {
|
|
7561
7591
|
o.dynamic && !o.minItemSize && console.error("DtScroller error: 'minItemSize' is required on 'dynamic' mode."), !o.dynamic && !o.itemSize && console.error("DtScroller error: 'itemSize' is required.");
|
|
7562
7592
|
}
|
|
7563
7593
|
return s({
|
|
7564
|
-
|
|
7565
|
-
|
|
7594
|
+
scrollToBottom: l,
|
|
7595
|
+
scrollToItem: h,
|
|
7596
|
+
updateItems: d,
|
|
7597
|
+
updateItemsFromBottom: y
|
|
7598
|
+
}), (_, L) => (a(), S(J(e.dynamic ? $o : cs), {
|
|
7566
7599
|
ref_key: "scroller",
|
|
7567
7600
|
ref: n,
|
|
7568
7601
|
"data-qa": "dt-scroller",
|
|
@@ -7570,33 +7603,32 @@ const $o = /* @__PURE__ */ v(No, [["render", zo]]), ld = {
|
|
|
7570
7603
|
"item-size": e.itemSize,
|
|
7571
7604
|
"min-item-size": e.minItemSize,
|
|
7572
7605
|
direction: e.direction,
|
|
7573
|
-
"key-field":
|
|
7606
|
+
"key-field": e.keyField,
|
|
7574
7607
|
"list-tag": e.listTag,
|
|
7575
7608
|
"item-tag": e.itemTag,
|
|
7576
|
-
style:
|
|
7609
|
+
style: se(Qt(i)),
|
|
7577
7610
|
tabindex: "0",
|
|
7578
|
-
|
|
7579
|
-
onScrollEnd: y[1] || (y[1] = (w) => d.$emit("scroll-end"))
|
|
7611
|
+
onUserPosition: L[0] || (L[0] = (B) => _.$emit("user-position", B))
|
|
7580
7612
|
}, {
|
|
7581
|
-
default: u(({ item:
|
|
7582
|
-
c(
|
|
7583
|
-
item:
|
|
7584
|
-
index:
|
|
7585
|
-
active:
|
|
7613
|
+
default: u(({ item: B, index: de, active: he }) => [
|
|
7614
|
+
c(_.$slots, "default", ke(Ue({
|
|
7615
|
+
item: B,
|
|
7616
|
+
index: de,
|
|
7617
|
+
active: he
|
|
7586
7618
|
})))
|
|
7587
7619
|
]),
|
|
7588
7620
|
_: 3
|
|
7589
|
-
}, 40, ["items", "item-size", "min-item-size", "direction", "list-tag", "item-tag", "style"]));
|
|
7621
|
+
}, 40, ["items", "item-size", "min-item-size", "direction", "key-field", "list-tag", "item-tag", "style"]));
|
|
7590
7622
|
}
|
|
7591
7623
|
}, Mo = {
|
|
7592
7624
|
name: "DtRecipeComboboxWithPopover",
|
|
7593
7625
|
components: {
|
|
7594
7626
|
DtCombobox: bn,
|
|
7595
|
-
DtPopover:
|
|
7627
|
+
DtPopover: st,
|
|
7596
7628
|
ComboboxLoadingList: ss,
|
|
7597
7629
|
ComboboxEmptyList: is
|
|
7598
7630
|
},
|
|
7599
|
-
mixins: [
|
|
7631
|
+
mixins: [ne],
|
|
7600
7632
|
props: {
|
|
7601
7633
|
/**
|
|
7602
7634
|
* String to use for the input label.
|
|
@@ -7763,7 +7795,7 @@ const $o = /* @__PURE__ */ v(No, [["render", zo]]), ld = {
|
|
|
7763
7795
|
appendTo: {
|
|
7764
7796
|
type: [HTMLElement, String],
|
|
7765
7797
|
default: "body",
|
|
7766
|
-
validator: (e) =>
|
|
7798
|
+
validator: (e) => Me.includes(e) || e instanceof HTMLElement
|
|
7767
7799
|
},
|
|
7768
7800
|
/**
|
|
7769
7801
|
* Named transition when the content display is toggled.
|
|
@@ -7810,7 +7842,7 @@ const $o = /* @__PURE__ */ v(No, [["render", zo]]), ld = {
|
|
|
7810
7842
|
isInputFocused: !1,
|
|
7811
7843
|
isListFocused: !1,
|
|
7812
7844
|
externalAnchor: F(),
|
|
7813
|
-
hasSlotContent:
|
|
7845
|
+
hasSlotContent: N
|
|
7814
7846
|
};
|
|
7815
7847
|
},
|
|
7816
7848
|
computed: {
|
|
@@ -7888,27 +7920,27 @@ function Ko(e, s, t, o, n, i) {
|
|
|
7888
7920
|
"list-id": t.listId,
|
|
7889
7921
|
"data-qa": "dt-combobox"
|
|
7890
7922
|
}, i.comboboxListeners), {
|
|
7891
|
-
input: u(({ inputProps:
|
|
7923
|
+
input: u(({ inputProps: O }) => [
|
|
7892
7924
|
m("div", {
|
|
7893
7925
|
id: n.externalAnchor,
|
|
7894
7926
|
ref: "input",
|
|
7895
|
-
onFocusin: s[0] || (s[0] = (...
|
|
7927
|
+
onFocusin: s[0] || (s[0] = (..._) => i.onFocusIn && i.onFocusIn(..._)),
|
|
7896
7928
|
onKeydown: [
|
|
7897
|
-
s[1] || (s[1] =
|
|
7898
|
-
s[2] || (s[2] =
|
|
7929
|
+
s[1] || (s[1] = V((_) => i.openOnArrowKeyPress(_), ["up"])),
|
|
7930
|
+
s[2] || (s[2] = V((_) => i.openOnArrowKeyPress(_), ["down"]))
|
|
7899
7931
|
]
|
|
7900
7932
|
}, [
|
|
7901
7933
|
c(e.$slots, "input", {
|
|
7902
|
-
inputProps:
|
|
7934
|
+
inputProps: O,
|
|
7903
7935
|
onInput: i.handleDisplayList
|
|
7904
7936
|
})
|
|
7905
7937
|
], 40, Ho)
|
|
7906
7938
|
]),
|
|
7907
|
-
list: u(({ opened:
|
|
7939
|
+
list: u(({ opened: O, listProps: _, clearHighlightIndex: L }) => [
|
|
7908
7940
|
g(d, {
|
|
7909
7941
|
ref: "popover",
|
|
7910
7942
|
open: n.isListShown,
|
|
7911
|
-
"onUpdate:open": s[3] || (s[3] = (
|
|
7943
|
+
"onUpdate:open": s[3] || (s[3] = (B) => n.isListShown = B),
|
|
7912
7944
|
"hide-on-click": !1,
|
|
7913
7945
|
"max-height": t.maxHeight,
|
|
7914
7946
|
"max-width": t.maxWidth,
|
|
@@ -7928,18 +7960,18 @@ function Ko(e, s, t, o, n, i) {
|
|
|
7928
7960
|
transition: t.transition,
|
|
7929
7961
|
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
7930
7962
|
"visually-hidden-close": e.visuallyHiddenClose,
|
|
7931
|
-
onOpened:
|
|
7963
|
+
onOpened: O
|
|
7932
7964
|
}, Ee({
|
|
7933
7965
|
content: u(() => [
|
|
7934
7966
|
m("div", {
|
|
7935
7967
|
ref: "listWrapper",
|
|
7936
|
-
class:
|
|
7968
|
+
class: b([n.DROPDOWN_PADDING_CLASSES[t.padding], t.listClass]),
|
|
7937
7969
|
onMouseleave: L,
|
|
7938
7970
|
onFocusout: L
|
|
7939
7971
|
}, [
|
|
7940
|
-
t.loading ? (a(), S(l, ke(C({ key: 0 },
|
|
7972
|
+
t.loading ? (a(), S(l, ke(C({ key: 0 }, _)), null, 16)) : t.emptyList && t.emptyStateMessage ? (a(), S(h, C({ key: 1 }, _, { message: t.emptyStateMessage }), null, 16, ["message"])) : c(e.$slots, "list", {
|
|
7941
7973
|
key: 2,
|
|
7942
|
-
listProps:
|
|
7974
|
+
listProps: _
|
|
7943
7975
|
})
|
|
7944
7976
|
], 42, qo)
|
|
7945
7977
|
]),
|
|
@@ -7985,11 +8017,11 @@ const jo = /* @__PURE__ */ v(Mo, [["render", Ko]]), Go = {
|
|
|
7985
8017
|
name: "DtRecipeComboboxMultiSelect",
|
|
7986
8018
|
components: {
|
|
7987
8019
|
DtRecipeComboboxWithPopover: jo,
|
|
7988
|
-
DtInput:
|
|
8020
|
+
DtInput: Vs,
|
|
7989
8021
|
DtChip: ls,
|
|
7990
|
-
DtValidationMessages:
|
|
8022
|
+
DtValidationMessages: me
|
|
7991
8023
|
},
|
|
7992
|
-
mixins: [
|
|
8024
|
+
mixins: [ne],
|
|
7993
8025
|
props: {
|
|
7994
8026
|
/**
|
|
7995
8027
|
* String to use for the input label.
|
|
@@ -8026,7 +8058,7 @@ const jo = /* @__PURE__ */ v(Mo, [["render", Ko]]), Go = {
|
|
|
8026
8058
|
inputMessages: {
|
|
8027
8059
|
type: Array,
|
|
8028
8060
|
default: () => [],
|
|
8029
|
-
validator: (e) =>
|
|
8061
|
+
validator: (e) => Gt(e)
|
|
8030
8062
|
},
|
|
8031
8063
|
/**
|
|
8032
8064
|
* Show input validation message
|
|
@@ -8123,7 +8155,7 @@ const jo = /* @__PURE__ */ v(Mo, [["render", Ko]]), Go = {
|
|
|
8123
8155
|
appendTo: {
|
|
8124
8156
|
type: [HTMLElement, String],
|
|
8125
8157
|
default: "body",
|
|
8126
|
-
validator: (e) =>
|
|
8158
|
+
validator: (e) => Me.includes(e) || e instanceof HTMLElement
|
|
8127
8159
|
},
|
|
8128
8160
|
/**
|
|
8129
8161
|
* Named transition when the content display is toggled.
|
|
@@ -8180,7 +8212,7 @@ const jo = /* @__PURE__ */ v(Mo, [["render", Ko]]), Go = {
|
|
|
8180
8212
|
resizeWindowObserver: null,
|
|
8181
8213
|
originalInputSize: null,
|
|
8182
8214
|
CHIP_SIZES: Wo,
|
|
8183
|
-
hasSlotContent:
|
|
8215
|
+
hasSlotContent: N
|
|
8184
8216
|
};
|
|
8185
8217
|
},
|
|
8186
8218
|
computed: {
|
|
@@ -8356,23 +8388,23 @@ function tl(e, s, t, o, n, i) {
|
|
|
8356
8388
|
transition: t.transition,
|
|
8357
8389
|
onSelect: i.onComboboxSelect
|
|
8358
8390
|
}, Ee({
|
|
8359
|
-
input: u(({ onInput:
|
|
8391
|
+
input: u(({ onInput: O }) => [
|
|
8360
8392
|
m("span", Yo, [
|
|
8361
8393
|
m("span", Qo, [
|
|
8362
|
-
(a(!0), r(
|
|
8394
|
+
(a(!0), r(X, null, ie(t.selectedItems, (_) => (a(), S(l, C({
|
|
8363
8395
|
ref_for: !0,
|
|
8364
8396
|
ref: "chips",
|
|
8365
|
-
key:
|
|
8397
|
+
key: _,
|
|
8366
8398
|
"label-class": ["d-chip__label"],
|
|
8367
8399
|
class: ["d-mt4", "d-mx2", "d-zi-base1"],
|
|
8368
8400
|
"close-button-props": { ariaLabel: "close" },
|
|
8369
8401
|
size: n.CHIP_SIZES[t.size]
|
|
8370
|
-
},
|
|
8371
|
-
onKeyup:
|
|
8372
|
-
onClose: (L) => i.onChipRemove(
|
|
8402
|
+
}, M(i.chipListeners), {
|
|
8403
|
+
onKeyup: V((L) => i.onChipRemove(_), ["backspace"]),
|
|
8404
|
+
onClose: (L) => i.onChipRemove(_)
|
|
8373
8405
|
}), {
|
|
8374
8406
|
default: u(() => [
|
|
8375
|
-
D(I(
|
|
8407
|
+
D(I(_), 1)
|
|
8376
8408
|
]),
|
|
8377
8409
|
_: 2
|
|
8378
8410
|
}, 1040, ["size", "onKeyup", "onClose"]))), 128))
|
|
@@ -8380,7 +8412,7 @@ function tl(e, s, t, o, n, i) {
|
|
|
8380
8412
|
g(h, C({
|
|
8381
8413
|
ref: "input",
|
|
8382
8414
|
modelValue: n.value,
|
|
8383
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
8415
|
+
"onUpdate:modelValue": s[0] || (s[0] = (_) => n.value = _),
|
|
8384
8416
|
class: "d-fl-grow1",
|
|
8385
8417
|
"aria-label": t.label,
|
|
8386
8418
|
label: t.labelVisible ? t.label : "",
|
|
@@ -8389,7 +8421,7 @@ function tl(e, s, t, o, n, i) {
|
|
|
8389
8421
|
"show-messages": t.showInputMessages,
|
|
8390
8422
|
messages: t.inputMessages,
|
|
8391
8423
|
size: t.size
|
|
8392
|
-
},
|
|
8424
|
+
}, M(i.inputListeners), { onInput: O }), null, 16, ["modelValue", "aria-label", "label", "description", "placeholder", "show-messages", "messages", "size", "onInput"]),
|
|
8393
8425
|
g(d, {
|
|
8394
8426
|
"validation-messages": t.maxSelectedMessage,
|
|
8395
8427
|
"show-messages": n.showValidationMessages
|
|
@@ -8427,7 +8459,7 @@ function tl(e, s, t, o, n, i) {
|
|
|
8427
8459
|
} : void 0
|
|
8428
8460
|
]), 1032, ["label", "show-list", "max-height", "popover-offset", "has-suggestion-list", "visually-hidden-close-label", "visually-hidden-close", "append-to", "transition", "onSelect"]);
|
|
8429
8461
|
}
|
|
8430
|
-
const
|
|
8462
|
+
const ld = /* @__PURE__ */ v(Zo, [["render", tl]]), us = ["sm", "md", "lg", "xl"];
|
|
8431
8463
|
const sl = {
|
|
8432
8464
|
name: "DtRecipeCallbarButton",
|
|
8433
8465
|
components: { DtButton: K, DtTooltip: Xt },
|
|
@@ -8439,7 +8471,7 @@ const sl = {
|
|
|
8439
8471
|
id: {
|
|
8440
8472
|
type: String,
|
|
8441
8473
|
default() {
|
|
8442
|
-
return
|
|
8474
|
+
return Q.getUniqueString();
|
|
8443
8475
|
}
|
|
8444
8476
|
},
|
|
8445
8477
|
/**
|
|
@@ -8564,7 +8596,7 @@ function il(e, s, t, o, n, i) {
|
|
|
8564
8596
|
}, {
|
|
8565
8597
|
anchor: u(() => [
|
|
8566
8598
|
m("span", {
|
|
8567
|
-
class:
|
|
8599
|
+
class: b({ "d-c-not-allowed": t.disabled })
|
|
8568
8600
|
}, [
|
|
8569
8601
|
g(l, {
|
|
8570
8602
|
importance: i.buttonImportance,
|
|
@@ -8574,7 +8606,7 @@ function il(e, s, t, o, n, i) {
|
|
|
8574
8606
|
"aria-label": t.ariaLabel,
|
|
8575
8607
|
"label-class": i.callbarButtonTextClass,
|
|
8576
8608
|
width: i.buttonWidth,
|
|
8577
|
-
class:
|
|
8609
|
+
class: b(i.callbarButtonClass)
|
|
8578
8610
|
}, {
|
|
8579
8611
|
default: u(() => [
|
|
8580
8612
|
c(e.$slots, "default"),
|
|
@@ -8593,7 +8625,7 @@ function il(e, s, t, o, n, i) {
|
|
|
8593
8625
|
const nl = /* @__PURE__ */ v(sl, [["render", il]]);
|
|
8594
8626
|
const al = {
|
|
8595
8627
|
name: "DtRecipeCallbarButtonWithPopover",
|
|
8596
|
-
components: { DtRecipeCallbarButton: nl, DtPopover:
|
|
8628
|
+
components: { DtRecipeCallbarButton: nl, DtPopover: st, DtButton: K, DtIcon: R },
|
|
8597
8629
|
/* inheritAttrs: false is generally an option we want to set on library
|
|
8598
8630
|
components. This allows any attributes passed in that are not recognized
|
|
8599
8631
|
as props to be passed down to another element or component using v-bind:$attrs
|
|
@@ -8606,7 +8638,7 @@ const al = {
|
|
|
8606
8638
|
id: {
|
|
8607
8639
|
type: String,
|
|
8608
8640
|
default() {
|
|
8609
|
-
return
|
|
8641
|
+
return Q.getUniqueString();
|
|
8610
8642
|
}
|
|
8611
8643
|
},
|
|
8612
8644
|
/**
|
|
@@ -8817,7 +8849,7 @@ function ll(e, s, t, o, n, i) {
|
|
|
8817
8849
|
circle: "",
|
|
8818
8850
|
importance: "clear",
|
|
8819
8851
|
size: "lg",
|
|
8820
|
-
class:
|
|
8852
|
+
class: b(["dt-recipe--callbar-button-with-popover--arrow", { "d-mln24": !i.isCompactMode }]),
|
|
8821
8853
|
width: "2rem",
|
|
8822
8854
|
"aria-label": t.arrowButtonLabel,
|
|
8823
8855
|
active: n.open,
|
|
@@ -8845,11 +8877,11 @@ function ll(e, s, t, o, n, i) {
|
|
|
8845
8877
|
}, 16, ["id", "open", "placement", "initial-focus-element", "show-close-button", "dialog-class", "onOpened"])) : p("", !0)
|
|
8846
8878
|
]);
|
|
8847
8879
|
}
|
|
8848
|
-
const
|
|
8880
|
+
const rd = /* @__PURE__ */ v(al, [["render", ll]]), rl = {
|
|
8849
8881
|
name: "DtRecipeContactInfo",
|
|
8850
8882
|
components: {
|
|
8851
|
-
DtAvatar:
|
|
8852
|
-
DtListItem:
|
|
8883
|
+
DtAvatar: Xe,
|
|
8884
|
+
DtListItem: $e
|
|
8853
8885
|
},
|
|
8854
8886
|
/* inheritAttrs: false is generally an option we want to set on library
|
|
8855
8887
|
components. This allows any attributes passed in that are not recognized
|
|
@@ -8863,7 +8895,7 @@ const dd = /* @__PURE__ */ v(al, [["render", ll]]), rl = {
|
|
|
8863
8895
|
id: {
|
|
8864
8896
|
type: String,
|
|
8865
8897
|
default() {
|
|
8866
|
-
return
|
|
8898
|
+
return Q.getUniqueString();
|
|
8867
8899
|
}
|
|
8868
8900
|
},
|
|
8869
8901
|
/**
|
|
@@ -8947,7 +8979,7 @@ function _l(e, s, t, o, n, i) {
|
|
|
8947
8979
|
left: u(() => [
|
|
8948
8980
|
m("div", dl, [
|
|
8949
8981
|
t.avatarList ? (a(), r("div", cl, [
|
|
8950
|
-
(a(!0), r(
|
|
8982
|
+
(a(!0), r(X, null, ie(t.avatarList, (d, y) => (a(), r("div", { key: y }, [
|
|
8951
8983
|
d.src ? (a(), S(l, {
|
|
8952
8984
|
key: 0,
|
|
8953
8985
|
size: t.avatarSize,
|
|
@@ -9036,7 +9068,7 @@ function _l(e, s, t, o, n, i) {
|
|
|
9036
9068
|
_: 3
|
|
9037
9069
|
}, 8, ["id", "role"]);
|
|
9038
9070
|
}
|
|
9039
|
-
const
|
|
9071
|
+
const dd = /* @__PURE__ */ v(rl, [["render", _l]]), bl = [
|
|
9040
9072
|
"green300",
|
|
9041
9073
|
"green100",
|
|
9042
9074
|
"red200",
|
|
@@ -9079,7 +9111,7 @@ const yl = {
|
|
|
9079
9111
|
}, vl = { class: "d-top-banner-info__left" }, Sl = { class: "d-top-banner-info__middle d-my4" }, Cl = { class: "d-top-banner-info__right d-ta-right" };
|
|
9080
9112
|
function Il(e, s, t, o, n, i) {
|
|
9081
9113
|
return a(), r("div", {
|
|
9082
|
-
class:
|
|
9114
|
+
class: b(["d-fs-100 d-d-flex d-top-banner-info d-jc-space-between d-ai-center d-fc-primary", i.bannerInfoClass]),
|
|
9083
9115
|
"data-qa": "banner-info"
|
|
9084
9116
|
}, [
|
|
9085
9117
|
m("div", vl, [
|
|
@@ -9093,24 +9125,24 @@ function Il(e, s, t, o, n, i) {
|
|
|
9093
9125
|
])
|
|
9094
9126
|
], 2);
|
|
9095
9127
|
}
|
|
9096
|
-
const
|
|
9097
|
-
[
|
|
9098
|
-
[
|
|
9099
|
-
[
|
|
9100
|
-
[
|
|
9101
|
-
[
|
|
9102
|
-
[
|
|
9103
|
-
[
|
|
9104
|
-
[
|
|
9105
|
-
},
|
|
9106
|
-
[
|
|
9107
|
-
[
|
|
9108
|
-
[
|
|
9109
|
-
[
|
|
9110
|
-
[
|
|
9111
|
-
[
|
|
9112
|
-
[
|
|
9113
|
-
[
|
|
9128
|
+
const cd = /* @__PURE__ */ v(yl, [["render", Il]]), nt = "promptmenu", at = "promptcollect", ot = "promptplay", lt = "gotoexpert", He = "goto", rt = "branch", dt = "transfer", ct = "hangup", wl = {
|
|
9129
|
+
[nt]: "keypad",
|
|
9130
|
+
[at]: "dialer",
|
|
9131
|
+
[ot]: "volume-2",
|
|
9132
|
+
[lt]: "expert-node",
|
|
9133
|
+
[rt]: "branch",
|
|
9134
|
+
[He]: "call-merge",
|
|
9135
|
+
[dt]: "transfer",
|
|
9136
|
+
[ct]: "phone-hang-up"
|
|
9137
|
+
}, ud = {
|
|
9138
|
+
[nt]: "Menu",
|
|
9139
|
+
[at]: "Collect",
|
|
9140
|
+
[ot]: "Play",
|
|
9141
|
+
[lt]: "Expert",
|
|
9142
|
+
[rt]: "Branch",
|
|
9143
|
+
[He]: "Go-to",
|
|
9144
|
+
[dt]: "Transfer",
|
|
9145
|
+
[ct]: "Hangup"
|
|
9114
9146
|
}, re = {
|
|
9115
9147
|
PROMPT: {
|
|
9116
9148
|
normal: "d-bc-blue-200",
|
|
@@ -9125,14 +9157,14 @@ const ud = /* @__PURE__ */ v(yl, [["render", Il]]), lt = "promptmenu", rt = "pro
|
|
|
9125
9157
|
selected: "d-bc-red-200"
|
|
9126
9158
|
}
|
|
9127
9159
|
}, El = {
|
|
9128
|
-
[
|
|
9129
|
-
[
|
|
9130
|
-
[
|
|
9131
|
-
[
|
|
9132
|
-
[
|
|
9133
|
-
[
|
|
9134
|
-
[
|
|
9135
|
-
[
|
|
9160
|
+
[nt]: re.PROMPT,
|
|
9161
|
+
[at]: re.PROMPT,
|
|
9162
|
+
[ot]: re.PROMPT,
|
|
9163
|
+
[lt]: re.LOGIC,
|
|
9164
|
+
[rt]: re.LOGIC,
|
|
9165
|
+
[He]: re.LOGIC,
|
|
9166
|
+
[dt]: re.TERMINAL,
|
|
9167
|
+
[ct]: re.TERMINAL
|
|
9136
9168
|
};
|
|
9137
9169
|
const kl = {
|
|
9138
9170
|
name: "DtRecipeIvrNode",
|
|
@@ -9207,7 +9239,7 @@ const kl = {
|
|
|
9207
9239
|
return this.isSelected ? s : e;
|
|
9208
9240
|
},
|
|
9209
9241
|
isGotoNode() {
|
|
9210
|
-
return this.nodeType ===
|
|
9242
|
+
return this.nodeType === He;
|
|
9211
9243
|
}
|
|
9212
9244
|
},
|
|
9213
9245
|
methods: {
|
|
@@ -9221,17 +9253,17 @@ const kl = {
|
|
|
9221
9253
|
}, Tl = { class: "d-w164" };
|
|
9222
9254
|
function Al(e, s, t, o, n, i) {
|
|
9223
9255
|
const l = f("dt-icon"), h = f("dt-button"), d = f("dt-dropdown"), y = f("dt-card");
|
|
9224
|
-
return a(), r("div", C({ class: "d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width" },
|
|
9256
|
+
return a(), r("div", C({ class: "d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width" }, M(i.nodeListeners, !0)), [
|
|
9225
9257
|
t.dtmfKey ? (a(), r("div", {
|
|
9226
9258
|
key: 0,
|
|
9227
9259
|
"data-qa": "dt-top-connector-dtmf",
|
|
9228
|
-
class:
|
|
9260
|
+
class: b(["ivr-connector d-w24 d-h24 d-bar-circle d-mbn12 d-fc-white d-fs-200", { "d-mbn16": t.isSelected }])
|
|
9229
9261
|
}, I(t.dtmfKey), 3)) : p("", !0),
|
|
9230
9262
|
e.$slots.connector ? c(e.$slots, "connector", { key: 1 }) : p("", !0),
|
|
9231
9263
|
!t.dtmfKey && !e.$slots.connector ? (a(), r("div", {
|
|
9232
9264
|
key: 2,
|
|
9233
9265
|
"data-qa": "dt-top-connector",
|
|
9234
|
-
class:
|
|
9266
|
+
class: b(["ivr-connector d-w8 d-h8 d-bar-circle d-mbn4", { "d-mbn8": t.isSelected }])
|
|
9235
9267
|
}, null, 2)) : p("", !0),
|
|
9236
9268
|
g(y, {
|
|
9237
9269
|
"content-class": "d-bt d-bc-black-300 d-px12 d-pt8 d-pb12",
|
|
@@ -9261,7 +9293,7 @@ function Al(e, s, t, o, n, i) {
|
|
|
9261
9293
|
g(l, {
|
|
9262
9294
|
name: i.nodeIcon,
|
|
9263
9295
|
size: "200",
|
|
9264
|
-
class:
|
|
9296
|
+
class: b(["", { ivr_node__goto_icon: i.isGotoNode }])
|
|
9265
9297
|
}, null, 8, ["name", "class"])
|
|
9266
9298
|
]),
|
|
9267
9299
|
_: 1
|
|
@@ -9270,7 +9302,7 @@ function Al(e, s, t, o, n, i) {
|
|
|
9270
9302
|
]),
|
|
9271
9303
|
g(d, {
|
|
9272
9304
|
open: n.isOpen,
|
|
9273
|
-
"onUpdate:open": s[0] || (s[0] = (
|
|
9305
|
+
"onUpdate:open": s[0] || (s[0] = (O) => n.isOpen = O),
|
|
9274
9306
|
placement: "bottom"
|
|
9275
9307
|
}, {
|
|
9276
9308
|
anchor: u(() => [
|
|
@@ -9289,9 +9321,9 @@ function Al(e, s, t, o, n, i) {
|
|
|
9289
9321
|
_: 1
|
|
9290
9322
|
}, 8, ["aria-label", "onClick"])
|
|
9291
9323
|
]),
|
|
9292
|
-
list: u(({ close:
|
|
9324
|
+
list: u(({ close: O }) => [
|
|
9293
9325
|
m("div", Tl, [
|
|
9294
|
-
c(e.$slots, "menuItems", { close:
|
|
9326
|
+
c(e.$slots, "menuItems", { close: O })
|
|
9295
9327
|
])
|
|
9296
9328
|
]),
|
|
9297
9329
|
_: 3
|
|
@@ -9304,7 +9336,7 @@ function Al(e, s, t, o, n, i) {
|
|
|
9304
9336
|
}, 8, ["container-class", "header-class"])
|
|
9305
9337
|
], 16);
|
|
9306
9338
|
}
|
|
9307
|
-
const
|
|
9339
|
+
const hd = /* @__PURE__ */ v(kl, [["render", Al]]);
|
|
9308
9340
|
const Dl = {
|
|
9309
9341
|
name: "DtRecipeGroupedChip",
|
|
9310
9342
|
components: {
|
|
@@ -9312,7 +9344,7 @@ const Dl = {
|
|
|
9312
9344
|
},
|
|
9313
9345
|
data() {
|
|
9314
9346
|
return {
|
|
9315
|
-
hasSlotContent:
|
|
9347
|
+
hasSlotContent: N
|
|
9316
9348
|
};
|
|
9317
9349
|
}
|
|
9318
9350
|
}, Pl = {
|
|
@@ -9381,7 +9413,7 @@ function zl(e, s, t, o, n, i) {
|
|
|
9381
9413
|
})
|
|
9382
9414
|
]);
|
|
9383
9415
|
}
|
|
9384
|
-
const
|
|
9416
|
+
const fd = /* @__PURE__ */ v(Dl, [["render", zl]]);
|
|
9385
9417
|
const $l = {
|
|
9386
9418
|
name: "DtRecipeSettingsMenuButton",
|
|
9387
9419
|
components: {
|
|
@@ -9445,7 +9477,7 @@ function Ml(e, s, t, o, n, i) {
|
|
|
9445
9477
|
_: 1
|
|
9446
9478
|
}, 16, ["aria-label"]));
|
|
9447
9479
|
}
|
|
9448
|
-
const
|
|
9480
|
+
const pd = /* @__PURE__ */ v($l, [["render", Ml], ["__scopeId", "data-v-7712e6e1"]]), $ = {
|
|
9449
9481
|
INBOX: "inbox",
|
|
9450
9482
|
CONTACTS: "contacts",
|
|
9451
9483
|
CHANNELS: "channels",
|
|
@@ -9459,19 +9491,19 @@ const md = /* @__PURE__ */ v($l, [["render", Ml], ["__scopeId", "data-v-7712e6e1
|
|
|
9459
9491
|
ASSIGNED: "assigned",
|
|
9460
9492
|
DIGITAL: "digital"
|
|
9461
9493
|
}, Hl = {
|
|
9462
|
-
[
|
|
9463
|
-
[
|
|
9464
|
-
[
|
|
9465
|
-
[
|
|
9466
|
-
[
|
|
9467
|
-
[
|
|
9468
|
-
[
|
|
9469
|
-
[
|
|
9494
|
+
[$.INBOX]: "inbox",
|
|
9495
|
+
[$.CONTACTS]: "contacts",
|
|
9496
|
+
[$.CHANNELS]: "hash",
|
|
9497
|
+
[$.THREADS]: "thread",
|
|
9498
|
+
[$.LOCKED_CHANNEL]: "lock",
|
|
9499
|
+
[$.QUICK_START]: "sparkle",
|
|
9500
|
+
[$.COACHING_GROUP]: "users",
|
|
9501
|
+
[$.COACHING_CENTER]: "external-link",
|
|
9470
9502
|
"locked channel unread": "lock-filled",
|
|
9471
9503
|
"channel unread": "hash-bold",
|
|
9472
|
-
[
|
|
9473
|
-
[
|
|
9474
|
-
},
|
|
9504
|
+
[$.ASSIGNED]: "at-sign",
|
|
9505
|
+
[$.DIGITAL]: "message"
|
|
9506
|
+
}, Be = {
|
|
9475
9507
|
"magenta-200": "d-bgc-magenta-200",
|
|
9476
9508
|
"green-200": "d-bgc-green-200",
|
|
9477
9509
|
"gold-300": "d-bgc-gold-300",
|
|
@@ -9482,7 +9514,7 @@ const md = /* @__PURE__ */ v($l, [["render", Ml], ["__scopeId", "data-v-7712e6e1
|
|
|
9482
9514
|
"purple-100": "d-bgc-purple-100",
|
|
9483
9515
|
"magenta-400": "d-bgc-magenta-400",
|
|
9484
9516
|
"magenta-100": "d-bgc-magenta-100"
|
|
9485
|
-
}, Vl = "If type is contact center, color must be oneof the following:" + Object.keys(
|
|
9517
|
+
}, Vl = "If type is contact center, color must be oneof the following:" + Object.keys(Be).join(", "), ql = [
|
|
9486
9518
|
"300",
|
|
9487
9519
|
"200"
|
|
9488
9520
|
], Fl = {}, Kl = {
|
|
@@ -9494,7 +9526,7 @@ const md = /* @__PURE__ */ v($l, [["render", Ml], ["__scopeId", "data-v-7712e6e1
|
|
|
9494
9526
|
height: "358",
|
|
9495
9527
|
viewBox: "0 0 358 358",
|
|
9496
9528
|
fill: "none"
|
|
9497
|
-
}, jl = /* @__PURE__ */
|
|
9529
|
+
}, jl = /* @__PURE__ */ qs('<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), Gl = [
|
|
9498
9530
|
jl
|
|
9499
9531
|
];
|
|
9500
9532
|
function Wl(e, s) {
|
|
@@ -9519,13 +9551,13 @@ const Ul = /* @__PURE__ */ v(Fl, [["render", Wl]]), Zl = {
|
|
|
9519
9551
|
},
|
|
9520
9552
|
computed: {
|
|
9521
9553
|
isIconType() {
|
|
9522
|
-
return ![
|
|
9554
|
+
return ![$.DIALBOT, $.CONTACT_CENTER].includes(this.type);
|
|
9523
9555
|
},
|
|
9524
9556
|
isContactCenterType() {
|
|
9525
|
-
return this.type ===
|
|
9557
|
+
return this.type === $.CONTACT_CENTER;
|
|
9526
9558
|
},
|
|
9527
9559
|
isDialbotType() {
|
|
9528
|
-
return this.type ===
|
|
9560
|
+
return this.type === $.DIALBOT;
|
|
9529
9561
|
},
|
|
9530
9562
|
getIconName() {
|
|
9531
9563
|
return Hl[this.type];
|
|
@@ -9533,7 +9565,7 @@ const Ul = /* @__PURE__ */ v(Fl, [["render", Wl]]), Zl = {
|
|
|
9533
9565
|
contactCenterIconClasses() {
|
|
9534
9566
|
return [
|
|
9535
9567
|
"dt-leftbar-row__icon-cc",
|
|
9536
|
-
|
|
9568
|
+
Be[this.color]
|
|
9537
9569
|
];
|
|
9538
9570
|
},
|
|
9539
9571
|
dialbotClasses() {
|
|
@@ -9555,10 +9587,10 @@ function Yl(e, s, t, o, n, i) {
|
|
|
9555
9587
|
size: t.iconSize
|
|
9556
9588
|
}, null, 8, ["name", "size"])) : i.isContactCenterType ? (a(), r("div", {
|
|
9557
9589
|
key: 1,
|
|
9558
|
-
class:
|
|
9590
|
+
class: b(i.contactCenterIconClasses)
|
|
9559
9591
|
}, null, 2)) : i.isDialbotType ? (a(), r("div", {
|
|
9560
9592
|
key: 2,
|
|
9561
|
-
class:
|
|
9593
|
+
class: b(i.dialbotClasses),
|
|
9562
9594
|
"data-qa": "general-row-dialbot"
|
|
9563
9595
|
}, [
|
|
9564
9596
|
g(h, { class: "d-svg--size24" })
|
|
@@ -9584,7 +9616,7 @@ const Xl = {
|
|
|
9584
9616
|
type: {
|
|
9585
9617
|
type: String,
|
|
9586
9618
|
default: "inbox",
|
|
9587
|
-
validator: (e) => Object.values(
|
|
9619
|
+
validator: (e) => Object.values($).includes(e)
|
|
9588
9620
|
},
|
|
9589
9621
|
/**
|
|
9590
9622
|
* Will be read out by a screen reader upon focus of this row. If not defined "description" will be read.
|
|
@@ -9607,7 +9639,7 @@ const Xl = {
|
|
|
9607
9639
|
color: {
|
|
9608
9640
|
type: String,
|
|
9609
9641
|
default: null,
|
|
9610
|
-
validator: (e) => Object.keys(
|
|
9642
|
+
validator: (e) => Object.keys(Be).includes(e)
|
|
9611
9643
|
},
|
|
9612
9644
|
/**
|
|
9613
9645
|
* Styles the row with an increased font weight to convey it has unreads. This must be true to see
|
|
@@ -9726,11 +9758,11 @@ const Xl = {
|
|
|
9726
9758
|
},
|
|
9727
9759
|
getIcon() {
|
|
9728
9760
|
switch (this.type) {
|
|
9729
|
-
case
|
|
9761
|
+
case $.CHANNELS:
|
|
9730
9762
|
if (this.hasUnreads)
|
|
9731
9763
|
return "channel unread";
|
|
9732
9764
|
break;
|
|
9733
|
-
case
|
|
9765
|
+
case $.LOCKED_CHANNEL:
|
|
9734
9766
|
if (this.hasUnreads)
|
|
9735
9767
|
return "locked channel unread";
|
|
9736
9768
|
break;
|
|
@@ -9738,7 +9770,7 @@ const Xl = {
|
|
|
9738
9770
|
return this.type;
|
|
9739
9771
|
},
|
|
9740
9772
|
generalRowListeners() {
|
|
9741
|
-
return
|
|
9773
|
+
return Ye(this.$attrs);
|
|
9742
9774
|
},
|
|
9743
9775
|
getAriaLabel() {
|
|
9744
9776
|
return this.ariaLabel ? this.ariaLabel : `${this.description} ${this.unreadCountTooltip} ${this.dndTextTooltip}`;
|
|
@@ -9755,7 +9787,7 @@ const Xl = {
|
|
|
9755
9787
|
},
|
|
9756
9788
|
methods: {
|
|
9757
9789
|
validateProps() {
|
|
9758
|
-
this.type ===
|
|
9790
|
+
this.type === $.CONTACT_CENTER && !Object.keys(Be).includes(this.color) && console.error(Vl);
|
|
9759
9791
|
}
|
|
9760
9792
|
}
|
|
9761
9793
|
}, Jl = ["data-qa", "aria-label", "title"], er = { class: "dt-leftbar-row__alpha" }, tr = {
|
|
@@ -9774,9 +9806,9 @@ const Xl = {
|
|
|
9774
9806
|
"data-qa": "dt-leftbar-row-action"
|
|
9775
9807
|
};
|
|
9776
9808
|
function ur(e, s, t, o, n, i) {
|
|
9777
|
-
const l = f("dt-recipe-leftbar-general-row-icon"), h = f("dt-emoji-text-wrapper"), d = f("dt-tooltip"), y = f("dt-icon"),
|
|
9809
|
+
const l = f("dt-recipe-leftbar-general-row-icon"), h = f("dt-emoji-text-wrapper"), d = f("dt-tooltip"), y = f("dt-icon"), O = f("dt-badge"), _ = f("dt-button");
|
|
9778
9810
|
return a(), r("div", {
|
|
9779
|
-
class:
|
|
9811
|
+
class: b(i.leftbarGeneralRowClasses),
|
|
9780
9812
|
"data-qa": "dt-leftbar-row"
|
|
9781
9813
|
}, [
|
|
9782
9814
|
m("a", C({
|
|
@@ -9831,7 +9863,7 @@ function ur(e, s, t, o, n, i) {
|
|
|
9831
9863
|
placement: "top"
|
|
9832
9864
|
}, {
|
|
9833
9865
|
anchor: u(() => [
|
|
9834
|
-
g(
|
|
9866
|
+
g(O, {
|
|
9835
9867
|
kind: "count",
|
|
9836
9868
|
type: "bulletin",
|
|
9837
9869
|
"data-qa": "dt-leftbar-row-unread-badge"
|
|
@@ -9852,7 +9884,7 @@ function ur(e, s, t, o, n, i) {
|
|
|
9852
9884
|
placement: "top"
|
|
9853
9885
|
}, {
|
|
9854
9886
|
anchor: u(() => [
|
|
9855
|
-
g(
|
|
9887
|
+
g(_, {
|
|
9856
9888
|
class: "dt-leftbar-row__action-button",
|
|
9857
9889
|
"data-qa": "dt-leftbar-row-action-call-button",
|
|
9858
9890
|
circle: "",
|
|
@@ -9967,10 +9999,10 @@ function fr(e, s, t, o, n, i) {
|
|
|
9967
9999
|
_: 1
|
|
9968
10000
|
}, 16, ["description", "aria-label", "unread-count", "has-unreads", "unread-count-tooltip", "selected", "is-typing"]);
|
|
9969
10001
|
}
|
|
9970
|
-
const
|
|
10002
|
+
const md = /* @__PURE__ */ v(hr, [["render", fr]]), pr = {
|
|
9971
10003
|
name: "DtRecipeGroupRow",
|
|
9972
10004
|
components: {
|
|
9973
|
-
DtAvatar:
|
|
10005
|
+
DtAvatar: Xe,
|
|
9974
10006
|
DtIcon: R,
|
|
9975
10007
|
DtRecipeGeneralRow: hs,
|
|
9976
10008
|
DtEmojiTextWrapper: Jt
|
|
@@ -10112,7 +10144,7 @@ const gd = /* @__PURE__ */ v(hr, [["render", fr]]), pr = {
|
|
|
10112
10144
|
}
|
|
10113
10145
|
},
|
|
10114
10146
|
contactRowListeners() {
|
|
10115
|
-
return
|
|
10147
|
+
return Ye(this.$attrs);
|
|
10116
10148
|
},
|
|
10117
10149
|
avatarInitial() {
|
|
10118
10150
|
var e;
|
|
@@ -10132,8 +10164,8 @@ function _r(e, s, t, o, n, i) {
|
|
|
10132
10164
|
"is-typing": t.isTyping,
|
|
10133
10165
|
"call-button-tooltip": t.callButtonTooltip,
|
|
10134
10166
|
"unread-count-tooltip": t.unreadCountTooltip
|
|
10135
|
-
}, e.$attrs,
|
|
10136
|
-
onCall: s[0] || (s[0] = (
|
|
10167
|
+
}, e.$attrs, M(i.contactRowListeners), {
|
|
10168
|
+
onCall: s[0] || (s[0] = (O) => e.$emit("call", O))
|
|
10137
10169
|
}), {
|
|
10138
10170
|
left: u(() => [
|
|
10139
10171
|
g(h, {
|
|
@@ -10151,7 +10183,7 @@ function _r(e, s, t, o, n, i) {
|
|
|
10151
10183
|
key: 1,
|
|
10152
10184
|
name: "user",
|
|
10153
10185
|
size: "200"
|
|
10154
|
-
})) : (a(), r(
|
|
10186
|
+
})) : (a(), r(X, { key: 2 }, [
|
|
10155
10187
|
D(I(i.avatarInitial), 1)
|
|
10156
10188
|
], 64))
|
|
10157
10189
|
]),
|
|
@@ -10173,7 +10205,7 @@ function _r(e, s, t, o, n, i) {
|
|
|
10173
10205
|
t.presenceText ? (a(), r("span", {
|
|
10174
10206
|
key: 0,
|
|
10175
10207
|
"data-qa": "dt-leftbar-row-presence-text",
|
|
10176
|
-
class:
|
|
10208
|
+
class: b(["dt-leftbar-row__meta-context", i.presenceColorClass])
|
|
10177
10209
|
}, I(t.presenceText), 3)) : p("", !0),
|
|
10178
10210
|
t.userStatus ? (a(), S(d, {
|
|
10179
10211
|
key: 1,
|
|
@@ -10192,7 +10224,7 @@ function _r(e, s, t, o, n, i) {
|
|
|
10192
10224
|
_: 1
|
|
10193
10225
|
}, 16, ["unread-count", "description", "has-unreads", "selected", "has-call-button", "muted", "is-typing", "call-button-tooltip", "unread-count-tooltip"]);
|
|
10194
10226
|
}
|
|
10195
|
-
const
|
|
10227
|
+
const gd = /* @__PURE__ */ v(pr, [["render", _r]]), br = ["up", "down"], yr = ["mentions", "messages"];
|
|
10196
10228
|
const vr = {
|
|
10197
10229
|
name: "DtRecipeUnreadPill",
|
|
10198
10230
|
components: {
|
|
@@ -10241,7 +10273,7 @@ function Cr(e, s, t, o, n, i) {
|
|
|
10241
10273
|
class: ["dt-leftbar-unread-pill", `dt-leftbar-unread-pill--${t.kind}`],
|
|
10242
10274
|
type: "button",
|
|
10243
10275
|
"data-qa": "dt-leftbar-unread-pill"
|
|
10244
|
-
},
|
|
10276
|
+
}, M(i.unreadChipListeners, !0)), [
|
|
10245
10277
|
g(l, {
|
|
10246
10278
|
name: `arrow-${t.direction}`,
|
|
10247
10279
|
size: "300"
|
|
@@ -10251,13 +10283,13 @@ function Cr(e, s, t, o, n, i) {
|
|
|
10251
10283
|
])
|
|
10252
10284
|
], 16);
|
|
10253
10285
|
}
|
|
10254
|
-
const
|
|
10286
|
+
const _d = /* @__PURE__ */ v(vr, [["render", Cr]]);
|
|
10255
10287
|
const Ir = {
|
|
10256
10288
|
name: "DtRecipeFeedItemRow",
|
|
10257
10289
|
components: {
|
|
10258
|
-
DtAvatar:
|
|
10259
|
-
DtLazyShow:
|
|
10260
|
-
DtListItem:
|
|
10290
|
+
DtAvatar: Xe,
|
|
10291
|
+
DtLazyShow: Ne,
|
|
10292
|
+
DtListItem: $e
|
|
10261
10293
|
},
|
|
10262
10294
|
inheritAttrs: !1,
|
|
10263
10295
|
props: {
|
|
@@ -10370,7 +10402,7 @@ function Dr(e, s, t, o, n, i) {
|
|
|
10370
10402
|
}, e.$attrs, {
|
|
10371
10403
|
class: ["d-w100p", "d-box-border", "d-ps-relative", "d-px8", { "d-bgc-secondary-opaque": t.isActive }],
|
|
10372
10404
|
"data-qa": "feed-item-row"
|
|
10373
|
-
},
|
|
10405
|
+
}, M(i.feedListeners)), {
|
|
10374
10406
|
left: u(() => [
|
|
10375
10407
|
t.showHeader ? (a(), S(l, {
|
|
10376
10408
|
key: 0,
|
|
@@ -10431,7 +10463,7 @@ function Dr(e, s, t, o, n, i) {
|
|
|
10431
10463
|
_: 3
|
|
10432
10464
|
}, 16, ["class"]);
|
|
10433
10465
|
}
|
|
10434
|
-
const
|
|
10466
|
+
const bd = /* @__PURE__ */ v(Ir, [["render", Dr]]), Pr = {
|
|
10435
10467
|
name: "DtRecipeTimePill",
|
|
10436
10468
|
props: {
|
|
10437
10469
|
/**
|
|
@@ -10462,149 +10494,149 @@ function Rr(e, s, t, o, n, i) {
|
|
|
10462
10494
|
class: "d-ba d-bar-pill d-baw1 d-bc-black-300 d-px16 d-py4 d-fs-100"
|
|
10463
10495
|
}, I(t.dateTimeDisplay), 9, xr);
|
|
10464
10496
|
}
|
|
10465
|
-
const
|
|
10497
|
+
const yd = /* @__PURE__ */ v(Pr, [["render", Rr]]);
|
|
10466
10498
|
export {
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10499
|
+
kt as AVATAR_KIND_MODIFIERS,
|
|
10500
|
+
je as AVATAR_SIZE_MODIFIERS,
|
|
10501
|
+
Pt as BADGE_DECORATION_MODIFIERS,
|
|
10502
|
+
Dt as BADGE_KIND_MODIFIERS,
|
|
10503
|
+
At as BADGE_TYPE_MODIFIERS,
|
|
10472
10504
|
Pi as BREADCRUMBS_INVERTED_MODIFIER,
|
|
10473
10505
|
Di as BREADCRUMB_ITEM_SELECTED_MODIFIER,
|
|
10474
|
-
|
|
10506
|
+
xt as BUTTON_GROUP_ALIGNMENT,
|
|
10475
10507
|
us as CALLBAR_BUTTON_VALID_WIDTH_SIZE,
|
|
10476
|
-
|
|
10508
|
+
Mt as CHIP_SIZE_MODIFIERS,
|
|
10477
10509
|
bl as COLOR_CODES,
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10510
|
+
Cd as DEFAULT_VALIDATION_MESSAGE_TYPE,
|
|
10511
|
+
Id as DESCRIPTION_SIZE_TYPES,
|
|
10512
|
+
Xe as DtAvatar,
|
|
10481
10513
|
ci as DtBadge,
|
|
10482
|
-
|
|
10514
|
+
Nr as DtBanner,
|
|
10483
10515
|
$i as DtBreadcrumbItem,
|
|
10484
|
-
|
|
10516
|
+
zr as DtBreadcrumbs,
|
|
10485
10517
|
K as DtButton,
|
|
10486
|
-
|
|
10518
|
+
$r as DtButtonGroup,
|
|
10487
10519
|
Gi as DtCard,
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10520
|
+
Ut as DtCheckableInputMixin,
|
|
10521
|
+
Qr as DtCheckbox,
|
|
10522
|
+
Xr as DtCheckboxGroup,
|
|
10491
10523
|
ls as DtChip,
|
|
10492
|
-
|
|
10493
|
-
|
|
10524
|
+
Mr as DtCodeblock,
|
|
10525
|
+
Hr as DtCollapsible,
|
|
10494
10526
|
bn as DtCombobox,
|
|
10495
10527
|
Hn as DtDropdown,
|
|
10496
|
-
|
|
10497
|
-
|
|
10528
|
+
Vr as DtDropdownSeparator,
|
|
10529
|
+
Zt as DtGroupableInputMixin,
|
|
10498
10530
|
R as DtIcon,
|
|
10499
|
-
|
|
10500
|
-
|
|
10531
|
+
qr as DtImageViewer,
|
|
10532
|
+
Vs as DtInput,
|
|
10501
10533
|
os as DtInputGroup,
|
|
10502
10534
|
Yn as DtInputGroupMixin,
|
|
10503
|
-
|
|
10535
|
+
Wt as DtInputMixin,
|
|
10504
10536
|
ts as DtKeyboardListNavigationMixin,
|
|
10505
|
-
|
|
10506
|
-
|
|
10537
|
+
id as DtKeyboardShortcut,
|
|
10538
|
+
Ne as DtLazyShow,
|
|
10507
10539
|
Bi as DtLink,
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10540
|
+
$e as DtListItem,
|
|
10541
|
+
Gr as DtListItemGroup,
|
|
10542
|
+
jr as DtListSection,
|
|
10543
|
+
Kr as DtModal,
|
|
10544
|
+
Fr as DtNotice,
|
|
10545
|
+
Wr as DtPagination,
|
|
10546
|
+
st as DtPopover,
|
|
10515
10547
|
Us as DtPresence,
|
|
10516
|
-
|
|
10517
|
-
|
|
10548
|
+
Ur as DtRadio,
|
|
10549
|
+
Zr as DtRadioGroup,
|
|
10518
10550
|
nl as DtRecipeCallbarButton,
|
|
10519
|
-
|
|
10520
|
-
|
|
10551
|
+
rd as DtRecipeCallbarButtonWithPopover,
|
|
10552
|
+
ld as DtRecipeComboboxMultiSelect,
|
|
10521
10553
|
jo as DtRecipeComboboxWithPopover,
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10554
|
+
dd as DtRecipeContactInfo,
|
|
10555
|
+
gd as DtRecipeContactRow,
|
|
10556
|
+
bd as DtRecipeFeedItemRow,
|
|
10525
10557
|
hs as DtRecipeGeneralRow,
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10558
|
+
md as DtRecipeGroupRow,
|
|
10559
|
+
fd as DtRecipeGroupedChip,
|
|
10560
|
+
hd as DtRecipeIvrNode,
|
|
10561
|
+
pd as DtRecipeSettingsMenuButton,
|
|
10562
|
+
yd as DtRecipeTimePill,
|
|
10563
|
+
cd as DtRecipeTopBannerInfo,
|
|
10564
|
+
_d as DtRecipeUnreadPill,
|
|
10565
|
+
nd as DtRootLayout,
|
|
10566
|
+
od as DtScroller,
|
|
10567
|
+
Jr as DtSelectMenu,
|
|
10568
|
+
Ls as DtSkeleton,
|
|
10569
|
+
wd as DtSkeletonListItem,
|
|
10570
|
+
Ed as DtSkeletonParagraph,
|
|
10571
|
+
kd as DtSkeletonShape,
|
|
10572
|
+
Od as DtSkeletonText,
|
|
10573
|
+
ad as DtStack,
|
|
10574
|
+
Ld as DtTab,
|
|
10575
|
+
Td as DtTabGroup,
|
|
10576
|
+
Yr as DtTabPanel,
|
|
10577
|
+
ed as DtToast,
|
|
10578
|
+
td as DtToggle,
|
|
10547
10579
|
Xt as DtTooltip,
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10580
|
+
me as DtValidationMessages,
|
|
10581
|
+
Ad as ICON_SIZE_MODIFIERS,
|
|
10582
|
+
Dd as INPUT_SIZES,
|
|
10583
|
+
Pd as INPUT_TYPES,
|
|
10584
|
+
rt as IVR_NODE_BRANCH,
|
|
10585
|
+
lt as IVR_NODE_EXPERT,
|
|
10586
|
+
He as IVR_NODE_GO_TO,
|
|
10587
|
+
ct as IVR_NODE_HANGUP,
|
|
10556
10588
|
wl as IVR_NODE_ICON_TYPES,
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
10589
|
+
ud as IVR_NODE_LABELS,
|
|
10590
|
+
at as IVR_NODE_PROMPT_COLLECT,
|
|
10591
|
+
nt as IVR_NODE_PROMPT_MENU,
|
|
10592
|
+
ot as IVR_NODE_PROMPT_PLAY,
|
|
10593
|
+
dt as IVR_NODE_TRANSFER,
|
|
10594
|
+
Be as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS,
|
|
10563
10595
|
Vl as LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR,
|
|
10564
10596
|
Hl as LEFTBAR_GENERAL_ROW_ICON_MAPPING,
|
|
10565
10597
|
ql as LEFTBAR_GENERAL_ROW_ICON_SIZES,
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10598
|
+
$ as LEFTBAR_GENERAL_ROW_TYPES,
|
|
10599
|
+
Es as LINK_KIND_MODIFIERS,
|
|
10600
|
+
ws as LINK_VARIANTS,
|
|
10601
|
+
Nt as MODAL_KIND_MODIFIERS,
|
|
10602
|
+
zt as MODAL_SIZE_MODIFIERS,
|
|
10571
10603
|
Go as MULTI_SELECT_SIZES,
|
|
10572
10604
|
Oe as NOTICE_KINDS,
|
|
10573
10605
|
as as POPOVER_CONTENT_WIDTHS,
|
|
10574
10606
|
kn as POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
10575
10607
|
Ln as POPOVER_INITIAL_FOCUS_STRINGS,
|
|
10576
|
-
|
|
10608
|
+
Bt as POPOVER_PADDING_CLASSES,
|
|
10577
10609
|
On as POPOVER_ROLES,
|
|
10578
10610
|
be as PRESENCE_STATES,
|
|
10579
10611
|
Fs as PRESENCE_STATES_LIST,
|
|
10580
10612
|
Co as ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS,
|
|
10581
10613
|
rs as ROOT_LAYOUT_SIDEBAR_POSITIONS,
|
|
10582
|
-
|
|
10614
|
+
Ht as SELECT_SIZE_MODIFIERS,
|
|
10583
10615
|
Wa as SELECT_STATE_MODIFIERS,
|
|
10584
|
-
|
|
10616
|
+
sd as SHORTCUTS_ALIASES_LIST,
|
|
10585
10617
|
ye as SHORTCUTS_ICON_ALIASES,
|
|
10586
10618
|
_o as SHORTCUTS_ICON_SEPARATOR,
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10619
|
+
xd as SKELETON_HEADING_HEIGHTS,
|
|
10620
|
+
Rd as SKELETON_RIPPLE_DURATION,
|
|
10621
|
+
Bd as SKELETON_SHAPES,
|
|
10622
|
+
Nd as SKELETON_SHAPE_SIZES,
|
|
10623
|
+
zd as SKELETON_TEXT_TYPES,
|
|
10624
|
+
$d as TAB_IMPORTANCE_MODIFIERS,
|
|
10625
|
+
Md as TAB_LIST_IMPORTANCE_MODIFIERS,
|
|
10626
|
+
Hd as TAB_LIST_KIND_MODIFIERS,
|
|
10627
|
+
Vd as TAB_LIST_SIZES,
|
|
10596
10628
|
no as TOAST_ROLES,
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10629
|
+
qd as TOOLTIP_DELAY_MS,
|
|
10630
|
+
Fd as TOOLTIP_DIRECTIONS,
|
|
10631
|
+
Kd as TOOLTIP_HIDE_ON_CLICK_VARIANTS,
|
|
10632
|
+
jd as TOOLTIP_KIND_MODIFIERS,
|
|
10633
|
+
Gd as TOOLTIP_STICKY_VALUES,
|
|
10602
10634
|
br as UNREAD_PILL_DIRECTIONS,
|
|
10603
10635
|
yr as UNREAD_PILL_KINDS,
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10636
|
+
Wd as VALIDATION_MESSAGE_TYPES,
|
|
10637
|
+
Ud as filterFormattedMessages,
|
|
10638
|
+
wt as formatMessages,
|
|
10607
10639
|
F as getUniqueString,
|
|
10608
|
-
|
|
10609
|
-
|
|
10640
|
+
We as getValidationState,
|
|
10641
|
+
Gt as validationMessageValidator
|
|
10610
10642
|
};
|