@dialpad/dialtone-vue 2.125.0 → 2.125.1

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 (282) hide show
  1. package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.js +33 -0
  2. package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.js.map +1 -0
  3. package/dist/chunks/dropdown-SMWaTWyF.js +357 -0
  4. package/dist/chunks/dropdown-SMWaTWyF.js.map +1 -0
  5. package/dist/chunks/dropdown_constants-EUcDxBrX.js +9 -0
  6. package/dist/chunks/dropdown_constants-EUcDxBrX.js.map +1 -0
  7. package/dist/chunks/icon_constants-OpYAAKwF.js +16 -0
  8. package/dist/chunks/icon_constants-OpYAAKwF.js.map +1 -0
  9. package/dist/chunks/index-nIyl_PL6.js +372 -0
  10. package/dist/chunks/index-nIyl_PL6.js.map +1 -0
  11. package/dist/chunks/index-o4OMWMuv.js +244 -0
  12. package/dist/chunks/index-o4OMWMuv.js.map +1 -0
  13. package/dist/chunks/input-1tm09l_-.js +273 -0
  14. package/dist/chunks/input-1tm09l_-.js.map +1 -0
  15. package/dist/chunks/input_group-zcAq3DQl.js +141 -0
  16. package/dist/chunks/input_group-zcAq3DQl.js.map +1 -0
  17. package/dist/chunks/keyboard_list_navigation-F0O8nht0.js +197 -0
  18. package/dist/chunks/keyboard_list_navigation-F0O8nht0.js.map +1 -0
  19. package/dist/chunks/link_constants-vIUB92L4.js +16 -0
  20. package/dist/chunks/link_constants-vIUB92L4.js.map +1 -0
  21. package/dist/chunks/list_item_constants-LTUc74pD.js +13 -0
  22. package/dist/chunks/list_item_constants-LTUc74pD.js.map +1 -0
  23. package/dist/chunks/modal-VuMFkZFH.js +82 -0
  24. package/dist/chunks/modal-VuMFkZFH.js.map +1 -0
  25. package/dist/chunks/notice_action-9NmtQRai.js +182 -0
  26. package/dist/chunks/notice_action-9NmtQRai.js.map +1 -0
  27. package/dist/chunks/notice_constants-c--hBFQw.js +6 -0
  28. package/dist/chunks/notice_constants-c--hBFQw.js.map +1 -0
  29. package/dist/chunks/popover_constants-qjlEkroB.js +114 -0
  30. package/dist/chunks/popover_constants-qjlEkroB.js.map +1 -0
  31. package/dist/chunks/sr_only_close_button-JGole5Xi.js +86 -0
  32. package/dist/chunks/sr_only_close_button-JGole5Xi.js.map +1 -0
  33. package/dist/chunks/stack_constants-u7tNqGtc.js +13 -0
  34. package/dist/chunks/stack_constants-u7tNqGtc.js.map +1 -0
  35. package/dist/chunks/tab-Qm9LVkYj.js +346 -0
  36. package/dist/chunks/tab-Qm9LVkYj.js.map +1 -0
  37. package/dist/component-documentation.json +1 -1
  38. package/dist/dialtone-vue.js +354 -10368
  39. package/dist/dialtone-vue.js.map +1 -1
  40. package/dist/lib/attachment-carousel.js +250 -0
  41. package/dist/lib/attachment-carousel.js.map +1 -0
  42. package/dist/lib/avatar.js +369 -0
  43. package/dist/lib/avatar.js.map +1 -0
  44. package/dist/lib/badge.js +169 -0
  45. package/dist/lib/badge.js.map +1 -0
  46. package/dist/lib/banner.js +200 -0
  47. package/dist/lib/banner.js.map +1 -0
  48. package/dist/lib/breadcrumbs.js +138 -0
  49. package/dist/lib/breadcrumbs.js.map +1 -0
  50. package/dist/lib/button-group.js +45 -0
  51. package/dist/lib/button-group.js.map +1 -0
  52. package/dist/lib/button.js +328 -0
  53. package/dist/lib/button.js.map +1 -0
  54. package/dist/lib/callbar-button-with-popover.js +235 -0
  55. package/dist/lib/callbar-button-with-popover.js.map +1 -0
  56. package/dist/lib/callbar-button.js +175 -0
  57. package/dist/lib/callbar-button.js.map +1 -0
  58. package/dist/lib/callbox.js +142 -0
  59. package/dist/lib/callbox.js.map +1 -0
  60. package/dist/lib/card.js +72 -0
  61. package/dist/lib/card.js.map +1 -0
  62. package/dist/lib/checkbox-group.js +117 -0
  63. package/dist/lib/checkbox-group.js.map +1 -0
  64. package/dist/lib/checkbox.js +117 -0
  65. package/dist/lib/checkbox.js.map +1 -0
  66. package/dist/lib/chip.js +186 -0
  67. package/dist/lib/chip.js.map +1 -0
  68. package/dist/lib/codeblock.js +29 -0
  69. package/dist/lib/codeblock.js.map +1 -0
  70. package/dist/lib/collapsible.js +313 -0
  71. package/dist/lib/collapsible.js.map +1 -0
  72. package/dist/lib/combobox-multi-select.js +433 -0
  73. package/dist/lib/combobox-multi-select.js.map +1 -0
  74. package/dist/lib/combobox-with-popover.js +341 -0
  75. package/dist/lib/combobox-with-popover.js.map +1 -0
  76. package/dist/lib/combobox.js +19 -0
  77. package/dist/lib/combobox.js.map +1 -0
  78. package/dist/lib/constants.js +53 -0
  79. package/dist/lib/constants.js.map +1 -0
  80. package/dist/lib/contact-info.js +145 -0
  81. package/dist/lib/contact-info.js.map +1 -0
  82. package/dist/lib/contact-row.js +203 -0
  83. package/dist/lib/contact-row.js.map +1 -0
  84. package/dist/lib/datepicker.js +552 -0
  85. package/dist/lib/datepicker.js.map +1 -0
  86. package/dist/lib/dates.js +57 -0
  87. package/dist/lib/dates.js.map +1 -0
  88. package/dist/lib/description-list.js +83 -0
  89. package/dist/lib/description-list.js.map +1 -0
  90. package/dist/lib/dropdown.js +45 -0
  91. package/dist/lib/dropdown.js.map +1 -0
  92. package/dist/lib/editor.js +527 -0
  93. package/dist/lib/editor.js.map +1 -0
  94. package/dist/{emoji_picker-kiTOKaq8.js → lib/emoji-picker.js} +30 -12
  95. package/dist/lib/emoji-picker.js.map +1 -0
  96. package/dist/lib/emoji-row.js +83 -0
  97. package/dist/lib/emoji-row.js.map +1 -0
  98. package/dist/{emoji_text_wrapper-48ClwKvf.js → lib/emoji-text-wrapper.js} +19 -14
  99. package/dist/lib/emoji-text-wrapper.js.map +1 -0
  100. package/dist/lib/emoji.js +11 -0
  101. package/dist/{emoji.js.map → lib/emoji.js.map} +1 -1
  102. package/dist/lib/feed-item-row.js +207 -0
  103. package/dist/lib/feed-item-row.js.map +1 -0
  104. package/dist/lib/feed-pill.js +142 -0
  105. package/dist/lib/feed-pill.js.map +1 -0
  106. package/dist/lib/general-row.js +379 -0
  107. package/dist/lib/general-row.js.map +1 -0
  108. package/dist/lib/group-row.js +115 -0
  109. package/dist/lib/group-row.js.map +1 -0
  110. package/dist/lib/grouped-chip.js +45 -0
  111. package/dist/lib/grouped-chip.js.map +1 -0
  112. package/dist/lib/hovercard.js +194 -0
  113. package/dist/lib/hovercard.js.map +1 -0
  114. package/dist/lib/icon.js +82 -0
  115. package/dist/lib/icon.js.map +1 -0
  116. package/dist/lib/image-viewer.js +171 -0
  117. package/dist/lib/image-viewer.js.map +1 -0
  118. package/dist/lib/input-group.js +90 -0
  119. package/dist/lib/input-group.js.map +1 -0
  120. package/dist/lib/input.js +455 -0
  121. package/dist/lib/input.js.map +1 -0
  122. package/dist/lib/item-layout.js +39 -0
  123. package/dist/lib/item-layout.js.map +1 -0
  124. package/dist/lib/ivr-node.js +195 -0
  125. package/dist/lib/ivr-node.js.map +1 -0
  126. package/dist/lib/keyboard-shortcut.js +100 -0
  127. package/dist/lib/keyboard-shortcut.js.map +1 -0
  128. package/dist/lib/lazy-show.js +77 -0
  129. package/dist/lib/lazy-show.js.map +1 -0
  130. package/dist/lib/link.js +69 -0
  131. package/dist/lib/link.js.map +1 -0
  132. package/dist/lib/list-item-group.js +59 -0
  133. package/dist/lib/list-item-group.js.map +1 -0
  134. package/dist/lib/list-item.js +195 -0
  135. package/dist/lib/list-item.js.map +1 -0
  136. package/dist/{message_input.js → lib/message-input.js} +107 -56
  137. package/dist/lib/message-input.js.map +1 -0
  138. package/dist/lib/mixins.js +17 -0
  139. package/dist/lib/mixins.js.map +1 -0
  140. package/dist/lib/modal.js +324 -0
  141. package/dist/lib/modal.js.map +1 -0
  142. package/dist/lib/notice.js +158 -0
  143. package/dist/lib/notice.js.map +1 -0
  144. package/dist/lib/pagination.js +142 -0
  145. package/dist/lib/pagination.js.map +1 -0
  146. package/dist/lib/popover.js +779 -0
  147. package/dist/lib/popover.js.map +1 -0
  148. package/dist/lib/presence.js +60 -0
  149. package/dist/lib/presence.js.map +1 -0
  150. package/dist/lib/radio-group.js +97 -0
  151. package/dist/lib/radio-group.js.map +1 -0
  152. package/dist/lib/radio.js +111 -0
  153. package/dist/lib/radio.js.map +1 -0
  154. package/dist/lib/rich-text-editor.js +920 -0
  155. package/dist/lib/rich-text-editor.js.map +1 -0
  156. package/dist/lib/root-layout.js +127 -0
  157. package/dist/lib/root-layout.js.map +1 -0
  158. package/dist/lib/select-menu.js +243 -0
  159. package/dist/lib/select-menu.js.map +1 -0
  160. package/dist/lib/settings-menu-button.js +65 -0
  161. package/dist/lib/settings-menu-button.js.map +1 -0
  162. package/dist/lib/skeleton.js +574 -0
  163. package/dist/lib/skeleton.js.map +1 -0
  164. package/dist/lib/stack.js +118 -0
  165. package/dist/lib/stack.js.map +1 -0
  166. package/dist/lib/tabs.js +93 -0
  167. package/dist/lib/tabs.js.map +1 -0
  168. package/dist/lib/time-pill.js +43 -0
  169. package/dist/lib/time-pill.js.map +1 -0
  170. package/dist/lib/toast.js +226 -0
  171. package/dist/lib/toast.js.map +1 -0
  172. package/dist/lib/toggle.js +169 -0
  173. package/dist/lib/toggle.js.map +1 -0
  174. package/dist/{directives.js → lib/tooltip-directive.js} +24 -18
  175. package/dist/lib/tooltip-directive.js.map +1 -0
  176. package/dist/lib/tooltip.js +376 -0
  177. package/dist/lib/tooltip.js.map +1 -0
  178. package/dist/lib/top-banner-info.js +60 -0
  179. package/dist/lib/top-banner-info.js.map +1 -0
  180. package/dist/lib/unread-pill.js +61 -0
  181. package/dist/lib/unread-pill.js.map +1 -0
  182. package/dist/lib/utils.js +175 -0
  183. package/dist/lib/utils.js.map +1 -0
  184. package/dist/lib/validation-messages.js +83 -0
  185. package/dist/lib/validation-messages.js.map +1 -0
  186. package/dist/lib/validators.js +12 -0
  187. package/dist/lib/validators.js.map +1 -0
  188. package/dist/style.css +1 -1
  189. package/dist/types/common/{constants.d.ts → constants/index.d.ts} +1 -1
  190. package/dist/types/common/constants/index.d.ts.map +1 -0
  191. package/dist/types/common/{dates.d.ts → dates/index.d.ts} +1 -1
  192. package/dist/types/common/dates/index.d.ts.map +1 -0
  193. package/dist/types/common/{emoji.d.ts → emoji/index.d.ts} +1 -1
  194. package/dist/types/common/{emoji.d.ts.map → emoji/index.d.ts.map} +1 -1
  195. package/dist/types/common/{utils.d.ts → utils/index.d.ts} +1 -1
  196. package/dist/types/common/utils/index.d.ts.map +1 -0
  197. package/dist/types/common/{validators.d.ts → validators/index.d.ts} +1 -1
  198. package/dist/types/common/validators/index.d.ts.map +1 -0
  199. package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
  200. package/dist/types/components/button/button.vue.d.ts +2 -2
  201. package/dist/types/components/card/card.vue.d.ts +1 -1
  202. package/dist/types/components/checkbox/checkbox.vue.d.ts +7 -7
  203. package/dist/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  204. package/dist/types/components/chip/chip.vue.d.ts +2 -2
  205. package/dist/types/components/collapsible/collapsible.vue.d.ts +3 -3
  206. package/dist/types/components/combobox/combobox.vue.d.ts +7 -8
  207. package/dist/types/components/combobox/combobox.vue.d.ts.map +1 -1
  208. package/dist/types/components/dropdown/dropdown.vue.d.ts +1 -1
  209. package/dist/types/components/emoji/emoji.vue.d.ts +1 -1
  210. package/dist/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +1 -219
  211. package/dist/types/components/icon/icon.vue.d.ts +20 -16
  212. package/dist/types/components/icon/icon.vue.d.ts.map +1 -1
  213. package/dist/types/components/icon/icon_constants.d.ts +2 -0
  214. package/dist/types/components/icon/icon_constants.d.ts.map +1 -1
  215. package/dist/types/components/icon/index.d.ts +1 -1
  216. package/dist/types/components/input_group/input_group.vue.d.ts +15 -6
  217. package/dist/types/components/input_group/input_group.vue.d.ts.map +1 -1
  218. package/dist/types/components/list_item_group/list_item_group.vue.d.ts +1 -1
  219. package/dist/types/components/modal/modal.vue.d.ts +7 -2
  220. package/dist/types/components/modal/modal.vue.d.ts.map +1 -1
  221. package/dist/types/components/notice/notice_action.vue.d.ts +3 -1
  222. package/dist/types/components/notice/notice_action.vue.d.ts.map +1 -1
  223. package/dist/types/components/popover/popover_header_footer.vue.d.ts +1 -1
  224. package/dist/types/components/radio/radio.vue.d.ts +2 -12
  225. package/dist/types/components/radio/radio.vue.d.ts.map +1 -1
  226. package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
  227. package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +3 -3
  228. package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +2 -2
  229. package/dist/types/components/skeleton/skeleton-text.vue.d.ts +8 -3
  230. package/dist/types/components/skeleton/skeleton-text.vue.d.ts.map +1 -1
  231. package/dist/types/components/skeleton/skeleton.vue.d.ts +1 -1
  232. package/dist/types/components/toggle/toggle.vue.d.ts +1 -1
  233. package/dist/types/components/tooltip/tooltip.vue.d.ts +2 -2
  234. package/dist/types/index.d.ts +36 -29
  235. package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +1 -1
  236. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -2
  237. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
  238. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +2 -2
  239. package/package.json +18 -58
  240. package/CHANGELOG.json +0 -1
  241. package/CHANGELOG.md +0 -2904
  242. package/dist/dialtone-vue.cjs +0 -6
  243. package/dist/dialtone-vue.cjs.map +0 -1
  244. package/dist/directives.cjs +0 -2
  245. package/dist/directives.cjs.map +0 -1
  246. package/dist/directives.js.map +0 -1
  247. package/dist/emoji.cjs +0 -2
  248. package/dist/emoji.cjs.map +0 -1
  249. package/dist/emoji.js +0 -36
  250. package/dist/emoji_picker-kiTOKaq8.js.map +0 -1
  251. package/dist/emoji_picker-njWWAm6V.cjs +0 -2
  252. package/dist/emoji_picker-njWWAm6V.cjs.map +0 -1
  253. package/dist/emoji_text_wrapper-48ClwKvf.js.map +0 -1
  254. package/dist/emoji_text_wrapper-ZlynvHnd.cjs +0 -2
  255. package/dist/emoji_text_wrapper-ZlynvHnd.cjs.map +0 -1
  256. package/dist/index-OF94C6nQ.js +0 -142834
  257. package/dist/index-OF94C6nQ.js.map +0 -1
  258. package/dist/index-Wx7Jagcr.cjs +0 -2
  259. package/dist/index-Wx7Jagcr.cjs.map +0 -1
  260. package/dist/message_input.cjs +0 -2
  261. package/dist/message_input.cjs.map +0 -1
  262. package/dist/message_input.js.map +0 -1
  263. package/dist/rich_text_editor-RVMsCB8N.cjs +0 -98
  264. package/dist/rich_text_editor-RVMsCB8N.cjs.map +0 -1
  265. package/dist/rich_text_editor-eMvTs_Gp.js +0 -16479
  266. package/dist/rich_text_editor-eMvTs_Gp.js.map +0 -1
  267. package/dist/tooltip-88U5vFMA.js +0 -2517
  268. package/dist/tooltip-88U5vFMA.js.map +0 -1
  269. package/dist/tooltip-i2wxFIIi.cjs +0 -22
  270. package/dist/tooltip-i2wxFIIi.cjs.map +0 -1
  271. package/dist/types/common/constants.d.ts.map +0 -1
  272. package/dist/types/common/dates.d.ts.map +0 -1
  273. package/dist/types/common/utils.d.ts.map +0 -1
  274. package/dist/types/common/validators.d.ts.map +0 -1
  275. package/dist/types/components/emoji_picker/emojis/index.d.ts +0 -50
  276. package/dist/types/components/emoji_picker/emojis/index.d.ts.map +0 -1
  277. package/dist/types/directives.d.ts +0 -2
  278. package/dist/types/directives.d.ts.map +0 -1
  279. package/dist/types/emoji.d.ts +0 -5
  280. package/dist/types/emoji.d.ts.map +0 -1
  281. package/dist/types/message_input.d.ts +0 -3
  282. package/dist/types/message_input.d.ts.map +0 -1
@@ -0,0 +1,779 @@
1
+ import { b as l, P as s, c as p, f as d, d as c, e as h, a as u, l as f, n as m, h as i } from "../chunks/popover_constants-qjlEkroB.js";
2
+ import { g as Q } from "../chunks/popover_constants-qjlEkroB.js";
3
+ import { getUniqueString as r, isOutOfViewPort as v } from "./utils.js";
4
+ import { Portal as y } from "@linusborg/vue-simple-portal";
5
+ import { M as _ } from "../chunks/modal-VuMFkZFH.js";
6
+ import { n as a } from "../chunks/_plugin-vue2_normalizer-u6G_3nkj.js";
7
+ import { DtButton as O } from "./button.js";
8
+ import { DtIcon as E } from "./icon.js";
9
+ import { S as g, a as P } from "../chunks/sr_only_close_button-JGole5Xi.js";
10
+ import { DtLazyShow as b } from "./lazy-show.js";
11
+ import "tippy.js";
12
+ import "./constants.js";
13
+ import "vue";
14
+ import "../chunks/link_constants-vIUB92L4.js";
15
+ import "@dialpad/dialtone-icons/vue2";
16
+ import "../chunks/icon_constants-OpYAAKwF.js";
17
+ import "@dialpad/dialtone-icons/icons.json";
18
+ import "./skeleton.js";
19
+ const C = {
20
+ name: "PopoverHeaderFooter",
21
+ components: {
22
+ DtButton: O,
23
+ DtIcon: E
24
+ },
25
+ props: {
26
+ // eslint-disable-next-line vue/require-default-prop
27
+ type: {
28
+ type: String,
29
+ validator: function(t) {
30
+ return ["header", "footer"].includes(t);
31
+ }
32
+ },
33
+ /**
34
+ * Additional class name for the content wrapper element.
35
+ */
36
+ contentClass: {
37
+ type: [String, Array, Object],
38
+ default: ""
39
+ },
40
+ /**
41
+ * Determines visibility for close button
42
+ * @values true, false
43
+ */
44
+ showCloseButton: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ /**
49
+ * A set of props to be passed into the popover's header close button.
50
+ * Requires an 'ariaLabel' property.
51
+ */
52
+ closeButtonProps: {
53
+ type: Object,
54
+ default: () => {
55
+ }
56
+ }
57
+ },
58
+ emits: [
59
+ /**
60
+ * Emitted when popover is closed
61
+ *
62
+ * @event close
63
+ * @type { Boolean }
64
+ */
65
+ "close"
66
+ ],
67
+ methods: {
68
+ focusCloseButton() {
69
+ var e;
70
+ const t = (e = this.$refs["popover__close-button"]) == null ? void 0 : e.$el;
71
+ t == null || t.focus();
72
+ }
73
+ }
74
+ };
75
+ var S = function() {
76
+ var e = this, o = e._self._c;
77
+ return o("div", { class: {
78
+ "d-popover__header": e.type === "header",
79
+ "d-popover__footer": e.type === "footer"
80
+ }, attrs: { "data-qa": "dt-popover-header-footer" } }, [e.$slots.content ? o("div", { class: [{
81
+ "d-popover__header__content": e.type === "header",
82
+ "d-popover__footer__content": e.type === "footer"
83
+ }, e.contentClass], attrs: { "data-qa": "dt-popover-header-footer-content" } }, [e._t("content")], 2) : e._e(), e.showCloseButton ? o("dt-button", e._b({ ref: "popover__close-button", class: {
84
+ "d-popover__header__close-button": e.type === "header",
85
+ "d-popover__footer__close-button": e.type === "footer"
86
+ }, attrs: { "data-qa": "dt-popover-close", importance: "outlined", kind: "muted", circle: "" }, on: { click: function(n) {
87
+ return e.$emit("close");
88
+ } }, scopedSlots: e._u([{ key: "icon", fn: function() {
89
+ return [o("dt-icon", { attrs: { name: "close", size: "300" } })];
90
+ }, proxy: !0 }], null, !1, 2538694920) }, "dt-button", e.closeButtonProps, !1)) : e._e()], 1);
91
+ }, w = [], T = /* @__PURE__ */ a(
92
+ C,
93
+ S,
94
+ w,
95
+ !1,
96
+ null,
97
+ null,
98
+ null,
99
+ null
100
+ );
101
+ const x = T.exports, L = {
102
+ name: "DtPopover",
103
+ /********************
104
+ * CHILD COMPONENTS *
105
+ ********************/
106
+ components: {
107
+ SrOnlyCloseButton: g,
108
+ DtLazyShow: b,
109
+ PopoverHeaderFooter: x,
110
+ Portal: y
111
+ },
112
+ mixins: [_, P],
113
+ props: {
114
+ /**
115
+ * Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
116
+ * If you set this value, the default trigger behavior will be disabled, and you can control it as you need.
117
+ * Supports .sync modifier
118
+ * @values null, true, false
119
+ */
120
+ open: {
121
+ type: Boolean,
122
+ default: null
123
+ },
124
+ /**
125
+ * Opens the popover on right click (context menu). If you set this value to `true`,
126
+ * the default trigger behavior will be disabled.
127
+ * @values true, false
128
+ */
129
+ openOnContext: {
130
+ type: Boolean,
131
+ default: !1
132
+ },
133
+ /**
134
+ * Element type (tag name) of the root element of the component.
135
+ */
136
+ elementType: {
137
+ type: String,
138
+ default: "div"
139
+ },
140
+ /**
141
+ * Named transition when the content display is toggled.
142
+ * @see DtLazyShow
143
+ */
144
+ transition: {
145
+ type: String,
146
+ default: "fade"
147
+ },
148
+ /**
149
+ * ARIA role for the content of the popover. Defaults to "dialog".
150
+ * <a class="d-link" href="https://www.w3.org/TR/wai-aria/#aria-haspopup" target="_blank">aria-haspopup</a>
151
+ */
152
+ role: {
153
+ type: String,
154
+ default: "dialog",
155
+ validator: (t) => l.includes(t)
156
+ },
157
+ /**
158
+ * ID of the element that serves as the label for the popover content.
159
+ * Defaults to the "anchor" element; this exists to provide a different
160
+ * ID of the label element if, for example, the anchor slot contains
161
+ * other items that do not serve as a label. You should provide this
162
+ * or ariaLabel, but not both.
163
+ */
164
+ ariaLabelledby: {
165
+ type: String,
166
+ default: null
167
+ },
168
+ /**
169
+ * Descriptive label for the popover content. You should provide this
170
+ * or ariaLabelledby, but not both.
171
+ */
172
+ ariaLabel: {
173
+ type: String,
174
+ default: null
175
+ },
176
+ /**
177
+ * A set of props to be passed into the popover's header close button.
178
+ * Requires an 'ariaLabel' property, when the header popover is visible
179
+ */
180
+ closeButtonProps: {
181
+ type: Object,
182
+ default: () => ({})
183
+ },
184
+ /**
185
+ * Padding size class for the popover content.
186
+ * @values none, small, medium, large
187
+ */
188
+ padding: {
189
+ type: String,
190
+ default: "large",
191
+ validator: (t) => Object.keys(s).some((e) => e === t)
192
+ },
193
+ /**
194
+ * Additional class name for the content wrapper element.
195
+ */
196
+ contentClass: {
197
+ type: [String, Array, Object],
198
+ default: ""
199
+ },
200
+ /**
201
+ * Width configuration for the popover content. When its value is 'anchor',
202
+ * the popover content will have the same width as the anchor.
203
+ * @values null, anchor
204
+ */
205
+ contentWidth: {
206
+ type: String,
207
+ default: "",
208
+ validator: (t) => p.includes(t)
209
+ },
210
+ /**
211
+ * Tabindex value for the content. Passing null, no tabindex attribute will be set.
212
+ */
213
+ contentTabindex: {
214
+ type: Number || null,
215
+ default: -1
216
+ },
217
+ /**
218
+ * External anchor id to use in those cases the anchor can't be provided via the slot.
219
+ * For instance, using the combobox's input as the anchor for the popover.
220
+ */
221
+ externalAnchor: {
222
+ type: String,
223
+ default: ""
224
+ },
225
+ /**
226
+ * The id of the tooltip
227
+ */
228
+ id: {
229
+ type: String,
230
+ default() {
231
+ return r();
232
+ }
233
+ },
234
+ /**
235
+ * Displaces the content box from its anchor element
236
+ * by the specified number of pixels.
237
+ * <a
238
+ * class="d-link"
239
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#offset"
240
+ * target="_blank"
241
+ * >
242
+ * Tippy.js docs
243
+ * </a>
244
+ */
245
+ offset: {
246
+ type: Array,
247
+ default: () => [0, 4]
248
+ },
249
+ /**
250
+ * Determines if the popover hides upon clicking the
251
+ * anchor or outside the content box.
252
+ * @values true, false
253
+ */
254
+ hideOnClick: {
255
+ type: Boolean,
256
+ default: !0
257
+ },
258
+ /**
259
+ * Determines modal state. If enabled popover has a modal overlay
260
+ * preventing interaction with elements below it, but it is invisible.
261
+ * @values true, false
262
+ */
263
+ modal: {
264
+ type: Boolean,
265
+ default: !0
266
+ },
267
+ /**
268
+ * If the popover does not fit in the direction described by "placement",
269
+ * it will attempt to change its direction to the "fallbackPlacements".
270
+ * <a
271
+ * class="d-link"
272
+ * href="https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements"
273
+ * target="_blank"
274
+ * >
275
+ * Popper.js docs
276
+ * </a>
277
+ * */
278
+ fallbackPlacements: {
279
+ type: Array,
280
+ default: () => ["auto"]
281
+ },
282
+ /**
283
+ * The direction the popover displays relative to the anchor.
284
+ * <a
285
+ * class="d-link"
286
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#placement"
287
+ * target="_blank"
288
+ * >
289
+ * Tippy.js docs
290
+ * </a>
291
+ * @values top, top-start, top-end,
292
+ * right, right-start, right-end,
293
+ * left, left-start, left-end,
294
+ * bottom, bottom-start, bottom-end,
295
+ * auto, auto-start, auto-end
296
+ */
297
+ placement: {
298
+ type: String,
299
+ default: "bottom-end"
300
+ },
301
+ /**
302
+ * If set to false the dialog will display over top of the anchor when there is insufficient space.
303
+ * If set to true it will never move from its position relative to the anchor and will clip instead.
304
+ * <a
305
+ * class="d-link"
306
+ * href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether"
307
+ * target="_blank"
308
+ * >
309
+ * Popper.js docs
310
+ * </a>
311
+ * @values true, false
312
+ */
313
+ tether: {
314
+ type: Boolean,
315
+ default: !0
316
+ },
317
+ /**
318
+ * If the popover sticks to the anchor. This is usually not needed, but can be needed
319
+ * if the reference element's position is animating, or to automatically update the popover
320
+ * position in those cases the DOM layout changes the reference element's position.
321
+ * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
322
+ * checks the "popper" rect for changes.
323
+ * <a
324
+ * class="d-link"
325
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#sticky"
326
+ * target="_blank"
327
+ * >
328
+ * Tippy.js docs
329
+ * </a>
330
+ * @values true, false, reference, popper
331
+ */
332
+ sticky: {
333
+ type: [Boolean, String],
334
+ default: !1,
335
+ validator: (t) => d.includes(t)
336
+ },
337
+ /**
338
+ * Determines maximum height for the popover before overflow.
339
+ * Possible units rem|px|em
340
+ */
341
+ maxHeight: {
342
+ type: String,
343
+ default: ""
344
+ },
345
+ /**
346
+ * Determines maximum width for the popover before overflow.
347
+ * Possible units rem|px|%|em
348
+ */
349
+ maxWidth: {
350
+ type: String,
351
+ default: ""
352
+ },
353
+ /**
354
+ * Determines visibility for close button
355
+ * @values true, false
356
+ */
357
+ showCloseButton: {
358
+ type: Boolean,
359
+ default: !1
360
+ },
361
+ /**
362
+ * Additional class name for the header content wrapper element.
363
+ */
364
+ headerClass: {
365
+ type: [String, Array, Object],
366
+ default: ""
367
+ },
368
+ /**
369
+ * Additional class name for the footer content wrapper element.
370
+ */
371
+ footerClass: {
372
+ type: [String, Array, Object],
373
+ default: ""
374
+ },
375
+ /**
376
+ * Additional class name for the dialog element.
377
+ */
378
+ dialogClass: {
379
+ type: [String, Array, Object],
380
+ default: ""
381
+ },
382
+ /**
383
+ * The element that is focused when the popover is opened. This can be an
384
+ * HTMLElement within the popover, a string starting with '#' which will
385
+ * find the element by ID. 'first' which will automatically focus
386
+ * the first element, or 'dialog' which will focus the dialog window itself.
387
+ * If the dialog is modal this prop cannot be 'none'.
388
+ * @values none, dialog, first
389
+ */
390
+ initialFocusElement: {
391
+ type: [String, HTMLElement],
392
+ default: "first",
393
+ validator: (t) => c.includes(t) || t instanceof HTMLElement || t.startsWith("#")
394
+ },
395
+ /**
396
+ * If the popover should open pressing up or down arrow key on the anchor element.
397
+ * This can be set when not passing open prop.
398
+ * @values true, false
399
+ */
400
+ openWithArrowKeys: {
401
+ type: Boolean,
402
+ default: !1
403
+ },
404
+ /**
405
+ * Sets the element to which the popover is going to append to.
406
+ * 'body' will append to the nearest body (supports shadow DOM).
407
+ * @values 'body', 'parent', HTMLElement,
408
+ */
409
+ appendTo: {
410
+ type: [HTMLElement, String],
411
+ default: "body",
412
+ validator: (t) => h.includes(t) || t instanceof HTMLElement
413
+ },
414
+ /**
415
+ * Set this prop to true and popover component will support hovercard behaviour
416
+ * It will open on mouseenter and close on mouseleave with timer delay of 300ms
417
+ */
418
+ hovercard: {
419
+ type: Boolean,
420
+ default: !1
421
+ },
422
+ /**
423
+ * The timer is used only when the hovercard prop is true.
424
+ * It defines the delays when opening several hovercards.
425
+ * It must have the keys: enter, leave and current.
426
+ * If null, the default delay of 300ms will be used.
427
+ */
428
+ timer: {
429
+ type: [Object, null],
430
+ default: null,
431
+ validator: (t) => t === null || t.enter && t.leave && Object.keys(t).includes("current")
432
+ }
433
+ },
434
+ emits: [
435
+ /**
436
+ * Emitted when popover is shown or hidden
437
+ *
438
+ * @event opened
439
+ * @type {Boolean | Array}
440
+ */
441
+ "opened",
442
+ /**
443
+ * Emitted to sync value with parent
444
+ *
445
+ * @event update:opened
446
+ * @type {Boolean | Array}
447
+ */
448
+ "update:open"
449
+ ],
450
+ data() {
451
+ return {
452
+ POPOVER_PADDING_CLASSES: s,
453
+ POPOVER_HEADER_FOOTER_PADDING_CLASSES: u,
454
+ intersectionObserver: null,
455
+ isOutsideViewport: !1,
456
+ isOpen: !1,
457
+ anchorEl: null,
458
+ popoverContentEl: null,
459
+ inTimer: null,
460
+ outTimer: null
461
+ };
462
+ },
463
+ computed: {
464
+ popoverListeners() {
465
+ return {
466
+ ...this.$listeners,
467
+ keydown: (t) => {
468
+ this.onKeydown(t), this.$emit("keydown", t);
469
+ },
470
+ "after-leave": (t) => {
471
+ this.onLeaveTransitionComplete();
472
+ },
473
+ "after-enter": (t) => {
474
+ this.onEnterTransitionComplete();
475
+ }
476
+ };
477
+ },
478
+ calculatedMaxHeight() {
479
+ return this.isOutsideViewport && this.modal ? "calc(100vh - var(--dt-space-300))" : this.maxHeight;
480
+ },
481
+ labelledBy() {
482
+ return this.ariaLabelledby || !this.ariaLabel && r("DtPopover__anchor");
483
+ },
484
+ currentHovercard() {
485
+ var t;
486
+ return (t = this.timer) == null ? void 0 : t.current.value;
487
+ }
488
+ },
489
+ watch: {
490
+ $props: {
491
+ immediate: !0,
492
+ deep: !0,
493
+ handler() {
494
+ this.validateProps();
495
+ }
496
+ },
497
+ modal(t) {
498
+ var e;
499
+ (e = this.tip) == null || e.setProps({
500
+ zIndex: t ? 650 : this.calculateAnchorZindex()
501
+ });
502
+ },
503
+ offset(t) {
504
+ var e;
505
+ (e = this.tip) == null || e.setProps({
506
+ offset: t
507
+ });
508
+ },
509
+ sticky(t) {
510
+ var e;
511
+ (e = this.tip) == null || e.setProps({
512
+ sticky: t
513
+ });
514
+ },
515
+ fallbackPlacements() {
516
+ var t;
517
+ (t = this.tip) == null || t.setProps({
518
+ popperOptions: this.popperOptions()
519
+ });
520
+ },
521
+ tether() {
522
+ var t;
523
+ (t = this.tip) == null || t.setProps({
524
+ popperOptions: this.popperOptions()
525
+ });
526
+ },
527
+ placement(t) {
528
+ var e;
529
+ (e = this.tip) == null || e.setProps({
530
+ placement: t
531
+ });
532
+ },
533
+ open: {
534
+ handler: function(t) {
535
+ t !== null && (this.isOpen = t);
536
+ },
537
+ immediate: !0
538
+ },
539
+ isOpen(t, e) {
540
+ t ? (this.initTippyInstance(), this.tip.show()) : !t && e !== t && (this.removeEventListeners(), this.tip.hide());
541
+ },
542
+ currentHovercard() {
543
+ this.hovercard && this.timer && (this.currentHovercard === this.id ? this.isOpen = !0 : this.isOpen = !1);
544
+ }
545
+ },
546
+ mounted() {
547
+ var e;
548
+ const t = this.externalAnchor ? this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`) : null;
549
+ this.anchorEl = t ?? this.$refs.anchor.children[0], this.popoverContentEl = (e = this.$refs.content) == null ? void 0 : e.$el, this.isOpen && (this.initTippyInstance(), this.tip.show()), this.intersectionObserver = new IntersectionObserver(this.hasIntersectedViewport), this.intersectionObserver.observe(this.popoverContentEl);
550
+ },
551
+ beforeDestroy() {
552
+ var t;
553
+ (t = this.tip) == null || t.destroy(), this.intersectionObserver.disconnect(), this.removeReferences(), this.removeEventListeners();
554
+ },
555
+ /******************
556
+ * METHODS *
557
+ ******************/
558
+ methods: {
559
+ hasIntersectedViewport(t) {
560
+ var n;
561
+ const e = (n = t == null ? void 0 : t[0]) == null ? void 0 : n.target;
562
+ if (!e)
563
+ return;
564
+ const o = v(e);
565
+ this.isOutsideViewport = o.bottom || o.top;
566
+ },
567
+ popperOptions() {
568
+ return f({
569
+ fallbackPlacements: this.fallbackPlacements,
570
+ tether: this.tether,
571
+ hasHideModifierEnabled: !0
572
+ });
573
+ },
574
+ validateProps() {
575
+ this.modal && this.initialFocusElement === "none" && console.error('If the popover is modal you must set the initialFocusElement prop. Possible values: "dialog", "first", HTMLElement');
576
+ },
577
+ calculateAnchorZindex() {
578
+ var t;
579
+ return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 650 when
580
+ // anchor of popover is within a drawer.
581
+ (t = this.anchorEl) != null && t.closest(".d-zi-drawer") ? 650 : 300;
582
+ },
583
+ defaultToggleOpen(t) {
584
+ var e, o;
585
+ this.hovercard || this.openOnContext || (this.open ?? ((e = this.anchorEl) != null && e.contains(t.target) && !((o = this.anchorEl) != null && o.disabled) && this.toggleOpen()));
586
+ },
587
+ async onContext(t) {
588
+ this.openOnContext && (t.preventDefault(), this.isOpen = !0, await this.$nextTick(), this.tip.setProps({
589
+ placement: "right-start",
590
+ getReferenceClientRect: () => ({
591
+ width: 0,
592
+ height: 0,
593
+ top: t.clientY,
594
+ bottom: t.clientY,
595
+ left: t.clientX,
596
+ right: t.clientX
597
+ })
598
+ }));
599
+ },
600
+ toggleOpen() {
601
+ this.isOpen = !this.isOpen;
602
+ },
603
+ onArrowKeyPress(t) {
604
+ var e;
605
+ this.open === null && this.openWithArrowKeys && (e = this.anchorEl) != null && e.contains(t.target) && (this.isOpen || (this.isOpen = !0));
606
+ },
607
+ addEventListeners() {
608
+ window.addEventListener("dt-popover-close", this.closePopover), this.contentWidth === "anchor" && window.addEventListener("resize", this.onResize);
609
+ },
610
+ removeEventListeners() {
611
+ window.removeEventListener("dt-popover-close", this.closePopover), this.contentWidth === "anchor" && window.removeEventListener("resize", this.onResize);
612
+ },
613
+ closePopover() {
614
+ this.isOpen = !1;
615
+ },
616
+ /*
617
+ * Prevents scrolling outside of the currently opened modal popover by:
618
+ * - when anchor is not within another popover: setting the body to overflow: hidden
619
+ * - when anchor is within another popover: set the popover dialog container to it's non-modal z-index
620
+ * since it is no longer the active modal. This puts it underneath the overlay and prevents scrolling.
621
+ **/
622
+ preventScrolling() {
623
+ var t, e;
624
+ if (this.modal) {
625
+ const o = (t = this.anchorEl) == null ? void 0 : t.closest("body, .tippy-box");
626
+ if (!o)
627
+ return;
628
+ ((e = o.tagName) == null ? void 0 : e.toLowerCase()) === "body" ? (o.classList.add("d-of-hidden"), this.tip.setProps({ offset: this.offset })) : o.classList.add("d-zi-popover");
629
+ }
630
+ },
631
+ /*
632
+ * Resets the prevent scrolling properties set in preventScrolling() back to normal.
633
+ **/
634
+ enableScrolling() {
635
+ var e, o;
636
+ const t = (e = this.anchorEl) == null ? void 0 : e.closest("body, .tippy-box");
637
+ t && (((o = t.tagName) == null ? void 0 : o.toLowerCase()) === "body" ? (t.classList.remove("d-of-hidden"), this.tip.setProps({ offset: this.offset })) : t.classList.remove("d-zi-popover"));
638
+ },
639
+ removeReferences() {
640
+ this.anchorEl = null, this.popoverContentEl = null, this.tip = null;
641
+ },
642
+ async onShow() {
643
+ this.contentWidth === "anchor" && await this.setPopoverContentAnchorWidth(), this.contentWidth === null && (this.popoverContentEl.style.width = "auto"), this.addEventListeners();
644
+ },
645
+ async onLeaveTransitionComplete() {
646
+ var t;
647
+ this.modal && (await this.focusFirstElement(this.$refs.anchor), await this.$nextTick(), this.enableScrolling()), (t = this.tip) == null || t.unmount(), this.$emit("opened", !1), this.open !== null && this.$emit("update:open", !1);
648
+ },
649
+ async onEnterTransitionComplete() {
650
+ this.focusInitialElement(), await this.$nextTick(), this.preventScrolling(), this.$emit("opened", !0, this.$refs.popover__content), this.open !== null && this.$emit("update:open", !0);
651
+ },
652
+ focusInitialElement() {
653
+ var t, e;
654
+ this.initialFocusElement === "dialog" && ((e = (t = this.$refs.content) == null ? void 0 : t.$el) == null || e.focus()), this.initialFocusElement.startsWith("#") && this.focusInitialElementById(), this.initialFocusElement === "first" && this.focusFirstElementIfNeeded(this.$refs.popover__content), this.initialFocusElement instanceof HTMLElement && this.initialFocusElement.focus();
655
+ },
656
+ focusInitialElementById() {
657
+ var e, o, n;
658
+ const t = (o = (e = this.$refs.content) == null ? void 0 : e.$el) == null ? void 0 : o.querySelector(this.initialFocusElement);
659
+ t ? t.focus() : console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'), t ? t.focus() : (n = this.$refs.content) == null || n.$el.focus();
660
+ },
661
+ onResize() {
662
+ this.closePopover();
663
+ },
664
+ onClickOutside() {
665
+ if (!this.hideOnClick)
666
+ return;
667
+ this.popoverContentEl.querySelector(".d-popover__anchor--opened") || this.closePopover();
668
+ },
669
+ onKeydown(t) {
670
+ t.key === "Tab" && this.modal && this.focusTrappedTabPress(t, this.popoverContentEl), t.key === "Escape" && this.closePopover();
671
+ },
672
+ async setPopoverContentAnchorWidth() {
673
+ var t;
674
+ await this.$nextTick(), this.popoverContentEl.style.width = `${(t = this.anchorEl) == null ? void 0 : t.clientWidth}px`;
675
+ },
676
+ focusFirstElementIfNeeded(t) {
677
+ var o, n;
678
+ this._getFocusableElements(t, !0).length !== 0 ? this.focusFirstElement(t) : this.showCloseButton ? (o = this.$refs.popover__header) == null || o.focusCloseButton() : (n = this.$refs.content) == null || n.$el.focus();
679
+ },
680
+ initTippyInstance() {
681
+ var t, e;
682
+ this.tip = m(this.anchorEl, {
683
+ popperOptions: this.popperOptions(),
684
+ contentElement: this.popoverContentEl,
685
+ placement: this.placement,
686
+ offset: this.offset,
687
+ sticky: this.sticky,
688
+ appendTo: this.appendTo === "body" ? (e = (t = this.anchorEl) == null ? void 0 : t.getRootNode()) == null ? void 0 : e.querySelector("body") : this.appendTo,
689
+ interactive: !0,
690
+ trigger: "manual",
691
+ // We have to manage hideOnClick functionality manually to handle
692
+ // popover within popover situations.
693
+ hideOnClick: !1,
694
+ zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
695
+ onClickOutside: this.onClickOutside,
696
+ onShow: this.onShow
697
+ });
698
+ },
699
+ // ============================================================================
700
+ // $ HOVERCARD
701
+ // ----------------------------------------------------------------------------
702
+ setInTimer() {
703
+ this.inTimer = setTimeout(() => {
704
+ this.isOpen = !0;
705
+ }, i);
706
+ },
707
+ setOutTimer() {
708
+ this.outTimer = setTimeout(() => {
709
+ this.isOpen = !1;
710
+ }, i);
711
+ },
712
+ onEnterAnchor() {
713
+ this.hovercard && (this.timer ? this.timer.enter(this.id) : (clearTimeout(this.outTimer), this.setInTimer()));
714
+ },
715
+ onLeaveAnchor() {
716
+ this.hovercard && (this.timer ? this.timer.leave() : (clearTimeout(this.inTimer), this.setOutTimer()));
717
+ },
718
+ onEnterContent() {
719
+ this.hovercard && (this.timer ? this.timer.enter(this.id) : clearTimeout(this.outTimer));
720
+ },
721
+ onLeaveContent() {
722
+ this.hovercard && (this.timer ? this.timer.leave() : this.setOutTimer());
723
+ }
724
+ // ============================================================================
725
+ // $ HOVERCARD
726
+ // ----------------------------------------------------------------------------
727
+ }
728
+ };
729
+ var k = function() {
730
+ var e = this, o = e._self._c;
731
+ return o("div", [e.modal && e.isOpen ? o("portal", [o("div", { staticClass: "d-modal--transparent", attrs: { "aria-hidden": e.modal && e.isOpen ? "false" : "true" }, on: { click: function(n) {
732
+ n.preventDefault(), n.stopPropagation();
733
+ } } })]) : e._e(), o(e.elementType, e._g({ ref: "popover", tag: "component", class: ["d-popover", { "d-popover__anchor--opened": e.isOpen }], attrs: { "data-qa": "dt-popover-container" } }, e.$listeners), [o("div", { ref: "anchor", attrs: { id: !e.ariaLabelledby && e.labelledBy, "data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}-anchor` : "dt-popover-anchor", tabindex: e.openOnContext ? 0 : void 0 }, on: { "!click": function(n) {
734
+ return e.defaultToggleOpen.apply(null, arguments);
735
+ }, contextmenu: e.onContext, keydown: [function(n) {
736
+ return !n.type.indexOf("key") && e._k(n.keyCode, "up", 38, n.key, ["Up", "ArrowUp"]) ? null : (n.preventDefault(), e.onArrowKeyPress.apply(null, arguments));
737
+ }, function(n) {
738
+ return !n.type.indexOf("key") && e._k(n.keyCode, "down", 40, n.key, ["Down", "ArrowDown"]) ? null : (n.preventDefault(), e.onArrowKeyPress.apply(null, arguments));
739
+ }], "!keydown": function(n) {
740
+ return !n.type.indexOf("key") && e._k(n.keyCode, "escape", void 0, n.key, void 0) ? null : e.closePopover.apply(null, arguments);
741
+ }, mouseenter: e.onEnterAnchor, mouseleave: e.onLeaveAnchor } }, [e._t("anchor", null, { attrs: {
742
+ "aria-expanded": e.isOpen.toString(),
743
+ "aria-controls": e.id,
744
+ "aria-haspopup": e.role
745
+ } })], 2), o("dt-lazy-show", e._g({ ref: "content", class: ["d-popover__dialog", { "d-popover__dialog--modal": e.modal }, e.dialogClass], style: {
746
+ "max-height": e.calculatedMaxHeight,
747
+ "max-width": e.maxWidth
748
+ }, attrs: { id: e.id, role: e.role, "data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}__dialog` : "dt-popover", "aria-hidden": `${!e.isOpen}`, "aria-labelledby": e.labelledBy, "aria-label": e.ariaLabel, "aria-modal": `${!e.modal}`, transition: e.transition, show: e.isOpen, tabindex: e.contentTabindex, appear: "" }, on: { mouseenter: e.onEnterContent, mouseleave: e.onLeaveContent } }, e.popoverListeners), [e.$slots.headerContent || e.showCloseButton ? o("popover-header-footer", { ref: "popover__header", class: e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding], attrs: { "content-class": e.headerClass, type: "header", "show-close-button": e.showCloseButton, "close-button-props": e.closeButtonProps }, on: { close: e.closePopover }, scopedSlots: e._u([{ key: "content", fn: function() {
749
+ return [e._t("headerContent", null, { close: e.closePopover })];
750
+ }, proxy: !0 }], null, !0) }) : e._e(), o("div", { ref: "popover__content", class: [
751
+ "d-popover__content",
752
+ e.POPOVER_PADDING_CLASSES[e.padding],
753
+ e.contentClass
754
+ ], attrs: { "data-qa": e.$attrs["data-qa"] ? `${e.$attrs["data-qa"]}-content` : "dt-popover-content" } }, [e._t("content", null, { close: e.closePopover })], 2), e.$slots.footerContent ? o("popover-header-footer", { ref: "popover__footer", class: e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding], attrs: { type: "footer", "content-class": e.footerClass }, scopedSlots: e._u([{ key: "content", fn: function() {
755
+ return [e._t("footerContent", null, { close: e.closePopover })];
756
+ }, proxy: !0 }], null, !0) }) : e._e(), e.showVisuallyHiddenClose ? o("sr-only-close-button", { attrs: { "visually-hidden-close-label": e.visuallyHiddenCloseLabel }, on: { close: e.closePopover } }) : e._e()], 1)], 1)], 1);
757
+ }, A = [], $ = /* @__PURE__ */ a(
758
+ L,
759
+ k,
760
+ A,
761
+ !1,
762
+ null,
763
+ null,
764
+ null,
765
+ null
766
+ );
767
+ const Z = $.exports;
768
+ export {
769
+ Z as DtPopover,
770
+ h as POPOVER_APPEND_TO_VALUES,
771
+ p as POPOVER_CONTENT_WIDTHS,
772
+ Q as POPOVER_DIRECTIONS,
773
+ u as POPOVER_HEADER_FOOTER_PADDING_CLASSES,
774
+ c as POPOVER_INITIAL_FOCUS_STRINGS,
775
+ s as POPOVER_PADDING_CLASSES,
776
+ l as POPOVER_ROLES,
777
+ d as POPOVER_STICKY_VALUES
778
+ };
779
+ //# sourceMappingURL=popover.js.map