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