@dialpad/dialtone-vue 3.102.0 → 3.103.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 +5 -5
- package/dist/dialtone-vue.js +1586 -1417
- package/dist/emoji-0CxcYOpi.cjs +1 -0
- package/dist/{emoji-w7mkBLzY.js → emoji-qCvCxNzD.js} +876 -343
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +3 -3
- package/dist/{emoji_picker-nLVt8cFZ.js → emoji_picker-6nxcKkgd.js} +1 -1
- package/dist/{emoji_picker-4xiNkfJF.cjs → emoji_picker-PNpV-epL.cjs} +1 -1
- package/dist/{emoji_text_wrapper-mBDw9Xy3.js → emoji_text_wrapper-GV9Xmp4q.js} +1 -1
- package/dist/{emoji_text_wrapper-MBYdbA6A.cjs → emoji_text_wrapper-M6frYocA.cjs} +1 -1
- package/dist/message_input.cjs +1 -1
- package/dist/message_input.js +3 -3
- package/dist/{stack-FdfddyeK.js → stack-5arAdMmw.js} +291 -813
- package/dist/stack-9esIKlKa.cjs +2 -0
- package/package.json +3 -3
- package/dist/emoji-AfK6oyUP.cjs +0 -1
- package/dist/stack-w8PNJngT.cjs +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { _ as y, g as N, a as
|
|
2
|
-
import { openBlock as
|
|
3
|
-
import { w as
|
|
4
|
-
const
|
|
1
|
+
import { _ as y, g as N, a as G, u as U, b as Y, B as Z, h as j, c as X, i as J, d as Q, e as ee, f as F } from "./tooltip-Cr_G7ib3.js";
|
|
2
|
+
import { openBlock as i, createElementBlock as r, toDisplayString as T, createCommentVNode as d, createElementVNode as E, normalizeClass as u, resolveComponent as m, createBlock as h, resolveDynamicComponent as b, withCtx as f, mergeProps as w, renderSlot as c, withKeys as g, withModifiers as A, createVNode as P, toHandlers as K, createSlots as te, renderList as se, Teleport as ne } from "vue";
|
|
3
|
+
import { A as ae, w as k, I as ie, L as oe, B as le, C as z } from "./emoji-qCvCxNzD.js";
|
|
4
|
+
const C = {
|
|
5
5
|
BUSY: "busy",
|
|
6
6
|
AWAY: "away",
|
|
7
7
|
OFFLINE: "offline",
|
|
8
8
|
ACTIVE: "active"
|
|
9
9
|
}, re = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
],
|
|
10
|
+
C.BUSY,
|
|
11
|
+
C.AWAY,
|
|
12
|
+
C.OFFLINE,
|
|
13
|
+
C.ACTIVE
|
|
14
|
+
], de = {
|
|
15
15
|
name: "DtPresence",
|
|
16
16
|
props: {
|
|
17
17
|
/**
|
|
@@ -21,7 +21,7 @@ const S = {
|
|
|
21
21
|
*/
|
|
22
22
|
presence: {
|
|
23
23
|
type: String,
|
|
24
|
-
default:
|
|
24
|
+
default: C.ACTIVE,
|
|
25
25
|
validator: (e) => re.includes(e)
|
|
26
26
|
},
|
|
27
27
|
/**
|
|
@@ -34,20 +34,20 @@ const S = {
|
|
|
34
34
|
default: null
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, ce = ["aria-live"], ue = {
|
|
38
38
|
key: 0,
|
|
39
39
|
"data-qa": "dt-presence-sr-text",
|
|
40
40
|
class: "sr-only"
|
|
41
41
|
};
|
|
42
|
-
function
|
|
43
|
-
return
|
|
42
|
+
function he(e, t, s, o, a, n) {
|
|
43
|
+
return i(), r("div", {
|
|
44
44
|
class: "d-presence",
|
|
45
45
|
"data-qa": "dt-presence",
|
|
46
46
|
role: "status",
|
|
47
47
|
"aria-live": e.$attrs.ariaLive || "off"
|
|
48
48
|
}, [
|
|
49
|
-
s.srText ? (
|
|
50
|
-
|
|
49
|
+
s.srText ? (i(), r("span", ue, T(s.srText), 1)) : d("", !0),
|
|
50
|
+
E("div", {
|
|
51
51
|
class: u(["d-presence__inner", {
|
|
52
52
|
"d-presence__inner--active": s.presence === "active",
|
|
53
53
|
"d-presence__inner--away": s.presence === "away",
|
|
@@ -55,9 +55,9 @@ function ue(e, t, s, i, a, o) {
|
|
|
55
55
|
"d-presence__inner--offline": s.presence === "offline"
|
|
56
56
|
}])
|
|
57
57
|
}, null, 2)
|
|
58
|
-
], 8,
|
|
58
|
+
], 8, ce);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const fe = /* @__PURE__ */ y(de, [["render", he]]), L = {
|
|
61
61
|
xs: "d-avatar--xs",
|
|
62
62
|
sm: "d-avatar--sm",
|
|
63
63
|
md: "d-avatar--md",
|
|
@@ -67,22 +67,22 @@ const he = /* @__PURE__ */ y(le, [["render", ue]]), L = {
|
|
|
67
67
|
default: "",
|
|
68
68
|
icon: "d-avatar__icon",
|
|
69
69
|
initials: "d-avatar__initials"
|
|
70
|
-
},
|
|
70
|
+
}, me = {
|
|
71
71
|
md: "d-avatar__presence--md",
|
|
72
72
|
lg: "d-avatar__presence--lg"
|
|
73
|
-
},
|
|
73
|
+
}, H = {
|
|
74
74
|
NONE: "",
|
|
75
75
|
BUSY: "busy",
|
|
76
76
|
AWAY: "away",
|
|
77
77
|
OFFLINE: "offline",
|
|
78
78
|
ACTIVE: "active"
|
|
79
|
-
},
|
|
79
|
+
}, ye = {
|
|
80
80
|
xs: "100",
|
|
81
81
|
sm: "200",
|
|
82
82
|
md: "300",
|
|
83
83
|
lg: "500",
|
|
84
84
|
xl: "600"
|
|
85
|
-
},
|
|
85
|
+
}, ve = [
|
|
86
86
|
"100",
|
|
87
87
|
"200",
|
|
88
88
|
"300",
|
|
@@ -101,558 +101,18 @@ const he = /* @__PURE__ */ y(le, [["render", ue]]), L = {
|
|
|
101
101
|
"1600",
|
|
102
102
|
"1700",
|
|
103
103
|
"1800"
|
|
104
|
-
],
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"add-task",
|
|
108
|
-
"agent-assist",
|
|
109
|
-
"ai-notes",
|
|
110
|
-
"airplay",
|
|
111
|
-
"airtable",
|
|
112
|
-
"alarm-check",
|
|
113
|
-
"alarm-clock-off",
|
|
114
|
-
"alarm-minus",
|
|
115
|
-
"alarm-plus",
|
|
116
|
-
"album",
|
|
117
|
-
"alert-circle",
|
|
118
|
-
"alert-triangle",
|
|
119
|
-
"amex",
|
|
120
|
-
"app-store-badge",
|
|
121
|
-
"apple",
|
|
122
|
-
"archive",
|
|
123
|
-
"archive-restore",
|
|
124
|
-
"arrow-down",
|
|
125
|
-
"arrow-down-left",
|
|
126
|
-
"arrow-down-right",
|
|
127
|
-
"arrow-left",
|
|
128
|
-
"arrow-left-right",
|
|
129
|
-
"arrow-right",
|
|
130
|
-
"arrow-up",
|
|
131
|
-
"arrow-up-down",
|
|
132
|
-
"arrow-up-left",
|
|
133
|
-
"arrow-up-right",
|
|
134
|
-
"asana",
|
|
135
|
-
"asterisk",
|
|
136
|
-
"at-sign",
|
|
137
|
-
"ata-adapter",
|
|
138
|
-
"attestation",
|
|
139
|
-
"attestation-outline",
|
|
140
|
-
"axis-3d",
|
|
141
|
-
"bar-chart",
|
|
142
|
-
"bar-chart-2",
|
|
143
|
-
"bar-chart-3",
|
|
144
|
-
"bar-chart-4",
|
|
145
|
-
"bar-chart-horizontal",
|
|
146
|
-
"barge",
|
|
147
|
-
"baseline",
|
|
148
|
-
"battery",
|
|
149
|
-
"battery-charging",
|
|
150
|
-
"battery-full",
|
|
151
|
-
"battery-low",
|
|
152
|
-
"battery-medium",
|
|
153
|
-
"bell",
|
|
154
|
-
"bell-minus",
|
|
155
|
-
"bell-off",
|
|
156
|
-
"bell-plus",
|
|
157
|
-
"bell-ring",
|
|
158
|
-
"binary",
|
|
159
|
-
"bluetooth",
|
|
160
|
-
"bluetooth-connected",
|
|
161
|
-
"bluetooth-off",
|
|
162
|
-
"bluetooth-searching",
|
|
163
|
-
"blur-background",
|
|
164
|
-
"bold",
|
|
165
|
-
"book",
|
|
166
|
-
"book-open",
|
|
167
|
-
"bookmark",
|
|
168
|
-
"bookmark-minus",
|
|
169
|
-
"bookmark-plus",
|
|
170
|
-
"box",
|
|
171
|
-
"box-select",
|
|
172
|
-
"boxes",
|
|
173
|
-
"branch",
|
|
174
|
-
"brand-dialpad",
|
|
175
|
-
"brand-dialpad-meetings",
|
|
176
|
-
"briefcase",
|
|
177
|
-
"building",
|
|
178
|
-
"building-2",
|
|
179
|
-
"bullhorn",
|
|
180
|
-
"calculator",
|
|
181
|
-
"calendar",
|
|
182
|
-
"calendar-check",
|
|
183
|
-
"calendar-check-2",
|
|
184
|
-
"calendar-clock",
|
|
185
|
-
"calendar-days",
|
|
186
|
-
"calendar-heart",
|
|
187
|
-
"calendar-minus",
|
|
188
|
-
"calendar-off",
|
|
189
|
-
"calendar-plus",
|
|
190
|
-
"calendar-range",
|
|
191
|
-
"calendar-search",
|
|
192
|
-
"calendar-x",
|
|
193
|
-
"call-abandoned",
|
|
194
|
-
"call-merge",
|
|
195
|
-
"call-rejected",
|
|
196
|
-
"camera",
|
|
197
|
-
"camera-off",
|
|
198
|
-
"camera-tracking",
|
|
199
|
-
"cast",
|
|
200
|
-
"check",
|
|
201
|
-
"check-circle",
|
|
202
|
-
"check-circle-filled",
|
|
203
|
-
"chevron-down",
|
|
204
|
-
"chevron-first",
|
|
205
|
-
"chevron-last",
|
|
206
|
-
"chevron-left",
|
|
207
|
-
"chevron-right",
|
|
208
|
-
"chevron-up",
|
|
209
|
-
"chevrons-down",
|
|
210
|
-
"chevrons-down-up",
|
|
211
|
-
"chevrons-left",
|
|
212
|
-
"chevrons-left-right",
|
|
213
|
-
"chevrons-right",
|
|
214
|
-
"chevrons-right-left",
|
|
215
|
-
"chevrons-up",
|
|
216
|
-
"chevrons-up-down",
|
|
217
|
-
"circle-half-filled",
|
|
218
|
-
"circle-slashed",
|
|
219
|
-
"clipboard",
|
|
220
|
-
"clipboard-check",
|
|
221
|
-
"clipboard-copy",
|
|
222
|
-
"clipboard-edit",
|
|
223
|
-
"clipboard-list",
|
|
224
|
-
"clipboard-signature",
|
|
225
|
-
"clipboard-type",
|
|
226
|
-
"clipboard-x",
|
|
227
|
-
"clock",
|
|
228
|
-
"clock-1",
|
|
229
|
-
"clock-10",
|
|
230
|
-
"clock-11",
|
|
231
|
-
"clock-12",
|
|
232
|
-
"clock-2",
|
|
233
|
-
"clock-3",
|
|
234
|
-
"clock-4",
|
|
235
|
-
"clock-5",
|
|
236
|
-
"clock-6",
|
|
237
|
-
"clock-7",
|
|
238
|
-
"clock-8",
|
|
239
|
-
"clock-9",
|
|
240
|
-
"clockify",
|
|
241
|
-
"close",
|
|
242
|
-
"cloud",
|
|
243
|
-
"cloud-cog",
|
|
244
|
-
"cloud-drizzle",
|
|
245
|
-
"cloud-fog",
|
|
246
|
-
"cloud-hail",
|
|
247
|
-
"cloud-lightning",
|
|
248
|
-
"cloud-moon",
|
|
249
|
-
"cloud-moon-rain",
|
|
250
|
-
"cloud-off",
|
|
251
|
-
"cloud-rain",
|
|
252
|
-
"cloud-rain-wind",
|
|
253
|
-
"cloud-snow",
|
|
254
|
-
"cloud-sun",
|
|
255
|
-
"cloud-sun-rain",
|
|
256
|
-
"cloudy",
|
|
257
|
-
"coaching-hub",
|
|
258
|
-
"code",
|
|
259
|
-
"command",
|
|
260
|
-
"concierge-bell",
|
|
261
|
-
"contacts",
|
|
262
|
-
"copper-crm",
|
|
263
|
-
"copy",
|
|
264
|
-
"copyright",
|
|
265
|
-
"corner-down-left",
|
|
266
|
-
"corner-down-right",
|
|
267
|
-
"corner-left-down",
|
|
268
|
-
"corner-left-up",
|
|
269
|
-
"corner-right-down",
|
|
270
|
-
"corner-right-up",
|
|
271
|
-
"corner-up-left",
|
|
272
|
-
"corner-up-right",
|
|
273
|
-
"cpu",
|
|
274
|
-
"credit-card",
|
|
275
|
-
"dash",
|
|
276
|
-
"dect-base-station",
|
|
277
|
-
"dect-handset",
|
|
278
|
-
"delete",
|
|
279
|
-
"deskphone",
|
|
280
|
-
"dialbot",
|
|
281
|
-
"dialer",
|
|
282
|
-
"dialpad-ai",
|
|
283
|
-
"dialpad-ai-color",
|
|
284
|
-
"dialpad-logomark",
|
|
285
|
-
"digital-whisper",
|
|
286
|
-
"diners-club",
|
|
287
|
-
"discover",
|
|
288
|
-
"dissatisfied",
|
|
289
|
-
"double-check",
|
|
290
|
-
"download",
|
|
291
|
-
"download-cloud",
|
|
292
|
-
"dp-phone",
|
|
293
|
-
"edit",
|
|
294
|
-
"edit-2",
|
|
295
|
-
"empty",
|
|
296
|
-
"end-chat",
|
|
297
|
-
"equal",
|
|
298
|
-
"eraser",
|
|
299
|
-
"evernote",
|
|
300
|
-
"expand",
|
|
301
|
-
"expert-node",
|
|
302
|
-
"external-link",
|
|
303
|
-
"eye",
|
|
304
|
-
"eye-off",
|
|
305
|
-
"facebook",
|
|
306
|
-
"factory",
|
|
307
|
-
"fast-forward",
|
|
308
|
-
"file",
|
|
309
|
-
"file-audio",
|
|
310
|
-
"files",
|
|
311
|
-
"film",
|
|
312
|
-
"filter",
|
|
313
|
-
"fingerprint",
|
|
314
|
-
"flag",
|
|
315
|
-
"flag-off",
|
|
316
|
-
"flame",
|
|
317
|
-
"focus",
|
|
318
|
-
"folder",
|
|
319
|
-
"folder-tree",
|
|
320
|
-
"folders",
|
|
321
|
-
"food",
|
|
322
|
-
"form-input",
|
|
323
|
-
"forward",
|
|
324
|
-
"freshsales-crm",
|
|
325
|
-
"front",
|
|
326
|
-
"gamepad",
|
|
327
|
-
"gauge",
|
|
328
|
-
"gif-filled",
|
|
329
|
-
"gif-outline",
|
|
330
|
-
"giphy",
|
|
331
|
-
"globe-2",
|
|
332
|
-
"gmail",
|
|
333
|
-
"google-business-messaging",
|
|
334
|
-
"google-calendar",
|
|
335
|
-
"google-docs",
|
|
336
|
-
"google-drive",
|
|
337
|
-
"google-glyph",
|
|
338
|
-
"google-sheets",
|
|
339
|
-
"google-slides",
|
|
340
|
-
"greenhouse",
|
|
341
|
-
"grid",
|
|
342
|
-
"grip-horizontal",
|
|
343
|
-
"grip-vertical",
|
|
344
|
-
"hand",
|
|
345
|
-
"hard-drive",
|
|
346
|
-
"hash",
|
|
347
|
-
"hash-bold",
|
|
348
|
-
"haze",
|
|
349
|
-
"hd",
|
|
350
|
-
"headphones",
|
|
351
|
-
"hear",
|
|
352
|
-
"heart",
|
|
353
|
-
"help-circle",
|
|
354
|
-
"highfive",
|
|
355
|
-
"history",
|
|
356
|
-
"hold",
|
|
357
|
-
"home",
|
|
358
|
-
"hourglass",
|
|
359
|
-
"hubspot",
|
|
360
|
-
"image",
|
|
361
|
-
"import",
|
|
362
|
-
"inbox",
|
|
363
|
-
"indent",
|
|
364
|
-
"infinity",
|
|
365
|
-
"info",
|
|
366
|
-
"inspect",
|
|
367
|
-
"instagram",
|
|
368
|
-
"intercom",
|
|
369
|
-
"isolated-queries",
|
|
370
|
-
"italic",
|
|
371
|
-
"jcb",
|
|
372
|
-
"jira-service-desk",
|
|
373
|
-
"key",
|
|
374
|
-
"keyboard",
|
|
375
|
-
"keypad",
|
|
376
|
-
"languages",
|
|
377
|
-
"laptop-2",
|
|
378
|
-
"large-self-view",
|
|
379
|
-
"layout",
|
|
380
|
-
"layout-dashboard",
|
|
381
|
-
"layout-filmstrip",
|
|
382
|
-
"layout-grid",
|
|
383
|
-
"layout-template",
|
|
384
|
-
"library",
|
|
385
|
-
"life-buoy",
|
|
386
|
-
"lightbulb",
|
|
387
|
-
"lightbulb-off",
|
|
388
|
-
"lightning-bolt",
|
|
389
|
-
"line-chart",
|
|
390
|
-
"line-messenger",
|
|
391
|
-
"link-2",
|
|
392
|
-
"link-2-off",
|
|
393
|
-
"linkedin",
|
|
394
|
-
"list-add",
|
|
395
|
-
"list-bullet",
|
|
396
|
-
"list-checks",
|
|
397
|
-
"list-ordered",
|
|
398
|
-
"listen",
|
|
399
|
-
"listen",
|
|
400
|
-
"listening",
|
|
401
|
-
"live-queue",
|
|
402
|
-
"living-thing",
|
|
403
|
-
"loading",
|
|
404
|
-
"lock",
|
|
405
|
-
"lock-filled",
|
|
406
|
-
"log-in",
|
|
407
|
-
"log-out",
|
|
408
|
-
"maestro",
|
|
409
|
-
"mail",
|
|
410
|
-
"mail-open",
|
|
411
|
-
"mails",
|
|
412
|
-
"map",
|
|
413
|
-
"map-pin",
|
|
414
|
-
"mastercard",
|
|
415
|
-
"maximize",
|
|
416
|
-
"megaphone",
|
|
417
|
-
"megaphone-off",
|
|
418
|
-
"menu",
|
|
419
|
-
"message",
|
|
420
|
-
"messenger",
|
|
421
|
-
"mic",
|
|
422
|
-
"mic-off",
|
|
423
|
-
"microsoft",
|
|
424
|
-
"microsoft-dynamics-365",
|
|
425
|
-
"microsoft-teams",
|
|
426
|
-
"minimize",
|
|
427
|
-
"minimize-alt",
|
|
428
|
-
"minus-circle",
|
|
429
|
-
"miro",
|
|
430
|
-
"monday-com",
|
|
431
|
-
"monitor",
|
|
432
|
-
"monitor-off",
|
|
433
|
-
"monitor-speaker",
|
|
434
|
-
"moon",
|
|
435
|
-
"more-horizontal",
|
|
436
|
-
"more-vertical",
|
|
437
|
-
"mouse",
|
|
438
|
-
"multi-line-dept",
|
|
439
|
-
"music",
|
|
440
|
-
"music-off",
|
|
441
|
-
"network",
|
|
442
|
-
"neutral",
|
|
443
|
-
"newspaper",
|
|
444
|
-
"not-enough-queries",
|
|
445
|
-
"notes",
|
|
446
|
-
"object",
|
|
447
|
-
"office-365",
|
|
448
|
-
"option",
|
|
449
|
-
"package",
|
|
450
|
-
"paperclip",
|
|
451
|
-
"park",
|
|
452
|
-
"party-popper",
|
|
453
|
-
"past-conversations",
|
|
454
|
-
"pause",
|
|
455
|
-
"pause-circle",
|
|
456
|
-
"phone",
|
|
457
|
-
"phone-call",
|
|
458
|
-
"phone-forward",
|
|
459
|
-
"phone-hang-up",
|
|
460
|
-
"phone-hang-up",
|
|
461
|
-
"phone-hold",
|
|
462
|
-
"phone-incoming",
|
|
463
|
-
"phone-missed",
|
|
464
|
-
"phone-off",
|
|
465
|
-
"phone-outgoing",
|
|
466
|
-
"picture-in-picture",
|
|
467
|
-
"pie-chart",
|
|
468
|
-
"pin",
|
|
469
|
-
"pin-off",
|
|
470
|
-
"pipedrive",
|
|
471
|
-
"play",
|
|
472
|
-
"play-circle",
|
|
473
|
-
"play-filled",
|
|
474
|
-
"play-store-badge",
|
|
475
|
-
"plug",
|
|
476
|
-
"plus",
|
|
477
|
-
"plus-circle",
|
|
478
|
-
"power",
|
|
479
|
-
"print-fax",
|
|
480
|
-
"printer",
|
|
481
|
-
"puzzle",
|
|
482
|
-
"qr-code",
|
|
483
|
-
"queries",
|
|
484
|
-
"quote",
|
|
485
|
-
"record",
|
|
486
|
-
"record-filled",
|
|
487
|
-
"redo",
|
|
488
|
-
"refresh",
|
|
489
|
-
"repeat",
|
|
490
|
-
"reply",
|
|
491
|
-
"reply-all",
|
|
492
|
-
"rewind",
|
|
493
|
-
"rewind-15-sec",
|
|
494
|
-
"salesforce-glyph",
|
|
495
|
-
"salesforce-logo",
|
|
496
|
-
"satisfied",
|
|
497
|
-
"save",
|
|
498
|
-
"scan",
|
|
499
|
-
"scan-face",
|
|
500
|
-
"scissors",
|
|
501
|
-
"screen-share-off",
|
|
502
|
-
"scroll",
|
|
503
|
-
"search",
|
|
504
|
-
"send",
|
|
505
|
-
"servicenow",
|
|
506
|
-
"settings",
|
|
507
|
-
"share",
|
|
508
|
-
"share-2",
|
|
509
|
-
"share-screen",
|
|
510
|
-
"sheet",
|
|
511
|
-
"shield",
|
|
512
|
-
"shield-alert",
|
|
513
|
-
"shield-check",
|
|
514
|
-
"shield-close",
|
|
515
|
-
"shield-off",
|
|
516
|
-
"shortcuts",
|
|
517
|
-
"shuffle",
|
|
518
|
-
"sidebar",
|
|
519
|
-
"sidebar-close",
|
|
520
|
-
"sidebar-open",
|
|
521
|
-
"signal-best",
|
|
522
|
-
"signal-high",
|
|
523
|
-
"signal-low",
|
|
524
|
-
"signal-medium",
|
|
525
|
-
"signal-zero",
|
|
526
|
-
"siren",
|
|
527
|
-
"skip-15-sec",
|
|
528
|
-
"skip-back",
|
|
529
|
-
"skip-back-ten",
|
|
530
|
-
"skip-forward",
|
|
531
|
-
"skip-forward-ten",
|
|
532
|
-
"slack",
|
|
533
|
-
"slash",
|
|
534
|
-
"sliders",
|
|
535
|
-
"sliders-horizontal",
|
|
536
|
-
"small-self-view",
|
|
537
|
-
"smartphone",
|
|
538
|
-
"smartphone-charging",
|
|
539
|
-
"snapchat",
|
|
540
|
-
"snooze",
|
|
541
|
-
"snowflake",
|
|
542
|
-
"somewhat-dissatisfied",
|
|
543
|
-
"somewhat-satisfied",
|
|
544
|
-
"sort-asc",
|
|
545
|
-
"sort-desc",
|
|
546
|
-
"sparkle",
|
|
547
|
-
"speaker",
|
|
548
|
-
"star",
|
|
549
|
-
"star-filled",
|
|
550
|
-
"sticker",
|
|
551
|
-
"stop-circle",
|
|
552
|
-
"stop-filled",
|
|
553
|
-
"strikethrough",
|
|
554
|
-
"sun",
|
|
555
|
-
"sun-dim",
|
|
556
|
-
"sun-medium",
|
|
557
|
-
"sunrise",
|
|
558
|
-
"sunset",
|
|
559
|
-
"switch-to-cellular",
|
|
560
|
-
"switch-to-hd",
|
|
561
|
-
"table",
|
|
562
|
-
"tag",
|
|
563
|
-
"tags",
|
|
564
|
-
"takeover",
|
|
565
|
-
"task",
|
|
566
|
-
"telegram",
|
|
567
|
-
"text-cursor",
|
|
568
|
-
"text-cursor-input",
|
|
569
|
-
"thermometer",
|
|
570
|
-
"thermometer-snowflake",
|
|
571
|
-
"thermometer-sun",
|
|
572
|
-
"thread",
|
|
573
|
-
"threads",
|
|
574
|
-
"thumbs-down",
|
|
575
|
-
"thumbs-up",
|
|
576
|
-
"tiktok",
|
|
577
|
-
"timer",
|
|
578
|
-
"timer-off",
|
|
579
|
-
"timer-reset",
|
|
580
|
-
"toggl",
|
|
581
|
-
"too-many-queries",
|
|
582
|
-
"tools",
|
|
583
|
-
"toy-brick",
|
|
584
|
-
"transfer",
|
|
585
|
-
"transfer-webchat",
|
|
586
|
-
"transportation",
|
|
587
|
-
"trash",
|
|
588
|
-
"trending-down",
|
|
589
|
-
"trending-up",
|
|
590
|
-
"triangle",
|
|
591
|
-
"twitter",
|
|
592
|
-
"type",
|
|
593
|
-
"umbrella",
|
|
594
|
-
"underline",
|
|
595
|
-
"undo-2",
|
|
596
|
-
"union-pay",
|
|
597
|
-
"unlink-2",
|
|
598
|
-
"unlock",
|
|
599
|
-
"unlock-filled",
|
|
600
|
-
"unread",
|
|
601
|
-
"upload",
|
|
602
|
-
"upload-cloud",
|
|
603
|
-
"usb",
|
|
604
|
-
"user",
|
|
605
|
-
"user-check",
|
|
606
|
-
"user-minus",
|
|
607
|
-
"user-plus",
|
|
608
|
-
"user-rematch",
|
|
609
|
-
"user-remove",
|
|
610
|
-
"users",
|
|
611
|
-
"very-dissatisfied",
|
|
612
|
-
"very-satisfied",
|
|
613
|
-
"viber",
|
|
614
|
-
"video",
|
|
615
|
-
"video-off",
|
|
616
|
-
"video-settings",
|
|
617
|
-
"visa",
|
|
618
|
-
"voicemail",
|
|
619
|
-
"voicemail-drop",
|
|
620
|
-
"volume",
|
|
621
|
-
"volume-1",
|
|
622
|
-
"volume-2",
|
|
623
|
-
"volume-x",
|
|
624
|
-
"waveform",
|
|
625
|
-
"we-chat",
|
|
626
|
-
"webcam",
|
|
627
|
-
"webchat",
|
|
628
|
-
"whatsapp",
|
|
629
|
-
"whisper",
|
|
630
|
-
"wifi",
|
|
631
|
-
"wifi-off",
|
|
632
|
-
"wind",
|
|
633
|
-
"x-brand",
|
|
634
|
-
"x-circle",
|
|
635
|
-
"zap-off",
|
|
636
|
-
"zendesk",
|
|
637
|
-
"zoho",
|
|
638
|
-
"zoho-crm",
|
|
639
|
-
"zoho-desk",
|
|
640
|
-
"zoom",
|
|
641
|
-
"zoom-in",
|
|
642
|
-
"zoom-logo",
|
|
643
|
-
"zoom-out"
|
|
644
|
-
];
|
|
645
|
-
function ve() {
|
|
646
|
-
return [void 0, ...ge];
|
|
104
|
+
], V = (e) => e > 1;
|
|
105
|
+
function _e() {
|
|
106
|
+
return [void 0, ...ae];
|
|
647
107
|
}
|
|
648
|
-
const
|
|
108
|
+
const ge = (e) => {
|
|
649
109
|
if (typeof e != "string" || !e.trim())
|
|
650
110
|
return "";
|
|
651
111
|
const t = e.trim().split(/\s+/g);
|
|
652
|
-
return t.length === 1 ? t.join("").substring(0, 2) : t.filter((s,
|
|
653
|
-
},
|
|
112
|
+
return t.length === 1 ? t.join("").substring(0, 2) : t.filter((s, o) => o === 0 || o === t.length - 1).map((s) => s.slice(0, 1).toUpperCase()).join("");
|
|
113
|
+
}, Ee = _e(), be = {
|
|
654
114
|
name: "DtAvatar",
|
|
655
|
-
components: { DtPresence:
|
|
115
|
+
components: { DtPresence: fe, DtIcon: k },
|
|
656
116
|
inheritAttrs: !1,
|
|
657
117
|
props: {
|
|
658
118
|
/**
|
|
@@ -718,8 +178,8 @@ const be = (e) => {
|
|
|
718
178
|
*/
|
|
719
179
|
presence: {
|
|
720
180
|
type: String,
|
|
721
|
-
default:
|
|
722
|
-
validator: (e) => Object.values(
|
|
181
|
+
default: H.NONE,
|
|
182
|
+
validator: (e) => Object.values(H).includes(e)
|
|
723
183
|
},
|
|
724
184
|
/**
|
|
725
185
|
* A set of props to be passed into the presence component.
|
|
@@ -736,7 +196,7 @@ const be = (e) => {
|
|
|
736
196
|
group: {
|
|
737
197
|
type: Number,
|
|
738
198
|
default: void 0,
|
|
739
|
-
validator: (e) =>
|
|
199
|
+
validator: (e) => V(e)
|
|
740
200
|
},
|
|
741
201
|
/**
|
|
742
202
|
* The icon that overlays the avatar
|
|
@@ -780,7 +240,7 @@ const be = (e) => {
|
|
|
780
240
|
iconName: {
|
|
781
241
|
type: String,
|
|
782
242
|
default: void 0,
|
|
783
|
-
validator: (e) =>
|
|
243
|
+
validator: (e) => Ee.includes(e)
|
|
784
244
|
},
|
|
785
245
|
/**
|
|
786
246
|
* Icon size to be displayed on the avatar
|
|
@@ -789,7 +249,7 @@ const be = (e) => {
|
|
|
789
249
|
iconSize: {
|
|
790
250
|
type: String,
|
|
791
251
|
default: "",
|
|
792
|
-
validator: (e) => !e || Object.keys(
|
|
252
|
+
validator: (e) => !e || Object.keys(ie).includes(e)
|
|
793
253
|
},
|
|
794
254
|
/**
|
|
795
255
|
* Full name used to extract initials and set alt attribute.
|
|
@@ -820,8 +280,8 @@ const be = (e) => {
|
|
|
820
280
|
return {
|
|
821
281
|
AVATAR_SIZE_MODIFIERS: L,
|
|
822
282
|
AVATAR_KIND_MODIFIERS: pe,
|
|
823
|
-
AVATAR_PRESENCE_SIZE_MODIFIERS:
|
|
824
|
-
AVATAR_ICON_SIZES:
|
|
283
|
+
AVATAR_PRESENCE_SIZE_MODIFIERS: me,
|
|
284
|
+
AVATAR_ICON_SIZES: ye,
|
|
825
285
|
imageLoadedSuccessfully: null,
|
|
826
286
|
formattedInitials: "",
|
|
827
287
|
initializing: !1
|
|
@@ -850,7 +310,7 @@ const be = (e) => {
|
|
|
850
310
|
];
|
|
851
311
|
},
|
|
852
312
|
showGroup() {
|
|
853
|
-
return
|
|
313
|
+
return V(this.group);
|
|
854
314
|
},
|
|
855
315
|
formattedGroup() {
|
|
856
316
|
return this.group > 99 ? "99+" : this.group;
|
|
@@ -887,11 +347,11 @@ const be = (e) => {
|
|
|
887
347
|
e && (e.addEventListener("load", () => this._loadedImageEventHandler(e), { once: !0 }), e.addEventListener("error", () => this._erroredImageEventHandler(e), { once: !0 }));
|
|
888
348
|
},
|
|
889
349
|
formatInitials(e) {
|
|
890
|
-
const t =
|
|
350
|
+
const t = ge(e);
|
|
891
351
|
this.validatedSize === "xs" ? this.formattedInitials = "" : this.validatedSize === "sm" ? this.formattedInitials = t[0] : this.formattedInitials = t;
|
|
892
352
|
},
|
|
893
353
|
getColor() {
|
|
894
|
-
return this.color ??
|
|
354
|
+
return this.color ?? G(ve, this.seed);
|
|
895
355
|
},
|
|
896
356
|
_loadedImageEventHandler(e) {
|
|
897
357
|
this.imageLoadedSuccessfully = !0, e.classList.remove("d-d-none");
|
|
@@ -907,25 +367,25 @@ const be = (e) => {
|
|
|
907
367
|
this.clickable && this.$emit("click", e);
|
|
908
368
|
}
|
|
909
369
|
}
|
|
910
|
-
},
|
|
370
|
+
}, Se = ["src", "alt"], Ce = {
|
|
911
371
|
key: 1,
|
|
912
372
|
class: "d-avatar__overlay-text"
|
|
913
|
-
},
|
|
373
|
+
}, Oe = {
|
|
914
374
|
key: 1,
|
|
915
375
|
class: "d-avatar__count",
|
|
916
376
|
"data-qa": "dt-avatar-count"
|
|
917
377
|
};
|
|
918
|
-
function
|
|
919
|
-
const
|
|
920
|
-
return
|
|
378
|
+
function Ie(e, t, s, o, a, n) {
|
|
379
|
+
const p = m("dt-icon"), v = m("dt-presence");
|
|
380
|
+
return i(), h(b(s.clickable ? "button" : "div"), {
|
|
921
381
|
id: s.id,
|
|
922
|
-
class: u(
|
|
382
|
+
class: u(n.avatarClasses),
|
|
923
383
|
"data-qa": "dt-avatar",
|
|
924
|
-
"aria-label":
|
|
925
|
-
onClick:
|
|
384
|
+
"aria-label": n.buttonAriaLabel,
|
|
385
|
+
onClick: n.handleClick
|
|
926
386
|
}, {
|
|
927
|
-
default:
|
|
928
|
-
|
|
387
|
+
default: f(() => [
|
|
388
|
+
E("div", {
|
|
929
389
|
ref: "canvas",
|
|
930
390
|
class: u([
|
|
931
391
|
s.canvasClass,
|
|
@@ -933,36 +393,36 @@ function Ce(e, t, s, i, a, o) {
|
|
|
933
393
|
{ "d-avatar--image-loaded": a.imageLoadedSuccessfully }
|
|
934
394
|
])
|
|
935
395
|
}, [
|
|
936
|
-
|
|
396
|
+
n.showImage ? (i(), r("img", {
|
|
937
397
|
key: 0,
|
|
938
398
|
ref: "avatarImage",
|
|
939
399
|
class: "d-avatar__image",
|
|
940
400
|
"data-qa": "dt-avatar-image",
|
|
941
401
|
src: s.imageSrc,
|
|
942
402
|
alt: s.imageAlt || s.fullName
|
|
943
|
-
}, null, 8,
|
|
403
|
+
}, null, 8, Se)) : s.iconName ? (i(), h(p, {
|
|
944
404
|
key: 1,
|
|
945
405
|
name: s.iconName,
|
|
946
406
|
size: s.iconSize || a.AVATAR_ICON_SIZES[s.size],
|
|
947
407
|
class: u([s.iconClass, a.AVATAR_KIND_MODIFIERS.icon]),
|
|
948
408
|
"data-qa": "dt-avatar-icon"
|
|
949
|
-
}, null, 8, ["name", "size", "class"])) : (
|
|
409
|
+
}, null, 8, ["name", "size", "class"])) : (i(), r("span", {
|
|
950
410
|
key: 2,
|
|
951
411
|
class: u([a.AVATAR_KIND_MODIFIERS.initials])
|
|
952
|
-
},
|
|
412
|
+
}, T(a.formattedInitials), 3))
|
|
953
413
|
], 2),
|
|
954
|
-
s.overlayIcon || s.overlayText ? (
|
|
414
|
+
s.overlayIcon || s.overlayText ? (i(), r("div", {
|
|
955
415
|
key: 0,
|
|
956
|
-
class: u(
|
|
416
|
+
class: u(n.overlayClasses)
|
|
957
417
|
}, [
|
|
958
|
-
s.overlayIcon ? (
|
|
418
|
+
s.overlayIcon ? (i(), h(p, {
|
|
959
419
|
key: 0,
|
|
960
420
|
class: "d-avatar__overlay-icon",
|
|
961
421
|
name: s.overlayIcon
|
|
962
|
-
}, null, 8, ["name"])) : s.overlayText ? (
|
|
422
|
+
}, null, 8, ["name"])) : s.overlayText ? (i(), r("p", Ce, T(s.overlayText), 1)) : d("", !0)
|
|
963
423
|
], 2)) : d("", !0),
|
|
964
|
-
|
|
965
|
-
s.presence && !
|
|
424
|
+
n.showGroup ? (i(), r("span", Oe, T(n.formattedGroup), 1)) : d("", !0),
|
|
425
|
+
s.presence && !n.showGroup ? (i(), h(v, w({
|
|
966
426
|
key: 2,
|
|
967
427
|
presence: s.presence,
|
|
968
428
|
class: [
|
|
@@ -974,7 +434,7 @@ function Ce(e, t, s, i, a, o) {
|
|
|
974
434
|
_: 1
|
|
975
435
|
}, 8, ["id", "class", "aria-label", "onClick"]);
|
|
976
436
|
}
|
|
977
|
-
const
|
|
437
|
+
const yt = /* @__PURE__ */ y(be, [["render", Ie]]), Te = {
|
|
978
438
|
name: "DtLink",
|
|
979
439
|
props: {
|
|
980
440
|
/**
|
|
@@ -985,18 +445,18 @@ const mt = /* @__PURE__ */ y(ke, [["render", Ce]]), Oe = {
|
|
|
985
445
|
type: String,
|
|
986
446
|
default: "",
|
|
987
447
|
validator(e) {
|
|
988
|
-
return
|
|
448
|
+
return oe.includes(e);
|
|
989
449
|
}
|
|
990
450
|
}
|
|
991
451
|
},
|
|
992
452
|
data() {
|
|
993
453
|
return {
|
|
994
|
-
LINK_KIND_MODIFIERS:
|
|
454
|
+
LINK_KIND_MODIFIERS: le
|
|
995
455
|
};
|
|
996
456
|
}
|
|
997
|
-
},
|
|
998
|
-
function
|
|
999
|
-
return
|
|
457
|
+
}, Ae = ["href"];
|
|
458
|
+
function we(e, t, s, o, a, n) {
|
|
459
|
+
return i(), r("a", {
|
|
1000
460
|
class: u([
|
|
1001
461
|
"d-link",
|
|
1002
462
|
a.LINK_KIND_MODIFIERS[s.kind]
|
|
@@ -1005,9 +465,9 @@ function Te(e, t, s, i, a, o) {
|
|
|
1005
465
|
href: "href" in e.$attrs ? e.$attrs.href : "javascript:void(0)"
|
|
1006
466
|
}, [
|
|
1007
467
|
c(e.$slots, "default")
|
|
1008
|
-
], 10,
|
|
468
|
+
], 10, Ae);
|
|
1009
469
|
}
|
|
1010
|
-
const
|
|
470
|
+
const vt = /* @__PURE__ */ y(Te, [["render", we]]), Pe = {
|
|
1011
471
|
props: {
|
|
1012
472
|
/**
|
|
1013
473
|
* If true, a hidden close button is included for screen readers
|
|
@@ -1046,11 +506,11 @@ const yt = /* @__PURE__ */ y(Oe, [["render", Te]]), Ae = {
|
|
|
1046
506
|
a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`);
|
|
1047
507
|
}
|
|
1048
508
|
}
|
|
1049
|
-
},
|
|
509
|
+
}, ke = {
|
|
1050
510
|
name: "SrOnlyCloseButton",
|
|
1051
511
|
components: {
|
|
1052
|
-
DtIcon:
|
|
1053
|
-
DtButton:
|
|
512
|
+
DtIcon: k,
|
|
513
|
+
DtButton: z
|
|
1054
514
|
},
|
|
1055
515
|
props: {
|
|
1056
516
|
/**
|
|
@@ -1069,23 +529,23 @@ const yt = /* @__PURE__ */ y(Oe, [["render", Te]]), Ae = {
|
|
|
1069
529
|
}
|
|
1070
530
|
}
|
|
1071
531
|
};
|
|
1072
|
-
function Le(e, t, s,
|
|
1073
|
-
const
|
|
1074
|
-
return
|
|
532
|
+
function Le(e, t, s, o, a, n) {
|
|
533
|
+
const p = m("dt-icon"), v = m("dt-button");
|
|
534
|
+
return i(), h(v, {
|
|
1075
535
|
id: "sr-only-close-button",
|
|
1076
536
|
"data-qa": "dt-sr-only-close-button",
|
|
1077
537
|
class: "d-vi-visible-sr",
|
|
1078
538
|
"aria-label": s.visuallyHiddenCloseLabel,
|
|
1079
|
-
onClick:
|
|
1080
|
-
onKeydown:
|
|
539
|
+
onClick: n.close,
|
|
540
|
+
onKeydown: g(A(n.close, ["prevent", "stop"]), ["space"])
|
|
1081
541
|
}, {
|
|
1082
|
-
default:
|
|
1083
|
-
|
|
542
|
+
default: f(() => [
|
|
543
|
+
P(p, { name: "close" })
|
|
1084
544
|
]),
|
|
1085
545
|
_: 1
|
|
1086
546
|
}, 8, ["aria-label", "onClick", "onKeydown"]);
|
|
1087
547
|
}
|
|
1088
|
-
const De = /* @__PURE__ */ y(
|
|
548
|
+
const De = /* @__PURE__ */ y(ke, [["render", Le]]), $ = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', Ne = `${$}:not([tabindex="-1"])`, Re = "button,[href],input,select,textarea,details,[tabindex]", Fe = {
|
|
1089
549
|
methods: {
|
|
1090
550
|
/**
|
|
1091
551
|
* get the first focusable element in your component, includes tabindex="-1".
|
|
@@ -1129,9 +589,9 @@ const De = /* @__PURE__ */ y(Pe, [["render", Le]]), W = ':not(:disabled):not([ar
|
|
|
1129
589
|
* @param {bool} includeNegativeTabIndex - will include tabindex="-1" in the list of focusable elements.
|
|
1130
590
|
*/
|
|
1131
591
|
_getFocusableElements(e = this.$el, t = !1) {
|
|
1132
|
-
return e ? [...e.querySelectorAll(Re)].filter((
|
|
1133
|
-
const a = window.getComputedStyle(
|
|
1134
|
-
return a.getPropertyValue("display") !== "none" && a.getPropertyValue("visibility") !== "hidden" &&
|
|
592
|
+
return e ? [...e.querySelectorAll(Re)].filter((o) => {
|
|
593
|
+
const a = window.getComputedStyle(o);
|
|
594
|
+
return a.getPropertyValue("display") !== "none" && a.getPropertyValue("visibility") !== "hidden" && o.matches(t ? $ : Ne);
|
|
1135
595
|
}) : [];
|
|
1136
596
|
},
|
|
1137
597
|
/**
|
|
@@ -1143,23 +603,23 @@ const De = /* @__PURE__ */ y(Pe, [["render", Le]]), W = ':not(:disabled):not([ar
|
|
|
1143
603
|
focusTrappedTabPress(e, t) {
|
|
1144
604
|
if (!(e.key === "Tab"))
|
|
1145
605
|
return;
|
|
1146
|
-
const
|
|
1147
|
-
if (!
|
|
606
|
+
const o = this._getFocusableElements(t);
|
|
607
|
+
if (!o.length) {
|
|
1148
608
|
e.preventDefault();
|
|
1149
609
|
return;
|
|
1150
610
|
}
|
|
1151
|
-
const a = this._getFirstFocusElement(
|
|
1152
|
-
e.shiftKey ? document.activeElement === a && (
|
|
611
|
+
const a = this._getFirstFocusElement(o), n = o[o.length - 1];
|
|
612
|
+
e.shiftKey ? document.activeElement === a && (n.focus(), e.preventDefault()) : document.activeElement === n && (a.focus(), e.preventDefault());
|
|
1153
613
|
}
|
|
1154
614
|
}
|
|
1155
615
|
}, D = {
|
|
1156
616
|
DEFAULT: "default",
|
|
1157
617
|
CUSTOM: "custom"
|
|
1158
|
-
},
|
|
618
|
+
}, I = {
|
|
1159
619
|
ARROW_KEYS: "arrow-keys",
|
|
1160
620
|
TAB: "tab",
|
|
1161
621
|
NONE: "none"
|
|
1162
|
-
},
|
|
622
|
+
}, He = {
|
|
1163
623
|
name: "DtItemLayout",
|
|
1164
624
|
props: {
|
|
1165
625
|
/**
|
|
@@ -1170,66 +630,66 @@ const De = /* @__PURE__ */ y(Pe, [["render", Le]]), W = ':not(:disabled):not([ar
|
|
|
1170
630
|
default: "div"
|
|
1171
631
|
}
|
|
1172
632
|
}
|
|
1173
|
-
},
|
|
633
|
+
}, Ve = {
|
|
1174
634
|
key: 0,
|
|
1175
635
|
"data-qa": "dt-item-layout-left-wrapper",
|
|
1176
636
|
class: "dt-item-layout--left"
|
|
1177
|
-
},
|
|
637
|
+
}, Be = {
|
|
1178
638
|
"data-qa": "dt-item-layout-content-wrapper",
|
|
1179
639
|
class: "dt-item-layout--content"
|
|
1180
|
-
},
|
|
640
|
+
}, qe = {
|
|
1181
641
|
key: 0,
|
|
1182
642
|
"data-qa": "dt-item-layout-title-wrapper",
|
|
1183
643
|
class: "dt-item-layout--title"
|
|
1184
|
-
},
|
|
644
|
+
}, xe = {
|
|
1185
645
|
key: 2,
|
|
1186
646
|
"data-qa": "dt-item-layout-bottom-wrapper",
|
|
1187
647
|
class: "dt-item-layout--bottom"
|
|
1188
|
-
},
|
|
648
|
+
}, Me = {
|
|
1189
649
|
key: 1,
|
|
1190
650
|
"data-qa": "dt-item-layout-right-wrapper",
|
|
1191
651
|
class: "dt-item-layout--right"
|
|
1192
|
-
},
|
|
652
|
+
}, je = {
|
|
1193
653
|
key: 2,
|
|
1194
654
|
"data-qa": "dt-item-layout-selected-wrapper",
|
|
1195
655
|
class: "dt-item-layout--selected"
|
|
1196
656
|
};
|
|
1197
|
-
function
|
|
1198
|
-
return
|
|
1199
|
-
default:
|
|
1200
|
-
e.$slots.left ? (
|
|
657
|
+
function Ke(e, t, s, o, a, n) {
|
|
658
|
+
return i(), h(b(s.as), { class: "dt-item-layout" }, {
|
|
659
|
+
default: f(() => [
|
|
660
|
+
e.$slots.left ? (i(), r("section", Ve, [
|
|
1201
661
|
c(e.$slots, "left", {}, void 0, !0)
|
|
1202
662
|
])) : d("", !0),
|
|
1203
|
-
|
|
1204
|
-
e.$slots.default ? (
|
|
663
|
+
E("section", Be, [
|
|
664
|
+
e.$slots.default ? (i(), r("div", qe, [
|
|
1205
665
|
c(e.$slots, "default", {}, void 0, !0)
|
|
1206
666
|
])) : d("", !0),
|
|
1207
|
-
e.$slots.subtitle ? (
|
|
667
|
+
e.$slots.subtitle ? (i(), r("div", {
|
|
1208
668
|
key: 1,
|
|
1209
669
|
"data-qa": "dt-item-layout-subtitle-wrapper",
|
|
1210
670
|
class: u(["dt-item-layout--subtitle", { "dt-item-layout--subtitle--with-title": e.$slots.default }])
|
|
1211
671
|
}, [
|
|
1212
672
|
c(e.$slots, "subtitle", {}, void 0, !0)
|
|
1213
673
|
], 2)) : d("", !0),
|
|
1214
|
-
e.$slots.bottom ? (
|
|
674
|
+
e.$slots.bottom ? (i(), r("div", xe, [
|
|
1215
675
|
c(e.$slots, "bottom", {}, void 0, !0)
|
|
1216
676
|
])) : d("", !0)
|
|
1217
677
|
]),
|
|
1218
|
-
e.$slots.right ? (
|
|
678
|
+
e.$slots.right ? (i(), r("section", Me, [
|
|
1219
679
|
c(e.$slots, "right", {}, void 0, !0)
|
|
1220
680
|
])) : d("", !0),
|
|
1221
|
-
e.$slots.selected ? (
|
|
681
|
+
e.$slots.selected ? (i(), r("section", je, [
|
|
1222
682
|
c(e.$slots, "selected", {}, void 0, !0)
|
|
1223
683
|
])) : d("", !0)
|
|
1224
684
|
]),
|
|
1225
685
|
_: 3
|
|
1226
686
|
});
|
|
1227
687
|
}
|
|
1228
|
-
const
|
|
688
|
+
const B = /* @__PURE__ */ y(He, [["render", Ke], ["__scopeId", "data-v-411cb81e"]]), ze = {
|
|
1229
689
|
name: "DtListItem",
|
|
1230
690
|
components: {
|
|
1231
|
-
DtItemLayout:
|
|
1232
|
-
DtIcon:
|
|
691
|
+
DtItemLayout: B,
|
|
692
|
+
DtIcon: k
|
|
1233
693
|
},
|
|
1234
694
|
/**
|
|
1235
695
|
* Value provided from keyboard_list_navigation.js using id prop.
|
|
@@ -1244,7 +704,7 @@ const V = /* @__PURE__ */ y(Fe, [["render", je], ["__scopeId", "data-v-411cb81e"
|
|
|
1244
704
|
id: {
|
|
1245
705
|
type: String,
|
|
1246
706
|
default() {
|
|
1247
|
-
return
|
|
707
|
+
return U.getUniqueString();
|
|
1248
708
|
}
|
|
1249
709
|
},
|
|
1250
710
|
/**
|
|
@@ -1279,8 +739,8 @@ const V = /* @__PURE__ */ y(Fe, [["render", je], ["__scopeId", "data-v-411cb81e"
|
|
|
1279
739
|
*/
|
|
1280
740
|
navigationType: {
|
|
1281
741
|
type: String,
|
|
1282
|
-
default:
|
|
1283
|
-
validator: (e) => Object.values(
|
|
742
|
+
default: I.NONE,
|
|
743
|
+
validator: (e) => Object.values(I).includes(e)
|
|
1284
744
|
},
|
|
1285
745
|
/**
|
|
1286
746
|
* Applies selected styles to the list item
|
|
@@ -1329,7 +789,7 @@ const V = /* @__PURE__ */ y(Fe, [["render", je], ["__scopeId", "data-v-411cb81e"
|
|
|
1329
789
|
listItemType() {
|
|
1330
790
|
switch (this.type) {
|
|
1331
791
|
case D.DEFAULT:
|
|
1332
|
-
return
|
|
792
|
+
return B;
|
|
1333
793
|
default:
|
|
1334
794
|
return null;
|
|
1335
795
|
}
|
|
@@ -1355,13 +815,13 @@ const V = /* @__PURE__ */ y(Fe, [["render", je], ["__scopeId", "data-v-411cb81e"
|
|
|
1355
815
|
return this.isHoverable ? this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted : !1;
|
|
1356
816
|
},
|
|
1357
817
|
isFocusable() {
|
|
1358
|
-
return this.navigationType ===
|
|
818
|
+
return this.navigationType === I.TAB;
|
|
1359
819
|
},
|
|
1360
820
|
/**
|
|
1361
821
|
* Whether to apply hover styles.
|
|
1362
822
|
*/
|
|
1363
823
|
isHoverable() {
|
|
1364
|
-
return this.navigationType !==
|
|
824
|
+
return this.navigationType !== I.NONE;
|
|
1365
825
|
}
|
|
1366
826
|
},
|
|
1367
827
|
methods: {
|
|
@@ -1376,31 +836,31 @@ const V = /* @__PURE__ */ y(Fe, [["render", je], ["__scopeId", "data-v-411cb81e"
|
|
|
1376
836
|
}
|
|
1377
837
|
}
|
|
1378
838
|
};
|
|
1379
|
-
function
|
|
1380
|
-
const
|
|
1381
|
-
return
|
|
839
|
+
function $e(e, t, s, o, a, n) {
|
|
840
|
+
const p = m("dt-icon");
|
|
841
|
+
return i(), h(b(s.elementType), w({
|
|
1382
842
|
id: s.id,
|
|
1383
843
|
class: ["dt-list-item", {
|
|
1384
|
-
"dt-list-item--focusable":
|
|
1385
|
-
"dt-list-item--highlighted":
|
|
1386
|
-
"dt-list-item--static": !
|
|
844
|
+
"dt-list-item--focusable": n.isFocusable,
|
|
845
|
+
"dt-list-item--highlighted": n.isHighlighted,
|
|
846
|
+
"dt-list-item--static": !n.isHoverable
|
|
1387
847
|
}],
|
|
1388
|
-
tabindex:
|
|
848
|
+
tabindex: n.isFocusable ? 0 : -1,
|
|
1389
849
|
role: s.role,
|
|
1390
|
-
"aria-selected":
|
|
1391
|
-
},
|
|
1392
|
-
default:
|
|
1393
|
-
|
|
1394
|
-
se(e.$slots, (
|
|
1395
|
-
name:
|
|
1396
|
-
fn:
|
|
1397
|
-
c(e.$slots,
|
|
850
|
+
"aria-selected": n.isHighlighted
|
|
851
|
+
}, K(n.listItemListeners)), {
|
|
852
|
+
default: f(() => [
|
|
853
|
+
n.listItemType ? (i(), h(b(n.listItemType), { key: 0 }, te({ _: 2 }, [
|
|
854
|
+
se(e.$slots, (v, S) => ({
|
|
855
|
+
name: S,
|
|
856
|
+
fn: f(() => [
|
|
857
|
+
c(e.$slots, S)
|
|
1398
858
|
])
|
|
1399
859
|
})),
|
|
1400
860
|
s.selected ? {
|
|
1401
861
|
name: "selected",
|
|
1402
|
-
fn:
|
|
1403
|
-
|
|
862
|
+
fn: f(() => [
|
|
863
|
+
P(p, {
|
|
1404
864
|
name: "check",
|
|
1405
865
|
size: "400",
|
|
1406
866
|
class: "dt-list-item--selected-icon"
|
|
@@ -1413,31 +873,31 @@ function We(e, t, s, i, a, o) {
|
|
|
1413
873
|
_: 3
|
|
1414
874
|
}, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
|
|
1415
875
|
}
|
|
1416
|
-
const
|
|
876
|
+
const _t = /* @__PURE__ */ y(ze, [["render", $e]]), _ = {
|
|
1417
877
|
default: "column",
|
|
1418
878
|
column: "column",
|
|
1419
879
|
row: "row",
|
|
1420
880
|
"row-reverse": "row-reverse",
|
|
1421
881
|
"column-reverse": "column-reverse"
|
|
1422
|
-
},
|
|
882
|
+
}, W = ["sm", "md", "lg", "xl"], R = ["0", "100", "200", "300", "400", "500", "600"], q = {
|
|
1423
883
|
none: void 0,
|
|
1424
884
|
small: "d-p4",
|
|
1425
885
|
medium: "d-p8",
|
|
1426
886
|
large: "d-p16"
|
|
1427
|
-
},
|
|
887
|
+
}, We = {
|
|
1428
888
|
none: void 0,
|
|
1429
889
|
small: "d-pl4",
|
|
1430
890
|
medium: "d-pl8",
|
|
1431
891
|
large: "d-pl16"
|
|
1432
|
-
},
|
|
1433
|
-
|
|
1434
|
-
],
|
|
892
|
+
}, Ge = ["dialog", "menu", "listbox", "tree", "grid"], Ue = ["", "anchor"], Ye = ["none", "dialog", "first"], Ze = ["parent", "body"], Xe = [
|
|
893
|
+
...Y
|
|
894
|
+
], gt = [
|
|
1435
895
|
...Z
|
|
1436
896
|
], Je = {
|
|
1437
897
|
name: "PopoverHeaderFooter",
|
|
1438
898
|
components: {
|
|
1439
|
-
DtButton:
|
|
1440
|
-
DtIcon:
|
|
899
|
+
DtButton: z,
|
|
900
|
+
DtIcon: k
|
|
1441
901
|
},
|
|
1442
902
|
props: {
|
|
1443
903
|
// eslint-disable-next-line vue/require-default-prop
|
|
@@ -1483,7 +943,7 @@ const gt = /* @__PURE__ */ y(Ke, [["render", We]]), v = {
|
|
|
1483
943
|
],
|
|
1484
944
|
data() {
|
|
1485
945
|
return {
|
|
1486
|
-
hasSlotContent:
|
|
946
|
+
hasSlotContent: j
|
|
1487
947
|
};
|
|
1488
948
|
},
|
|
1489
949
|
methods: {
|
|
@@ -1494,16 +954,16 @@ const gt = /* @__PURE__ */ y(Ke, [["render", We]]), v = {
|
|
|
1494
954
|
}
|
|
1495
955
|
}
|
|
1496
956
|
};
|
|
1497
|
-
function Qe(e, t, s,
|
|
1498
|
-
const
|
|
1499
|
-
return
|
|
957
|
+
function Qe(e, t, s, o, a, n) {
|
|
958
|
+
const p = m("dt-icon"), v = m("dt-button");
|
|
959
|
+
return i(), r("div", {
|
|
1500
960
|
"data-qa": "dt-popover-header-footer",
|
|
1501
961
|
class: u({
|
|
1502
962
|
"d-popover__header": s.type === "header",
|
|
1503
963
|
"d-popover__footer": s.type === "footer"
|
|
1504
964
|
})
|
|
1505
965
|
}, [
|
|
1506
|
-
a.hasSlotContent(e.$slots.content) ? (
|
|
966
|
+
a.hasSlotContent(e.$slots.content) ? (i(), r("div", {
|
|
1507
967
|
key: 0,
|
|
1508
968
|
"data-qa": "dt-popover-header-footer-content",
|
|
1509
969
|
class: u([{
|
|
@@ -1513,7 +973,7 @@ function Qe(e, t, s, i, a, o) {
|
|
|
1513
973
|
}, [
|
|
1514
974
|
c(e.$slots, "content")
|
|
1515
975
|
], 2)) : d("", !0),
|
|
1516
|
-
s.showCloseButton ? (
|
|
976
|
+
s.showCloseButton ? (i(), h(v, w({
|
|
1517
977
|
key: 1,
|
|
1518
978
|
ref: "popover__close-button",
|
|
1519
979
|
"data-qa": "dt-popover-close",
|
|
@@ -1525,10 +985,10 @@ function Qe(e, t, s, i, a, o) {
|
|
|
1525
985
|
kind: "muted",
|
|
1526
986
|
circle: ""
|
|
1527
987
|
}, s.closeButtonProps, {
|
|
1528
|
-
onClick: t[0] || (t[0] = (
|
|
988
|
+
onClick: t[0] || (t[0] = (S) => e.$emit("close"))
|
|
1529
989
|
}), {
|
|
1530
|
-
icon:
|
|
1531
|
-
|
|
990
|
+
icon: f(() => [
|
|
991
|
+
P(p, {
|
|
1532
992
|
name: "close",
|
|
1533
993
|
size: "300"
|
|
1534
994
|
})
|
|
@@ -1547,7 +1007,7 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1547
1007
|
DtLazyShow: X,
|
|
1548
1008
|
PopoverHeaderFooter: et
|
|
1549
1009
|
},
|
|
1550
|
-
mixins: [
|
|
1010
|
+
mixins: [Fe, Pe],
|
|
1551
1011
|
props: {
|
|
1552
1012
|
/**
|
|
1553
1013
|
* Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
|
|
@@ -1590,7 +1050,7 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1590
1050
|
role: {
|
|
1591
1051
|
type: String,
|
|
1592
1052
|
default: "dialog",
|
|
1593
|
-
validator: (e) =>
|
|
1053
|
+
validator: (e) => Ge.includes(e)
|
|
1594
1054
|
},
|
|
1595
1055
|
/**
|
|
1596
1056
|
* ID of the element that serves as the label for the popover content.
|
|
@@ -1626,7 +1086,7 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1626
1086
|
padding: {
|
|
1627
1087
|
type: String,
|
|
1628
1088
|
default: "large",
|
|
1629
|
-
validator: (e) => Object.keys(
|
|
1089
|
+
validator: (e) => Object.keys(q).some((t) => t === e)
|
|
1630
1090
|
},
|
|
1631
1091
|
/**
|
|
1632
1092
|
* Additional class name for the content wrapper element.
|
|
@@ -1643,7 +1103,7 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1643
1103
|
contentWidth: {
|
|
1644
1104
|
type: String,
|
|
1645
1105
|
default: "",
|
|
1646
|
-
validator: (e) =>
|
|
1106
|
+
validator: (e) => Ue.includes(e)
|
|
1647
1107
|
},
|
|
1648
1108
|
/**
|
|
1649
1109
|
* Whether to apply transition on initial render in the content lazy show component.
|
|
@@ -1835,7 +1295,7 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1835
1295
|
initialFocusElement: {
|
|
1836
1296
|
type: [String, HTMLElement],
|
|
1837
1297
|
default: "first",
|
|
1838
|
-
validator: (e) =>
|
|
1298
|
+
validator: (e) => Ye.includes(e) || e instanceof HTMLElement || e.startsWith("#")
|
|
1839
1299
|
},
|
|
1840
1300
|
/**
|
|
1841
1301
|
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
@@ -1863,6 +1323,17 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1863
1323
|
hovercard: {
|
|
1864
1324
|
type: Boolean,
|
|
1865
1325
|
default: !1
|
|
1326
|
+
},
|
|
1327
|
+
/**
|
|
1328
|
+
* The timer is used only when the hovercard prop is true.
|
|
1329
|
+
* It defines the delays when opening several hovercards.
|
|
1330
|
+
* It must have the keys: enter, leave and current.
|
|
1331
|
+
* If null, the default delay of 300ms will be used.
|
|
1332
|
+
*/
|
|
1333
|
+
timer: {
|
|
1334
|
+
type: [Object, null],
|
|
1335
|
+
default: null,
|
|
1336
|
+
validator: (e) => e === null || e.enter && e.leave && Object.keys(e).includes("current")
|
|
1866
1337
|
}
|
|
1867
1338
|
},
|
|
1868
1339
|
emits: [
|
|
@@ -1888,15 +1359,15 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1888
1359
|
],
|
|
1889
1360
|
data() {
|
|
1890
1361
|
return {
|
|
1891
|
-
POPOVER_PADDING_CLASSES:
|
|
1892
|
-
POPOVER_HEADER_FOOTER_PADDING_CLASSES:
|
|
1362
|
+
POPOVER_PADDING_CLASSES: q,
|
|
1363
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES: We,
|
|
1893
1364
|
intersectionObserver: null,
|
|
1894
1365
|
isOutsideViewport: !1,
|
|
1895
1366
|
isOpen: !1,
|
|
1896
1367
|
toAppear: !1,
|
|
1897
1368
|
anchorEl: null,
|
|
1898
1369
|
popoverContentEl: null,
|
|
1899
|
-
hasSlotContent:
|
|
1370
|
+
hasSlotContent: j,
|
|
1900
1371
|
inTimer: null,
|
|
1901
1372
|
outTimer: null
|
|
1902
1373
|
};
|
|
@@ -1920,6 +1391,10 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1920
1391
|
},
|
|
1921
1392
|
labelledBy() {
|
|
1922
1393
|
return this.ariaLabelledby || !this.ariaLabel && N("DtPopover__anchor");
|
|
1394
|
+
},
|
|
1395
|
+
currentHovercard() {
|
|
1396
|
+
var e;
|
|
1397
|
+
return (e = this.timer) == null ? void 0 : e.current;
|
|
1923
1398
|
}
|
|
1924
1399
|
},
|
|
1925
1400
|
watch: {
|
|
@@ -1979,6 +1454,9 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1979
1454
|
},
|
|
1980
1455
|
isOpen(e, t) {
|
|
1981
1456
|
e ? (this.initTippyInstance(), this.tip.show()) : !e && t !== e && (this.removeEventListeners(), this.tip.hide());
|
|
1457
|
+
},
|
|
1458
|
+
currentHovercard() {
|
|
1459
|
+
this.hovercard && this.timer && (this.currentHovercard === this.id ? this.isOpen = !0 : this.isOpen = !1);
|
|
1982
1460
|
}
|
|
1983
1461
|
},
|
|
1984
1462
|
mounted() {
|
|
@@ -1994,8 +1472,8 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
1994
1472
|
******************/
|
|
1995
1473
|
methods: {
|
|
1996
1474
|
hasIntersectedViewport(e) {
|
|
1997
|
-
var
|
|
1998
|
-
const t = (
|
|
1475
|
+
var o;
|
|
1476
|
+
const t = (o = e == null ? void 0 : e[0]) == null ? void 0 : o.target;
|
|
1999
1477
|
if (!t)
|
|
2000
1478
|
return;
|
|
2001
1479
|
const s = J(t);
|
|
@@ -2018,9 +1496,9 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
2018
1496
|
(e = this.anchorEl) != null && e.closest(".d-zi-drawer") ? 650 : 300;
|
|
2019
1497
|
},
|
|
2020
1498
|
defaultToggleOpen(e) {
|
|
2021
|
-
var t, s,
|
|
1499
|
+
var t, s, o;
|
|
2022
1500
|
if (!this.hovercard && !this.openOnContext && (this.open === null || this.open === void 0)) {
|
|
2023
|
-
if (!((t = this.anchorEl) != null && t.contains(e.target)) && !((s = this.anchorEl) != null && s.isEqualNode(e.target)) || (
|
|
1501
|
+
if (!((t = this.anchorEl) != null && t.contains(e.target)) && !((s = this.anchorEl) != null && s.isEqualNode(e.target)) || (o = this.anchorEl) != null && o.disabled)
|
|
2024
1502
|
return;
|
|
2025
1503
|
this.toggleOpen();
|
|
2026
1504
|
}
|
|
@@ -2092,9 +1570,9 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
2092
1570
|
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();
|
|
2093
1571
|
},
|
|
2094
1572
|
focusInitialElementById() {
|
|
2095
|
-
var t, s,
|
|
1573
|
+
var t, s, o;
|
|
2096
1574
|
const e = (s = (t = this.$refs.content) == null ? void 0 : t.$el) == null ? void 0 : s.querySelector(this.initialFocusElement);
|
|
2097
|
-
e ? e.focus() : console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'), e ? e.focus() : (
|
|
1575
|
+
e ? e.focus() : console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'), e ? e.focus() : (o = this.$refs.content) == null || o.$el.focus();
|
|
2098
1576
|
},
|
|
2099
1577
|
onResize() {
|
|
2100
1578
|
this.closePopover();
|
|
@@ -2112,8 +1590,8 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
2112
1590
|
await this.$nextTick(), this.popoverContentEl.style.width = `${(e = this.anchorEl) == null ? void 0 : e.clientWidth}px`;
|
|
2113
1591
|
},
|
|
2114
1592
|
focusFirstElementIfNeeded(e) {
|
|
2115
|
-
var s,
|
|
2116
|
-
this._getFocusableElements(e, !0).length !== 0 ? this.focusFirstElement(e) : this.showCloseButton ? (s = this.$refs.popover__header) == null || s.focusCloseButton() : (
|
|
1593
|
+
var s, o;
|
|
1594
|
+
this._getFocusableElements(e, !0).length !== 0 ? this.focusFirstElement(e) : this.showCloseButton ? (s = this.$refs.popover__header) == null || s.focusCloseButton() : (o = this.$refs.content) == null || o.$el.focus();
|
|
2117
1595
|
},
|
|
2118
1596
|
initTippyInstance() {
|
|
2119
1597
|
var e, t;
|
|
@@ -2140,66 +1618,66 @@ const et = /* @__PURE__ */ y(Je, [["render", Qe]]), tt = {
|
|
|
2140
1618
|
setInTimer() {
|
|
2141
1619
|
this.inTimer = setTimeout(() => {
|
|
2142
1620
|
this.isOpen = !0;
|
|
2143
|
-
},
|
|
1621
|
+
}, F);
|
|
2144
1622
|
},
|
|
2145
1623
|
setOutTimer() {
|
|
2146
1624
|
this.outTimer = setTimeout(() => {
|
|
2147
1625
|
this.isOpen = !1;
|
|
2148
|
-
},
|
|
1626
|
+
}, F);
|
|
2149
1627
|
},
|
|
2150
|
-
onEnterAnchor(
|
|
2151
|
-
this.hovercard && (clearTimeout(this.outTimer), this.setInTimer(
|
|
1628
|
+
onEnterAnchor() {
|
|
1629
|
+
this.hovercard && (this.timer ? this.timer.enter(this.id) : (clearTimeout(this.outTimer), this.setInTimer()));
|
|
2152
1630
|
},
|
|
2153
|
-
onLeaveAnchor(
|
|
2154
|
-
this.hovercard && (clearTimeout(this.inTimer), this.setOutTimer(
|
|
1631
|
+
onLeaveAnchor() {
|
|
1632
|
+
this.hovercard && (this.timer ? this.timer.leave() : (clearTimeout(this.inTimer), this.setOutTimer()));
|
|
2155
1633
|
},
|
|
2156
1634
|
onEnterContent() {
|
|
2157
|
-
this.hovercard && clearTimeout(this.outTimer);
|
|
1635
|
+
this.hovercard && (this.timer ? this.timer.enter(this.id) : clearTimeout(this.outTimer));
|
|
2158
1636
|
},
|
|
2159
|
-
onLeaveContent(
|
|
2160
|
-
this.hovercard && this.setOutTimer(
|
|
1637
|
+
onLeaveContent() {
|
|
1638
|
+
this.hovercard && (this.timer ? this.timer.leave() : this.setOutTimer());
|
|
2161
1639
|
}
|
|
2162
1640
|
// ============================================================================
|
|
2163
1641
|
// $ HOVERCARD
|
|
2164
1642
|
// ----------------------------------------------------------------------------
|
|
2165
1643
|
}
|
|
2166
|
-
}, st = ["aria-hidden"],
|
|
2167
|
-
function
|
|
2168
|
-
const
|
|
2169
|
-
return
|
|
2170
|
-
s.modal && a.isOpen ? (
|
|
1644
|
+
}, st = ["aria-hidden"], nt = ["id", "data-qa", "tabindex"], at = ["data-qa"];
|
|
1645
|
+
function it(e, t, s, o, a, n) {
|
|
1646
|
+
const p = m("popover-header-footer"), v = m("sr-only-close-button"), S = m("dt-lazy-show");
|
|
1647
|
+
return i(), r("div", null, [
|
|
1648
|
+
s.modal && a.isOpen ? (i(), h(ne, {
|
|
2171
1649
|
key: 0,
|
|
2172
1650
|
to: "body"
|
|
2173
1651
|
}, [
|
|
2174
|
-
|
|
1652
|
+
E("div", {
|
|
2175
1653
|
class: "d-modal--transparent",
|
|
2176
1654
|
"aria-hidden": s.modal && a.isOpen ? "false" : "true",
|
|
2177
|
-
onClick: t[0] || (t[0] =
|
|
1655
|
+
onClick: t[0] || (t[0] = A(() => {
|
|
2178
1656
|
}, ["prevent", "stop"]))
|
|
2179
1657
|
}, null, 8, st)
|
|
2180
1658
|
])) : d("", !0),
|
|
2181
|
-
(
|
|
1659
|
+
(i(), h(b(s.elementType), {
|
|
2182
1660
|
ref: "popover",
|
|
2183
1661
|
class: u(["d-popover", { "d-popover__anchor--opened": a.isOpen }]),
|
|
2184
1662
|
"data-qa": "dt-popover-container"
|
|
2185
1663
|
}, {
|
|
2186
|
-
default:
|
|
2187
|
-
|
|
2188
|
-
id: !s.ariaLabelledby &&
|
|
1664
|
+
default: f(() => [
|
|
1665
|
+
E("div", {
|
|
1666
|
+
id: !s.ariaLabelledby && n.labelledBy,
|
|
2189
1667
|
ref: "anchor",
|
|
2190
|
-
"data-qa": "dt-popover-anchor",
|
|
1668
|
+
"data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}-anchor` : "dt-popover-anchor",
|
|
2191
1669
|
tabindex: s.openOnContext ? 0 : void 0,
|
|
2192
|
-
onClickCapture: t[1] || (t[1] = (...
|
|
2193
|
-
onContextmenu: t[2] || (t[2] = (...
|
|
1670
|
+
onClickCapture: t[1] || (t[1] = (...l) => n.defaultToggleOpen && n.defaultToggleOpen(...l)),
|
|
1671
|
+
onContextmenu: t[2] || (t[2] = (...l) => n.onContext && n.onContext(...l)),
|
|
2194
1672
|
onKeydown: [
|
|
2195
|
-
t[3] || (t[3] =
|
|
2196
|
-
t[4] || (t[4] =
|
|
2197
|
-
t[6] || (t[6] =
|
|
2198
|
-
t[7] || (t[7] =
|
|
1673
|
+
t[3] || (t[3] = g(A((...l) => n.onArrowKeyPress && n.onArrowKeyPress(...l), ["prevent"]), ["up"])),
|
|
1674
|
+
t[4] || (t[4] = g(A((...l) => n.onArrowKeyPress && n.onArrowKeyPress(...l), ["prevent"]), ["down"])),
|
|
1675
|
+
t[6] || (t[6] = g((l) => e.$emit("keydown", l), ["enter"])),
|
|
1676
|
+
t[7] || (t[7] = g((l) => e.$emit("keydown", l), ["space"]))
|
|
2199
1677
|
],
|
|
2200
|
-
onKeydownCapture: t[5] || (t[5] =
|
|
2201
|
-
onMouseenter: t[8] || (t[8] = (...
|
|
2202
|
-
onMouseleave: t[9] || (t[9] = (...
|
|
1678
|
+
onKeydownCapture: t[5] || (t[5] = g((...l) => n.closePopover && n.closePopover(...l), ["escape"])),
|
|
1679
|
+
onMouseenter: t[8] || (t[8] = (...l) => n.onEnterAnchor && n.onEnterAnchor(...l)),
|
|
1680
|
+
onMouseleave: t[9] || (t[9] = (...l) => n.onLeaveAnchor && n.onLeaveAnchor(...l))
|
|
2203
1681
|
}, [
|
|
2204
1682
|
c(e.$slots, "anchor", {
|
|
2205
1683
|
attrs: {
|
|
@@ -2208,14 +1686,14 @@ function at(e, t, s, i, a, o) {
|
|
|
2208
1686
|
"aria-haspopup": s.role
|
|
2209
1687
|
}
|
|
2210
1688
|
})
|
|
2211
|
-
], 40,
|
|
2212
|
-
|
|
1689
|
+
], 40, nt),
|
|
1690
|
+
P(S, w({
|
|
2213
1691
|
id: s.id,
|
|
2214
1692
|
ref: "content",
|
|
2215
1693
|
role: s.role,
|
|
2216
|
-
"data-qa": "dt-popover",
|
|
1694
|
+
"data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}__dialog` : "dt-popover",
|
|
2217
1695
|
"aria-hidden": `${!a.isOpen}`,
|
|
2218
|
-
"aria-labelledby":
|
|
1696
|
+
"aria-labelledby": n.labelledBy,
|
|
2219
1697
|
"aria-label": s.ariaLabel,
|
|
2220
1698
|
"aria-modal": `${!s.modal}`,
|
|
2221
1699
|
transition: s.transition,
|
|
@@ -2223,17 +1701,17 @@ function at(e, t, s, i, a, o) {
|
|
|
2223
1701
|
appear: a.toAppear,
|
|
2224
1702
|
class: ["d-popover__dialog", { "d-popover__dialog--modal": s.modal }, s.dialogClass],
|
|
2225
1703
|
style: {
|
|
2226
|
-
"max-height":
|
|
1704
|
+
"max-height": n.calculatedMaxHeight,
|
|
2227
1705
|
"max-width": s.maxWidth
|
|
2228
1706
|
},
|
|
2229
1707
|
css: e.$attrs.css,
|
|
2230
1708
|
tabindex: s.contentTabindex
|
|
2231
|
-
},
|
|
2232
|
-
onMouseenter:
|
|
2233
|
-
onMouseleave:
|
|
1709
|
+
}, K(n.popoverListeners), {
|
|
1710
|
+
onMouseenter: n.onEnterContent,
|
|
1711
|
+
onMouseleave: n.onLeaveContent
|
|
2234
1712
|
}), {
|
|
2235
|
-
default:
|
|
2236
|
-
a.hasSlotContent(e.$slots.headerContent) || s.showCloseButton ? (
|
|
1713
|
+
default: f(() => [
|
|
1714
|
+
a.hasSlotContent(e.$slots.headerContent) || s.showCloseButton ? (i(), h(p, {
|
|
2237
1715
|
key: 0,
|
|
2238
1716
|
ref: "popover__header",
|
|
2239
1717
|
class: u(a.POPOVER_HEADER_FOOTER_PADDING_CLASSES[s.padding]),
|
|
@@ -2241,89 +1719,89 @@ function at(e, t, s, i, a, o) {
|
|
|
2241
1719
|
type: "header",
|
|
2242
1720
|
"show-close-button": s.showCloseButton,
|
|
2243
1721
|
"close-button-props": s.closeButtonProps,
|
|
2244
|
-
onClose:
|
|
1722
|
+
onClose: n.closePopover
|
|
2245
1723
|
}, {
|
|
2246
|
-
content:
|
|
2247
|
-
c(e.$slots, "headerContent", { close:
|
|
1724
|
+
content: f(() => [
|
|
1725
|
+
c(e.$slots, "headerContent", { close: n.closePopover })
|
|
2248
1726
|
]),
|
|
2249
1727
|
_: 3
|
|
2250
1728
|
}, 8, ["class", "content-class", "show-close-button", "close-button-props", "onClose"])) : d("", !0),
|
|
2251
|
-
|
|
1729
|
+
E("div", {
|
|
2252
1730
|
ref: "popover__content",
|
|
2253
|
-
"data-qa": "dt-popover-content",
|
|
1731
|
+
"data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}-content` : "dt-popover-content",
|
|
2254
1732
|
class: u([
|
|
2255
1733
|
"d-popover__content",
|
|
2256
1734
|
a.POPOVER_PADDING_CLASSES[s.padding],
|
|
2257
1735
|
s.contentClass
|
|
2258
1736
|
])
|
|
2259
1737
|
}, [
|
|
2260
|
-
c(e.$slots, "content", { close:
|
|
2261
|
-
],
|
|
2262
|
-
a.hasSlotContent(e.$slots.footerContent) ? (
|
|
1738
|
+
c(e.$slots, "content", { close: n.closePopover })
|
|
1739
|
+
], 10, at),
|
|
1740
|
+
a.hasSlotContent(e.$slots.footerContent) ? (i(), h(p, {
|
|
2263
1741
|
key: 1,
|
|
2264
1742
|
ref: "popover__footer",
|
|
2265
1743
|
type: "footer",
|
|
2266
1744
|
class: u(a.POPOVER_HEADER_FOOTER_PADDING_CLASSES[s.padding]),
|
|
2267
1745
|
"content-class": s.footerClass
|
|
2268
1746
|
}, {
|
|
2269
|
-
content:
|
|
2270
|
-
c(e.$slots, "footerContent", { close:
|
|
1747
|
+
content: f(() => [
|
|
1748
|
+
c(e.$slots, "footerContent", { close: n.closePopover })
|
|
2271
1749
|
]),
|
|
2272
1750
|
_: 3
|
|
2273
1751
|
}, 8, ["class", "content-class"])) : d("", !0),
|
|
2274
|
-
e.showVisuallyHiddenClose ? (
|
|
1752
|
+
e.showVisuallyHiddenClose ? (i(), h(v, {
|
|
2275
1753
|
key: 2,
|
|
2276
1754
|
"visually-hidden-close-label": e.visuallyHiddenCloseLabel,
|
|
2277
|
-
onClose:
|
|
1755
|
+
onClose: n.closePopover
|
|
2278
1756
|
}, null, 8, ["visually-hidden-close-label", "onClose"])) : d("", !0)
|
|
2279
1757
|
]),
|
|
2280
1758
|
_: 3
|
|
2281
|
-
}, 16, ["id", "role", "aria-hidden", "aria-labelledby", "aria-label", "aria-modal", "transition", "show", "appear", "class", "style", "css", "tabindex", "onMouseenter", "onMouseleave"])
|
|
1759
|
+
}, 16, ["id", "role", "data-qa", "aria-hidden", "aria-labelledby", "aria-label", "aria-modal", "transition", "show", "appear", "class", "style", "css", "tabindex", "onMouseenter", "onMouseleave"])
|
|
2282
1760
|
]),
|
|
2283
1761
|
_: 3
|
|
2284
1762
|
}, 8, ["class"]))
|
|
2285
1763
|
]);
|
|
2286
1764
|
}
|
|
2287
|
-
const
|
|
2288
|
-
function
|
|
2289
|
-
return e ===
|
|
1765
|
+
const Et = /* @__PURE__ */ y(tt, [["render", it]]);
|
|
1766
|
+
function x(e) {
|
|
1767
|
+
return e === _.default;
|
|
2290
1768
|
}
|
|
2291
|
-
function
|
|
2292
|
-
if (
|
|
2293
|
-
return
|
|
2294
|
-
if (
|
|
1769
|
+
function M(e) {
|
|
1770
|
+
if (O(e) === "string")
|
|
1771
|
+
return x(e) ? null : _[e];
|
|
1772
|
+
if (O(e) === "object") {
|
|
2295
1773
|
const { default: t } = e;
|
|
2296
|
-
return
|
|
1774
|
+
return x(t) ? null : _[t];
|
|
2297
1775
|
} else
|
|
2298
1776
|
return null;
|
|
2299
1777
|
}
|
|
2300
|
-
function
|
|
1778
|
+
function O(e) {
|
|
2301
1779
|
return typeof e;
|
|
2302
1780
|
}
|
|
2303
|
-
function
|
|
2304
|
-
return
|
|
1781
|
+
function ot(e) {
|
|
1782
|
+
return M(e) ? `d-stack--${_[M(e)]}` : null;
|
|
2305
1783
|
}
|
|
2306
|
-
function
|
|
2307
|
-
return
|
|
2308
|
-
...
|
|
1784
|
+
function lt(e) {
|
|
1785
|
+
return O(e) === "object" ? [
|
|
1786
|
+
...W.map((t) => e[t] ? `d-stack--${t}--${e[t]}` : null)
|
|
2309
1787
|
] : null;
|
|
2310
1788
|
}
|
|
2311
1789
|
function rt(e) {
|
|
2312
1790
|
return R.includes(e) ? `d-stack--gap-${e}` : null;
|
|
2313
1791
|
}
|
|
2314
|
-
function
|
|
2315
|
-
if (
|
|
2316
|
-
return Object.keys(
|
|
2317
|
-
if (
|
|
1792
|
+
function dt(e) {
|
|
1793
|
+
if (O(e) === "string")
|
|
1794
|
+
return Object.keys(_).includes(e);
|
|
1795
|
+
if (O(e) === "object") {
|
|
2318
1796
|
const { default: t } = e;
|
|
2319
|
-
return Object.keys(
|
|
1797
|
+
return Object.keys(_).includes(t);
|
|
2320
1798
|
} else
|
|
2321
1799
|
return null;
|
|
2322
1800
|
}
|
|
2323
|
-
function
|
|
1801
|
+
function ct(e) {
|
|
2324
1802
|
return R.includes(e);
|
|
2325
1803
|
}
|
|
2326
|
-
const
|
|
1804
|
+
const ut = {
|
|
2327
1805
|
name: "DtStack",
|
|
2328
1806
|
props: {
|
|
2329
1807
|
/**
|
|
@@ -2337,7 +1815,7 @@ const ct = {
|
|
|
2337
1815
|
direction: {
|
|
2338
1816
|
type: [String, Object],
|
|
2339
1817
|
default: "column",
|
|
2340
|
-
validator: (e) =>
|
|
1818
|
+
validator: (e) => dt(e)
|
|
2341
1819
|
},
|
|
2342
1820
|
/**
|
|
2343
1821
|
* Set this prop to render stack as a specific HTML element.
|
|
@@ -2353,14 +1831,14 @@ const ct = {
|
|
|
2353
1831
|
gap: {
|
|
2354
1832
|
type: String,
|
|
2355
1833
|
default: "0",
|
|
2356
|
-
validator: (e) =>
|
|
1834
|
+
validator: (e) => ct(e)
|
|
2357
1835
|
}
|
|
2358
1836
|
},
|
|
2359
1837
|
data() {
|
|
2360
1838
|
return {
|
|
2361
|
-
DT_STACK_DIRECTION:
|
|
1839
|
+
DT_STACK_DIRECTION: _,
|
|
2362
1840
|
DT_STACK_GAP: R,
|
|
2363
|
-
DT_STACK_RESPONSIVE_BREAKPOINTS:
|
|
1841
|
+
DT_STACK_RESPONSIVE_BREAKPOINTS: W
|
|
2364
1842
|
};
|
|
2365
1843
|
},
|
|
2366
1844
|
computed: {
|
|
@@ -2368,60 +1846,60 @@ const ct = {
|
|
|
2368
1846
|
return rt(this.gap);
|
|
2369
1847
|
},
|
|
2370
1848
|
defaultDirection() {
|
|
2371
|
-
return
|
|
1849
|
+
return ot(this.direction);
|
|
2372
1850
|
},
|
|
2373
1851
|
stackResponsive() {
|
|
2374
|
-
return
|
|
1852
|
+
return lt(this.direction);
|
|
2375
1853
|
}
|
|
2376
1854
|
}
|
|
2377
1855
|
};
|
|
2378
|
-
function
|
|
2379
|
-
return
|
|
1856
|
+
function ht(e, t, s, o, a, n) {
|
|
1857
|
+
return i(), h(b(s.as), {
|
|
2380
1858
|
class: u([
|
|
2381
1859
|
"d-stack",
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
1860
|
+
n.defaultDirection,
|
|
1861
|
+
n.stackResponsive,
|
|
1862
|
+
n.stackGap
|
|
2385
1863
|
])
|
|
2386
1864
|
}, {
|
|
2387
|
-
default:
|
|
1865
|
+
default: f(() => [
|
|
2388
1866
|
c(e.$slots, "default")
|
|
2389
1867
|
]),
|
|
2390
1868
|
_: 3
|
|
2391
1869
|
}, 8, ["class"]);
|
|
2392
1870
|
}
|
|
2393
|
-
const
|
|
1871
|
+
const bt = /* @__PURE__ */ y(ut, [["render", ht]]);
|
|
2394
1872
|
export {
|
|
2395
1873
|
L as A,
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
1874
|
+
_t as D,
|
|
1875
|
+
I as L,
|
|
1876
|
+
Fe as M,
|
|
2399
1877
|
Ze as P,
|
|
2400
1878
|
De as S,
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
1879
|
+
bt as a,
|
|
1880
|
+
vt as b,
|
|
1881
|
+
yt as c,
|
|
1882
|
+
Et as d,
|
|
1883
|
+
Pe as e,
|
|
2406
1884
|
R as f,
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
1885
|
+
q as g,
|
|
1886
|
+
Ue as h,
|
|
1887
|
+
B as i,
|
|
1888
|
+
pe as j,
|
|
1889
|
+
me as k,
|
|
1890
|
+
H as l,
|
|
2413
1891
|
ye as m,
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
1892
|
+
ve as n,
|
|
1893
|
+
V as o,
|
|
1894
|
+
D as p,
|
|
1895
|
+
We as q,
|
|
1896
|
+
Ge as r,
|
|
1897
|
+
Ye as s,
|
|
2420
1898
|
Xe as t,
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
1899
|
+
gt as u,
|
|
1900
|
+
fe as v,
|
|
1901
|
+
C as w,
|
|
2424
1902
|
re as x,
|
|
2425
|
-
|
|
2426
|
-
|
|
1903
|
+
_ as y,
|
|
1904
|
+
W as z
|
|
2427
1905
|
};
|