@dialpad/dialtone 9.4.0 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/CHANGELOG.json +1 -1
- package/dist/css/dialtone.css +5 -4
- package/dist/css/dialtone.min.css +1 -1
- package/dist/icons/svg/video-off.svg +1 -1
- package/dist/tokens/android/java/tokens-dark.kt +1 -1
- package/dist/tokens/android/java/tokens-light.kt +1 -1
- package/dist/tokens/android/res/values/colors-dark.xml +1 -1
- package/dist/tokens/android/res/values/colors-light.xml +1 -1
- package/dist/tokens/android/res/values/dimens.xml +1 -1
- package/dist/tokens/css/variables-dark.css +1 -1
- package/dist/tokens/css/variables-light.css +1 -1
- package/dist/tokens/ios/tokens-dark.swift +1 -1
- package/dist/tokens/ios/tokens-light.swift +1 -1
- package/dist/tokens/less/variables-dark.less +1 -1
- package/dist/tokens/less/variables-light.less +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +5 -5
- package/dist/vue2/dialtone-vue.js +1309 -1137
- package/dist/vue2/directives.js +1 -1
- package/dist/vue2/{emoji-BMxSCSLg.js → emoji-5ohx0_fO.js} +698 -155
- package/dist/vue2/emoji-npEzXEju.cjs +1 -0
- package/dist/vue2/emoji.cjs +1 -1
- package/dist/vue2/emoji.js +4 -4
- package/dist/vue2/{emoji_picker-sjGJ0HVH.js → emoji_picker-Xo-nGBB9.js} +2 -2
- package/dist/vue2/{emoji_picker-Qces1MZK.cjs → emoji_picker-h6ZjaaSm.cjs} +1 -1
- package/dist/vue2/{emoji_text_wrapper-Tni6PAOS.cjs → emoji_text_wrapper-KiKRUPpa.cjs} +1 -1
- package/dist/vue2/{emoji_text_wrapper-uHcCrlwz.js → emoji_text_wrapper-ySpZj2Hd.js} +2 -2
- package/dist/vue2/message_input.cjs +1 -1
- package/dist/vue2/message_input.js +4 -4
- package/dist/vue2/stack-n8PaTh0Q.cjs +2 -0
- package/dist/vue2/{stack-DRdhbSNl.js → stack-spMDaIoR.js} +272 -756
- package/dist/vue2/{tooltip-PDBwUvGD.js → tooltip-UOWkfPpb.js} +9 -9
- package/dist/vue2/types/components/button/button.vue.d.ts +1 -1
- package/dist/vue2/types/components/combobox/combobox.vue.d.ts +1 -1
- package/dist/vue2/types/components/hovercard/hovercard.vue.d.ts +3 -0
- package/dist/vue2/types/components/hovercard/hovercard.vue.d.ts.map +1 -0
- package/dist/vue2/types/components/hovercard/index.d.ts +2 -0
- package/dist/vue2/types/components/hovercard/index.d.ts.map +1 -0
- package/dist/vue2/types/components/hovercard/timer.d.ts +3 -0
- package/dist/vue2/types/components/hovercard/timer.d.ts.map +1 -0
- package/dist/vue2/types/components/icon/icon.vue.d.ts +2 -0
- package/dist/vue2/types/components/icon/icon.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/modal/modal.vue.d.ts +1 -1
- package/dist/vue2/types/components/popover/popover.vue.d.ts +2 -725
- package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/vue2/types/index.d.ts +1 -0
- package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
- package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/dialtone-vue.cjs +5 -5
- package/dist/vue3/dialtone-vue.js +1586 -1417
- package/dist/vue3/emoji-0CxcYOpi.cjs +1 -0
- package/dist/vue3/{emoji-w7mkBLzY.js → emoji-qCvCxNzD.js} +876 -343
- package/dist/vue3/emoji.cjs +1 -1
- package/dist/vue3/emoji.js +3 -3
- package/dist/vue3/{emoji_picker-nLVt8cFZ.js → emoji_picker-6nxcKkgd.js} +1 -1
- package/dist/vue3/{emoji_picker-4xiNkfJF.cjs → emoji_picker-PNpV-epL.cjs} +1 -1
- package/dist/vue3/{emoji_text_wrapper-mBDw9Xy3.js → emoji_text_wrapper-GV9Xmp4q.js} +1 -1
- package/dist/vue3/{emoji_text_wrapper-MBYdbA6A.cjs → emoji_text_wrapper-M6frYocA.cjs} +1 -1
- package/dist/vue3/message_input.cjs +1 -1
- package/dist/vue3/message_input.js +3 -3
- package/dist/vue3/{stack-FdfddyeK.js → stack-5arAdMmw.js} +291 -813
- package/dist/vue3/stack-9esIKlKa.cjs +2 -0
- package/dist/vue3/types/components/button/button.vue.d.ts +1 -1
- package/dist/vue3/types/components/combobox/combobox.vue.d.ts +1 -1
- package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts +1 -1
- package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/hovercard/timer.d.ts +3 -0
- package/dist/vue3/types/components/hovercard/timer.d.ts.map +1 -0
- package/dist/vue3/types/components/icon/icon.vue.d.ts +2 -0
- package/dist/vue3/types/components/icon/icon.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/modal/modal.vue.d.ts +1 -1
- package/dist/vue3/types/components/popover/popover.vue.d.ts +1 -803
- package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/vue3/types/index.d.ts +1 -0
- package/dist/vue3/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
- package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -1
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +2 -2
- package/package.json +1 -1
- package/dist/vue2/emoji-ZkNhBVKW.cjs +0 -1
- package/dist/vue2/stack-153kJjKj.cjs +0 -2
- package/dist/vue3/emoji-AfK6oyUP.cjs +0 -1
- package/dist/vue3/stack-w8PNJngT.cjs +0 -2
- package/dist/vue3/types/components/hovercard/hovercard_constants.d.ts +0 -1
- package/dist/vue3/types/components/hovercard/hovercard_constants.d.ts.map +0 -1
- package/dist/vue3/types/components/hovercard/hovercard_default_story.vue.d.ts +0 -3
- package/dist/vue3/types/components/hovercard/hovercard_default_story.vue.d.ts.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as a, g, a as
|
|
2
|
-
import { t as p, I as
|
|
1
|
+
import { n as a, g as _, a as k, u as L, b as x, B as D, c as R, i as N, d as F, e as V, f as g } from "./tooltip-UOWkfPpb.js";
|
|
2
|
+
import { t as H, w as p, I as B, L as q, x as M, y as I } from "./emoji-5ohx0_fO.js";
|
|
3
3
|
import u from "vue";
|
|
4
4
|
const r = {
|
|
5
5
|
BUSY: "busy",
|
|
6
6
|
AWAY: "away",
|
|
7
7
|
OFFLINE: "offline",
|
|
8
8
|
ACTIVE: "active"
|
|
9
|
-
},
|
|
9
|
+
}, j = [
|
|
10
10
|
r.BUSY,
|
|
11
11
|
r.AWAY,
|
|
12
12
|
r.OFFLINE,
|
|
13
13
|
r.ACTIVE
|
|
14
|
-
],
|
|
14
|
+
], z = {
|
|
15
15
|
name: "DtPresence",
|
|
16
16
|
props: {
|
|
17
17
|
/**
|
|
@@ -22,7 +22,7 @@ const r = {
|
|
|
22
22
|
presence: {
|
|
23
23
|
type: String,
|
|
24
24
|
default: r.ACTIVE,
|
|
25
|
-
validator: (t) =>
|
|
25
|
+
validator: (t) => j.includes(t)
|
|
26
26
|
},
|
|
27
27
|
/**
|
|
28
28
|
* Since Presence is a visual element, we need SRs to read out any state changes
|
|
@@ -35,7 +35,7 @@ const r = {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
var
|
|
38
|
+
var K = function() {
|
|
39
39
|
var e = this, s = e._self._c;
|
|
40
40
|
return s("div", { staticClass: "d-presence", attrs: { "data-qa": "dt-presence", role: "status", "aria-live": e.$attrs.ariaLive || "off" } }, [e.srText ? s("span", { staticClass: "sr-only", attrs: { "data-qa": "dt-presence-sr-text" } }, [e._v(e._s(e.srText) + " ")]) : e._e(), s("div", { staticClass: "d-presence__inner", class: {
|
|
41
41
|
"d-presence__inner--active": e.presence === "active",
|
|
@@ -43,42 +43,42 @@ var j = function() {
|
|
|
43
43
|
"d-presence__inner--busy": e.presence === "busy",
|
|
44
44
|
"d-presence__inner--offline": e.presence === "offline"
|
|
45
45
|
} })]);
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
}, W = [], G = /* @__PURE__ */ a(
|
|
47
|
+
z,
|
|
48
|
+
K,
|
|
49
|
+
W,
|
|
50
50
|
!1,
|
|
51
51
|
null,
|
|
52
52
|
null,
|
|
53
53
|
null,
|
|
54
54
|
null
|
|
55
55
|
);
|
|
56
|
-
const
|
|
56
|
+
const U = G.exports, f = {
|
|
57
57
|
xs: "d-avatar--xs",
|
|
58
58
|
sm: "d-avatar--sm",
|
|
59
59
|
md: "d-avatar--md",
|
|
60
60
|
lg: "d-avatar--lg",
|
|
61
61
|
xl: "d-avatar--xl"
|
|
62
|
-
},
|
|
62
|
+
}, Y = {
|
|
63
63
|
default: "",
|
|
64
64
|
icon: "d-avatar__icon",
|
|
65
65
|
initials: "d-avatar__initials"
|
|
66
|
-
},
|
|
66
|
+
}, Z = {
|
|
67
67
|
md: "d-avatar__presence--md",
|
|
68
68
|
lg: "d-avatar__presence--lg"
|
|
69
|
-
},
|
|
69
|
+
}, S = {
|
|
70
70
|
NONE: "",
|
|
71
71
|
BUSY: "busy",
|
|
72
72
|
AWAY: "away",
|
|
73
73
|
OFFLINE: "offline",
|
|
74
74
|
ACTIVE: "active"
|
|
75
|
-
},
|
|
75
|
+
}, X = {
|
|
76
76
|
xs: "100",
|
|
77
77
|
sm: "200",
|
|
78
78
|
md: "300",
|
|
79
79
|
lg: "500",
|
|
80
80
|
xl: "600"
|
|
81
|
-
},
|
|
81
|
+
}, J = [
|
|
82
82
|
"100",
|
|
83
83
|
"200",
|
|
84
84
|
"300",
|
|
@@ -97,558 +97,18 @@ const W = K.exports, f = {
|
|
|
97
97
|
"1600",
|
|
98
98
|
"1700",
|
|
99
99
|
"1800"
|
|
100
|
-
],
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"add-task",
|
|
104
|
-
"agent-assist",
|
|
105
|
-
"ai-notes",
|
|
106
|
-
"airplay",
|
|
107
|
-
"airtable",
|
|
108
|
-
"alarm-check",
|
|
109
|
-
"alarm-clock-off",
|
|
110
|
-
"alarm-minus",
|
|
111
|
-
"alarm-plus",
|
|
112
|
-
"album",
|
|
113
|
-
"alert-circle",
|
|
114
|
-
"alert-triangle",
|
|
115
|
-
"amex",
|
|
116
|
-
"app-store-badge",
|
|
117
|
-
"apple",
|
|
118
|
-
"archive",
|
|
119
|
-
"archive-restore",
|
|
120
|
-
"arrow-down",
|
|
121
|
-
"arrow-down-left",
|
|
122
|
-
"arrow-down-right",
|
|
123
|
-
"arrow-left",
|
|
124
|
-
"arrow-left-right",
|
|
125
|
-
"arrow-right",
|
|
126
|
-
"arrow-up",
|
|
127
|
-
"arrow-up-down",
|
|
128
|
-
"arrow-up-left",
|
|
129
|
-
"arrow-up-right",
|
|
130
|
-
"asana",
|
|
131
|
-
"asterisk",
|
|
132
|
-
"at-sign",
|
|
133
|
-
"ata-adapter",
|
|
134
|
-
"attestation",
|
|
135
|
-
"attestation-outline",
|
|
136
|
-
"axis-3d",
|
|
137
|
-
"bar-chart",
|
|
138
|
-
"bar-chart-2",
|
|
139
|
-
"bar-chart-3",
|
|
140
|
-
"bar-chart-4",
|
|
141
|
-
"bar-chart-horizontal",
|
|
142
|
-
"barge",
|
|
143
|
-
"baseline",
|
|
144
|
-
"battery",
|
|
145
|
-
"battery-charging",
|
|
146
|
-
"battery-full",
|
|
147
|
-
"battery-low",
|
|
148
|
-
"battery-medium",
|
|
149
|
-
"bell",
|
|
150
|
-
"bell-minus",
|
|
151
|
-
"bell-off",
|
|
152
|
-
"bell-plus",
|
|
153
|
-
"bell-ring",
|
|
154
|
-
"binary",
|
|
155
|
-
"bluetooth",
|
|
156
|
-
"bluetooth-connected",
|
|
157
|
-
"bluetooth-off",
|
|
158
|
-
"bluetooth-searching",
|
|
159
|
-
"blur-background",
|
|
160
|
-
"bold",
|
|
161
|
-
"book",
|
|
162
|
-
"book-open",
|
|
163
|
-
"bookmark",
|
|
164
|
-
"bookmark-minus",
|
|
165
|
-
"bookmark-plus",
|
|
166
|
-
"box",
|
|
167
|
-
"box-select",
|
|
168
|
-
"boxes",
|
|
169
|
-
"branch",
|
|
170
|
-
"brand-dialpad",
|
|
171
|
-
"brand-dialpad-meetings",
|
|
172
|
-
"briefcase",
|
|
173
|
-
"building",
|
|
174
|
-
"building-2",
|
|
175
|
-
"bullhorn",
|
|
176
|
-
"calculator",
|
|
177
|
-
"calendar",
|
|
178
|
-
"calendar-check",
|
|
179
|
-
"calendar-check-2",
|
|
180
|
-
"calendar-clock",
|
|
181
|
-
"calendar-days",
|
|
182
|
-
"calendar-heart",
|
|
183
|
-
"calendar-minus",
|
|
184
|
-
"calendar-off",
|
|
185
|
-
"calendar-plus",
|
|
186
|
-
"calendar-range",
|
|
187
|
-
"calendar-search",
|
|
188
|
-
"calendar-x",
|
|
189
|
-
"call-abandoned",
|
|
190
|
-
"call-merge",
|
|
191
|
-
"call-rejected",
|
|
192
|
-
"camera",
|
|
193
|
-
"camera-off",
|
|
194
|
-
"camera-tracking",
|
|
195
|
-
"cast",
|
|
196
|
-
"check",
|
|
197
|
-
"check-circle",
|
|
198
|
-
"check-circle-filled",
|
|
199
|
-
"chevron-down",
|
|
200
|
-
"chevron-first",
|
|
201
|
-
"chevron-last",
|
|
202
|
-
"chevron-left",
|
|
203
|
-
"chevron-right",
|
|
204
|
-
"chevron-up",
|
|
205
|
-
"chevrons-down",
|
|
206
|
-
"chevrons-down-up",
|
|
207
|
-
"chevrons-left",
|
|
208
|
-
"chevrons-left-right",
|
|
209
|
-
"chevrons-right",
|
|
210
|
-
"chevrons-right-left",
|
|
211
|
-
"chevrons-up",
|
|
212
|
-
"chevrons-up-down",
|
|
213
|
-
"circle-half-filled",
|
|
214
|
-
"circle-slashed",
|
|
215
|
-
"clipboard",
|
|
216
|
-
"clipboard-check",
|
|
217
|
-
"clipboard-copy",
|
|
218
|
-
"clipboard-edit",
|
|
219
|
-
"clipboard-list",
|
|
220
|
-
"clipboard-signature",
|
|
221
|
-
"clipboard-type",
|
|
222
|
-
"clipboard-x",
|
|
223
|
-
"clock",
|
|
224
|
-
"clock-1",
|
|
225
|
-
"clock-10",
|
|
226
|
-
"clock-11",
|
|
227
|
-
"clock-12",
|
|
228
|
-
"clock-2",
|
|
229
|
-
"clock-3",
|
|
230
|
-
"clock-4",
|
|
231
|
-
"clock-5",
|
|
232
|
-
"clock-6",
|
|
233
|
-
"clock-7",
|
|
234
|
-
"clock-8",
|
|
235
|
-
"clock-9",
|
|
236
|
-
"clockify",
|
|
237
|
-
"close",
|
|
238
|
-
"cloud",
|
|
239
|
-
"cloud-cog",
|
|
240
|
-
"cloud-drizzle",
|
|
241
|
-
"cloud-fog",
|
|
242
|
-
"cloud-hail",
|
|
243
|
-
"cloud-lightning",
|
|
244
|
-
"cloud-moon",
|
|
245
|
-
"cloud-moon-rain",
|
|
246
|
-
"cloud-off",
|
|
247
|
-
"cloud-rain",
|
|
248
|
-
"cloud-rain-wind",
|
|
249
|
-
"cloud-snow",
|
|
250
|
-
"cloud-sun",
|
|
251
|
-
"cloud-sun-rain",
|
|
252
|
-
"cloudy",
|
|
253
|
-
"coaching-hub",
|
|
254
|
-
"code",
|
|
255
|
-
"command",
|
|
256
|
-
"concierge-bell",
|
|
257
|
-
"contacts",
|
|
258
|
-
"copper-crm",
|
|
259
|
-
"copy",
|
|
260
|
-
"copyright",
|
|
261
|
-
"corner-down-left",
|
|
262
|
-
"corner-down-right",
|
|
263
|
-
"corner-left-down",
|
|
264
|
-
"corner-left-up",
|
|
265
|
-
"corner-right-down",
|
|
266
|
-
"corner-right-up",
|
|
267
|
-
"corner-up-left",
|
|
268
|
-
"corner-up-right",
|
|
269
|
-
"cpu",
|
|
270
|
-
"credit-card",
|
|
271
|
-
"dash",
|
|
272
|
-
"dect-base-station",
|
|
273
|
-
"dect-handset",
|
|
274
|
-
"delete",
|
|
275
|
-
"deskphone",
|
|
276
|
-
"dialbot",
|
|
277
|
-
"dialer",
|
|
278
|
-
"dialpad-ai",
|
|
279
|
-
"dialpad-ai-color",
|
|
280
|
-
"dialpad-logomark",
|
|
281
|
-
"digital-whisper",
|
|
282
|
-
"diners-club",
|
|
283
|
-
"discover",
|
|
284
|
-
"dissatisfied",
|
|
285
|
-
"double-check",
|
|
286
|
-
"download",
|
|
287
|
-
"download-cloud",
|
|
288
|
-
"dp-phone",
|
|
289
|
-
"edit",
|
|
290
|
-
"edit-2",
|
|
291
|
-
"empty",
|
|
292
|
-
"end-chat",
|
|
293
|
-
"equal",
|
|
294
|
-
"eraser",
|
|
295
|
-
"evernote",
|
|
296
|
-
"expand",
|
|
297
|
-
"expert-node",
|
|
298
|
-
"external-link",
|
|
299
|
-
"eye",
|
|
300
|
-
"eye-off",
|
|
301
|
-
"facebook",
|
|
302
|
-
"factory",
|
|
303
|
-
"fast-forward",
|
|
304
|
-
"file",
|
|
305
|
-
"file-audio",
|
|
306
|
-
"files",
|
|
307
|
-
"film",
|
|
308
|
-
"filter",
|
|
309
|
-
"fingerprint",
|
|
310
|
-
"flag",
|
|
311
|
-
"flag-off",
|
|
312
|
-
"flame",
|
|
313
|
-
"focus",
|
|
314
|
-
"folder",
|
|
315
|
-
"folder-tree",
|
|
316
|
-
"folders",
|
|
317
|
-
"food",
|
|
318
|
-
"form-input",
|
|
319
|
-
"forward",
|
|
320
|
-
"freshsales-crm",
|
|
321
|
-
"front",
|
|
322
|
-
"gamepad",
|
|
323
|
-
"gauge",
|
|
324
|
-
"gif-filled",
|
|
325
|
-
"gif-outline",
|
|
326
|
-
"giphy",
|
|
327
|
-
"globe-2",
|
|
328
|
-
"gmail",
|
|
329
|
-
"google-business-messaging",
|
|
330
|
-
"google-calendar",
|
|
331
|
-
"google-docs",
|
|
332
|
-
"google-drive",
|
|
333
|
-
"google-glyph",
|
|
334
|
-
"google-sheets",
|
|
335
|
-
"google-slides",
|
|
336
|
-
"greenhouse",
|
|
337
|
-
"grid",
|
|
338
|
-
"grip-horizontal",
|
|
339
|
-
"grip-vertical",
|
|
340
|
-
"hand",
|
|
341
|
-
"hard-drive",
|
|
342
|
-
"hash",
|
|
343
|
-
"hash-bold",
|
|
344
|
-
"haze",
|
|
345
|
-
"hd",
|
|
346
|
-
"headphones",
|
|
347
|
-
"hear",
|
|
348
|
-
"heart",
|
|
349
|
-
"help-circle",
|
|
350
|
-
"highfive",
|
|
351
|
-
"history",
|
|
352
|
-
"hold",
|
|
353
|
-
"home",
|
|
354
|
-
"hourglass",
|
|
355
|
-
"hubspot",
|
|
356
|
-
"image",
|
|
357
|
-
"import",
|
|
358
|
-
"inbox",
|
|
359
|
-
"indent",
|
|
360
|
-
"infinity",
|
|
361
|
-
"info",
|
|
362
|
-
"inspect",
|
|
363
|
-
"instagram",
|
|
364
|
-
"intercom",
|
|
365
|
-
"isolated-queries",
|
|
366
|
-
"italic",
|
|
367
|
-
"jcb",
|
|
368
|
-
"jira-service-desk",
|
|
369
|
-
"key",
|
|
370
|
-
"keyboard",
|
|
371
|
-
"keypad",
|
|
372
|
-
"languages",
|
|
373
|
-
"laptop-2",
|
|
374
|
-
"large-self-view",
|
|
375
|
-
"layout",
|
|
376
|
-
"layout-dashboard",
|
|
377
|
-
"layout-filmstrip",
|
|
378
|
-
"layout-grid",
|
|
379
|
-
"layout-template",
|
|
380
|
-
"library",
|
|
381
|
-
"life-buoy",
|
|
382
|
-
"lightbulb",
|
|
383
|
-
"lightbulb-off",
|
|
384
|
-
"lightning-bolt",
|
|
385
|
-
"line-chart",
|
|
386
|
-
"line-messenger",
|
|
387
|
-
"link-2",
|
|
388
|
-
"link-2-off",
|
|
389
|
-
"linkedin",
|
|
390
|
-
"list-add",
|
|
391
|
-
"list-bullet",
|
|
392
|
-
"list-checks",
|
|
393
|
-
"list-ordered",
|
|
394
|
-
"listen",
|
|
395
|
-
"listen",
|
|
396
|
-
"listening",
|
|
397
|
-
"live-queue",
|
|
398
|
-
"living-thing",
|
|
399
|
-
"loading",
|
|
400
|
-
"lock",
|
|
401
|
-
"lock-filled",
|
|
402
|
-
"log-in",
|
|
403
|
-
"log-out",
|
|
404
|
-
"maestro",
|
|
405
|
-
"mail",
|
|
406
|
-
"mail-open",
|
|
407
|
-
"mails",
|
|
408
|
-
"map",
|
|
409
|
-
"map-pin",
|
|
410
|
-
"mastercard",
|
|
411
|
-
"maximize",
|
|
412
|
-
"megaphone",
|
|
413
|
-
"megaphone-off",
|
|
414
|
-
"menu",
|
|
415
|
-
"message",
|
|
416
|
-
"messenger",
|
|
417
|
-
"mic",
|
|
418
|
-
"mic-off",
|
|
419
|
-
"microsoft",
|
|
420
|
-
"microsoft-dynamics-365",
|
|
421
|
-
"microsoft-teams",
|
|
422
|
-
"minimize",
|
|
423
|
-
"minimize-alt",
|
|
424
|
-
"minus-circle",
|
|
425
|
-
"miro",
|
|
426
|
-
"monday-com",
|
|
427
|
-
"monitor",
|
|
428
|
-
"monitor-off",
|
|
429
|
-
"monitor-speaker",
|
|
430
|
-
"moon",
|
|
431
|
-
"more-horizontal",
|
|
432
|
-
"more-vertical",
|
|
433
|
-
"mouse",
|
|
434
|
-
"multi-line-dept",
|
|
435
|
-
"music",
|
|
436
|
-
"music-off",
|
|
437
|
-
"network",
|
|
438
|
-
"neutral",
|
|
439
|
-
"newspaper",
|
|
440
|
-
"not-enough-queries",
|
|
441
|
-
"notes",
|
|
442
|
-
"object",
|
|
443
|
-
"office-365",
|
|
444
|
-
"option",
|
|
445
|
-
"package",
|
|
446
|
-
"paperclip",
|
|
447
|
-
"park",
|
|
448
|
-
"party-popper",
|
|
449
|
-
"past-conversations",
|
|
450
|
-
"pause",
|
|
451
|
-
"pause-circle",
|
|
452
|
-
"phone",
|
|
453
|
-
"phone-call",
|
|
454
|
-
"phone-forward",
|
|
455
|
-
"phone-hang-up",
|
|
456
|
-
"phone-hang-up",
|
|
457
|
-
"phone-hold",
|
|
458
|
-
"phone-incoming",
|
|
459
|
-
"phone-missed",
|
|
460
|
-
"phone-off",
|
|
461
|
-
"phone-outgoing",
|
|
462
|
-
"picture-in-picture",
|
|
463
|
-
"pie-chart",
|
|
464
|
-
"pin",
|
|
465
|
-
"pin-off",
|
|
466
|
-
"pipedrive",
|
|
467
|
-
"play",
|
|
468
|
-
"play-circle",
|
|
469
|
-
"play-filled",
|
|
470
|
-
"play-store-badge",
|
|
471
|
-
"plug",
|
|
472
|
-
"plus",
|
|
473
|
-
"plus-circle",
|
|
474
|
-
"power",
|
|
475
|
-
"print-fax",
|
|
476
|
-
"printer",
|
|
477
|
-
"puzzle",
|
|
478
|
-
"qr-code",
|
|
479
|
-
"queries",
|
|
480
|
-
"quote",
|
|
481
|
-
"record",
|
|
482
|
-
"record-filled",
|
|
483
|
-
"redo",
|
|
484
|
-
"refresh",
|
|
485
|
-
"repeat",
|
|
486
|
-
"reply",
|
|
487
|
-
"reply-all",
|
|
488
|
-
"rewind",
|
|
489
|
-
"rewind-15-sec",
|
|
490
|
-
"salesforce-glyph",
|
|
491
|
-
"salesforce-logo",
|
|
492
|
-
"satisfied",
|
|
493
|
-
"save",
|
|
494
|
-
"scan",
|
|
495
|
-
"scan-face",
|
|
496
|
-
"scissors",
|
|
497
|
-
"screen-share-off",
|
|
498
|
-
"scroll",
|
|
499
|
-
"search",
|
|
500
|
-
"send",
|
|
501
|
-
"servicenow",
|
|
502
|
-
"settings",
|
|
503
|
-
"share",
|
|
504
|
-
"share-2",
|
|
505
|
-
"share-screen",
|
|
506
|
-
"sheet",
|
|
507
|
-
"shield",
|
|
508
|
-
"shield-alert",
|
|
509
|
-
"shield-check",
|
|
510
|
-
"shield-close",
|
|
511
|
-
"shield-off",
|
|
512
|
-
"shortcuts",
|
|
513
|
-
"shuffle",
|
|
514
|
-
"sidebar",
|
|
515
|
-
"sidebar-close",
|
|
516
|
-
"sidebar-open",
|
|
517
|
-
"signal-best",
|
|
518
|
-
"signal-high",
|
|
519
|
-
"signal-low",
|
|
520
|
-
"signal-medium",
|
|
521
|
-
"signal-zero",
|
|
522
|
-
"siren",
|
|
523
|
-
"skip-15-sec",
|
|
524
|
-
"skip-back",
|
|
525
|
-
"skip-back-ten",
|
|
526
|
-
"skip-forward",
|
|
527
|
-
"skip-forward-ten",
|
|
528
|
-
"slack",
|
|
529
|
-
"slash",
|
|
530
|
-
"sliders",
|
|
531
|
-
"sliders-horizontal",
|
|
532
|
-
"small-self-view",
|
|
533
|
-
"smartphone",
|
|
534
|
-
"smartphone-charging",
|
|
535
|
-
"snapchat",
|
|
536
|
-
"snooze",
|
|
537
|
-
"snowflake",
|
|
538
|
-
"somewhat-dissatisfied",
|
|
539
|
-
"somewhat-satisfied",
|
|
540
|
-
"sort-asc",
|
|
541
|
-
"sort-desc",
|
|
542
|
-
"sparkle",
|
|
543
|
-
"speaker",
|
|
544
|
-
"star",
|
|
545
|
-
"star-filled",
|
|
546
|
-
"sticker",
|
|
547
|
-
"stop-circle",
|
|
548
|
-
"stop-filled",
|
|
549
|
-
"strikethrough",
|
|
550
|
-
"sun",
|
|
551
|
-
"sun-dim",
|
|
552
|
-
"sun-medium",
|
|
553
|
-
"sunrise",
|
|
554
|
-
"sunset",
|
|
555
|
-
"switch-to-cellular",
|
|
556
|
-
"switch-to-hd",
|
|
557
|
-
"table",
|
|
558
|
-
"tag",
|
|
559
|
-
"tags",
|
|
560
|
-
"takeover",
|
|
561
|
-
"task",
|
|
562
|
-
"telegram",
|
|
563
|
-
"text-cursor",
|
|
564
|
-
"text-cursor-input",
|
|
565
|
-
"thermometer",
|
|
566
|
-
"thermometer-snowflake",
|
|
567
|
-
"thermometer-sun",
|
|
568
|
-
"thread",
|
|
569
|
-
"threads",
|
|
570
|
-
"thumbs-down",
|
|
571
|
-
"thumbs-up",
|
|
572
|
-
"tiktok",
|
|
573
|
-
"timer",
|
|
574
|
-
"timer-off",
|
|
575
|
-
"timer-reset",
|
|
576
|
-
"toggl",
|
|
577
|
-
"too-many-queries",
|
|
578
|
-
"tools",
|
|
579
|
-
"toy-brick",
|
|
580
|
-
"transfer",
|
|
581
|
-
"transfer-webchat",
|
|
582
|
-
"transportation",
|
|
583
|
-
"trash",
|
|
584
|
-
"trending-down",
|
|
585
|
-
"trending-up",
|
|
586
|
-
"triangle",
|
|
587
|
-
"twitter",
|
|
588
|
-
"type",
|
|
589
|
-
"umbrella",
|
|
590
|
-
"underline",
|
|
591
|
-
"undo-2",
|
|
592
|
-
"union-pay",
|
|
593
|
-
"unlink-2",
|
|
594
|
-
"unlock",
|
|
595
|
-
"unlock-filled",
|
|
596
|
-
"unread",
|
|
597
|
-
"upload",
|
|
598
|
-
"upload-cloud",
|
|
599
|
-
"usb",
|
|
600
|
-
"user",
|
|
601
|
-
"user-check",
|
|
602
|
-
"user-minus",
|
|
603
|
-
"user-plus",
|
|
604
|
-
"user-rematch",
|
|
605
|
-
"user-remove",
|
|
606
|
-
"users",
|
|
607
|
-
"very-dissatisfied",
|
|
608
|
-
"very-satisfied",
|
|
609
|
-
"viber",
|
|
610
|
-
"video",
|
|
611
|
-
"video-off",
|
|
612
|
-
"video-settings",
|
|
613
|
-
"visa",
|
|
614
|
-
"voicemail",
|
|
615
|
-
"voicemail-drop",
|
|
616
|
-
"volume",
|
|
617
|
-
"volume-1",
|
|
618
|
-
"volume-2",
|
|
619
|
-
"volume-x",
|
|
620
|
-
"waveform",
|
|
621
|
-
"we-chat",
|
|
622
|
-
"webcam",
|
|
623
|
-
"webchat",
|
|
624
|
-
"whatsapp",
|
|
625
|
-
"whisper",
|
|
626
|
-
"wifi",
|
|
627
|
-
"wifi-off",
|
|
628
|
-
"wind",
|
|
629
|
-
"x-brand",
|
|
630
|
-
"x-circle",
|
|
631
|
-
"zap-off",
|
|
632
|
-
"zendesk",
|
|
633
|
-
"zoho",
|
|
634
|
-
"zoho-crm",
|
|
635
|
-
"zoho-desk",
|
|
636
|
-
"zoom",
|
|
637
|
-
"zoom-in",
|
|
638
|
-
"zoom-logo",
|
|
639
|
-
"zoom-out"
|
|
640
|
-
];
|
|
641
|
-
function J() {
|
|
642
|
-
return [void 0, ...X];
|
|
100
|
+
], E = (t) => t > 1;
|
|
101
|
+
function Q() {
|
|
102
|
+
return [void 0, ...H];
|
|
643
103
|
}
|
|
644
|
-
const
|
|
104
|
+
const ee = (t) => {
|
|
645
105
|
if (typeof t != "string" || !t.trim())
|
|
646
106
|
return "";
|
|
647
107
|
const e = t.trim().split(/\s+/g);
|
|
648
|
-
return e.length === 1 ? e.join("").substring(0, 2) : e.filter((s,
|
|
649
|
-
},
|
|
108
|
+
return e.length === 1 ? e.join("").substring(0, 2) : e.filter((s, n) => n === 0 || n === e.length - 1).map((s) => s.slice(0, 1).toUpperCase()).join("");
|
|
109
|
+
}, te = Q(), se = {
|
|
650
110
|
name: "DtAvatar",
|
|
651
|
-
components: { DtPresence:
|
|
111
|
+
components: { DtPresence: U, DtIcon: p },
|
|
652
112
|
inheritAttrs: !1,
|
|
653
113
|
props: {
|
|
654
114
|
/**
|
|
@@ -657,7 +117,7 @@ const Q = (t) => {
|
|
|
657
117
|
id: {
|
|
658
118
|
type: String,
|
|
659
119
|
default() {
|
|
660
|
-
return
|
|
120
|
+
return _();
|
|
661
121
|
}
|
|
662
122
|
},
|
|
663
123
|
/**
|
|
@@ -714,8 +174,8 @@ const Q = (t) => {
|
|
|
714
174
|
*/
|
|
715
175
|
presence: {
|
|
716
176
|
type: String,
|
|
717
|
-
default:
|
|
718
|
-
validator: (t) => Object.values(
|
|
177
|
+
default: S.NONE,
|
|
178
|
+
validator: (t) => Object.values(S).includes(t)
|
|
719
179
|
},
|
|
720
180
|
/**
|
|
721
181
|
* A set of props to be passed into the presence component.
|
|
@@ -732,7 +192,7 @@ const Q = (t) => {
|
|
|
732
192
|
group: {
|
|
733
193
|
type: Number,
|
|
734
194
|
default: void 0,
|
|
735
|
-
validator: (t) =>
|
|
195
|
+
validator: (t) => E(t)
|
|
736
196
|
},
|
|
737
197
|
/**
|
|
738
198
|
* The icon that overlays the avatar
|
|
@@ -776,7 +236,7 @@ const Q = (t) => {
|
|
|
776
236
|
iconName: {
|
|
777
237
|
type: String,
|
|
778
238
|
default: void 0,
|
|
779
|
-
validator: (t) =>
|
|
239
|
+
validator: (t) => te.includes(t)
|
|
780
240
|
},
|
|
781
241
|
/**
|
|
782
242
|
* Icon size to be displayed on the avatar
|
|
@@ -785,7 +245,7 @@ const Q = (t) => {
|
|
|
785
245
|
iconSize: {
|
|
786
246
|
type: String,
|
|
787
247
|
default: "",
|
|
788
|
-
validator: (t) => !t || Object.keys(
|
|
248
|
+
validator: (t) => !t || Object.keys(B).includes(t)
|
|
789
249
|
},
|
|
790
250
|
/**
|
|
791
251
|
* Full name used to extract initials and set alt attribute.
|
|
@@ -815,9 +275,9 @@ const Q = (t) => {
|
|
|
815
275
|
data() {
|
|
816
276
|
return {
|
|
817
277
|
AVATAR_SIZE_MODIFIERS: f,
|
|
818
|
-
AVATAR_KIND_MODIFIERS:
|
|
819
|
-
AVATAR_PRESENCE_SIZE_MODIFIERS:
|
|
820
|
-
AVATAR_ICON_SIZES:
|
|
278
|
+
AVATAR_KIND_MODIFIERS: Y,
|
|
279
|
+
AVATAR_PRESENCE_SIZE_MODIFIERS: Z,
|
|
280
|
+
AVATAR_ICON_SIZES: X,
|
|
821
281
|
imageLoadedSuccessfully: null,
|
|
822
282
|
formattedInitials: "",
|
|
823
283
|
initializing: !1
|
|
@@ -846,7 +306,7 @@ const Q = (t) => {
|
|
|
846
306
|
];
|
|
847
307
|
},
|
|
848
308
|
showGroup() {
|
|
849
|
-
return
|
|
309
|
+
return E(this.group);
|
|
850
310
|
},
|
|
851
311
|
formattedGroup() {
|
|
852
312
|
return this.group > 99 ? "99+" : this.group;
|
|
@@ -895,11 +355,11 @@ const Q = (t) => {
|
|
|
895
355
|
t && (t.addEventListener("load", () => this._loadedImageEventHandler(t), { once: !0 }), t.addEventListener("error", () => this._erroredImageEventHandler(t), { once: !0 }));
|
|
896
356
|
},
|
|
897
357
|
formatInitials() {
|
|
898
|
-
const t =
|
|
358
|
+
const t = ee(this.fullName);
|
|
899
359
|
this.validatedSize === "xs" ? this.formattedInitials = "" : this.validatedSize === "sm" ? this.formattedInitials = t[0] : this.formattedInitials = t;
|
|
900
360
|
},
|
|
901
361
|
getColor() {
|
|
902
|
-
return this.color ??
|
|
362
|
+
return this.color ?? k(J, this.seed);
|
|
903
363
|
},
|
|
904
364
|
_loadedImageEventHandler(t) {
|
|
905
365
|
this.imageLoadedSuccessfully = !0, t.classList.remove("d-d-none");
|
|
@@ -916,7 +376,7 @@ const Q = (t) => {
|
|
|
916
376
|
}
|
|
917
377
|
}
|
|
918
378
|
};
|
|
919
|
-
var
|
|
379
|
+
var ne = function() {
|
|
920
380
|
var e = this, s = e._self._c;
|
|
921
381
|
return s(e.clickable ? "button" : "div", { tag: "component", class: e.avatarClasses, attrs: { id: e.id, "data-qa": "dt-avatar", "aria-label": e.buttonAriaLabel }, on: { click: e.handleClick } }, [s("div", { ref: "canvas", class: [
|
|
922
382
|
e.canvasClass,
|
|
@@ -926,17 +386,17 @@ var se = function() {
|
|
|
926
386
|
"d-avatar__presence",
|
|
927
387
|
e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]
|
|
928
388
|
], attrs: { presence: e.presence, "data-qa": "dt-presence" } }, "dt-presence", e.presenceProps, !1)) : e._e()], 1);
|
|
929
|
-
},
|
|
930
|
-
te,
|
|
389
|
+
}, ae = [], ie = /* @__PURE__ */ a(
|
|
931
390
|
se,
|
|
932
|
-
|
|
391
|
+
ne,
|
|
392
|
+
ae,
|
|
933
393
|
!1,
|
|
934
394
|
null,
|
|
935
395
|
null,
|
|
936
396
|
null,
|
|
937
397
|
null
|
|
938
398
|
);
|
|
939
|
-
const
|
|
399
|
+
const it = ie.exports, oe = {
|
|
940
400
|
name: "DtLink",
|
|
941
401
|
props: {
|
|
942
402
|
/**
|
|
@@ -947,7 +407,7 @@ const at = ae.exports, ne = {
|
|
|
947
407
|
type: String,
|
|
948
408
|
default: "",
|
|
949
409
|
validator(t) {
|
|
950
|
-
return
|
|
410
|
+
return q.includes(t);
|
|
951
411
|
}
|
|
952
412
|
}
|
|
953
413
|
},
|
|
@@ -976,27 +436,27 @@ const at = ae.exports, ne = {
|
|
|
976
436
|
],
|
|
977
437
|
data() {
|
|
978
438
|
return {
|
|
979
|
-
LINK_KIND_MODIFIERS:
|
|
439
|
+
LINK_KIND_MODIFIERS: M
|
|
980
440
|
};
|
|
981
441
|
}
|
|
982
442
|
};
|
|
983
|
-
var
|
|
443
|
+
var re = function() {
|
|
984
444
|
var e = this, s = e._self._c;
|
|
985
445
|
return s("a", e._g({ class: [
|
|
986
446
|
"d-link",
|
|
987
447
|
e.LINK_KIND_MODIFIERS[e.kind]
|
|
988
448
|
], attrs: { "data-qa": "dt-link", href: "href" in e.$attrs ? e.$attrs.href : "javascript:void(0)" } }, e.$listeners), [e._t("default")], 2);
|
|
989
|
-
},
|
|
990
|
-
|
|
991
|
-
ie,
|
|
449
|
+
}, le = [], de = /* @__PURE__ */ a(
|
|
450
|
+
oe,
|
|
992
451
|
re,
|
|
452
|
+
le,
|
|
993
453
|
!1,
|
|
994
454
|
null,
|
|
995
455
|
null,
|
|
996
456
|
null,
|
|
997
457
|
null
|
|
998
458
|
);
|
|
999
|
-
const
|
|
459
|
+
const ot = de.exports, ce = {
|
|
1000
460
|
props: {
|
|
1001
461
|
/**
|
|
1002
462
|
* If true, a hidden close button is included for screen readers
|
|
@@ -1035,11 +495,11 @@ const nt = le.exports, ce = {
|
|
|
1035
495
|
a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`);
|
|
1036
496
|
}
|
|
1037
497
|
}
|
|
1038
|
-
},
|
|
498
|
+
}, ue = {
|
|
1039
499
|
name: "SrOnlyCloseButton",
|
|
1040
500
|
components: {
|
|
1041
501
|
DtIcon: p,
|
|
1042
|
-
DtButton:
|
|
502
|
+
DtButton: I
|
|
1043
503
|
},
|
|
1044
504
|
props: {
|
|
1045
505
|
/**
|
|
@@ -1058,22 +518,22 @@ const nt = le.exports, ce = {
|
|
|
1058
518
|
}
|
|
1059
519
|
}
|
|
1060
520
|
};
|
|
1061
|
-
var
|
|
521
|
+
var pe = function() {
|
|
1062
522
|
var e = this, s = e._self._c;
|
|
1063
|
-
return s("dt-button", { staticClass: "d-vi-visible-sr", attrs: { id: "sr-only-close-button", "data-qa": "dt-sr-only-close-button", "aria-label": e.visuallyHiddenCloseLabel }, on: { click: e.close, keydown: function(
|
|
1064
|
-
return !
|
|
523
|
+
return s("dt-button", { staticClass: "d-vi-visible-sr", attrs: { id: "sr-only-close-button", "data-qa": "dt-sr-only-close-button", "aria-label": e.visuallyHiddenCloseLabel }, on: { click: e.close, keydown: function(n) {
|
|
524
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "space", 32, n.key, [" ", "Spacebar"]) ? null : (n.preventDefault(), n.stopPropagation(), e.close.apply(null, arguments));
|
|
1065
525
|
} } }, [s("dt-icon", { attrs: { name: "close" } })], 1);
|
|
1066
|
-
},
|
|
1067
|
-
de,
|
|
526
|
+
}, fe = [], he = /* @__PURE__ */ a(
|
|
1068
527
|
ue,
|
|
1069
528
|
pe,
|
|
529
|
+
fe,
|
|
1070
530
|
!1,
|
|
1071
531
|
null,
|
|
1072
532
|
null,
|
|
1073
533
|
null,
|
|
1074
534
|
null
|
|
1075
535
|
);
|
|
1076
|
-
const
|
|
536
|
+
const me = he.exports, A = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', _e = `${A}:not([tabindex="-1"])`, ve = "button,[href],input,select,textarea,details,[tabindex]", ye = {
|
|
1077
537
|
methods: {
|
|
1078
538
|
/**
|
|
1079
539
|
* get the first focusable element in your component, includes tabindex="-1".
|
|
@@ -1127,9 +587,9 @@ const he = fe.exports, O = ':not(:disabled):not([aria-disabled="true"]):not([rol
|
|
|
1127
587
|
* @param {bool} includeNegativeTabIndex - will include tabindex="-1" in the list of focusable elements.
|
|
1128
588
|
*/
|
|
1129
589
|
_getFocusableElements(t = this.$el, e = !1) {
|
|
1130
|
-
return t ? [...t.querySelectorAll(
|
|
1131
|
-
const
|
|
1132
|
-
return
|
|
590
|
+
return t ? [...t.querySelectorAll(ve)].filter((n) => {
|
|
591
|
+
const i = window.getComputedStyle(n);
|
|
592
|
+
return i.getPropertyValue("display") !== "none" && i.getPropertyValue("visibility") !== "hidden" && n.matches(e ? A : _e);
|
|
1133
593
|
}) : [];
|
|
1134
594
|
},
|
|
1135
595
|
/**
|
|
@@ -1141,23 +601,23 @@ const he = fe.exports, O = ':not(:disabled):not([aria-disabled="true"]):not([rol
|
|
|
1141
601
|
focusTrappedTabPress(t, e) {
|
|
1142
602
|
if (!(t.key === "Tab"))
|
|
1143
603
|
return;
|
|
1144
|
-
const
|
|
1145
|
-
if (!
|
|
604
|
+
const n = this._getFocusableElements(e);
|
|
605
|
+
if (!n.length) {
|
|
1146
606
|
t.preventDefault();
|
|
1147
607
|
return;
|
|
1148
608
|
}
|
|
1149
|
-
const
|
|
1150
|
-
t.shiftKey ? document.activeElement ===
|
|
609
|
+
const i = this._getFirstFocusElement(n), y = n[n.length - 1];
|
|
610
|
+
t.shiftKey ? document.activeElement === i && (y.focus(), t.preventDefault()) : document.activeElement === y && (i.focus(), t.preventDefault());
|
|
1151
611
|
}
|
|
1152
612
|
}
|
|
1153
613
|
}, h = {
|
|
1154
614
|
DEFAULT: "default",
|
|
1155
615
|
CUSTOM: "custom"
|
|
1156
|
-
},
|
|
616
|
+
}, d = {
|
|
1157
617
|
ARROW_KEYS: "arrow-keys",
|
|
1158
618
|
TAB: "tab",
|
|
1159
619
|
NONE: "none"
|
|
1160
|
-
},
|
|
620
|
+
}, ge = {
|
|
1161
621
|
name: "DtItemLayout",
|
|
1162
622
|
props: {
|
|
1163
623
|
/**
|
|
@@ -1169,23 +629,23 @@ const he = fe.exports, O = ':not(:disabled):not([aria-disabled="true"]):not([rol
|
|
|
1169
629
|
}
|
|
1170
630
|
}
|
|
1171
631
|
};
|
|
1172
|
-
var
|
|
632
|
+
var Se = function() {
|
|
1173
633
|
var e = this, s = e._self._c;
|
|
1174
634
|
return s(e.as, { tag: "component", staticClass: "dt-item-layout" }, [e.$slots.left ? s("section", { staticClass: "dt-item-layout--left", attrs: { "data-qa": "dt-item-layout-left-wrapper" } }, [e._t("left")], 2) : e._e(), s("section", { staticClass: "dt-item-layout--content", attrs: { "data-qa": "dt-item-layout-content-wrapper" } }, [e.$slots.default ? s("div", { staticClass: "dt-item-layout--title", attrs: { "data-qa": "dt-item-layout-title-wrapper" } }, [e._t("default")], 2) : e._e(), e.$slots.subtitle ? s("div", { class: ["dt-item-layout--subtitle", { "dt-item-layout--subtitle--with-title": e.$slots.default }], attrs: { "data-qa": "dt-item-layout-subtitle-wrapper" } }, [e._t("subtitle")], 2) : e._e(), e.$slots.bottom ? s("div", { staticClass: "dt-item-layout--bottom", attrs: { "data-qa": "dt-item-layout-bottom-wrapper" } }, [e._t("bottom")], 2) : e._e()]), e.$slots.right ? s("section", { staticClass: "dt-item-layout--right", attrs: { "data-qa": "dt-item-layout-right-wrapper" } }, [e._t("right")], 2) : e._e(), e.$slots.selected ? s("section", { staticClass: "dt-item-layout--selected", attrs: { "data-qa": "dt-item-layout-selected-wrapper" } }, [e._t("selected")], 2) : e._e()]);
|
|
1175
|
-
},
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
635
|
+
}, Ee = [], be = /* @__PURE__ */ a(
|
|
636
|
+
ge,
|
|
637
|
+
Se,
|
|
638
|
+
Ee,
|
|
1179
639
|
!1,
|
|
1180
640
|
null,
|
|
1181
641
|
"411cb81e",
|
|
1182
642
|
null,
|
|
1183
643
|
null
|
|
1184
644
|
);
|
|
1185
|
-
const
|
|
645
|
+
const b = be.exports, Ce = {
|
|
1186
646
|
name: "DtListItem",
|
|
1187
647
|
components: {
|
|
1188
|
-
DtItemLayout:
|
|
648
|
+
DtItemLayout: b,
|
|
1189
649
|
DtIcon: p
|
|
1190
650
|
},
|
|
1191
651
|
/**
|
|
@@ -1201,7 +661,7 @@ const S = Se.exports, Ee = {
|
|
|
1201
661
|
id: {
|
|
1202
662
|
type: String,
|
|
1203
663
|
default() {
|
|
1204
|
-
return
|
|
664
|
+
return L.getUniqueString();
|
|
1205
665
|
}
|
|
1206
666
|
},
|
|
1207
667
|
/**
|
|
@@ -1236,8 +696,8 @@ const S = Se.exports, Ee = {
|
|
|
1236
696
|
*/
|
|
1237
697
|
navigationType: {
|
|
1238
698
|
type: String,
|
|
1239
|
-
default:
|
|
1240
|
-
validator: (t) => Object.values(
|
|
699
|
+
default: d.NONE,
|
|
700
|
+
validator: (t) => Object.values(d).includes(t)
|
|
1241
701
|
},
|
|
1242
702
|
/**
|
|
1243
703
|
* Applies selected styles to the list item
|
|
@@ -1287,7 +747,7 @@ const S = Se.exports, Ee = {
|
|
|
1287
747
|
listItemType() {
|
|
1288
748
|
switch (this.type) {
|
|
1289
749
|
case h.DEFAULT:
|
|
1290
|
-
return
|
|
750
|
+
return b;
|
|
1291
751
|
default:
|
|
1292
752
|
return null;
|
|
1293
753
|
}
|
|
@@ -1314,13 +774,13 @@ const S = Se.exports, Ee = {
|
|
|
1314
774
|
return this.isHoverable ? this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted : !1;
|
|
1315
775
|
},
|
|
1316
776
|
isFocusable() {
|
|
1317
|
-
return this.navigationType ===
|
|
777
|
+
return this.navigationType === d.TAB;
|
|
1318
778
|
},
|
|
1319
779
|
/**
|
|
1320
780
|
* Whether to apply hover styles.
|
|
1321
781
|
*/
|
|
1322
782
|
isHoverable() {
|
|
1323
|
-
return this.navigationType !==
|
|
783
|
+
return this.navigationType !== d.NONE;
|
|
1324
784
|
}
|
|
1325
785
|
},
|
|
1326
786
|
methods: {
|
|
@@ -1335,69 +795,69 @@ const S = Se.exports, Ee = {
|
|
|
1335
795
|
}
|
|
1336
796
|
}
|
|
1337
797
|
};
|
|
1338
|
-
var
|
|
798
|
+
var Oe = function() {
|
|
1339
799
|
var e = this, s = e._self._c;
|
|
1340
800
|
return s(e.elementType, e._g({ tag: "component", class: ["dt-list-item", {
|
|
1341
801
|
"dt-list-item--focusable": e.isFocusable,
|
|
1342
802
|
"dt-list-item--highlighted": e.isHighlighted,
|
|
1343
803
|
"dt-list-item--static": !e.isHoverable
|
|
1344
|
-
}], attrs: { id: e.id, tabindex: e.isFocusable ? 0 : -1, role: e.role, "aria-selected": e.isHighlighted } }, e.listItemListeners), [e.listItemType ? s(e.listItemType, { tag: "component", scopedSlots: e._u([e._l(e.$slots, function(
|
|
1345
|
-
return { key:
|
|
1346
|
-
return [e._t(
|
|
804
|
+
}], attrs: { id: e.id, tabindex: e.isFocusable ? 0 : -1, role: e.role, "aria-selected": e.isHighlighted } }, e.listItemListeners), [e.listItemType ? s(e.listItemType, { tag: "component", scopedSlots: e._u([e._l(e.$slots, function(n, i) {
|
|
805
|
+
return { key: i, fn: function() {
|
|
806
|
+
return [e._t(i)];
|
|
1347
807
|
}, proxy: !0 };
|
|
1348
808
|
}), e.selected ? { key: "selected", fn: function() {
|
|
1349
809
|
return [s("dt-icon", { staticClass: "dt-list-item--selected-icon", attrs: { name: "check", size: "400" } })];
|
|
1350
810
|
}, proxy: !0 } : null], null, !0) }) : e._t("default")], 2);
|
|
1351
|
-
},
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
811
|
+
}, Te = [], Ie = /* @__PURE__ */ a(
|
|
812
|
+
Ce,
|
|
813
|
+
Oe,
|
|
814
|
+
Te,
|
|
1355
815
|
!1,
|
|
1356
816
|
null,
|
|
1357
817
|
null,
|
|
1358
818
|
null,
|
|
1359
819
|
null
|
|
1360
820
|
);
|
|
1361
|
-
const
|
|
821
|
+
const rt = Ie.exports, o = {
|
|
1362
822
|
default: "column",
|
|
1363
823
|
column: "column",
|
|
1364
824
|
row: "row",
|
|
1365
825
|
"row-reverse": "row-reverse",
|
|
1366
826
|
"column-reverse": "column-reverse"
|
|
1367
|
-
},
|
|
827
|
+
}, w = ["sm", "md", "lg", "xl"], v = ["0", "100", "200", "300", "400", "500", "600"], C = {
|
|
1368
828
|
none: void 0,
|
|
1369
829
|
small: "d-p4",
|
|
1370
830
|
medium: "d-p8",
|
|
1371
831
|
large: "d-p16"
|
|
1372
|
-
},
|
|
832
|
+
}, Ae = {
|
|
1373
833
|
none: void 0,
|
|
1374
834
|
small: "d-pl4",
|
|
1375
835
|
medium: "d-pl8",
|
|
1376
836
|
large: "d-pl16"
|
|
1377
|
-
},
|
|
1378
|
-
|
|
1379
|
-
],
|
|
1380
|
-
...
|
|
837
|
+
}, we = ["dialog", "menu", "listbox", "tree", "grid"], $e = ["", "anchor"], Pe = ["none", "dialog", "first"], ke = ["parent", "body"], Le = [
|
|
838
|
+
...x
|
|
839
|
+
], lt = [
|
|
840
|
+
...D
|
|
1381
841
|
];
|
|
1382
|
-
let
|
|
842
|
+
let xe = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", De = (t = 21) => {
|
|
1383
843
|
let e = "", s = t;
|
|
1384
844
|
for (; s--; )
|
|
1385
|
-
e +=
|
|
845
|
+
e += xe[Math.random() * 64 | 0];
|
|
1386
846
|
return e;
|
|
1387
847
|
};
|
|
1388
|
-
function
|
|
848
|
+
function c(t) {
|
|
1389
849
|
"@babel/helpers - typeof";
|
|
1390
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
850
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? c = function(e) {
|
|
1391
851
|
return typeof e;
|
|
1392
|
-
} :
|
|
852
|
+
} : c = function(e) {
|
|
1393
853
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1394
|
-
},
|
|
854
|
+
}, c(t);
|
|
1395
855
|
}
|
|
1396
|
-
var
|
|
1397
|
-
selector: "vue-portal-target-".concat(
|
|
1398
|
-
},
|
|
1399
|
-
return
|
|
1400
|
-
}, m = typeof window < "u" && (typeof document > "u" ? "undefined" :
|
|
856
|
+
var $ = {
|
|
857
|
+
selector: "vue-portal-target-".concat(De())
|
|
858
|
+
}, Re = function(e) {
|
|
859
|
+
return $.selector = e;
|
|
860
|
+
}, m = typeof window < "u" && (typeof document > "u" ? "undefined" : c(document)) !== void 0, Ne = u.extend({
|
|
1401
861
|
// as an abstract component, it doesn't appear in
|
|
1402
862
|
// the $parent chain of components.
|
|
1403
863
|
// which means the next parent of any component rendered inside of this oen
|
|
@@ -1419,7 +879,7 @@ var T = {
|
|
|
1419
879
|
var e = this.$el;
|
|
1420
880
|
e && e.parentNode.removeChild(e);
|
|
1421
881
|
}
|
|
1422
|
-
}),
|
|
882
|
+
}), P = u.extend({
|
|
1423
883
|
name: "VueSimplePortal",
|
|
1424
884
|
props: {
|
|
1425
885
|
disabled: {
|
|
@@ -1431,7 +891,7 @@ var T = {
|
|
|
1431
891
|
selector: {
|
|
1432
892
|
type: String,
|
|
1433
893
|
default: function() {
|
|
1434
|
-
return "#".concat(
|
|
894
|
+
return "#".concat($.selector);
|
|
1435
895
|
}
|
|
1436
896
|
},
|
|
1437
897
|
tag: {
|
|
@@ -1481,7 +941,7 @@ var T = {
|
|
|
1481
941
|
mount: function() {
|
|
1482
942
|
if (m) {
|
|
1483
943
|
var e = this.getTargetEl(), s = document.createElement("DIV");
|
|
1484
|
-
this.prepend && e.firstChild ? e.insertBefore(s, e.firstChild) : e.appendChild(s), this.container = new
|
|
944
|
+
this.prepend && e.firstChild ? e.insertBefore(s, e.firstChild) : e.appendChild(s), this.container = new Ne({
|
|
1485
945
|
el: s,
|
|
1486
946
|
parent: this,
|
|
1487
947
|
propsData: {
|
|
@@ -1496,15 +956,15 @@ var T = {
|
|
|
1496
956
|
}
|
|
1497
957
|
}
|
|
1498
958
|
});
|
|
1499
|
-
function
|
|
959
|
+
function Fe(t) {
|
|
1500
960
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1501
|
-
t.component(e.name || "portal",
|
|
961
|
+
t.component(e.name || "portal", P), e.defaultSelector && Re(e.defaultSelector);
|
|
1502
962
|
}
|
|
1503
|
-
typeof window < "u" && window.Vue && window.Vue === u && u.use(
|
|
1504
|
-
const
|
|
963
|
+
typeof window < "u" && window.Vue && window.Vue === u && u.use(Fe);
|
|
964
|
+
const Ve = {
|
|
1505
965
|
name: "PopoverHeaderFooter",
|
|
1506
966
|
components: {
|
|
1507
|
-
DtButton:
|
|
967
|
+
DtButton: I,
|
|
1508
968
|
DtIcon: p
|
|
1509
969
|
},
|
|
1510
970
|
props: {
|
|
@@ -1557,7 +1017,7 @@ const Fe = {
|
|
|
1557
1017
|
}
|
|
1558
1018
|
}
|
|
1559
1019
|
};
|
|
1560
|
-
var
|
|
1020
|
+
var He = function() {
|
|
1561
1021
|
var e = this, s = e._self._c;
|
|
1562
1022
|
return s("div", { class: {
|
|
1563
1023
|
"d-popover__header": e.type === "header",
|
|
@@ -1568,31 +1028,31 @@ var Ve = function() {
|
|
|
1568
1028
|
}, e.contentClass], attrs: { "data-qa": "dt-popover-header-footer-content" } }, [e._t("content")], 2) : e._e(), e.showCloseButton ? s("dt-button", e._b({ ref: "popover__close-button", class: {
|
|
1569
1029
|
"d-popover__header__close-button": e.type === "header",
|
|
1570
1030
|
"d-popover__footer__close-button": e.type === "footer"
|
|
1571
|
-
}, attrs: { "data-qa": "dt-popover-close", importance: "outlined", kind: "muted", circle: "" }, on: { click: function(
|
|
1031
|
+
}, attrs: { "data-qa": "dt-popover-close", importance: "outlined", kind: "muted", circle: "" }, on: { click: function(n) {
|
|
1572
1032
|
return e.$emit("close");
|
|
1573
1033
|
} }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
1574
1034
|
return [s("dt-icon", { attrs: { name: "close", size: "300" } })];
|
|
1575
1035
|
}, proxy: !0 }], null, !1, 2538694920) }, "dt-button", e.closeButtonProps, !1)) : e._e()], 1);
|
|
1576
|
-
},
|
|
1577
|
-
Fe,
|
|
1036
|
+
}, Be = [], qe = /* @__PURE__ */ a(
|
|
1578
1037
|
Ve,
|
|
1579
|
-
|
|
1038
|
+
He,
|
|
1039
|
+
Be,
|
|
1580
1040
|
!1,
|
|
1581
1041
|
null,
|
|
1582
1042
|
null,
|
|
1583
1043
|
null,
|
|
1584
1044
|
null
|
|
1585
1045
|
);
|
|
1586
|
-
const
|
|
1046
|
+
const Me = qe.exports, je = {
|
|
1587
1047
|
name: "DtPopover",
|
|
1588
1048
|
/********************
|
|
1589
1049
|
* CHILD COMPONENTS *
|
|
1590
1050
|
********************/
|
|
1591
1051
|
components: {
|
|
1592
|
-
SrOnlyCloseButton:
|
|
1593
|
-
DtLazyShow:
|
|
1594
|
-
PopoverHeaderFooter:
|
|
1595
|
-
Portal:
|
|
1052
|
+
SrOnlyCloseButton: me,
|
|
1053
|
+
DtLazyShow: R,
|
|
1054
|
+
PopoverHeaderFooter: Me,
|
|
1055
|
+
Portal: P
|
|
1596
1056
|
},
|
|
1597
1057
|
mixins: [ye, ce],
|
|
1598
1058
|
props: {
|
|
@@ -1637,7 +1097,7 @@ const Be = He.exports, qe = {
|
|
|
1637
1097
|
role: {
|
|
1638
1098
|
type: String,
|
|
1639
1099
|
default: "dialog",
|
|
1640
|
-
validator: (t) =>
|
|
1100
|
+
validator: (t) => we.includes(t)
|
|
1641
1101
|
},
|
|
1642
1102
|
/**
|
|
1643
1103
|
* ID of the element that serves as the label for the popover content.
|
|
@@ -1673,7 +1133,7 @@ const Be = He.exports, qe = {
|
|
|
1673
1133
|
padding: {
|
|
1674
1134
|
type: String,
|
|
1675
1135
|
default: "large",
|
|
1676
|
-
validator: (t) => Object.keys(
|
|
1136
|
+
validator: (t) => Object.keys(C).some((e) => e === t)
|
|
1677
1137
|
},
|
|
1678
1138
|
/**
|
|
1679
1139
|
* Additional class name for the content wrapper element.
|
|
@@ -1690,7 +1150,7 @@ const Be = He.exports, qe = {
|
|
|
1690
1150
|
contentWidth: {
|
|
1691
1151
|
type: String,
|
|
1692
1152
|
default: "",
|
|
1693
|
-
validator: (t) =>
|
|
1153
|
+
validator: (t) => $e.includes(t)
|
|
1694
1154
|
},
|
|
1695
1155
|
/**
|
|
1696
1156
|
* Tabindex value for the content. Passing null, no tabindex attribute will be set.
|
|
@@ -1713,7 +1173,7 @@ const Be = He.exports, qe = {
|
|
|
1713
1173
|
id: {
|
|
1714
1174
|
type: String,
|
|
1715
1175
|
default() {
|
|
1716
|
-
return
|
|
1176
|
+
return _();
|
|
1717
1177
|
}
|
|
1718
1178
|
},
|
|
1719
1179
|
/**
|
|
@@ -1817,7 +1277,7 @@ const Be = He.exports, qe = {
|
|
|
1817
1277
|
sticky: {
|
|
1818
1278
|
type: [Boolean, String],
|
|
1819
1279
|
default: !1,
|
|
1820
|
-
validator: (t) =>
|
|
1280
|
+
validator: (t) => Le.includes(t)
|
|
1821
1281
|
},
|
|
1822
1282
|
/**
|
|
1823
1283
|
* Determines maximum height for the popover before overflow.
|
|
@@ -1875,7 +1335,7 @@ const Be = He.exports, qe = {
|
|
|
1875
1335
|
initialFocusElement: {
|
|
1876
1336
|
type: [String, HTMLElement],
|
|
1877
1337
|
default: "first",
|
|
1878
|
-
validator: (t) =>
|
|
1338
|
+
validator: (t) => Pe.includes(t) || t instanceof HTMLElement || t.startsWith("#")
|
|
1879
1339
|
},
|
|
1880
1340
|
/**
|
|
1881
1341
|
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
@@ -1894,7 +1354,26 @@ const Be = He.exports, qe = {
|
|
|
1894
1354
|
appendTo: {
|
|
1895
1355
|
type: [HTMLElement, String],
|
|
1896
1356
|
default: "body",
|
|
1897
|
-
validator: (t) =>
|
|
1357
|
+
validator: (t) => ke.includes(t) || t instanceof HTMLElement
|
|
1358
|
+
},
|
|
1359
|
+
/**
|
|
1360
|
+
* Set this prop to true and popover component will support hovercard behaviour
|
|
1361
|
+
* It will open on mouseenter and close on mouseleave with timer delay of 300ms
|
|
1362
|
+
*/
|
|
1363
|
+
hovercard: {
|
|
1364
|
+
type: Boolean,
|
|
1365
|
+
default: !1
|
|
1366
|
+
},
|
|
1367
|
+
/**
|
|
1368
|
+
* The timer is used only when the hovercard prop is true.
|
|
1369
|
+
* It defines the delays when opening several hovercards.
|
|
1370
|
+
* It must have the keys: enter, leave and current.
|
|
1371
|
+
* If null, the default delay of 300ms will be used.
|
|
1372
|
+
*/
|
|
1373
|
+
timer: {
|
|
1374
|
+
type: [Object, null],
|
|
1375
|
+
default: null,
|
|
1376
|
+
validator: (t) => t === null || t.enter && t.leave && Object.keys(t).includes("current")
|
|
1898
1377
|
}
|
|
1899
1378
|
},
|
|
1900
1379
|
emits: [
|
|
@@ -1915,13 +1394,15 @@ const Be = He.exports, qe = {
|
|
|
1915
1394
|
],
|
|
1916
1395
|
data() {
|
|
1917
1396
|
return {
|
|
1918
|
-
POPOVER_PADDING_CLASSES:
|
|
1919
|
-
POPOVER_HEADER_FOOTER_PADDING_CLASSES:
|
|
1397
|
+
POPOVER_PADDING_CLASSES: C,
|
|
1398
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES: Ae,
|
|
1920
1399
|
intersectionObserver: null,
|
|
1921
1400
|
isOutsideViewport: !1,
|
|
1922
1401
|
isOpen: !1,
|
|
1923
1402
|
anchorEl: null,
|
|
1924
|
-
popoverContentEl: null
|
|
1403
|
+
popoverContentEl: null,
|
|
1404
|
+
inTimer: null,
|
|
1405
|
+
outTimer: null
|
|
1925
1406
|
};
|
|
1926
1407
|
},
|
|
1927
1408
|
computed: {
|
|
@@ -1943,7 +1424,11 @@ const Be = He.exports, qe = {
|
|
|
1943
1424
|
return this.isOutsideViewport && this.modal ? "calc(100vh - var(--dt-space-300))" : this.maxHeight;
|
|
1944
1425
|
},
|
|
1945
1426
|
labelledBy() {
|
|
1946
|
-
return this.ariaLabelledby || !this.ariaLabel &&
|
|
1427
|
+
return this.ariaLabelledby || !this.ariaLabel && _("DtPopover__anchor");
|
|
1428
|
+
},
|
|
1429
|
+
currentHovercard() {
|
|
1430
|
+
var t;
|
|
1431
|
+
return (t = this.timer) == null ? void 0 : t.current;
|
|
1947
1432
|
}
|
|
1948
1433
|
},
|
|
1949
1434
|
watch: {
|
|
@@ -1998,6 +1483,9 @@ const Be = He.exports, qe = {
|
|
|
1998
1483
|
},
|
|
1999
1484
|
isOpen(t, e) {
|
|
2000
1485
|
t ? (this.initTippyInstance(), this.tip.show()) : !t && e !== t && (this.removeEventListeners(), this.tip.hide());
|
|
1486
|
+
},
|
|
1487
|
+
currentHovercard() {
|
|
1488
|
+
this.hovercard && this.timer && (this.currentHovercard === this.id ? this.isOpen = !0 : this.isOpen = !1);
|
|
2001
1489
|
}
|
|
2002
1490
|
},
|
|
2003
1491
|
mounted() {
|
|
@@ -2013,15 +1501,15 @@ const Be = He.exports, qe = {
|
|
|
2013
1501
|
******************/
|
|
2014
1502
|
methods: {
|
|
2015
1503
|
hasIntersectedViewport(t) {
|
|
2016
|
-
var
|
|
2017
|
-
const e = (
|
|
1504
|
+
var n;
|
|
1505
|
+
const e = (n = t == null ? void 0 : t[0]) == null ? void 0 : n.target;
|
|
2018
1506
|
if (!e)
|
|
2019
1507
|
return;
|
|
2020
|
-
const s =
|
|
1508
|
+
const s = N(e);
|
|
2021
1509
|
this.isOutsideViewport = s.bottom || s.top;
|
|
2022
1510
|
},
|
|
2023
1511
|
popperOptions() {
|
|
2024
|
-
return
|
|
1512
|
+
return F({
|
|
2025
1513
|
fallbackPlacements: this.fallbackPlacements,
|
|
2026
1514
|
tether: this.tether,
|
|
2027
1515
|
hasHideModifierEnabled: !0
|
|
@@ -2038,7 +1526,7 @@ const Be = He.exports, qe = {
|
|
|
2038
1526
|
},
|
|
2039
1527
|
defaultToggleOpen(t) {
|
|
2040
1528
|
var e, s;
|
|
2041
|
-
this.openOnContext || (this.open ?? ((e = this.anchorEl) != null && e.contains(t.target) && !((s = this.anchorEl) != null && s.disabled) && this.toggleOpen()));
|
|
1529
|
+
this.hovercard || this.openOnContext || (this.open ?? ((e = this.anchorEl) != null && e.contains(t.target) && !((s = this.anchorEl) != null && s.disabled) && this.toggleOpen()));
|
|
2042
1530
|
},
|
|
2043
1531
|
async onContext(t) {
|
|
2044
1532
|
this.openOnContext && (t.preventDefault(), this.isOpen = !0, await this.$nextTick(), this.tip.setProps({
|
|
@@ -2107,9 +1595,9 @@ const Be = He.exports, qe = {
|
|
|
2107
1595
|
this.initialFocusElement === "dialog" && this.$refs.content.$el.focus(), this.initialFocusElement.startsWith("#") && this.focusInitialElementById(), this.initialFocusElement === "first" && this.focusFirstElementIfNeeded(this.$refs.popover__content), this.initialFocusElement instanceof HTMLElement && this.initialFocusElement.focus();
|
|
2108
1596
|
},
|
|
2109
1597
|
focusInitialElementById() {
|
|
2110
|
-
var e, s,
|
|
1598
|
+
var e, s, n;
|
|
2111
1599
|
const t = (s = (e = this.$refs.content) == null ? void 0 : e.$el) == null ? void 0 : s.querySelector(this.initialFocusElement);
|
|
2112
|
-
t ? t.focus() : console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'), t ? t.focus() : (
|
|
1600
|
+
t ? t.focus() : console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'), t ? t.focus() : (n = this.$refs.content) == null || n.$el.focus();
|
|
2113
1601
|
},
|
|
2114
1602
|
onResize() {
|
|
2115
1603
|
this.closePopover();
|
|
@@ -2127,12 +1615,12 @@ const Be = He.exports, qe = {
|
|
|
2127
1615
|
await this.$nextTick(), this.popoverContentEl.style.width = `${(t = this.anchorEl) == null ? void 0 : t.clientWidth}px`;
|
|
2128
1616
|
},
|
|
2129
1617
|
focusFirstElementIfNeeded(t) {
|
|
2130
|
-
var s,
|
|
2131
|
-
this._getFocusableElements(t, !0).length !== 0 ? this.focusFirstElement(t) : this.showCloseButton ? (s = this.$refs.popover__header) == null || s.focusCloseButton() : (
|
|
1618
|
+
var s, n;
|
|
1619
|
+
this._getFocusableElements(t, !0).length !== 0 ? this.focusFirstElement(t) : this.showCloseButton ? (s = this.$refs.popover__header) == null || s.focusCloseButton() : (n = this.$refs.content) == null || n.$el.focus();
|
|
2132
1620
|
},
|
|
2133
1621
|
initTippyInstance() {
|
|
2134
1622
|
var t, e;
|
|
2135
|
-
this.tip =
|
|
1623
|
+
this.tip = V(this.anchorEl, {
|
|
2136
1624
|
popperOptions: this.popperOptions(),
|
|
2137
1625
|
contentElement: this.popoverContentEl,
|
|
2138
1626
|
placement: this.placement,
|
|
@@ -2148,87 +1636,115 @@ const Be = He.exports, qe = {
|
|
|
2148
1636
|
onClickOutside: this.onClickOutside,
|
|
2149
1637
|
onShow: this.onShow
|
|
2150
1638
|
});
|
|
1639
|
+
},
|
|
1640
|
+
// ============================================================================
|
|
1641
|
+
// $ HOVERCARD
|
|
1642
|
+
// ----------------------------------------------------------------------------
|
|
1643
|
+
setInTimer() {
|
|
1644
|
+
this.inTimer = setTimeout(() => {
|
|
1645
|
+
this.isOpen = !0;
|
|
1646
|
+
}, g);
|
|
1647
|
+
},
|
|
1648
|
+
setOutTimer() {
|
|
1649
|
+
this.outTimer = setTimeout(() => {
|
|
1650
|
+
this.isOpen = !1;
|
|
1651
|
+
}, g);
|
|
1652
|
+
},
|
|
1653
|
+
onEnterAnchor() {
|
|
1654
|
+
this.hovercard && (this.timer ? this.timer.enter(this.id) : (clearTimeout(this.outTimer), this.setInTimer()));
|
|
1655
|
+
},
|
|
1656
|
+
onLeaveAnchor() {
|
|
1657
|
+
this.hovercard && (this.timer ? this.timer.leave() : (clearTimeout(this.inTimer), this.setOutTimer()));
|
|
1658
|
+
},
|
|
1659
|
+
onEnterContent() {
|
|
1660
|
+
this.hovercard && (this.timer ? this.timer.enter(this.id) : clearTimeout(this.outTimer));
|
|
1661
|
+
},
|
|
1662
|
+
onLeaveContent() {
|
|
1663
|
+
this.hovercard && (this.timer ? this.timer.leave() : this.setOutTimer());
|
|
2151
1664
|
}
|
|
1665
|
+
// ============================================================================
|
|
1666
|
+
// $ HOVERCARD
|
|
1667
|
+
// ----------------------------------------------------------------------------
|
|
2152
1668
|
}
|
|
2153
1669
|
};
|
|
2154
|
-
var
|
|
1670
|
+
var ze = function() {
|
|
2155
1671
|
var e = this, s = e._self._c;
|
|
2156
|
-
return s("div", [e.modal && e.isOpen ? s("portal", [s("div", { staticClass: "d-modal--transparent", attrs: { "aria-hidden": e.modal && e.isOpen ? "false" : "true" }, on: { click: function(
|
|
2157
|
-
|
|
2158
|
-
} } })]) : e._e(), s(e.elementType, e._g({ ref: "popover", tag: "component", class: ["d-popover", { "d-popover__anchor--opened": e.isOpen }], attrs: { "data-qa": "dt-popover-container" } }, e.$listeners), [s("div", { ref: "anchor", attrs: { id: !e.ariaLabelledby && e.labelledBy, "data-qa": "dt-popover-anchor", tabindex: e.openOnContext ? 0 : void 0 }, on: { "!click": function(
|
|
1672
|
+
return s("div", [e.modal && e.isOpen ? s("portal", [s("div", { staticClass: "d-modal--transparent", attrs: { "aria-hidden": e.modal && e.isOpen ? "false" : "true" }, on: { click: function(n) {
|
|
1673
|
+
n.preventDefault(), n.stopPropagation();
|
|
1674
|
+
} } })]) : e._e(), s(e.elementType, e._g({ ref: "popover", tag: "component", class: ["d-popover", { "d-popover__anchor--opened": e.isOpen }], attrs: { "data-qa": "dt-popover-container" } }, e.$listeners), [s("div", { ref: "anchor", attrs: { id: !e.ariaLabelledby && e.labelledBy, "data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}-anchor` : "dt-popover-anchor", tabindex: e.openOnContext ? 0 : void 0 }, on: { "!click": function(n) {
|
|
2159
1675
|
return e.defaultToggleOpen.apply(null, arguments);
|
|
2160
|
-
}, contextmenu: e.onContext, keydown: [function(
|
|
2161
|
-
return !
|
|
2162
|
-
}, function(
|
|
2163
|
-
return !
|
|
2164
|
-
}], "!keydown": function(
|
|
2165
|
-
return !
|
|
2166
|
-
} } }, [e._t("anchor", null, { attrs: {
|
|
1676
|
+
}, contextmenu: e.onContext, keydown: [function(n) {
|
|
1677
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "up", 38, n.key, ["Up", "ArrowUp"]) ? null : (n.preventDefault(), e.onArrowKeyPress.apply(null, arguments));
|
|
1678
|
+
}, function(n) {
|
|
1679
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "down", 40, n.key, ["Down", "ArrowDown"]) ? null : (n.preventDefault(), e.onArrowKeyPress.apply(null, arguments));
|
|
1680
|
+
}], "!keydown": function(n) {
|
|
1681
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "escape", void 0, n.key, void 0) ? null : e.closePopover.apply(null, arguments);
|
|
1682
|
+
}, mouseenter: e.onEnterAnchor, mouseleave: e.onLeaveAnchor } }, [e._t("anchor", null, { attrs: {
|
|
2167
1683
|
"aria-expanded": e.isOpen.toString(),
|
|
2168
1684
|
"aria-controls": e.id,
|
|
2169
1685
|
"aria-haspopup": e.role
|
|
2170
1686
|
} })], 2), s("dt-lazy-show", e._g({ ref: "content", class: ["d-popover__dialog", { "d-popover__dialog--modal": e.modal }, e.dialogClass], style: {
|
|
2171
1687
|
"max-height": e.calculatedMaxHeight,
|
|
2172
1688
|
"max-width": e.maxWidth
|
|
2173
|
-
}, attrs: { id: e.id, role: e.role, "data-qa": "dt-popover", "aria-hidden": `${!e.isOpen}`, "aria-labelledby": e.labelledBy, "aria-label": e.ariaLabel, "aria-modal": `${!e.modal}`, transition: e.transition, show: e.isOpen, tabindex: e.contentTabindex, appear: "" } }, e.popoverListeners), [e.$slots.headerContent || e.showCloseButton ? s("popover-header-footer", { ref: "popover__header", class: e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding], attrs: { "content-class": e.headerClass, type: "header", "show-close-button": e.showCloseButton, "close-button-props": e.closeButtonProps }, on: { close: e.closePopover }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
1689
|
+
}, attrs: { id: e.id, role: e.role, "data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}__dialog` : "dt-popover", "aria-hidden": `${!e.isOpen}`, "aria-labelledby": e.labelledBy, "aria-label": e.ariaLabel, "aria-modal": `${!e.modal}`, transition: e.transition, show: e.isOpen, tabindex: e.contentTabindex, appear: "" }, on: { mouseenter: e.onEnterContent, mouseleave: e.onLeaveContent } }, e.popoverListeners), [e.$slots.headerContent || e.showCloseButton ? s("popover-header-footer", { ref: "popover__header", class: e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding], attrs: { "content-class": e.headerClass, type: "header", "show-close-button": e.showCloseButton, "close-button-props": e.closeButtonProps }, on: { close: e.closePopover }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
2174
1690
|
return [e._t("headerContent", null, { close: e.closePopover })];
|
|
2175
1691
|
}, proxy: !0 }], null, !0) }) : e._e(), s("div", { ref: "popover__content", class: [
|
|
2176
1692
|
"d-popover__content",
|
|
2177
1693
|
e.POPOVER_PADDING_CLASSES[e.padding],
|
|
2178
1694
|
e.contentClass
|
|
2179
|
-
], attrs: { "data-qa": "dt-popover-content" } }, [e._t("content", null, { close: e.closePopover })], 2), e.$slots.footerContent ? s("popover-header-footer", { ref: "popover__footer", class: e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding], attrs: { type: "footer", "content-class": e.footerClass }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
1695
|
+
], attrs: { "data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}-content` : "dt-popover-content" } }, [e._t("content", null, { close: e.closePopover })], 2), e.$slots.footerContent ? s("popover-header-footer", { ref: "popover__footer", class: e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding], attrs: { type: "footer", "content-class": e.footerClass }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
2180
1696
|
return [e._t("footerContent", null, { close: e.closePopover })];
|
|
2181
1697
|
}, proxy: !0 }], null, !0) }) : e._e(), e.showVisuallyHiddenClose ? s("sr-only-close-button", { attrs: { "visually-hidden-close-label": e.visuallyHiddenCloseLabel }, on: { close: e.closePopover } }) : e._e()], 1)], 1)], 1);
|
|
2182
|
-
},
|
|
2183
|
-
qe,
|
|
1698
|
+
}, Ke = [], We = /* @__PURE__ */ a(
|
|
2184
1699
|
je,
|
|
2185
|
-
|
|
1700
|
+
ze,
|
|
1701
|
+
Ke,
|
|
2186
1702
|
!1,
|
|
2187
1703
|
null,
|
|
2188
1704
|
null,
|
|
2189
1705
|
null,
|
|
2190
1706
|
null
|
|
2191
1707
|
);
|
|
2192
|
-
const
|
|
2193
|
-
function
|
|
2194
|
-
return t ===
|
|
1708
|
+
const dt = We.exports;
|
|
1709
|
+
function O(t) {
|
|
1710
|
+
return t === o.default;
|
|
2195
1711
|
}
|
|
2196
|
-
function
|
|
1712
|
+
function T(t) {
|
|
2197
1713
|
if (l(t) === "string")
|
|
2198
|
-
return
|
|
1714
|
+
return O(t) ? null : o[t];
|
|
2199
1715
|
if (l(t) === "object") {
|
|
2200
1716
|
const { default: e } = t;
|
|
2201
|
-
return
|
|
1717
|
+
return O(e) ? null : o[e];
|
|
2202
1718
|
} else
|
|
2203
1719
|
return null;
|
|
2204
1720
|
}
|
|
2205
1721
|
function l(t) {
|
|
2206
1722
|
return typeof t;
|
|
2207
1723
|
}
|
|
2208
|
-
function We(t) {
|
|
2209
|
-
return w(t) ? `d-stack--${i[w(t)]}` : null;
|
|
2210
|
-
}
|
|
2211
1724
|
function Ge(t) {
|
|
2212
|
-
return
|
|
2213
|
-
...I.map((e) => t[e] ? `d-stack--${e}--${t[e]}` : null)
|
|
2214
|
-
] : null;
|
|
1725
|
+
return T(t) ? `d-stack--${o[T(t)]}` : null;
|
|
2215
1726
|
}
|
|
2216
1727
|
function Ue(t) {
|
|
2217
|
-
return
|
|
1728
|
+
return l(t) === "object" ? [
|
|
1729
|
+
...w.map((e) => t[e] ? `d-stack--${e}--${t[e]}` : null)
|
|
1730
|
+
] : null;
|
|
2218
1731
|
}
|
|
2219
1732
|
function Ye(t) {
|
|
1733
|
+
return v.includes(t) ? `d-stack--gap-${t}` : null;
|
|
1734
|
+
}
|
|
1735
|
+
function Ze(t) {
|
|
2220
1736
|
if (l(t) === "string")
|
|
2221
|
-
return Object.keys(
|
|
1737
|
+
return Object.keys(o).includes(t);
|
|
2222
1738
|
if (l(t) === "object") {
|
|
2223
1739
|
const { default: e } = t;
|
|
2224
|
-
return Object.keys(
|
|
1740
|
+
return Object.keys(o).includes(e);
|
|
2225
1741
|
} else
|
|
2226
1742
|
return null;
|
|
2227
1743
|
}
|
|
2228
|
-
function
|
|
2229
|
-
return
|
|
1744
|
+
function Xe(t) {
|
|
1745
|
+
return v.includes(t);
|
|
2230
1746
|
}
|
|
2231
|
-
const
|
|
1747
|
+
const Je = {
|
|
2232
1748
|
name: "DtStack",
|
|
2233
1749
|
props: {
|
|
2234
1750
|
/**
|
|
@@ -2242,7 +1758,7 @@ const Xe = {
|
|
|
2242
1758
|
direction: {
|
|
2243
1759
|
type: [String, Object],
|
|
2244
1760
|
default: "column",
|
|
2245
|
-
validator: (t) =>
|
|
1761
|
+
validator: (t) => Ze(t)
|
|
2246
1762
|
},
|
|
2247
1763
|
/**
|
|
2248
1764
|
* Set this prop to render stack as a specific HTML element.
|
|
@@ -2258,29 +1774,29 @@ const Xe = {
|
|
|
2258
1774
|
gap: {
|
|
2259
1775
|
type: String,
|
|
2260
1776
|
default: "0",
|
|
2261
|
-
validator: (t) =>
|
|
1777
|
+
validator: (t) => Xe(t)
|
|
2262
1778
|
}
|
|
2263
1779
|
},
|
|
2264
1780
|
data() {
|
|
2265
1781
|
return {
|
|
2266
|
-
DT_STACK_DIRECTION:
|
|
2267
|
-
DT_STACK_GAP:
|
|
2268
|
-
DT_STACK_RESPONSIVE_BREAKPOINTS:
|
|
1782
|
+
DT_STACK_DIRECTION: o,
|
|
1783
|
+
DT_STACK_GAP: v,
|
|
1784
|
+
DT_STACK_RESPONSIVE_BREAKPOINTS: w
|
|
2269
1785
|
};
|
|
2270
1786
|
},
|
|
2271
1787
|
computed: {
|
|
2272
1788
|
stackGap() {
|
|
2273
|
-
return
|
|
1789
|
+
return Ye(this.gap);
|
|
2274
1790
|
},
|
|
2275
1791
|
defaultDirection() {
|
|
2276
|
-
return
|
|
1792
|
+
return Ge(this.direction);
|
|
2277
1793
|
},
|
|
2278
1794
|
stackResponsive() {
|
|
2279
|
-
return
|
|
1795
|
+
return Ue(this.direction);
|
|
2280
1796
|
}
|
|
2281
1797
|
}
|
|
2282
1798
|
};
|
|
2283
|
-
var
|
|
1799
|
+
var Qe = function() {
|
|
2284
1800
|
var e = this, s = e._self._c;
|
|
2285
1801
|
return s(e.as, { tag: "component", class: [
|
|
2286
1802
|
"d-stack",
|
|
@@ -2288,49 +1804,49 @@ var Je = function() {
|
|
|
2288
1804
|
e.stackResponsive,
|
|
2289
1805
|
e.stackGap
|
|
2290
1806
|
] }, [e._t("default")], 2);
|
|
2291
|
-
},
|
|
2292
|
-
Xe,
|
|
1807
|
+
}, et = [], tt = /* @__PURE__ */ a(
|
|
2293
1808
|
Je,
|
|
2294
1809
|
Qe,
|
|
1810
|
+
et,
|
|
2295
1811
|
!1,
|
|
2296
1812
|
null,
|
|
2297
1813
|
null,
|
|
2298
1814
|
null,
|
|
2299
1815
|
null
|
|
2300
1816
|
);
|
|
2301
|
-
const ct =
|
|
1817
|
+
const ct = tt.exports;
|
|
2302
1818
|
export {
|
|
2303
1819
|
f as A,
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
1820
|
+
w as B,
|
|
1821
|
+
rt as D,
|
|
1822
|
+
d as L,
|
|
2307
1823
|
ye as M,
|
|
2308
|
-
|
|
2309
|
-
|
|
1824
|
+
ke as P,
|
|
1825
|
+
me as S,
|
|
2310
1826
|
ct as a,
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
1827
|
+
ot as b,
|
|
1828
|
+
it as c,
|
|
1829
|
+
dt as d,
|
|
2314
1830
|
ce as e,
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
1831
|
+
v as f,
|
|
1832
|
+
C as g,
|
|
1833
|
+
P as h,
|
|
1834
|
+
$e as i,
|
|
1835
|
+
b as j,
|
|
1836
|
+
Y as k,
|
|
1837
|
+
Z as l,
|
|
1838
|
+
S as m,
|
|
1839
|
+
X as n,
|
|
1840
|
+
J as o,
|
|
1841
|
+
E as p,
|
|
1842
|
+
h as q,
|
|
1843
|
+
Ae as r,
|
|
1844
|
+
we as s,
|
|
1845
|
+
Pe as t,
|
|
1846
|
+
Le as u,
|
|
1847
|
+
lt as v,
|
|
1848
|
+
U as w,
|
|
2333
1849
|
r as x,
|
|
2334
|
-
|
|
2335
|
-
|
|
1850
|
+
j as y,
|
|
1851
|
+
o as z
|
|
2336
1852
|
};
|