@dialpad/dialtone-vue 3.120.0 → 3.120.2

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 (425) hide show
  1. package/dist/chunks/_plugin-vue_export-helper-caHeSgYY.js +11 -0
  2. package/dist/chunks/_plugin-vue_export-helper-caHeSgYY.js.map +1 -0
  3. package/dist/chunks/_plugin-vue_export-helper-fhnQq0tA.js +10 -0
  4. package/dist/chunks/_plugin-vue_export-helper-fhnQq0tA.js.map +1 -0
  5. package/dist/chunks/{dropdown-eWOvBvwq.js → dropdown-Hn-TeTvZ.js} +151 -104
  6. package/dist/chunks/{dropdown-UO3UJalk.js.map → dropdown-Hn-TeTvZ.js.map} +1 -1
  7. package/dist/chunks/dropdown-w8Do29L5.js +442 -0
  8. package/dist/chunks/{dropdown-eWOvBvwq.js.map → dropdown-w8Do29L5.js.map} +1 -1
  9. package/dist/chunks/dropdown_constants-2pGCXy7m.js +8 -0
  10. package/dist/chunks/dropdown_constants-2pGCXy7m.js.map +1 -0
  11. package/dist/chunks/dropdown_constants-w1MXGC3Z.js +9 -0
  12. package/dist/chunks/dropdown_constants-w1MXGC3Z.js.map +1 -0
  13. package/dist/chunks/{icon_constants-OpYAAKwF.js → icon_constants-Dy4MEUJL.js} +7 -6
  14. package/dist/chunks/{icon_constants-2S_OSQ1t.js.map → icon_constants-Dy4MEUJL.js.map} +1 -1
  15. package/dist/chunks/icon_constants-QYpmdE0R.js +16 -0
  16. package/dist/chunks/{icon_constants-OpYAAKwF.js.map → icon_constants-QYpmdE0R.js.map} +1 -1
  17. package/dist/chunks/index-4qgKeErp.js +446 -0
  18. package/dist/chunks/{index-b4iXYvId.js.map → index-4qgKeErp.js.map} +1 -1
  19. package/dist/chunks/index-b_MgDylR.js +447 -0
  20. package/dist/chunks/{index-6tYeqbgP.js.map → index-b_MgDylR.js.map} +1 -1
  21. package/dist/chunks/{input-4UQWegUk.js → input-NmYDD5bn.js} +83 -60
  22. package/dist/chunks/{input-0Uksk4DP.js.map → input-NmYDD5bn.js.map} +1 -1
  23. package/dist/chunks/input-ttnte8zB.js +295 -0
  24. package/dist/chunks/{input-4UQWegUk.js.map → input-ttnte8zB.js.map} +1 -1
  25. package/dist/chunks/input_group-M-D25pOJ.js +152 -0
  26. package/dist/chunks/{input_group-bBKaq3Wi.js.map → input_group-M-D25pOJ.js.map} +1 -1
  27. package/dist/chunks/{input_group-bBKaq3Wi.js → input_group-jWnq2DJT.js} +27 -24
  28. package/dist/chunks/{input_group-AS760Cp7.js.map → input_group-jWnq2DJT.js.map} +1 -1
  29. package/dist/chunks/keyboard_list_navigation-ScXhrxya.js +284 -0
  30. package/dist/chunks/{keyboard_list_navigation-N74Bpdq7.js.map → keyboard_list_navigation-ScXhrxya.js.map} +1 -1
  31. package/dist/chunks/keyboard_list_navigation-fJnl_Iox.js +283 -0
  32. package/dist/chunks/{keyboard_list_navigation-F0O8nht0.js.map → keyboard_list_navigation-fJnl_Iox.js.map} +1 -1
  33. package/dist/chunks/link_constants-Huj7D_hm.js +22 -0
  34. package/dist/chunks/{link_constants-Kn6kP4i1.js.map → link_constants-Huj7D_hm.js.map} +1 -1
  35. package/dist/chunks/link_constants-nWVlXQBs.js +23 -0
  36. package/dist/chunks/{link_constants-vIUB92L4.js.map → link_constants-nWVlXQBs.js.map} +1 -1
  37. package/dist/chunks/list_item_constants-EiqkqZvP.js +13 -0
  38. package/dist/chunks/{list_item_constants-Tsz5CO1m.js.map → list_item_constants-EiqkqZvP.js.map} +1 -1
  39. package/dist/chunks/list_item_constants-u1xcN9Dd.js +14 -0
  40. package/dist/chunks/{list_item_constants-LTUc74pD.js.map → list_item_constants-u1xcN9Dd.js.map} +1 -1
  41. package/dist/chunks/modal-VgxXAQFP.js +105 -0
  42. package/dist/chunks/{modal-qEzlo0Sj.js.map → modal-VgxXAQFP.js.map} +1 -1
  43. package/dist/chunks/modal-XOr4kiNZ.js +106 -0
  44. package/dist/chunks/{modal-VuMFkZFH.js.map → modal-XOr4kiNZ.js.map} +1 -1
  45. package/dist/chunks/notice_action-WTucGhvr.js +222 -0
  46. package/dist/chunks/{notice_action-tJfD5Qw1.js.map → notice_action-WTucGhvr.js.map} +1 -1
  47. package/dist/chunks/notice_action-p-ePanW_.js +223 -0
  48. package/dist/chunks/{notice_action-jO199emq.js.map → notice_action-p-ePanW_.js.map} +1 -1
  49. package/dist/chunks/notice_constants-7Qt2CQEY.js +7 -0
  50. package/dist/chunks/{notice_constants-mC6al2Dm.js.map → notice_constants-7Qt2CQEY.js.map} +1 -1
  51. package/dist/chunks/notice_constants-UXo9e3bS.js +6 -0
  52. package/dist/chunks/{notice_constants-c--hBFQw.js.map → notice_constants-UXo9e3bS.js.map} +1 -1
  53. package/dist/chunks/popover_constants-JwBF9h1Z.js +143 -0
  54. package/dist/chunks/{popover_constants-hOEhklvr.js.map → popover_constants-JwBF9h1Z.js.map} +1 -1
  55. package/dist/chunks/popover_constants-Qkpb0yh2.js +144 -0
  56. package/dist/chunks/{popover_constants-qjlEkroB.js.map → popover_constants-Qkpb0yh2.js.map} +1 -1
  57. package/dist/chunks/{sr_only_close_button-7O-Ev8uM.js → sr_only_close_button-3EdsV-dH.js} +28 -24
  58. package/dist/chunks/{sr_only_close_button-iD7s1Pbj.js.map → sr_only_close_button-3EdsV-dH.js.map} +1 -1
  59. package/dist/chunks/sr_only_close_button-xGrHFjwA.js +91 -0
  60. package/dist/chunks/{sr_only_close_button-7O-Ev8uM.js.map → sr_only_close_button-xGrHFjwA.js.map} +1 -1
  61. package/dist/chunks/stack_constants-HraCekPm.js +15 -0
  62. package/dist/chunks/{stack_constants-m9Ickqw0.js.map → stack_constants-HraCekPm.js.map} +1 -1
  63. package/dist/chunks/stack_constants-SMzMWnAQ.js +14 -0
  64. package/dist/chunks/{stack_constants-u7tNqGtc.js.map → stack_constants-SMzMWnAQ.js.map} +1 -1
  65. package/dist/chunks/tab-RTDgnD9-.js +391 -0
  66. package/dist/chunks/{tab-at7WWglk.js.map → tab-RTDgnD9-.js.map} +1 -1
  67. package/dist/chunks/tab-qc3f42Yp.js +390 -0
  68. package/dist/chunks/{tab-GQZFMq83.js.map → tab-qc3f42Yp.js.map} +1 -1
  69. package/dist/common/constants.cjs +60 -0
  70. package/dist/{lib → common}/constants.cjs.map +1 -1
  71. package/dist/{lib → common}/constants.js +25 -18
  72. package/dist/{lib → common}/constants.js.map +1 -1
  73. package/dist/common/dates.cjs +72 -0
  74. package/dist/{lib → common}/dates.cjs.map +1 -1
  75. package/dist/common/dates.js +72 -0
  76. package/dist/{lib → common}/dates.js.map +1 -1
  77. package/dist/common/emoji.cjs +163 -0
  78. package/dist/common/emoji.cjs.map +1 -0
  79. package/dist/common/emoji.js +168 -0
  80. package/dist/common/emoji.js.map +1 -0
  81. package/dist/common/mixins.cjs +17 -0
  82. package/dist/{lib → common}/mixins.cjs.map +1 -1
  83. package/dist/common/mixins.js +17 -0
  84. package/dist/common/utils.cjs +243 -0
  85. package/dist/{lib → common}/utils.cjs.map +1 -1
  86. package/dist/common/utils.js +243 -0
  87. package/dist/{lib → common}/utils.js.map +1 -1
  88. package/dist/common/validators.cjs +23 -0
  89. package/dist/{lib → common}/validators.cjs.map +1 -1
  90. package/dist/common/validators.js +23 -0
  91. package/dist/{lib → common}/validators.js.map +1 -1
  92. package/dist/dialtone-vue.cjs +373 -1
  93. package/dist/dialtone-vue.cjs.map +1 -1
  94. package/dist/dialtone-vue.js +328 -327
  95. package/dist/dialtone-vue.js.map +1 -1
  96. package/dist/lib/attachment-carousel.cjs +345 -1
  97. package/dist/lib/attachment-carousel.cjs.map +1 -1
  98. package/dist/lib/attachment-carousel.js +126 -108
  99. package/dist/lib/attachment-carousel.js.map +1 -1
  100. package/dist/lib/avatar.cjs +447 -1
  101. package/dist/lib/avatar.cjs.map +1 -1
  102. package/dist/lib/avatar.js +135 -101
  103. package/dist/lib/avatar.js.map +1 -1
  104. package/dist/lib/badge.cjs +206 -1
  105. package/dist/lib/badge.cjs.map +1 -1
  106. package/dist/lib/badge.js +64 -48
  107. package/dist/lib/badge.js.map +1 -1
  108. package/dist/lib/banner.cjs +242 -2
  109. package/dist/lib/banner.cjs.map +1 -1
  110. package/dist/lib/banner.js +81 -71
  111. package/dist/lib/banner.js.map +1 -1
  112. package/dist/lib/breadcrumbs.cjs +150 -1
  113. package/dist/lib/breadcrumbs.cjs.map +1 -1
  114. package/dist/lib/breadcrumbs.js +60 -52
  115. package/dist/lib/breadcrumbs.js.map +1 -1
  116. package/dist/lib/button-group.cjs +41 -1
  117. package/dist/lib/button-group.cjs.map +1 -1
  118. package/dist/lib/button-group.js +15 -14
  119. package/dist/lib/button-group.js.map +1 -1
  120. package/dist/lib/button.cjs +356 -1
  121. package/dist/lib/button.cjs.map +1 -1
  122. package/dist/lib/button.js +108 -88
  123. package/dist/lib/button.js.map +1 -1
  124. package/dist/lib/callbar-button-with-popover.cjs +322 -1
  125. package/dist/lib/callbar-button-with-popover.cjs.map +1 -1
  126. package/dist/lib/callbar-button-with-popover.js +101 -83
  127. package/dist/lib/callbar-button-with-popover.js.map +1 -1
  128. package/dist/lib/callbar-button.cjs +200 -1
  129. package/dist/lib/callbar-button.cjs.map +1 -1
  130. package/dist/lib/callbar-button.js +52 -45
  131. package/dist/lib/callbar-button.js.map +1 -1
  132. package/dist/lib/callbox.cjs +217 -1
  133. package/dist/lib/callbox.cjs.map +1 -1
  134. package/dist/lib/callbox.js +80 -67
  135. package/dist/lib/callbox.js.map +1 -1
  136. package/dist/lib/card.cjs +91 -1
  137. package/dist/lib/card.cjs.map +1 -1
  138. package/dist/lib/card.js +27 -27
  139. package/dist/lib/card.js.map +1 -1
  140. package/dist/lib/checkbox-group.cjs +115 -1
  141. package/dist/lib/checkbox-group.cjs.map +1 -1
  142. package/dist/lib/checkbox-group.js +34 -23
  143. package/dist/lib/checkbox-group.js.map +1 -1
  144. package/dist/lib/checkbox.cjs +156 -1
  145. package/dist/lib/checkbox.cjs.map +1 -1
  146. package/dist/lib/checkbox.js +72 -60
  147. package/dist/lib/checkbox.js.map +1 -1
  148. package/dist/lib/chip.cjs +235 -1
  149. package/dist/lib/chip.cjs.map +1 -1
  150. package/dist/lib/chip.js +84 -67
  151. package/dist/lib/chip.js.map +1 -1
  152. package/dist/lib/codeblock.cjs +23 -2
  153. package/dist/lib/codeblock.cjs.map +1 -1
  154. package/dist/lib/codeblock.js +13 -13
  155. package/dist/lib/codeblock.js.map +1 -1
  156. package/dist/lib/collapsible.cjs +398 -1
  157. package/dist/lib/collapsible.cjs.map +1 -1
  158. package/dist/lib/collapsible.js +123 -100
  159. package/dist/lib/collapsible.js.map +1 -1
  160. package/dist/lib/combobox-multi-select.cjs +589 -1
  161. package/dist/lib/combobox-multi-select.cjs.map +1 -1
  162. package/dist/lib/combobox-multi-select.js +270 -177
  163. package/dist/lib/combobox-multi-select.js.map +1 -1
  164. package/dist/lib/combobox-with-popover.cjs +452 -1
  165. package/dist/lib/combobox-with-popover.cjs.map +1 -1
  166. package/dist/lib/combobox-with-popover.js +172 -127
  167. package/dist/lib/combobox-with-popover.js.map +1 -1
  168. package/dist/lib/combobox.cjs +18 -1
  169. package/dist/lib/combobox.cjs.map +1 -1
  170. package/dist/lib/combobox.js +9 -9
  171. package/dist/lib/contact-info.cjs +205 -1
  172. package/dist/lib/contact-info.cjs.map +1 -1
  173. package/dist/lib/contact-info.js +69 -60
  174. package/dist/lib/contact-info.js.map +1 -1
  175. package/dist/lib/contact-row.cjs +246 -1
  176. package/dist/lib/contact-row.cjs.map +1 -1
  177. package/dist/lib/contact-row.js +67 -63
  178. package/dist/lib/contact-row.js.map +1 -1
  179. package/dist/lib/datepicker.cjs +854 -1
  180. package/dist/lib/datepicker.cjs.map +1 -1
  181. package/dist/lib/datepicker.js +585 -441
  182. package/dist/lib/datepicker.js.map +1 -1
  183. package/dist/lib/description-list.cjs +116 -1
  184. package/dist/lib/description-list.cjs.map +1 -1
  185. package/dist/lib/description-list.js +56 -24
  186. package/dist/lib/description-list.js.map +1 -1
  187. package/dist/lib/dropdown.cjs +36 -1
  188. package/dist/lib/dropdown.cjs.map +1 -1
  189. package/dist/lib/dropdown.js +22 -21
  190. package/dist/lib/dropdown.js.map +1 -1
  191. package/dist/lib/editor.cjs +711 -1
  192. package/dist/lib/editor.cjs.map +1 -1
  193. package/dist/lib/editor.js +271 -235
  194. package/dist/lib/editor.js.map +1 -1
  195. package/dist/lib/emoji-picker.cjs +1277 -1
  196. package/dist/lib/emoji-picker.cjs.map +1 -1
  197. package/dist/lib/emoji-picker.js +859 -569
  198. package/dist/lib/emoji-picker.js.map +1 -1
  199. package/dist/lib/emoji-row.cjs +128 -1
  200. package/dist/lib/emoji-row.cjs.map +1 -1
  201. package/dist/lib/emoji-row.js +89 -75
  202. package/dist/lib/emoji-row.js.map +1 -1
  203. package/dist/lib/emoji-text-wrapper.cjs +102 -1
  204. package/dist/lib/emoji-text-wrapper.cjs.map +1 -1
  205. package/dist/lib/emoji-text-wrapper.js +42 -31
  206. package/dist/lib/emoji-text-wrapper.js.map +1 -1
  207. package/dist/lib/emoji.cjs +158 -1
  208. package/dist/lib/emoji.cjs.map +1 -1
  209. package/dist/lib/emoji.js +153 -6
  210. package/dist/lib/emoji.js.map +1 -1
  211. package/dist/lib/feed-item-row.cjs +296 -1
  212. package/dist/lib/feed-item-row.cjs.map +1 -1
  213. package/dist/lib/feed-item-row.js +119 -100
  214. package/dist/lib/feed-item-row.js.map +1 -1
  215. package/dist/lib/feed-pill.cjs +173 -1
  216. package/dist/lib/feed-pill.cjs.map +1 -1
  217. package/dist/lib/feed-pill.js +70 -57
  218. package/dist/lib/feed-pill.js.map +1 -1
  219. package/dist/lib/general-row.cjs +518 -1
  220. package/dist/lib/general-row.cjs.map +1 -1
  221. package/dist/lib/general-row.js +186 -148
  222. package/dist/lib/general-row.js.map +1 -1
  223. package/dist/lib/group-row.cjs +116 -1
  224. package/dist/lib/group-row.cjs.map +1 -1
  225. package/dist/lib/group-row.js +37 -35
  226. package/dist/lib/group-row.js.map +1 -1
  227. package/dist/lib/grouped-chip.cjs +96 -1
  228. package/dist/lib/grouped-chip.cjs.map +1 -1
  229. package/dist/lib/grouped-chip.js +51 -46
  230. package/dist/lib/grouped-chip.js.map +1 -1
  231. package/dist/lib/hovercard.cjs +223 -1
  232. package/dist/lib/hovercard.cjs.map +1 -1
  233. package/dist/lib/hovercard.js +115 -80
  234. package/dist/lib/hovercard.js.map +1 -1
  235. package/dist/lib/icon.cjs +58 -1
  236. package/dist/lib/icon.cjs.map +1 -1
  237. package/dist/lib/icon.js +20 -20
  238. package/dist/lib/icon.js.map +1 -1
  239. package/dist/lib/image-viewer.cjs +243 -1
  240. package/dist/lib/image-viewer.cjs.map +1 -1
  241. package/dist/lib/image-viewer.js +104 -80
  242. package/dist/lib/image-viewer.js.map +1 -1
  243. package/dist/lib/input-group.cjs +91 -1
  244. package/dist/lib/input-group.cjs.map +1 -1
  245. package/dist/lib/input-group.js +41 -39
  246. package/dist/lib/input-group.js.map +1 -1
  247. package/dist/lib/input.cjs +578 -1
  248. package/dist/lib/input.cjs.map +1 -1
  249. package/dist/lib/input.js +185 -137
  250. package/dist/lib/input.js.map +1 -1
  251. package/dist/lib/item-layout.cjs +91 -1
  252. package/dist/lib/item-layout.cjs.map +1 -1
  253. package/dist/lib/item-layout.js +45 -39
  254. package/dist/lib/item-layout.js.map +1 -1
  255. package/dist/lib/ivr-node.cjs +263 -1
  256. package/dist/lib/ivr-node.cjs.map +1 -1
  257. package/dist/lib/ivr-node.js +130 -112
  258. package/dist/lib/ivr-node.js.map +1 -1
  259. package/dist/lib/keyboard-shortcut.cjs +119 -1
  260. package/dist/lib/keyboard-shortcut.cjs.map +1 -1
  261. package/dist/lib/keyboard-shortcut.js +58 -48
  262. package/dist/lib/keyboard-shortcut.js.map +1 -1
  263. package/dist/lib/lazy-show.cjs +82 -1
  264. package/dist/lib/lazy-show.cjs.map +1 -1
  265. package/dist/lib/lazy-show.js +21 -19
  266. package/dist/lib/lazy-show.js.map +1 -1
  267. package/dist/lib/link.cjs +43 -1
  268. package/dist/lib/link.cjs.map +1 -1
  269. package/dist/lib/link.js +20 -19
  270. package/dist/lib/link.js.map +1 -1
  271. package/dist/lib/list-item-group.cjs +67 -1
  272. package/dist/lib/list-item-group.cjs.map +1 -1
  273. package/dist/lib/list-item-group.js +24 -22
  274. package/dist/lib/list-item-group.js.map +1 -1
  275. package/dist/lib/list-item.cjs +216 -1
  276. package/dist/lib/list-item.cjs.map +1 -1
  277. package/dist/lib/list-item.js +71 -60
  278. package/dist/lib/list-item.js.map +1 -1
  279. package/dist/lib/message-input.cjs +708 -1
  280. package/dist/lib/message-input.cjs.map +1 -1
  281. package/dist/lib/message-input.js +232 -206
  282. package/dist/lib/message-input.js.map +1 -1
  283. package/dist/lib/modal.cjs +444 -2
  284. package/dist/lib/modal.cjs.map +1 -1
  285. package/dist/lib/modal.js +153 -120
  286. package/dist/lib/modal.js.map +1 -1
  287. package/dist/lib/notice.cjs +197 -1
  288. package/dist/lib/notice.cjs.map +1 -1
  289. package/dist/lib/notice.js +66 -63
  290. package/dist/lib/notice.js.map +1 -1
  291. package/dist/lib/pagination.cjs +205 -1
  292. package/dist/lib/pagination.cjs.map +1 -1
  293. package/dist/lib/pagination.js +96 -81
  294. package/dist/lib/pagination.js.map +1 -1
  295. package/dist/lib/popover.cjs +1080 -1
  296. package/dist/lib/popover.cjs.map +1 -1
  297. package/dist/lib/popover.js +447 -267
  298. package/dist/lib/popover.js.map +1 -1
  299. package/dist/lib/presence.cjs +70 -1
  300. package/dist/lib/presence.cjs.map +1 -1
  301. package/dist/lib/presence.js +33 -27
  302. package/dist/lib/presence.js.map +1 -1
  303. package/dist/lib/radio-group.cjs +88 -1
  304. package/dist/lib/radio-group.cjs.map +1 -1
  305. package/dist/lib/radio-group.js +18 -18
  306. package/dist/lib/radio-group.js.map +1 -1
  307. package/dist/lib/radio.cjs +162 -1
  308. package/dist/lib/radio.cjs.map +1 -1
  309. package/dist/lib/radio.js +66 -57
  310. package/dist/lib/radio.js.map +1 -1
  311. package/dist/lib/rich-text-editor.cjs +1137 -1
  312. package/dist/lib/rich-text-editor.cjs.map +1 -1
  313. package/dist/lib/rich-text-editor.js +567 -386
  314. package/dist/lib/rich-text-editor.js.map +1 -1
  315. package/dist/lib/root-layout.cjs +158 -1
  316. package/dist/lib/root-layout.cjs.map +1 -1
  317. package/dist/lib/root-layout.js +33 -31
  318. package/dist/lib/root-layout.js.map +1 -1
  319. package/dist/lib/scroller.cjs +1090 -1
  320. package/dist/lib/scroller.cjs.map +1 -1
  321. package/dist/lib/scroller.js +668 -345
  322. package/dist/lib/scroller.js.map +1 -1
  323. package/dist/lib/select-menu.cjs +312 -1
  324. package/dist/lib/select-menu.cjs.map +1 -1
  325. package/dist/lib/select-menu.js +124 -79
  326. package/dist/lib/select-menu.js.map +1 -1
  327. package/dist/lib/settings-menu-button.cjs +77 -1
  328. package/dist/lib/settings-menu-button.cjs.map +1 -1
  329. package/dist/lib/settings-menu-button.js +31 -30
  330. package/dist/lib/settings-menu-button.js.map +1 -1
  331. package/dist/lib/skeleton.cjs +635 -1
  332. package/dist/lib/skeleton.cjs.map +1 -1
  333. package/dist/lib/skeleton.js +189 -152
  334. package/dist/lib/skeleton.js.map +1 -1
  335. package/dist/lib/stack.cjs +123 -1
  336. package/dist/lib/stack.cjs.map +1 -1
  337. package/dist/lib/stack.js +61 -53
  338. package/dist/lib/stack.js.map +1 -1
  339. package/dist/lib/tabs.cjs +102 -1
  340. package/dist/lib/tabs.cjs.map +1 -1
  341. package/dist/lib/tabs.js +47 -41
  342. package/dist/lib/tabs.js.map +1 -1
  343. package/dist/lib/time-pill.cjs +41 -1
  344. package/dist/lib/time-pill.cjs.map +1 -1
  345. package/dist/lib/time-pill.js +18 -14
  346. package/dist/lib/time-pill.js.map +1 -1
  347. package/dist/lib/toast.cjs +281 -1
  348. package/dist/lib/toast.cjs.map +1 -1
  349. package/dist/lib/toast.js +96 -74
  350. package/dist/lib/toast.js.map +1 -1
  351. package/dist/lib/toggle.cjs +192 -1
  352. package/dist/lib/toggle.cjs.map +1 -1
  353. package/dist/lib/toggle.js +60 -49
  354. package/dist/lib/toggle.js.map +1 -1
  355. package/dist/lib/tooltip-directive.cjs +84 -1
  356. package/dist/lib/tooltip-directive.cjs.map +1 -1
  357. package/dist/lib/tooltip-directive.js +56 -42
  358. package/dist/lib/tooltip-directive.js.map +1 -1
  359. package/dist/lib/tooltip.cjs +460 -1
  360. package/dist/lib/tooltip.cjs.map +1 -1
  361. package/dist/lib/tooltip.js +162 -103
  362. package/dist/lib/tooltip.js.map +1 -1
  363. package/dist/lib/top-banner-info.cjs +71 -1
  364. package/dist/lib/top-banner-info.cjs.map +1 -1
  365. package/dist/lib/top-banner-info.js +27 -22
  366. package/dist/lib/top-banner-info.js.map +1 -1
  367. package/dist/lib/unread-pill.cjs +73 -1
  368. package/dist/lib/unread-pill.cjs.map +1 -1
  369. package/dist/lib/unread-pill.js +28 -25
  370. package/dist/lib/unread-pill.js.map +1 -1
  371. package/dist/lib/validation-messages.cjs +89 -1
  372. package/dist/lib/validation-messages.cjs.map +1 -1
  373. package/dist/lib/validation-messages.js +41 -36
  374. package/dist/lib/validation-messages.js.map +1 -1
  375. package/dist/style.css +1257 -1
  376. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +2 -2
  377. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +2 -2
  378. package/package.json +30 -29
  379. package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js +0 -2
  380. package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js.map +0 -1
  381. package/dist/chunks/_plugin-vue_export-helper-hUChTQA_.js +0 -10
  382. package/dist/chunks/_plugin-vue_export-helper-hUChTQA_.js.map +0 -1
  383. package/dist/chunks/dropdown-UO3UJalk.js +0 -2
  384. package/dist/chunks/dropdown_constants-EUcDxBrX.js +0 -9
  385. package/dist/chunks/dropdown_constants-EUcDxBrX.js.map +0 -1
  386. package/dist/chunks/dropdown_constants-KHFvVI2L.js +0 -2
  387. package/dist/chunks/dropdown_constants-KHFvVI2L.js.map +0 -1
  388. package/dist/chunks/icon_constants-2S_OSQ1t.js +0 -2
  389. package/dist/chunks/index-6tYeqbgP.js +0 -3
  390. package/dist/chunks/index-IBtQ5jRJ.js +0 -2
  391. package/dist/chunks/index-IBtQ5jRJ.js.map +0 -1
  392. package/dist/chunks/index-b4iXYvId.js +0 -399
  393. package/dist/chunks/index-mRmwpCBG.js +0 -256
  394. package/dist/chunks/index-mRmwpCBG.js.map +0 -1
  395. package/dist/chunks/input-0Uksk4DP.js +0 -2
  396. package/dist/chunks/input_group-AS760Cp7.js +0 -2
  397. package/dist/chunks/keyboard_list_navigation-F0O8nht0.js +0 -197
  398. package/dist/chunks/keyboard_list_navigation-N74Bpdq7.js +0 -2
  399. package/dist/chunks/link_constants-Kn6kP4i1.js +0 -2
  400. package/dist/chunks/link_constants-vIUB92L4.js +0 -16
  401. package/dist/chunks/list_item_constants-LTUc74pD.js +0 -13
  402. package/dist/chunks/list_item_constants-Tsz5CO1m.js +0 -2
  403. package/dist/chunks/modal-VuMFkZFH.js +0 -82
  404. package/dist/chunks/modal-qEzlo0Sj.js +0 -2
  405. package/dist/chunks/notice_action-jO199emq.js +0 -2
  406. package/dist/chunks/notice_action-tJfD5Qw1.js +0 -209
  407. package/dist/chunks/notice_constants-c--hBFQw.js +0 -6
  408. package/dist/chunks/notice_constants-mC6al2Dm.js +0 -2
  409. package/dist/chunks/popover_constants-hOEhklvr.js +0 -2
  410. package/dist/chunks/popover_constants-qjlEkroB.js +0 -114
  411. package/dist/chunks/sr_only_close_button-iD7s1Pbj.js +0 -3
  412. package/dist/chunks/stack_constants-m9Ickqw0.js +0 -2
  413. package/dist/chunks/stack_constants-u7tNqGtc.js +0 -13
  414. package/dist/chunks/tab-GQZFMq83.js +0 -367
  415. package/dist/chunks/tab-at7WWglk.js +0 -2
  416. package/dist/lib/constants.cjs +0 -2
  417. package/dist/lib/dates.cjs +0 -2
  418. package/dist/lib/dates.js +0 -57
  419. package/dist/lib/mixins.cjs +0 -2
  420. package/dist/lib/mixins.js +0 -17
  421. package/dist/lib/utils.cjs +0 -2
  422. package/dist/lib/utils.js +0 -171
  423. package/dist/lib/validators.cjs +0 -2
  424. package/dist/lib/validators.js +0 -12
  425. /package/dist/{lib → common}/mixins.js.map +0 -0
@@ -1,2 +1,636 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("../chunks/_plugin-vue_export-helper-6_y-gaV6.js"),k=3e6,d={circle:"d-bar-circle",square:"d-bar2"},_=["body","heading"],S={sm:"24px",md:"32px",lg:"48px"},u={sm:"d-h16",md:"d-h24",lg:"d-h32"},y={computed:{skeletonOffset(){const n=this.$refs.skeleton;if(!n)return this.offset;const{top:a,height:t}=n.getBoundingClientRect();return a+t/2},skeletonStyle(){const n={};if(this.skeletonOffset===-1||!this.animate&&this.animationDuration===-1)return n;const a=this.skeletonOffset*k/1e3,t=this.animationDuration===-1?1e3:this.animationDuration;return n.animationDelay=`${a}ms`,n.animationDuration=`${t}ms`,n}}},D={name:"DtSkeletonShape",mixins:[y],props:{shape:{type:String,default:"circle",validator:n=>Object.keys(d).includes(n)},size:{type:String,default:"md"},animationDuration:{type:Number,default:-1},animate:{type:Boolean,default:!0},offset:{type:Number,default:1},contentClass:{type:[String,Object,Array],default:""}},data(){return{SKELETON_SHAPES:d}},computed:{shapeStyles(){const n=S[this.size]||this.size;return{...this.skeletonStyle,"min-width":n,"max-width":n,"min-height":n,"max-height":n}}}};function N(n,a,t,i,o,l){return e.openBlock(),e.createElementBlock("div",{ref:"skeleton","data-qa":"skeleton-shape",class:e.normalizeClass(["skeleton-placeholder",o.SKELETON_SHAPES[t.shape],{"skeleton-placeholder--animate":t.animate},t.contentClass]),style:e.normalizeStyle(l.shapeStyles)},null,6)}const h=m._(D,[["render",N]]),b={name:"DtSkeletonText",mixins:[y],props:{type:{type:String,default:"body",validator:n=>_.includes(n)},headingHeight:{type:String,default:"md",validator:n=>Object.keys(u).includes(n)},width:{type:String,default:"100%"},animationDuration:{type:Number,default:-1},animate:{type:Boolean,default:!1},offset:{type:Number,default:1},contentClass:{type:String,default:""}},data(){return{SKELETON_HEADING_HEIGHTS:u}}};function B(n,a,t,i,o,l){return t.type==="body"?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"skeleton","data-qa":"skeleton-text-body",class:e.normalizeClass(["d-skeleton-text","skeleton-placeholder",{"skeleton-placeholder--animate":t.animate},t.contentClass]),style:e.normalizeStyle({width:t.width,...n.skeletonStyle})},null,6)):t.type==="heading"?(e.openBlock(),e.createElementBlock("div",{key:1,ref:"skeleton","data-qa":"skeleton-text-heading",class:e.normalizeClass([o.SKELETON_HEADING_HEIGHTS[t.headingHeight],"d-skeleton-text--heading","skeleton-placeholder",{"skeleton-placeholder--animate":t.animate},t.contentClass]),style:e.normalizeStyle({width:t.width,...n.skeletonStyle})},null,6)):e.createCommentVNode("",!0)}const f=m._(b,[["render",B]]),c=n=>n!==""&&!Number.isNaN(Number(n)),x={name:"DtSkeletonParagraph",components:{DtSkeletonText:f},props:{rows:{type:[Number,String],default:3,validator:c},animate:{type:Boolean,default:!0},minWidth:{type:[Number,String],default:30,validator:c},maxWidth:{type:[Number,String],default:100,validator:c},width:{type:[String,Array],default:null},randomWidth:{type:Boolean,default:!1},offset:{type:Number,default:1},animationDuration:{type:Number,default:-1},contentClass:{type:String,default:""},rowClass:{type:String,default:""}},computed:{integerRows(){return Number(this.rows)}},methods:{randomWidthPercentage(){const n=Math.min(this.minWidth,this.maxWidth),a=Math.max(this.minWidth,this.maxWidth);return`${Math.round(Math.random()*(a-n))+n}%`},getSizeParagraphRow(n){const a=this.width,t=Array.isArray(a),i=a==null?void 0:a[n-1],o=n===this.rows;return this.randomWidth?this.randomWidthPercentage():a&&!t?a:a&&t&&i?i:o?"38%":"100%"}}};function C(n,a,t,i,o,l){const r=e.resolveComponent("dt-skeleton-text");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-skeleton-paragraph",t.contentClass]),contentClass:"","data-qa":"skeleton-paragraph"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.integerRows,s=>(e.openBlock(),e.createBlock(r,{key:s,"data-qa":"skeleton-paragraph-row","content-class":t.rowClass,animate:t.animate,offset:t.offset,"animation-duration":t.animationDuration,width:l.getSizeParagraphRow(s)},null,8,["content-class","animate","offset","animation-duration","width"]))),128))],2)}const p=m._(x,[["render",C]]),T={name:"DtSkeletonListItem",components:{DtSkeletonShape:h,DtSkeletonParagraph:p},props:{shape:{type:String,default:"circle",validator:n=>Object.keys(d).includes(n)},shapeSize:{type:String,default:"md"},paragraphs:{type:Object,default:()=>({rows:3,randomWidth:!0})},animationDuration:{type:Number,default:-1},animate:{type:Boolean,default:!0},offset:{type:Number,default:1},shapeClass:{type:String,default:""},contentClass:{type:String,default:""}}},v={class:"d-skeleton-list-item__paragraph-container"};function P(n,a,t,i,o,l){const r=e.resolveComponent("dt-skeleton-shape"),s=e.resolveComponent("dt-skeleton-paragraph");return e.openBlock(),e.createElementBlock("div",{"data-qa":"skeleton-list-item",class:e.normalizeClass(["d-skeleton-list-item",{"d-skeleton-list-item--single":t.paragraphs.rows===1},t.contentClass])},[e.createVNode(r,{class:"d-skeleton-list-item__shape",size:t.shapeSize,shape:t.shape,"animation-duration":t.animationDuration,animate:t.animate,offset:t.offset,"content-class":t.shapeClass},null,8,["size","shape","animation-duration","animate","offset","content-class"]),e.createElementVNode("div",v,[e.createVNode(s,e.mergeProps(t.paragraphs,{"animation-duration":t.animationDuration,animate:t.animate,offset:t.offset}),null,16,["animation-duration","animate","offset"])])],2)}const g=m._(T,[["render",P]]),w={name:"DtSkeleton",components:{DtSkeletonText:f,DtSkeletonShape:h,DtSkeletonListItem:g,DtSkeletonParagraph:p},props:{paragraphOption:{type:[Object,Boolean],default:null},listItemOption:{type:[Object,Boolean],default:null},textOption:{type:Object,default:null},shapeOption:{type:[Object,Boolean],default:null},animationDuration:{type:Number,default:-1},ariaLabel:{type:String,default:""},animate:{type:Boolean,default:!0},offset:{type:Number,default:1}},computed:{validationOptions(){return{paragraphOption:this.paragraphOption,listItemOption:this.listItemOption,textOption:this.textOption,shapeOption:this.shapeOption}}},watch:{$props:{immediate:!0,handler:"validator"}},methods:{validator(){const n=Object.entries(this.validationOptions).filter(([a,t])=>t);if(n.length>=2){const a=`Use only one of ${n.map(([t])=>t).join(" | ")} options at the same time`;console.error(a)}}}},I=["aria-label"];function L(n,a,t,i,o,l){const r=e.resolveComponent("dt-skeleton-list-item"),s=e.resolveComponent("dt-skeleton-shape"),O=e.resolveComponent("dt-skeleton-paragraph"),E=e.resolveComponent("dt-skeleton-text");return e.openBlock(),e.createElementBlock("div",{"aria-busy":"true",role:"status","aria-label":t.ariaLabel},[t.listItemOption?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0},t.listItemOption===!0?{}:t.listItemOption,{"animation-duration":t.animationDuration,animate:t.animate,offset:t.offset}),null,16,["animation-duration","animate","offset"])):t.shapeOption?(e.openBlock(),e.createBlock(s,e.mergeProps({key:1},t.shapeOption===!0?{}:t.shapeOption,{"animation-duration":t.animationDuration,animate:t.animate,offset:t.offset}),null,16,["animation-duration","animate","offset"])):t.paragraphOption?(e.openBlock(),e.createBlock(O,e.mergeProps({key:2},t.paragraphOption===!0?{}:t.paragraphOption,{"animation-duration":t.animationDuration,animate:t.animate,offset:t.offset}),null,16,["animation-duration","animate","offset"])):(e.openBlock(),e.createBlock(E,e.mergeProps({key:3},t.textOption||{},{"animation-duration":t.animationDuration,animate:t.animate,offset:t.offset}),null,16,["animation-duration","animate","offset"]))],8,I)}const z=m._(w,[["render",L]]);exports.DtSkeleton=z;exports.DtSkeletonListItem=g;exports.DtSkeletonParagraph=p;exports.DtSkeletonShape=h;exports.DtSkeletonText=f;exports.SKELETON_HEADING_HEIGHTS=u;exports.SKELETON_RIPPLE_DURATION=k;exports.SKELETON_SHAPES=d;exports.SKELETON_SHAPE_SIZES=S;exports.SKELETON_TEXT_TYPES=_;
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const _pluginVue_exportHelper = require("../chunks/_plugin-vue_export-helper-fhnQq0tA.js");
5
+ const SKELETON_RIPPLE_DURATION = 3e6;
6
+ const SKELETON_SHAPES = {
7
+ circle: "d-bar-circle",
8
+ square: "d-bar2"
9
+ };
10
+ const SKELETON_TEXT_TYPES = [
11
+ "body",
12
+ "heading"
13
+ ];
14
+ const SKELETON_SHAPE_SIZES = {
15
+ sm: "24px",
16
+ md: "32px",
17
+ lg: "48px"
18
+ };
19
+ const SKELETON_HEADING_HEIGHTS = {
20
+ sm: "d-h16",
21
+ md: "d-h24",
22
+ lg: "d-h32"
23
+ };
24
+ const SkeletonAnimation = {
25
+ computed: {
26
+ skeletonOffset() {
27
+ const skeletonText = this.$refs.skeleton;
28
+ if (!skeletonText) {
29
+ return this.offset;
30
+ }
31
+ const { top, height } = skeletonText.getBoundingClientRect();
32
+ return top + height / 2;
33
+ },
34
+ skeletonStyle() {
35
+ const style = {};
36
+ if (this.skeletonOffset === -1 || !this.animate && this.animationDuration === -1) {
37
+ return style;
38
+ }
39
+ const animationDelay = this.skeletonOffset * SKELETON_RIPPLE_DURATION / 1e3;
40
+ const animationDuration = this.animationDuration === -1 ? 1e3 : this.animationDuration;
41
+ style.animationDelay = `${animationDelay}ms`;
42
+ style.animationDuration = `${animationDuration}ms`;
43
+ return style;
44
+ }
45
+ }
46
+ };
47
+ const _sfc_main$4 = {
48
+ name: "DtSkeletonShape",
49
+ mixins: [SkeletonAnimation],
50
+ props: {
51
+ /**
52
+ * Defines the shape of the skeleton, accepts circle or square.
53
+ * @values circle, square
54
+ */
55
+ shape: {
56
+ type: String,
57
+ default: "circle",
58
+ validator: (shape) => Object.keys(SKELETON_SHAPES).includes(shape)
59
+ },
60
+ /**
61
+ * Size of the shape
62
+ * @values xs, sm, md, lg, xl
63
+ */
64
+ size: {
65
+ type: String,
66
+ default: "md"
67
+ },
68
+ /**
69
+ * Duration time of the animation (ms), set -1 for an infinite animation.
70
+ */
71
+ animationDuration: {
72
+ type: Number,
73
+ default: -1
74
+ },
75
+ /**
76
+ * This property has higher priority than "option.animate"
77
+ * @values true, false
78
+ */
79
+ animate: {
80
+ type: Boolean,
81
+ default: true
82
+ },
83
+ /**
84
+ * RippleDuration controls how long the delay is for the animation of a
85
+ * placeholder 1000 pixels from the top of the page. Each placeholder
86
+ * from the top down will have a delay duration from 0 to this offset.
87
+ * The delay of each placeholder animation is based on how far down the page
88
+ * the placeholder is rendered. This is a linear relationship. The unit
89
+ * is milliseconds.
90
+ */
91
+ offset: {
92
+ type: Number,
93
+ default: 1
94
+ },
95
+ /**
96
+ * Additional class name for the content.
97
+ */
98
+ contentClass: {
99
+ type: [String, Object, Array],
100
+ default: ""
101
+ }
102
+ },
103
+ data() {
104
+ return {
105
+ SKELETON_SHAPES
106
+ };
107
+ },
108
+ computed: {
109
+ shapeStyles() {
110
+ const size = SKELETON_SHAPE_SIZES[this.size] || this.size;
111
+ return {
112
+ ...this.skeletonStyle,
113
+ "min-width": size,
114
+ "max-width": size,
115
+ "min-height": size,
116
+ "max-height": size
117
+ };
118
+ }
119
+ }
120
+ };
121
+ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
122
+ return vue.openBlock(), vue.createElementBlock("div", {
123
+ ref: "skeleton",
124
+ "data-qa": "skeleton-shape",
125
+ class: vue.normalizeClass([
126
+ "skeleton-placeholder",
127
+ $data.SKELETON_SHAPES[$props.shape],
128
+ {
129
+ "skeleton-placeholder--animate": $props.animate
130
+ },
131
+ $props.contentClass
132
+ ]),
133
+ style: vue.normalizeStyle($options.shapeStyles)
134
+ }, null, 6);
135
+ }
136
+ const DtSkeletonShape = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
137
+ const _sfc_main$3 = {
138
+ name: "DtSkeletonText",
139
+ mixins: [SkeletonAnimation],
140
+ props: {
141
+ /**
142
+ * Skeleton type
143
+ * @values body, heading
144
+ */
145
+ type: {
146
+ type: String,
147
+ default: "body",
148
+ validator: (type) => SKELETON_TEXT_TYPES.includes(type)
149
+ },
150
+ /**
151
+ * Heading height
152
+ * @values sm, md, lg
153
+ */
154
+ headingHeight: {
155
+ type: String,
156
+ default: "md",
157
+ validator: (headingHeight) => Object.keys(SKELETON_HEADING_HEIGHTS).includes(headingHeight)
158
+ },
159
+ /**
160
+ * Width of the skeleton
161
+ */
162
+ width: {
163
+ type: String,
164
+ default: "100%"
165
+ },
166
+ /**
167
+ * Duration time of the animation (ms), set -1 for an infinite animation.
168
+ */
169
+ animationDuration: {
170
+ type: Number,
171
+ default: -1
172
+ },
173
+ /**
174
+ * This property has higher priority than "option.animate"
175
+ * @values true, false
176
+ */
177
+ animate: {
178
+ type: Boolean,
179
+ default: false
180
+ },
181
+ /**
182
+ * RippleDuration controls how long the delay is for the animation of a
183
+ * placeholder 1000 pixels from the top of the page. Each placeholder
184
+ * from the top down will have a delay duration from 0 to this offset.
185
+ * The delay of each placeholder animation is based on how far down the page
186
+ * the placeholder is rendered. This is a linear relationship. The unit
187
+ * is milliseconds.
188
+ */
189
+ offset: {
190
+ type: Number,
191
+ default: 1
192
+ },
193
+ /**
194
+ * Additional class name for the content.
195
+ */
196
+ contentClass: {
197
+ type: String,
198
+ default: ""
199
+ }
200
+ },
201
+ data() {
202
+ return {
203
+ SKELETON_HEADING_HEIGHTS
204
+ };
205
+ }
206
+ };
207
+ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
208
+ return $props.type === "body" ? (vue.openBlock(), vue.createElementBlock("div", {
209
+ key: 0,
210
+ ref: "skeleton",
211
+ "data-qa": "skeleton-text-body",
212
+ class: vue.normalizeClass([
213
+ "d-skeleton-text",
214
+ "skeleton-placeholder",
215
+ {
216
+ "skeleton-placeholder--animate": $props.animate
217
+ },
218
+ $props.contentClass
219
+ ]),
220
+ style: vue.normalizeStyle({
221
+ width: $props.width,
222
+ ..._ctx.skeletonStyle
223
+ })
224
+ }, null, 6)) : $props.type === "heading" ? (vue.openBlock(), vue.createElementBlock("div", {
225
+ key: 1,
226
+ ref: "skeleton",
227
+ "data-qa": "skeleton-text-heading",
228
+ class: vue.normalizeClass([
229
+ $data.SKELETON_HEADING_HEIGHTS[$props.headingHeight],
230
+ "d-skeleton-text--heading",
231
+ "skeleton-placeholder",
232
+ {
233
+ "skeleton-placeholder--animate": $props.animate
234
+ },
235
+ $props.contentClass
236
+ ]),
237
+ style: vue.normalizeStyle({
238
+ width: $props.width,
239
+ ..._ctx.skeletonStyle
240
+ })
241
+ }, null, 6)) : vue.createCommentVNode("", true);
242
+ }
243
+ const DtSkeletonText = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
244
+ const validator = (number) => number !== "" && !Number.isNaN(Number(number));
245
+ const _sfc_main$2 = {
246
+ name: "DtSkeletonParagraph",
247
+ components: {
248
+ DtSkeletonText
249
+ },
250
+ props: {
251
+ /**
252
+ * Quantity of rows to display
253
+ */
254
+ rows: {
255
+ type: [Number, String],
256
+ default: 3,
257
+ validator
258
+ },
259
+ /**
260
+ * This property has higher priority than "option.animate"
261
+ * @values true, false
262
+ */
263
+ animate: {
264
+ type: Boolean,
265
+ default: true
266
+ },
267
+ /**
268
+ * Controls the min width of paragraphs
269
+ */
270
+ minWidth: {
271
+ type: [Number, String],
272
+ default: 30,
273
+ validator
274
+ },
275
+ /**
276
+ * Controls the max width of paragraphs
277
+ */
278
+ maxWidth: {
279
+ type: [Number, String],
280
+ default: 100,
281
+ validator
282
+ },
283
+ /**
284
+ * Controls the width of paragraphs
285
+ */
286
+ width: {
287
+ type: [String, Array],
288
+ default: null
289
+ },
290
+ /**
291
+ * If true, row widths will be random
292
+ * @values true, false
293
+ */
294
+ randomWidth: {
295
+ type: Boolean,
296
+ default: false
297
+ },
298
+ /**
299
+ * RippleDuration controls how long the delay is for the animation of a
300
+ * placeholder 1000 pixels from the top of the page. Each placeholder
301
+ * from the top down will have a delay duration from 0 to this offset.
302
+ * The delay of each placeholder animation is based on how far down the page
303
+ * the placeholder is rendered. This is a linear relationship. The unit
304
+ * is milliseconds.
305
+ */
306
+ offset: {
307
+ type: Number,
308
+ default: 1
309
+ },
310
+ /**
311
+ * Duration time of the animation (ms), set -1 for an infinite animation.
312
+ */
313
+ animationDuration: {
314
+ type: Number,
315
+ default: -1
316
+ },
317
+ /**
318
+ * Additional class name for the content.
319
+ */
320
+ contentClass: {
321
+ type: String,
322
+ default: ""
323
+ },
324
+ /**
325
+ * Additional class name for the row.
326
+ */
327
+ rowClass: {
328
+ type: String,
329
+ default: ""
330
+ }
331
+ },
332
+ computed: {
333
+ integerRows() {
334
+ return Number(this.rows);
335
+ }
336
+ },
337
+ methods: {
338
+ randomWidthPercentage() {
339
+ const min = Math.min(this.minWidth, this.maxWidth);
340
+ const max = Math.max(this.minWidth, this.maxWidth);
341
+ return `${Math.round(Math.random() * (max - min)) + min}%`;
342
+ },
343
+ getSizeParagraphRow(row) {
344
+ const paragraphWidth = this.width;
345
+ const isArrayWidth = Array.isArray(paragraphWidth);
346
+ const currentWidth = paragraphWidth == null ? void 0 : paragraphWidth[row - 1];
347
+ const isLastRow = row === this.rows;
348
+ if (this.randomWidth) {
349
+ return this.randomWidthPercentage();
350
+ }
351
+ if (paragraphWidth && !isArrayWidth) {
352
+ return paragraphWidth;
353
+ }
354
+ if (paragraphWidth && isArrayWidth && currentWidth) {
355
+ return currentWidth;
356
+ }
357
+ return isLastRow ? "38%" : "100%";
358
+ }
359
+ }
360
+ };
361
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
362
+ const _component_dt_skeleton_text = vue.resolveComponent("dt-skeleton-text");
363
+ return vue.openBlock(), vue.createElementBlock("div", {
364
+ class: vue.normalizeClass([
365
+ "d-skeleton-paragraph",
366
+ $props.contentClass
367
+ ]),
368
+ contentClass: "",
369
+ "data-qa": "skeleton-paragraph"
370
+ }, [
371
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.integerRows, (row) => {
372
+ return vue.openBlock(), vue.createBlock(_component_dt_skeleton_text, {
373
+ key: row,
374
+ "data-qa": "skeleton-paragraph-row",
375
+ "content-class": $props.rowClass,
376
+ animate: $props.animate,
377
+ offset: $props.offset,
378
+ "animation-duration": $props.animationDuration,
379
+ width: $options.getSizeParagraphRow(row)
380
+ }, null, 8, ["content-class", "animate", "offset", "animation-duration", "width"]);
381
+ }), 128))
382
+ ], 2);
383
+ }
384
+ const DtSkeletonParagraph = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
385
+ const _sfc_main$1 = {
386
+ name: "DtSkeletonListItem",
387
+ components: {
388
+ DtSkeletonShape,
389
+ DtSkeletonParagraph
390
+ },
391
+ props: {
392
+ /**
393
+ * Defines the shape of the skeleton, accepts circle or square.
394
+ * @values circle, square
395
+ */
396
+ shape: {
397
+ type: String,
398
+ default: "circle",
399
+ validator: (shape) => Object.keys(SKELETON_SHAPES).includes(shape)
400
+ },
401
+ /**
402
+ * Size of the shape
403
+ * @values xs, sm, md, lg, xl
404
+ */
405
+ shapeSize: {
406
+ type: String,
407
+ default: "md"
408
+ },
409
+ /**
410
+ * Object containing quantity of paragraphs to display
411
+ * and a randomWidth boolean.
412
+ */
413
+ paragraphs: {
414
+ type: Object,
415
+ default: () => ({ rows: 3, randomWidth: true })
416
+ },
417
+ /**
418
+ * Duration time of the animation (ms), set -1 for an infinite animation.
419
+ */
420
+ animationDuration: {
421
+ type: Number,
422
+ default: -1
423
+ },
424
+ /**
425
+ * This property has higher priority than "option.animate"
426
+ * @values true, false
427
+ */
428
+ animate: {
429
+ type: Boolean,
430
+ default: true
431
+ },
432
+ /**
433
+ * RippleDuration controls how long the delay is for the animation of a
434
+ * placeholder 1000 pixels from the top of the page. Each placeholder
435
+ * from the top down will have a delay duration from 0 to this offset.
436
+ * The delay of each placeholder animation is based on how far down the page
437
+ * the placeholder is rendered. This is a linear relationship. The unit
438
+ * is milliseconds.
439
+ */
440
+ offset: {
441
+ type: Number,
442
+ default: 1
443
+ },
444
+ /**
445
+ * Additional class name for the shape.
446
+ */
447
+ shapeClass: {
448
+ type: String,
449
+ default: ""
450
+ },
451
+ /**
452
+ * Additional class name for the content.
453
+ */
454
+ contentClass: {
455
+ type: String,
456
+ default: ""
457
+ }
458
+ }
459
+ };
460
+ const _hoisted_1$1 = { class: "d-skeleton-list-item__paragraph-container" };
461
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
462
+ const _component_dt_skeleton_shape = vue.resolveComponent("dt-skeleton-shape");
463
+ const _component_dt_skeleton_paragraph = vue.resolveComponent("dt-skeleton-paragraph");
464
+ return vue.openBlock(), vue.createElementBlock("div", {
465
+ "data-qa": "skeleton-list-item",
466
+ class: vue.normalizeClass([
467
+ "d-skeleton-list-item",
468
+ {
469
+ "d-skeleton-list-item--single": $props.paragraphs.rows === 1
470
+ },
471
+ $props.contentClass
472
+ ])
473
+ }, [
474
+ vue.createVNode(_component_dt_skeleton_shape, {
475
+ class: "d-skeleton-list-item__shape",
476
+ size: $props.shapeSize,
477
+ shape: $props.shape,
478
+ "animation-duration": $props.animationDuration,
479
+ animate: $props.animate,
480
+ offset: $props.offset,
481
+ "content-class": $props.shapeClass
482
+ }, null, 8, ["size", "shape", "animation-duration", "animate", "offset", "content-class"]),
483
+ vue.createElementVNode("div", _hoisted_1$1, [
484
+ vue.createVNode(_component_dt_skeleton_paragraph, vue.mergeProps($props.paragraphs, {
485
+ "animation-duration": $props.animationDuration,
486
+ animate: $props.animate,
487
+ offset: $props.offset
488
+ }), null, 16, ["animation-duration", "animate", "offset"])
489
+ ])
490
+ ], 2);
491
+ }
492
+ const DtSkeletonListItem = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
493
+ const _sfc_main = {
494
+ name: "DtSkeleton",
495
+ components: {
496
+ DtSkeletonText,
497
+ DtSkeletonShape,
498
+ DtSkeletonListItem,
499
+ DtSkeletonParagraph
500
+ },
501
+ props: {
502
+ /**
503
+ * Set this prop to have the skeleton render as multiple lines of text.
504
+ * Set only one option prop at a time.
505
+ */
506
+ paragraphOption: {
507
+ type: [Object, Boolean],
508
+ default: null
509
+ },
510
+ /**
511
+ * Set this prop to have the skeleton render as a list item with an avatar and wrapping text.
512
+ * Set only one option prop at a time.
513
+ */
514
+ listItemOption: {
515
+ type: [Object, Boolean],
516
+ default: null
517
+ },
518
+ /**
519
+ * Set this prop to have the skeleton render as a single line of text.
520
+ * Set only one option prop at a time.
521
+ */
522
+ textOption: {
523
+ type: Object,
524
+ default: null
525
+ },
526
+ /**
527
+ * Set this prop to have the skeleton render as a specific shape.
528
+ * Set only one option prop at a time.
529
+ */
530
+ shapeOption: {
531
+ type: [Object, Boolean],
532
+ default: null
533
+ },
534
+ /**
535
+ * Duration time of the animation (ms), set -1 for an infinite animation.
536
+ */
537
+ animationDuration: {
538
+ type: Number,
539
+ default: -1
540
+ },
541
+ /**
542
+ * Descriptive label for the content.
543
+ */
544
+ ariaLabel: {
545
+ type: String,
546
+ default: ""
547
+ },
548
+ /**
549
+ * This property has higher priority than "option.animate"
550
+ * @values true, false
551
+ */
552
+ animate: {
553
+ type: Boolean,
554
+ default: true
555
+ },
556
+ /**
557
+ * RippleDuration controls how long the delay is for the animation of a
558
+ * placeholder 1000 pixels from the top of the page. Each placeholder
559
+ * from the top down will have a delay duration from 0 to this offset.
560
+ * The delay of each placeholder animation is based on how far down the page
561
+ * the placeholder is rendered. This is a linear relationship. The unit
562
+ * is milliseconds.
563
+ */
564
+ offset: {
565
+ type: Number,
566
+ default: 1
567
+ }
568
+ },
569
+ computed: {
570
+ validationOptions() {
571
+ return {
572
+ paragraphOption: this.paragraphOption,
573
+ listItemOption: this.listItemOption,
574
+ textOption: this.textOption,
575
+ shapeOption: this.shapeOption
576
+ };
577
+ }
578
+ },
579
+ watch: {
580
+ $props: {
581
+ immediate: true,
582
+ handler: "validator"
583
+ }
584
+ },
585
+ methods: {
586
+ validator() {
587
+ const filtered = Object.entries(this.validationOptions).filter(([_, option]) => option);
588
+ if (filtered.length >= 2) {
589
+ const errorMessage = `Use only one of ${filtered.map(([key]) => key).join(" | ")} options at the same time`;
590
+ console.error(errorMessage);
591
+ }
592
+ }
593
+ }
594
+ };
595
+ const _hoisted_1 = ["aria-label"];
596
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
597
+ const _component_dt_skeleton_list_item = vue.resolveComponent("dt-skeleton-list-item");
598
+ const _component_dt_skeleton_shape = vue.resolveComponent("dt-skeleton-shape");
599
+ const _component_dt_skeleton_paragraph = vue.resolveComponent("dt-skeleton-paragraph");
600
+ const _component_dt_skeleton_text = vue.resolveComponent("dt-skeleton-text");
601
+ return vue.openBlock(), vue.createElementBlock("div", {
602
+ "aria-busy": "true",
603
+ role: "status",
604
+ "aria-label": $props.ariaLabel
605
+ }, [
606
+ $props.listItemOption ? (vue.openBlock(), vue.createBlock(_component_dt_skeleton_list_item, vue.mergeProps({ key: 0 }, $props.listItemOption === true ? {} : $props.listItemOption, {
607
+ "animation-duration": $props.animationDuration,
608
+ animate: $props.animate,
609
+ offset: $props.offset
610
+ }), null, 16, ["animation-duration", "animate", "offset"])) : $props.shapeOption ? (vue.openBlock(), vue.createBlock(_component_dt_skeleton_shape, vue.mergeProps({ key: 1 }, $props.shapeOption === true ? {} : $props.shapeOption, {
611
+ "animation-duration": $props.animationDuration,
612
+ animate: $props.animate,
613
+ offset: $props.offset
614
+ }), null, 16, ["animation-duration", "animate", "offset"])) : $props.paragraphOption ? (vue.openBlock(), vue.createBlock(_component_dt_skeleton_paragraph, vue.mergeProps({ key: 2 }, $props.paragraphOption === true ? {} : $props.paragraphOption, {
615
+ "animation-duration": $props.animationDuration,
616
+ animate: $props.animate,
617
+ offset: $props.offset
618
+ }), null, 16, ["animation-duration", "animate", "offset"])) : (vue.openBlock(), vue.createBlock(_component_dt_skeleton_text, vue.mergeProps({ key: 3 }, $props.textOption || {}, {
619
+ "animation-duration": $props.animationDuration,
620
+ animate: $props.animate,
621
+ offset: $props.offset
622
+ }), null, 16, ["animation-duration", "animate", "offset"]))
623
+ ], 8, _hoisted_1);
624
+ }
625
+ const DtSkeleton = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render]]);
626
+ exports.DtSkeleton = DtSkeleton;
627
+ exports.DtSkeletonListItem = DtSkeletonListItem;
628
+ exports.DtSkeletonParagraph = DtSkeletonParagraph;
629
+ exports.DtSkeletonShape = DtSkeletonShape;
630
+ exports.DtSkeletonText = DtSkeletonText;
631
+ exports.SKELETON_HEADING_HEIGHTS = SKELETON_HEADING_HEIGHTS;
632
+ exports.SKELETON_RIPPLE_DURATION = SKELETON_RIPPLE_DURATION;
633
+ exports.SKELETON_SHAPES = SKELETON_SHAPES;
634
+ exports.SKELETON_SHAPE_SIZES = SKELETON_SHAPE_SIZES;
635
+ exports.SKELETON_TEXT_TYPES = SKELETON_TEXT_TYPES;
2
636
  //# sourceMappingURL=skeleton.cjs.map