@dialpad/dialtone-vue 4.9.0 → 4.10.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 (230) hide show
  1. package/dist/{Combobox-WsLvegw6.js → Combobox-DP8tbe6x.js} +1 -1
  2. package/dist/{Combobox-WsLvegw6.js.map → Combobox-DP8tbe6x.js.map} +1 -1
  3. package/dist/{Combobox-96zAPv6d.cjs → Combobox-DdBIRmeH.cjs} +1 -1
  4. package/dist/{Combobox-96zAPv6d.cjs.map → Combobox-DdBIRmeH.cjs.map} +1 -1
  5. package/dist/{Datepicker-D-Lgvthq.js → Datepicker-CNFVUyyK.js} +1 -1
  6. package/dist/{Datepicker-D-Lgvthq.js.map → Datepicker-CNFVUyyK.js.map} +1 -1
  7. package/dist/{Datepicker-DmKOuf5y.cjs → Datepicker-Df6uR0r_.cjs} +1 -1
  8. package/dist/{Datepicker-DmKOuf5y.cjs.map → Datepicker-Df6uR0r_.cjs.map} +1 -1
  9. package/dist/{EmojiPicker-D46lLRMp.js → EmojiPicker-B7AKJlAM.js} +1 -1
  10. package/dist/{EmojiPicker-D46lLRMp.js.map → EmojiPicker-B7AKJlAM.js.map} +1 -1
  11. package/dist/{EmojiPicker-CXFd-iVj.cjs → EmojiPicker-KbIfc-GH.cjs} +1 -1
  12. package/dist/{EmojiPicker-CXFd-iVj.cjs.map → EmojiPicker-KbIfc-GH.cjs.map} +1 -1
  13. package/dist/{FilterPill-IBlswKiK.js → FilterPill-BR7FAmMG.js} +2 -2
  14. package/dist/{FilterPill-IBlswKiK.js.map → FilterPill-BR7FAmMG.js.map} +1 -1
  15. package/dist/FilterPill-DwapR9JK.cjs +2 -0
  16. package/dist/{FilterPill-DY9T19XB.cjs.map → FilterPill-DwapR9JK.cjs.map} +1 -1
  17. package/dist/{ForceLinkify-DhmBEXhe.cjs → ForceLinkify-D4FBhBxD.cjs} +1 -1
  18. package/dist/{ForceLinkify-DhmBEXhe.cjs.map → ForceLinkify-D4FBhBxD.cjs.map} +1 -1
  19. package/dist/{ForceLinkify-53Zegx7z.js → ForceLinkify-wTXS_wJS.js} +1 -1
  20. package/dist/{ForceLinkify-53Zegx7z.js.map → ForceLinkify-wTXS_wJS.js.map} +1 -1
  21. package/dist/{MarkdownRenderer-Cnbn7gje.js → MarkdownRenderer-3CVbodrq.js} +1 -1
  22. package/dist/{MarkdownRenderer-Cnbn7gje.js.map → MarkdownRenderer-3CVbodrq.js.map} +1 -1
  23. package/dist/{MarkdownRenderer-a12waV7r.cjs → MarkdownRenderer-CaBjENW6.cjs} +1 -1
  24. package/dist/{MarkdownRenderer-a12waV7r.cjs.map → MarkdownRenderer-CaBjENW6.cjs.map} +1 -1
  25. package/dist/{Resizable-DdP6uPio.cjs → Resizable-BQsHIvDC.cjs} +2 -2
  26. package/dist/{Resizable-DdP6uPio.cjs.map → Resizable-BQsHIvDC.cjs.map} +1 -1
  27. package/dist/{Resizable-Ddsm-H14.js → Resizable-F6PU5oKB.js} +3 -3
  28. package/dist/{Resizable-Ddsm-H14.js.map → Resizable-F6PU5oKB.js.map} +1 -1
  29. package/dist/{ResizableHandle-DQduVxrG.js → ResizableHandle-CqIIQvza.js} +3 -3
  30. package/dist/{ResizableHandle-DQduVxrG.js.map → ResizableHandle-CqIIQvza.js.map} +1 -1
  31. package/dist/{ResizableHandle-_ldmhyEw.cjs → ResizableHandle-VBoudEYy.cjs} +2 -2
  32. package/dist/{ResizableHandle-_ldmhyEw.cjs.map → ResizableHandle-VBoudEYy.cjs.map} +1 -1
  33. package/dist/{ResizableUtils-BptSHmLg.cjs → ResizableUtils-CZdVSd6q.cjs} +1 -1
  34. package/dist/{ResizableUtils-BptSHmLg.cjs.map → ResizableUtils-CZdVSd6q.cjs.map} +1 -1
  35. package/dist/{ResizableUtils-BIRNCdKB.js → ResizableUtils-CrBOa8js.js} +1 -1
  36. package/dist/{ResizableUtils-BIRNCdKB.js.map → ResizableUtils-CrBOa8js.js.map} +1 -1
  37. package/dist/{RichTextEditor-DhNhx5AH.js → RichTextEditor-DLiJCPI6.js} +5 -5
  38. package/dist/{RichTextEditor-DhNhx5AH.js.map → RichTextEditor-DLiJCPI6.js.map} +1 -1
  39. package/dist/{RichTextEditor-CjyvDYID.cjs → RichTextEditor-ECmStZDK.cjs} +2 -2
  40. package/dist/{RichTextEditor-CjyvDYID.cjs.map → RichTextEditor-ECmStZDK.cjs.map} +1 -1
  41. package/dist/{Scroller-D7MjyXun.js → Scroller-D6f0HvIT.js} +1 -1
  42. package/dist/{Scroller-D7MjyXun.js.map → Scroller-D6f0HvIT.js.map} +1 -1
  43. package/dist/{Scroller-Bt8TUghI.cjs → Scroller-EIHN3a26.cjs} +1 -1
  44. package/dist/{Scroller-Bt8TUghI.cjs.map → Scroller-EIHN3a26.cjs.map} +1 -1
  45. package/dist/{Slider-CfvbLBv5.cjs → Slider-BDgY7gNR.cjs} +2 -2
  46. package/dist/{Slider-CfvbLBv5.cjs.map → Slider-BDgY7gNR.cjs.map} +1 -1
  47. package/dist/{Slider-Xd5Aj9nS.js → Slider-Bg9KspmL.js} +3 -3
  48. package/dist/{Slider-Xd5Aj9nS.js.map → Slider-Bg9KspmL.js.map} +1 -1
  49. package/dist/Text-5MobHF6z.js +404 -0
  50. package/dist/Text-5MobHF6z.js.map +1 -0
  51. package/dist/Text-DNVNZree.cjs +2 -0
  52. package/dist/Text-DNVNZree.cjs.map +1 -0
  53. package/dist/{TextList-DUL3NwQp.cjs → TextList-1_ZM5zE3.cjs} +1 -1
  54. package/dist/{TextList-DUL3NwQp.cjs.map → TextList-1_ZM5zE3.cjs.map} +1 -1
  55. package/dist/{TextList-CkY7OAl2.js → TextList-DIj84CPZ.js} +1 -1
  56. package/dist/{TextList-CkY7OAl2.js.map → TextList-DIj84CPZ.js.map} +1 -1
  57. package/dist/{TextListItem-D96feMQf.js → TextListItem-BhmijfFO.js} +1 -1
  58. package/dist/{TextListItem-D96feMQf.js.map → TextListItem-BhmijfFO.js.map} +1 -1
  59. package/dist/{TextListItem-BI9M_J8Y.cjs → TextListItem-CVjrHr2_.cjs} +1 -1
  60. package/dist/{TextListItem-BI9M_J8Y.cjs.map → TextListItem-CVjrHr2_.cjs.map} +1 -1
  61. package/dist/{Toast-BXvUrvd_.cjs → Toast--W8p7jzA.cjs} +1 -1
  62. package/dist/{Toast-BXvUrvd_.cjs.map → Toast--W8p7jzA.cjs.map} +1 -1
  63. package/dist/{Toast-DmzQrYtG.js → Toast-4nsu1oxP.js} +1 -1
  64. package/dist/{Toast-DmzQrYtG.js.map → Toast-4nsu1oxP.js.map} +1 -1
  65. package/dist/{UseResizableCalculations-k6TSRlpa.js → UseResizableCalculations-B-yTU9ZI.js} +2 -2
  66. package/dist/{UseResizableCalculations-k6TSRlpa.js.map → UseResizableCalculations-B-yTU9ZI.js.map} +1 -1
  67. package/dist/{UseResizableCalculations-BNcxJfef.cjs → UseResizableCalculations-CahDXDOn.cjs} +2 -2
  68. package/dist/{UseResizableCalculations-BNcxJfef.cjs.map → UseResizableCalculations-CahDXDOn.cjs.map} +1 -1
  69. package/dist/component-documentation.json +1 -1
  70. package/dist/components/Banner/Banner.vue.d.ts +53 -1
  71. package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
  72. package/dist/components/Checkbox/Checkbox.vue.d.ts +53 -1
  73. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  74. package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +53 -1
  75. package/dist/components/Dropdown/Dropdown.vue.d.ts +0 -3
  76. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  77. package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts +53 -1
  78. package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts +53 -1
  79. package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts.map +1 -1
  80. package/dist/components/FilterPill/FilterPill.vue.d.ts +159 -6
  81. package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
  82. package/dist/components/Input/Input.vue.d.ts +53 -1
  83. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  84. package/dist/components/InputGroup/InputGroup.vue.d.ts +53 -1
  85. package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
  86. package/dist/components/KeyboardShortcut/KeyboardShortcut.vue.d.ts +53 -1
  87. package/dist/components/Modal/Modal.vue.d.ts +53 -1
  88. package/dist/components/Modal/Modal.vue.d.ts.map +1 -1
  89. package/dist/components/Notice/Notice.vue.d.ts +53 -1
  90. package/dist/components/Notice/Notice.vue.d.ts.map +1 -1
  91. package/dist/components/Notice/NoticeContent.vue.d.ts +53 -1
  92. package/dist/components/Notice/NoticeContent.vue.d.ts.map +1 -1
  93. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  94. package/dist/components/Radio/Radio.vue.d.ts +53 -1
  95. package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
  96. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +53 -1
  97. package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +53 -1
  98. package/dist/components/RichTextEditor/Extensions/SlashCommand/SlashCommandSuggestion.vue.d.ts +53 -1
  99. package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +53 -1
  100. package/dist/components/SelectMenu/SelectMenu.vue.d.ts +53 -1
  101. package/dist/components/SelectMenu/SelectMenu.vue.d.ts.map +1 -1
  102. package/dist/components/SplitButton/SplitButton.vue.d.ts +0 -3
  103. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  104. package/dist/components/Text/Text.vue.d.ts +53 -1
  105. package/dist/components/Text/Text.vue.d.ts.map +1 -1
  106. package/dist/components/Text/TextConstants.d.ts +2 -0
  107. package/dist/components/Text/TextConstants.d.ts.map +1 -1
  108. package/dist/components/Text/index.d.ts +1 -1
  109. package/dist/components/Text/modules/SlideViewport.vue.d.ts +38 -0
  110. package/dist/components/Text/modules/SlideViewport.vue.d.ts.map +1 -0
  111. package/dist/components/Text/modules/slide.d.ts +19 -0
  112. package/dist/components/Text/modules/slide.d.ts.map +1 -0
  113. package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts +53 -1
  114. package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts.map +1 -1
  115. package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts +53 -1
  116. package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts.map +1 -1
  117. package/dist/components/Toast/Toast.vue.d.ts +212 -4
  118. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  119. package/dist/dialtone-vue.cjs +1 -1
  120. package/dist/dialtone-vue.js +27 -28
  121. package/dist/{floating-ui.dom-BUeA6pp4.js → floating-ui.dom-Cqf6X2Wc.js} +1 -1
  122. package/dist/{floating-ui.dom-BUeA6pp4.js.map → floating-ui.dom-Cqf6X2Wc.js.map} +1 -1
  123. package/dist/{floating-ui.dom-DF2uE3n8.cjs → floating-ui.dom-n1CheoWj.cjs} +1 -1
  124. package/dist/{floating-ui.dom-DF2uE3n8.cjs.map → floating-ui.dom-n1CheoWj.cjs.map} +1 -1
  125. package/dist/index.d.ts +0 -1
  126. package/dist/lib/checkbox/checkbox.cjs +1 -1
  127. package/dist/lib/checkbox/checkbox.cjs.map +1 -1
  128. package/dist/lib/checkbox/checkbox.js +1 -1
  129. package/dist/lib/combobox/combobox.cjs +1 -1
  130. package/dist/lib/combobox/combobox.js +1 -1
  131. package/dist/lib/combobox/index.cjs +1 -1
  132. package/dist/lib/combobox/index.js +1 -1
  133. package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  134. package/dist/lib/combobox-with-popover/combobox-with-popover.js +1 -1
  135. package/dist/lib/datepicker/datepicker.cjs +1 -1
  136. package/dist/lib/datepicker/datepicker.js +1 -1
  137. package/dist/lib/datepicker/index.cjs +1 -1
  138. package/dist/lib/datepicker/index.js +1 -1
  139. package/dist/lib/dropdown/dropdown-list.cjs +1 -1
  140. package/dist/lib/dropdown/dropdown-list.cjs.map +1 -1
  141. package/dist/lib/dropdown/dropdown-list.js +1 -1
  142. package/dist/lib/dropdown/dropdown.cjs +1 -1
  143. package/dist/lib/dropdown/dropdown.cjs.map +1 -1
  144. package/dist/lib/dropdown/dropdown.js +5 -15
  145. package/dist/lib/dropdown/dropdown.js.map +1 -1
  146. package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
  147. package/dist/lib/emoji-picker/emoji-picker.js +1 -1
  148. package/dist/lib/emoji-picker/index.cjs +1 -1
  149. package/dist/lib/emoji-picker/index.js +1 -1
  150. package/dist/lib/empty-state/empty-state.cjs +1 -1
  151. package/dist/lib/empty-state/empty-state.cjs.map +1 -1
  152. package/dist/lib/empty-state/empty-state.js +1 -1
  153. package/dist/lib/filter-pill/filter-pill.cjs +1 -1
  154. package/dist/lib/filter-pill/filter-pill.js +1 -1
  155. package/dist/lib/filter-pill/index.cjs +1 -1
  156. package/dist/lib/filter-pill/index.js +1 -1
  157. package/dist/lib/input/input.cjs +1 -1
  158. package/dist/lib/input/input.cjs.map +1 -1
  159. package/dist/lib/input/input.js +1 -1
  160. package/dist/lib/input-group/input-group.cjs +1 -1
  161. package/dist/lib/input-group/input-group.cjs.map +1 -1
  162. package/dist/lib/input-group/input-group.js +1 -1
  163. package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
  164. package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
  165. package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +1 -1
  166. package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +1 -1
  167. package/dist/lib/kitchen-sink/kitchen-sink-view.cjs.map +1 -1
  168. package/dist/lib/kitchen-sink/kitchen-sink-view.js +1 -1
  169. package/dist/lib/modal/modal.cjs +1 -1
  170. package/dist/lib/modal/modal.cjs.map +1 -1
  171. package/dist/lib/modal/modal.js +1 -1
  172. package/dist/lib/notice/notice-content.cjs +1 -1
  173. package/dist/lib/notice/notice-content.cjs.map +1 -1
  174. package/dist/lib/notice/notice-content.js +1 -1
  175. package/dist/lib/popover/popover.cjs +1 -1
  176. package/dist/lib/popover/popover.cjs.map +1 -1
  177. package/dist/lib/popover/popover.js +6 -1
  178. package/dist/lib/popover/popover.js.map +1 -1
  179. package/dist/lib/radio/radio.cjs +1 -1
  180. package/dist/lib/radio/radio.cjs.map +1 -1
  181. package/dist/lib/radio/radio.js +1 -1
  182. package/dist/lib/resizable/index.cjs +1 -1
  183. package/dist/lib/resizable/index.js +3 -3
  184. package/dist/lib/resizable/resizable-handle.cjs +1 -1
  185. package/dist/lib/resizable/resizable-handle.js +1 -1
  186. package/dist/lib/resizable/resizable-panel.cjs +1 -1
  187. package/dist/lib/resizable/resizable-panel.js +1 -1
  188. package/dist/lib/resizable/resizable.cjs +1 -1
  189. package/dist/lib/resizable/resizable.js +1 -1
  190. package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
  191. package/dist/lib/rich-text-editor/force-linkify.js +1 -1
  192. package/dist/lib/rich-text-editor/index.cjs +1 -1
  193. package/dist/lib/rich-text-editor/index.js +1 -1
  194. package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
  195. package/dist/lib/rich-text-editor/markdown-renderer.js +1 -1
  196. package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
  197. package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
  198. package/dist/lib/scroller/index.cjs +1 -1
  199. package/dist/lib/scroller/index.js +1 -1
  200. package/dist/lib/scroller/scroller.cjs +1 -1
  201. package/dist/lib/scroller/scroller.js +1 -1
  202. package/dist/lib/select-menu/select-menu.cjs +1 -1
  203. package/dist/lib/select-menu/select-menu.cjs.map +1 -1
  204. package/dist/lib/select-menu/select-menu.js +1 -1
  205. package/dist/lib/slider/index.cjs +1 -1
  206. package/dist/lib/slider/index.js +1 -1
  207. package/dist/lib/slider/slider.cjs +1 -1
  208. package/dist/lib/slider/slider.js +1 -1
  209. package/dist/lib/text/index.cjs +1 -1
  210. package/dist/lib/text/index.js +3 -3
  211. package/dist/lib/text/text-constants.cjs +1 -1
  212. package/dist/lib/text/text-constants.cjs.map +1 -1
  213. package/dist/lib/text/text-constants.js +5 -4
  214. package/dist/lib/text/text-constants.js.map +1 -1
  215. package/dist/lib/text/text.cjs +1 -2
  216. package/dist/lib/text/text.js +2 -184
  217. package/dist/lib/text-list/index.cjs +1 -1
  218. package/dist/lib/text-list/index.js +2 -2
  219. package/dist/lib/text-list/text-list-item.cjs +1 -1
  220. package/dist/lib/text-list/text-list-item.js +1 -1
  221. package/dist/lib/text-list/text-list.cjs +1 -1
  222. package/dist/lib/text-list/text-list.js +1 -1
  223. package/dist/lib/toast/index.cjs +1 -1
  224. package/dist/lib/toast/index.js +1 -1
  225. package/dist/lib/toast/toast.cjs +1 -1
  226. package/dist/lib/toast/toast.js +1 -1
  227. package/package.json +9 -4
  228. package/dist/FilterPill-DY9T19XB.cjs +0 -2
  229. package/dist/lib/text/text.cjs.map +0 -1
  230. package/dist/lib/text/text.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text-DNVNZree.cjs","names":[],"sources":["../components/Text/modules/slide.js","../components/Text/modules/SlideViewport.vue","../components/Text/modules/SlideViewport.vue","../components/Text/Text.vue"],"sourcesContent":["// Private helpers for the DtText `slide` option. Framework-free: nothing here\n// touches Vue; only modules/SlideViewport.vue calls into it, and only when `slide` is on.\n\n// The item a user points at or tabs to: a link, a button, or an element with an item\n// role. Focusable regions (a scroll area with tabindex=\"0\", popover content with\n// tabindex=\"-1\") are not items; a row that should drive the reveal takes an item role.\nconst HOST_ROLES = ['button', 'link', 'listitem', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'tab', 'treeitem', 'row', 'gridcell'];\nconst HOST_SELECTOR = ['a[href]', 'button', 'summary', ...HOST_ROLES.map((role) => `[role=\"${role}\"]`)].join(',');\n\nconst DEFAULT_SPEED = 40; // px per second\nconst DEFAULT_DELAY = 500; // ms\n// ms, longest single movement. A reveal that crawls reads as broken, so `once` is capped\n// at 3 s; a loop is read while it moves and may take up to 5 s per cycle.\nconst MAX_MOVEMENT = { once: 3000, loop: 5000 };\n// A loop pauses 5 s between cycles and stops, resting at the start, after 3 cycles, so the\n// whole sequence is bounded (about 25 s at most) as well as each movement.\nexport const LOOP_HOLD = 5000;\nexport const MAX_LOOPS = 3;\n\n/**\n * The element whose hover/focus drives the slide: the closest item around\n * the text (button, link, menu item...) or the text itself.\n */\nexport function getSlideHost (el) {\n return el.closest(HOST_SELECTOR) || el;\n}\n\n// Keyboard focus only: a menu that focuses the hovered row, or a clicked button that\n// keeps focus, must not keep the label moving after the pointer leaves.\nfunction isKeyboardFocus (target) {\n try {\n return target.matches(':focus-visible');\n } catch {\n return true;\n }\n}\n\n/**\n * Listens on the host and calls onEnter when the first of pointer or focus\n * arrives, onLeave when both have left. Returns an unbind function.\n */\nexport function bindSlide ({ el, moveEl, onEnter, onLeave, onTransitionEnd }) {\n const host = getSlideHost(el);\n const state = { pointer: false, focus: false };\n const set = (key, value) => {\n const was = state.pointer || state.focus;\n state[key] = value;\n const active = state.pointer || state.focus;\n if (active !== was) (active ? onEnter : onLeave)();\n };\n const handlers = {\n pointerenter: () => set('pointer', true),\n pointerleave: () => set('pointer', false),\n focusin: (event) => isKeyboardFocus(event.target) && set('focus', true),\n focusout: (event) => host.contains(event.relatedTarget) || set('focus', false),\n };\n const transitionEnd = (event) => {\n if (event.target === moveEl && event.propertyName === 'transform') onTransitionEnd();\n };\n\n Object.entries(handlers).forEach(([name, fn]) => host.addEventListener(name, fn));\n moveEl.addEventListener('transitionend', transitionEnd);\n\n return () => {\n Object.entries(handlers).forEach(([name, fn]) => host.removeEventListener(name, fn));\n moveEl.removeEventListener('transitionend', transitionEnd);\n };\n}\n\n/**\n * Calls onEscape when Escape is pressed anywhere on the page: a row moving under the\n * pointer may not have focus. Listens in the capture phase so a focused control that\n * stops Escape cannot hide it; the event is not stopped. Returns a remove function.\n */\nexport function listenForEscape (el, onEscape) {\n const doc = el.ownerDocument;\n const keydown = (event) => event.key === 'Escape' && onEscape();\n doc.addEventListener('keydown', keydown, true);\n return () => doc.removeEventListener('keydown', keydown, true);\n}\n\n/**\n * Calls onChange while the item is active when the label's width or the room for it\n * changes: the text is edited to a different width, or the viewport is resized. A label\n * that changes at the same width (a running timer) is left alone, and the loop copy is\n * ignored. Returns a stop function.\n */\nexport function watchSlideChanges (viewport, content, onChange) {\n const copyOf = () => content.querySelector('.d-text__slide-copy');\n const labelWidth = () => content.scrollWidth - (copyOf()?.offsetWidth ?? 0);\n let width = viewport.clientWidth;\n let label = labelWidth();\n const resize = typeof ResizeObserver === 'function' && new ResizeObserver(() => {\n // the copy can widen a shrinkable flex row; loop remeasures before each cycle anyway\n if (copyOf() || viewport.clientWidth === width) return;\n width = viewport.clientWidth;\n onChange();\n });\n // Vue swaps a comment placeholder for the copy; neither is the label changing\n const ignored = (node) => node.nodeType === Node.COMMENT_NODE ||\n Boolean((node.nodeType === Node.ELEMENT_NODE ? node : node.parentElement)?.closest('.d-text__slide-copy'));\n const mutation = new MutationObserver((records) => {\n const changed = records.some((record) => !ignored(record.target) &&\n (record.type === 'characterData' || [...record.addedNodes, ...record.removedNodes].some((node) => !ignored(node))));\n if (!changed || labelWidth() === label) return;\n label = labelWidth();\n onChange();\n });\n resize?.observe(viewport);\n mutation.observe(content, { childList: true, characterData: true, subtree: true });\n return () => {\n resize?.disconnect();\n mutation.disconnect();\n };\n}\n\nfunction parseTime (value, fallback) {\n const match = /^\\s*(-?\\d*\\.?\\d+)\\s*(ms|s)?\\s*$/.exec(value || '');\n if (!match) return fallback;\n const number = parseFloat(match[1]);\n return match[2] === 's' ? number * 1000 : number;\n}\n\n/**\n * Reads the public tuning custom properties from the element.\n */\nexport function readSlideConfig (el) {\n const style = getComputedStyle(el);\n const speed = parseFloat(style.getPropertyValue('--dt-text-slide-speed'));\n return {\n speed: speed > 0 ? speed : DEFAULT_SPEED,\n delay: Math.max(0, parseTime(style.getPropertyValue('--dt-text-slide-delay'), DEFAULT_DELAY)),\n };\n}\n\n/**\n * Duration in ms for one movement; long text moves faster instead of slower.\n */\nexport function getSlideDuration (distance, speed, mode) {\n return Math.min((distance / speed) * 1000, MAX_MOVEMENT[mode]);\n}\n\nexport function prefersReducedMotion () {\n return typeof window.matchMedia === 'function' &&\n window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n}\n","<template>\n <span\n ref=\"viewportEl\"\n :class=\"viewportClasses\"\n :style=\"viewportStyles\"\n >\n <span\n ref=\"contentEl\"\n class=\"d-text__slide-content\"\n >\n <slot />\n <!-- loop only: filled with a static clone of the text while it moves -->\n <span\n v-if=\"hasCopy\"\n ref=\"copyEl\"\n aria-hidden=\"true\"\n inert\n class=\"d-text__slide-copy\"\n />\n </span>\n </span>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n nextTick,\n onActivated,\n onBeforeUnmount,\n onDeactivated,\n onMounted,\n ref,\n watch,\n} from 'vue';\nimport { TEXT_SLIDE_MODES } from '../TextConstants';\nimport {\n bindSlide,\n getSlideDuration,\n listenForEscape,\n prefersReducedMotion,\n readSlideConfig,\n watchSlideChanges,\n LOOP_HOLD,\n MAX_LOOPS,\n} from './slide';\n\n/** @typedef {'rest' | 'waiting' | 'moving' | 'at-end' | 'at-start'} SlidePhase */\n\n// Internal to DtText: rendered only when `slide` is on, so plain text carries no slide state.\n// The outer span clips and fades the text; only the inner span moves, with transform.\ndefineOptions({ name: 'DtTextSlideViewport' });\n\nconst props = defineProps({\n // 'once' or 'loop'\n mode: {\n type: String,\n required: true,\n validator: (value) => TEXT_SLIDE_MODES.includes(value),\n },\n});\n\nconst viewportEl = ref(null);\nconst contentEl = ref(null);\nconst copyEl = ref(null);\n\n/** @type {import('vue').Ref<SlidePhase>} */\nconst phase = ref('rest');\nconst offset = ref(0);\nconst duration = ref(0);\nconst hasCopy = ref(false);\nconst loopWrap = ref(false);\n\n/**\n * Non-reactive bookkeeping.\n * @type {{ unbind: (() => void) | null, stopActive: Array<() => void>, timers: number[],\n * distance: number, restWidth: number, loops: number }}\n */\nconst runtime = { unbind: null, stopActive: [], timers: [], distance: 0, restWidth: 0, loops: 0 };\n\nconst viewportClasses = computed(() => ['d-text__slide', {\n 'd-text__slide--moving': phase.value === 'moving',\n 'd-text__slide--end': phase.value === 'at-end',\n 'd-text__slide--loop': phase.value === 'moving' && hasCopy.value,\n 'd-text__slide--loop-wrap': loopWrap.value,\n}]);\n\nconst viewportStyles = computed(() => (phase.value === 'rest'\n ? undefined\n : { '--_slide-offset': `${offset.value}px`, '--_slide-duration': `${duration.value}ms` }));\n\nconst viewport = () => viewportEl.value;\nconst content = () => contentEl.value;\n\nfunction bind () {\n unbind();\n runtime.unbind = bindSlide({\n // the DtText root: the host is the item around it, or the text itself\n el: viewport().parentElement,\n moveEl: content(),\n onEnter: activate,\n onLeave: deactivate,\n onTransitionEnd: moveDone,\n });\n}\n\nfunction unbind () {\n runtime.unbind?.();\n runtime.unbind = null;\n deactivate();\n}\n\n// the item is hovered or keyboard-focused: watch for Escape and for changes until it is left\nfunction activate () {\n runtime.stopActive = [\n listenForEscape(viewport(), deactivate),\n // a new label width or more room: start again from rest with fresh widths\n watchSlideChanges(viewport(), content(), () => {\n reset();\n enter();\n }),\n ];\n enter();\n}\n\n// left, Escape or unmounted: stop watching and snap back\nfunction deactivate () {\n runtime.stopActive.forEach((stop) => stop());\n runtime.stopActive = [];\n reset();\n}\n\nfunction after (ms, fn) {\n runtime.timers.push(setTimeout(fn, ms));\n}\n\nfunction clearTimers () {\n runtime.timers.forEach(clearTimeout);\n runtime.timers = [];\n}\n\n// snap to rest, no reverse animation\n/** @param {SlidePhase} next */\nfunction reset (next = 'rest') {\n clearTimers();\n phase.value = next;\n offset.value = 0;\n duration.value = 0;\n hasCopy.value = false;\n loopWrap.value = false;\n}\n\n// measures the label before each cycle (it may change during a hold); false when it fits\nfunction measure () {\n const el = content();\n runtime.distance = el.scrollWidth - el.clientWidth;\n runtime.restWidth = el.scrollWidth;\n return runtime.distance > 0;\n}\n\nfunction enter () {\n if (phase.value !== 'rest' || !measure()) {\n return;\n }\n\n runtime.loops = 0;\n phase.value = 'waiting';\n after(readSlideConfig(viewport()).delay, start);\n}\n\nfunction start () {\n if (prefersReducedMotion()) {\n phase.value = 'at-end';\n offset.value = runtime.distance;\n } else if (props.mode === 'loop') {\n loop();\n } else {\n move(runtime.distance);\n }\n}\n\nfunction move (to) {\n const time = getSlideDuration(Math.abs(to - offset.value), readSlideConfig(viewport()).speed, props.mode);\n clearTimers();\n phase.value = 'moving';\n offset.value = to;\n duration.value = time;\n // in case transitionend does not fire\n after(time + 100, moveDone);\n return time;\n}\n\nasync function loop () {\n if (!measure()) {\n return;\n }\n // the copy has to be in the DOM to measure the full wrap-around distance\n hasCopy.value = true;\n await nextTick();\n const el = content();\n const copy = copyEl.value;\n if (!hasCopy.value || !copy) {\n return;\n }\n // a static clone, cleaned while detached: slot components do not mount twice, and no ids,\n // form values, radio groups, validation or tab stops repeat\n const original = [...el.childNodes].filter((node) => node !== copy);\n const clone = el.ownerDocument.createDocumentFragment();\n clone.append(...original.map((node) => node.cloneNode(true)));\n clone.querySelectorAll('[id], [name]').forEach((node) => {\n node.removeAttribute('id');\n node.removeAttribute('name');\n });\n clone.querySelectorAll('input, select, textarea, button').forEach((node) => {\n node.disabled = true;\n });\n copy.replaceChildren(clone);\n const { restWidth } = runtime;\n const distance = el.scrollWidth - restWidth;\n const time = move(distance);\n runtime.loops += 1;\n // the start edge fades while the text slides out, then clears once the gap is\n // half past it, before the copy arrives (the scroll is linear, so time = distance)\n const gap = parseFloat(getComputedStyle(copy).paddingInlineStart) || 0;\n after(time * (restWidth + gap / 2) / distance, () => { loopWrap.value = true; });\n}\n\nfunction moveDone () {\n if (phase.value !== 'moving') {\n return;\n }\n if (props.mode !== 'loop') {\n clearTimers();\n phase.value = 'at-end';\n return;\n }\n // the copy now sits exactly where the text began, so snap back unseen; stop after MAX_LOOPS\n reset('at-start');\n if (runtime.loops < MAX_LOOPS) {\n after(LOOP_HOLD, loop);\n }\n}\n\n// a sequence started in the old mode can end on the loop copy: start again from rest\nwatch(() => props.mode, async () => {\n if (!runtime.stopActive.length) {\n return;\n }\n reset();\n // measure once the loop copy has left the DOM\n await nextTick();\n if (runtime.stopActive.length) {\n enter();\n }\n});\n\nonMounted(bind);\nonBeforeUnmount(unbind);\n// inside KeepAlive the host can vanish without a pointerleave or focusout\nonActivated(bind);\nonDeactivated(unbind);\n</script>\n","<template>\n <span\n ref=\"viewportEl\"\n :class=\"viewportClasses\"\n :style=\"viewportStyles\"\n >\n <span\n ref=\"contentEl\"\n class=\"d-text__slide-content\"\n >\n <slot />\n <!-- loop only: filled with a static clone of the text while it moves -->\n <span\n v-if=\"hasCopy\"\n ref=\"copyEl\"\n aria-hidden=\"true\"\n inert\n class=\"d-text__slide-copy\"\n />\n </span>\n </span>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n nextTick,\n onActivated,\n onBeforeUnmount,\n onDeactivated,\n onMounted,\n ref,\n watch,\n} from 'vue';\nimport { TEXT_SLIDE_MODES } from '../TextConstants';\nimport {\n bindSlide,\n getSlideDuration,\n listenForEscape,\n prefersReducedMotion,\n readSlideConfig,\n watchSlideChanges,\n LOOP_HOLD,\n MAX_LOOPS,\n} from './slide';\n\n/** @typedef {'rest' | 'waiting' | 'moving' | 'at-end' | 'at-start'} SlidePhase */\n\n// Internal to DtText: rendered only when `slide` is on, so plain text carries no slide state.\n// The outer span clips and fades the text; only the inner span moves, with transform.\ndefineOptions({ name: 'DtTextSlideViewport' });\n\nconst props = defineProps({\n // 'once' or 'loop'\n mode: {\n type: String,\n required: true,\n validator: (value) => TEXT_SLIDE_MODES.includes(value),\n },\n});\n\nconst viewportEl = ref(null);\nconst contentEl = ref(null);\nconst copyEl = ref(null);\n\n/** @type {import('vue').Ref<SlidePhase>} */\nconst phase = ref('rest');\nconst offset = ref(0);\nconst duration = ref(0);\nconst hasCopy = ref(false);\nconst loopWrap = ref(false);\n\n/**\n * Non-reactive bookkeeping.\n * @type {{ unbind: (() => void) | null, stopActive: Array<() => void>, timers: number[],\n * distance: number, restWidth: number, loops: number }}\n */\nconst runtime = { unbind: null, stopActive: [], timers: [], distance: 0, restWidth: 0, loops: 0 };\n\nconst viewportClasses = computed(() => ['d-text__slide', {\n 'd-text__slide--moving': phase.value === 'moving',\n 'd-text__slide--end': phase.value === 'at-end',\n 'd-text__slide--loop': phase.value === 'moving' && hasCopy.value,\n 'd-text__slide--loop-wrap': loopWrap.value,\n}]);\n\nconst viewportStyles = computed(() => (phase.value === 'rest'\n ? undefined\n : { '--_slide-offset': `${offset.value}px`, '--_slide-duration': `${duration.value}ms` }));\n\nconst viewport = () => viewportEl.value;\nconst content = () => contentEl.value;\n\nfunction bind () {\n unbind();\n runtime.unbind = bindSlide({\n // the DtText root: the host is the item around it, or the text itself\n el: viewport().parentElement,\n moveEl: content(),\n onEnter: activate,\n onLeave: deactivate,\n onTransitionEnd: moveDone,\n });\n}\n\nfunction unbind () {\n runtime.unbind?.();\n runtime.unbind = null;\n deactivate();\n}\n\n// the item is hovered or keyboard-focused: watch for Escape and for changes until it is left\nfunction activate () {\n runtime.stopActive = [\n listenForEscape(viewport(), deactivate),\n // a new label width or more room: start again from rest with fresh widths\n watchSlideChanges(viewport(), content(), () => {\n reset();\n enter();\n }),\n ];\n enter();\n}\n\n// left, Escape or unmounted: stop watching and snap back\nfunction deactivate () {\n runtime.stopActive.forEach((stop) => stop());\n runtime.stopActive = [];\n reset();\n}\n\nfunction after (ms, fn) {\n runtime.timers.push(setTimeout(fn, ms));\n}\n\nfunction clearTimers () {\n runtime.timers.forEach(clearTimeout);\n runtime.timers = [];\n}\n\n// snap to rest, no reverse animation\n/** @param {SlidePhase} next */\nfunction reset (next = 'rest') {\n clearTimers();\n phase.value = next;\n offset.value = 0;\n duration.value = 0;\n hasCopy.value = false;\n loopWrap.value = false;\n}\n\n// measures the label before each cycle (it may change during a hold); false when it fits\nfunction measure () {\n const el = content();\n runtime.distance = el.scrollWidth - el.clientWidth;\n runtime.restWidth = el.scrollWidth;\n return runtime.distance > 0;\n}\n\nfunction enter () {\n if (phase.value !== 'rest' || !measure()) {\n return;\n }\n\n runtime.loops = 0;\n phase.value = 'waiting';\n after(readSlideConfig(viewport()).delay, start);\n}\n\nfunction start () {\n if (prefersReducedMotion()) {\n phase.value = 'at-end';\n offset.value = runtime.distance;\n } else if (props.mode === 'loop') {\n loop();\n } else {\n move(runtime.distance);\n }\n}\n\nfunction move (to) {\n const time = getSlideDuration(Math.abs(to - offset.value), readSlideConfig(viewport()).speed, props.mode);\n clearTimers();\n phase.value = 'moving';\n offset.value = to;\n duration.value = time;\n // in case transitionend does not fire\n after(time + 100, moveDone);\n return time;\n}\n\nasync function loop () {\n if (!measure()) {\n return;\n }\n // the copy has to be in the DOM to measure the full wrap-around distance\n hasCopy.value = true;\n await nextTick();\n const el = content();\n const copy = copyEl.value;\n if (!hasCopy.value || !copy) {\n return;\n }\n // a static clone, cleaned while detached: slot components do not mount twice, and no ids,\n // form values, radio groups, validation or tab stops repeat\n const original = [...el.childNodes].filter((node) => node !== copy);\n const clone = el.ownerDocument.createDocumentFragment();\n clone.append(...original.map((node) => node.cloneNode(true)));\n clone.querySelectorAll('[id], [name]').forEach((node) => {\n node.removeAttribute('id');\n node.removeAttribute('name');\n });\n clone.querySelectorAll('input, select, textarea, button').forEach((node) => {\n node.disabled = true;\n });\n copy.replaceChildren(clone);\n const { restWidth } = runtime;\n const distance = el.scrollWidth - restWidth;\n const time = move(distance);\n runtime.loops += 1;\n // the start edge fades while the text slides out, then clears once the gap is\n // half past it, before the copy arrives (the scroll is linear, so time = distance)\n const gap = parseFloat(getComputedStyle(copy).paddingInlineStart) || 0;\n after(time * (restWidth + gap / 2) / distance, () => { loopWrap.value = true; });\n}\n\nfunction moveDone () {\n if (phase.value !== 'moving') {\n return;\n }\n if (props.mode !== 'loop') {\n clearTimers();\n phase.value = 'at-end';\n return;\n }\n // the copy now sits exactly where the text began, so snap back unseen; stop after MAX_LOOPS\n reset('at-start');\n if (runtime.loops < MAX_LOOPS) {\n after(LOOP_HOLD, loop);\n }\n}\n\n// a sequence started in the old mode can end on the loop copy: start again from rest\nwatch(() => props.mode, async () => {\n if (!runtime.stopActive.length) {\n return;\n }\n reset();\n // measure once the loop copy has left the DOM\n await nextTick();\n if (runtime.stopActive.length) {\n enter();\n }\n});\n\nonMounted(bind);\nonBeforeUnmount(unbind);\n// inside KeepAlive the host can vanish without a pointerleave or focusout\nonActivated(bind);\nonDeactivated(unbind);\n</script>\n","<template>\n <component\n :is=\"as\"\n data-qa=\"dt-text\"\n :class=\"textClasses\"\n :style=\"textStyles\"\n >\n <!-- the slide state lives in this child, so plain text carries none -->\n <dt-text-slide-viewport\n v-if=\"slideMode\"\n :mode=\"slideMode\"\n >\n <!-- @slot Default slot for text content -->\n <slot />\n </dt-text-slide-viewport>\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n TEXT_KIND_MODIFIERS,\n TEXT_VARIANT_MODIFIERS,\n TEXT_SIZE_MODIFIERS,\n TEXT_SIZE_MAP,\n TEXT_HEADLINE_ONLY_SIZES,\n TEXT_FONT_SIZE_MODIFIERS,\n TEXT_FAMILY_MODIFIERS,\n TEXT_ITALIC_CLASS,\n TEXT_ALIGN_MODIFIERS,\n TEXT_TONE_MODIFIERS,\n TEXT_NUMERIC_CLASS,\n TEXT_TRUNCATE_CLASS,\n TEXT_LINE_CLAMP_CLASS,\n TEXT_WRAP_MODIFIERS,\n TEXT_BOX_TRIM_MODIFIERS,\n TEXT_STRENGTH_MODIFIERS,\n TEXT_DENSITY_MODIFIERS,\n TEXT_SLIDE_MODES,\n} from './TextConstants';\nimport DtTextSlideViewport from './modules/SlideViewport.vue';\n\nconst DEFAULT_SIZE = '300';\nconst SEMANTIC_HEADING_ELEMENTS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n\n// Module-level flag to emit info only once per session\nlet hasEmittedHeadlineSemanticInfo = false;\nlet hasWarnedSlideConflict = false;\n\n// Exported for testing purposes only\nexport const resetHeadlineSemanticInfoFlag = () => {\n hasEmittedHeadlineSemanticInfo = false;\n};\n\n/**\n * Dialtone text primitive that applies typography tokens based on semantic props.\n * @see https://dialtone.dialpad.com/components/text.html\n */\nexport default {\n name: 'DtText',\n\n components: { DtTextSlideViewport },\n\n props: {\n /**\n * HTML tag or component used for rendering.\n * @values span, p, strong, h1, h2, h3, h4, h5, h6, label, div, component\n */\n as: {\n type: String,\n default: 'span',\n },\n\n /**\n * Typography kind mapping to headline/body/label/code token sets.\n * @values headline, body, label, code\n * @deprecated Use variant instead\n */\n kind: {\n type: String,\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_KIND_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Typography variant mapping to a complete token-backed composition.\n * @values headline-3xl, headline-2xl, headline-xl, headline-lg, headline-md, headline-sm, headline-xs, body-lg, body-md, body-sm, body-xs, label-lg, label-md, label-sm, label-xs, code-lg, code-md, code-sm, code-xs\n */\n variant: {\n type: String,\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_VARIANT_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Raw font-size token. Must be paired with `variant` for overrides or legacy `kind` for composition size.\n * @values 50, 75, 100, 125, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800\n */\n size: {\n type: [String, Number],\n default: null,\n },\n\n /**\n * Overrides font-family. By default, no font-family class is emitted and text inherits naturally.\n * @values inherit, custom, sans, mono, expressive\n */\n family: {\n type: String,\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_FAMILY_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Applies italic font style when true.\n */\n italic: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Semantic foreground color.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n tone: {\n type: String,\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_TONE_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Logical text alignment. Requires block/inline-block context.\n * @values start, center, end, justify\n */\n align: {\n type: String,\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_ALIGN_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Enables single-line truncation (i.e. ellipsis) when true; requires block/inline-block context.\n */\n truncate: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Applies multi-line truncation (i.e. clamp) when greater than zero; requires block/inline-block context.\n */\n maxLines: {\n type: Number,\n default: null,\n validator: (value) => {\n return value === null || (Number.isInteger(value) && value > 0);\n },\n },\n\n /**\n * Renders numeric content with tabular figures.\n */\n numeric: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls text wrapping behavior.\n * @values wrap, nowrap, balance, pretty\n */\n wrap: {\n type: String,\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_WRAP_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Controls text-box-trim (leading space above/below text). Useful for tight component layouts.\n * @values start, end, both\n */\n textBoxTrim: {\n type: String,\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_BOX_TRIM_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Overrides font-weight. Applies to any kind/size combination.\n * @values bold, semibold, medium, normal\n */\n strength: {\n type: String,\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_STRENGTH_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Overrides line-height. Applies to any kind/size combination.\n * @values 100, 200, 300, 400, 500, 600\n */\n density: {\n type: [String, Number],\n default: null,\n validator: (value) => {\n return (\n value === null ||\n Object.prototype.hasOwnProperty.call(TEXT_DENSITY_MODIFIERS, value)\n );\n },\n },\n\n /**\n * Slides overflowing single-line text into view while the text, or the item around it\n * (button, link, menu item), is hovered or has keyboard focus. `true` is the same as `once`.\n * Renders as a block and replaces `truncate`, `maxLines` and `wrap`. Tune with the\n * `--dt-text-slide-*` CSS custom properties listed in the DtText docs.\n * @values true, false, once, loop\n */\n slide: {\n type: [Boolean, String],\n default: false,\n validator: (value) => {\n return typeof value === 'boolean' || TEXT_SLIDE_MODES.includes(value);\n },\n },\n },\n\n computed: {\n textClasses() {\n const classes = ['d-text'];\n const variantClass = this.getVariantClass();\n if (variantClass) {\n classes.push(variantClass);\n }\n\n const fontSizeClass = this.getFontSizeClass();\n if (fontSizeClass) {\n classes.push(fontSizeClass);\n }\n\n const familyClass = this.getFamilyClass();\n if (familyClass) {\n classes.push(familyClass);\n }\n\n if (this.italic) {\n classes.push(TEXT_ITALIC_CLASS);\n }\n\n const alignClass = this.getAlignClass();\n if (alignClass) {\n classes.push(alignClass);\n }\n\n const toneClass = this.getToneClass();\n if (toneClass) {\n classes.push(toneClass);\n }\n\n if (this.slideMode) {\n classes.push('d-text--slide');\n } else if (this.truncate) {\n classes.push(TEXT_TRUNCATE_CLASS);\n }\n\n if (this.numeric) {\n classes.push(TEXT_NUMERIC_CLASS);\n }\n\n if (this.maxLines && !this.slideMode) {\n classes.push(TEXT_LINE_CLAMP_CLASS);\n }\n\n const wrapClass = this.slideMode ? null : this.getWrapClass();\n if (wrapClass) {\n classes.push(wrapClass);\n }\n\n const textBoxTrimClass = this.getTextBoxTrimClass();\n if (textBoxTrimClass) {\n classes.push(textBoxTrimClass);\n }\n\n const strengthClass = this.getStrengthClass();\n if (strengthClass) {\n classes.push(strengthClass);\n }\n\n const densityClass = this.getDensityClass();\n if (densityClass) {\n classes.push(densityClass);\n }\n\n return classes;\n },\n\n textStyles() {\n if (!this.maxLines || this.slideMode) {\n return undefined;\n }\n\n return {\n '--dt-text-line-clamp': this.maxLines,\n };\n },\n\n slideMode() {\n if (TEXT_SLIDE_MODES.includes(this.slide)) {\n return this.slide;\n }\n return this.slide ? 'once' : null;\n },\n },\n\n mounted() {\n if (this.slideMode && !hasWarnedSlideConflict && (this.maxLines || this.wrap)) {\n // eslint-disable-next-line no-console\n console.warn('[DtText] slide ignores maxLines and wrap.');\n hasWarnedSlideConflict = true;\n }\n\n // Emit info once per session when headline is used without semantic heading element\n if (\n !hasEmittedHeadlineSemanticInfo &&\n this.usesHeadlineVisualStyle() &&\n !SEMANTIC_HEADING_ELEMENTS.includes(this.as)\n ) {\n console.info(\n '[DtText] A headline text style is used without a semantic heading element. ' +\n 'Consider using as=\"h1|h2|h3|h4|h5|h6\" for better accessibility.',\n );\n hasEmittedHeadlineSemanticInfo = true;\n }\n },\n\n methods: {\n usesHeadlineVisualStyle() {\n if (this.variant) {\n return this.variant.startsWith('headline-');\n }\n\n return this.kind === 'headline';\n },\n\n usesLegacyKindSize() {\n return Boolean(this.kind && !this.variant);\n },\n\n getVariantClass() {\n if (this.variant) {\n return this.getModifierClass(\n this.variant,\n TEXT_VARIANT_MODIFIERS,\n 'variant',\n );\n }\n\n if (!this.kind) {\n return null;\n }\n\n if (\n !Object.prototype.hasOwnProperty.call(TEXT_KIND_MODIFIERS, this.kind)\n ) {\n console.warn(`[DtText] Unsupported kind \"${this.kind}\".`);\n return null;\n }\n\n const allowedSizes = TEXT_SIZE_MODIFIERS[this.kind] || [];\n const rawSize = this.size != null ? String(this.size) : null;\n const requestedSize = rawSize || DEFAULT_SIZE;\n let resolvedSize = requestedSize;\n\n if (!allowedSizes.includes(requestedSize)) {\n // Headline-only sizes (3xl, 2xl, xl, 500, 600, 700) throw an error when used with incompatible kinds\n if (TEXT_HEADLINE_ONLY_SIZES.includes(requestedSize)) {\n throw new Error(\n `[DtText] size=\"${requestedSize}\" is only valid for kind=\"headline\". ` +\n `Cannot use with kind=\"${this.kind}\".`,\n );\n }\n\n // Universal sizes fall back gracefully with a warning\n const fallbackSize = allowedSizes.includes(DEFAULT_SIZE)\n ? DEFAULT_SIZE\n : allowedSizes[0];\n if (fallbackSize) {\n resolvedSize = fallbackSize;\n }\n console.warn(\n `[DtText] size=\"${requestedSize}\" is not valid for kind=\"${this.kind}\". Using \"${resolvedSize}\" instead.`,\n );\n }\n\n if (!resolvedSize) {\n return null;\n }\n\n // Map numeric sizes to t-shirt CSS class suffix\n const cssSuffix = TEXT_SIZE_MAP[resolvedSize] || resolvedSize;\n return `${TEXT_KIND_MODIFIERS[this.kind]}--${cssSuffix}`;\n },\n\n getFontSizeClass() {\n if (this.size === null || this.size === undefined) {\n return null;\n }\n\n if (!this.variant && !this.kind) {\n console.warn(\n '[DtText] size must be paired with variant or legacy kind. ' +\n 'Prefer variant for typography composition; use size only as a variant override.',\n );\n return null;\n }\n\n if (this.usesLegacyKindSize()) {\n return null;\n }\n\n const size = String(this.size);\n const className = TEXT_FONT_SIZE_MODIFIERS[size];\n if (className) {\n return className;\n }\n\n console.warn(\n `[DtText] Unsupported size \"${size}\". Use a numeric font-size token.`,\n );\n return null;\n },\n\n getModifierClass(value, modifiers, propName) {\n if (value === null || value === undefined) {\n return null;\n }\n\n const className = modifiers[value];\n if (!className) {\n console.warn(`[DtText] Unsupported ${propName} \"${value}\".`);\n return null;\n }\n\n return className;\n },\n\n getAlignClass() {\n return this.getModifierClass(this.align, TEXT_ALIGN_MODIFIERS, 'align');\n },\n\n getToneClass() {\n return this.getModifierClass(this.tone, TEXT_TONE_MODIFIERS, 'tone');\n },\n\n getWrapClass() {\n return this.getModifierClass(this.wrap, TEXT_WRAP_MODIFIERS, 'wrap');\n },\n\n getTextBoxTrimClass() {\n return this.getModifierClass(\n this.textBoxTrim,\n TEXT_BOX_TRIM_MODIFIERS,\n 'textBoxTrim',\n );\n },\n\n getStrengthClass() {\n return this.getModifierClass(\n this.strength,\n TEXT_STRENGTH_MODIFIERS,\n 'strength',\n );\n },\n\n getDensityClass() {\n return this.getModifierClass(\n this.density,\n TEXT_DENSITY_MODIFIERS,\n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AA,oBAAqB,OAAO,EAGtE,cAAe,CACb,OAAO,KAAK,iBAAiB,KAAK,KAAM,EAAA,oBAAqB,OAAO,EAGtE,qBAAsB,CACpB,OAAO,KAAK,iBACV,KAAK,YACL,EAAA,wBACA,cACD,EAGH,kBAAmB,CACjB,OAAO,KAAK,iBACV,KAAK,SACL,EAAA,wBACA,WACD,EAGH,iBAAkB,CAChB,OAAO,KAAK,iBACV,KAAK,QACL,EAAA,uBACA,UACD,EAGH,gBAAiB,CACf,OAAO,KAAK,iBACV,KAAK,OACL,EAAA,sBACA,SACD,EAEJ,CACF,wJAlhBQ,EAAA,GAAE,CAAA,CACP,UAAQ,UACP,OAAA,EAAA,EAAA,gBAAO,EAAA,YAAW,CAClB,OAAA,EAAA,EAAA,gBAAO,EAAA,WAAU,6BASO,CALjB,EAAA,YAAA,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,aAKiB,EAAA,OAJtB,KAAM,EAAA,sCAGC,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,CAAA,oCAEK,EAAA,OAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAAA,CAAA"}
@@ -1,2 +1,2 @@
1
1
  require(`./chunk-Bmb41Sf3.cjs`);const e=require(`./lib/text-list/text-list-constants.cjs`),t=require(`./lib/text-list/validators.cjs`);let n=require(`vue`);var r=(0,n.defineComponent)({name:`DtTextList`,__name:`TextList`,props:{type:{type:String,default:e.DT_TEXT_LIST_DEFAULT_TYPE,validator:t.textListTypeValidator},marker:{type:String,default:void 0,validator:t.textListMarkerValidator},markerTone:{type:String,default:void 0,validator:t.textListMarkerToneValidator},gap:{type:String,default:void 0,validator:t.textListGapValidator},start:{type:Number,default:void 0},reversed:{type:Boolean,default:!1}},setup(t){let r=t,i=(0,n.ref)(null);(0,n.provide)(e.DT_TEXT_LIST_CONTEXT,{type:(0,n.toRef)(r,`type`)});let a=(0,n.computed)(()=>r.type===`ordered`),o=(0,n.computed)(()=>a.value?`ol`:`ul`),s=(0,n.computed)(()=>r.marker===`none`?`list`:void 0),c=(0,n.computed)(()=>a.value?r.start:void 0),l=(0,n.computed)(()=>a.value&&r.reversed?!0:void 0),u=(0,n.computed)(()=>[`d-text-list`,r.gap?`d-text-list--gap-${r.gap}`:null,{"d-text-list--ordered":a.value},r.marker?`d-text-list--marker-${r.marker}`:null,r.markerTone?`d-text-list--marker-tone-${r.markerTone}`:null]),d=e=>console.warn(`[DtTextList] ${e}`);function f(){a.value||(r.start!==void 0&&d(`The start prop only applies when type="ordered".`),r.reversed&&d(`The reversed prop only applies when type="ordered".`))}function p(){!r.marker||r.marker===`none`||(r.type===`ordered`&&e.DT_TEXT_LIST_UNORDERED_MARKERS.includes(r.marker)&&d(`The marker="${r.marker}" value is usually used with type="unordered".`),r.type===`unordered`&&e.DT_TEXT_LIST_ORDERED_MARKERS.includes(r.marker)&&d(`The marker="${r.marker}" value is usually used with type="ordered".`))}function m(){let e=i.value?.$el??i.value;if(e){for(let t of e.children)if(t.tagName!==`LI`){d(`Use DtTextListItem or a native li as the direct child of DtTextList.`);break}}}return(0,n.onMounted)(()=>{process.env.NODE_ENV!==`production`&&(f(),p(),m())}),(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(o.value),{ref_key:`listRef`,ref:i,"data-qa":`dt-text-list`,class:(0,n.normalizeClass)(u.value),role:s.value,start:c.value,reversed:l.value},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`,`role`,`start`,`reversed`]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
2
- //# sourceMappingURL=TextList-DUL3NwQp.cjs.map
2
+ //# sourceMappingURL=TextList-1_ZM5zE3.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextList-DUL3NwQp.cjs","names":[],"sources":["../components/TextList/TextList.vue","../components/TextList/TextList.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <component\n :is=\"listElement\"\n ref=\"listRef\"\n data-qa=\"dt-text-list\"\n :class=\"textListClasses\"\n :role=\"role\"\n :start=\"orderedStart\"\n :reversed=\"orderedReversed\"\n >\n <!-- @slot Text list items. Use DtTextListItem as the direct child. -->\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n onMounted,\n provide,\n ref,\n toRef,\n} from 'vue';\nimport {\n DT_TEXT_LIST_CONTEXT,\n DT_TEXT_LIST_DEFAULT_TYPE,\n DT_TEXT_LIST_ORDERED_MARKERS,\n DT_TEXT_LIST_UNORDERED_MARKERS,\n} from './TextListConstants';\nimport {\n textListGapValidator,\n textListMarkerToneValidator,\n textListMarkerValidator,\n textListTypeValidator,\n} from './Validators';\n\ndefineOptions({\n name: 'DtTextList',\n});\n\nconst props = defineProps({\n /**\n * Semantic list type. Sets the rendered element to `ul` or `ol`.\n * @values unordered, ordered\n */\n type: {\n type: String,\n default: DT_TEXT_LIST_DEFAULT_TYPE,\n validator: textListTypeValidator,\n },\n\n /**\n * Visual marker style. Leave unset for automatic depth-aware markers.\n * @values disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman, none\n */\n marker: {\n type: String,\n default: undefined,\n validator: textListMarkerValidator,\n },\n\n /**\n * Marker foreground tone. Uses the same tone vocabulary as DtText.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Space between list items and before nested lists.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400\n */\n gap: {\n type: String,\n default: undefined,\n validator: textListGapValidator,\n },\n\n /**\n * Starting number for ordered lists.\n */\n start: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Reverse ordered list numbering.\n */\n reversed: {\n type: Boolean,\n default: false,\n },\n});\n\nconst listRef = ref(null);\n\nprovide(DT_TEXT_LIST_CONTEXT, {\n type: toRef(props, 'type'),\n});\n\nconst isOrdered = computed(() => props.type === 'ordered');\nconst listElement = computed(() => isOrdered.value ? 'ol' : 'ul');\n// Safari drops list semantics when list-style is none; restore them explicitly.\nconst role = computed(() => props.marker === 'none' ? 'list' : undefined);\nconst orderedStart = computed(() => isOrdered.value ? props.start : undefined);\nconst orderedReversed = computed(() => isOrdered.value && props.reversed ? true : undefined);\n\nconst textListClasses = computed(() => [\n 'd-text-list',\n props.gap ? `d-text-list--gap-${props.gap}` : null,\n {\n 'd-text-list--ordered': isOrdered.value,\n },\n props.marker ? `d-text-list--marker-${props.marker}` : null,\n props.markerTone ? `d-text-list--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextList] ${message}`);\n\nfunction validateOrderedOnlyProps () {\n if (isOrdered.value) return;\n\n if (props.start !== undefined) {\n warn('The start prop only applies when type=\"ordered\".');\n }\n\n if (props.reversed) {\n warn('The reversed prop only applies when type=\"ordered\".');\n }\n}\n\nfunction validateMarkerFamily () {\n if (!props.marker || props.marker === 'none') return;\n\n if (props.type === 'ordered' && DT_TEXT_LIST_UNORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"unordered\".`);\n }\n\n if (props.type === 'unordered' && DT_TEXT_LIST_ORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"ordered\".`);\n }\n}\n\nfunction validateChildren () {\n const rootElement = listRef.value?.$el ?? listRef.value;\n if (!rootElement) return;\n\n for (const child of rootElement.children) {\n if (child.tagName === 'LI') continue;\n\n warn('Use DtTextListItem or a native li as the direct child of DtTextList.');\n break;\n }\n}\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n validateOrderedOnlyProps();\n validateMarkerFamily();\n validateChildren();\n }\n});\n</script>\n","<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <component\n :is=\"listElement\"\n ref=\"listRef\"\n data-qa=\"dt-text-list\"\n :class=\"textListClasses\"\n :role=\"role\"\n :start=\"orderedStart\"\n :reversed=\"orderedReversed\"\n >\n <!-- @slot Text list items. Use DtTextListItem as the direct child. -->\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n onMounted,\n provide,\n ref,\n toRef,\n} from 'vue';\nimport {\n DT_TEXT_LIST_CONTEXT,\n DT_TEXT_LIST_DEFAULT_TYPE,\n DT_TEXT_LIST_ORDERED_MARKERS,\n DT_TEXT_LIST_UNORDERED_MARKERS,\n} from './TextListConstants';\nimport {\n textListGapValidator,\n textListMarkerToneValidator,\n textListMarkerValidator,\n textListTypeValidator,\n} from './Validators';\n\ndefineOptions({\n name: 'DtTextList',\n});\n\nconst props = defineProps({\n /**\n * Semantic list type. Sets the rendered element to `ul` or `ol`.\n * @values unordered, ordered\n */\n type: {\n type: String,\n default: DT_TEXT_LIST_DEFAULT_TYPE,\n validator: textListTypeValidator,\n },\n\n /**\n * Visual marker style. Leave unset for automatic depth-aware markers.\n * @values disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman, none\n */\n marker: {\n type: String,\n default: undefined,\n validator: textListMarkerValidator,\n },\n\n /**\n * Marker foreground tone. Uses the same tone vocabulary as DtText.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Space between list items and before nested lists.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400\n */\n gap: {\n type: String,\n default: undefined,\n validator: textListGapValidator,\n },\n\n /**\n * Starting number for ordered lists.\n */\n start: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Reverse ordered list numbering.\n */\n reversed: {\n type: Boolean,\n default: false,\n },\n});\n\nconst listRef = ref(null);\n\nprovide(DT_TEXT_LIST_CONTEXT, {\n type: toRef(props, 'type'),\n});\n\nconst isOrdered = computed(() => props.type === 'ordered');\nconst listElement = computed(() => isOrdered.value ? 'ol' : 'ul');\n// Safari drops list semantics when list-style is none; restore them explicitly.\nconst role = computed(() => props.marker === 'none' ? 'list' : undefined);\nconst orderedStart = computed(() => isOrdered.value ? props.start : undefined);\nconst orderedReversed = computed(() => isOrdered.value && props.reversed ? true : undefined);\n\nconst textListClasses = computed(() => [\n 'd-text-list',\n props.gap ? `d-text-list--gap-${props.gap}` : null,\n {\n 'd-text-list--ordered': isOrdered.value,\n },\n props.marker ? `d-text-list--marker-${props.marker}` : null,\n props.markerTone ? `d-text-list--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextList] ${message}`);\n\nfunction validateOrderedOnlyProps () {\n if (isOrdered.value) return;\n\n if (props.start !== undefined) {\n warn('The start prop only applies when type=\"ordered\".');\n }\n\n if (props.reversed) {\n warn('The reversed prop only applies when type=\"ordered\".');\n }\n}\n\nfunction validateMarkerFamily () {\n if (!props.marker || props.marker === 'none') return;\n\n if (props.type === 'ordered' && DT_TEXT_LIST_UNORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"unordered\".`);\n }\n\n if (props.type === 'unordered' && DT_TEXT_LIST_ORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"ordered\".`);\n }\n}\n\nfunction validateChildren () {\n const rootElement = listRef.value?.$el ?? listRef.value;\n if (!rootElement) return;\n\n for (const child of rootElement.children) {\n if (child.tagName === 'LI') continue;\n\n warn('Use DtTextListItem or a native li as the direct child of DtTextList.');\n break;\n }\n}\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n validateOrderedOnlyProps();\n validateMarkerFamily();\n validateChildren();\n }\n});\n</script>\n"],"mappings":"umBA0CA,IAAM,EAAQ,EA0DR,GAAA,EAAA,EAAA,KAAc,KAA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B,GAA0B,CAC1B,GAAsB,CACtB,GAAkB,GAEpB,2EArKO,EAAA,MAAW,CAAA,SACZ,UAAJ,IAAI,EACJ,UAAQ,eACP,OAAA,EAAA,EAAA,gBAAO,EAAA,MAAe,CACtB,KAAM,EAAA,MACN,MAAO,EAAA,MACP,SAAU,EAAA,kCAGH,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"TextList-1_ZM5zE3.cjs","names":[],"sources":["../components/TextList/TextList.vue","../components/TextList/TextList.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <component\n :is=\"listElement\"\n ref=\"listRef\"\n data-qa=\"dt-text-list\"\n :class=\"textListClasses\"\n :role=\"role\"\n :start=\"orderedStart\"\n :reversed=\"orderedReversed\"\n >\n <!-- @slot Text list items. Use DtTextListItem as the direct child. -->\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n onMounted,\n provide,\n ref,\n toRef,\n} from 'vue';\nimport {\n DT_TEXT_LIST_CONTEXT,\n DT_TEXT_LIST_DEFAULT_TYPE,\n DT_TEXT_LIST_ORDERED_MARKERS,\n DT_TEXT_LIST_UNORDERED_MARKERS,\n} from './TextListConstants';\nimport {\n textListGapValidator,\n textListMarkerToneValidator,\n textListMarkerValidator,\n textListTypeValidator,\n} from './Validators';\n\ndefineOptions({\n name: 'DtTextList',\n});\n\nconst props = defineProps({\n /**\n * Semantic list type. Sets the rendered element to `ul` or `ol`.\n * @values unordered, ordered\n */\n type: {\n type: String,\n default: DT_TEXT_LIST_DEFAULT_TYPE,\n validator: textListTypeValidator,\n },\n\n /**\n * Visual marker style. Leave unset for automatic depth-aware markers.\n * @values disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman, none\n */\n marker: {\n type: String,\n default: undefined,\n validator: textListMarkerValidator,\n },\n\n /**\n * Marker foreground tone. Uses the same tone vocabulary as DtText.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Space between list items and before nested lists.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400\n */\n gap: {\n type: String,\n default: undefined,\n validator: textListGapValidator,\n },\n\n /**\n * Starting number for ordered lists.\n */\n start: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Reverse ordered list numbering.\n */\n reversed: {\n type: Boolean,\n default: false,\n },\n});\n\nconst listRef = ref(null);\n\nprovide(DT_TEXT_LIST_CONTEXT, {\n type: toRef(props, 'type'),\n});\n\nconst isOrdered = computed(() => props.type === 'ordered');\nconst listElement = computed(() => isOrdered.value ? 'ol' : 'ul');\n// Safari drops list semantics when list-style is none; restore them explicitly.\nconst role = computed(() => props.marker === 'none' ? 'list' : undefined);\nconst orderedStart = computed(() => isOrdered.value ? props.start : undefined);\nconst orderedReversed = computed(() => isOrdered.value && props.reversed ? true : undefined);\n\nconst textListClasses = computed(() => [\n 'd-text-list',\n props.gap ? `d-text-list--gap-${props.gap}` : null,\n {\n 'd-text-list--ordered': isOrdered.value,\n },\n props.marker ? `d-text-list--marker-${props.marker}` : null,\n props.markerTone ? `d-text-list--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextList] ${message}`);\n\nfunction validateOrderedOnlyProps () {\n if (isOrdered.value) return;\n\n if (props.start !== undefined) {\n warn('The start prop only applies when type=\"ordered\".');\n }\n\n if (props.reversed) {\n warn('The reversed prop only applies when type=\"ordered\".');\n }\n}\n\nfunction validateMarkerFamily () {\n if (!props.marker || props.marker === 'none') return;\n\n if (props.type === 'ordered' && DT_TEXT_LIST_UNORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"unordered\".`);\n }\n\n if (props.type === 'unordered' && DT_TEXT_LIST_ORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"ordered\".`);\n }\n}\n\nfunction validateChildren () {\n const rootElement = listRef.value?.$el ?? listRef.value;\n if (!rootElement) return;\n\n for (const child of rootElement.children) {\n if (child.tagName === 'LI') continue;\n\n warn('Use DtTextListItem or a native li as the direct child of DtTextList.');\n break;\n }\n}\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n validateOrderedOnlyProps();\n validateMarkerFamily();\n validateChildren();\n }\n});\n</script>\n","<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <component\n :is=\"listElement\"\n ref=\"listRef\"\n data-qa=\"dt-text-list\"\n :class=\"textListClasses\"\n :role=\"role\"\n :start=\"orderedStart\"\n :reversed=\"orderedReversed\"\n >\n <!-- @slot Text list items. Use DtTextListItem as the direct child. -->\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n onMounted,\n provide,\n ref,\n toRef,\n} from 'vue';\nimport {\n DT_TEXT_LIST_CONTEXT,\n DT_TEXT_LIST_DEFAULT_TYPE,\n DT_TEXT_LIST_ORDERED_MARKERS,\n DT_TEXT_LIST_UNORDERED_MARKERS,\n} from './TextListConstants';\nimport {\n textListGapValidator,\n textListMarkerToneValidator,\n textListMarkerValidator,\n textListTypeValidator,\n} from './Validators';\n\ndefineOptions({\n name: 'DtTextList',\n});\n\nconst props = defineProps({\n /**\n * Semantic list type. Sets the rendered element to `ul` or `ol`.\n * @values unordered, ordered\n */\n type: {\n type: String,\n default: DT_TEXT_LIST_DEFAULT_TYPE,\n validator: textListTypeValidator,\n },\n\n /**\n * Visual marker style. Leave unset for automatic depth-aware markers.\n * @values disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman, none\n */\n marker: {\n type: String,\n default: undefined,\n validator: textListMarkerValidator,\n },\n\n /**\n * Marker foreground tone. Uses the same tone vocabulary as DtText.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Space between list items and before nested lists.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400\n */\n gap: {\n type: String,\n default: undefined,\n validator: textListGapValidator,\n },\n\n /**\n * Starting number for ordered lists.\n */\n start: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Reverse ordered list numbering.\n */\n reversed: {\n type: Boolean,\n default: false,\n },\n});\n\nconst listRef = ref(null);\n\nprovide(DT_TEXT_LIST_CONTEXT, {\n type: toRef(props, 'type'),\n});\n\nconst isOrdered = computed(() => props.type === 'ordered');\nconst listElement = computed(() => isOrdered.value ? 'ol' : 'ul');\n// Safari drops list semantics when list-style is none; restore them explicitly.\nconst role = computed(() => props.marker === 'none' ? 'list' : undefined);\nconst orderedStart = computed(() => isOrdered.value ? props.start : undefined);\nconst orderedReversed = computed(() => isOrdered.value && props.reversed ? true : undefined);\n\nconst textListClasses = computed(() => [\n 'd-text-list',\n props.gap ? `d-text-list--gap-${props.gap}` : null,\n {\n 'd-text-list--ordered': isOrdered.value,\n },\n props.marker ? `d-text-list--marker-${props.marker}` : null,\n props.markerTone ? `d-text-list--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextList] ${message}`);\n\nfunction validateOrderedOnlyProps () {\n if (isOrdered.value) return;\n\n if (props.start !== undefined) {\n warn('The start prop only applies when type=\"ordered\".');\n }\n\n if (props.reversed) {\n warn('The reversed prop only applies when type=\"ordered\".');\n }\n}\n\nfunction validateMarkerFamily () {\n if (!props.marker || props.marker === 'none') return;\n\n if (props.type === 'ordered' && DT_TEXT_LIST_UNORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"unordered\".`);\n }\n\n if (props.type === 'unordered' && DT_TEXT_LIST_ORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"ordered\".`);\n }\n}\n\nfunction validateChildren () {\n const rootElement = listRef.value?.$el ?? listRef.value;\n if (!rootElement) return;\n\n for (const child of rootElement.children) {\n if (child.tagName === 'LI') continue;\n\n warn('Use DtTextListItem or a native li as the direct child of DtTextList.');\n break;\n }\n}\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n validateOrderedOnlyProps();\n validateMarkerFamily();\n validateChildren();\n }\n});\n</script>\n"],"mappings":"umBA0CA,IAAM,EAAQ,EA0DR,GAAA,EAAA,EAAA,KAAc,KAAK,EAEzB,EAAA,EAAA,SAAQ,EAAA,qBAAsB,CAC5B,MAAA,EAAA,EAAA,OAAY,EAAO,OAAO,CAC3B,CAAC,CAEF,IAAM,GAAA,EAAA,EAAA,cAA2B,EAAM,OAAS,UAAU,CACpD,GAAA,EAAA,EAAA,cAA6B,EAAU,MAAQ,KAAO,KAAK,CAE3D,GAAA,EAAA,EAAA,cAAsB,EAAM,SAAW,OAAS,OAAS,IAAA,GAAU,CACnE,GAAA,EAAA,EAAA,cAA8B,EAAU,MAAQ,EAAM,MAAQ,IAAA,GAAU,CACxE,GAAA,EAAA,EAAA,cAAiC,EAAU,OAAS,EAAM,SAAW,GAAO,IAAA,GAAU,CAEtF,GAAA,EAAA,EAAA,cAAiC,CACrC,cACA,EAAM,IAAM,oBAAoB,EAAM,MAAQ,KAC9C,CACE,uBAAwB,EAAU,MACnC,CACD,EAAM,OAAS,uBAAuB,EAAM,SAAW,KACvD,EAAM,WAAa,4BAA4B,EAAM,aAAe,KACrE,CAAC,CAGI,EAAO,GAAW,QAAQ,KAAK,gBAAgB,IAAU,CAE/D,SAAS,GAA4B,CAC/B,EAAU,QAEV,EAAM,QAAU,IAAA,IAClB,EAAK,mDAAmD,CAGtD,EAAM,UACR,EAAK,sDAAsD,EAI/D,SAAS,GAAwB,CAC3B,CAAC,EAAM,QAAU,EAAM,SAAW,SAElC,EAAM,OAAS,WAAa,EAAA,+BAA+B,SAAS,EAAM,OAAO,EACnF,EAAK,eAAe,EAAM,OAAO,gDAAgD,CAG/E,EAAM,OAAS,aAAe,EAAA,6BAA6B,SAAS,EAAM,OAAO,EACnF,EAAK,eAAe,EAAM,OAAO,8CAA8C,EAInF,SAAS,GAAoB,CAC3B,IAAM,EAAc,EAAQ,OAAO,KAAO,EAAQ,MAC7C,KAEL,KAAK,IAAM,KAAS,EAAY,SAC1B,KAAM,UAAY,KAEtB,GAAK,uEAAuE,CAC5E,eAIJ,EAAA,EAAA,eAAgB,CACd,QAAA,IAAA,WAA6B,eAC3B,GAA0B,CAC1B,GAAsB,CACtB,GAAkB,GAEpB,2EArKO,EAAA,MAAW,CAAA,SACZ,UAAJ,IAAI,EACJ,UAAQ,eACP,OAAA,EAAA,EAAA,gBAAO,EAAA,MAAe,CACtB,KAAM,EAAA,MACN,MAAO,EAAA,MACP,SAAU,EAAA,kCAGH,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,CAAA"}
@@ -85,4 +85,4 @@ var b = /* @__PURE__ */ u({
85
85
  //#endregion
86
86
  export { b as t };
87
87
 
88
- //# sourceMappingURL=TextList-CkY7OAl2.js.map
88
+ //# sourceMappingURL=TextList-DIj84CPZ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextList-CkY7OAl2.js","names":[],"sources":["../components/TextList/TextList.vue","../components/TextList/TextList.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <component\n :is=\"listElement\"\n ref=\"listRef\"\n data-qa=\"dt-text-list\"\n :class=\"textListClasses\"\n :role=\"role\"\n :start=\"orderedStart\"\n :reversed=\"orderedReversed\"\n >\n <!-- @slot Text list items. Use DtTextListItem as the direct child. -->\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n onMounted,\n provide,\n ref,\n toRef,\n} from 'vue';\nimport {\n DT_TEXT_LIST_CONTEXT,\n DT_TEXT_LIST_DEFAULT_TYPE,\n DT_TEXT_LIST_ORDERED_MARKERS,\n DT_TEXT_LIST_UNORDERED_MARKERS,\n} from './TextListConstants';\nimport {\n textListGapValidator,\n textListMarkerToneValidator,\n textListMarkerValidator,\n textListTypeValidator,\n} from './Validators';\n\ndefineOptions({\n name: 'DtTextList',\n});\n\nconst props = defineProps({\n /**\n * Semantic list type. Sets the rendered element to `ul` or `ol`.\n * @values unordered, ordered\n */\n type: {\n type: String,\n default: DT_TEXT_LIST_DEFAULT_TYPE,\n validator: textListTypeValidator,\n },\n\n /**\n * Visual marker style. Leave unset for automatic depth-aware markers.\n * @values disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman, none\n */\n marker: {\n type: String,\n default: undefined,\n validator: textListMarkerValidator,\n },\n\n /**\n * Marker foreground tone. Uses the same tone vocabulary as DtText.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Space between list items and before nested lists.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400\n */\n gap: {\n type: String,\n default: undefined,\n validator: textListGapValidator,\n },\n\n /**\n * Starting number for ordered lists.\n */\n start: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Reverse ordered list numbering.\n */\n reversed: {\n type: Boolean,\n default: false,\n },\n});\n\nconst listRef = ref(null);\n\nprovide(DT_TEXT_LIST_CONTEXT, {\n type: toRef(props, 'type'),\n});\n\nconst isOrdered = computed(() => props.type === 'ordered');\nconst listElement = computed(() => isOrdered.value ? 'ol' : 'ul');\n// Safari drops list semantics when list-style is none; restore them explicitly.\nconst role = computed(() => props.marker === 'none' ? 'list' : undefined);\nconst orderedStart = computed(() => isOrdered.value ? props.start : undefined);\nconst orderedReversed = computed(() => isOrdered.value && props.reversed ? true : undefined);\n\nconst textListClasses = computed(() => [\n 'd-text-list',\n props.gap ? `d-text-list--gap-${props.gap}` : null,\n {\n 'd-text-list--ordered': isOrdered.value,\n },\n props.marker ? `d-text-list--marker-${props.marker}` : null,\n props.markerTone ? `d-text-list--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextList] ${message}`);\n\nfunction validateOrderedOnlyProps () {\n if (isOrdered.value) return;\n\n if (props.start !== undefined) {\n warn('The start prop only applies when type=\"ordered\".');\n }\n\n if (props.reversed) {\n warn('The reversed prop only applies when type=\"ordered\".');\n }\n}\n\nfunction validateMarkerFamily () {\n if (!props.marker || props.marker === 'none') return;\n\n if (props.type === 'ordered' && DT_TEXT_LIST_UNORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"unordered\".`);\n }\n\n if (props.type === 'unordered' && DT_TEXT_LIST_ORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"ordered\".`);\n }\n}\n\nfunction validateChildren () {\n const rootElement = listRef.value?.$el ?? listRef.value;\n if (!rootElement) return;\n\n for (const child of rootElement.children) {\n if (child.tagName === 'LI') continue;\n\n warn('Use DtTextListItem or a native li as the direct child of DtTextList.');\n break;\n }\n}\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n validateOrderedOnlyProps();\n validateMarkerFamily();\n validateChildren();\n }\n});\n</script>\n","<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <component\n :is=\"listElement\"\n ref=\"listRef\"\n data-qa=\"dt-text-list\"\n :class=\"textListClasses\"\n :role=\"role\"\n :start=\"orderedStart\"\n :reversed=\"orderedReversed\"\n >\n <!-- @slot Text list items. Use DtTextListItem as the direct child. -->\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n onMounted,\n provide,\n ref,\n toRef,\n} from 'vue';\nimport {\n DT_TEXT_LIST_CONTEXT,\n DT_TEXT_LIST_DEFAULT_TYPE,\n DT_TEXT_LIST_ORDERED_MARKERS,\n DT_TEXT_LIST_UNORDERED_MARKERS,\n} from './TextListConstants';\nimport {\n textListGapValidator,\n textListMarkerToneValidator,\n textListMarkerValidator,\n textListTypeValidator,\n} from './Validators';\n\ndefineOptions({\n name: 'DtTextList',\n});\n\nconst props = defineProps({\n /**\n * Semantic list type. Sets the rendered element to `ul` or `ol`.\n * @values unordered, ordered\n */\n type: {\n type: String,\n default: DT_TEXT_LIST_DEFAULT_TYPE,\n validator: textListTypeValidator,\n },\n\n /**\n * Visual marker style. Leave unset for automatic depth-aware markers.\n * @values disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman, none\n */\n marker: {\n type: String,\n default: undefined,\n validator: textListMarkerValidator,\n },\n\n /**\n * Marker foreground tone. Uses the same tone vocabulary as DtText.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Space between list items and before nested lists.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400\n */\n gap: {\n type: String,\n default: undefined,\n validator: textListGapValidator,\n },\n\n /**\n * Starting number for ordered lists.\n */\n start: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Reverse ordered list numbering.\n */\n reversed: {\n type: Boolean,\n default: false,\n },\n});\n\nconst listRef = ref(null);\n\nprovide(DT_TEXT_LIST_CONTEXT, {\n type: toRef(props, 'type'),\n});\n\nconst isOrdered = computed(() => props.type === 'ordered');\nconst listElement = computed(() => isOrdered.value ? 'ol' : 'ul');\n// Safari drops list semantics when list-style is none; restore them explicitly.\nconst role = computed(() => props.marker === 'none' ? 'list' : undefined);\nconst orderedStart = computed(() => isOrdered.value ? props.start : undefined);\nconst orderedReversed = computed(() => isOrdered.value && props.reversed ? true : undefined);\n\nconst textListClasses = computed(() => [\n 'd-text-list',\n props.gap ? `d-text-list--gap-${props.gap}` : null,\n {\n 'd-text-list--ordered': isOrdered.value,\n },\n props.marker ? `d-text-list--marker-${props.marker}` : null,\n props.markerTone ? `d-text-list--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextList] ${message}`);\n\nfunction validateOrderedOnlyProps () {\n if (isOrdered.value) return;\n\n if (props.start !== undefined) {\n warn('The start prop only applies when type=\"ordered\".');\n }\n\n if (props.reversed) {\n warn('The reversed prop only applies when type=\"ordered\".');\n }\n}\n\nfunction validateMarkerFamily () {\n if (!props.marker || props.marker === 'none') return;\n\n if (props.type === 'ordered' && DT_TEXT_LIST_UNORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"unordered\".`);\n }\n\n if (props.type === 'unordered' && DT_TEXT_LIST_ORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"ordered\".`);\n }\n}\n\nfunction validateChildren () {\n const rootElement = listRef.value?.$el ?? listRef.value;\n if (!rootElement) return;\n\n for (const child of rootElement.children) {\n if (child.tagName === 'LI') continue;\n\n warn('Use DtTextListItem or a native li as the direct child of DtTextList.');\n break;\n }\n}\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n validateOrderedOnlyProps();\n validateMarkerFamily();\n validateChildren();\n }\n});\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CA,IAAM,IAAQ,GA0DR,IAAU,EAAI,KAAK;AAEzB,IAAQ,GAAsB,EAC5B,MAAM,EAAM,GAAO,OAAO,EAC3B,CAAC;EAEF,IAAM,IAAY,QAAe,EAAM,SAAS,UAAU,EACpD,IAAc,QAAe,EAAU,QAAQ,OAAO,KAAK,EAE3D,IAAO,QAAe,EAAM,WAAW,SAAS,SAAS,KAAA,EAAU,EACnE,IAAe,QAAe,EAAU,QAAQ,EAAM,QAAQ,KAAA,EAAU,EACxE,IAAkB,QAAe,EAAU,SAAS,EAAM,WAAW,KAAO,KAAA,EAAU,EAEtF,IAAkB,QAAe;GACrC;GACA,EAAM,MAAM,oBAAoB,EAAM,QAAQ;GAC9C,EACE,wBAAwB,EAAU,OACnC;GACD,EAAM,SAAS,uBAAuB,EAAM,WAAW;GACvD,EAAM,aAAa,4BAA4B,EAAM,eAAe;GACrE,CAAC,EAGI,KAAO,MAAW,QAAQ,KAAK,gBAAgB,IAAU;EAE/D,SAAS,IAA4B;AAC/B,KAAU,UAEV,EAAM,UAAU,KAAA,KAClB,EAAK,qDAAmD,EAGtD,EAAM,YACR,EAAK,wDAAsD;;EAI/D,SAAS,IAAwB;AAC3B,IAAC,EAAM,UAAU,EAAM,WAAW,WAElC,EAAM,SAAS,aAAa,EAA+B,SAAS,EAAM,OAAO,IACnF,EAAK,eAAe,EAAM,OAAO,gDAAgD,EAG/E,EAAM,SAAS,eAAe,EAA6B,SAAS,EAAM,OAAO,IACnF,EAAK,eAAe,EAAM,OAAO,8CAA8C;;EAInF,SAAS,IAAoB;GAC3B,IAAM,IAAc,EAAQ,OAAO,OAAO,EAAQ;AAC7C,UAEL;SAAK,IAAM,KAAS,EAAY,SAC1B,OAAM,YAAY,MAEtB;OAAK,uEAAuE;AAC5E;;;;SAIJ,QAAgB;AACd,GAAA,QAAA,IAAA,aAA6B,iBAC3B,GAA0B,EAC1B,GAAsB,EACtB,GAAkB;IAEpB,kBAtKA,EAWY,EAVL,EAAA,MAAW,EAAA;YACZ;GAAJ,KAAI;GACJ,WAAQ;GACP,OAAK,EAAE,EAAA,MAAe;GACtB,MAAM,EAAA;GACN,OAAO,EAAA;GACP,UAAU,EAAA;;oBAGH,CAAR,EAAQ,EAAA,QAAA,UAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"TextList-DIj84CPZ.js","names":[],"sources":["../components/TextList/TextList.vue","../components/TextList/TextList.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <component\n :is=\"listElement\"\n ref=\"listRef\"\n data-qa=\"dt-text-list\"\n :class=\"textListClasses\"\n :role=\"role\"\n :start=\"orderedStart\"\n :reversed=\"orderedReversed\"\n >\n <!-- @slot Text list items. Use DtTextListItem as the direct child. -->\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n onMounted,\n provide,\n ref,\n toRef,\n} from 'vue';\nimport {\n DT_TEXT_LIST_CONTEXT,\n DT_TEXT_LIST_DEFAULT_TYPE,\n DT_TEXT_LIST_ORDERED_MARKERS,\n DT_TEXT_LIST_UNORDERED_MARKERS,\n} from './TextListConstants';\nimport {\n textListGapValidator,\n textListMarkerToneValidator,\n textListMarkerValidator,\n textListTypeValidator,\n} from './Validators';\n\ndefineOptions({\n name: 'DtTextList',\n});\n\nconst props = defineProps({\n /**\n * Semantic list type. Sets the rendered element to `ul` or `ol`.\n * @values unordered, ordered\n */\n type: {\n type: String,\n default: DT_TEXT_LIST_DEFAULT_TYPE,\n validator: textListTypeValidator,\n },\n\n /**\n * Visual marker style. Leave unset for automatic depth-aware markers.\n * @values disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman, none\n */\n marker: {\n type: String,\n default: undefined,\n validator: textListMarkerValidator,\n },\n\n /**\n * Marker foreground tone. Uses the same tone vocabulary as DtText.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Space between list items and before nested lists.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400\n */\n gap: {\n type: String,\n default: undefined,\n validator: textListGapValidator,\n },\n\n /**\n * Starting number for ordered lists.\n */\n start: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Reverse ordered list numbering.\n */\n reversed: {\n type: Boolean,\n default: false,\n },\n});\n\nconst listRef = ref(null);\n\nprovide(DT_TEXT_LIST_CONTEXT, {\n type: toRef(props, 'type'),\n});\n\nconst isOrdered = computed(() => props.type === 'ordered');\nconst listElement = computed(() => isOrdered.value ? 'ol' : 'ul');\n// Safari drops list semantics when list-style is none; restore them explicitly.\nconst role = computed(() => props.marker === 'none' ? 'list' : undefined);\nconst orderedStart = computed(() => isOrdered.value ? props.start : undefined);\nconst orderedReversed = computed(() => isOrdered.value && props.reversed ? true : undefined);\n\nconst textListClasses = computed(() => [\n 'd-text-list',\n props.gap ? `d-text-list--gap-${props.gap}` : null,\n {\n 'd-text-list--ordered': isOrdered.value,\n },\n props.marker ? `d-text-list--marker-${props.marker}` : null,\n props.markerTone ? `d-text-list--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextList] ${message}`);\n\nfunction validateOrderedOnlyProps () {\n if (isOrdered.value) return;\n\n if (props.start !== undefined) {\n warn('The start prop only applies when type=\"ordered\".');\n }\n\n if (props.reversed) {\n warn('The reversed prop only applies when type=\"ordered\".');\n }\n}\n\nfunction validateMarkerFamily () {\n if (!props.marker || props.marker === 'none') return;\n\n if (props.type === 'ordered' && DT_TEXT_LIST_UNORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"unordered\".`);\n }\n\n if (props.type === 'unordered' && DT_TEXT_LIST_ORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"ordered\".`);\n }\n}\n\nfunction validateChildren () {\n const rootElement = listRef.value?.$el ?? listRef.value;\n if (!rootElement) return;\n\n for (const child of rootElement.children) {\n if (child.tagName === 'LI') continue;\n\n warn('Use DtTextListItem or a native li as the direct child of DtTextList.');\n break;\n }\n}\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n validateOrderedOnlyProps();\n validateMarkerFamily();\n validateChildren();\n }\n});\n</script>\n","<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <component\n :is=\"listElement\"\n ref=\"listRef\"\n data-qa=\"dt-text-list\"\n :class=\"textListClasses\"\n :role=\"role\"\n :start=\"orderedStart\"\n :reversed=\"orderedReversed\"\n >\n <!-- @slot Text list items. Use DtTextListItem as the direct child. -->\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n onMounted,\n provide,\n ref,\n toRef,\n} from 'vue';\nimport {\n DT_TEXT_LIST_CONTEXT,\n DT_TEXT_LIST_DEFAULT_TYPE,\n DT_TEXT_LIST_ORDERED_MARKERS,\n DT_TEXT_LIST_UNORDERED_MARKERS,\n} from './TextListConstants';\nimport {\n textListGapValidator,\n textListMarkerToneValidator,\n textListMarkerValidator,\n textListTypeValidator,\n} from './Validators';\n\ndefineOptions({\n name: 'DtTextList',\n});\n\nconst props = defineProps({\n /**\n * Semantic list type. Sets the rendered element to `ul` or `ol`.\n * @values unordered, ordered\n */\n type: {\n type: String,\n default: DT_TEXT_LIST_DEFAULT_TYPE,\n validator: textListTypeValidator,\n },\n\n /**\n * Visual marker style. Leave unset for automatic depth-aware markers.\n * @values disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman, none\n */\n marker: {\n type: String,\n default: undefined,\n validator: textListMarkerValidator,\n },\n\n /**\n * Marker foreground tone. Uses the same tone vocabulary as DtText.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Space between list items and before nested lists.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400\n */\n gap: {\n type: String,\n default: undefined,\n validator: textListGapValidator,\n },\n\n /**\n * Starting number for ordered lists.\n */\n start: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Reverse ordered list numbering.\n */\n reversed: {\n type: Boolean,\n default: false,\n },\n});\n\nconst listRef = ref(null);\n\nprovide(DT_TEXT_LIST_CONTEXT, {\n type: toRef(props, 'type'),\n});\n\nconst isOrdered = computed(() => props.type === 'ordered');\nconst listElement = computed(() => isOrdered.value ? 'ol' : 'ul');\n// Safari drops list semantics when list-style is none; restore them explicitly.\nconst role = computed(() => props.marker === 'none' ? 'list' : undefined);\nconst orderedStart = computed(() => isOrdered.value ? props.start : undefined);\nconst orderedReversed = computed(() => isOrdered.value && props.reversed ? true : undefined);\n\nconst textListClasses = computed(() => [\n 'd-text-list',\n props.gap ? `d-text-list--gap-${props.gap}` : null,\n {\n 'd-text-list--ordered': isOrdered.value,\n },\n props.marker ? `d-text-list--marker-${props.marker}` : null,\n props.markerTone ? `d-text-list--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextList] ${message}`);\n\nfunction validateOrderedOnlyProps () {\n if (isOrdered.value) return;\n\n if (props.start !== undefined) {\n warn('The start prop only applies when type=\"ordered\".');\n }\n\n if (props.reversed) {\n warn('The reversed prop only applies when type=\"ordered\".');\n }\n}\n\nfunction validateMarkerFamily () {\n if (!props.marker || props.marker === 'none') return;\n\n if (props.type === 'ordered' && DT_TEXT_LIST_UNORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"unordered\".`);\n }\n\n if (props.type === 'unordered' && DT_TEXT_LIST_ORDERED_MARKERS.includes(props.marker)) {\n warn(`The marker=\"${props.marker}\" value is usually used with type=\"ordered\".`);\n }\n}\n\nfunction validateChildren () {\n const rootElement = listRef.value?.$el ?? listRef.value;\n if (!rootElement) return;\n\n for (const child of rootElement.children) {\n if (child.tagName === 'LI') continue;\n\n warn('Use DtTextListItem or a native li as the direct child of DtTextList.');\n break;\n }\n}\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n validateOrderedOnlyProps();\n validateMarkerFamily();\n validateChildren();\n }\n});\n</script>\n"],"mappings":";;;;;;;;;;;;;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AtKA,EAWY,EAVL,EAAA,MAAW,EAAA;YACZ;GAAJ,KAAI;GACJ,WAAQ;GACP,OAAK,EAAE,EAAA,MAAe;GACtB,MAAM,EAAA;GACN,OAAO,EAAA;GACP,UAAU,EAAA;;oBAGH,CAAR,EAAQ,EAAA,QAAA,UAAA,CAAA,CAAA"}
@@ -59,4 +59,4 @@ var h = ["value"], g = /* @__PURE__ */ s({
59
59
  //#endregion
60
60
  export { g as t };
61
61
 
62
- //# sourceMappingURL=TextListItem-D96feMQf.js.map
62
+ //# sourceMappingURL=TextListItem-BhmijfFO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextListItem-D96feMQf.js","names":[],"sources":["../components/TextList/TextListItem.vue","../components/TextList/TextListItem.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <li\n data-qa=\"dt-text-list-item\"\n :class=\"textListItemClasses\"\n :value=\"orderedValue\"\n >\n <span\n v-if=\"hasCustomMarker\"\n data-qa=\"dt-text-list-item-marker\"\n class=\"d-text-list__item-marker\"\n :class=\"markerClass\"\n aria-hidden=\"true\"\n >\n <!-- @slot Custom marker content. Decorative by default. -->\n <slot name=\"marker\" />\n </span>\n <div\n data-qa=\"dt-text-list-item-content\"\n :class=\"['d-text-list__item-content', contentClass]\"\n >\n <!-- @slot Text list item content. -->\n <slot />\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n inject,\n onMounted,\n unref,\n useSlots,\n} from 'vue';\nimport { hasSlotContent } from '@/common/utils';\nimport { DT_TEXT_LIST_CONTEXT } from './TextListConstants';\nimport { textListMarkerToneValidator } from './Validators';\n\ndefineOptions({\n name: 'DtTextListItem',\n});\n\nconst props = defineProps({\n /**\n * Native `li` value for ordered lists.\n */\n value: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Marker foreground tone for this item. Overrides the parent DtTextList markerTone.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Additional class name for the marker wrapper.\n */\n markerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n});\n\nconst slots = useSlots();\nconst parentContext = inject(DT_TEXT_LIST_CONTEXT, null);\nconst parentType = computed(() => parentContext ? unref(parentContext.type) : undefined);\nconst hasCustomMarker = computed(() => hasSlotContent(slots.marker));\nconst orderedValue = computed(() => parentType.value === 'ordered' ? props.value : undefined);\nconst textListItemClasses = computed(() => [\n 'd-text-list__item',\n { 'd-text-list__item--custom-marker': hasCustomMarker.value },\n props.markerTone ? `d-text-list__item--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextListItem] ${message}`);\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (!parentContext) {\n warn('DtTextListItem must be used inside DtTextList.');\n }\n\n if (props.value !== undefined && parentType.value !== 'ordered') {\n warn('The value prop only applies inside a DtTextList with type=\"ordered\".');\n }\n }\n});\n</script>\n","<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <li\n data-qa=\"dt-text-list-item\"\n :class=\"textListItemClasses\"\n :value=\"orderedValue\"\n >\n <span\n v-if=\"hasCustomMarker\"\n data-qa=\"dt-text-list-item-marker\"\n class=\"d-text-list__item-marker\"\n :class=\"markerClass\"\n aria-hidden=\"true\"\n >\n <!-- @slot Custom marker content. Decorative by default. -->\n <slot name=\"marker\" />\n </span>\n <div\n data-qa=\"dt-text-list-item-content\"\n :class=\"['d-text-list__item-content', contentClass]\"\n >\n <!-- @slot Text list item content. -->\n <slot />\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n inject,\n onMounted,\n unref,\n useSlots,\n} from 'vue';\nimport { hasSlotContent } from '@/common/utils';\nimport { DT_TEXT_LIST_CONTEXT } from './TextListConstants';\nimport { textListMarkerToneValidator } from './Validators';\n\ndefineOptions({\n name: 'DtTextListItem',\n});\n\nconst props = defineProps({\n /**\n * Native `li` value for ordered lists.\n */\n value: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Marker foreground tone for this item. Overrides the parent DtTextList markerTone.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Additional class name for the marker wrapper.\n */\n markerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n});\n\nconst slots = useSlots();\nconst parentContext = inject(DT_TEXT_LIST_CONTEXT, null);\nconst parentType = computed(() => parentContext ? unref(parentContext.type) : undefined);\nconst hasCustomMarker = computed(() => hasSlotContent(slots.marker));\nconst orderedValue = computed(() => parentType.value === 'ordered' ? props.value : undefined);\nconst textListItemClasses = computed(() => [\n 'd-text-list__item',\n { 'd-text-list__item--custom-marker': hasCustomMarker.value },\n props.markerTone ? `d-text-list__item--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextListItem] ${message}`);\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (!parentContext) {\n warn('DtTextListItem must be used inside DtTextList.');\n }\n\n if (props.value !== undefined && parentType.value !== 'ordered') {\n warn('The value prop only applies inside a DtTextList with type=\"ordered\".');\n }\n }\n});\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CA,IAAM,IAAQ,GAoCR,IAAQ,GAAU,EAClB,IAAgB,EAAO,GAAsB,KAAK,EAClD,IAAa,QAAe,IAAgB,EAAM,EAAc,KAAK,GAAG,KAAA,EAAU,EAClF,IAAkB,QAAe,EAAe,EAAM,OAAO,CAAC,EAC9D,IAAe,QAAe,EAAW,UAAU,YAAY,EAAM,QAAQ,KAAA,EAAU,EACvF,IAAsB,QAAe;GACzC;GACA,EAAE,oCAAoC,EAAgB,OAAO;GAC7D,EAAM,aAAa,kCAAkC,EAAM,eAAe;GAC3E,CAAC,EAGI,KAAO,MAAW,QAAQ,KAAK,oBAAoB,IAAU;SAEnE,QAAgB;AACd,GAAA,QAAA,IAAA,aAA6B,iBACtB,KACH,EAAK,iDAAiD,EAGpD,EAAM,UAAU,KAAA,KAAa,EAAW,UAAU,aACpD,EAAK,yEAAuE;IAGhF,kBAtGA,EAsBK,MAAA;GArBH,WAAQ;GACP,OAAK,EAAE,EAAA,MAAmB;GAC1B,OAAO,EAAA;MAGA,EAAA,SAAA,GAAA,EADR,EASO,QAAA;;GAPL,WAAQ;GACR,OAAK,EAAA,CAAC,4BACE,EAAA,YAAW,CAAA;GACnB,eAAY;MAGZ,EAAsB,EAAA,QAAA,SAAA,CAAA,EAAA,EAAA,IAAA,EAAA,IAAA,GAAA,EAExB,EAMM,OAAA;GALJ,WAAQ;GACP,OAAK,EAAA,CAAA,6BAAgC,EAAA,aAAY,CAAA;MAGlD,EAAQ,EAAA,QAAA,UAAA,CAAA,EAAA,EAAA,CAAA,EAAA,IAAA,EAAA"}
1
+ {"version":3,"file":"TextListItem-BhmijfFO.js","names":[],"sources":["../components/TextList/TextListItem.vue","../components/TextList/TextListItem.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <li\n data-qa=\"dt-text-list-item\"\n :class=\"textListItemClasses\"\n :value=\"orderedValue\"\n >\n <span\n v-if=\"hasCustomMarker\"\n data-qa=\"dt-text-list-item-marker\"\n class=\"d-text-list__item-marker\"\n :class=\"markerClass\"\n aria-hidden=\"true\"\n >\n <!-- @slot Custom marker content. Decorative by default. -->\n <slot name=\"marker\" />\n </span>\n <div\n data-qa=\"dt-text-list-item-content\"\n :class=\"['d-text-list__item-content', contentClass]\"\n >\n <!-- @slot Text list item content. -->\n <slot />\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n inject,\n onMounted,\n unref,\n useSlots,\n} from 'vue';\nimport { hasSlotContent } from '@/common/utils';\nimport { DT_TEXT_LIST_CONTEXT } from './TextListConstants';\nimport { textListMarkerToneValidator } from './Validators';\n\ndefineOptions({\n name: 'DtTextListItem',\n});\n\nconst props = defineProps({\n /**\n * Native `li` value for ordered lists.\n */\n value: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Marker foreground tone for this item. Overrides the parent DtTextList markerTone.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Additional class name for the marker wrapper.\n */\n markerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n});\n\nconst slots = useSlots();\nconst parentContext = inject(DT_TEXT_LIST_CONTEXT, null);\nconst parentType = computed(() => parentContext ? unref(parentContext.type) : undefined);\nconst hasCustomMarker = computed(() => hasSlotContent(slots.marker));\nconst orderedValue = computed(() => parentType.value === 'ordered' ? props.value : undefined);\nconst textListItemClasses = computed(() => [\n 'd-text-list__item',\n { 'd-text-list__item--custom-marker': hasCustomMarker.value },\n props.markerTone ? `d-text-list__item--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextListItem] ${message}`);\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (!parentContext) {\n warn('DtTextListItem must be used inside DtTextList.');\n }\n\n if (props.value !== undefined && parentType.value !== 'ordered') {\n warn('The value prop only applies inside a DtTextList with type=\"ordered\".');\n }\n }\n});\n</script>\n","<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <li\n data-qa=\"dt-text-list-item\"\n :class=\"textListItemClasses\"\n :value=\"orderedValue\"\n >\n <span\n v-if=\"hasCustomMarker\"\n data-qa=\"dt-text-list-item-marker\"\n class=\"d-text-list__item-marker\"\n :class=\"markerClass\"\n aria-hidden=\"true\"\n >\n <!-- @slot Custom marker content. Decorative by default. -->\n <slot name=\"marker\" />\n </span>\n <div\n data-qa=\"dt-text-list-item-content\"\n :class=\"['d-text-list__item-content', contentClass]\"\n >\n <!-- @slot Text list item content. -->\n <slot />\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n inject,\n onMounted,\n unref,\n useSlots,\n} from 'vue';\nimport { hasSlotContent } from '@/common/utils';\nimport { DT_TEXT_LIST_CONTEXT } from './TextListConstants';\nimport { textListMarkerToneValidator } from './Validators';\n\ndefineOptions({\n name: 'DtTextListItem',\n});\n\nconst props = defineProps({\n /**\n * Native `li` value for ordered lists.\n */\n value: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Marker foreground tone for this item. Overrides the parent DtTextList markerTone.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Additional class name for the marker wrapper.\n */\n markerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n});\n\nconst slots = useSlots();\nconst parentContext = inject(DT_TEXT_LIST_CONTEXT, null);\nconst parentType = computed(() => parentContext ? unref(parentContext.type) : undefined);\nconst hasCustomMarker = computed(() => hasSlotContent(slots.marker));\nconst orderedValue = computed(() => parentType.value === 'ordered' ? props.value : undefined);\nconst textListItemClasses = computed(() => [\n 'd-text-list__item',\n { 'd-text-list__item--custom-marker': hasCustomMarker.value },\n props.markerTone ? `d-text-list__item--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextListItem] ${message}`);\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (!parentContext) {\n warn('DtTextListItem must be used inside DtTextList.');\n }\n\n if (props.value !== undefined && parentType.value !== 'ordered') {\n warn('The value prop only applies inside a DtTextList with type=\"ordered\".');\n }\n }\n});\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CA,IAAM,IAAQ,GAoCR,IAAQ,GAAU,EAClB,IAAgB,EAAO,GAAsB,KAAK,EAClD,IAAa,QAAe,IAAgB,EAAM,EAAc,KAAK,GAAG,KAAA,EAAU,EAClF,IAAkB,QAAe,EAAe,EAAM,OAAO,CAAC,EAC9D,IAAe,QAAe,EAAW,UAAU,YAAY,EAAM,QAAQ,KAAA,EAAU,EACvF,IAAsB,QAAe;GACzC;GACA,EAAE,oCAAoC,EAAgB,OAAO;GAC7D,EAAM,aAAa,kCAAkC,EAAM,eAAe;GAC3E,CAAC,EAGI,KAAO,MAAW,QAAQ,KAAK,oBAAoB,IAAU;SAEnE,QAAgB;AACd,GAAA,QAAA,IAAA,aAA6B,iBACtB,KACH,EAAK,iDAAiD,EAGpD,EAAM,UAAU,KAAA,KAAa,EAAW,UAAU,aACpD,EAAK,yEAAuE;IAGhF,kBAtGA,EAsBK,MAAA;GArBH,WAAQ;GACP,OAAK,EAAE,EAAA,MAAmB;GAC1B,OAAO,EAAA;MAGA,EAAA,SAAA,GAAA,EADR,EASO,QAAA;;GAPL,WAAQ;GACR,OAAK,EAAA,CAAC,4BACE,EAAA,YAAW,CAAA;GACnB,eAAY;MAGZ,EAAsB,EAAA,QAAA,SAAA,CAAA,EAAA,EAAA,IAAA,EAAA,IAAA,GAAA,EAExB,EAMM,OAAA;GALJ,WAAQ;GACP,OAAK,EAAA,CAAA,6BAAgC,EAAA,aAAY,CAAA;MAGlD,EAAQ,EAAA,QAAA,UAAA,CAAA,EAAA,EAAA,CAAA,EAAA,IAAA,EAAA"}
@@ -1,2 +1,2 @@
1
1
  require(`./chunk-Bmb41Sf3.cjs`);const e=require(`./common/utils/index.cjs`),t=require(`./lib/text-list/text-list-constants.cjs`),n=require(`./lib/text-list/validators.cjs`);let r=require(`vue`);var i=[`value`],a=(0,r.defineComponent)({name:`DtTextListItem`,__name:`TextListItem`,props:{value:{type:Number,default:void 0},markerTone:{type:String,default:void 0,validator:n.textListMarkerToneValidator},markerClass:{type:[String,Array,Object],default:``},contentClass:{type:[String,Array,Object],default:``}},setup(n){let a=n,o=(0,r.useSlots)(),s=(0,r.inject)(t.DT_TEXT_LIST_CONTEXT,null),c=(0,r.computed)(()=>s?(0,r.unref)(s.type):void 0),l=(0,r.computed)(()=>e.hasSlotContent(o.marker)),u=(0,r.computed)(()=>c.value===`ordered`?a.value:void 0),d=(0,r.computed)(()=>[`d-text-list__item`,{"d-text-list__item--custom-marker":l.value},a.markerTone?`d-text-list__item--marker-tone-${a.markerTone}`:null]),f=e=>console.warn(`[DtTextListItem] ${e}`);return(0,r.onMounted)(()=>{process.env.NODE_ENV!==`production`&&(s||f(`DtTextListItem must be used inside DtTextList.`),a.value!==void 0&&c.value!==`ordered`&&f(`The value prop only applies inside a DtTextList with type="ordered".`))}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(`li`,{"data-qa":`dt-text-list-item`,class:(0,r.normalizeClass)(d.value),value:u.value},[l.value?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,{key:0,"data-qa":`dt-text-list-item-marker`,class:(0,r.normalizeClass)([`d-text-list__item-marker`,n.markerClass]),"aria-hidden":`true`},[(0,r.renderSlot)(e.$slots,`marker`)],2)):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`div`,{"data-qa":`dt-text-list-item-content`,class:(0,r.normalizeClass)([`d-text-list__item-content`,n.contentClass])},[(0,r.renderSlot)(e.$slots,`default`)],2)],10,i))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
2
- //# sourceMappingURL=TextListItem-BI9M_J8Y.cjs.map
2
+ //# sourceMappingURL=TextListItem-CVjrHr2_.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextListItem-BI9M_J8Y.cjs","names":[],"sources":["../components/TextList/TextListItem.vue","../components/TextList/TextListItem.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <li\n data-qa=\"dt-text-list-item\"\n :class=\"textListItemClasses\"\n :value=\"orderedValue\"\n >\n <span\n v-if=\"hasCustomMarker\"\n data-qa=\"dt-text-list-item-marker\"\n class=\"d-text-list__item-marker\"\n :class=\"markerClass\"\n aria-hidden=\"true\"\n >\n <!-- @slot Custom marker content. Decorative by default. -->\n <slot name=\"marker\" />\n </span>\n <div\n data-qa=\"dt-text-list-item-content\"\n :class=\"['d-text-list__item-content', contentClass]\"\n >\n <!-- @slot Text list item content. -->\n <slot />\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n inject,\n onMounted,\n unref,\n useSlots,\n} from 'vue';\nimport { hasSlotContent } from '@/common/utils';\nimport { DT_TEXT_LIST_CONTEXT } from './TextListConstants';\nimport { textListMarkerToneValidator } from './Validators';\n\ndefineOptions({\n name: 'DtTextListItem',\n});\n\nconst props = defineProps({\n /**\n * Native `li` value for ordered lists.\n */\n value: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Marker foreground tone for this item. Overrides the parent DtTextList markerTone.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Additional class name for the marker wrapper.\n */\n markerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n});\n\nconst slots = useSlots();\nconst parentContext = inject(DT_TEXT_LIST_CONTEXT, null);\nconst parentType = computed(() => parentContext ? unref(parentContext.type) : undefined);\nconst hasCustomMarker = computed(() => hasSlotContent(slots.marker));\nconst orderedValue = computed(() => parentType.value === 'ordered' ? props.value : undefined);\nconst textListItemClasses = computed(() => [\n 'd-text-list__item',\n { 'd-text-list__item--custom-marker': hasCustomMarker.value },\n props.markerTone ? `d-text-list__item--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextListItem] ${message}`);\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (!parentContext) {\n warn('DtTextListItem must be used inside DtTextList.');\n }\n\n if (props.value !== undefined && parentType.value !== 'ordered') {\n warn('The value prop only applies inside a DtTextList with type=\"ordered\".');\n }\n }\n});\n</script>\n","<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <li\n data-qa=\"dt-text-list-item\"\n :class=\"textListItemClasses\"\n :value=\"orderedValue\"\n >\n <span\n v-if=\"hasCustomMarker\"\n data-qa=\"dt-text-list-item-marker\"\n class=\"d-text-list__item-marker\"\n :class=\"markerClass\"\n aria-hidden=\"true\"\n >\n <!-- @slot Custom marker content. Decorative by default. -->\n <slot name=\"marker\" />\n </span>\n <div\n data-qa=\"dt-text-list-item-content\"\n :class=\"['d-text-list__item-content', contentClass]\"\n >\n <!-- @slot Text list item content. -->\n <slot />\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n inject,\n onMounted,\n unref,\n useSlots,\n} from 'vue';\nimport { hasSlotContent } from '@/common/utils';\nimport { DT_TEXT_LIST_CONTEXT } from './TextListConstants';\nimport { textListMarkerToneValidator } from './Validators';\n\ndefineOptions({\n name: 'DtTextListItem',\n});\n\nconst props = defineProps({\n /**\n * Native `li` value for ordered lists.\n */\n value: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Marker foreground tone for this item. Overrides the parent DtTextList markerTone.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Additional class name for the marker wrapper.\n */\n markerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n});\n\nconst slots = useSlots();\nconst parentContext = inject(DT_TEXT_LIST_CONTEXT, null);\nconst parentType = computed(() => parentContext ? unref(parentContext.type) : undefined);\nconst hasCustomMarker = computed(() => hasSlotContent(slots.marker));\nconst orderedValue = computed(() => parentType.value === 'ordered' ? props.value : undefined);\nconst textListItemClasses = computed(() => [\n 'd-text-list__item',\n { 'd-text-list__item--custom-marker': hasCustomMarker.value },\n props.markerTone ? `d-text-list__item--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextListItem] ${message}`);\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (!parentContext) {\n warn('DtTextListItem must be used inside DtTextList.');\n }\n\n if (props.value !== undefined && parentType.value !== 'ordered') {\n warn('The value prop only applies inside a DtTextList with type=\"ordered\".');\n }\n }\n});\n</script>\n"],"mappings":"ogBA4CA,IAAM,EAAQ,EAoCR,GAAA,EAAA,EAAA,WAAkB,CAClB,GAAA,EAAA,EAAA,QAAuB,EAAA,qBAAsB,KAAK,CAClD,GAAA,EAAA,EAAA,cAA4B,GAAA,EAAA,EAAA,OAAsB,EAAc,KAAK,CAAG,IAAA,GAAU,CAClF,GAAA,EAAA,EAAA,cAAiC,EAAA,eAAe,EAAM,OAAO,CAAC,CAC9D,GAAA,EAAA,EAAA,cAA8B,EAAW,QAAU,UAAY,EAAM,MAAQ,IAAA,GAAU,CACvF,GAAA,EAAA,EAAA,cAAqC,CACzC,oBACA,CAAE,mCAAoC,EAAgB,MAAO,CAC7D,EAAM,WAAa,kCAAkC,EAAM,aAAe,KAC3E,CAAC,CAGI,EAAO,GAAW,QAAQ,KAAK,oBAAoB,IAAU,QAEnE,EAAA,EAAA,eAAgB,CACd,QAAA,IAAA,WAA6B,eACtB,GACH,EAAK,iDAAiD,CAGpD,EAAM,QAAU,IAAA,IAAa,EAAW,QAAU,WACpD,EAAK,uEAAuE,GAGhF,oDAhFK,KAAA,CArBH,UAAQ,oBACP,OAAA,EAAA,EAAA,gBAAO,EAAA,MAAmB,CAC1B,MAAO,EAAA,QAGA,EAAA,QAAA,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,oBAQD,OAAA,OAPL,UAAQ,2BACR,OAAA,EAAA,EAAA,gBAAK,CAAC,2BACE,EAAA,YAAW,CAAA,CACnB,cAAY,0BAGU,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,GAAA,EAAA,EAAA,oBAAA,GAAA,GAAA,EAAA,EAAA,EAAA,oBAQlB,MAAA,CALJ,UAAQ,4BACP,OAAA,EAAA,EAAA,gBAAK,CAAA,4BAAgC,EAAA,aAAY,CAAA,oBAG1C,EAAA,OAAA,UAAA,CAAA,CAAA,EAAA,CAAA,CAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"TextListItem-CVjrHr2_.cjs","names":[],"sources":["../components/TextList/TextListItem.vue","../components/TextList/TextListItem.vue"],"sourcesContent":["<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <li\n data-qa=\"dt-text-list-item\"\n :class=\"textListItemClasses\"\n :value=\"orderedValue\"\n >\n <span\n v-if=\"hasCustomMarker\"\n data-qa=\"dt-text-list-item-marker\"\n class=\"d-text-list__item-marker\"\n :class=\"markerClass\"\n aria-hidden=\"true\"\n >\n <!-- @slot Custom marker content. Decorative by default. -->\n <slot name=\"marker\" />\n </span>\n <div\n data-qa=\"dt-text-list-item-content\"\n :class=\"['d-text-list__item-content', contentClass]\"\n >\n <!-- @slot Text list item content. -->\n <slot />\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n inject,\n onMounted,\n unref,\n useSlots,\n} from 'vue';\nimport { hasSlotContent } from '@/common/utils';\nimport { DT_TEXT_LIST_CONTEXT } from './TextListConstants';\nimport { textListMarkerToneValidator } from './Validators';\n\ndefineOptions({\n name: 'DtTextListItem',\n});\n\nconst props = defineProps({\n /**\n * Native `li` value for ordered lists.\n */\n value: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Marker foreground tone for this item. Overrides the parent DtTextList markerTone.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Additional class name for the marker wrapper.\n */\n markerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n});\n\nconst slots = useSlots();\nconst parentContext = inject(DT_TEXT_LIST_CONTEXT, null);\nconst parentType = computed(() => parentContext ? unref(parentContext.type) : undefined);\nconst hasCustomMarker = computed(() => hasSlotContent(slots.marker));\nconst orderedValue = computed(() => parentType.value === 'ordered' ? props.value : undefined);\nconst textListItemClasses = computed(() => [\n 'd-text-list__item',\n { 'd-text-list__item--custom-marker': hasCustomMarker.value },\n props.markerTone ? `d-text-list__item--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextListItem] ${message}`);\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (!parentContext) {\n warn('DtTextListItem must be used inside DtTextList.');\n }\n\n if (props.value !== undefined && parentType.value !== 'ordered') {\n warn('The value prop only applies inside a DtTextList with type=\"ordered\".');\n }\n }\n});\n</script>\n","<!-- eslint-disable vue/no-restricted-class -->\n<template>\n <li\n data-qa=\"dt-text-list-item\"\n :class=\"textListItemClasses\"\n :value=\"orderedValue\"\n >\n <span\n v-if=\"hasCustomMarker\"\n data-qa=\"dt-text-list-item-marker\"\n class=\"d-text-list__item-marker\"\n :class=\"markerClass\"\n aria-hidden=\"true\"\n >\n <!-- @slot Custom marker content. Decorative by default. -->\n <slot name=\"marker\" />\n </span>\n <div\n data-qa=\"dt-text-list-item-content\"\n :class=\"['d-text-list__item-content', contentClass]\"\n >\n <!-- @slot Text list item content. -->\n <slot />\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n inject,\n onMounted,\n unref,\n useSlots,\n} from 'vue';\nimport { hasSlotContent } from '@/common/utils';\nimport { DT_TEXT_LIST_CONTEXT } from './TextListConstants';\nimport { textListMarkerToneValidator } from './Validators';\n\ndefineOptions({\n name: 'DtTextListItem',\n});\n\nconst props = defineProps({\n /**\n * Native `li` value for ordered lists.\n */\n value: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Marker foreground tone for this item. Overrides the parent DtTextList markerTone.\n * @values primary, secondary, tertiary, muted, disabled, placeholder, critical, critical-strong, positive, positive-strong, warning, info, info-strong, neutral-black, neutral-white\n */\n markerTone: {\n type: String,\n default: undefined,\n validator: textListMarkerToneValidator,\n },\n\n /**\n * Additional class name for the marker wrapper.\n */\n markerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n});\n\nconst slots = useSlots();\nconst parentContext = inject(DT_TEXT_LIST_CONTEXT, null);\nconst parentType = computed(() => parentContext ? unref(parentContext.type) : undefined);\nconst hasCustomMarker = computed(() => hasSlotContent(slots.marker));\nconst orderedValue = computed(() => parentType.value === 'ordered' ? props.value : undefined);\nconst textListItemClasses = computed(() => [\n 'd-text-list__item',\n { 'd-text-list__item--custom-marker': hasCustomMarker.value },\n props.markerTone ? `d-text-list__item--marker-tone-${props.markerTone}` : null,\n]);\n\n// eslint-disable-next-line no-console\nconst warn = message => console.warn(`[DtTextListItem] ${message}`);\n\nonMounted(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (!parentContext) {\n warn('DtTextListItem must be used inside DtTextList.');\n }\n\n if (props.value !== undefined && parentType.value !== 'ordered') {\n warn('The value prop only applies inside a DtTextList with type=\"ordered\".');\n }\n }\n});\n</script>\n"],"mappings":"ogBA4CA,IAAM,EAAQ,EAoCR,GAAA,EAAA,EAAA,WAAkB,CAClB,GAAA,EAAA,EAAA,QAAuB,EAAA,qBAAsB,KAAK,CAClD,GAAA,EAAA,EAAA,cAA4B,GAAA,EAAA,EAAA,OAAsB,EAAc,KAAK,CAAG,IAAA,GAAU,CAClF,GAAA,EAAA,EAAA,cAAiC,EAAA,eAAe,EAAM,OAAO,CAAC,CAC9D,GAAA,EAAA,EAAA,cAA8B,EAAW,QAAU,UAAY,EAAM,MAAQ,IAAA,GAAU,CACvF,GAAA,EAAA,EAAA,cAAqC,CACzC,oBACA,CAAE,mCAAoC,EAAgB,MAAO,CAC7D,EAAM,WAAa,kCAAkC,EAAM,aAAe,KAC3E,CAAC,CAGI,EAAO,GAAW,QAAQ,KAAK,oBAAoB,IAAU,QAEnE,EAAA,EAAA,eAAgB,CACd,QAAA,IAAA,WAA6B,eACtB,GACH,EAAK,iDAAiD,CAGpD,EAAM,QAAU,IAAA,IAAa,EAAW,QAAU,WACpD,EAAK,uEAAuE,GAGhF,oDAhFK,KAAA,CArBH,UAAQ,oBACP,OAAA,EAAA,EAAA,gBAAO,EAAA,MAAmB,CAC1B,MAAO,EAAA,QAGA,EAAA,QAAA,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,oBAQD,OAAA,OAPL,UAAQ,2BACR,OAAA,EAAA,EAAA,gBAAK,CAAC,2BACE,EAAA,YAAW,CAAA,CACnB,cAAY,0BAGU,EAAA,OAAA,SAAA,CAAA,CAAA,EAAA,GAAA,EAAA,EAAA,oBAAA,GAAA,GAAA,EAAA,EAAA,EAAA,oBAQlB,MAAA,CALJ,UAAQ,4BACP,OAAA,EAAA,EAAA,gBAAK,CAAA,4BAAgC,EAAA,aAAY,CAAA,oBAG1C,EAAA,OAAA,UAAA,CAAA,CAAA,EAAA,CAAA,CAAA,GAAA,EAAA"}
@@ -1,2 +1,2 @@
1
1
  require(`./chunk-Bmb41Sf3.cjs`);const e=require(`./common/validators/index.cjs`),t=require(`./common/utils/index.cjs`),n=require(`./_plugin-vue_export-helper-D8jCH6HB.cjs`),r=require(`./lib/icon/icon-constants.cjs`),i=require(`./lib/notice/notice-constants.cjs`),a=require(`./lib/notice/notice-icon.cjs`),o=require(`./lib/notice/notice-content.cjs`),s=require(`./lib/notice/notice-action.cjs`),c=require(`./lib/toast/toast-constants.cjs`);let l=require(`vue`),u=require(`@dialpad/dialtone-icons/vue`);var d={name:`ToastLayoutDefault`,components:{DtNoticeIcon:a.default,DtNoticeContent:o.default,DtNoticeAction:s.default},inheritAttrs:!1,props:{isShown:{type:Boolean,default:!1},headerId:{type:String,default(){return t.default.getUniqueString()}},contentId:{type:String,default(){return t.default.getUniqueString()}},headerText:{type:String,default:void 0},message:{type:String,default:``},role:{type:String,default:`status`,validator:e=>c.TOAST_ROLES.includes(e)},kind:{type:String,default:`base`,validator:e=>i.NOTICE_KINDS.includes(e)},important:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showAction:{type:Boolean,default:!0},iconClass:{type:[String,Array,Object],default:``},headerClass:{type:[String,Array,Object],default:``},contentClass:{type:[String,Array,Object],default:``},actionClass:{type:[String,Array,Object],default:``}},emits:[`close`],computed:{kindClass(){return{critical:`d-toast--critical`,info:`d-toast--info`,positive:`d-toast--positive`,warning:`d-toast--warning`,base:`d-toast--base`}[this.kind]},toastListeners(){return t.extractVueListeners(this.$attrs)}}},f=[`aria-hidden`],p={class:`d-toast__dialog`};function m(e,t,n,r,i,a){let o=(0,l.resolveComponent)(`dt-notice-icon`),s=(0,l.resolveComponent)(`dt-notice-content`),c=(0,l.resolveComponent)(`dt-notice-action`);return n.isShown?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,{key:0,class:(0,l.normalizeClass)([`d-toast`,a.kindClass,e.$attrs.class,{"d-toast--important":n.important}]),"data-qa":`dt-toast`,"aria-hidden":(!n.isShown).toString()},[(0,l.createElementVNode)(`div`,p,[n.showIcon?((0,l.openBlock)(),(0,l.createBlock)(o,(0,l.mergeProps)({key:0,kind:n.kind,"icon-class":n.iconClass,class:{"d-notice__icon--has-title":n.headerText||e.$slots.header}},a.toastListeners),{default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`icon`)]),_:3},16,[`kind`,`icon-class`,`class`])):(0,l.createCommentVNode)(``,!0),(0,l.createVNode)(s,(0,l.mergeProps)({"header-id":n.headerId,"content-id":n.contentId,"header-text":n.headerText,message:n.message,"header-class":n.headerClass,"content-class":n.contentClass,role:n.role},a.toastListeners),{header:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`header`)]),default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`default`)]),_:3},16,[`header-id`,`content-id`,`header-text`,`message`,`header-class`,`content-class`,`role`]),(0,l.createVNode)(c,(0,l.mergeProps)({"show-action":n.showAction,"show-close":n.showClose,"action-class":n.actionClass},a.toastListeners,{onClose:t[0]||(t[0]=t=>e.$emit(`close`))}),{default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`action`)]),_:3},16,[`show-action`,`show-close`,`action-class`])])],10,f)):(0,l.createCommentVNode)(``,!0)}var h=n.t(d,[[`render`,m]]),g=new Map([[`info`,u.DtIconInfo],[`positive`,u.DtIconInfo],[`warning`,u.DtIconAlertTriangle],[`critical`,u.DtIconInfo],[`base`,u.DtIconBell],[`gradient`,u.DtIconSparkle]]),_={name:`DtToastLayoutAlternateIcon`,components:{DtIconInfo:u.DtIconInfo,DtIconAlertTriangle:u.DtIconAlertTriangle,DtIconBell:u.DtIconBell,DtIconSparkle:u.DtIconSparkle},props:{kind:{type:String,default:`base`,validator(e){return c.TOAST_ALTERNATE_KINDS.includes(e)}},size:{type:[String,Number],default:400,validator:e.ordinalSizeValidator(r.ICON_SIZE_MODIFIERS)},iconClass:{type:[String,Array,Object],default:``}},computed:{defaultIcon(){return g.get(this.kind)}}};function v(e,t,n,r,i,a){return(0,l.openBlock)(),(0,l.createElementBlock)(`div`,{"aria-hidden":`true`,class:(0,l.normalizeClass)([`d-toast-layout-alternate__icon`,n.iconClass])},[(0,l.renderSlot)(e.$slots,`default`,{},()=>[a.defaultIcon?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(a.defaultIcon),{key:0,size:n.size},null,8,[`size`])):(0,l.createCommentVNode)(``,!0)])],2)}var y=n.t(_,[[`render`,v]]),b={name:`ToastLayoutAlternate`,components:{DtNoticeAction:s.default,DtNoticeContent:o.default,DtToastLayoutAlternateIcon:y},inheritAttrs:!1,props:{isShown:{type:Boolean,default:!1},headerId:{type:String,default(){return t.default.getUniqueString()}},contentId:{type:String,default(){return t.default.getUniqueString()}},headerText:{type:String,default:void 0},message:{type:String,default:``},role:{type:String,default:`status`,validator:e=>c.TOAST_ROLES.includes(e)},kind:{type:String,default:`base`,validator:e=>c.TOAST_ALTERNATE_KINDS.includes(e)},showClose:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},iconClass:{type:[String,Array,Object],default:``},headerClass:{type:[String,Array,Object],default:``},contentClass:{type:[String,Array,Object],default:``},actionClass:{type:[String,Array,Object],default:``}},computed:{kindClass(){return{critical:`d-toast-alternate--critical`,info:`d-toast-alternate--info`,positive:`d-toast-alternate--positive`,warning:`d-toast-alternate--warning`,gradient:`d-toast-alternate--gradient`}[this.kind]},toastListeners(){return t.extractVueListeners(this.$attrs)}}},x=[`aria-hidden`],S={class:`d-toast-alternate__dialog`},C={class:`d-toast-alternate__header`},w={class:`d-toast-alternate__content`};function T(e,t,n,r,i,a){let o=(0,l.resolveComponent)(`dt-toast-layout-alternate-icon`),s=(0,l.resolveComponent)(`dt-notice-content`),c=(0,l.resolveComponent)(`dt-notice-action`);return n.isShown?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,{key:0,class:(0,l.normalizeClass)([`d-toast-alternate`,e.$attrs.class,a.kindClass]),"data-qa":`dt-toast`,"aria-hidden":(!n.isShown).toString()},[(0,l.createElementVNode)(`div`,S,[(0,l.createElementVNode)(`div`,C,[n.showIcon?((0,l.openBlock)(),(0,l.createBlock)(o,(0,l.mergeProps)({key:0,kind:n.kind,"icon-class":n.iconClass,size:`200`},a.toastListeners),{default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`icon`)]),_:3},16,[`kind`,`icon-class`])):(0,l.createCommentVNode)(``,!0),(0,l.createVNode)(s,(0,l.mergeProps)({"header-id":n.headerId,"content-id":n.contentId,"header-text":n.headerText,"header-class":n.headerClass,"content-class":n.contentClass,role:n.role},a.toastListeners),{header:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`header`)]),_:3},16,[`header-id`,`content-id`,`header-text`,`header-class`,`content-class`,`role`]),(0,l.createVNode)(c,(0,l.mergeProps)({"show-action":!1,"show-close":n.showClose,"action-class":n.actionClass,"button-size":100},a.toastListeners,{onClose:t[0]||(t[0]=t=>e.$emit(`close`))}),null,16,[`show-close`,`action-class`])]),(0,l.createElementVNode)(`div`,w,[(0,l.renderSlot)(e.$slots,`default`,{},()=>[(0,l.createTextVNode)((0,l.toDisplayString)(n.message),1)])])])],10,x)):(0,l.createCommentVNode)(``,!0)}var E=n.t(b,[[`render`,T]]),D={name:`DtToast`,components:{ToastLayoutDefault:h,ToastLayoutAlternate:E},inheritAttrs:!1,props:{headerId:{type:String,default:void 0},contentId:{type:String,default:void 0},headerText:{type:String,default:void 0},message:{type:String,default:void 0},role:{type:String,default:`status`},kind:{type:String,default:void 0},important:{type:Boolean,default:!1},open:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showAction:{type:Boolean,default:!0},duration:{type:Number,default:null,validator:e=>e>=c.TOAST_MIN_DURATION},layout:{type:String,default:`default`,validator:e=>c.TOAST_LAYOUTS.includes(e)},iconClass:{type:[String,Array,Object],default:``},headerClass:{type:[String,Array,Object],default:``},contentClass:{type:[String,Array,Object],default:``},actionClass:{type:[String,Array,Object],default:``}},emits:[`close`,`update:open`],data(){return{isShown:!1,minDuration:c.TOAST_MIN_DURATION}},computed:{shouldSetTimeout(){return!!this.duration&&this.duration>=this.minDuration},selectedLayout(){return this.layout===`alternate`?E:h}},watch:{open:{handler:function(e){this.isShown=e,e?this.setTimeout():clearTimeout(this.displayTimer)},immediate:!0}},unmounted(){clearTimeout(this.displayTimer)},methods:{setTimeout(){this.shouldSetTimeout&&(this.displayTimer=setTimeout(()=>{this.isShown=!1,this.$emit(`update:open`,!1)},this.duration))},handleClose(){this.isShown=!1,this.$emit(`close`),this.$emit(`update:open`,!1)}}};function O(e,t,n,r,i,a){return(0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(a.selectedLayout),(0,l.mergeProps)({"is-shown":i.isShown,"header-id":n.headerId,"content-id":n.contentId,"header-text":n.headerText,message:n.message,role:n.role,kind:n.kind,important:n.important,"show-close":n.showClose,"show-icon":n.showIcon,"show-action":n.showAction,"icon-class":n.iconClass,"header-class":n.headerClass,"content-class":n.contentClass,"action-class":n.actionClass},e.$attrs,{onClose:a.handleClose}),{icon:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`icon`)]),header:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`header`)]),action:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`action`)]),default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,`default`)]),_:3},16,[`is-shown`,`header-id`,`content-id`,`header-text`,`message`,`role`,`kind`,`important`,`show-close`,`show-icon`,`show-action`,`icon-class`,`header-class`,`content-class`,`action-class`,`onClose`])}var k=n.t(D,[[`render`,O]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return k}});
2
- //# sourceMappingURL=Toast-BXvUrvd_.cjs.map
2
+ //# sourceMappingURL=Toast--W8p7jzA.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast-BXvUrvd_.cjs","names":[],"sources":["../components/Toast/Layouts/ToastLayoutDefault.vue","../components/Toast/Layouts/ToastLayoutAlternateIcon.vue","../components/Toast/Layouts/ToastLayoutAlternate.vue","../components/Toast/Toast.vue"],"sourcesContent":["<template>\n <div\n v-if=\"isShown\"\n :class=\"[\n 'd-toast',\n kindClass,\n $attrs.class,\n { 'd-toast--important': important },\n ]\"\n data-qa=\"dt-toast\"\n :aria-hidden=\"(!isShown).toString()\"\n >\n <div class=\"d-toast__dialog\">\n <dt-notice-icon\n v-if=\"showIcon\"\n :kind=\"kind\"\n :icon-class=\"iconClass\"\n :class=\"{ 'd-notice__icon--has-title': headerText || $slots.header }\"\n v-bind=\"toastListeners\"\n >\n <!-- @slot Slot for custom icon -->\n <slot name=\"icon\" />\n </dt-notice-icon>\n <dt-notice-content\n :header-id=\"headerId\"\n :content-id=\"contentId\"\n :header-text=\"headerText\"\n :message=\"message\"\n :header-class=\"headerClass\"\n :content-class=\"contentClass\"\n :role=\"role\"\n v-bind=\"toastListeners\"\n >\n <template #header>\n <!-- @slot Slot for the header -->\n <slot name=\"header\" />\n </template>\n <!-- @slot the main textual content of the toast -->\n <slot />\n </dt-notice-content>\n <dt-notice-action\n :show-action=\"showAction\"\n :show-close=\"showClose\"\n :action-class=\"actionClass\"\n v-bind=\"toastListeners\"\n @close=\"$emit('close')\"\n >\n <!-- @slot Enter a possible action for the user to take, such as a link to another page -->\n <slot name=\"action\" />\n </dt-notice-action>\n </div>\n </div>\n</template>\n\n<script>\nimport utils from '@/common/utils';\nimport { DtNoticeIcon, DtNoticeContent, DtNoticeAction, NOTICE_KINDS } from '@/components/Notice';\nimport { TOAST_ROLES } from '../ToastConstants.js';\nimport { extractVueListeners } from '@/common/utils/index.js';\n\nexport default {\n name: 'ToastLayoutDefault',\n\n components: {\n DtNoticeIcon,\n DtNoticeContent,\n DtNoticeAction,\n },\n\n inheritAttrs: false,\n\n props: {\n isShown: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets an ID on the header element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the header.\n */\n headerId: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Sets an ID on the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Header text of the toast. This can be left blank to remove the header from the toast entirely.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Message of the toast. Overridden by default slot.\n */\n message: {\n type: String,\n default: '',\n },\n\n /**\n * Provides a role for the toast. 'status' is used by default to communicate a message. 'alert' is used to\n * communicate an important message like an error that does not contain any interactive elements.\n * @values status, alert\n */\n role: {\n type: String,\n default: 'status',\n validator: (role) => {\n return TOAST_ROLES.includes(role);\n },\n },\n\n /**\n * Severity level of the toast, sets the icon and background\n * @values base, critical, info, positive, warning\n */\n kind: {\n type: String,\n default: 'base',\n validator: (kind) => {\n return NOTICE_KINDS.includes(kind);\n },\n },\n\n /**\n * Used in scenarios where the message needs to visually dominate the screen.\n * @values true, false\n */\n important: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Shows the close button in the toast\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the icon in the toast\n * @values true, false\n */\n showIcon: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the action in the toast\n * @values true, false\n */\n showAction: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional class name for the icon wrapper element.\n */\n iconClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the action wrapper element.\n */\n actionClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n emits: ['close'],\n\n computed: {\n kindClass () {\n const kindClasses = {\n critical: 'd-toast--critical',\n info: 'd-toast--info',\n positive: 'd-toast--positive',\n warning: 'd-toast--warning',\n base: 'd-toast--base',\n };\n\n return kindClasses[this.kind];\n },\n\n toastListeners () {\n return extractVueListeners(this.$attrs);\n },\n },\n};\n</script>\n","<template>\n <div\n aria-hidden=\"true\"\n :class=\"['d-toast-layout-alternate__icon', iconClass]\"\n >\n <slot>\n <component\n :is=\"defaultIcon\"\n v-if=\"defaultIcon\"\n :size=\"size\"\n />\n </slot>\n </div>\n</template>\n\n<script>\nimport {\n DtIconInfo,\n DtIconAlertTriangle,\n DtIconBell,\n DtIconSparkle,\n} from '@dialpad/dialtone-icons/vue';\nimport { TOAST_ALTERNATE_KINDS } from '../ToastConstants.js';\nimport { ICON_SIZE_MODIFIERS } from '@/components/Icon/IconConstants.js';\nimport { ordinalSizeValidator } from '@/common/validators';\n\nconst kindToIcon = new Map([\n ['info', DtIconInfo],\n ['positive', DtIconInfo],\n ['warning', DtIconAlertTriangle],\n ['critical', DtIconInfo],\n ['base', DtIconBell],\n ['gradient', DtIconSparkle],\n]);\n\nexport default {\n name: 'DtToastLayoutAlternateIcon',\n\n components: {\n DtIconInfo,\n DtIconAlertTriangle,\n DtIconBell,\n DtIconSparkle,\n },\n\n props: {\n /**\n * Kind of icon\n * @values base, critical, info, positive, warning, gradient\n */\n kind: {\n type: String,\n default: 'base',\n validator (kind) {\n return TOAST_ALTERNATE_KINDS.includes(kind);\n },\n },\n\n size: {\n type: [String, Number],\n default: 400,\n validator: ordinalSizeValidator(ICON_SIZE_MODIFIERS),\n },\n\n /**\n * Additional class name for the icon wrapper element.\n */\n iconClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n computed: {\n defaultIcon () {\n return kindToIcon.get(this.kind);\n },\n },\n};\n</script>\n","<template>\n <div\n v-if=\"isShown\"\n :class=\"[\n 'd-toast-alternate',\n $attrs.class,\n kindClass,\n ]\"\n data-qa=\"dt-toast\"\n :aria-hidden=\"(!isShown).toString()\"\n >\n <div class=\"d-toast-alternate__dialog\">\n <div class=\"d-toast-alternate__header\">\n <dt-toast-layout-alternate-icon\n v-if=\"showIcon\"\n :kind=\"kind\"\n :icon-class=\"iconClass\"\n size=\"200\"\n v-bind=\"toastListeners\"\n >\n <slot name=\"icon\" />\n </dt-toast-layout-alternate-icon>\n <dt-notice-content\n :header-id=\"headerId\"\n :content-id=\"contentId\"\n :header-text=\"headerText\"\n :header-class=\"headerClass\"\n :content-class=\"contentClass\"\n :role=\"role\"\n v-bind=\"toastListeners\"\n >\n <template #header>\n <slot name=\"header\" />\n </template>\n </dt-notice-content>\n\n <!-- Close Button -->\n <dt-notice-action\n :show-action=\"false\"\n :show-close=\"showClose\"\n :action-class=\"actionClass\"\n :button-size=\"100\"\n v-bind=\"toastListeners\"\n @close=\"$emit('close')\"\n />\n </div>\n <!-- Content Section -->\n <div class=\"d-toast-alternate__content\">\n <slot>\n {{ message }}\n </slot>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport utils from '@/common/utils';\nimport DtToastLayoutAlternateIcon from './ToastLayoutAlternateIcon.vue';\nimport { DtNoticeAction, DtNoticeContent } from '@/components/Notice';\nimport { TOAST_ROLES, TOAST_ALTERNATE_KINDS } from '../ToastConstants.js';\nimport { extractVueListeners } from '@/common/utils/index.js';\n\nexport default {\n name: 'ToastLayoutAlternate',\n\n components: {\n DtNoticeAction,\n DtNoticeContent,\n DtToastLayoutAlternateIcon,\n },\n\n inheritAttrs: false,\n\n props: {\n isShown: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets an ID on the header element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the header.\n */\n headerId: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Sets an ID on the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Header text of the toast. This can be left blank to remove the header from the toast entirely.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Message of the toast. Overridden by default slot.\n */\n message: {\n type: String,\n default: '',\n },\n\n /**\n * Provides a role for the toast. 'status' is used by default to communicate a message. 'alert' is used to\n * communicate an important message like an error that does not contain any interactive elements.\n * @values status, alert\n */\n role: {\n type: String,\n default: 'status',\n validator: (role) => {\n return TOAST_ROLES.includes(role);\n },\n },\n\n /**\n * Severity level of the toast, sets the icon and background\n * @values base, critical, info, positive, warning, gradient\n */\n kind: {\n type: String,\n default: 'base',\n validator: (kind) => {\n return TOAST_ALTERNATE_KINDS.includes(kind);\n },\n },\n\n /**\n * Shows the close button in the toast\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the icon in the toast\n * @values true, false\n */\n showIcon: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional class name for the icon wrapper element.\n */\n iconClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the action wrapper element.\n */\n actionClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n computed: {\n kindClass () {\n const kindClasses = {\n critical: 'd-toast-alternate--critical',\n info: 'd-toast-alternate--info',\n positive: 'd-toast-alternate--positive',\n warning: 'd-toast-alternate--warning',\n gradient: 'd-toast-alternate--gradient',\n };\n\n return kindClasses[this.kind];\n },\n\n toastListeners () {\n return extractVueListeners(this.$attrs);\n },\n },\n};\n</script>\n","<template>\n <component\n :is=\"selectedLayout\"\n :is-shown=\"isShown\"\n :header-id=\"headerId\"\n :content-id=\"contentId\"\n :header-text=\"headerText\"\n :message=\"message\"\n :role=\"role\"\n :kind=\"kind\"\n :important=\"important\"\n :show-close=\"showClose\"\n :show-icon=\"showIcon\"\n :show-action=\"showAction\"\n :icon-class=\"iconClass\"\n :header-class=\"headerClass\"\n :content-class=\"contentClass\"\n :action-class=\"actionClass\"\n v-bind=\"$attrs\"\n @close=\"handleClose\"\n >\n <!-- @slot Slot for custom icon -->\n <template #icon>\n <slot name=\"icon\" />\n </template>\n <template #header>\n <!-- @slot Slot for the header -->\n <slot name=\"header\" />\n </template>\n <!-- @slot the main textual content of the toast -->\n <slot />\n <!-- @slot Enter a possible action for the user to take, such as a link to another page -->\n <template #action>\n <slot name=\"action\" />\n </template>\n </component>\n</template>\n\n<script>\nimport { TOAST_MIN_DURATION, TOAST_LAYOUTS } from './ToastConstants.js';\nimport ToastLayoutDefault from './Layouts/ToastLayoutDefault.vue';\nimport ToastLayoutAlternate from './Layouts/ToastLayoutAlternate.vue';\n\n/**\n * A toast notice, sometimes called a snackbar, is a time-based message that appears based on users' actions.\n * It contains at-a-glance information about outcomes and can be paired with actions.\n * @see https://dialtone.dialpad.com/components/toast.html\n */\nexport default {\n name: 'DtToast',\n\n components: {\n ToastLayoutDefault,\n ToastLayoutAlternate,\n },\n\n inheritAttrs: false,\n\n props: {\n /**\n * Sets an ID on the header element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the header.\n */\n headerId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Sets an ID on the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Header text of the toast. This can be left blank to remove the header from the toast entirely.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Message of the toast. Overridden by default slot.\n */\n message: {\n type: String,\n default: undefined,\n },\n\n /**\n * Provides a role for the toast. 'status' is used by default to communicate a message. 'alert' is used to\n * communicate an important message like an error that does not contain any interactive elements.\n * @values status, alert\n */\n role: {\n type: String,\n default: 'status',\n },\n\n /**\n * Severity level of the toast, could be different depending on which toast layout is used.\n * @values base, critical, info, positive, warning, gradient\n */\n kind: {\n type: String,\n default: undefined,\n },\n\n /**\n * Used in scenarios where the message needs to visually dominate the screen.\n * @values true, false\n */\n important: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls whether the toast is shown. If a valid duration is provided, the toast will disappear\n * after reaching the duration time, so it's convenient to use `v-model` with this prop to update\n * the data in your component.\n * Supports v-model\n * @values true, false\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Shows the close button in the toast.\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the icon in the toast.\n * @values true, false\n */\n showIcon: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the action in the toast.\n * @values true, false\n */\n showAction: {\n type: Boolean,\n default: true,\n },\n\n /**\n * The duration in ms the toast will display before disappearing.\n * The toast won't disappear if the duration is not provided.\n * If it's provided, it should be equal to or greater than 6000.\n */\n duration: {\n type: Number,\n default: null,\n validator: (duration) => {\n return duration >= TOAST_MIN_DURATION;\n },\n },\n\n /**\n * The layout / styling you wish to use for the toast.\n * @values default, alternate\n */\n layout: {\n type: String,\n default: 'default',\n validator: (layout) => {\n return TOAST_LAYOUTS.includes(layout);\n },\n },\n\n /**\n * Additional class name for the icon wrapper element.\n */\n iconClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the action wrapper element.\n */\n actionClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n emits: [\n /**\n * Close button click event\n *\n * @event close\n */\n 'close',\n\n /**\n * Sync open value\n *\n * @event update:open\n */\n 'update:open',\n ],\n\n data () {\n return {\n isShown: false,\n minDuration: TOAST_MIN_DURATION,\n };\n },\n\n computed: {\n shouldSetTimeout () {\n return !!this.duration && this.duration >= this.minDuration;\n },\n\n selectedLayout () {\n return this.layout === 'alternate' ? ToastLayoutAlternate : ToastLayoutDefault;\n },\n },\n\n watch: {\n open: {\n handler: function (open) {\n this.isShown = open;\n if (open) {\n this.setTimeout();\n } else {\n clearTimeout(this.displayTimer);\n }\n },\n\n immediate: true,\n },\n },\n\n unmounted () {\n clearTimeout(this.displayTimer);\n },\n\n methods: {\n setTimeout () {\n if (this.shouldSetTimeout) {\n this.displayTimer = setTimeout(() => {\n this.isShown = false;\n this.$emit('update:open', false);\n }, this.duration);\n }\n },\n\n handleClose () {\n this.isShown = false;\n this.$emit('close');\n this.$emit('update:open', false);\n },\n },\n};\n</script>\n"],"mappings":"qfA4DA,IAAK,EAAU,CACb,KAAM,qBAEN,WAAY,CACV,aAAA,EAAA,QACA,gBAAA,EAAA,QACA,eAAA,EAAA,QACD,CAED,aAAc,GAEd,MAAO,CACL,QAAS,CACP,KAAM,QACN,QAAS,GACV,CAMD,SAAU,CACR,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,QAAM,iBAAiB,EAC5C,CAMD,UAAW,CACT,KAAM,OACN,SAAW,CAAE,OAAO,EAAA,QAAM,iBAAiB,EAC5C,CAKD,WAAY,CACV,KAAM,OACN,QAAS,IAAA,GACV,CAKD,QAAS,CACP,KAAM,OACN,QAAS,GACV,CAOD,KAAM,CACJ,KAAM,OACN,QAAS,SACT,UAAY,GACH,EAAA,YAAY,SAAS,EAAK,CAEpC,CAMD,KAAM,CACJ,KAAM,OACN,QAAS,OACT,UAAY,GACH,EAAA,aAAa,SAAS,EAAK,CAErC,CAMD,UAAW,CACT,KAAM,QACN,QAAS,GACV,CAMD,UAAW,CACT,KAAM,QACN,QAAS,GACV,CAMD,SAAU,CACR,KAAM,QACN,QAAS,GACV,CAMD,WAAY,CACV,KAAM,QACN,QAAS,GACV,CAKD,UAAW,CACT,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD,YAAa,CACX,KAAM,CAAC,OAAQ,MAAO,OAAO,CAC7B,QAAS,GACV,CAKD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,QAAU,GACf,KAAK,MAAM,QAAQ,CACnB,KAAK,MAAM,cAAe,GAAM,EAEnC,CACF,iGA5RQ,EAAA,eAAc,EAAA,EAAA,EAAA,YAiCT,CAhCT,WAAU,EAAA,QACV,YAAW,EAAA,SACX,aAAY,EAAA,UACZ,cAAa,EAAA,WACb,QAAS,EAAA,QACT,KAAM,EAAA,KACN,KAAM,EAAA,KACN,UAAW,EAAA,UACX,aAAY,EAAA,UACZ,YAAW,EAAA,SACX,cAAa,EAAA,WACb,aAAY,EAAA,UACZ,eAAc,EAAA,YACd,gBAAe,EAAA,aACf,eAAc,EAAA,aACP,EAAA,OAAM,CACb,QAAO,EAAA,YAAW,CAAA,CAAA,CAGR,MAAA,EAAA,EAAA,aACW,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,OAAA,CAAA,CAAA,CAEX,QAAA,EAAA,EAAA,aAEa,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,SAAA,CAAA,CAAA,CAKb,QAAA,EAAA,EAAA,aACa,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,SAAA,CAAA,CAAA,2BAHhB,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"Toast--W8p7jzA.cjs","names":[],"sources":["../components/Toast/Layouts/ToastLayoutDefault.vue","../components/Toast/Layouts/ToastLayoutAlternateIcon.vue","../components/Toast/Layouts/ToastLayoutAlternate.vue","../components/Toast/Toast.vue"],"sourcesContent":["<template>\n <div\n v-if=\"isShown\"\n :class=\"[\n 'd-toast',\n kindClass,\n $attrs.class,\n { 'd-toast--important': important },\n ]\"\n data-qa=\"dt-toast\"\n :aria-hidden=\"(!isShown).toString()\"\n >\n <div class=\"d-toast__dialog\">\n <dt-notice-icon\n v-if=\"showIcon\"\n :kind=\"kind\"\n :icon-class=\"iconClass\"\n :class=\"{ 'd-notice__icon--has-title': headerText || $slots.header }\"\n v-bind=\"toastListeners\"\n >\n <!-- @slot Slot for custom icon -->\n <slot name=\"icon\" />\n </dt-notice-icon>\n <dt-notice-content\n :header-id=\"headerId\"\n :content-id=\"contentId\"\n :header-text=\"headerText\"\n :message=\"message\"\n :header-class=\"headerClass\"\n :content-class=\"contentClass\"\n :role=\"role\"\n v-bind=\"toastListeners\"\n >\n <template #header>\n <!-- @slot Slot for the header -->\n <slot name=\"header\" />\n </template>\n <!-- @slot the main textual content of the toast -->\n <slot />\n </dt-notice-content>\n <dt-notice-action\n :show-action=\"showAction\"\n :show-close=\"showClose\"\n :action-class=\"actionClass\"\n v-bind=\"toastListeners\"\n @close=\"$emit('close')\"\n >\n <!-- @slot Enter a possible action for the user to take, such as a link to another page -->\n <slot name=\"action\" />\n </dt-notice-action>\n </div>\n </div>\n</template>\n\n<script>\nimport utils from '@/common/utils';\nimport { DtNoticeIcon, DtNoticeContent, DtNoticeAction, NOTICE_KINDS } from '@/components/Notice';\nimport { TOAST_ROLES } from '../ToastConstants.js';\nimport { extractVueListeners } from '@/common/utils/index.js';\n\nexport default {\n name: 'ToastLayoutDefault',\n\n components: {\n DtNoticeIcon,\n DtNoticeContent,\n DtNoticeAction,\n },\n\n inheritAttrs: false,\n\n props: {\n isShown: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets an ID on the header element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the header.\n */\n headerId: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Sets an ID on the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Header text of the toast. This can be left blank to remove the header from the toast entirely.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Message of the toast. Overridden by default slot.\n */\n message: {\n type: String,\n default: '',\n },\n\n /**\n * Provides a role for the toast. 'status' is used by default to communicate a message. 'alert' is used to\n * communicate an important message like an error that does not contain any interactive elements.\n * @values status, alert\n */\n role: {\n type: String,\n default: 'status',\n validator: (role) => {\n return TOAST_ROLES.includes(role);\n },\n },\n\n /**\n * Severity level of the toast, sets the icon and background\n * @values base, critical, info, positive, warning\n */\n kind: {\n type: String,\n default: 'base',\n validator: (kind) => {\n return NOTICE_KINDS.includes(kind);\n },\n },\n\n /**\n * Used in scenarios where the message needs to visually dominate the screen.\n * @values true, false\n */\n important: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Shows the close button in the toast\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the icon in the toast\n * @values true, false\n */\n showIcon: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the action in the toast\n * @values true, false\n */\n showAction: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional class name for the icon wrapper element.\n */\n iconClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the action wrapper element.\n */\n actionClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n emits: ['close'],\n\n computed: {\n kindClass () {\n const kindClasses = {\n critical: 'd-toast--critical',\n info: 'd-toast--info',\n positive: 'd-toast--positive',\n warning: 'd-toast--warning',\n base: 'd-toast--base',\n };\n\n return kindClasses[this.kind];\n },\n\n toastListeners () {\n return extractVueListeners(this.$attrs);\n },\n },\n};\n</script>\n","<template>\n <div\n aria-hidden=\"true\"\n :class=\"['d-toast-layout-alternate__icon', iconClass]\"\n >\n <slot>\n <component\n :is=\"defaultIcon\"\n v-if=\"defaultIcon\"\n :size=\"size\"\n />\n </slot>\n </div>\n</template>\n\n<script>\nimport {\n DtIconInfo,\n DtIconAlertTriangle,\n DtIconBell,\n DtIconSparkle,\n} from '@dialpad/dialtone-icons/vue';\nimport { TOAST_ALTERNATE_KINDS } from '../ToastConstants.js';\nimport { ICON_SIZE_MODIFIERS } from '@/components/Icon/IconConstants.js';\nimport { ordinalSizeValidator } from '@/common/validators';\n\nconst kindToIcon = new Map([\n ['info', DtIconInfo],\n ['positive', DtIconInfo],\n ['warning', DtIconAlertTriangle],\n ['critical', DtIconInfo],\n ['base', DtIconBell],\n ['gradient', DtIconSparkle],\n]);\n\nexport default {\n name: 'DtToastLayoutAlternateIcon',\n\n components: {\n DtIconInfo,\n DtIconAlertTriangle,\n DtIconBell,\n DtIconSparkle,\n },\n\n props: {\n /**\n * Kind of icon\n * @values base, critical, info, positive, warning, gradient\n */\n kind: {\n type: String,\n default: 'base',\n validator (kind) {\n return TOAST_ALTERNATE_KINDS.includes(kind);\n },\n },\n\n size: {\n type: [String, Number],\n default: 400,\n validator: ordinalSizeValidator(ICON_SIZE_MODIFIERS),\n },\n\n /**\n * Additional class name for the icon wrapper element.\n */\n iconClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n computed: {\n defaultIcon () {\n return kindToIcon.get(this.kind);\n },\n },\n};\n</script>\n","<template>\n <div\n v-if=\"isShown\"\n :class=\"[\n 'd-toast-alternate',\n $attrs.class,\n kindClass,\n ]\"\n data-qa=\"dt-toast\"\n :aria-hidden=\"(!isShown).toString()\"\n >\n <div class=\"d-toast-alternate__dialog\">\n <div class=\"d-toast-alternate__header\">\n <dt-toast-layout-alternate-icon\n v-if=\"showIcon\"\n :kind=\"kind\"\n :icon-class=\"iconClass\"\n size=\"200\"\n v-bind=\"toastListeners\"\n >\n <slot name=\"icon\" />\n </dt-toast-layout-alternate-icon>\n <dt-notice-content\n :header-id=\"headerId\"\n :content-id=\"contentId\"\n :header-text=\"headerText\"\n :header-class=\"headerClass\"\n :content-class=\"contentClass\"\n :role=\"role\"\n v-bind=\"toastListeners\"\n >\n <template #header>\n <slot name=\"header\" />\n </template>\n </dt-notice-content>\n\n <!-- Close Button -->\n <dt-notice-action\n :show-action=\"false\"\n :show-close=\"showClose\"\n :action-class=\"actionClass\"\n :button-size=\"100\"\n v-bind=\"toastListeners\"\n @close=\"$emit('close')\"\n />\n </div>\n <!-- Content Section -->\n <div class=\"d-toast-alternate__content\">\n <slot>\n {{ message }}\n </slot>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport utils from '@/common/utils';\nimport DtToastLayoutAlternateIcon from './ToastLayoutAlternateIcon.vue';\nimport { DtNoticeAction, DtNoticeContent } from '@/components/Notice';\nimport { TOAST_ROLES, TOAST_ALTERNATE_KINDS } from '../ToastConstants.js';\nimport { extractVueListeners } from '@/common/utils/index.js';\n\nexport default {\n name: 'ToastLayoutAlternate',\n\n components: {\n DtNoticeAction,\n DtNoticeContent,\n DtToastLayoutAlternateIcon,\n },\n\n inheritAttrs: false,\n\n props: {\n isShown: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets an ID on the header element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the header.\n */\n headerId: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Sets an ID on the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Header text of the toast. This can be left blank to remove the header from the toast entirely.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Message of the toast. Overridden by default slot.\n */\n message: {\n type: String,\n default: '',\n },\n\n /**\n * Provides a role for the toast. 'status' is used by default to communicate a message. 'alert' is used to\n * communicate an important message like an error that does not contain any interactive elements.\n * @values status, alert\n */\n role: {\n type: String,\n default: 'status',\n validator: (role) => {\n return TOAST_ROLES.includes(role);\n },\n },\n\n /**\n * Severity level of the toast, sets the icon and background\n * @values base, critical, info, positive, warning, gradient\n */\n kind: {\n type: String,\n default: 'base',\n validator: (kind) => {\n return TOAST_ALTERNATE_KINDS.includes(kind);\n },\n },\n\n /**\n * Shows the close button in the toast\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the icon in the toast\n * @values true, false\n */\n showIcon: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Additional class name for the icon wrapper element.\n */\n iconClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the action wrapper element.\n */\n actionClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n computed: {\n kindClass () {\n const kindClasses = {\n critical: 'd-toast-alternate--critical',\n info: 'd-toast-alternate--info',\n positive: 'd-toast-alternate--positive',\n warning: 'd-toast-alternate--warning',\n gradient: 'd-toast-alternate--gradient',\n };\n\n return kindClasses[this.kind];\n },\n\n toastListeners () {\n return extractVueListeners(this.$attrs);\n },\n },\n};\n</script>\n","<template>\n <component\n :is=\"selectedLayout\"\n :is-shown=\"isShown\"\n :header-id=\"headerId\"\n :content-id=\"contentId\"\n :header-text=\"headerText\"\n :message=\"message\"\n :role=\"role\"\n :kind=\"kind\"\n :important=\"important\"\n :show-close=\"showClose\"\n :show-icon=\"showIcon\"\n :show-action=\"showAction\"\n :icon-class=\"iconClass\"\n :header-class=\"headerClass\"\n :content-class=\"contentClass\"\n :action-class=\"actionClass\"\n v-bind=\"$attrs\"\n @close=\"handleClose\"\n >\n <!-- @slot Slot for custom icon -->\n <template #icon>\n <slot name=\"icon\" />\n </template>\n <template #header>\n <!-- @slot Slot for the header -->\n <slot name=\"header\" />\n </template>\n <!-- @slot the main textual content of the toast -->\n <slot />\n <!-- @slot Enter a possible action for the user to take, such as a link to another page -->\n <template #action>\n <slot name=\"action\" />\n </template>\n </component>\n</template>\n\n<script>\nimport { TOAST_MIN_DURATION, TOAST_LAYOUTS } from './ToastConstants.js';\nimport ToastLayoutDefault from './Layouts/ToastLayoutDefault.vue';\nimport ToastLayoutAlternate from './Layouts/ToastLayoutAlternate.vue';\n\n/**\n * A toast notice, sometimes called a snackbar, is a time-based message that appears based on users' actions.\n * It contains at-a-glance information about outcomes and can be paired with actions.\n * @see https://dialtone.dialpad.com/components/toast.html\n */\nexport default {\n name: 'DtToast',\n\n components: {\n ToastLayoutDefault,\n ToastLayoutAlternate,\n },\n\n inheritAttrs: false,\n\n props: {\n /**\n * Sets an ID on the header element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the header.\n */\n headerId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Sets an ID on the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Header text of the toast. This can be left blank to remove the header from the toast entirely.\n */\n headerText: {\n type: String,\n default: undefined,\n },\n\n /**\n * Message of the toast. Overridden by default slot.\n */\n message: {\n type: String,\n default: undefined,\n },\n\n /**\n * Provides a role for the toast. 'status' is used by default to communicate a message. 'alert' is used to\n * communicate an important message like an error that does not contain any interactive elements.\n * @values status, alert\n */\n role: {\n type: String,\n default: 'status',\n },\n\n /**\n * Severity level of the toast, could be different depending on which toast layout is used.\n * @values base, critical, info, positive, warning, gradient\n */\n kind: {\n type: String,\n default: undefined,\n },\n\n /**\n * Used in scenarios where the message needs to visually dominate the screen.\n * @values true, false\n */\n important: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls whether the toast is shown. If a valid duration is provided, the toast will disappear\n * after reaching the duration time, so it's convenient to use `v-model` with this prop to update\n * the data in your component.\n * Supports v-model\n * @values true, false\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Shows the close button in the toast.\n * @values true, false\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the icon in the toast.\n * @values true, false\n */\n showIcon: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Shows the action in the toast.\n * @values true, false\n */\n showAction: {\n type: Boolean,\n default: true,\n },\n\n /**\n * The duration in ms the toast will display before disappearing.\n * The toast won't disappear if the duration is not provided.\n * If it's provided, it should be equal to or greater than 6000.\n */\n duration: {\n type: Number,\n default: null,\n validator: (duration) => {\n return duration >= TOAST_MIN_DURATION;\n },\n },\n\n /**\n * The layout / styling you wish to use for the toast.\n * @values default, alternate\n */\n layout: {\n type: String,\n default: 'default',\n validator: (layout) => {\n return TOAST_LAYOUTS.includes(layout);\n },\n },\n\n /**\n * Additional class name for the icon wrapper element.\n */\n iconClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the header wrapper element.\n */\n headerClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Additional class name for the action wrapper element.\n */\n actionClass: {\n type: [String, Array, Object],\n default: '',\n },\n },\n\n emits: [\n /**\n * Close button click event\n *\n * @event close\n */\n 'close',\n\n /**\n * Sync open value\n *\n * @event update:open\n */\n 'update:open',\n ],\n\n data () {\n return {\n isShown: false,\n minDuration: TOAST_MIN_DURATION,\n };\n },\n\n computed: {\n shouldSetTimeout () {\n return !!this.duration && this.duration >= this.minDuration;\n },\n\n selectedLayout () {\n return this.layout === 'alternate' ? ToastLayoutAlternate : ToastLayoutDefault;\n },\n },\n\n watch: {\n open: {\n handler: function (open) {\n this.isShown = open;\n if (open) {\n this.setTimeout();\n } else {\n clearTimeout(this.displayTimer);\n }\n },\n\n immediate: true,\n },\n },\n\n unmounted () {\n clearTimeout(this.displayTimer);\n },\n\n methods: {\n setTimeout () {\n if (this.shouldSetTimeout) {\n this.displayTimer = setTimeout(() => {\n this.isShown = false;\n this.$emit('update:open', false);\n }, this.duration);\n }\n },\n\n handleClose () {\n this.isShown = false;\n this.$emit('close');\n this.$emit('update:open', false);\n },\n },\n};\n</script>\n"],"mappings":"qfA4DA,IAAK,EAAU,CACb,KAAM,qBAEN,WAAY,CACV,aAAA,EAAA,QACA,gBAAA,EAAA,QACA,eAAA,EAAA,QACD,CAED,aAAc,GAEd,MA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,CAAA,CAEX,QAAA,EAAA,EAAA,aAEa,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,SAAA,CAAA,CAAA,CAKb,QAAA,EAAA,EAAA,aACa,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,SAAA,CAAA,CAAA,2BAHhB,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,CAAA"}
@@ -553,4 +553,4 @@ var J = /* @__PURE__ */ r(K, [["render", q]]);
553
553
  //#endregion
554
554
  export { J as t };
555
555
 
556
- //# sourceMappingURL=Toast-DmzQrYtG.js.map
556
+ //# sourceMappingURL=Toast-4nsu1oxP.js.map