@dialpad/dialtone-vue 3.82.1 → 3.83.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.
Files changed (37) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +20 -0
  3. package/dist/component-documentation.json +1 -1
  4. package/dist/dialtone-vue.cjs +6 -6
  5. package/dist/dialtone-vue.js +1588 -1824
  6. package/dist/{emoji-dedd5dd0.js → emoji-3ed8aeab.js} +4134 -4110
  7. package/dist/{emoji-917a7ee9.cjs → emoji-9b6e4b5a.cjs} +6 -6
  8. package/dist/emoji.cjs +1 -1
  9. package/dist/emoji.js +2 -2
  10. package/dist/{emoji_text_wrapper-9db510dd.js → emoji_text_wrapper-4fc20727.js} +1 -1
  11. package/dist/{emoji_text_wrapper-19651450.cjs → emoji_text_wrapper-b1235087.cjs} +1 -1
  12. package/dist/message_input.cjs +17 -17
  13. package/dist/message_input.js +2231 -1970
  14. package/dist/notice-119b7aa6.cjs +2 -0
  15. package/dist/{notice-67c02f04.js → notice-702ad033.js} +448 -189
  16. package/dist/style.css +1 -1
  17. package/dist/types/components/emoji/emoji.vue.d.ts +2 -3
  18. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiList.vue.d.ts +31 -0
  19. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiList.vue.d.ts.map +1 -0
  20. package/dist/types/components/rich_text_editor/extensions/emoji/emoji.d.ts +2 -0
  21. package/dist/types/components/rich_text_editor/extensions/emoji/emoji.d.ts.map +1 -1
  22. package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts +18 -0
  23. package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +1 -0
  24. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +1 -0
  25. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  26. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts +123 -0
  27. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts.map +1 -0
  28. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill_constants.d.ts +11 -0
  29. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill_constants.d.ts.map +1 -0
  30. package/dist/types/recipes/conversation_view/feed_pill/index.d.ts +3 -0
  31. package/dist/types/recipes/conversation_view/feed_pill/index.d.ts.map +1 -0
  32. package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +2 -2
  33. package/dist/types/recipes/leftbar/callbox/callbox_constants.d.ts +4 -4
  34. package/dist/types/recipes/leftbar/callbox/index.d.ts +1 -1
  35. package/dist/types/recipes/list_items/contact_info/contact_info.vue.d.ts +1 -1
  36. package/package.json +4 -2
  37. package/dist/notice-e6ddfea6.cjs +0 -2
@@ -1,15 +1,15 @@
1
- import { _, D as O, h as P, f as S, ax as D, i as F, g as L, ay as H, az as N, aA as x } from "./emoji-dedd5dd0.js";
2
- import { resolveComponent as r, openBlock as l, createElementBlock as y, renderSlot as d, createVNode as m, createCommentVNode as p, createTextVNode as V, toDisplayString as R, createElementVNode as g, createBlock as f, withKeys as C, withModifiers as E, withCtx as u, mergeProps as w, normalizeClass as v, Teleport as q, resolveDynamicComponent as $, toHandlers as K } from "vue";
3
- const A = ["base", "error", "info", "success", "warning"], z = ["alert", "alertdialog", "status"], M = /* @__PURE__ */ new Map([
1
+ import { _, D as E, h as P, f as L, u as R, ay as V, i as q, g as A, az as M, aA as x, aB as K } from "./emoji-3ed8aeab.js";
2
+ import { resolveComponent as c, openBlock as l, createElementBlock as p, renderSlot as a, createVNode as v, createCommentVNode as r, createTextVNode as z, toDisplayString as W, createElementVNode as C, createBlock as f, withKeys as g, withModifiers as S, withCtx as d, mergeProps as k, resolveDynamicComponent as w, normalizeClass as b, toHandlers as D, createSlots as j, renderList as U, Teleport as Y } from "vue";
3
+ const F = ["base", "error", "info", "success", "warning"], G = ["alert", "alertdialog", "status"], Z = /* @__PURE__ */ new Map([
4
4
  ["info", "info"],
5
5
  ["success", "check-circle"],
6
6
  ["warning", "alert-triangle"],
7
7
  ["error", "alert-circle"],
8
8
  ["base", "bell"]
9
- ]), W = {
9
+ ]), X = {
10
10
  name: "DtNoticeIcon",
11
11
  components: {
12
- DtIcon: O
12
+ DtIcon: E
13
13
  },
14
14
  props: {
15
15
  /**
@@ -20,7 +20,7 @@ const A = ["base", "error", "info", "success", "warning"], z = ["alert", "alertd
20
20
  type: String,
21
21
  default: "base",
22
22
  validate(e) {
23
- return A.includes(e);
23
+ return F.includes(e);
24
24
  }
25
25
  }
26
26
  },
@@ -31,26 +31,26 @@ const A = ["base", "error", "info", "success", "warning"], z = ["alert", "alertd
31
31
  },
32
32
  computed: {
33
33
  defaultIcon() {
34
- return M.get(this.kind);
34
+ return Z.get(this.kind);
35
35
  }
36
36
  }
37
- }, j = {
37
+ }, J = {
38
38
  key: 0,
39
39
  "aria-hidden": "true",
40
40
  class: "d-notice__icon"
41
41
  };
42
- function U(e, t, o, i, s, n) {
43
- const c = r("dt-icon");
44
- return n.defaultIcon || s.hasSlotContent(e.$slots.default) ? (l(), y("div", j, [
45
- d(e.$slots, "default", {}, () => [
46
- m(c, {
47
- name: n.defaultIcon,
42
+ function Q(e, t, o, i, n, s) {
43
+ const u = c("dt-icon");
44
+ return s.defaultIcon || n.hasSlotContent(e.$slots.default) ? (l(), p("div", J, [
45
+ a(e.$slots, "default", {}, () => [
46
+ v(u, {
47
+ name: s.defaultIcon,
48
48
  size: "400"
49
49
  }, null, 8, ["name"])
50
50
  ])
51
- ])) : p("", !0);
51
+ ])) : r("", !0);
52
52
  }
53
- const G = /* @__PURE__ */ _(W, [["render", U]]), Y = {
53
+ const ee = /* @__PURE__ */ _(X, [["render", Q]]), te = {
54
54
  name: "DtNoticeContent",
55
55
  props: {
56
56
  /**
@@ -82,32 +82,32 @@ const G = /* @__PURE__ */ _(W, [["render", U]]), Y = {
82
82
  hasSlotContent: P
83
83
  };
84
84
  }
85
- }, Z = {
85
+ }, oe = {
86
86
  class: "d-notice__content",
87
87
  "data-qa": "notice-content"
88
- }, X = ["id"], J = ["id"];
89
- function Q(e, t, o, i, s, n) {
90
- return l(), y("div", Z, [
91
- o.title || s.hasSlotContent(e.$slots.titleOverride) ? (l(), y("p", {
88
+ }, se = ["id"], ne = ["id"];
89
+ function ie(e, t, o, i, n, s) {
90
+ return l(), p("div", oe, [
91
+ o.title || n.hasSlotContent(e.$slots.titleOverride) ? (l(), p("p", {
92
92
  key: 0,
93
93
  id: o.titleId,
94
94
  class: "d-notice__title",
95
95
  "data-qa": "notice-content-title"
96
96
  }, [
97
- d(e.$slots, "titleOverride", {}, () => [
98
- V(R(o.title), 1)
97
+ a(e.$slots, "titleOverride", {}, () => [
98
+ z(W(o.title), 1)
99
99
  ])
100
- ], 8, X)) : p("", !0),
101
- g("p", {
100
+ ], 8, se)) : r("", !0),
101
+ C("p", {
102
102
  id: o.contentId,
103
103
  class: "d-notice__message",
104
104
  "data-qa": "notice-content-message"
105
105
  }, [
106
- d(e.$slots, "default")
107
- ], 8, J)
106
+ a(e.$slots, "default")
107
+ ], 8, ne)
108
108
  ]);
109
109
  }
110
- const ee = /* @__PURE__ */ _(Y, [["render", Q]]), k = {
110
+ const le = /* @__PURE__ */ _(te, [["render", ie]]), I = {
111
111
  props: {
112
112
  /**
113
113
  * If true, a hidden close button is included for screen readers
@@ -146,11 +146,11 @@ const ee = /* @__PURE__ */ _(Y, [["render", Q]]), k = {
146
146
  a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`);
147
147
  }
148
148
  }
149
- }, te = {
149
+ }, ae = {
150
150
  name: "SrOnlyCloseButton",
151
151
  components: {
152
- DtIcon: O,
153
- DtButton: S
152
+ DtIcon: E,
153
+ DtButton: L
154
154
  },
155
155
  props: {
156
156
  /**
@@ -169,30 +169,30 @@ const ee = /* @__PURE__ */ _(Y, [["render", Q]]), k = {
169
169
  }
170
170
  }
171
171
  };
172
- function oe(e, t, o, i, s, n) {
173
- const c = r("dt-icon"), h = r("dt-button");
174
- return l(), f(h, {
172
+ function re(e, t, o, i, n, s) {
173
+ const u = c("dt-icon"), m = c("dt-button");
174
+ return l(), f(m, {
175
175
  id: "sr-only-close-button",
176
176
  "data-qa": "dt-sr-only-close-button",
177
177
  class: "d-vi-visible-sr",
178
178
  "aria-label": o.visuallyHiddenCloseLabel,
179
- onClick: n.close,
180
- onKeydown: C(E(n.close, ["prevent", "stop"]), ["space"])
179
+ onClick: s.close,
180
+ onKeydown: g(S(s.close, ["prevent", "stop"]), ["space"])
181
181
  }, {
182
- default: u(() => [
183
- m(c, { name: "close" })
182
+ default: d(() => [
183
+ v(u, { name: "close" })
184
184
  ]),
185
185
  _: 1
186
186
  }, 8, ["aria-label", "onClick", "onKeydown"]);
187
187
  }
188
- const I = /* @__PURE__ */ _(te, [["render", oe]]), ne = {
188
+ const $ = /* @__PURE__ */ _(ae, [["render", re]]), de = {
189
189
  name: "DtNoticeAction",
190
190
  components: {
191
- DtIcon: O,
192
- DtButton: S,
193
- SrOnlyCloseButton: I
191
+ DtIcon: E,
192
+ DtButton: L,
193
+ SrOnlyCloseButton: $
194
194
  },
195
- mixins: [k],
195
+ mixins: [I],
196
196
  props: {
197
197
  /**
198
198
  * Props for the notice close button.
@@ -233,15 +233,15 @@ const I = /* @__PURE__ */ _(te, [["render", oe]]), ne = {
233
233
  this.$emit("close");
234
234
  }
235
235
  }
236
- }, se = {
236
+ }, ce = {
237
237
  class: "d-notice__actions",
238
238
  "data-qa": "notice-content-actions"
239
239
  };
240
- function ie(e, t, o, i, s, n) {
241
- const c = r("dt-icon"), h = r("dt-button"), b = r("sr-only-close-button");
242
- return l(), y("div", se, [
243
- d(e.$slots, "default"),
244
- o.hideClose ? p("", !0) : (l(), f(h, w({
240
+ function ue(e, t, o, i, n, s) {
241
+ const u = c("dt-icon"), m = c("dt-button"), y = c("sr-only-close-button");
242
+ return l(), p("div", ce, [
243
+ a(e.$slots, "default"),
244
+ o.hideClose ? r("", !0) : (l(), f(m, k({
245
245
  key: 0,
246
246
  ref: "closeButton",
247
247
  "data-qa": "dt-notice-action-close-button",
@@ -249,23 +249,23 @@ function ie(e, t, o, i, s, n) {
249
249
  importance: "clear",
250
250
  circle: "",
251
251
  "aria-label": o.closeButtonProps.ariaLabel ? o.closeButtonProps.ariaLabel : "Close"
252
- }, o.closeButtonProps, { onClick: n.close }), {
253
- icon: u(() => [
254
- m(c, {
252
+ }, o.closeButtonProps, { onClick: s.close }), {
253
+ icon: d(() => [
254
+ v(u, {
255
255
  name: "close",
256
256
  size: "200"
257
257
  })
258
258
  ]),
259
259
  _: 1
260
260
  }, 16, ["aria-label", "onClick"])),
261
- e.showVisuallyHiddenClose ? (l(), f(b, {
261
+ e.showVisuallyHiddenClose ? (l(), f(y, {
262
262
  key: 1,
263
263
  "visually-hidden-close-label": e.visuallyHiddenCloseLabel,
264
- onClose: n.close
265
- }, null, 8, ["visually-hidden-close-label", "onClose"])) : p("", !0)
264
+ onClose: s.close
265
+ }, null, 8, ["visually-hidden-close-label", "onClose"])) : r("", !0)
266
266
  ]);
267
267
  }
268
- const le = /* @__PURE__ */ _(ne, [["render", ie]]), B = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', ae = `${B}:not([tabindex="-1"])`, re = "button,[href],input,select,textarea,details,[tabindex]", de = {
268
+ const he = /* @__PURE__ */ _(de, [["render", ue]]), N = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', pe = `${N}:not([tabindex="-1"])`, fe = "button,[href],input,select,textarea,details,[tabindex]", me = {
269
269
  methods: {
270
270
  /**
271
271
  * get the first focusable element in your component, includes tabindex="-1".
@@ -309,9 +309,9 @@ const le = /* @__PURE__ */ _(ne, [["render", ie]]), B = ':not(:disabled):not([ar
309
309
  * @param {bool} includeNegativeTabIndex - will include tabindex="-1" in the list of focusable elements.
310
310
  */
311
311
  _getFocusableElements(e = this.$el, t = !1) {
312
- return e ? [...e.querySelectorAll(re)].filter((i) => {
313
- const s = window.getComputedStyle(i);
314
- return s.getPropertyValue("display") !== "none" && s.getPropertyValue("visibility") !== "hidden" && i.matches(t ? B : ae);
312
+ return e ? [...e.querySelectorAll(fe)].filter((i) => {
313
+ const n = window.getComputedStyle(i);
314
+ return n.getPropertyValue("display") !== "none" && n.getPropertyValue("visibility") !== "hidden" && i.matches(t ? N : pe);
315
315
  }) : [];
316
316
  },
317
317
  /**
@@ -328,27 +328,283 @@ const le = /* @__PURE__ */ _(ne, [["render", ie]]), B = ':not(:disabled):not([ar
328
328
  e.preventDefault();
329
329
  return;
330
330
  }
331
- const s = this._getFirstFocusElement(i), n = i[i.length - 1];
332
- e.shiftKey ? document.activeElement === s && (n.focus(), e.preventDefault()) : document.activeElement === n && (s.focus(), e.preventDefault());
331
+ const n = this._getFirstFocusElement(i), s = i[i.length - 1];
332
+ e.shiftKey ? document.activeElement === n && (s.focus(), e.preventDefault()) : document.activeElement === s && (n.focus(), e.preventDefault());
333
333
  }
334
334
  }
335
335
  }, T = {
336
+ DEFAULT: "default",
337
+ CUSTOM: "custom"
338
+ }, O = {
339
+ ARROW_KEYS: "arrow-keys",
340
+ TAB: "tab",
341
+ NONE: "none"
342
+ }, ye = {
343
+ name: "DtItemLayout",
344
+ props: {
345
+ /**
346
+ * Set this prop to render layout as a specific HTML element.
347
+ */
348
+ as: {
349
+ type: String,
350
+ default: "div"
351
+ }
352
+ }
353
+ }, ve = {
354
+ key: 0,
355
+ "data-qa": "dt-item-layout-left-wrapper",
356
+ class: "dt-item-layout--left"
357
+ }, _e = {
358
+ "data-qa": "dt-item-layout-content-wrapper",
359
+ class: "dt-item-layout--content"
360
+ }, be = {
361
+ key: 0,
362
+ "data-qa": "dt-item-layout-title-wrapper",
363
+ class: "dt-item-layout--title"
364
+ }, ge = {
365
+ key: 2,
366
+ "data-qa": "dt-item-layout-bottom-wrapper",
367
+ class: "dt-item-layout--bottom"
368
+ }, Ce = {
369
+ key: 1,
370
+ "data-qa": "dt-item-layout-right-wrapper",
371
+ class: "dt-item-layout--right"
372
+ };
373
+ function Ee(e, t, o, i, n, s) {
374
+ return l(), f(w(o.as), { class: "dt-item-layout" }, {
375
+ default: d(() => [
376
+ e.$slots.left ? (l(), p("section", ve, [
377
+ a(e.$slots, "left")
378
+ ])) : r("", !0),
379
+ C("section", _e, [
380
+ e.$slots.default ? (l(), p("div", be, [
381
+ a(e.$slots, "default")
382
+ ])) : r("", !0),
383
+ e.$slots.subtitle ? (l(), p("div", {
384
+ key: 1,
385
+ "data-qa": "dt-item-layout-subtitle-wrapper",
386
+ class: b(["dt-item-layout--subtitle", { "d-mtn2": e.$slots.default }])
387
+ }, [
388
+ a(e.$slots, "subtitle")
389
+ ], 2)) : r("", !0),
390
+ e.$slots.bottom ? (l(), p("div", ge, [
391
+ a(e.$slots, "bottom")
392
+ ])) : r("", !0)
393
+ ]),
394
+ e.$slots.right ? (l(), p("section", Ce, [
395
+ a(e.$slots, "right")
396
+ ])) : r("", !0),
397
+ a(e.$slots, "selected")
398
+ ]),
399
+ _: 3
400
+ });
401
+ }
402
+ const B = /* @__PURE__ */ _(ye, [["render", Ee]]);
403
+ const Oe = {
404
+ name: "DtListItem",
405
+ components: {
406
+ DtItemLayout: B,
407
+ DtIcon: E
408
+ },
409
+ /**
410
+ * Value provided from keyboard_list_navigation.js using id prop.
411
+ */
412
+ inject: {
413
+ highlightId: { default: null }
414
+ },
415
+ props: {
416
+ /**
417
+ * Id for the item.
418
+ */
419
+ id: {
420
+ type: String,
421
+ default() {
422
+ return R.getUniqueString();
423
+ }
424
+ },
425
+ /**
426
+ * String to use for the item's role.
427
+ */
428
+ role: {
429
+ type: String,
430
+ default: "listitem"
431
+ },
432
+ /**
433
+ * HTML element type (tag name) of the content wrapper element.
434
+ */
435
+ elementType: {
436
+ type: String,
437
+ default: "li"
438
+ },
439
+ /**
440
+ * The type of child list item to use.
441
+ * @values default, custom
442
+ */
443
+ type: {
444
+ type: String,
445
+ default: T.DEFAULT,
446
+ validator: (e) => Object.values(T).includes(e)
447
+ },
448
+ /**
449
+ * The type of navigation that this component should support.
450
+ * - "arrow-keys" for items that are navigated with UP/DOWN keys.
451
+ * - "tab" for items that are navigated using the TAB key.
452
+ * - "none" for static items that are not interactive.
453
+ * @values arrow-keys, tab, none
454
+ */
455
+ navigationType: {
456
+ type: String,
457
+ default: O.NONE,
458
+ validator: (e) => Object.values(O).includes(e)
459
+ },
460
+ /**
461
+ * Applies selected styles to the list item
462
+ */
463
+ selected: {
464
+ type: Boolean,
465
+ default: !1
466
+ }
467
+ },
468
+ emits: [
469
+ /**
470
+ * Key down event
471
+ *
472
+ * @event keydown
473
+ * @type {KeyboardEvent}
474
+ */
475
+ "keydown",
476
+ /**
477
+ * Native mouse move event
478
+ *
479
+ * @event mousemove
480
+ * @type {MouseEvent}
481
+ */
482
+ "mousemove",
483
+ /**
484
+ * Native mouse leave event
485
+ *
486
+ * @event mouseleave
487
+ * @type {MouseEvent}
488
+ */
489
+ "mouseleave",
490
+ /**
491
+ * Mouse down event
492
+ *
493
+ * @event mousedown
494
+ */
495
+ "mousedown"
496
+ ],
497
+ data() {
498
+ return {
499
+ injected: !1,
500
+ mouseHighlighted: !1
501
+ };
502
+ },
503
+ computed: {
504
+ listItemType() {
505
+ switch (this.type) {
506
+ case T.DEFAULT:
507
+ return B;
508
+ default:
509
+ return null;
510
+ }
511
+ },
512
+ listItemListeners() {
513
+ return {
514
+ keydown: (e) => {
515
+ ["enter", "space"].includes(e.code.toLowerCase()) && this.onClick(e), this.$emit("keydown", e);
516
+ },
517
+ mousemove: (e) => {
518
+ this.onMouseHover(e), this.$emit("mousemove", e);
519
+ },
520
+ mouseleave: (e) => {
521
+ this.onMouseLeave(e), this.$emit("mouseleave", e);
522
+ }
523
+ };
524
+ },
525
+ /**
526
+ * For keyboard navigation, whether this item is currently highlighted.
527
+ * An injected highlightId will override the default mouseover highlight.
528
+ */
529
+ isHighlighted() {
530
+ return this.isHoverable ? this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted : !1;
531
+ },
532
+ isFocusable() {
533
+ return this.navigationType === O.TAB;
534
+ },
535
+ /**
536
+ * Whether to apply hover styles.
537
+ */
538
+ isHoverable() {
539
+ return this.navigationType !== O.NONE;
540
+ }
541
+ },
542
+ methods: {
543
+ onClick(e) {
544
+ this.$emit("click", e);
545
+ },
546
+ onMouseHover() {
547
+ this.mouseHighlighted = !0;
548
+ },
549
+ onMouseLeave() {
550
+ this.mouseHighlighted = !1;
551
+ }
552
+ }
553
+ };
554
+ function Se(e, t, o, i, n, s) {
555
+ const u = c("dt-icon");
556
+ return l(), f(w(o.elementType), k({
557
+ id: o.id,
558
+ class: ["dt-list-item", {
559
+ "dt-list-item--focusable": s.isFocusable,
560
+ "dt-list-item--highlighted": s.isHighlighted,
561
+ "dt-list-item--static": !s.isHoverable
562
+ }],
563
+ tabindex: s.isFocusable ? 0 : -1,
564
+ role: o.role,
565
+ "aria-selected": s.isHighlighted
566
+ }, D(s.listItemListeners)), {
567
+ default: d(() => [
568
+ s.listItemType ? (l(), f(w(s.listItemType), { key: 0 }, j({ _: 2 }, [
569
+ U(e.$slots, (m, y) => ({
570
+ name: y,
571
+ fn: d(() => [
572
+ a(e.$slots, y)
573
+ ])
574
+ })),
575
+ o.selected ? {
576
+ name: "selected",
577
+ fn: d(() => [
578
+ v(u, {
579
+ name: "check",
580
+ size: "400",
581
+ class: "dt-list-item--selected-icon"
582
+ })
583
+ ]),
584
+ key: "0"
585
+ } : void 0
586
+ ]), 1024)) : a(e.$slots, "default", { key: 1 })
587
+ ]),
588
+ _: 3
589
+ }, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
590
+ }
591
+ const xe = /* @__PURE__ */ _(Oe, [["render", Se]]), H = {
336
592
  none: void 0,
337
593
  small: "d-p4",
338
594
  medium: "d-p8",
339
595
  large: "d-p16"
340
- }, ce = {
596
+ }, we = {
341
597
  none: void 0,
342
598
  small: "d-pl4",
343
599
  medium: "d-pl8",
344
600
  large: "d-pl16"
345
- }, ue = ["dialog", "menu", "listbox", "tree", "grid"], pe = ["", "anchor"], he = ["none", "dialog", "first"], fe = ["parent", "body"], me = [
346
- ...D
347
- ], ye = {
601
+ }, Pe = ["dialog", "menu", "listbox", "tree", "grid"], ke = ["", "anchor"], Te = ["none", "dialog", "first"], Le = ["parent", "body"], Ie = [
602
+ ...V
603
+ ], Ae = {
348
604
  name: "PopoverHeaderFooter",
349
605
  components: {
350
- DtButton: S,
351
- DtIcon: O
606
+ DtButton: L,
607
+ DtIcon: E
352
608
  },
353
609
  props: {
354
610
  // eslint-disable-next-line vue/require-default-prop
@@ -405,23 +661,23 @@ const le = /* @__PURE__ */ _(ne, [["render", ie]]), B = ':not(:disabled):not([ar
405
661
  }
406
662
  }
407
663
  };
408
- function ve(e, t, o, i, s, n) {
409
- const c = r("dt-icon"), h = r("dt-button");
410
- return l(), y("div", {
664
+ function Be(e, t, o, i, n, s) {
665
+ const u = c("dt-icon"), m = c("dt-button");
666
+ return l(), p("div", {
411
667
  "data-qa": "dt-popover-header-footer",
412
- class: v({
668
+ class: b({
413
669
  "d-popover__header": o.type === "header",
414
670
  "d-popover__footer": o.type === "footer"
415
671
  })
416
672
  }, [
417
- s.hasSlotContent(e.$slots.content) ? (l(), y("div", {
673
+ n.hasSlotContent(e.$slots.content) ? (l(), p("div", {
418
674
  key: 0,
419
675
  "data-qa": "dt-popover-header-footer-content",
420
- class: v(["d-to-ellipsis", "d-w100p", o.contentClass])
676
+ class: b(["d-to-ellipsis", "d-w100p", o.contentClass])
421
677
  }, [
422
- d(e.$slots, "content")
423
- ], 2)) : p("", !0),
424
- o.showCloseButton ? (l(), f(h, w({
678
+ a(e.$slots, "content")
679
+ ], 2)) : r("", !0),
680
+ o.showCloseButton ? (l(), f(m, k({
425
681
  key: 1,
426
682
  ref: "popover__close-button",
427
683
  "data-qa": "dt-popover-close",
@@ -430,30 +686,30 @@ function ve(e, t, o, i, s, n) {
430
686
  kind: "muted",
431
687
  circle: ""
432
688
  }, o.closeButtonProps, {
433
- onClick: t[0] || (t[0] = (b) => e.$emit("close"))
689
+ onClick: t[0] || (t[0] = (y) => e.$emit("close"))
434
690
  }), {
435
- icon: u(() => [
436
- m(c, {
691
+ icon: d(() => [
692
+ v(u, {
437
693
  name: "close",
438
694
  size: "300"
439
695
  })
440
696
  ]),
441
697
  _: 1
442
- }, 16)) : p("", !0)
698
+ }, 16)) : r("", !0)
443
699
  ], 2);
444
700
  }
445
- const _e = /* @__PURE__ */ _(ye, [["render", ve]]);
446
- const be = {
701
+ const He = /* @__PURE__ */ _(Ae, [["render", Be]]);
702
+ const De = {
447
703
  name: "DtPopover",
448
704
  /********************
449
705
  * CHILD COMPONENTS *
450
706
  ********************/
451
707
  components: {
452
- SrOnlyCloseButton: I,
453
- DtLazyShow: F,
454
- PopoverHeaderFooter: _e
708
+ SrOnlyCloseButton: $,
709
+ DtLazyShow: q,
710
+ PopoverHeaderFooter: He
455
711
  },
456
- mixins: [de, k],
712
+ mixins: [me, I],
457
713
  props: {
458
714
  /**
459
715
  * Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
@@ -496,7 +752,7 @@ const be = {
496
752
  role: {
497
753
  type: String,
498
754
  default: "dialog",
499
- validator: (e) => ue.includes(e)
755
+ validator: (e) => Pe.includes(e)
500
756
  },
501
757
  /**
502
758
  * ID of the element that serves as the label for the popover content.
@@ -532,7 +788,7 @@ const be = {
532
788
  padding: {
533
789
  type: String,
534
790
  default: "large",
535
- validator: (e) => Object.keys(T).some((t) => t === e)
791
+ validator: (e) => Object.keys(H).some((t) => t === e)
536
792
  },
537
793
  /**
538
794
  * Additional class name for the content wrapper element.
@@ -549,7 +805,7 @@ const be = {
549
805
  contentWidth: {
550
806
  type: String,
551
807
  default: "",
552
- validator: (e) => pe.includes(e)
808
+ validator: (e) => ke.includes(e)
553
809
  },
554
810
  /**
555
811
  * Whether to apply transition on initial render in the content lazy show component.
@@ -579,7 +835,7 @@ const be = {
579
835
  id: {
580
836
  type: String,
581
837
  default() {
582
- return L();
838
+ return A();
583
839
  }
584
840
  },
585
841
  /**
@@ -683,7 +939,7 @@ const be = {
683
939
  sticky: {
684
940
  type: [Boolean, String],
685
941
  default: !1,
686
- validator: (e) => me.includes(e)
942
+ validator: (e) => Ie.includes(e)
687
943
  },
688
944
  /**
689
945
  * Determines maximum height for the popover before overflow.
@@ -741,7 +997,7 @@ const be = {
741
997
  initialFocusElement: {
742
998
  type: [String, HTMLElement],
743
999
  default: "first",
744
- validator: (e) => he.includes(e) || e instanceof HTMLElement || e.startsWith("#")
1000
+ validator: (e) => Te.includes(e) || e instanceof HTMLElement || e.startsWith("#")
745
1001
  },
746
1002
  /**
747
1003
  * If the popover should open pressing up or down arrow key on the anchor element.
@@ -760,7 +1016,7 @@ const be = {
760
1016
  appendTo: {
761
1017
  type: [HTMLElement, String],
762
1018
  default: "body",
763
- validator: (e) => fe.includes(e) || e instanceof HTMLElement
1019
+ validator: (e) => Le.includes(e) || e instanceof HTMLElement
764
1020
  }
765
1021
  },
766
1022
  emits: [
@@ -786,8 +1042,8 @@ const be = {
786
1042
  ],
787
1043
  data() {
788
1044
  return {
789
- POPOVER_PADDING_CLASSES: T,
790
- POPOVER_HEADER_FOOTER_PADDING_CLASSES: ce,
1045
+ POPOVER_PADDING_CLASSES: H,
1046
+ POPOVER_HEADER_FOOTER_PADDING_CLASSES: we,
791
1047
  intersectionObserver: null,
792
1048
  isOutsideViewport: !1,
793
1049
  isOpen: !1,
@@ -815,7 +1071,7 @@ const be = {
815
1071
  return this.isOutsideViewport && this.modal ? "calc(100vh - var(--dt-space-300))" : this.maxHeight;
816
1072
  },
817
1073
  labelledBy() {
818
- return this.ariaLabelledby || !this.ariaLabel && L("DtPopover__anchor");
1074
+ return this.ariaLabelledby || !this.ariaLabel && A("DtPopover__anchor");
819
1075
  }
820
1076
  },
821
1077
  watch: {
@@ -894,11 +1150,11 @@ const be = {
894
1150
  const t = (i = e == null ? void 0 : e[0]) == null ? void 0 : i.target;
895
1151
  if (!t)
896
1152
  return;
897
- const o = H(t);
1153
+ const o = M(t);
898
1154
  this.isOutsideViewport = o.bottom || o.top;
899
1155
  },
900
1156
  popperOptions() {
901
- return N({
1157
+ return x({
902
1158
  fallbackPlacements: this.fallbackPlacements,
903
1159
  tether: this.tether,
904
1160
  hasHideModifierEnabled: !0
@@ -1013,7 +1269,7 @@ const be = {
1013
1269
  },
1014
1270
  initTippyInstance() {
1015
1271
  var e, t;
1016
- this.tip = x(this.anchorEl, {
1272
+ this.tip = K(this.anchorEl, {
1017
1273
  popperOptions: this.popperOptions(),
1018
1274
  contentElement: this.popoverContentEl,
1019
1275
  placement: this.placement,
@@ -1031,114 +1287,114 @@ const be = {
1031
1287
  });
1032
1288
  }
1033
1289
  }
1034
- }, Ce = ["aria-hidden"], ge = ["id", "tabindex"];
1035
- function Ee(e, t, o, i, s, n) {
1036
- const c = r("popover-header-footer"), h = r("sr-only-close-button"), b = r("dt-lazy-show");
1037
- return l(), y("div", null, [
1038
- o.modal && s.isOpen ? (l(), f(q, {
1290
+ }, Fe = ["aria-hidden"], $e = ["id", "tabindex"];
1291
+ function Ne(e, t, o, i, n, s) {
1292
+ const u = c("popover-header-footer"), m = c("sr-only-close-button"), y = c("dt-lazy-show");
1293
+ return l(), p("div", null, [
1294
+ o.modal && n.isOpen ? (l(), f(Y, {
1039
1295
  key: 0,
1040
1296
  to: "body"
1041
1297
  }, [
1042
- g("div", {
1298
+ C("div", {
1043
1299
  class: "d-modal--transparent",
1044
- "aria-hidden": o.modal && s.isOpen ? "false" : "true",
1045
- onClick: t[0] || (t[0] = E(() => {
1300
+ "aria-hidden": o.modal && n.isOpen ? "false" : "true",
1301
+ onClick: t[0] || (t[0] = S(() => {
1046
1302
  }, ["prevent", "stop"]))
1047
- }, null, 8, Ce)
1048
- ])) : p("", !0),
1049
- (l(), f($(o.elementType), {
1303
+ }, null, 8, Fe)
1304
+ ])) : r("", !0),
1305
+ (l(), f(w(o.elementType), {
1050
1306
  ref: "popover",
1051
- class: v(["d-popover", { "d-popover__anchor--opened": s.isOpen }]),
1307
+ class: b(["d-popover", { "d-popover__anchor--opened": n.isOpen }]),
1052
1308
  "data-qa": "dt-popover-container"
1053
1309
  }, {
1054
- default: u(() => [
1055
- g("div", {
1056
- id: !o.ariaLabelledby && n.labelledBy,
1310
+ default: d(() => [
1311
+ C("div", {
1312
+ id: !o.ariaLabelledby && s.labelledBy,
1057
1313
  ref: "anchor",
1058
1314
  "data-qa": "dt-popover-anchor",
1059
1315
  tabindex: o.openOnContext ? 0 : void 0,
1060
- onClickCapture: t[1] || (t[1] = (...a) => n.defaultToggleOpen && n.defaultToggleOpen(...a)),
1061
- onContextmenu: t[2] || (t[2] = (...a) => n.onContext && n.onContext(...a)),
1316
+ onClickCapture: t[1] || (t[1] = (...h) => s.defaultToggleOpen && s.defaultToggleOpen(...h)),
1317
+ onContextmenu: t[2] || (t[2] = (...h) => s.onContext && s.onContext(...h)),
1062
1318
  onKeydown: [
1063
- t[3] || (t[3] = C(E((...a) => n.onArrowKeyPress && n.onArrowKeyPress(...a), ["prevent"]), ["up"])),
1064
- t[4] || (t[4] = C(E((...a) => n.onArrowKeyPress && n.onArrowKeyPress(...a), ["prevent"]), ["down"])),
1065
- t[6] || (t[6] = C((a) => e.$emit("keydown", a), ["enter"])),
1066
- t[7] || (t[7] = C((a) => e.$emit("keydown", a), ["space"]))
1319
+ t[3] || (t[3] = g(S((...h) => s.onArrowKeyPress && s.onArrowKeyPress(...h), ["prevent"]), ["up"])),
1320
+ t[4] || (t[4] = g(S((...h) => s.onArrowKeyPress && s.onArrowKeyPress(...h), ["prevent"]), ["down"])),
1321
+ t[6] || (t[6] = g((h) => e.$emit("keydown", h), ["enter"])),
1322
+ t[7] || (t[7] = g((h) => e.$emit("keydown", h), ["space"]))
1067
1323
  ],
1068
- onKeydownCapture: t[5] || (t[5] = C((...a) => n.closePopover && n.closePopover(...a), ["escape"]))
1324
+ onKeydownCapture: t[5] || (t[5] = g((...h) => s.closePopover && s.closePopover(...h), ["escape"]))
1069
1325
  }, [
1070
- d(e.$slots, "anchor", {
1326
+ a(e.$slots, "anchor", {
1071
1327
  attrs: {
1072
- "aria-expanded": s.isOpen.toString(),
1328
+ "aria-expanded": n.isOpen.toString(),
1073
1329
  "aria-controls": o.id,
1074
1330
  "aria-haspopup": o.role
1075
1331
  }
1076
1332
  })
1077
- ], 40, ge),
1078
- m(b, w({
1333
+ ], 40, $e),
1334
+ v(y, k({
1079
1335
  id: o.id,
1080
1336
  ref: "content",
1081
1337
  role: o.role,
1082
1338
  "data-qa": "dt-popover",
1083
- "aria-hidden": `${!s.isOpen}`,
1084
- "aria-labelledby": n.labelledBy,
1339
+ "aria-hidden": `${!n.isOpen}`,
1340
+ "aria-labelledby": s.labelledBy,
1085
1341
  "aria-label": o.ariaLabel,
1086
1342
  "aria-modal": `${!o.modal}`,
1087
1343
  transition: o.transition,
1088
- show: s.isOpen,
1089
- appear: s.toAppear,
1344
+ show: n.isOpen,
1345
+ appear: n.toAppear,
1090
1346
  class: ["d-popover__dialog", { "d-popover__dialog--modal": o.modal }, o.dialogClass],
1091
1347
  style: {
1092
- "max-height": n.calculatedMaxHeight,
1348
+ "max-height": s.calculatedMaxHeight,
1093
1349
  "max-width": o.maxWidth
1094
1350
  },
1095
1351
  css: e.$attrs.css,
1096
1352
  tabindex: o.contentTabindex
1097
- }, K(n.popoverListeners)), {
1098
- default: u(() => [
1099
- s.hasSlotContent(e.$slots.headerContent) || o.showCloseButton ? (l(), f(c, {
1353
+ }, D(s.popoverListeners)), {
1354
+ default: d(() => [
1355
+ n.hasSlotContent(e.$slots.headerContent) || o.showCloseButton ? (l(), f(u, {
1100
1356
  key: 0,
1101
1357
  ref: "popover__header",
1102
- class: v(s.POPOVER_HEADER_FOOTER_PADDING_CLASSES[o.padding]),
1358
+ class: b(n.POPOVER_HEADER_FOOTER_PADDING_CLASSES[o.padding]),
1103
1359
  "content-class": o.headerClass,
1104
1360
  type: "header",
1105
1361
  "show-close-button": o.showCloseButton,
1106
1362
  "close-button-props": o.closeButtonProps,
1107
- onClose: n.closePopover
1363
+ onClose: s.closePopover
1108
1364
  }, {
1109
- content: u(() => [
1110
- d(e.$slots, "headerContent", { close: n.closePopover })
1365
+ content: d(() => [
1366
+ a(e.$slots, "headerContent", { close: s.closePopover })
1111
1367
  ]),
1112
1368
  _: 3
1113
- }, 8, ["class", "content-class", "show-close-button", "close-button-props", "onClose"])) : p("", !0),
1114
- g("div", {
1369
+ }, 8, ["class", "content-class", "show-close-button", "close-button-props", "onClose"])) : r("", !0),
1370
+ C("div", {
1115
1371
  ref: "popover__content",
1116
1372
  "data-qa": "dt-popover-content",
1117
- class: v([
1373
+ class: b([
1118
1374
  "d-popover__content",
1119
- s.POPOVER_PADDING_CLASSES[o.padding],
1375
+ n.POPOVER_PADDING_CLASSES[o.padding],
1120
1376
  o.contentClass
1121
1377
  ])
1122
1378
  }, [
1123
- d(e.$slots, "content", { close: n.closePopover })
1379
+ a(e.$slots, "content", { close: s.closePopover })
1124
1380
  ], 2),
1125
- s.hasSlotContent(e.$slots.footerContent) ? (l(), f(c, {
1381
+ n.hasSlotContent(e.$slots.footerContent) ? (l(), f(u, {
1126
1382
  key: 1,
1127
1383
  ref: "popover__footer",
1128
1384
  type: "footer",
1129
- class: v(s.POPOVER_HEADER_FOOTER_PADDING_CLASSES[o.padding]),
1385
+ class: b(n.POPOVER_HEADER_FOOTER_PADDING_CLASSES[o.padding]),
1130
1386
  "content-class": o.footerClass
1131
1387
  }, {
1132
- content: u(() => [
1133
- d(e.$slots, "footerContent", { close: n.closePopover })
1388
+ content: d(() => [
1389
+ a(e.$slots, "footerContent", { close: s.closePopover })
1134
1390
  ]),
1135
1391
  _: 3
1136
- }, 8, ["class", "content-class"])) : p("", !0),
1137
- e.showVisuallyHiddenClose ? (l(), f(h, {
1392
+ }, 8, ["class", "content-class"])) : r("", !0),
1393
+ e.showVisuallyHiddenClose ? (l(), f(m, {
1138
1394
  key: 2,
1139
1395
  "visually-hidden-close-label": e.visuallyHiddenCloseLabel,
1140
- onClose: n.closePopover
1141
- }, null, 8, ["visually-hidden-close-label", "onClose"])) : p("", !0)
1396
+ onClose: s.closePopover
1397
+ }, null, 8, ["visually-hidden-close-label", "onClose"])) : r("", !0)
1142
1398
  ]),
1143
1399
  _: 3
1144
1400
  }, 16, ["id", "role", "aria-hidden", "aria-labelledby", "aria-label", "aria-modal", "transition", "show", "appear", "class", "style", "css", "tabindex"])
@@ -1147,14 +1403,14 @@ function Ee(e, t, o, i, s, n) {
1147
1403
  }, 8, ["class"]))
1148
1404
  ]);
1149
1405
  }
1150
- const ke = /* @__PURE__ */ _(be, [["render", Ee]]), Oe = {
1406
+ const Ke = /* @__PURE__ */ _(De, [["render", Ne]]), Re = {
1151
1407
  name: "DtNotice",
1152
1408
  components: {
1153
- DtNoticeIcon: G,
1154
- DtNoticeContent: ee,
1155
- DtNoticeAction: le
1409
+ DtNoticeIcon: ee,
1410
+ DtNoticeContent: le,
1411
+ DtNoticeAction: he
1156
1412
  },
1157
- mixins: [k],
1413
+ mixins: [I],
1158
1414
  props: {
1159
1415
  /**
1160
1416
  * Sets an ID on the title element of the component. Useful for aria-describedby
@@ -1189,7 +1445,7 @@ const ke = /* @__PURE__ */ _(be, [["render", Ee]]), Oe = {
1189
1445
  type: String,
1190
1446
  default: "status",
1191
1447
  validate(e) {
1192
- return z.includes(e);
1448
+ return G.includes(e);
1193
1449
  }
1194
1450
  },
1195
1451
  /**
@@ -1209,7 +1465,7 @@ const ke = /* @__PURE__ */ _(be, [["render", Ee]]), Oe = {
1209
1465
  type: String,
1210
1466
  default: "base",
1211
1467
  validate(e) {
1212
- return A.includes(e);
1468
+ return F.includes(e);
1213
1469
  }
1214
1470
  },
1215
1471
  /**
@@ -1259,61 +1515,64 @@ const ke = /* @__PURE__ */ _(be, [["render", Ee]]), Oe = {
1259
1515
  }
1260
1516
  }
1261
1517
  };
1262
- function Pe(e, t, o, i, s, n) {
1263
- const c = r("dt-notice-icon"), h = r("dt-notice-content"), b = r("dt-notice-action");
1264
- return l(), y("aside", {
1265
- class: v(n.noticeClass),
1518
+ function Ve(e, t, o, i, n, s) {
1519
+ const u = c("dt-notice-icon"), m = c("dt-notice-content"), y = c("dt-notice-action");
1520
+ return l(), p("aside", {
1521
+ class: b(s.noticeClass),
1266
1522
  "data-qa": "notice"
1267
1523
  }, [
1268
- m(c, { kind: o.kind }, {
1269
- default: u(() => [
1270
- d(e.$slots, "icon")
1524
+ v(u, { kind: o.kind }, {
1525
+ default: d(() => [
1526
+ a(e.$slots, "icon")
1271
1527
  ]),
1272
1528
  _: 3
1273
1529
  }, 8, ["kind"]),
1274
- m(h, {
1530
+ v(m, {
1275
1531
  "title-id": o.titleId,
1276
1532
  "content-id": o.contentId,
1277
1533
  title: o.title,
1278
1534
  role: o.role
1279
1535
  }, {
1280
- titleOverride: u(() => [
1281
- d(e.$slots, "titleOverride")
1536
+ titleOverride: d(() => [
1537
+ a(e.$slots, "titleOverride")
1282
1538
  ]),
1283
- default: u(() => [
1284
- d(e.$slots, "default")
1539
+ default: d(() => [
1540
+ a(e.$slots, "default")
1285
1541
  ]),
1286
1542
  _: 3
1287
1543
  }, 8, ["title-id", "content-id", "title", "role"]),
1288
- m(b, {
1544
+ v(y, {
1289
1545
  "hide-close": o.hideClose,
1290
1546
  "close-button-props": o.closeButtonProps,
1291
1547
  "visually-hidden-close": e.visuallyHiddenClose,
1292
1548
  "visually-hidden-close-label": e.visuallyHiddenCloseLabel,
1293
- onClose: t[0] || (t[0] = (a) => e.$emit("close"))
1549
+ onClose: t[0] || (t[0] = (h) => e.$emit("close"))
1294
1550
  }, {
1295
- default: u(() => [
1296
- d(e.$slots, "action")
1551
+ default: d(() => [
1552
+ a(e.$slots, "action")
1297
1553
  ]),
1298
1554
  _: 3
1299
1555
  }, 8, ["hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label"])
1300
1556
  ], 2);
1301
1557
  }
1302
- const Le = /* @__PURE__ */ _(Oe, [["render", Pe]]);
1558
+ const ze = /* @__PURE__ */ _(Re, [["render", Ve]]);
1303
1559
  export {
1304
- G as D,
1305
- de as M,
1306
- A as N,
1307
- fe as P,
1308
- k as S,
1309
- ee as a,
1310
- le as b,
1311
- ke as c,
1312
- I as d,
1313
- pe as e,
1314
- Le as f,
1315
- T as g,
1316
- ce as h,
1317
- ue as i,
1318
- he as j
1560
+ ee as D,
1561
+ O as L,
1562
+ me as M,
1563
+ F as N,
1564
+ Le as P,
1565
+ I as S,
1566
+ le as a,
1567
+ he as b,
1568
+ xe as c,
1569
+ Ke as d,
1570
+ $ as e,
1571
+ ke as f,
1572
+ B as g,
1573
+ ze as h,
1574
+ H as i,
1575
+ we as j,
1576
+ Pe as k,
1577
+ Te as l
1319
1578
  };