@dialpad/dialtone 9.126.6 → 9.127.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (619) hide show
  1. package/README.md +1 -1
  2. package/dist/tokens/doc.json +25670 -25670
  3. package/dist/vue2/common/mixins/index.cjs +1 -1
  4. package/dist/vue2/common/mixins/index.js +2 -4
  5. package/dist/vue2/common/mixins/index.js.map +1 -1
  6. package/dist/vue2/component-documentation.json +1 -1
  7. package/dist/vue2/dialtone-vue.cjs +1 -1
  8. package/dist/vue2/dialtone-vue.js +345 -347
  9. package/dist/vue2/dialtone-vue.js.map +1 -1
  10. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  11. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  12. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +16 -12
  13. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  14. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  15. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  16. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +6 -6
  17. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  18. package/dist/vue2/lib/button/button.cjs +1 -1
  19. package/dist/vue2/lib/button/button.cjs.map +1 -1
  20. package/dist/vue2/lib/button/button.js +6 -6
  21. package/dist/vue2/lib/button/button.js.map +1 -1
  22. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  23. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  24. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +18 -18
  25. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  26. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  27. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  28. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +14 -14
  29. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  30. package/dist/vue2/lib/chip/chip.cjs +1 -1
  31. package/dist/vue2/lib/chip/chip.cjs.map +1 -1
  32. package/dist/vue2/lib/chip/chip.js +7 -7
  33. package/dist/vue2/lib/chip/chip.js.map +1 -1
  34. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  35. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  36. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +13 -13
  37. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  38. package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
  39. package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
  40. package/dist/vue2/lib/datepicker/datepicker.js +26 -26
  41. package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
  42. package/dist/vue2/lib/datepicker/formatUtils.cjs +1 -1
  43. package/dist/vue2/lib/datepicker/formatUtils.cjs.map +1 -1
  44. package/dist/vue2/lib/datepicker/formatUtils.js +21 -20
  45. package/dist/vue2/lib/datepicker/formatUtils.js.map +1 -1
  46. package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
  47. package/dist/vue2/lib/dropdown/dropdown.cjs.map +1 -1
  48. package/dist/vue2/lib/dropdown/dropdown.js +24 -26
  49. package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
  50. package/dist/vue2/lib/editor/editor.cjs +1 -1
  51. package/dist/vue2/lib/editor/editor.cjs.map +1 -1
  52. package/dist/vue2/lib/editor/editor.js +17 -17
  53. package/dist/vue2/lib/editor/editor.js.map +1 -1
  54. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
  55. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  56. package/dist/vue2/lib/emoji-picker/emoji-picker.js +7 -6
  57. package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
  58. package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
  59. package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
  60. package/dist/vue2/lib/emoji-row/emoji-row.js +24 -20
  61. package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
  62. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  63. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  64. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +8 -8
  65. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  66. package/dist/vue2/lib/general-row/general-row.cjs +1 -1
  67. package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
  68. package/dist/vue2/lib/general-row/general-row.js +17 -17
  69. package/dist/vue2/lib/general-row/general-row.js.map +1 -1
  70. package/dist/vue2/lib/group-row/group-row.cjs +1 -1
  71. package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
  72. package/dist/vue2/lib/group-row/group-row.js +11 -7
  73. package/dist/vue2/lib/group-row/group-row.js.map +1 -1
  74. package/dist/vue2/lib/icon/icon.cjs +1 -1
  75. package/dist/vue2/lib/icon/icon.cjs.map +1 -1
  76. package/dist/vue2/lib/icon/icon.js +10 -6
  77. package/dist/vue2/lib/icon/icon.js.map +1 -1
  78. package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
  79. package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
  80. package/dist/vue2/lib/image-viewer/image-viewer.js +8 -7
  81. package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
  82. package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
  83. package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
  84. package/dist/vue2/lib/ivr-node/ivr-node.js +17 -17
  85. package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
  86. package/dist/vue2/lib/loader/loader.cjs +1 -1
  87. package/dist/vue2/lib/loader/loader.cjs.map +1 -1
  88. package/dist/vue2/lib/loader/loader.js +12 -8
  89. package/dist/vue2/lib/loader/loader.js.map +1 -1
  90. package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
  91. package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
  92. package/dist/vue2/lib/message-input/message-input-link.js +15 -15
  93. package/dist/vue2/lib/message-input/message-input-link.js.map +1 -1
  94. package/dist/vue2/lib/message-input/message-input-topbar.cjs +1 -1
  95. package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
  96. package/dist/vue2/lib/message-input/message-input-topbar.js +14 -10
  97. package/dist/vue2/lib/message-input/message-input-topbar.js.map +1 -1
  98. package/dist/vue2/lib/message-input/message-input.cjs +1 -1
  99. package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
  100. package/dist/vue2/lib/message-input/message-input.js +14 -10
  101. package/dist/vue2/lib/message-input/message-input.js.map +1 -1
  102. package/dist/vue2/lib/modal/modal.cjs +1 -1
  103. package/dist/vue2/lib/modal/modal.cjs.map +1 -1
  104. package/dist/vue2/lib/modal/modal.js +12 -11
  105. package/dist/vue2/lib/modal/modal.js.map +1 -1
  106. package/dist/vue2/lib/notice/notice-action.cjs +1 -1
  107. package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
  108. package/dist/vue2/lib/notice/notice-action.js +10 -6
  109. package/dist/vue2/lib/notice/notice-action.js.map +1 -1
  110. package/dist/vue2/lib/pagination/pagination.cjs +1 -1
  111. package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
  112. package/dist/vue2/lib/pagination/pagination.js +7 -7
  113. package/dist/vue2/lib/pagination/pagination.js.map +1 -1
  114. package/dist/vue2/lib/popover/popover-header-footer.cjs +1 -1
  115. package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
  116. package/dist/vue2/lib/popover/popover-header-footer.js +13 -9
  117. package/dist/vue2/lib/popover/popover-header-footer.js.map +1 -1
  118. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +2 -2
  119. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  120. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +61 -57
  121. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  122. package/dist/vue2/lib/toast/toast.cjs.map +1 -1
  123. package/dist/vue2/lib/toast/toast.js.map +1 -1
  124. package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
  125. package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
  126. package/dist/vue2/lib/unread-pill/unread-pill.js +15 -11
  127. package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
  128. package/dist/vue2/localization/de-DE.cjs +1 -13
  129. package/dist/vue2/localization/de-DE.cjs.map +1 -1
  130. package/dist/vue2/localization/de-DE.js +1 -13
  131. package/dist/vue2/localization/de-DE.js.map +1 -1
  132. package/dist/vue2/localization/es-LA.cjs +1 -13
  133. package/dist/vue2/localization/es-LA.cjs.map +1 -1
  134. package/dist/vue2/localization/es-LA.js +1 -13
  135. package/dist/vue2/localization/es-LA.js.map +1 -1
  136. package/dist/vue2/localization/fr-FR.cjs +1 -13
  137. package/dist/vue2/localization/fr-FR.cjs.map +1 -1
  138. package/dist/vue2/localization/fr-FR.js +1 -13
  139. package/dist/vue2/localization/fr-FR.js.map +1 -1
  140. package/dist/vue2/localization/index.cjs +1 -1
  141. package/dist/vue2/localization/index.cjs.map +1 -1
  142. package/dist/vue2/localization/index.js +59 -53
  143. package/dist/vue2/localization/index.js.map +1 -1
  144. package/dist/vue2/localization/it-IT.cjs +1 -13
  145. package/dist/vue2/localization/it-IT.cjs.map +1 -1
  146. package/dist/vue2/localization/it-IT.js +1 -13
  147. package/dist/vue2/localization/it-IT.js.map +1 -1
  148. package/dist/vue2/localization/ja-JP.cjs +1 -8
  149. package/dist/vue2/localization/ja-JP.cjs.map +1 -1
  150. package/dist/vue2/localization/ja-JP.js +1 -8
  151. package/dist/vue2/localization/ja-JP.js.map +1 -1
  152. package/dist/vue2/localization/nl-NL.cjs +1 -13
  153. package/dist/vue2/localization/nl-NL.cjs.map +1 -1
  154. package/dist/vue2/localization/nl-NL.js +1 -13
  155. package/dist/vue2/localization/nl-NL.js.map +1 -1
  156. package/dist/vue2/localization/pt-BR.cjs +1 -13
  157. package/dist/vue2/localization/pt-BR.cjs.map +1 -1
  158. package/dist/vue2/localization/pt-BR.js +1 -13
  159. package/dist/vue2/localization/pt-BR.js.map +1 -1
  160. package/dist/vue2/localization/ru-RU.cjs +1 -23
  161. package/dist/vue2/localization/ru-RU.cjs.map +1 -1
  162. package/dist/vue2/localization/ru-RU.js +1 -23
  163. package/dist/vue2/localization/ru-RU.js.map +1 -1
  164. package/dist/vue2/localization/zh-CN.cjs +1 -8
  165. package/dist/vue2/localization/zh-CN.cjs.map +1 -1
  166. package/dist/vue2/localization/zh-CN.js +1 -8
  167. package/dist/vue2/localization/zh-CN.js.map +1 -1
  168. package/dist/vue2/shared/sr_only_close_button.cjs +1 -1
  169. package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
  170. package/dist/vue2/shared/sr_only_close_button.js +14 -10
  171. package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
  172. package/dist/vue2/types/common/mixins/index.d.ts +0 -1
  173. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +5 -8
  174. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  175. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +3 -5
  176. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  177. package/dist/vue2/types/components/button/button.vue.d.ts +4 -6
  178. package/dist/vue2/types/components/button/button.vue.d.ts.map +1 -1
  179. package/dist/vue2/types/components/chip/chip.vue.d.ts +6 -8
  180. package/dist/vue2/types/components/chip/chip.vue.d.ts.map +1 -1
  181. package/dist/vue2/types/components/datepicker/formatUtils.d.ts.map +1 -1
  182. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +3 -5
  183. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
  184. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +3 -5
  185. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  186. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  187. package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts +1 -5
  188. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +2 -4
  189. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  190. package/dist/vue2/types/components/loader/loader.vue.d.ts +5 -6
  191. package/dist/vue2/types/components/loader/loader.vue.d.ts.map +1 -1
  192. package/dist/vue2/types/components/modal/modal.vue.d.ts +2 -4
  193. package/dist/vue2/types/components/modal/modal.vue.d.ts.map +1 -1
  194. package/dist/vue2/types/components/notice/notice_action.vue.d.ts +5 -6
  195. package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
  196. package/dist/vue2/types/components/pagination/pagination.vue.d.ts +4 -6
  197. package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
  198. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +5 -6
  199. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  200. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +5 -7
  201. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  202. package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
  203. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +5 -7
  204. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  205. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +5 -7
  206. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  207. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +4 -6
  208. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  209. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +3 -5
  210. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  211. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +5 -6
  212. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  213. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -16
  214. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  215. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +5 -6
  216. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  217. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +6 -8
  218. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  219. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +5 -6
  220. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  221. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -7
  222. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  223. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +3 -5
  224. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  225. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +5 -6
  226. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  227. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +5 -7
  228. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  229. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +17 -19
  230. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  231. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +8 -9
  232. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  233. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +5 -6
  234. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  235. package/dist/vue3/common/mixins/index.cjs +1 -1
  236. package/dist/vue3/common/mixins/index.js +8 -10
  237. package/dist/vue3/common/mixins/index.js.map +1 -1
  238. package/dist/vue3/common/utils/index.cjs +1 -1
  239. package/dist/vue3/common/utils/index.cjs.map +1 -1
  240. package/dist/vue3/common/utils/index.js +42 -38
  241. package/dist/vue3/common/utils/index.js.map +1 -1
  242. package/dist/vue3/component-documentation.json +1 -1
  243. package/dist/vue3/dialtone-vue.cjs +1 -1
  244. package/dist/vue3/dialtone-vue.js +298 -299
  245. package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  246. package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  247. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js +86 -110
  248. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  249. package/dist/vue3/lib/banner/banner.cjs +2 -2
  250. package/dist/vue3/lib/banner/banner.cjs.map +1 -1
  251. package/dist/vue3/lib/banner/banner.js +27 -38
  252. package/dist/vue3/lib/banner/banner.js.map +1 -1
  253. package/dist/vue3/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  254. package/dist/vue3/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  255. package/dist/vue3/lib/breadcrumbs/breadcrumbs.js +20 -18
  256. package/dist/vue3/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  257. package/dist/vue3/lib/button/button.cjs +1 -1
  258. package/dist/vue3/lib/button/button.cjs.map +1 -1
  259. package/dist/vue3/lib/button/button.js +26 -24
  260. package/dist/vue3/lib/button/button.js.map +1 -1
  261. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  262. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  263. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +36 -41
  264. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  265. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  266. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  267. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js +35 -37
  268. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  269. package/dist/vue3/lib/chip/chip.cjs +1 -1
  270. package/dist/vue3/lib/chip/chip.cjs.map +1 -1
  271. package/dist/vue3/lib/chip/chip.js +54 -57
  272. package/dist/vue3/lib/chip/chip.js.map +1 -1
  273. package/dist/vue3/lib/combobox/combobox-constants.cjs +1 -1
  274. package/dist/vue3/lib/combobox/combobox-constants.cjs.map +1 -1
  275. package/dist/vue3/lib/combobox/combobox-constants.js +2 -2
  276. package/dist/vue3/lib/combobox/combobox-constants.js.map +1 -1
  277. package/dist/vue3/lib/combobox/combobox-empty-list.cjs.map +1 -1
  278. package/dist/vue3/lib/combobox/combobox-empty-list.js.map +1 -1
  279. package/dist/vue3/lib/combobox/combobox-loading-list.cjs.map +1 -1
  280. package/dist/vue3/lib/combobox/combobox-loading-list.js.map +1 -1
  281. package/dist/vue3/lib/combobox/combobox.cjs +2 -2
  282. package/dist/vue3/lib/combobox/combobox.cjs.map +1 -1
  283. package/dist/vue3/lib/combobox/combobox.js +20 -20
  284. package/dist/vue3/lib/combobox/combobox.js.map +1 -1
  285. package/dist/vue3/lib/combobox/index.cjs +1 -1
  286. package/dist/vue3/lib/combobox/index.js +3 -3
  287. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  288. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  289. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +119 -124
  290. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  291. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  292. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  293. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js +76 -80
  294. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
  295. package/dist/vue3/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  296. package/dist/vue3/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  297. package/dist/vue3/lib/contact-centers-row/contact-centers-row.js +68 -63
  298. package/dist/vue3/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  299. package/dist/vue3/lib/contact-row/contact-row.cjs +1 -1
  300. package/dist/vue3/lib/contact-row/contact-row.cjs.map +1 -1
  301. package/dist/vue3/lib/contact-row/contact-row.js +32 -48
  302. package/dist/vue3/lib/contact-row/contact-row.js.map +1 -1
  303. package/dist/vue3/lib/datepicker/datepicker-constants.cjs +1 -1
  304. package/dist/vue3/lib/datepicker/datepicker-constants.cjs.map +1 -1
  305. package/dist/vue3/lib/datepicker/datepicker-constants.js +2 -3
  306. package/dist/vue3/lib/datepicker/datepicker-constants.js.map +1 -1
  307. package/dist/vue3/lib/datepicker/datepicker.cjs +1 -1
  308. package/dist/vue3/lib/datepicker/datepicker.cjs.map +1 -1
  309. package/dist/vue3/lib/datepicker/datepicker.js +264 -349
  310. package/dist/vue3/lib/datepicker/datepicker.js.map +1 -1
  311. package/dist/vue3/lib/datepicker/formatUtils.cjs +1 -1
  312. package/dist/vue3/lib/datepicker/formatUtils.cjs.map +1 -1
  313. package/dist/vue3/lib/datepicker/formatUtils.js +21 -20
  314. package/dist/vue3/lib/datepicker/formatUtils.js.map +1 -1
  315. package/dist/vue3/lib/datepicker/utils.cjs +1 -1
  316. package/dist/vue3/lib/datepicker/utils.cjs.map +1 -1
  317. package/dist/vue3/lib/datepicker/utils.js +12 -11
  318. package/dist/vue3/lib/datepicker/utils.js.map +1 -1
  319. package/dist/vue3/lib/description-list/description-list.cjs +1 -1
  320. package/dist/vue3/lib/description-list/description-list.cjs.map +1 -1
  321. package/dist/vue3/lib/description-list/description-list.js +10 -10
  322. package/dist/vue3/lib/description-list/description-list.js.map +1 -1
  323. package/dist/vue3/lib/dropdown/dropdown.cjs +1 -1
  324. package/dist/vue3/lib/dropdown/dropdown.cjs.map +1 -1
  325. package/dist/vue3/lib/dropdown/dropdown.js +36 -46
  326. package/dist/vue3/lib/dropdown/dropdown.js.map +1 -1
  327. package/dist/vue3/lib/editor/editor.cjs +1 -1
  328. package/dist/vue3/lib/editor/editor.cjs.map +1 -1
  329. package/dist/vue3/lib/editor/editor.js +169 -186
  330. package/dist/vue3/lib/editor/editor.js.map +1 -1
  331. package/dist/vue3/lib/editor/index.cjs +1 -1
  332. package/dist/vue3/lib/editor/index.js +2 -2
  333. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.cjs +1 -1
  334. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  335. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.js +7 -20
  336. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  337. package/dist/vue3/lib/emoji-picker/emoji-picker.cjs +1 -1
  338. package/dist/vue3/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  339. package/dist/vue3/lib/emoji-picker/emoji-picker.js +419 -477
  340. package/dist/vue3/lib/emoji-picker/emoji-picker.js.map +1 -1
  341. package/dist/vue3/lib/emoji-picker/index.cjs +1 -1
  342. package/dist/vue3/lib/emoji-picker/index.js +3 -4
  343. package/dist/vue3/lib/emoji-row/emoji-row-constants.cjs +1 -1
  344. package/dist/vue3/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
  345. package/dist/vue3/lib/emoji-row/emoji-row-constants.js +6 -7
  346. package/dist/vue3/lib/emoji-row/emoji-row-constants.js.map +1 -1
  347. package/dist/vue3/lib/emoji-row/emoji-row.cjs +1 -1
  348. package/dist/vue3/lib/emoji-row/emoji-row.cjs.map +1 -1
  349. package/dist/vue3/lib/emoji-row/emoji-row.js +53 -43
  350. package/dist/vue3/lib/emoji-row/emoji-row.js.map +1 -1
  351. package/dist/vue3/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  352. package/dist/vue3/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  353. package/dist/vue3/lib/feed-item-pill/feed-item-pill.js +52 -53
  354. package/dist/vue3/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  355. package/dist/vue3/lib/general-row/general-row.cjs +1 -1
  356. package/dist/vue3/lib/general-row/general-row.cjs.map +1 -1
  357. package/dist/vue3/lib/general-row/general-row.js +133 -118
  358. package/dist/vue3/lib/general-row/general-row.js.map +1 -1
  359. package/dist/vue3/lib/group-row/group-row.cjs +1 -1
  360. package/dist/vue3/lib/group-row/group-row.cjs.map +1 -1
  361. package/dist/vue3/lib/group-row/group-row.js +53 -39
  362. package/dist/vue3/lib/group-row/group-row.js.map +1 -1
  363. package/dist/vue3/lib/icon/icon-constants.cjs.map +1 -1
  364. package/dist/vue3/lib/icon/icon-constants.js.map +1 -1
  365. package/dist/vue3/lib/icon/icon.cjs +1 -1
  366. package/dist/vue3/lib/icon/icon.cjs.map +1 -1
  367. package/dist/vue3/lib/icon/icon.js +16 -13
  368. package/dist/vue3/lib/icon/icon.js.map +1 -1
  369. package/dist/vue3/lib/image-viewer/image-viewer.cjs +1 -1
  370. package/dist/vue3/lib/image-viewer/image-viewer.cjs.map +1 -1
  371. package/dist/vue3/lib/image-viewer/image-viewer.js +51 -47
  372. package/dist/vue3/lib/image-viewer/image-viewer.js.map +1 -1
  373. package/dist/vue3/lib/ivr-node/ivr-node-constants.cjs +1 -1
  374. package/dist/vue3/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
  375. package/dist/vue3/lib/ivr-node/ivr-node-constants.js +24 -24
  376. package/dist/vue3/lib/ivr-node/ivr-node-constants.js.map +1 -1
  377. package/dist/vue3/lib/ivr-node/ivr-node.cjs +1 -1
  378. package/dist/vue3/lib/ivr-node/ivr-node.cjs.map +1 -1
  379. package/dist/vue3/lib/ivr-node/ivr-node.js +80 -76
  380. package/dist/vue3/lib/ivr-node/ivr-node.js.map +1 -1
  381. package/dist/vue3/lib/message-input/message-input-link.cjs +1 -1
  382. package/dist/vue3/lib/message-input/message-input-link.cjs.map +1 -1
  383. package/dist/vue3/lib/message-input/message-input-link.js +100 -77
  384. package/dist/vue3/lib/message-input/message-input-link.js.map +1 -1
  385. package/dist/vue3/lib/message-input/message-input-topbar.cjs +1 -1
  386. package/dist/vue3/lib/message-input/message-input-topbar.cjs.map +1 -1
  387. package/dist/vue3/lib/message-input/message-input-topbar.js +126 -94
  388. package/dist/vue3/lib/message-input/message-input-topbar.js.map +1 -1
  389. package/dist/vue3/lib/message-input/message-input.cjs +1 -1
  390. package/dist/vue3/lib/message-input/message-input.cjs.map +1 -1
  391. package/dist/vue3/lib/message-input/message-input.js +272 -296
  392. package/dist/vue3/lib/message-input/message-input.js.map +1 -1
  393. package/dist/vue3/lib/modal/modal.cjs +1 -2
  394. package/dist/vue3/lib/modal/modal.cjs.map +1 -1
  395. package/dist/vue3/lib/modal/modal.js +64 -79
  396. package/dist/vue3/lib/modal/modal.js.map +1 -1
  397. package/dist/vue3/lib/notice/notice-action.cjs +1 -1
  398. package/dist/vue3/lib/notice/notice-action.cjs.map +1 -1
  399. package/dist/vue3/lib/notice/notice-action.js +38 -39
  400. package/dist/vue3/lib/notice/notice-action.js.map +1 -1
  401. package/dist/vue3/lib/notice/notice.cjs +1 -1
  402. package/dist/vue3/lib/notice/notice.cjs.map +1 -1
  403. package/dist/vue3/lib/notice/notice.js +37 -49
  404. package/dist/vue3/lib/notice/notice.js.map +1 -1
  405. package/dist/vue3/lib/pagination/pagination.cjs +1 -1
  406. package/dist/vue3/lib/pagination/pagination.cjs.map +1 -1
  407. package/dist/vue3/lib/pagination/pagination.js +72 -81
  408. package/dist/vue3/lib/pagination/pagination.js.map +1 -1
  409. package/dist/vue3/lib/popover/popover-header-footer.cjs +1 -1
  410. package/dist/vue3/lib/popover/popover-header-footer.cjs.map +1 -1
  411. package/dist/vue3/lib/popover/popover-header-footer.js +44 -45
  412. package/dist/vue3/lib/popover/popover-header-footer.js.map +1 -1
  413. package/dist/vue3/lib/popover/popover.cjs +1 -1
  414. package/dist/vue3/lib/popover/popover.cjs.map +1 -1
  415. package/dist/vue3/lib/popover/popover.js +26 -37
  416. package/dist/vue3/lib/popover/popover.js.map +1 -1
  417. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +3 -3
  418. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  419. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +187 -181
  420. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  421. package/dist/vue3/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  422. package/dist/vue3/lib/settings-menu-button/settings-menu-button.js.map +1 -1
  423. package/dist/vue3/lib/time-pill/time-pill.cjs.map +1 -1
  424. package/dist/vue3/lib/time-pill/time-pill.js.map +1 -1
  425. package/dist/vue3/lib/toast/toast.cjs +1 -1
  426. package/dist/vue3/lib/toast/toast.cjs.map +1 -1
  427. package/dist/vue3/lib/toast/toast.js +83 -127
  428. package/dist/vue3/lib/toast/toast.js.map +1 -1
  429. package/dist/vue3/lib/unread-pill/unread-pill.cjs +1 -1
  430. package/dist/vue3/lib/unread-pill/unread-pill.cjs.map +1 -1
  431. package/dist/vue3/lib/unread-pill/unread-pill.js +25 -14
  432. package/dist/vue3/lib/unread-pill/unread-pill.js.map +1 -1
  433. package/dist/vue3/localization/de-DE.cjs +157 -0
  434. package/dist/vue3/localization/de-DE.cjs.map +1 -0
  435. package/dist/vue3/localization/de-DE.js +160 -0
  436. package/dist/vue3/localization/de-DE.js.map +1 -0
  437. package/dist/vue3/localization/en-US.cjs +175 -0
  438. package/dist/vue3/localization/en-US.cjs.map +1 -0
  439. package/dist/vue3/localization/en-US.js +178 -0
  440. package/dist/vue3/localization/en-US.js.map +1 -0
  441. package/dist/vue3/localization/es-LA.cjs +157 -0
  442. package/dist/vue3/localization/es-LA.cjs.map +1 -0
  443. package/dist/vue3/localization/es-LA.js +160 -0
  444. package/dist/vue3/localization/es-LA.js.map +1 -0
  445. package/dist/vue3/localization/fr-FR.cjs +157 -0
  446. package/dist/vue3/localization/fr-FR.cjs.map +1 -0
  447. package/dist/vue3/localization/fr-FR.js +160 -0
  448. package/dist/vue3/localization/fr-FR.js.map +1 -0
  449. package/dist/vue3/localization/index.cjs +2 -0
  450. package/dist/vue3/localization/index.cjs.map +1 -0
  451. package/dist/vue3/localization/index.js +82 -0
  452. package/dist/vue3/localization/index.js.map +1 -0
  453. package/dist/vue3/localization/it-IT.cjs +157 -0
  454. package/dist/vue3/localization/it-IT.cjs.map +1 -0
  455. package/dist/vue3/localization/it-IT.js +160 -0
  456. package/dist/vue3/localization/it-IT.js.map +1 -0
  457. package/dist/vue3/localization/ja-JP.cjs +157 -0
  458. package/dist/vue3/localization/ja-JP.cjs.map +1 -0
  459. package/dist/vue3/localization/ja-JP.js +160 -0
  460. package/dist/vue3/localization/ja-JP.js.map +1 -0
  461. package/dist/vue3/localization/nl-NL.cjs +157 -0
  462. package/dist/vue3/localization/nl-NL.cjs.map +1 -0
  463. package/dist/vue3/localization/nl-NL.js +160 -0
  464. package/dist/vue3/localization/nl-NL.js.map +1 -0
  465. package/dist/vue3/localization/pt-BR.cjs +157 -0
  466. package/dist/vue3/localization/pt-BR.cjs.map +1 -0
  467. package/dist/vue3/localization/pt-BR.js +160 -0
  468. package/dist/vue3/localization/pt-BR.js.map +1 -0
  469. package/dist/vue3/localization/ru-RU.cjs +157 -0
  470. package/dist/vue3/localization/ru-RU.cjs.map +1 -0
  471. package/dist/vue3/localization/ru-RU.js +160 -0
  472. package/dist/vue3/localization/ru-RU.js.map +1 -0
  473. package/dist/vue3/localization/zh-CN.cjs +157 -0
  474. package/dist/vue3/localization/zh-CN.cjs.map +1 -0
  475. package/dist/vue3/localization/zh-CN.js +160 -0
  476. package/dist/vue3/localization/zh-CN.js.map +1 -0
  477. package/dist/vue3/shared/sr_only_close_button.cjs +1 -1
  478. package/dist/vue3/shared/sr_only_close_button.cjs.map +1 -1
  479. package/dist/vue3/shared/sr_only_close_button.js +27 -25
  480. package/dist/vue3/shared/sr_only_close_button.js.map +1 -1
  481. package/dist/vue3/types/common/mixins/index.d.ts +0 -1
  482. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts +8 -15
  483. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  484. package/dist/vue3/types/common/utils/index.d.ts +1 -0
  485. package/dist/vue3/types/common/utils/index.d.ts.map +1 -1
  486. package/dist/vue3/types/components/banner/banner.vue.d.ts +0 -33
  487. package/dist/vue3/types/components/banner/banner.vue.d.ts.map +1 -1
  488. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts +2 -0
  489. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  490. package/dist/vue3/types/components/button/button.vue.d.ts +2 -0
  491. package/dist/vue3/types/components/button/button.vue.d.ts.map +1 -1
  492. package/dist/vue3/types/components/chip/chip.vue.d.ts +3 -15
  493. package/dist/vue3/types/components/chip/chip.vue.d.ts.map +1 -1
  494. package/dist/vue3/types/components/combobox/combobox.vue.d.ts.map +1 -1
  495. package/dist/vue3/types/components/combobox/combobox_constants.d.ts +2 -2
  496. package/dist/vue3/types/components/combobox/index.d.ts +1 -1
  497. package/dist/vue3/types/components/datepicker/composables/useCalendar.d.ts.map +1 -1
  498. package/dist/vue3/types/components/datepicker/composables/useMonthYearPicker.d.ts +5 -1
  499. package/dist/vue3/types/components/datepicker/composables/useMonthYearPicker.d.ts.map +1 -1
  500. package/dist/vue3/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
  501. package/dist/vue3/types/components/datepicker/datepicker_constants.d.ts +0 -1
  502. package/dist/vue3/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  503. package/dist/vue3/types/components/datepicker/formatUtils.d.ts +5 -5
  504. package/dist/vue3/types/components/datepicker/formatUtils.d.ts.map +1 -1
  505. package/dist/vue3/types/components/datepicker/modules/calendar.vue.d.ts +0 -4
  506. package/dist/vue3/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
  507. package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts +0 -12
  508. package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  509. package/dist/vue3/types/components/datepicker/utils.d.ts +1 -0
  510. package/dist/vue3/types/components/datepicker/utils.d.ts.map +1 -1
  511. package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts +0 -24
  512. package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  513. package/dist/vue3/types/components/emoji_picker/emoji_picker_constants.d.ts +0 -13
  514. package/dist/vue3/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
  515. package/dist/vue3/types/components/icon/icon.vue.d.ts +2 -3
  516. package/dist/vue3/types/components/icon/icon_constants.d.ts.map +1 -1
  517. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts +3 -8
  518. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  519. package/dist/vue3/types/components/modal/modal.vue.d.ts +3 -35
  520. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  521. package/dist/vue3/types/components/notice/notice.vue.d.ts +1 -34
  522. package/dist/vue3/types/components/notice/notice.vue.d.ts.map +1 -1
  523. package/dist/vue3/types/components/notice/notice_action.vue.d.ts +7 -35
  524. package/dist/vue3/types/components/notice/notice_action.vue.d.ts.map +1 -1
  525. package/dist/vue3/types/components/pagination/pagination.vue.d.ts +5 -24
  526. package/dist/vue3/types/components/pagination/pagination.vue.d.ts.map +1 -1
  527. package/dist/vue3/types/components/popover/popover.vue.d.ts +0 -33
  528. package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
  529. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +5 -10
  530. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  531. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +2 -0
  532. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  533. package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +2 -46
  534. package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
  535. package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -34
  536. package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
  537. package/dist/vue3/types/components/toast/toast.vue.d.ts +4 -115
  538. package/dist/vue3/types/components/toast/toast.vue.d.ts.map +1 -1
  539. package/dist/vue3/types/index.d.ts +1 -0
  540. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +3 -11
  541. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  542. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +3 -10
  543. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  544. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +4 -8
  545. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  546. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +7 -7
  547. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
  548. package/dist/vue3/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
  549. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -25
  550. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  551. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +3 -41
  552. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  553. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +6 -25
  554. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  555. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
  556. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +6 -49
  557. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  558. package/dist/vue3/types/recipes/conversation_view/editor/index.d.ts +1 -1
  559. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +6 -2
  560. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  561. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts.map +1 -1
  562. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +3 -8
  563. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  564. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
  565. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +6 -1
  566. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  567. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +12 -88
  568. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  569. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +11 -1
  570. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  571. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +13 -1
  572. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  573. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +5 -8
  574. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  575. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -18
  576. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
  577. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts +9 -27
  578. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  579. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts +11 -21
  580. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  581. package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +6 -2
  582. package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  583. package/package.json +4 -4
  584. package/dist/vue2/common/mixins/localization.cjs +0 -2
  585. package/dist/vue2/common/mixins/localization.cjs.map +0 -1
  586. package/dist/vue2/common/mixins/localization.js +0 -10
  587. package/dist/vue2/common/mixins/localization.js.map +0 -1
  588. package/dist/vue2/types/common/mixins/localization.d.ts +0 -8
  589. package/dist/vue2/types/common/mixins/localization.d.ts.map +0 -1
  590. package/dist/vue3/common/mixins/sr-only-close-button.cjs +0 -3
  591. package/dist/vue3/common/mixins/sr-only-close-button.cjs.map +0 -1
  592. package/dist/vue3/common/mixins/sr-only-close-button.js +0 -44
  593. package/dist/vue3/common/mixins/sr-only-close-button.js.map +0 -1
  594. package/dist/vue3/lib/contact-row/contact-row-constants.cjs +0 -2
  595. package/dist/vue3/lib/contact-row/contact-row-constants.cjs.map +0 -1
  596. package/dist/vue3/lib/contact-row/contact-row-constants.js +0 -5
  597. package/dist/vue3/lib/contact-row/contact-row-constants.js.map +0 -1
  598. package/dist/vue3/lib/emoji/emoji-constants.cjs +0 -2
  599. package/dist/vue3/lib/emoji/emoji-constants.cjs.map +0 -1
  600. package/dist/vue3/lib/emoji/emoji-constants.js +0 -5
  601. package/dist/vue3/lib/emoji/emoji-constants.js.map +0 -1
  602. package/dist/vue3/lib/group-row/group-row-constants.cjs +0 -2
  603. package/dist/vue3/lib/group-row/group-row-constants.cjs.map +0 -1
  604. package/dist/vue3/lib/group-row/group-row-constants.js +0 -8
  605. package/dist/vue3/lib/group-row/group-row-constants.js.map +0 -1
  606. package/dist/vue3/lib/time-pill/time-pill-constants.cjs +0 -2
  607. package/dist/vue3/lib/time-pill/time-pill-constants.cjs.map +0 -1
  608. package/dist/vue3/lib/time-pill/time-pill-constants.js +0 -8
  609. package/dist/vue3/lib/time-pill/time-pill-constants.js.map +0 -1
  610. package/dist/vue3/types/common/mixins/sr_only_close_button.d.ts +0 -30
  611. package/dist/vue3/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
  612. package/dist/vue3/types/components/emoji/emoji_constants.d.ts +0 -3
  613. package/dist/vue3/types/components/emoji/emoji_constants.d.ts.map +0 -1
  614. package/dist/vue3/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts +0 -6
  615. package/dist/vue3/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts.map +0 -1
  616. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row_constants.d.ts +0 -3
  617. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row_constants.d.ts.map +0 -1
  618. package/dist/vue3/types/recipes/leftbar/group_row/group_row_constants.d.ts +0 -6
  619. package/dist/vue3/types/recipes/leftbar/group_row/group_row_constants.d.ts.map +0 -1
@@ -1,19 +1,17 @@
1
- import f from "./notice-icon.js";
1
+ import u from "./notice-icon.js";
2
2
  import m from "./notice-content.js";
3
- import p from "./notice-action.js";
4
- import { NOTICE_ROLES as y, NOTICE_KINDS as h } from "./notice-constants.js";
5
- import _ from "../../common/mixins/sr-only-close-button.js";
6
- import { resolveComponent as i, openBlock as d, createElementBlock as C, normalizeClass as v, createBlock as B, withCtx as o, renderSlot as n, createCommentVNode as k, createVNode as c } from "vue";
7
- import { _ as I } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
8
- const b = {
3
+ import _ from "./notice-action.js";
4
+ import { NOTICE_ROLES as p, NOTICE_KINDS as h } from "./notice-constants.js";
5
+ import { resolveComponent as i, openBlock as d, createElementBlock as C, normalizeClass as y, createBlock as k, withCtx as n, renderSlot as o, createCommentVNode as I, createVNode as l } from "vue";
6
+ import { _ as N } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const g = {
9
8
  compatConfig: { MODE: 3 },
10
9
  name: "DtNotice",
11
10
  components: {
12
- DtNoticeIcon: f,
11
+ DtNoticeIcon: u,
13
12
  DtNoticeContent: m,
14
- DtNoticeAction: p
13
+ DtNoticeAction: _
15
14
  },
16
- mixins: [_],
17
15
  props: {
18
16
  /**
19
17
  * Sets an ID on the title element of the component. Useful for aria-describedby
@@ -47,8 +45,8 @@ const b = {
47
45
  role: {
48
46
  type: String,
49
47
  default: "status",
50
- validate(e) {
51
- return y.includes(e);
48
+ validate(t) {
49
+ return p.includes(t);
52
50
  }
53
51
  },
54
52
  /**
@@ -67,17 +65,10 @@ const b = {
67
65
  kind: {
68
66
  type: String,
69
67
  default: "base",
70
- validate(e) {
71
- return h.includes(e);
68
+ validate(t) {
69
+ return h.includes(t);
72
70
  }
73
71
  },
74
- /**
75
- * Props for the notice close button.
76
- */
77
- closeButtonProps: {
78
- type: Object,
79
- default: () => ({})
80
- },
81
72
  /**
82
73
  * Hides the close button from the notice
83
74
  * @values true, false
@@ -143,52 +134,49 @@ const b = {
143
134
  }
144
135
  }
145
136
  };
146
- function N(e, l, t, S, g, s) {
147
- const a = i("dt-notice-icon"), r = i("dt-notice-content"), u = i("dt-notice-action");
137
+ function B(t, c, e, S, v, a) {
138
+ const r = i("dt-notice-icon"), s = i("dt-notice-content"), f = i("dt-notice-action");
148
139
  return d(), C("aside", {
149
- class: v(s.noticeClass),
140
+ class: y(a.noticeClass),
150
141
  "data-qa": "notice"
151
142
  }, [
152
- t.hideIcon ? k("", !0) : (d(), B(a, {
143
+ e.hideIcon ? I("", !0) : (d(), k(r, {
153
144
  key: 0,
154
- kind: t.kind
145
+ kind: e.kind
155
146
  }, {
156
- default: o(() => [
157
- n(e.$slots, "icon")
147
+ default: n(() => [
148
+ o(t.$slots, "icon")
158
149
  ]),
159
150
  _: 3
160
151
  }, 8, ["kind"])),
161
- c(r, {
162
- "title-id": t.titleId,
163
- "content-id": t.contentId,
164
- title: t.title,
165
- role: t.role
152
+ l(s, {
153
+ "title-id": e.titleId,
154
+ "content-id": e.contentId,
155
+ title: e.title,
156
+ role: e.role
166
157
  }, {
167
- titleOverride: o(() => [
168
- n(e.$slots, "titleOverride")
158
+ titleOverride: n(() => [
159
+ o(t.$slots, "titleOverride")
169
160
  ]),
170
- default: o(() => [
171
- n(e.$slots, "default")
161
+ default: n(() => [
162
+ o(t.$slots, "default")
172
163
  ]),
173
164
  _: 3
174
165
  }, 8, ["title-id", "content-id", "title", "role"]),
175
- c(u, {
176
- "hide-action": t.hideAction,
177
- "hide-close": t.hideClose,
178
- "close-button-props": t.closeButtonProps,
179
- "visually-hidden-close": e.visuallyHiddenClose,
180
- "visually-hidden-close-label": e.visuallyHiddenCloseLabel,
181
- onClose: l[0] || (l[0] = (O) => e.$emit("close"))
166
+ l(f, {
167
+ "hide-action": e.hideAction,
168
+ "hide-close": e.hideClose,
169
+ onClose: c[0] || (c[0] = (D) => t.$emit("close"))
182
170
  }, {
183
- default: o(() => [
184
- n(e.$slots, "action")
171
+ default: n(() => [
172
+ o(t.$slots, "action")
185
173
  ]),
186
174
  _: 3
187
- }, 8, ["hide-action", "hide-close", "close-button-props", "visually-hidden-close", "visually-hidden-close-label"])
175
+ }, 8, ["hide-action", "hide-close"])
188
176
  ], 2);
189
177
  }
190
- const L = /* @__PURE__ */ I(b, [["render", N]]);
178
+ const K = /* @__PURE__ */ N(g, [["render", B]]);
191
179
  export {
192
- L as default
180
+ K as default
193
181
  };
194
182
  //# sourceMappingURL=notice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notice.js","sources":["../../../components/notice/notice.vue"],"sourcesContent":["<template>\n <aside\n :class=\"noticeClass\"\n data-qa=\"notice\"\n >\n <dt-notice-icon\n v-if=\"!hideIcon\"\n :kind=\"kind\"\n >\n <!-- @slot Slot for custom icon -->\n <slot name=\"icon\" />\n </dt-notice-icon>\n <dt-notice-content\n :title-id=\"titleId\"\n :content-id=\"contentId\"\n :title=\"title\"\n :role=\"role\"\n >\n <template #titleOverride>\n <!-- @slot Allows you to override the title, only use this if you need\n to override with something other than text. Otherwise use the \"title\" prop. -->\n <slot name=\"titleOverride\" />\n </template>\n <!-- @slot the main textual content of the notice -->\n <slot />\n </dt-notice-content>\n <dt-notice-action\n :hide-action=\"hideAction\"\n :hide-close=\"hideClose\"\n :close-button-props=\"closeButtonProps\"\n :visually-hidden-close=\"visuallyHiddenClose\"\n :visually-hidden-close-label=\"visuallyHiddenCloseLabel\"\n @close=\"$emit('close')\"\n >\n <!-- @slot Enter a possible action for the user to take, such as a link to another page -->\n <slot name=\"action\" />\n </dt-notice-action>\n </aside>\n</template>\n\n<script>\nimport DtNoticeIcon from './notice_icon.vue';\nimport DtNoticeContent from './notice_content.vue';\nimport DtNoticeAction from './notice_action.vue';\nimport { NOTICE_KINDS, NOTICE_ROLES } from './notice_constants';\nimport SrOnlyCloseButtonMixin from '@/common/mixins/sr_only_close_button';\n\n/**\n * A notice is an informational and assistive message that appears inline with content.\n * @see https://dialtone.dialpad.com/components/notice.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtNotice',\n\n components: {\n DtNoticeIcon,\n DtNoticeContent,\n DtNoticeAction,\n },\n\n mixins: [SrOnlyCloseButtonMixin],\n\n props: {\n /**\n * Sets an ID on the title element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the title.\n */\n titleId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Sets an ID on the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title header of the notice. This can be left blank to remove the title from the notice entirely.\n */\n title: {\n type: String,\n default: '',\n },\n\n /**\n * Provides a role for the notice. 'status' is used to communicate a message. 'alert' is used to communicate an\n * important message that does not contain any interactive elements. 'alertdialog' is used to communicate an\n * important message that does contain interactive elements.\n * @values alert, alertdialog, status\n */\n role: {\n type: String,\n default: 'status',\n validate (role) {\n return NOTICE_ROLES.includes(role);\n },\n },\n\n /**\n * Used in scenarios where the message needs to visually dominate the screen.\n * This will also change the aria role from status to alert.\n * @values true, false\n */\n important: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Severity level of the notice, sets the icon and background\n * @values base, error, info, success, warning\n */\n kind: {\n type: String,\n default: 'base',\n validate (kind) {\n return NOTICE_KINDS.includes(kind);\n },\n },\n\n /**\n * Props for the notice close button.\n */\n closeButtonProps: {\n type: Object,\n default: () => ({}),\n },\n\n /**\n * Hides the close button from the notice\n * @values true, false\n */\n hideClose: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Hides the icon from the notice\n * @values true, false\n */\n hideIcon: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Hides the action from the notice\n * @values true, false\n */\n hideAction: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Truncates the content instead of wrapping.\n * Used when the notice needs to have a fixed height.\n * @values true, false\n */\n truncateText: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Close button click event\n *\n * @event close\n */\n 'close',\n\n /**\n * Native button click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n ],\n\n computed: {\n noticeClass () {\n const noticeKinds = {\n error: 'd-notice--error',\n info: 'd-notice--info',\n success: 'd-notice--success',\n warning: 'd-notice--warning',\n base: 'd-notice--base',\n };\n return [\n 'd-notice',\n noticeKinds[this.kind],\n { 'd-notice--important': this.important, 'd-notice--truncate': this.truncateText },\n ];\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtNoticeIcon","DtNoticeContent","DtNoticeAction","SrOnlyCloseButtonMixin","role","NOTICE_ROLES","kind","NOTICE_KINDS","_createElementBlock","_normalizeClass","$options","$props","_createCommentVNode","_createBlock","_component_dt_notice_icon","_withCtx","_renderSlot","_ctx","_createVNode","_component_dt_notice_content","_component_dt_notice_action"],"mappings":";;;;;;;AAmDA,MAAKA,IAAU;AAAA,EACb,cAAc,EAAE,MAAM,EAAG;AAAA,EACzB,MAAM;AAAA,EAEN,YAAY;AAAA,IACV,cAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,gBAAAC;AAAA,EACD;AAAA,EAED,QAAQ,CAACC,CAAsB;AAAA,EAE/B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,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AAAA,UACN,SAAS;AAAA,UACT,SAAS;AAAA,UACT,MAAM;AAAA,UAIM,KAAK,IAAI;AAAA,QACrB,EAAE,uBAAuB,KAAK,WAAW,sBAAsB,KAAK,aAAc;AAAA;IAErF;AAAA,EACF;AACH;;;cA5MEE,EAoCQ,SAAA;AAAA,IAnCL,OAFLC,EAEYC,EAAW,WAAA;AAAA,IACnB,WAAQ;AAAA;IAGCC,EAAQ,WANrBC,EAAA,IAAA,EAAA,UAKIC,EAMiBC,GAAA;AAAA,MAXrB,KAAA;AAAA,MAOO,MAAMH,EAAI;AAAA;MAPjB,SAAAI,EAUM,MAAoB;AAAA,QAApBC,EAAoBC,EAAA,QAAA,MAAA;AAAA;MAV1B,GAAA;AAAA;IAYIC,EAaoBC,GAAA;AAAA,MAZjB,YAAUR,EAAO;AAAA,MACjB,cAAYA,EAAS;AAAA,MACrB,OAAOA,EAAK;AAAA,MACZ,MAAMA,EAAI;AAAA;MAEA,iBAGT,MAA6B;AAAA,QAA7BK,EAA6BC,EAAA,QAAA,eAAA;AAAA;MArBrC,SAAAF,EAwBM,MAAQ;AAAA,QAARC,EAAQC,EAAA,QAAA,SAAA;AAAA;MAxBd,GAAA;AAAA;IA0BIC,EAUmBE,GAAA;AAAA,MAThB,eAAaT,EAAU;AAAA,MACvB,cAAYA,EAAS;AAAA,MACrB,sBAAoBA,EAAgB;AAAA,MACpC,yBAAuBM,EAAmB;AAAA,MAC1C,+BAA6BA,EAAwB;AAAA,MACrD,gCAAOA,EAAK,MAAA,OAAA;AAAA;MAhCnB,SAAAF,EAmCM,MAAsB;AAAA,QAAtBC,EAAsBC,EAAA,QAAA,QAAA;AAAA;MAnC5B,GAAA;AAAA;;;;"}
1
+ {"version":3,"file":"notice.js","sources":["../../../components/notice/notice.vue"],"sourcesContent":["<template>\n <aside\n :class=\"noticeClass\"\n data-qa=\"notice\"\n >\n <dt-notice-icon\n v-if=\"!hideIcon\"\n :kind=\"kind\"\n >\n <!-- @slot Slot for custom icon -->\n <slot name=\"icon\" />\n </dt-notice-icon>\n <dt-notice-content\n :title-id=\"titleId\"\n :content-id=\"contentId\"\n :title=\"title\"\n :role=\"role\"\n >\n <template #titleOverride>\n <!-- @slot Allows you to override the title, only use this if you need\n to override with something other than text. Otherwise use the \"title\" prop. -->\n <slot name=\"titleOverride\" />\n </template>\n <!-- @slot the main textual content of the notice -->\n <slot />\n </dt-notice-content>\n <dt-notice-action\n :hide-action=\"hideAction\"\n :hide-close=\"hideClose\"\n @close=\"$emit('close')\"\n >\n <!-- @slot Enter a possible action for the user to take, such as a link to another page -->\n <slot name=\"action\" />\n </dt-notice-action>\n </aside>\n</template>\n\n<script>\nimport DtNoticeIcon from './notice_icon.vue';\nimport DtNoticeContent from './notice_content.vue';\nimport DtNoticeAction from './notice_action.vue';\nimport { NOTICE_KINDS, NOTICE_ROLES } from './notice_constants';\n\n/**\n * A notice is an informational and assistive message that appears inline with content.\n * @see https://dialtone.dialpad.com/components/notice.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtNotice',\n\n components: {\n DtNoticeIcon,\n DtNoticeContent,\n DtNoticeAction,\n },\n\n props: {\n /**\n * Sets an ID on the title element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the title.\n */\n titleId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Sets an ID on the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title header of the notice. This can be left blank to remove the title from the notice entirely.\n */\n title: {\n type: String,\n default: '',\n },\n\n /**\n * Provides a role for the notice. 'status' is used to communicate a message. 'alert' is used to communicate an\n * important message that does not contain any interactive elements. 'alertdialog' is used to communicate an\n * important message that does contain interactive elements.\n * @values alert, alertdialog, status\n */\n role: {\n type: String,\n default: 'status',\n validate (role) {\n return NOTICE_ROLES.includes(role);\n },\n },\n\n /**\n * Used in scenarios where the message needs to visually dominate the screen.\n * This will also change the aria role from status to alert.\n * @values true, false\n */\n important: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Severity level of the notice, sets the icon and background\n * @values base, error, info, success, warning\n */\n kind: {\n type: String,\n default: 'base',\n validate (kind) {\n return NOTICE_KINDS.includes(kind);\n },\n },\n\n /**\n * Hides the close button from the notice\n * @values true, false\n */\n hideClose: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Hides the icon from the notice\n * @values true, false\n */\n hideIcon: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Hides the action from the notice\n * @values true, false\n */\n hideAction: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Truncates the content instead of wrapping.\n * Used when the notice needs to have a fixed height.\n * @values true, false\n */\n truncateText: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Close button click event\n *\n * @event close\n */\n 'close',\n\n /**\n * Native button click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n ],\n\n computed: {\n noticeClass () {\n const noticeKinds = {\n error: 'd-notice--error',\n info: 'd-notice--info',\n success: 'd-notice--success',\n warning: 'd-notice--warning',\n base: 'd-notice--base',\n };\n return [\n 'd-notice',\n noticeKinds[this.kind],\n { 'd-notice--important': this.important, 'd-notice--truncate': this.truncateText },\n ];\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtNoticeIcon","DtNoticeContent","DtNoticeAction","role","NOTICE_ROLES","kind","NOTICE_KINDS","_createElementBlock","_normalizeClass","$options","$props","_createCommentVNode","_createBlock","_component_dt_notice_icon","_withCtx","_renderSlot","_ctx","_createVNode","_component_dt_notice_content","_component_dt_notice_action"],"mappings":";;;;;;AA+CA,MAAKA,IAAU;AAAA,EACb,cAAc,EAAE,MAAM,EAAG;AAAA,EACzB,MAAM;AAAA,EAEN,YAAY;AAAA,IACV,cAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,gBAAAC;AAAA,EACD;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKL,SAAS;AAAA,MAC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S;AAAA,UACT,MAAM;AAAA,UAIM,KAAK,IAAI;AAAA,QACrB,EAAE,uBAAuB,KAAK,WAAW,sBAAsB,KAAK,aAAc;AAAA;IAErF;AAAA,EACF;AACH;;;cA9LEE,EAiCQ,SAAA;AAAA,IAhCL,OAFLC,EAEYC,EAAW,WAAA;AAAA,IACnB,WAAQ;AAAA;IAGCC,EAAQ,WANrBC,EAAA,IAAA,EAAA,UAKIC,EAMiBC,GAAA;AAAA,MAXrB,KAAA;AAAA,MAOO,MAAMH,EAAI;AAAA;MAPjB,SAAAI,EAUM,MAAoB;AAAA,QAApBC,EAAoBC,EAAA,QAAA,MAAA;AAAA;MAV1B,GAAA;AAAA;IAYIC,EAaoBC,GAAA;AAAA,MAZjB,YAAUR,EAAO;AAAA,MACjB,cAAYA,EAAS;AAAA,MACrB,OAAOA,EAAK;AAAA,MACZ,MAAMA,EAAI;AAAA;MAEA,iBAGT,MAA6B;AAAA,QAA7BK,EAA6BC,EAAA,QAAA,eAAA;AAAA;MArBrC,SAAAF,EAwBM,MAAQ;AAAA,QAARC,EAAQC,EAAA,QAAA,SAAA;AAAA;MAxBd,GAAA;AAAA;IA0BIC,EAOmBE,GAAA;AAAA,MANhB,eAAaT,EAAU;AAAA,MACvB,cAAYA,EAAS;AAAA,MACrB,gCAAOM,EAAK,MAAA,OAAA;AAAA;MA7BnB,SAAAF,EAgCM,MAAsB;AAAA,QAAtBC,EAAsBC,EAAA,QAAA,QAAA;AAAA;MAhC5B,GAAA;AAAA;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("@dialpad/dialtone-icons/vue3"),e=require("vue"),p=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),b=require("../button/button.cjs"),m={compatConfig:{MODE:3},name:"DtPagination",components:{DtButton:b.default,DtIconChevronLeft:u.DtIconChevronLeft,DtIconChevronRight:u.DtIconChevronRight,DtIconMoreHorizontal:u.DtIconMoreHorizontal},props:{ariaLabel:{type:String,required:!0},totalPages:{type:Number,required:!0},prevAriaLabel:{type:String,required:!0},nextAriaLabel:{type:String,required:!0},pageNumberAriaLabel:{type:Function,required:!0},activePage:{type:Number,default:1},maxVisible:{type:Number,default:5},hideEdges:{type:Boolean,default:!1}},emits:["change"],data(){return{currentPage:this.activePage}},computed:{isFirstPage(){return this.currentPage===1},isLastPage(){return this.currentPage===this.totalPages},pages(){if(this.maxVisible===0)return[];if(this.totalPages<=this.maxVisible)return this.range(1,this.totalPages);let t=this.maxVisible-1,a=this.totalPages-t+1;if(this.hideEdges&&(t=t+1,a=a-1),this.currentPage<t){const o=[...this.range(1,t),"..."];return this.hideEdges||o.push(this.totalPages),o}if(this.currentPage>a){const o=["...",...this.range(a,this.totalPages)];return this.hideEdges||o.unshift(1),o}const n=this.maxVisible-(3-this.maxVisible%2),l=Math.floor(n/2);let s=this.currentPage-l,i=this.currentPage+l;this.hideEdges&&(s=s-1,i=i+1);const c=["...",...this.range(s,i),"..."];return this.hideEdges?c:[1,...c,this.totalPages]}},watch:{activePage(){this.currentPage=this.activePage}},methods:{range(t,a){const n=[];t=t>0?t:1;for(let l=t;l<=a;l++)n.push(l);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}},_=["aria-label"],P={key:0,class:"d-pagination__separator-icon","data-qa":"dt-pagination-separator"};function v(t,a,n,l,s,i){const c=e.resolveComponent("dt-icon-chevron-left"),o=e.resolveComponent("dt-button"),g=e.resolveComponent("dt-icon-more-horizontal"),d=e.resolveComponent("dt-icon-chevron-right");return e.openBlock(),e.createElementBlock("nav",{"aria-label":n.ariaLabel,class:"d-pagination"},[e.createVNode(o,{class:"d-pagination__button","data-qa":"dt-pagination-prev","aria-label":n.prevAriaLabel,kind:"muted",importance:"clear",disabled:i.isFirstPage,onClick:a[0]||(a[0]=r=>i.changePage(s.currentPage-1))},{icon:e.withCtx(()=>[e.createVNode(c,{size:"300"})]),_:1},8,["aria-label","disabled"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.pages,(r,h)=>(e.openBlock(),e.createElementBlock("div",{key:`page-${r}-${h}`,class:e.normalizeClass({"d-pagination__separator":isNaN(Number(r))})},[isNaN(Number(r))?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(g,{size:"300"})])):(e.openBlock(),e.createBlock(o,{key:1,"aria-label":n.pageNumberAriaLabel(r),kind:s.currentPage===r?"default":"muted",importance:s.currentPage===r?"primary":"clear","label-class":"",onClick:k=>i.changePage(r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r),1)]),_:2},1032,["aria-label","kind","importance","onClick"]))],2))),128)),e.createVNode(o,{class:"d-pagination__button","data-qa":"dt-pagination-next","aria-label":n.nextAriaLabel,disabled:i.isLastPage,kind:"muted",importance:"clear",onClick:a[1]||(a[1]=r=>i.changePage(s.currentPage+1))},{icon:e.withCtx(()=>[e.createVNode(d,{size:"300"})]),_:1},8,["aria-label","disabled"])],8,_)}const f=p._(m,[["render",v]]);exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("@dialpad/dialtone-icons/vue3"),_=require("../../localization/index.cjs"),e=require("vue"),P=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),b=require("../button/button.cjs"),m={compatConfig:{MODE:3},name:"DtPagination",components:{DtButton:b.default,DtIconChevronLeft:u.DtIconChevronLeft,DtIconChevronRight:u.DtIconChevronRight,DtIconMoreHorizontal:u.DtIconMoreHorizontal},props:{ariaLabel:{type:String,required:!0},totalPages:{type:Number,required:!0},activePage:{type:Number,default:1},maxVisible:{type:Number,default:5},hideEdges:{type:Boolean,default:!1}},emits:["change"],data(){return{currentPage:this.activePage,i18n:new _.DialtoneLocalization}},computed:{isFirstPage(){return this.currentPage===1},isLastPage(){return this.currentPage===this.totalPages},pages(){if(this.maxVisible===0)return[];if(this.totalPages<=this.maxVisible)return this.range(1,this.totalPages);let t=this.maxVisible-1,i=this.totalPages-t+1;if(this.hideEdges&&(t=t+1,i=i-1),this.currentPage<t){const r=[...this.range(1,t),"..."];return this.hideEdges||r.push(this.totalPages),r}if(this.currentPage>i){const r=["...",...this.range(i,this.totalPages)];return this.hideEdges||r.unshift(1),r}const l=this.maxVisible-(3-this.maxVisible%2),s=Math.floor(l/2);let o=this.currentPage-s,a=this.currentPage+s;this.hideEdges&&(o=o-1,a=a+1);const c=["...",...this.range(o,a),"..."];return this.hideEdges?c:[1,...c,this.totalPages]},prevAriaLabel(){return this.isFirstPage?this.i18n.$t("DIALTONE_PAGINATION_FIRST_PAGE"):this.i18n.$t("DIALTONE_PAGINATION_PREVIOUS_PAGE")},nextAriaLabel(){return this.isLastPage?this.i18n.$t("DIALTONE_PAGINATION_LAST_PAGE"):this.i18n.$t("DIALTONE_PAGINATION_NEXT_PAGE")},pageNumberAriaLabel(){return t=>t===this.totalPages?`${this.i18n.$t("DIALTONE_PAGINATION_LAST_PAGE")} ${t}`:`${this.i18n.$t("DIALTONE_PAGINATION_PAGE_NUMBER",{page:t})}`}},watch:{activePage(){this.currentPage=this.activePage}},methods:{range(t,i){const l=[];t=t>0?t:1;for(let s=t;s<=i;s++)l.push(s);return l},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}},p=["aria-label"],N={key:0,class:"d-pagination__separator-icon","data-qa":"dt-pagination-separator"};function A(t,i,l,s,o,a){const c=e.resolveComponent("dt-icon-chevron-left"),r=e.resolveComponent("dt-button"),h=e.resolveComponent("dt-icon-more-horizontal"),g=e.resolveComponent("dt-icon-chevron-right");return e.openBlock(),e.createElementBlock("nav",{"aria-label":l.ariaLabel,class:"d-pagination"},[e.createVNode(r,{class:"d-pagination__button","data-qa":"dt-pagination-prev","aria-label":a.prevAriaLabel,kind:"muted",importance:"clear",disabled:a.isFirstPage,onClick:i[0]||(i[0]=n=>a.changePage(o.currentPage-1))},{icon:e.withCtx(()=>[e.createVNode(c,{size:"300"})]),_:1},8,["aria-label","disabled"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pages,(n,d)=>(e.openBlock(),e.createElementBlock("div",{key:`page-${n}-${d}`,class:e.normalizeClass({"d-pagination__separator":isNaN(Number(n))})},[isNaN(Number(n))?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(h,{size:"300"})])):(e.openBlock(),e.createBlock(r,{key:1,"aria-label":a.pageNumberAriaLabel(n),kind:o.currentPage===n?"default":"muted",importance:o.currentPage===n?"primary":"clear","label-class":"",onClick:f=>a.changePage(n)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n),1)]),_:2},1032,["aria-label","kind","importance","onClick"]))],2))),128)),e.createVNode(r,{class:"d-pagination__button","data-qa":"dt-pagination-next","aria-label":a.nextAriaLabel,disabled:a.isLastPage,kind:"muted",importance:"clear",onClick:i[1]||(i[1]=n=>a.changePage(o.currentPage+1))},{icon:e.withCtx(()=>[e.createVNode(g,{size:"300"})]),_:1},8,["aria-label","disabled"])],8,p)}const v=P._(m,[["render",A]]);exports.default=v;
2
2
  //# sourceMappingURL=pagination.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.cjs","sources":["../../../components/pagination/pagination.vue"],"sourcesContent":["<template>\n <nav\n :aria-label=\"ariaLabel\"\n class=\"d-pagination\"\n >\n <dt-button\n class=\"d-pagination__button\"\n data-qa=\"dt-pagination-prev\"\n :aria-label=\"prevAriaLabel\"\n kind=\"muted\"\n importance=\"clear\"\n :disabled=\"isFirstPage\"\n @click=\"changePage(currentPage - 1)\"\n >\n <template #icon>\n <dt-icon-chevron-left\n size=\"300\"\n />\n </template>\n </dt-button>\n <div\n v-for=\"(page, index) in pages\"\n :key=\"`page-${page}-${index}`\"\n :class=\"{ 'd-pagination__separator': isNaN(Number(page)) }\"\n >\n <!-- eslint-disable vue/no-bare-strings-in-template -->\n <div\n v-if=\"isNaN(Number(page))\"\n class=\"d-pagination__separator-icon\"\n data-qa=\"dt-pagination-separator\"\n >\n <dt-icon-more-horizontal\n size=\"300\"\n />\n <!-- … -->\n </div>\n <!-- eslint-enable vue/no-bare-strings-in-template -->\n <dt-button\n v-else\n :aria-label=\"pageNumberAriaLabel(page)\"\n :kind=\"currentPage === page ? 'default' : 'muted'\"\n :importance=\"currentPage === page ? 'primary' : 'clear'\"\n label-class=\"\"\n @click=\"changePage(page)\"\n >\n {{ page }}\n </dt-button>\n </div>\n <dt-button\n class=\"d-pagination__button\"\n data-qa=\"dt-pagination-next\"\n :aria-label=\"nextAriaLabel\"\n :disabled=\"isLastPage\"\n kind=\"muted\"\n importance=\"clear\"\n @click=\"changePage(currentPage + 1)\"\n >\n <template #icon>\n <dt-icon-chevron-right\n size=\"300\"\n />\n </template>\n </dt-button>\n </nav>\n</template>\n\n<script>\nimport { DtButton } from '@/components/button';\nimport { DtIconChevronLeft, DtIconChevronRight, DtIconMoreHorizontal } from '@dialpad/dialtone-icons/vue3';\n\n/**\n * Pagination allows you to divide large amounts of content into smaller chunks across multiple pages.\n * @see https://dialtone.dialpad.com/components/pagination.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtPagination',\n\n components: {\n DtButton,\n DtIconChevronLeft,\n DtIconChevronRight,\n DtIconMoreHorizontal,\n },\n\n props: {\n /**\n * Descriptive label for the pagination content.\n */\n ariaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * The total number of the pages\n */\n totalPages: {\n type: Number,\n required: true,\n },\n\n /**\n * Descriptive label for the previous button.\n */\n prevAriaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * Descriptive label for the next button.\n */\n nextAriaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * A method that will be called to get the aria label of each page.\n */\n pageNumberAriaLabel: {\n type: Function,\n required: true,\n },\n\n /**\n * The active current page in the list of pages, defaults to the first page\n */\n activePage: {\n type: Number,\n default: 1,\n },\n\n /**\n * Determines the max pages to be shown in the list. Using an odd number is recommended.\n * If an even number is given, then it will be rounded down to the nearest odd number to always\n * keep current page in the middle when current page is in the mid-range.\n */\n maxVisible: {\n type: Number,\n default: 5,\n },\n\n /**\n * Sometimes you may need to hide start and end page number buttons when moving in between.\n * This prop will be used to hide the first and last page buttons when not near the edges.\n * This is useful when your backend does not support offset and you can only use cursor based pagination.\n */\n hideEdges: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Page change event\n *\n * @event change\n * @type {Number}\n */\n 'change',\n ],\n\n data () {\n return {\n currentPage: this.activePage,\n };\n },\n\n computed: {\n isFirstPage () {\n return this.currentPage === 1;\n },\n\n isLastPage () {\n return this.currentPage === this.totalPages;\n },\n\n pages () {\n if (this.maxVisible === 0) {\n return [];\n }\n if (this.totalPages <= this.maxVisible) {\n return this.range(1, this.totalPages);\n }\n\n let start = this.maxVisible - 1;\n let end = this.totalPages - start + 1;\n\n // if hideEdges is true, modify the start and\n // end to account for the hidden pages\n if (this.hideEdges) {\n start = start + 1;\n end = end - 1;\n }\n\n if (this.currentPage < start) {\n const pages = [...this.range(1, start), '...'];\n if (!this.hideEdges) {\n // add last page to the end\n pages.push(this.totalPages);\n }\n return pages;\n }\n\n if (this.currentPage > end) {\n const pages = ['...', ...this.range(end, this.totalPages)];\n if (!this.hideEdges) {\n // add first page to the beginning\n pages.unshift(1);\n }\n return pages;\n }\n\n // rounding to the nearest odd according to the maxlength to always show the page number in the middle.\n const total = this.maxVisible - (3 - this.maxVisible % 2);\n const centerIndex = Math.floor(total / 2);\n let left = this.currentPage - centerIndex;\n let right = this.currentPage + centerIndex;\n\n // if hideEdge is true, modify the left and right to account for the hidden pages\n if (this.hideEdges) {\n left = left - 1;\n right = right + 1;\n }\n\n const pages = ['...', ...this.range(left, right), '...'];\n if (!this.hideEdges) {\n return [1, ...pages, this.totalPages];\n }\n return pages;\n },\n },\n\n watch: {\n activePage () {\n this.currentPage = this.activePage;\n },\n },\n\n methods: {\n range (from, to) {\n const range = [];\n from = from > 0 ? from : 1;\n for (let i = from; i <= to; i++) {\n range.push(i);\n }\n return range;\n },\n\n changePage (page) {\n this.currentPage = page;\n this.$emit('change', this.currentPage);\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtButton","DtIconChevronLeft","DtIconChevronRight","DtIconMoreHorizontal","start","end","pages","total","centerIndex","left","right","from","to","range","i","page","_hoisted_1","_createElementBlock","$props","_createVNode","_component_dt_button","$options","_cache","$event","$data","_component_dt_icon_chevron_left","_openBlock","_Fragment","_renderList","index","_normalizeClass","_hoisted_2","_component_dt_icon_more_horizontal","_createBlock","_withCtx","_createTextVNode","_toDisplayString","_component_dt_icon_chevron_right"],"mappings":"yQA0EKA,EAAU,CACb,aAAc,CAAE,KAAM,CAAG,EACzB,KAAM,eAEN,WAAY,CACV,SAAAC,EAAQ,QACR,kBAAAC,EAAiB,kBACjB,mBAAAC,EAAkB,mBAClB,qBAAAC,EAAoB,oBACrB,EAED,MAAO,CAIL,UAAW,CACT,KAAM,OACN,SAAU,EACX,EAKD,WAAY,CACV,KAAM,OACN,SAAU,EACX,EAKD,cAAe,CACb,KAAM,OACN,SAAU,EACX,EAKD,cAAe,CACb,KAAM,OACN,SAAU,EACX,EAKD,oBAAqB,CACnB,KAAM,SACN,SAAU,EACX,EAKD,WAAY,CACV,KAAM,OACN,QAAS,CACV,EAOD,WAAY,CACV,KAAM,OACN,QAAS,CACV,EAOD,UAAW,CACT,KAAM,QACN,QAAS,EACV,CACF,EAED,MAAO,CAOL,QACD,EAED,MAAQ,CACN,MAAO,CACL,YAAa,KAAK,WAErB,EAED,SAAU,CACR,aAAe,CACb,OAAO,KAAK,cAAgB,CAC7B,EAED,YAAc,CACZ,OAAO,KAAK,cAAgB,KAAK,UAClC,EAED,OAAS,CACP,GAAI,KAAK,aAAe,EACtB,MAAO,GAET,GAAI,KAAK,YAAc,KAAK,WAC1B,OAAO,KAAK,MAAM,EAAG,KAAK,UAAU,EAGtC,IAAIC,EAAQ,KAAK,WAAa,EAC1BC,EAAM,KAAK,WAAaD,EAAQ,EASpC,GALI,KAAK,YACPA,EAAQA,EAAQ,EAChBC,E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"file":"pagination.cjs","sources":["../../../components/pagination/pagination.vue"],"sourcesContent":["<template>\n <nav\n :aria-label=\"ariaLabel\"\n class=\"d-pagination\"\n >\n <dt-button\n class=\"d-pagination__button\"\n data-qa=\"dt-pagination-prev\"\n :aria-label=\"prevAriaLabel\"\n kind=\"muted\"\n importance=\"clear\"\n :disabled=\"isFirstPage\"\n @click=\"changePage(currentPage - 1)\"\n >\n <template #icon>\n <dt-icon-chevron-left\n size=\"300\"\n />\n </template>\n </dt-button>\n <div\n v-for=\"(page, index) in pages\"\n :key=\"`page-${page}-${index}`\"\n :class=\"{ 'd-pagination__separator': isNaN(Number(page)) }\"\n >\n <!-- eslint-disable vue/no-bare-strings-in-template -->\n <div\n v-if=\"isNaN(Number(page))\"\n class=\"d-pagination__separator-icon\"\n data-qa=\"dt-pagination-separator\"\n >\n <dt-icon-more-horizontal\n size=\"300\"\n />\n <!-- … -->\n </div>\n <dt-button\n v-else\n :aria-label=\"pageNumberAriaLabel(page)\"\n :kind=\"currentPage === page ? 'default' : 'muted'\"\n :importance=\"currentPage === page ? 'primary' : 'clear'\"\n label-class=\"\"\n @click=\"changePage(page)\"\n >\n {{ page }}\n </dt-button>\n </div>\n <dt-button\n class=\"d-pagination__button\"\n data-qa=\"dt-pagination-next\"\n :aria-label=\"nextAriaLabel\"\n :disabled=\"isLastPage\"\n kind=\"muted\"\n importance=\"clear\"\n @click=\"changePage(currentPage + 1)\"\n >\n <template #icon>\n <dt-icon-chevron-right\n size=\"300\"\n />\n </template>\n </dt-button>\n </nav>\n</template>\n\n<script>\nimport { DtButton } from '@/components/button';\nimport { DtIconChevronLeft, DtIconChevronRight, DtIconMoreHorizontal } from '@dialpad/dialtone-icons/vue3';\nimport { DialtoneLocalization } from '@/localization';\n\n/**\n * Pagination allows you to divide large amounts of content into smaller chunks across multiple pages.\n * @see https://dialtone.dialpad.com/components/pagination.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtPagination',\n\n components: {\n DtButton,\n DtIconChevronLeft,\n DtIconChevronRight,\n DtIconMoreHorizontal,\n },\n\n props: {\n /**\n * Descriptive label for the pagination content.\n */\n ariaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * The total number of the pages\n */\n totalPages: {\n type: Number,\n required: true,\n },\n\n /**\n * The active current page in the list of pages, defaults to the first page\n */\n activePage: {\n type: Number,\n default: 1,\n },\n\n /**\n * Determines the max pages to be shown in the list. Using an odd number is recommended.\n * If an even number is given, then it will be rounded down to the nearest odd number to always\n * keep current page in the middle when current page is in the mid-range.\n */\n maxVisible: {\n type: Number,\n default: 5,\n },\n\n /**\n * Sometimes you may need to hide start and end page number buttons when moving in between.\n * This prop will be used to hide the first and last page buttons when not near the edges.\n * This is useful when your backend does not support offset and you can only use cursor based pagination.\n */\n hideEdges: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Page change event\n *\n * @event change\n * @type {Number}\n */\n 'change',\n ],\n\n data () {\n return {\n currentPage: this.activePage,\n i18n: new DialtoneLocalization(),\n };\n },\n\n computed: {\n isFirstPage () {\n return this.currentPage === 1;\n },\n\n isLastPage () {\n return this.currentPage === this.totalPages;\n },\n\n // eslint-disable-next-line complexity\n pages () {\n if (this.maxVisible === 0) {\n return [];\n }\n if (this.totalPages <= this.maxVisible) {\n return this.range(1, this.totalPages);\n }\n\n let start = this.maxVisible - 1;\n let end = this.totalPages - start + 1;\n\n // if hideEdges is true, modify the start and\n // end to account for the hidden pages\n if (this.hideEdges) {\n start = start + 1;\n end = end - 1;\n }\n\n if (this.currentPage < start) {\n const pages = [...this.range(1, start), '...'];\n if (!this.hideEdges) {\n // add last page to the end\n pages.push(this.totalPages);\n }\n return pages;\n }\n\n if (this.currentPage > end) {\n const pages = ['...', ...this.range(end, this.totalPages)];\n if (!this.hideEdges) {\n // add first page to the beginning\n pages.unshift(1);\n }\n return pages;\n }\n\n // rounding to the nearest odd according to the maxlength to always show the page number in the middle.\n const total = this.maxVisible - (3 - this.maxVisible % 2);\n const centerIndex = Math.floor(total / 2);\n let left = this.currentPage - centerIndex;\n let right = this.currentPage + centerIndex;\n\n // if hideEdge is true, modify the left and right to account for the hidden pages\n if (this.hideEdges) {\n left = left - 1;\n right = right + 1;\n }\n\n const pages = ['...', ...this.range(left, right), '...'];\n if (!this.hideEdges) {\n return [1, ...pages, this.totalPages];\n }\n return pages;\n },\n\n prevAriaLabel () {\n return this.isFirstPage ? this.i18n.$t('DIALTONE_PAGINATION_FIRST_PAGE') : this.i18n.$t('DIALTONE_PAGINATION_PREVIOUS_PAGE');\n },\n\n nextAriaLabel () {\n return this.isLastPage ? this.i18n.$t('DIALTONE_PAGINATION_LAST_PAGE') : this.i18n.$t('DIALTONE_PAGINATION_NEXT_PAGE');\n },\n\n pageNumberAriaLabel () {\n return (page) => {\n return page === this.totalPages ? `${this.i18n.$t('DIALTONE_PAGINATION_LAST_PAGE')} ${page}` : `${this.i18n.$t('DIALTONE_PAGINATION_PAGE_NUMBER', { page })}`;\n };\n },\n },\n\n watch: {\n activePage () {\n this.currentPage = this.activePage;\n },\n },\n\n methods: {\n range (from, to) {\n const range = [];\n from = from > 0 ? from : 1;\n for (let i = from; i <= to; i++) {\n range.push(i);\n }\n return range;\n },\n\n changePage (page) {\n this.currentPage = page;\n this.$emit('change', this.currentPage);\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtButton","DtIconChevronLeft","DtIconChevronRight","DtIconMoreHorizontal","DialtoneLocalization","start","end","pages","total","centerIndex","left","right","page","from","to","range","i","_hoisted_1","_createElementBlock","$props","_createVNode","_component_dt_button","$options","_cache","$event","$data","_component_dt_icon_chevron_left","_openBlock","_Fragment","_renderList","index","_normalizeClass","_hoisted_2","_component_dt_icon_more_horizontal","_createBlock","_withCtx","_createTextVNode","_toDisplayString","_component_dt_icon_chevron_right"],"mappings":"mTA0EKA,EAAU,CACb,aAAc,CAAE,KAAM,CAAG,EACzB,KAAM,eAEN,WAAY,CACV,SAAAC,EAAQ,QACR,kBAAAC,EAAiB,kBACjB,mBA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K,KAAK,CAAA,IAhBpB,EAAA,iCAoBIC,EAAAA,UAAA,EAAA,EAAAT,EAAA,mBA0BMU,gBA9CVC,EAqB8B,WAAAP,EAAA,MArB9B,CAqBcV,EAAMkB,mBADhBZ,EA0BM,mBAAA,MAAA,CAxBH,IAAG,QAAUN,CAAI,IAAIkB,CAAK,GAC1B,MAvBPC,EAuB2C,eAAA,CAAA,0BAAA,MAAM,OAAOnB,CAAI,CAAA,EAAA,IAI9C,MAAM,OAAOA,CAAI,CAAA,GADzBe,EAAAA,YAAAT,EAAAA,mBASM,MATNc,EASM,CAJJZ,EAAAA,YAEEa,EAAA,CADA,KAAK,KAAK,CAAA,oBAIdC,EASY,YAAAb,EAAA,CA7ClB,IAAA,EAsCS,aAAYC,EAAmB,oBAACV,CAAI,EACpC,KAAMa,EAAW,cAAKb,EAAI,UAAA,QAC1B,WAAYa,EAAW,cAAKb,EAAI,UAAA,QACjC,cAAY,GACX,QAAKY,GAAEF,EAAU,WAACV,CAAI,IA1C/B,QAAAuB,EAAA,QA4CQ,IAAU,CA5ClBC,EAAAA,gBAAAC,EAAA,gBA4CWzB,CAAI,EAAA,CAAA,IA5Cf,EAAA,mEA+CIQ,EAAAA,YAcYC,EAAA,CAbV,MAAM,uBACN,UAAQ,qBACP,aAAYC,EAAa,cACzB,SAAUA,EAAU,WACrB,KAAK,QACL,WAAW,QACV,QAAKC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEF,EAAU,WAACG,EAAW,YAAA,CAAA,KAEnB,eACT,IAEE,CAFFL,EAAAA,YAEEkB,EAAA,CADA,KAAK,KAAK,CAAA,IA1DpB,EAAA,+BAAA,EAAA,EAAArB,CAAA"}
@@ -1,15 +1,16 @@
1
- import { DtIconChevronLeft as _, DtIconChevronRight as P, DtIconMoreHorizontal as f } from "@dialpad/dialtone-icons/vue3";
2
- import { resolveComponent as d, openBlock as l, createElementBlock as u, createVNode as c, withCtx as h, Fragment as v, renderList as x, normalizeClass as k, createBlock as y, createTextVNode as N, toDisplayString as L } from "vue";
3
- import { _ as C } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
4
- import q from "../button/button.js";
5
- const E = {
1
+ import { DtIconChevronLeft as b, DtIconChevronRight as p, DtIconMoreHorizontal as N } from "@dialpad/dialtone-icons/vue3";
2
+ import { DialtoneLocalization as A } from "../../localization/index.js";
3
+ import { resolveComponent as h, openBlock as l, createElementBlock as d, createVNode as c, withCtx as u, Fragment as f, renderList as I, normalizeClass as E, createBlock as L, createTextVNode as v, toDisplayString as T } from "vue";
4
+ import { _ as x } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import k from "../button/button.js";
6
+ const D = {
6
7
  compatConfig: { MODE: 3 },
7
8
  name: "DtPagination",
8
9
  components: {
9
- DtButton: q,
10
- DtIconChevronLeft: _,
11
- DtIconChevronRight: P,
12
- DtIconMoreHorizontal: f
10
+ DtButton: k,
11
+ DtIconChevronLeft: b,
12
+ DtIconChevronRight: p,
13
+ DtIconMoreHorizontal: N
13
14
  },
14
15
  props: {
15
16
  /**
@@ -26,27 +27,6 @@ const E = {
26
27
  type: Number,
27
28
  required: !0
28
29
  },
29
- /**
30
- * Descriptive label for the previous button.
31
- */
32
- prevAriaLabel: {
33
- type: String,
34
- required: !0
35
- },
36
- /**
37
- * Descriptive label for the next button.
38
- */
39
- nextAriaLabel: {
40
- type: String,
41
- required: !0
42
- },
43
- /**
44
- * A method that will be called to get the aria label of each page.
45
- */
46
- pageNumberAriaLabel: {
47
- type: Function,
48
- required: !0
49
- },
50
30
  /**
51
31
  * The active current page in the list of pages, defaults to the first page
52
32
  */
@@ -84,7 +64,8 @@ const E = {
84
64
  ],
85
65
  data() {
86
66
  return {
87
- currentPage: this.activePage
67
+ currentPage: this.activePage,
68
+ i18n: new A()
88
69
  };
89
70
  },
90
71
  computed: {
@@ -94,25 +75,35 @@ const E = {
94
75
  isLastPage() {
95
76
  return this.currentPage === this.totalPages;
96
77
  },
78
+ // eslint-disable-next-line complexity
97
79
  pages() {
98
80
  if (this.maxVisible === 0)
99
81
  return [];
100
82
  if (this.totalPages <= this.maxVisible)
101
83
  return this.range(1, this.totalPages);
102
- let e = this.maxVisible - 1, t = this.totalPages - e + 1;
103
- if (this.hideEdges && (e = e + 1, t = t - 1), this.currentPage < e) {
104
- const n = [...this.range(1, e), "..."];
105
- return this.hideEdges || n.push(this.totalPages), n;
84
+ let t = this.maxVisible - 1, a = this.totalPages - t + 1;
85
+ if (this.hideEdges && (t = t + 1, a = a - 1), this.currentPage < t) {
86
+ const r = [...this.range(1, t), "..."];
87
+ return this.hideEdges || r.push(this.totalPages), r;
106
88
  }
107
- if (this.currentPage > t) {
108
- const n = ["...", ...this.range(t, this.totalPages)];
109
- return this.hideEdges || n.unshift(1), n;
89
+ if (this.currentPage > a) {
90
+ const r = ["...", ...this.range(a, this.totalPages)];
91
+ return this.hideEdges || r.unshift(1), r;
110
92
  }
111
- const r = this.maxVisible - (3 - this.maxVisible % 2), o = Math.floor(r / 2);
112
- let s = this.currentPage - o, a = this.currentPage + o;
113
- this.hideEdges && (s = s - 1, a = a + 1);
114
- const g = ["...", ...this.range(s, a), "..."];
93
+ const o = this.maxVisible - (3 - this.maxVisible % 2), s = Math.floor(o / 2);
94
+ let n = this.currentPage - s, e = this.currentPage + s;
95
+ this.hideEdges && (n = n - 1, e = e + 1);
96
+ const g = ["...", ...this.range(n, e), "..."];
115
97
  return this.hideEdges ? g : [1, ...g, this.totalPages];
98
+ },
99
+ prevAriaLabel() {
100
+ return this.isFirstPage ? this.i18n.$t("DIALTONE_PAGINATION_FIRST_PAGE") : this.i18n.$t("DIALTONE_PAGINATION_PREVIOUS_PAGE");
101
+ },
102
+ nextAriaLabel() {
103
+ return this.isLastPage ? this.i18n.$t("DIALTONE_PAGINATION_LAST_PAGE") : this.i18n.$t("DIALTONE_PAGINATION_NEXT_PAGE");
104
+ },
105
+ pageNumberAriaLabel() {
106
+ return (t) => t === this.totalPages ? `${this.i18n.$t("DIALTONE_PAGINATION_LAST_PAGE")} ${t}` : `${this.i18n.$t("DIALTONE_PAGINATION_PAGE_NUMBER", { page: t })}`;
116
107
  }
117
108
  },
118
109
  watch: {
@@ -121,80 +112,80 @@ const E = {
121
112
  }
122
113
  },
123
114
  methods: {
124
- range(e, t) {
125
- const r = [];
126
- e = e > 0 ? e : 1;
127
- for (let o = e; o <= t; o++)
128
- r.push(o);
129
- return r;
115
+ range(t, a) {
116
+ const o = [];
117
+ t = t > 0 ? t : 1;
118
+ for (let s = t; s <= a; s++)
119
+ o.push(s);
120
+ return o;
130
121
  },
131
- changePage(e) {
132
- this.currentPage = e, this.$emit("change", this.currentPage);
122
+ changePage(t) {
123
+ this.currentPage = t, this.$emit("change", this.currentPage);
133
124
  }
134
125
  }
135
- }, V = ["aria-label"], z = {
126
+ }, O = ["aria-label"], G = {
136
127
  key: 0,
137
128
  class: "d-pagination__separator-icon",
138
129
  "data-qa": "dt-pagination-separator"
139
130
  };
140
- function D(e, t, r, o, s, a) {
141
- const g = d("dt-icon-chevron-left"), n = d("dt-button"), m = d("dt-icon-more-horizontal"), p = d("dt-icon-chevron-right");
142
- return l(), u("nav", {
143
- "aria-label": r.ariaLabel,
131
+ function y(t, a, o, s, n, e) {
132
+ const g = h("dt-icon-chevron-left"), r = h("dt-button"), _ = h("dt-icon-more-horizontal"), P = h("dt-icon-chevron-right");
133
+ return l(), d("nav", {
134
+ "aria-label": o.ariaLabel,
144
135
  class: "d-pagination"
145
136
  }, [
146
- c(n, {
137
+ c(r, {
147
138
  class: "d-pagination__button",
148
139
  "data-qa": "dt-pagination-prev",
149
- "aria-label": r.prevAriaLabel,
140
+ "aria-label": e.prevAriaLabel,
150
141
  kind: "muted",
151
142
  importance: "clear",
152
- disabled: a.isFirstPage,
153
- onClick: t[0] || (t[0] = (i) => a.changePage(s.currentPage - 1))
143
+ disabled: e.isFirstPage,
144
+ onClick: a[0] || (a[0] = (i) => e.changePage(n.currentPage - 1))
154
145
  }, {
155
- icon: h(() => [
146
+ icon: u(() => [
156
147
  c(g, { size: "300" })
157
148
  ]),
158
149
  _: 1
159
150
  }, 8, ["aria-label", "disabled"]),
160
- (l(!0), u(v, null, x(a.pages, (i, b) => (l(), u("div", {
161
- key: `page-${i}-${b}`,
162
- class: k({ "d-pagination__separator": isNaN(Number(i)) })
151
+ (l(!0), d(f, null, I(e.pages, (i, m) => (l(), d("div", {
152
+ key: `page-${i}-${m}`,
153
+ class: E({ "d-pagination__separator": isNaN(Number(i)) })
163
154
  }, [
164
- isNaN(Number(i)) ? (l(), u("div", z, [
165
- c(m, { size: "300" })
166
- ])) : (l(), y(n, {
155
+ isNaN(Number(i)) ? (l(), d("div", G, [
156
+ c(_, { size: "300" })
157
+ ])) : (l(), L(r, {
167
158
  key: 1,
168
- "aria-label": r.pageNumberAriaLabel(i),
169
- kind: s.currentPage === i ? "default" : "muted",
170
- importance: s.currentPage === i ? "primary" : "clear",
159
+ "aria-label": e.pageNumberAriaLabel(i),
160
+ kind: n.currentPage === i ? "default" : "muted",
161
+ importance: n.currentPage === i ? "primary" : "clear",
171
162
  "label-class": "",
172
- onClick: (A) => a.changePage(i)
163
+ onClick: (C) => e.changePage(i)
173
164
  }, {
174
- default: h(() => [
175
- N(L(i), 1)
165
+ default: u(() => [
166
+ v(T(i), 1)
176
167
  ]),
177
168
  _: 2
178
169
  }, 1032, ["aria-label", "kind", "importance", "onClick"]))
179
170
  ], 2))), 128)),
180
- c(n, {
171
+ c(r, {
181
172
  class: "d-pagination__button",
182
173
  "data-qa": "dt-pagination-next",
183
- "aria-label": r.nextAriaLabel,
184
- disabled: a.isLastPage,
174
+ "aria-label": e.nextAriaLabel,
175
+ disabled: e.isLastPage,
185
176
  kind: "muted",
186
177
  importance: "clear",
187
- onClick: t[1] || (t[1] = (i) => a.changePage(s.currentPage + 1))
178
+ onClick: a[1] || (a[1] = (i) => e.changePage(n.currentPage + 1))
188
179
  }, {
189
- icon: h(() => [
190
- c(p, { size: "300" })
180
+ icon: u(() => [
181
+ c(P, { size: "300" })
191
182
  ]),
192
183
  _: 1
193
184
  }, 8, ["aria-label", "disabled"])
194
- ], 8, V);
185
+ ], 8, O);
195
186
  }
196
- const M = /* @__PURE__ */ C(E, [["render", D]]);
187
+ const F = /* @__PURE__ */ x(D, [["render", y]]);
197
188
  export {
198
- M as default
189
+ F as default
199
190
  };
200
191
  //# sourceMappingURL=pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.js","sources":["../../../components/pagination/pagination.vue"],"sourcesContent":["<template>\n <nav\n :aria-label=\"ariaLabel\"\n class=\"d-pagination\"\n >\n <dt-button\n class=\"d-pagination__button\"\n data-qa=\"dt-pagination-prev\"\n :aria-label=\"prevAriaLabel\"\n kind=\"muted\"\n importance=\"clear\"\n :disabled=\"isFirstPage\"\n @click=\"changePage(currentPage - 1)\"\n >\n <template #icon>\n <dt-icon-chevron-left\n size=\"300\"\n />\n </template>\n </dt-button>\n <div\n v-for=\"(page, index) in pages\"\n :key=\"`page-${page}-${index}`\"\n :class=\"{ 'd-pagination__separator': isNaN(Number(page)) }\"\n >\n <!-- eslint-disable vue/no-bare-strings-in-template -->\n <div\n v-if=\"isNaN(Number(page))\"\n class=\"d-pagination__separator-icon\"\n data-qa=\"dt-pagination-separator\"\n >\n <dt-icon-more-horizontal\n size=\"300\"\n />\n <!-- … -->\n </div>\n <!-- eslint-enable vue/no-bare-strings-in-template -->\n <dt-button\n v-else\n :aria-label=\"pageNumberAriaLabel(page)\"\n :kind=\"currentPage === page ? 'default' : 'muted'\"\n :importance=\"currentPage === page ? 'primary' : 'clear'\"\n label-class=\"\"\n @click=\"changePage(page)\"\n >\n {{ page }}\n </dt-button>\n </div>\n <dt-button\n class=\"d-pagination__button\"\n data-qa=\"dt-pagination-next\"\n :aria-label=\"nextAriaLabel\"\n :disabled=\"isLastPage\"\n kind=\"muted\"\n importance=\"clear\"\n @click=\"changePage(currentPage + 1)\"\n >\n <template #icon>\n <dt-icon-chevron-right\n size=\"300\"\n />\n </template>\n </dt-button>\n </nav>\n</template>\n\n<script>\nimport { DtButton } from '@/components/button';\nimport { DtIconChevronLeft, DtIconChevronRight, DtIconMoreHorizontal } from '@dialpad/dialtone-icons/vue3';\n\n/**\n * Pagination allows you to divide large amounts of content into smaller chunks across multiple pages.\n * @see https://dialtone.dialpad.com/components/pagination.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtPagination',\n\n components: {\n DtButton,\n DtIconChevronLeft,\n DtIconChevronRight,\n DtIconMoreHorizontal,\n },\n\n props: {\n /**\n * Descriptive label for the pagination content.\n */\n ariaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * The total number of the pages\n */\n totalPages: {\n type: Number,\n required: true,\n },\n\n /**\n * Descriptive label for the previous button.\n */\n prevAriaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * Descriptive label for the next button.\n */\n nextAriaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * A method that will be called to get the aria label of each page.\n */\n pageNumberAriaLabel: {\n type: Function,\n required: true,\n },\n\n /**\n * The active current page in the list of pages, defaults to the first page\n */\n activePage: {\n type: Number,\n default: 1,\n },\n\n /**\n * Determines the max pages to be shown in the list. Using an odd number is recommended.\n * If an even number is given, then it will be rounded down to the nearest odd number to always\n * keep current page in the middle when current page is in the mid-range.\n */\n maxVisible: {\n type: Number,\n default: 5,\n },\n\n /**\n * Sometimes you may need to hide start and end page number buttons when moving in between.\n * This prop will be used to hide the first and last page buttons when not near the edges.\n * This is useful when your backend does not support offset and you can only use cursor based pagination.\n */\n hideEdges: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Page change event\n *\n * @event change\n * @type {Number}\n */\n 'change',\n ],\n\n data () {\n return {\n currentPage: this.activePage,\n };\n },\n\n computed: {\n isFirstPage () {\n return this.currentPage === 1;\n },\n\n isLastPage () {\n return this.currentPage === this.totalPages;\n },\n\n pages () {\n if (this.maxVisible === 0) {\n return [];\n }\n if (this.totalPages <= this.maxVisible) {\n return this.range(1, this.totalPages);\n }\n\n let start = this.maxVisible - 1;\n let end = this.totalPages - start + 1;\n\n // if hideEdges is true, modify the start and\n // end to account for the hidden pages\n if (this.hideEdges) {\n start = start + 1;\n end = end - 1;\n }\n\n if (this.currentPage < start) {\n const pages = [...this.range(1, start), '...'];\n if (!this.hideEdges) {\n // add last page to the end\n pages.push(this.totalPages);\n }\n return pages;\n }\n\n if (this.currentPage > end) {\n const pages = ['...', ...this.range(end, this.totalPages)];\n if (!this.hideEdges) {\n // add first page to the beginning\n pages.unshift(1);\n }\n return pages;\n }\n\n // rounding to the nearest odd according to the maxlength to always show the page number in the middle.\n const total = this.maxVisible - (3 - this.maxVisible % 2);\n const centerIndex = Math.floor(total / 2);\n let left = this.currentPage - centerIndex;\n let right = this.currentPage + centerIndex;\n\n // if hideEdge is true, modify the left and right to account for the hidden pages\n if (this.hideEdges) {\n left = left - 1;\n right = right + 1;\n }\n\n const pages = ['...', ...this.range(left, right), '...'];\n if (!this.hideEdges) {\n return [1, ...pages, this.totalPages];\n }\n return pages;\n },\n },\n\n watch: {\n activePage () {\n this.currentPage = this.activePage;\n },\n },\n\n methods: {\n range (from, to) {\n const range = [];\n from = from > 0 ? from : 1;\n for (let i = from; i <= to; i++) {\n range.push(i);\n }\n return range;\n },\n\n changePage (page) {\n this.currentPage = page;\n this.$emit('change', this.currentPage);\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtButton","DtIconChevronLeft","DtIconChevronRight","DtIconMoreHorizontal","start","end","pages","total","centerIndex","left","right","from","to","range","i","page","_hoisted_1","_createElementBlock","$props","_createVNode","_component_dt_button","$options","_cache","$event","$data","_component_dt_icon_chevron_left","_openBlock","_Fragment","_renderList","index","_normalizeClass","_hoisted_2","_component_dt_icon_more_horizontal","_createBlock","_withCtx","_createTextVNode","_toDisplayString","_component_dt_icon_chevron_right"],"mappings":";;;;AA0EA,MAAKA,IAAU;AAAA,EACb,cAAc,EAAE,MAAM,EAAG;AAAA,EACzB,MAAM;AAAA,EAEN,YAAY;AAAA,I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Aa;AAAA,MACzB,UAAUG,EAAU;AAAA,MACrB,MAAK;AAAA,MACL,YAAW;AAAA,MACV,SAAKC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEF,EAAU,WAACG,EAAW,cAAA,CAAA;AAAA;MAEnB,QACT,MAEE;AAAA,QAFFL,EAEEkB,GAAA,EADA,MAAK,MAAK,CAAA;AAAA;MA3DpB,GAAA;AAAA;EAAA,GAAA,GAAArB,CAAA;;;"}
1
+ {"version":3,"file":"pagination.js","sources":["../../../components/pagination/pagination.vue"],"sourcesContent":["<template>\n <nav\n :aria-label=\"ariaLabel\"\n class=\"d-pagination\"\n >\n <dt-button\n class=\"d-pagination__button\"\n data-qa=\"dt-pagination-prev\"\n :aria-label=\"prevAriaLabel\"\n kind=\"muted\"\n importance=\"clear\"\n :disabled=\"isFirstPage\"\n @click=\"changePage(currentPage - 1)\"\n >\n <template #icon>\n <dt-icon-chevron-left\n size=\"300\"\n />\n </template>\n </dt-button>\n <div\n v-for=\"(page, index) in pages\"\n :key=\"`page-${page}-${index}`\"\n :class=\"{ 'd-pagination__separator': isNaN(Number(page)) }\"\n >\n <!-- eslint-disable vue/no-bare-strings-in-template -->\n <div\n v-if=\"isNaN(Number(page))\"\n class=\"d-pagination__separator-icon\"\n data-qa=\"dt-pagination-separator\"\n >\n <dt-icon-more-horizontal\n size=\"300\"\n />\n <!-- … -->\n </div>\n <dt-button\n v-else\n :aria-label=\"pageNumberAriaLabel(page)\"\n :kind=\"currentPage === page ? 'default' : 'muted'\"\n :importance=\"currentPage === page ? 'primary' : 'clear'\"\n label-class=\"\"\n @click=\"changePage(page)\"\n >\n {{ page }}\n </dt-button>\n </div>\n <dt-button\n class=\"d-pagination__button\"\n data-qa=\"dt-pagination-next\"\n :aria-label=\"nextAriaLabel\"\n :disabled=\"isLastPage\"\n kind=\"muted\"\n importance=\"clear\"\n @click=\"changePage(currentPage + 1)\"\n >\n <template #icon>\n <dt-icon-chevron-right\n size=\"300\"\n />\n </template>\n </dt-button>\n </nav>\n</template>\n\n<script>\nimport { DtButton } from '@/components/button';\nimport { DtIconChevronLeft, DtIconChevronRight, DtIconMoreHorizontal } from '@dialpad/dialtone-icons/vue3';\nimport { DialtoneLocalization } from '@/localization';\n\n/**\n * Pagination allows you to divide large amounts of content into smaller chunks across multiple pages.\n * @see https://dialtone.dialpad.com/components/pagination.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtPagination',\n\n components: {\n DtButton,\n DtIconChevronLeft,\n DtIconChevronRight,\n DtIconMoreHorizontal,\n },\n\n props: {\n /**\n * Descriptive label for the pagination content.\n */\n ariaLabel: {\n type: String,\n required: true,\n },\n\n /**\n * The total number of the pages\n */\n totalPages: {\n type: Number,\n required: true,\n },\n\n /**\n * The active current page in the list of pages, defaults to the first page\n */\n activePage: {\n type: Number,\n default: 1,\n },\n\n /**\n * Determines the max pages to be shown in the list. Using an odd number is recommended.\n * If an even number is given, then it will be rounded down to the nearest odd number to always\n * keep current page in the middle when current page is in the mid-range.\n */\n maxVisible: {\n type: Number,\n default: 5,\n },\n\n /**\n * Sometimes you may need to hide start and end page number buttons when moving in between.\n * This prop will be used to hide the first and last page buttons when not near the edges.\n * This is useful when your backend does not support offset and you can only use cursor based pagination.\n */\n hideEdges: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Page change event\n *\n * @event change\n * @type {Number}\n */\n 'change',\n ],\n\n data () {\n return {\n currentPage: this.activePage,\n i18n: new DialtoneLocalization(),\n };\n },\n\n computed: {\n isFirstPage () {\n return this.currentPage === 1;\n },\n\n isLastPage () {\n return this.currentPage === this.totalPages;\n },\n\n // eslint-disable-next-line complexity\n pages () {\n if (this.maxVisible === 0) {\n return [];\n }\n if (this.totalPages <= this.maxVisible) {\n return this.range(1, this.totalPages);\n }\n\n let start = this.maxVisible - 1;\n let end = this.totalPages - start + 1;\n\n // if hideEdges is true, modify the start and\n // end to account for the hidden pages\n if (this.hideEdges) {\n start = start + 1;\n end = end - 1;\n }\n\n if (this.currentPage < start) {\n const pages = [...this.range(1, start), '...'];\n if (!this.hideEdges) {\n // add last page to the end\n pages.push(this.totalPages);\n }\n return pages;\n }\n\n if (this.currentPage > end) {\n const pages = ['...', ...this.range(end, this.totalPages)];\n if (!this.hideEdges) {\n // add first page to the beginning\n pages.unshift(1);\n }\n return pages;\n }\n\n // rounding to the nearest odd according to the maxlength to always show the page number in the middle.\n const total = this.maxVisible - (3 - this.maxVisible % 2);\n const centerIndex = Math.floor(total / 2);\n let left = this.currentPage - centerIndex;\n let right = this.currentPage + centerIndex;\n\n // if hideEdge is true, modify the left and right to account for the hidden pages\n if (this.hideEdges) {\n left = left - 1;\n right = right + 1;\n }\n\n const pages = ['...', ...this.range(left, right), '...'];\n if (!this.hideEdges) {\n return [1, ...pages, this.totalPages];\n }\n return pages;\n },\n\n prevAriaLabel () {\n return this.isFirstPage ? this.i18n.$t('DIALTONE_PAGINATION_FIRST_PAGE') : this.i18n.$t('DIALTONE_PAGINATION_PREVIOUS_PAGE');\n },\n\n nextAriaLabel () {\n return this.isLastPage ? this.i18n.$t('DIALTONE_PAGINATION_LAST_PAGE') : this.i18n.$t('DIALTONE_PAGINATION_NEXT_PAGE');\n },\n\n pageNumberAriaLabel () {\n return (page) => {\n return page === this.totalPages ? `${this.i18n.$t('DIALTONE_PAGINATION_LAST_PAGE')} ${page}` : `${this.i18n.$t('DIALTONE_PAGINATION_PAGE_NUMBER', { page })}`;\n };\n },\n },\n\n watch: {\n activePage () {\n this.currentPage = this.activePage;\n },\n },\n\n methods: {\n range (from, to) {\n const range = [];\n from = from > 0 ? from : 1;\n for (let i = from; i <= to; i++) {\n range.push(i);\n }\n return range;\n },\n\n changePage (page) {\n this.currentPage = page;\n this.$emit('change', this.currentPage);\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtButton","DtIconChevronLeft","DtIconChevronRight","DtIconMoreHorizontal","DialtoneLocalization","start","end","pages","total","centerIndex","left","right","page","from","to","range","i","_hoisted_1","_createElementBlock","$props","_createVNode","_component_dt_button","$options","_cache","$event","$data","_component_dt_icon_chevron_left","_openBlock","_Fragment","_renderList","index","_normalizeClass","_hoisted_2","_component_dt_icon_more_horizontal","_createBlock","_withCtx","_createTextVNode","_toDisplayString","_component_dt_icon_chevron_right"],"mappings":";;;;;AA0EA,MAAKA,IAAU;AAAA,EACb,cAAc,EAAE,MAAM,EAAG;AAAA,EACzB,MAAM;AAAA,EAEN,YAAY;AAAA,IACV,UAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,sBAAAC;AAAA,EACD;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,WAAW;AAAA,MACT,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA,IAKD,YAAY;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA,IAKD,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOD,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOD,WAAW;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOL;AAAA,EACD;AAAA,EAED,OAAQ;AACN,WAAO;AAAA,MACL,aAAa,KAAK;AAAA,MAClB,MAAM,IAAIC,EAAsB;AAAA;EAEnC;AAAA,EAED,UAAU;AAAA,IACR,cAAe;AACb,aAAO,KAAK,gBAAgB;AAAA,IAC7B;AAAA,IAED,aAAc;AACZ,aAAO,KAAK,gBAAgB,KAAK;AAAA,IAClC;AAAA;AAAA,IAGD,QAAS;AACP,UAAI,KAAK,eAAe;AACtB,eAAO;AAET,UAAI,KAAK,cAAc,KAAK;AAC1B,eAAO,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ASM,OATNc,GASM;AAAA,QAJJZ,EAEEa,GAAA,EADA,MAAK,MAAK,CAAA;AAAA,kBAIdC,EASYb,GAAA;AAAA,QA7ClB,KAAA;AAAA,QAsCS,cAAYC,EAAmB,oBAACV,CAAI;AAAA,QACpC,MAAMa,EAAW,gBAAKb,IAAI,YAAA;AAAA,QAC1B,YAAYa,EAAW,gBAAKb,IAAI,YAAA;AAAA,QACjC,eAAY;AAAA,QACX,SAAK,CAAAY,MAAEF,EAAU,WAACV,CAAI;AAAA;QA1C/B,SAAAuB,EA4CQ,MAAU;AAAA,UA5ClBC,EAAAC,EA4CWzB,CAAI,GAAA,CAAA;AAAA;QA5Cf,GAAA;AAAA;;IA+CIQ,EAcYC,GAAA;AAAA,MAbV,OAAM;AAAA,MACN,WAAQ;AAAA,MACP,cAAYC,EAAa;AAAA,MACzB,UAAUA,EAAU;AAAA,MACrB,MAAK;AAAA,MACL,YAAW;AAAA,MACV,SAAKC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEF,EAAU,WAACG,EAAW,cAAA,CAAA;AAAA;MAEnB,QACT,MAEE;AAAA,QAFFL,EAEEkB,GAAA,EADA,MAAK,MAAK,CAAA;AAAA;MA1DpB,GAAA;AAAA;EAAA,GAAA,GAAArB,CAAA;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("@dialpad/dialtone-icons/vue3"),r=require("../../common/utils/index.cjs"),e=require("vue"),d=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),u=require("../button/button.cjs"),_={compatConfig:{MODE:3},name:"PopoverHeaderFooter",components:{DtButton:u.default,DtIconClose:a.DtIconClose},props:{type:{type:String,validator:function(o){return["header","footer"].includes(o)}},contentClass:{type:[String,Array,Object],default:""},showCloseButton:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>{}}},emits:["close"],data(){return{hasSlotContent:r.hasSlotContent}},methods:{focusCloseButton(){var n;const o=r.returnFirstEl((n=this.$refs["popover__close-button"])==null?void 0:n.$el);o==null||o.focus()}}};function i(o,n,t,f,s,m){const c=e.resolveComponent("dt-icon-close"),l=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("div",{"data-qa":"dt-popover-header-footer",class:e.normalizeClass({"d-popover__header":t.type==="header","d-popover__footer":t.type==="footer"})},[s.hasSlotContent(o.$slots.content)?(e.openBlock(),e.createElementBlock("div",{key:0,"data-qa":"dt-popover-header-footer-content",class:e.normalizeClass([{"d-popover__header__content":t.type==="header","d-popover__footer__content":t.type==="footer"},t.contentClass])},[e.renderSlot(o.$slots,"content")],2)):e.createCommentVNode("",!0),t.showCloseButton?(e.openBlock(),e.createBlock(l,e.mergeProps({key:1,ref:"popover__close-button","data-qa":"dt-popover-close",class:{"d-popover__header__close-button":t.type==="header","d-popover__footer__close-button":t.type==="footer"},importance:"outlined",kind:"muted",circle:""},t.closeButtonProps,{onClick:n[0]||(n[0]=v=>o.$emit("close"))}),{icon:e.withCtx(()=>[e.createVNode(c,{size:"300"})]),_:1},16,["class"])):e.createCommentVNode("",!0)],2)}const p=d._(_,[["render",i]]);exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("@dialpad/dialtone-icons/vue3"),l=require("../../common/utils/index.cjs"),d=require("../../localization/index.cjs"),e=require("vue"),u=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),_=require("../button/button.cjs"),p={compatConfig:{MODE:3},name:"PopoverHeaderFooter",components:{DtButton:_.default,DtIconClose:i.DtIconClose},props:{type:{type:String,validator:function(t){return["header","footer"].includes(t)}},contentClass:{type:[String,Array,Object],default:""},showCloseButton:{type:Boolean,default:!1}},emits:["close"],data(){return{hasSlotContent:l.hasSlotContent,i18n:new d.DialtoneLocalization}},computed:{closeButtonTitle(){return this.i18n.$t("DIALTONE_CLOSE_BUTTON")}},methods:{focusCloseButton(){var n;const t=l.returnFirstEl((n=this.$refs["popover__close-button"])==null?void 0:n.$el);t==null||t.focus()}}};function m(t,n,o,v,a,r){const s=e.resolveComponent("dt-icon-close"),c=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("div",{"data-qa":"dt-popover-header-footer",class:e.normalizeClass({"d-popover__header":o.type==="header","d-popover__footer":o.type==="footer"})},[a.hasSlotContent(t.$slots.content)?(e.openBlock(),e.createElementBlock("div",{key:0,"data-qa":"dt-popover-header-footer-content",class:e.normalizeClass([{"d-popover__header__content":o.type==="header","d-popover__footer__content":o.type==="footer"},o.contentClass])},[e.renderSlot(t.$slots,"content")],2)):e.createCommentVNode("",!0),o.showCloseButton?(e.openBlock(),e.createBlock(c,{key:1,ref:"popover__close-button","data-qa":"dt-popover-close",class:e.normalizeClass({"d-popover__header__close-button":o.type==="header","d-popover__footer__close-button":o.type==="footer"}),importance:"outlined",kind:"muted",circle:"","aria-label":r.closeButtonTitle,title:r.closeButtonTitle,onClick:n[0]||(n[0]=C=>t.$emit("close"))},{icon:e.withCtx(()=>[e.createVNode(s,{size:"300"})]),_:1},8,["class","aria-label","title"])):e.createCommentVNode("",!0)],2)}const f=u._(p,[["render",m]]);exports.default=f;
2
2
  //# sourceMappingURL=popover-header-footer.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-header-footer.cjs","sources":["../../../components/popover/popover_header_footer.vue"],"sourcesContent":["<template>\n <div\n data-qa=\"dt-popover-header-footer\"\n :class=\"{\n 'd-popover__header': type === 'header',\n 'd-popover__footer': type === 'footer',\n }\"\n >\n <div\n v-if=\"hasSlotContent($slots.content)\"\n data-qa=\"dt-popover-header-footer-content\"\n :class=\"[{\n 'd-popover__header__content': type === 'header',\n 'd-popover__footer__content': type === 'footer',\n }, contentClass]\"\n >\n <!-- @slot Slot for main content -->\n <slot name=\"content\" />\n </div>\n <dt-button\n v-if=\"showCloseButton\"\n ref=\"popover__close-button\"\n data-qa=\"dt-popover-close\"\n :class=\"{\n 'd-popover__header__close-button': type === 'header',\n 'd-popover__footer__close-button': type === 'footer',\n }\"\n importance=\"outlined\"\n kind=\"muted\"\n circle\n v-bind=\"closeButtonProps\"\n @click=\"$emit('close')\"\n >\n <template #icon>\n <dt-icon-close\n size=\"300\"\n />\n </template>\n </dt-button>\n </div>\n</template>\n\n<script>\nimport { DtButton } from '@/components/button';\nimport { DtIconClose } from '@dialpad/dialtone-icons/vue3';\nimport { hasSlotContent, returnFirstEl } from '@/common/utils';\n\nexport default {\n compatConfig: { MODE: 3 },\n name: 'PopoverHeaderFooter',\n components: {\n DtButton,\n DtIconClose,\n },\n\n props: {\n // eslint-disable-next-line vue/require-default-prop\n type: {\n type: String,\n validator: function (value) {\n return ['header', 'footer'].includes(value);\n },\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Determines visibility for close button\n * @values true, false\n */\n showCloseButton: {\n type: Boolean,\n default: false,\n },\n\n /**\n * A set of props to be passed into the popover's header close button.\n * Requires an 'ariaLabel' property.\n */\n closeButtonProps: {\n type: Object,\n default: () => {},\n },\n },\n\n emits: [\n /**\n * Emitted when popover is closed\n *\n * @event close\n * @type { Boolean }\n */\n 'close',\n ],\n\n data () {\n return {\n hasSlotContent,\n };\n },\n\n methods: {\n focusCloseButton () {\n const closeButton = returnFirstEl(this.$refs['popover__close-button']?.$el);\n closeButton?.focus();\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtButton","DtIconClose","value","hasSlotContent","closeButton","returnFirstEl","_a","_createElementBlock","_normalizeClass","$props","$data","_ctx","_renderSlot","_createCommentVNode","_openBlock","_createBlock","_component_dt_button","_mergeProps","_createVNode","_component_dt_icon_close"],"mappings":"mTA+CKA,EAAU,CACb,aAAc,CAAE,KAAM,CAAG,EACzB,KAAM,sBACN,WAAY,CACV,SAAAC,EAAQ,oBACRC,EAAW,WACZ,EAED,MAAO,CAEL,KAAM,CACJ,KAAM,OACN,UAAW,SAAUC,EAAO,CAC1B,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ources":["../../../components/popover/popover_header_footer.vue"],"sourcesContent":["<template>\n <div\n data-qa=\"dt-popover-header-footer\"\n :class=\"{\n 'd-popover__header': type === 'header',\n 'd-popover__footer': type === 'footer',\n }\"\n >\n <div\n v-if=\"hasSlotContent($slots.content)\"\n data-qa=\"dt-popover-header-footer-content\"\n :class=\"[{\n 'd-popover__header__content': type === 'header',\n 'd-popover__footer__content': type === 'footer',\n }, contentClass]\"\n >\n <!-- @slot Slot for main content -->\n <slot name=\"content\" />\n </div>\n <dt-button\n v-if=\"showCloseButton\"\n ref=\"popover__close-button\"\n data-qa=\"dt-popover-close\"\n :class=\"{\n 'd-popover__header__close-button': type === 'header',\n 'd-popover__footer__close-button': type === 'footer',\n }\"\n importance=\"outlined\"\n kind=\"muted\"\n circle\n :aria-label=\"closeButtonTitle\"\n :title=\"closeButtonTitle\"\n @click=\"$emit('close')\"\n >\n <template #icon>\n <dt-icon-close\n size=\"300\"\n />\n </template>\n </dt-button>\n </div>\n</template>\n\n<script>\nimport { DtButton } from '@/components/button';\nimport { DtIconClose } from '@dialpad/dialtone-icons/vue3';\nimport { hasSlotContent, returnFirstEl } from '@/common/utils';\nimport { DialtoneLocalization } from '@/localization';\n\nexport default {\n compatConfig: { MODE: 3 },\n name: 'PopoverHeaderFooter',\n components: {\n DtButton,\n DtIconClose,\n },\n\n props: {\n // eslint-disable-next-line vue/require-default-prop\n type: {\n type: String,\n validator: function (value) {\n return ['header', 'footer'].includes(value);\n },\n },\n\n /**\n * Additional class name for the content wrapper element.\n */\n contentClass: {\n type: [String, Array, Object],\n default: '',\n },\n\n /**\n * Determines visibility for close button\n * @values true, false\n */\n showCloseButton: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Emitted when popover is closed\n *\n * @event close\n * @type { Boolean }\n */\n 'close',\n ],\n\n data () {\n return {\n hasSlotContent,\n i18n: new DialtoneLocalization(),\n };\n },\n\n computed: {\n closeButtonTitle () {\n return this.i18n.$t('DIALTONE_CLOSE_BUTTON');\n },\n },\n\n methods: {\n focusCloseButton () {\n const closeButton = returnFirstEl(this.$refs['popover__close-button']?.$el);\n closeButton?.focus();\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtButton","DtIconClose","value","hasSlotContent","DialtoneLocalization","closeButton","returnFirstEl","_a","_createElementBlock","_normalizeClass","$props","$data","_ctx","_renderSlot","_createCommentVNode","_createBlock","_component_dt_button","$options","_createVNode","_component_dt_icon_close"],"mappings":"6VAiDKA,EAAU,CACb,aAAc,CAAE,KAAM,CAAG,EACzB,KAAM,sBACN,WAAY,CACV,SAAAC,EAAQ,oBACRC,EAAW,WACZ,EAED,MAAO,CAEL,KAAM,CACJ,KAAM,OACN,UAAW,SAAUC,EAAO,CAC1B,MAAO,CAAC,SAAU,QAAQ,EAAE,SAASA,CAAK,CAC3C,CACF,EAKD,aAAc,CACZ,KAAM,CAAC,OAAQ,MAAO,MAAM,EAC5B,QAAS,EACV,EAMD,gBAAiB,CACf,KAAM,QACN,QAAS,EACV,CACF,EAED,MAAO,CAOL,OACD,EAED,MAAQ,CACN,MAAO,CACL,eAAAC,EAAc,eACd,KAAM,IAAIC,EAAAA,qBAEb,EAED,SAAU,CACR,kBAAoB,CAClB,OAAO,KAAK,KAAK,GAAG,uBAAuB,CAC5C,CACF,EAED,QAAS,CACP,kBAAoB,OAClB,MAAMC,EAAcC,EAAAA,eAAcC,EAAA,KAAK,MAAM,uBAAuB,IAAlC,YAAAA,EAAqC,GAAG,EAC1EF,GAAA,MAAAA,EAAa,OACd,CACF,CACH,6HAhHEG,EAuCM,mBAAA,MAAA,CAtCJ,UAAQ,2BACP,MAHLC,EAAAA,eAAA,qBAGyCC,EAAI,OAAA,6BAA0CA,EAAI,OAAA,aAM/EC,EAAc,eAACC,EAAM,OAAC,OAAO,iBADrCJ,EAUM,mBAAA,MAAA,CAlBV,IAAA,EAUM,UAAQ,mCACP,MAXPC,EAAA,eAAA,CAAA,8BAWuDC,EAAI,OAAA,sCAAqDA,EAAI,OAAA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