@dialpad/dialtone 9.123.2 → 9.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/README.md +12 -5
  2. package/dist/css/dialtone-default-theme.css +414 -77
  3. package/dist/css/dialtone-default-theme.min.css +1 -1
  4. package/dist/css/dialtone-docs.json +1 -1
  5. package/dist/css/dialtone.css +188 -68
  6. package/dist/css/dialtone.min.css +1 -1
  7. package/dist/css/svg/spot/playlist.svg +1 -0
  8. package/dist/css/vue/spot/SpotPlaylist.vue +3 -0
  9. package/dist/tokens/doc.json +24348 -24348
  10. package/dist/vue2/common/mixins/index.cjs +1 -1
  11. package/dist/vue2/common/mixins/index.js +10 -10
  12. package/dist/vue2/common/mixins/localization.cjs +2 -0
  13. package/dist/vue2/common/mixins/localization.cjs.map +1 -0
  14. package/dist/vue2/common/mixins/localization.js +10 -0
  15. package/dist/vue2/common/mixins/localization.js.map +1 -0
  16. package/dist/vue2/common/utils/index.cjs +1 -1
  17. package/dist/vue2/common/utils/index.cjs.map +1 -1
  18. package/dist/vue2/common/utils/index.js +43 -39
  19. package/dist/vue2/common/utils/index.js.map +1 -1
  20. package/dist/vue2/component-documentation.json +1 -1
  21. package/dist/vue2/dialtone-vue.cjs +1 -1
  22. package/dist/vue2/dialtone-vue.js +341 -340
  23. package/dist/vue2/dialtone-vue.js.map +1 -1
  24. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  25. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  26. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +61 -86
  27. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  28. package/dist/vue2/lib/banner/banner.cjs +2 -2
  29. package/dist/vue2/lib/banner/banner.cjs.map +1 -1
  30. package/dist/vue2/lib/banner/banner.js +25 -33
  31. package/dist/vue2/lib/banner/banner.js.map +1 -1
  32. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  33. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  34. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +14 -12
  35. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  36. package/dist/vue2/lib/button/button.cjs +1 -1
  37. package/dist/vue2/lib/button/button.cjs.map +1 -1
  38. package/dist/vue2/lib/button/button.js +11 -9
  39. package/dist/vue2/lib/button/button.js.map +1 -1
  40. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  41. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  42. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +19 -25
  43. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  44. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  45. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  46. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +18 -21
  47. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  48. package/dist/vue2/lib/chip/chip.cjs +1 -1
  49. package/dist/vue2/lib/chip/chip.cjs.map +1 -1
  50. package/dist/vue2/lib/chip/chip.js +24 -29
  51. package/dist/vue2/lib/chip/chip.js.map +1 -1
  52. package/dist/vue2/lib/combobox/combobox-constants.cjs +1 -1
  53. package/dist/vue2/lib/combobox/combobox-constants.cjs.map +1 -1
  54. package/dist/vue2/lib/combobox/combobox-constants.js +2 -2
  55. package/dist/vue2/lib/combobox/combobox-constants.js.map +1 -1
  56. package/dist/vue2/lib/combobox/combobox-empty-list.cjs.map +1 -1
  57. package/dist/vue2/lib/combobox/combobox-empty-list.js.map +1 -1
  58. package/dist/vue2/lib/combobox/combobox-loading-list.cjs.map +1 -1
  59. package/dist/vue2/lib/combobox/combobox-loading-list.js.map +1 -1
  60. package/dist/vue2/lib/combobox/combobox.cjs +2 -2
  61. package/dist/vue2/lib/combobox/combobox.cjs.map +1 -1
  62. package/dist/vue2/lib/combobox/combobox.js +12 -12
  63. package/dist/vue2/lib/combobox/combobox.js.map +1 -1
  64. package/dist/vue2/lib/combobox/index.cjs +1 -1
  65. package/dist/vue2/lib/combobox/index.js +3 -3
  66. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  67. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  68. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +19 -20
  69. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  70. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  71. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  72. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js +22 -24
  73. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
  74. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  75. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  76. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +40 -36
  77. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  78. package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
  79. package/dist/vue2/lib/contact-row/contact-row.cjs.map +1 -1
  80. package/dist/vue2/lib/contact-row/contact-row.js +11 -25
  81. package/dist/vue2/lib/contact-row/contact-row.js.map +1 -1
  82. package/dist/vue2/lib/datepicker/datepicker-constants.cjs +1 -1
  83. package/dist/vue2/lib/datepicker/datepicker-constants.cjs.map +1 -1
  84. package/dist/vue2/lib/datepicker/datepicker-constants.js +2 -3
  85. package/dist/vue2/lib/datepicker/datepicker-constants.js.map +1 -1
  86. package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
  87. package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
  88. package/dist/vue2/lib/datepicker/datepicker.js +143 -229
  89. package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
  90. package/dist/vue2/lib/datepicker/utils.cjs +1 -1
  91. package/dist/vue2/lib/datepicker/utils.cjs.map +1 -1
  92. package/dist/vue2/lib/datepicker/utils.js +12 -11
  93. package/dist/vue2/lib/datepicker/utils.js.map +1 -1
  94. package/dist/vue2/lib/description-list/description-list.cjs +1 -1
  95. package/dist/vue2/lib/description-list/description-list.cjs.map +1 -1
  96. package/dist/vue2/lib/description-list/description-list.js +8 -8
  97. package/dist/vue2/lib/description-list/description-list.js.map +1 -1
  98. package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
  99. package/dist/vue2/lib/dropdown/dropdown.cjs.map +1 -1
  100. package/dist/vue2/lib/dropdown/dropdown.js +48 -50
  101. package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
  102. package/dist/vue2/lib/editor/editor.cjs +1 -1
  103. package/dist/vue2/lib/editor/editor.cjs.map +1 -1
  104. package/dist/vue2/lib/editor/editor.js +78 -87
  105. package/dist/vue2/lib/editor/editor.js.map +1 -1
  106. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs +1 -1
  107. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  108. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js +6 -19
  109. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  110. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
  111. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  112. package/dist/vue2/lib/emoji-picker/emoji-picker.js +106 -145
  113. package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
  114. package/dist/vue2/lib/emoji-picker/index.cjs +1 -1
  115. package/dist/vue2/lib/emoji-picker/index.js +6 -7
  116. package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs +1 -1
  117. package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
  118. package/dist/vue2/lib/emoji-row/emoji-row-constants.js +5 -7
  119. package/dist/vue2/lib/emoji-row/emoji-row-constants.js.map +1 -1
  120. package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
  121. package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
  122. package/dist/vue2/lib/emoji-row/emoji-row.js +31 -22
  123. package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
  124. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  125. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  126. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +20 -22
  127. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  128. package/dist/vue2/lib/general-row/general-row.cjs +1 -1
  129. package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
  130. package/dist/vue2/lib/general-row/general-row.js +63 -52
  131. package/dist/vue2/lib/general-row/general-row.js.map +1 -1
  132. package/dist/vue2/lib/group-row/group-row.cjs +1 -1
  133. package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
  134. package/dist/vue2/lib/group-row/group-row.js +43 -32
  135. package/dist/vue2/lib/group-row/group-row.js.map +1 -1
  136. package/dist/vue2/lib/icon/icon-constants.cjs.map +1 -1
  137. package/dist/vue2/lib/icon/icon-constants.js.map +1 -1
  138. package/dist/vue2/lib/icon/icon.cjs +1 -1
  139. package/dist/vue2/lib/icon/icon.cjs.map +1 -1
  140. package/dist/vue2/lib/icon/icon.js +12 -8
  141. package/dist/vue2/lib/icon/icon.js.map +1 -1
  142. package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
  143. package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
  144. package/dist/vue2/lib/image-viewer/image-viewer.js +30 -31
  145. package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
  146. package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs +1 -1
  147. package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
  148. package/dist/vue2/lib/ivr-node/ivr-node-constants.js +24 -24
  149. package/dist/vue2/lib/ivr-node/ivr-node-constants.js.map +1 -1
  150. package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
  151. package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
  152. package/dist/vue2/lib/ivr-node/ivr-node.js +38 -36
  153. package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
  154. package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
  155. package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
  156. package/dist/vue2/lib/message-input/message-input-link.js +48 -23
  157. package/dist/vue2/lib/message-input/message-input-link.js.map +1 -1
  158. package/dist/vue2/lib/message-input/message-input-topbar.cjs +1 -1
  159. package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
  160. package/dist/vue2/lib/message-input/message-input-topbar.js +50 -22
  161. package/dist/vue2/lib/message-input/message-input-topbar.js.map +1 -1
  162. package/dist/vue2/lib/message-input/message-input.cjs +1 -1
  163. package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
  164. package/dist/vue2/lib/message-input/message-input.js +112 -143
  165. package/dist/vue2/lib/message-input/message-input.js.map +1 -1
  166. package/dist/vue2/lib/modal/modal.cjs +1 -2
  167. package/dist/vue2/lib/modal/modal.cjs.map +1 -1
  168. package/dist/vue2/lib/modal/modal.js +25 -42
  169. package/dist/vue2/lib/modal/modal.js.map +1 -1
  170. package/dist/vue2/lib/notice/notice-action.cjs +1 -1
  171. package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
  172. package/dist/vue2/lib/notice/notice-action.js +19 -26
  173. package/dist/vue2/lib/notice/notice-action.js.map +1 -1
  174. package/dist/vue2/lib/notice/notice.cjs +1 -1
  175. package/dist/vue2/lib/notice/notice.cjs.map +1 -1
  176. package/dist/vue2/lib/notice/notice.js +18 -27
  177. package/dist/vue2/lib/notice/notice.js.map +1 -1
  178. package/dist/vue2/lib/pagination/pagination.cjs +1 -1
  179. package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
  180. package/dist/vue2/lib/pagination/pagination.js +49 -58
  181. package/dist/vue2/lib/pagination/pagination.js.map +1 -1
  182. package/dist/vue2/lib/popover/popover-header-footer.cjs +1 -1
  183. package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
  184. package/dist/vue2/lib/popover/popover-header-footer.js +24 -26
  185. package/dist/vue2/lib/popover/popover-header-footer.js.map +1 -1
  186. package/dist/vue2/lib/popover/popover.cjs +1 -1
  187. package/dist/vue2/lib/popover/popover.cjs.map +1 -1
  188. package/dist/vue2/lib/popover/popover.js +26 -35
  189. package/dist/vue2/lib/popover/popover.js.map +1 -1
  190. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +5 -5
  191. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  192. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +330 -320
  193. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  194. package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  195. package/dist/vue2/lib/settings-menu-button/settings-menu-button.js.map +1 -1
  196. package/dist/vue2/lib/time-pill/time-pill.cjs.map +1 -1
  197. package/dist/vue2/lib/time-pill/time-pill.js.map +1 -1
  198. package/dist/vue2/lib/toast/toast.cjs +1 -1
  199. package/dist/vue2/lib/toast/toast.cjs.map +1 -1
  200. package/dist/vue2/lib/toast/toast.js +64 -97
  201. package/dist/vue2/lib/toast/toast.js.map +1 -1
  202. package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
  203. package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
  204. package/dist/vue2/lib/unread-pill/unread-pill.js +27 -18
  205. package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
  206. package/dist/vue2/localization/en-US.cjs +185 -0
  207. package/dist/vue2/localization/en-US.cjs.map +1 -0
  208. package/dist/vue2/localization/en-US.js +188 -0
  209. package/dist/vue2/localization/en-US.js.map +1 -0
  210. package/dist/vue2/localization/es-LA.cjs +169 -0
  211. package/dist/vue2/localization/es-LA.cjs.map +1 -0
  212. package/dist/vue2/localization/es-LA.js +172 -0
  213. package/dist/vue2/localization/es-LA.js.map +1 -0
  214. package/dist/vue2/localization/index.cjs +1176 -0
  215. package/dist/vue2/localization/index.cjs.map +1 -0
  216. package/dist/vue2/localization/index.js +1239 -0
  217. package/dist/vue2/localization/index.js.map +1 -0
  218. package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
  219. package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
  220. package/dist/vue2/shared/sr_only_close_button.cjs +1 -1
  221. package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
  222. package/dist/vue2/shared/sr_only_close_button.js +19 -22
  223. package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
  224. package/dist/vue2/types/common/mixins/index.d.ts +1 -1
  225. package/dist/vue2/types/common/mixins/localization.d.ts +8 -0
  226. package/dist/vue2/types/common/mixins/localization.d.ts.map +1 -0
  227. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +7 -13
  228. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  229. package/dist/vue2/types/common/utils/index.d.ts +1 -0
  230. package/dist/vue2/types/common/utils/index.d.ts.map +1 -1
  231. package/dist/vue2/types/components/banner/banner.vue.d.ts +0 -33
  232. package/dist/vue2/types/components/banner/banner.vue.d.ts.map +1 -1
  233. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +5 -1
  234. package/dist/vue2/types/components/button/button.vue.d.ts +6 -2
  235. package/dist/vue2/types/components/chip/chip.vue.d.ts +8 -18
  236. package/dist/vue2/types/components/combobox/combobox_constants.d.ts +2 -2
  237. package/dist/vue2/types/components/combobox/index.d.ts +1 -1
  238. package/dist/vue2/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
  239. package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts +0 -1
  240. package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  241. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +5 -17
  242. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +8 -48
  243. package/dist/vue2/types/components/datepicker/utils.d.ts +1 -0
  244. package/dist/vue2/types/components/datepicker/utils.d.ts.map +1 -1
  245. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts +0 -24
  246. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  247. package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts +5 -1
  248. package/dist/vue2/types/components/emoji_picker/emoji_picker_constants.d.ts +0 -13
  249. package/dist/vue2/types/components/icon/icon.vue.d.ts +1 -0
  250. package/dist/vue2/types/components/icon/icon_constants.d.ts.map +1 -1
  251. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +5 -8
  252. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  253. package/dist/vue2/types/components/modal/modal.vue.d.ts +3 -33
  254. package/dist/vue2/types/components/notice/notice.vue.d.ts +1 -34
  255. package/dist/vue2/types/components/notice/notice.vue.d.ts.map +1 -1
  256. package/dist/vue2/types/components/notice/notice_action.vue.d.ts +3 -31
  257. package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
  258. package/dist/vue2/types/components/pagination/pagination.vue.d.ts +9 -26
  259. package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
  260. package/dist/vue2/types/components/popover/popover.vue.d.ts +0 -33
  261. package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
  262. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +8 -11
  263. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  264. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +15 -2
  265. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  266. package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +1 -43
  267. package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
  268. package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -34
  269. package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
  270. package/dist/vue2/types/components/toast/toast.vue.d.ts +3 -111
  271. package/dist/vue2/types/components/toast/toast.vue.d.ts.map +1 -1
  272. package/dist/vue2/types/index.d.ts +1 -0
  273. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +7 -13
  274. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +7 -12
  275. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +8 -10
  276. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  277. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +7 -7
  278. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
  279. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -25
  280. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
  281. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -25
  282. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  283. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +5 -41
  284. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  285. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +8 -26
  286. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
  287. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +20 -61
  288. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  289. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +6 -1
  290. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts.map +1 -1
  291. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +9 -12
  292. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  293. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +8 -2
  294. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  295. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -90
  296. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  297. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +14 -2
  298. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +14 -1
  299. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  300. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +10 -11
  301. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  302. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -18
  303. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
  304. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +21 -37
  305. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  306. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +9 -18
  307. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  308. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +7 -1
  309. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  310. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  311. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  312. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +3 -2
  313. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  314. package/package.json +4 -3
  315. package/dist/vue2/common/mixins/sr-only-close-button.cjs +0 -3
  316. package/dist/vue2/common/mixins/sr-only-close-button.cjs.map +0 -1
  317. package/dist/vue2/common/mixins/sr-only-close-button.js +0 -44
  318. package/dist/vue2/common/mixins/sr-only-close-button.js.map +0 -1
  319. package/dist/vue2/lib/contact-row/contact-row-constants.cjs +0 -2
  320. package/dist/vue2/lib/contact-row/contact-row-constants.cjs.map +0 -1
  321. package/dist/vue2/lib/contact-row/contact-row-constants.js +0 -5
  322. package/dist/vue2/lib/contact-row/contact-row-constants.js.map +0 -1
  323. package/dist/vue2/lib/emoji/emoji-constants.cjs +0 -2
  324. package/dist/vue2/lib/emoji/emoji-constants.cjs.map +0 -1
  325. package/dist/vue2/lib/emoji/emoji-constants.js +0 -5
  326. package/dist/vue2/lib/emoji/emoji-constants.js.map +0 -1
  327. package/dist/vue2/lib/group-row/group-row-constants.cjs +0 -2
  328. package/dist/vue2/lib/group-row/group-row-constants.cjs.map +0 -1
  329. package/dist/vue2/lib/group-row/group-row-constants.js +0 -8
  330. package/dist/vue2/lib/group-row/group-row-constants.js.map +0 -1
  331. package/dist/vue2/lib/time-pill/time-pill-constants.cjs +0 -2
  332. package/dist/vue2/lib/time-pill/time-pill-constants.cjs.map +0 -1
  333. package/dist/vue2/lib/time-pill/time-pill-constants.js +0 -8
  334. package/dist/vue2/lib/time-pill/time-pill-constants.js.map +0 -1
  335. package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts +0 -30
  336. package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
  337. package/dist/vue2/types/components/emoji/emoji_constants.d.ts +0 -3
  338. package/dist/vue2/types/components/emoji/emoji_constants.d.ts.map +0 -1
  339. package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts +0 -6
  340. package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts.map +0 -1
  341. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts +0 -3
  342. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts.map +0 -1
  343. package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts +0 -6
  344. package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts.map +0 -1
@@ -1,48 +1,26 @@
1
- import { DtIconChevronLeft as f, DtIconChevronsLeft as p, DtIconChevronRight as y, DtIconChevronsRight as m } from "@dialpad/dialtone-icons/vue2";
2
- import { getMonth as i, getYear as l, getDate as D, set as k, addMonths as _, subMonths as b, format as $ } from "date-fns";
3
- import { getCalendarDays as g, formatMonth as v, getWeekDayNames as M, calculateNextFocusDate as x, calculatePrevFocusDate as R } from "./utils.js";
4
- import { INTL_MONTH_FORMAT as L, WEEK_START as Y, MONTH_FORMAT as w } from "./datepicker-constants.js";
5
- import u from "../stack/stack.js";
6
- import T from "../tooltip/tooltip.js";
7
- import d from "../button/button.js";
1
+ import { DtIconChevronLeft as D, DtIconChevronsLeft as _, DtIconChevronRight as y, DtIconChevronsRight as m } from "@dialpad/dialtone-icons/vue2";
2
+ import { getMonth as o, getYear as l, getDate as k, set as $, addMonths as v, subMonths as R } from "date-fns";
3
+ import { getCalendarDays as E, formatMonth as b, getWeekDayNames as T, formatDate as g, calculateNextFocusDate as A, calculatePrevFocusDate as M } from "./utils.js";
4
+ import { INTL_MONTH_FORMAT as d, WEEK_START as C } from "./datepicker-constants.js";
8
5
  import { n as h } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
9
- import { warnIfUnmounted as C } from "../../common/utils/index.js";
10
- const P = {
6
+ import u from "../button/button.js";
7
+ import P from "../tooltip/tooltip.js";
8
+ import f from "../stack/stack.js";
9
+ import p from "../../common/mixins/localization.js";
10
+ import { warnIfUnmounted as x } from "../../common/utils/index.js";
11
+ const I = {
11
12
  name: "DtDatepickerMonthYearPicker",
12
13
  components: {
13
- DtButton: d,
14
- DtTooltip: T,
15
- DtStack: u,
16
- DtIconChevronLeft: f,
17
- DtIconChevronsLeft: p,
14
+ DtButton: u,
15
+ DtTooltip: P,
16
+ DtStack: f,
17
+ DtIconChevronLeft: D,
18
+ DtIconChevronsLeft: _,
18
19
  DtIconChevronRight: y,
19
20
  DtIconChevronsRight: m
20
21
  },
22
+ mixins: [p],
21
23
  props: {
22
- locale: {
23
- type: String,
24
- required: !0
25
- },
26
- prevMonthLabel: {
27
- type: String,
28
- required: !0
29
- },
30
- nextMonthLabel: {
31
- type: String,
32
- required: !0
33
- },
34
- prevYearLabel: {
35
- type: String,
36
- required: !0
37
- },
38
- nextYearLabel: {
39
- type: String,
40
- required: !0
41
- },
42
- changeToLabel: {
43
- type: String,
44
- required: !0
45
- },
46
24
  selectedDate: {
47
25
  type: Date,
48
26
  required: !0
@@ -77,7 +55,7 @@ const P = {
77
55
  ],
78
56
  data() {
79
57
  return {
80
- selectMonth: i(this.selectedDate),
58
+ selectMonth: o(this.selectedDate),
81
59
  selectYear: l(this.selectedDate),
82
60
  highlightedDay: null,
83
61
  focusPicker: 0,
@@ -88,10 +66,22 @@ const P = {
88
66
  computed: {
89
67
  // Get days for the currently selected month and year and highlight the selected day
90
68
  calendarDays() {
91
- return g(this.selectMonth, this.selectYear, this.highlightedDay);
69
+ return E(this.selectMonth, this.selectYear, this.highlightedDay);
92
70
  },
93
71
  formattedMonth() {
94
- return (a) => v(a, L, this.locale);
72
+ return (s) => b(s, d, this.i18n.currentLocale);
73
+ },
74
+ previousYearAriaLabel() {
75
+ return `${this.i18n.$t("DIALTONE_DATEPICKER_CHANGE_TO")} ${this.i18n.$t("DIALTONE_DATEPICKER_PREVIOUS_YEAR")} ${this.selectYear - 1}`;
76
+ },
77
+ previousMonthAriaLabel() {
78
+ return `${this.i18n.$t("DIALTONE_DATEPICKER_CHANGE_TO")} ${this.i18n.$t("DIALTONE_DATEPICKER_PREVIOUS_MONTH")} ${this.formattedMonth(this.selectMonth - 1)}`;
79
+ },
80
+ nextYearAriaLabel() {
81
+ return `${this.i18n.$t("DIALTONE_DATEPICKER_CHANGE_TO")} ${this.i18n.$t("DIALTONE_DATEPICKER_NEXT_YEAR")} ${this.selectYear + 1}`;
82
+ },
83
+ nextMonthAriaLabel() {
84
+ return `${this.i18n.$t("DIALTONE_DATEPICKER_CHANGE_TO")} ${this.i18n.$t("DIALTONE_DATEPICKER_NEXT_MONTH")} ${this.formattedMonth(this.selectMonth + 1)}`;
95
85
  }
96
86
  },
97
87
  watch: {
@@ -113,24 +103,24 @@ const P = {
113
103
  },
114
104
  methods: {
115
105
  setButtonsRef() {
116
- this.focusRefs = this.refNames.map((a) => this.$refs[a]);
106
+ this.focusRefs = this.refNames.map((s) => this.$refs[s]);
117
107
  },
118
108
  focusMonthYearPicker() {
119
109
  this.focusPicker = 0, this.focusRefs[0].$el.focus();
120
110
  },
121
- handleKeyDown(a) {
122
- switch (a.key) {
111
+ handleKeyDown(s) {
112
+ switch (s.key) {
123
113
  case "ArrowLeft":
124
- a.preventDefault(), this.focusPicker === 0 ? (this.focusPicker = 3, this.focusRefs[this.focusPicker].$el.focus()) : (this.focusPicker--, this.focusRefs[this.focusPicker].$el.focus());
114
+ s.preventDefault(), this.focusPicker === 0 ? (this.focusPicker = 3, this.focusRefs[this.focusPicker].$el.focus()) : (this.focusPicker--, this.focusRefs[this.focusPicker].$el.focus());
125
115
  break;
126
116
  case "ArrowRight":
127
- a.preventDefault(), this.focusPicker === 3 ? (this.focusPicker = 0, this.focusRefs[this.focusPicker].$el.focus()) : (this.focusPicker++, this.focusRefs[this.focusPicker].$el.focus());
117
+ s.preventDefault(), this.focusPicker === 3 ? (this.focusPicker = 0, this.focusRefs[this.focusPicker].$el.focus()) : (this.focusPicker++, this.focusRefs[this.focusPicker].$el.focus());
128
118
  break;
129
119
  case "ArrowDown":
130
- a.preventDefault(), this.$emit("focus-first-day");
120
+ s.preventDefault(), this.$emit("focus-first-day");
131
121
  break;
132
122
  case "Tab":
133
- a.preventDefault(), this.$emit("focus-first-day");
123
+ s.preventDefault(), this.$emit("focus-first-day");
134
124
  break;
135
125
  case "Escape":
136
126
  this.$emit("close-datepicker");
@@ -138,16 +128,16 @@ const P = {
138
128
  }
139
129
  },
140
130
  highlightDay() {
141
- const a = l(this.selectedDate), e = i(this.selectedDate);
142
- a !== this.selectYear || e !== this.selectMonth ? this.highlightedDay = null : this.highlightedDay = D(this.selectedDate);
131
+ const s = l(this.selectedDate), t = o(this.selectedDate);
132
+ s !== this.selectYear || t !== this.selectMonth ? this.highlightedDay = null : this.highlightedDay = k(this.selectedDate);
143
133
  },
144
- changeMonth(a) {
145
- (this.selectMonth === 0 && a === -1 || this.selectMonth === 11 && a === 1) && (this.selectYear += a);
146
- const e = k(this.selectedDate, { month: this.selectMonth, year: this.selectYear }), t = a === 1 ? _(e, 1) : b(e, 1);
147
- this.selectMonth = i(t);
134
+ changeMonth(s) {
135
+ (this.selectMonth === 0 && s === -1 || this.selectMonth === 11 && s === 1) && (this.selectYear += s);
136
+ const t = $(this.selectedDate, { month: this.selectMonth, year: this.selectYear }), e = s === 1 ? v(t, 1) : R(t, 1);
137
+ this.selectMonth = o(e);
148
138
  },
149
- changeYear(a) {
150
- this.selectYear = this.selectYear + a;
139
+ changeYear(s) {
140
+ this.selectYear = this.selectYear + s;
151
141
  },
152
142
  goToNextMonth() {
153
143
  this.changeMonth(1);
@@ -157,53 +147,46 @@ const P = {
157
147
  }
158
148
  }
159
149
  };
160
- var S = function() {
161
- var e = this, t = e._self._c;
162
- return t("dt-stack", { staticClass: "d-datepicker__month-year", attrs: { direction: "row", gap: "300" } }, [t("dt-stack", { staticClass: "d-datepicker__nav", attrs: { as: "nav", direction: "row", gap: "200" } }, [t("dt-tooltip", { attrs: { message: e.prevYearLabel, placement: "top", "fallback-placements": ["top-start", "auto"] }, scopedSlots: e._u([{ key: "anchor", fn: function() {
163
- return [t("dt-button", { ref: e.refNames[0], staticClass: "d-datepicker__nav-btn", attrs: { id: "prevYearButton", size: "xs", importance: "clear", kind: "muted", circle: !0, type: "button", "aria-label": `${e.changeToLabel} ${e.prevYearLabel} ${e.selectYear - 1}` }, on: { click: function(s) {
164
- return e.changeYear(-1);
165
- }, keydown: function(s) {
166
- return e.handleKeyDown(s);
167
- } } }, [t("dt-icon-chevrons-left", { attrs: { size: "200" } })], 1)];
168
- }, proxy: !0 }]) }), t("dt-tooltip", { attrs: { message: e.prevMonthLabel, placement: "top", "fallback-placements": ["top-end", "auto"] }, scopedSlots: e._u([{ key: "anchor", fn: function() {
169
- return [t("dt-button", { ref: e.refNames[1], staticClass: "d-datepicker__nav-btn", attrs: { id: "prevMonthButton", size: "xs", importance: "clear", kind: "muted", circle: !0, type: "button", "aria-label": `${e.changeToLabel} ${e.prevMonthLabel} ${e.formattedMonth(e.selectMonth - 1)}` }, on: { click: function(s) {
170
- return e.changeMonth(-1);
171
- }, keydown: function(s) {
172
- return e.handleKeyDown(s);
173
- } } }, [t("dt-icon-chevron-left", { attrs: { size: "200" } })], 1)];
174
- }, proxy: !0 }]) })], 1), t("div", { staticClass: "d-datepicker__month-year-title", attrs: { id: "calendar-heading" } }, [e._v(" " + e._s(e.formattedMonth(e.selectMonth)) + " " + e._s(e.selectYear) + " ")]), t("dt-stack", { staticClass: "d-datepicker__nav", attrs: { as: "nav", direction: "row", gap: "200" } }, [t("dt-tooltip", { attrs: { message: e.nextMonthLabel, placement: "top", "fallback-placements": ["top-start", "auto"] }, scopedSlots: e._u([{ key: "anchor", fn: function() {
175
- return [t("dt-button", { ref: e.refNames[2], staticClass: "d-datepicker__nav-btn", attrs: { id: "nextMonthButton", size: "xs", importance: "clear", circle: !0, kind: "muted", type: "button", "aria-label": `${e.changeToLabel} ${e.nextMonthLabel} ${e.formattedMonth(e.selectMonth + 1)}` }, on: { click: function(s) {
176
- return e.changeMonth(1);
177
- }, keydown: function(s) {
178
- return e.handleKeyDown(s);
179
- } } }, [t("dt-icon-chevron-right", { attrs: { size: "200" } })], 1)];
180
- }, proxy: !0 }]) }), t("dt-tooltip", { attrs: { message: e.nextYearLabel, placement: "top", "fallback-placements": ["top-end", "auto"] }, scopedSlots: e._u([{ key: "anchor", fn: function() {
181
- return [t("dt-button", { ref: e.refNames[3], staticClass: "d-datepicker__nav-btn", attrs: { id: "nextYearButton", size: "xs", kind: "muted", circle: !0, importance: "clear", type: "button", "aria-label": `${e.changeToLabel} ${e.nextYearLabel} ${e.selectYear + 1}` }, on: { click: function(s) {
182
- return e.changeYear(1);
183
- }, keydown: function(s) {
184
- return e.handleKeyDown(s);
185
- } } }, [t("dt-icon-chevrons-right", { attrs: { size: "200" } })], 1)];
150
+ var N = function() {
151
+ var t = this, e = t._self._c;
152
+ return e("dt-stack", { staticClass: "d-datepicker__month-year", attrs: { direction: "row", gap: "300" } }, [e("dt-stack", { staticClass: "d-datepicker__nav", attrs: { as: "nav", direction: "row", gap: "200" } }, [e("dt-tooltip", { attrs: { "fallback-placements": ["top-start", "auto"], message: t.i18n.$t("DIALTONE_DATEPICKER_PREVIOUS_YEAR"), placement: "top" }, scopedSlots: t._u([{ key: "anchor", fn: function() {
153
+ return [e("dt-button", { ref: t.refNames[0], staticClass: "d-datepicker__nav-btn", attrs: { id: "prevYearButton", "aria-label": t.previousYearAriaLabel, circle: "", importance: "clear", kind: "muted", size: "xs", type: "button" }, on: { click: function(a) {
154
+ return t.changeYear(-1);
155
+ }, keydown: function(a) {
156
+ return t.handleKeyDown(a);
157
+ } } }, [e("dt-icon-chevrons-left", { attrs: { size: "200" } })], 1)];
158
+ }, proxy: !0 }]) }), e("dt-tooltip", { attrs: { "fallback-placements": ["top-start", "auto"], message: t.i18n.$t("DIALTONE_DATEPICKER_PREVIOUS_MONTH"), placement: "top" }, scopedSlots: t._u([{ key: "anchor", fn: function() {
159
+ return [e("dt-button", { ref: t.refNames[1], staticClass: "d-datepicker__nav-btn", attrs: { id: "prevMonthButton", "aria-label": t.previousMonthAriaLabel, circle: "", importance: "clear", kind: "muted", size: "xs", type: "button" }, on: { click: function(a) {
160
+ return t.changeMonth(-1);
161
+ }, keydown: function(a) {
162
+ return t.handleKeyDown(a);
163
+ } } }, [e("dt-icon-chevron-left", { attrs: { size: "200" } })], 1)];
164
+ }, proxy: !0 }]) })], 1), e("div", { staticClass: "d-datepicker__month-year-title", attrs: { id: "calendar-heading" } }, [t._v(" " + t._s(t.formattedMonth(t.selectMonth)) + " " + t._s(t.selectYear) + " ")]), e("dt-stack", { staticClass: "d-datepicker__nav", attrs: { as: "nav", direction: "row", gap: "200" } }, [e("dt-tooltip", { attrs: { "fallback-placements": ["top-end", "auto"], message: t.i18n.$t("DIALTONE_DATEPICKER_NEXT_MONTH"), placement: "top" }, scopedSlots: t._u([{ key: "anchor", fn: function() {
165
+ return [e("dt-button", { ref: t.refNames[2], staticClass: "d-datepicker__nav-btn", attrs: { id: "nextMonthButton", "aria-label": t.nextMonthAriaLabel, circle: "", importance: "clear", kind: "muted", size: "xs", type: "button" }, on: { click: function(a) {
166
+ return t.changeMonth(1);
167
+ }, keydown: function(a) {
168
+ return t.handleKeyDown(a);
169
+ } } }, [e("dt-icon-chevron-right", { attrs: { size: "200" } })], 1)];
170
+ }, proxy: !0 }]) }), e("dt-tooltip", { attrs: { "fallback-placements": ["top-end", "auto"], message: t.i18n.$t("DIALTONE_DATEPICKER_NEXT_YEAR"), placement: "top" }, scopedSlots: t._u([{ key: "anchor", fn: function() {
171
+ return [e("dt-button", { ref: t.refNames[3], staticClass: "d-datepicker__nav-btn", attrs: { id: "nextYearButton", "aria-label": t.nextYearAriaLabel, circle: "", importance: "clear", kind: "muted", size: "xs", type: "button" }, on: { click: function(a) {
172
+ return t.changeYear(1);
173
+ }, keydown: function(a) {
174
+ return t.handleKeyDown(a);
175
+ } } }, [e("dt-icon-chevrons-right", { attrs: { size: "200" } })], 1)];
186
176
  }, proxy: !0 }]) })], 1)], 1);
187
- }, q = [], A = /* @__PURE__ */ h(
188
- P,
189
- S,
190
- q
177
+ }, Y = [], L = /* @__PURE__ */ h(
178
+ I,
179
+ N,
180
+ Y
191
181
  );
192
- const F = A.exports, N = {
182
+ const w = L.exports, O = {
193
183
  name: "DtDatepickerCalendar",
194
- components: { DtButton: d },
184
+ components: { DtButton: u },
185
+ mixins: [p],
195
186
  props: {
196
187
  calendarDays: {
197
188
  type: Array,
198
189
  required: !0
199
- },
200
- locale: {
201
- type: String,
202
- required: !0
203
- },
204
- selectDayLabel: {
205
- type: String,
206
- required: !0
207
190
  }
208
191
  },
209
192
  emits: [
@@ -237,7 +220,7 @@ const F = A.exports, N = {
237
220
  },
238
221
  computed: {
239
222
  weekDays() {
240
- return M(this.locale, Y);
223
+ return T(this.i18n.currentLocale, C);
241
224
  }
242
225
  },
243
226
  watch: {
@@ -248,53 +231,53 @@ const F = A.exports, N = {
248
231
  }
249
232
  },
250
233
  methods: {
251
- dayAriaLabel(a) {
252
- return `${this.selectDayLabel} ${a.text} ${$(a.value, w)} ${l(a.value)}`;
234
+ dayAriaLabel(s) {
235
+ return this.i18n.$t("DIALTONE_DATEPICKER_SELECT_DAY") + ` ${g(s.value, d, this.i18n.currentLocale)}`;
253
236
  },
254
- setDayRef(a, e) {
255
- this.calendarDays.forEach((t, s) => {
256
- t.days.forEach((n, r) => {
257
- const o = `buttonRef_${s}_${r}`, c = this.$refs[o];
237
+ setDayRef(s, t) {
238
+ this.calendarDays.forEach((e, a) => {
239
+ e.days.forEach((n, r) => {
240
+ const i = `buttonRef_${a}_${r}`, c = this.$refs[i];
258
241
  c && n.currentMonth && this.daysRef.push({ el: c[0], day: n });
259
242
  });
260
243
  });
261
244
  },
262
- handleKeyDown(a) {
263
- switch (a.key) {
245
+ handleKeyDown(s) {
246
+ switch (s.key) {
264
247
  case "ArrowUp":
265
- a.preventDefault(), this.focusDay -= 7;
248
+ s.preventDefault(), this.focusDay -= 7;
266
249
  try {
267
250
  this.daysRef[this.focusDay].el.$el.focus();
268
251
  } catch {
269
- const t = R(this.daysRef[this.focusDay + 7].day.value);
252
+ const e = M(this.daysRef[this.focusDay + 7].day.value);
270
253
  this.$emit("go-to-prev-month"), this.$nextTick(() => {
271
- this.setDayRef(), this.daysRef[t - 1].el.$el.focus(), this.focusDay += t - 1;
254
+ this.setDayRef(), this.daysRef[e - 1].el.$el.focus(), this.focusDay += e - 1;
272
255
  });
273
256
  }
274
257
  break;
275
258
  case "ArrowDown":
276
- a.preventDefault(), this.focusDay += 7;
259
+ s.preventDefault(), this.focusDay += 7;
277
260
  try {
278
261
  this.daysRef[this.focusDay].el.$el.focus();
279
262
  } catch {
280
- const t = x(this.daysRef[this.focusDay - 7].day.value);
263
+ const e = A(this.daysRef[this.focusDay - 7].day.value);
281
264
  this.$emit("go-to-next-month"), this.$nextTick(() => {
282
- this.setDayRef(), this.daysRef[t - 1].el.$el.focus(), this.focusDay += t - 1;
265
+ this.setDayRef(), this.daysRef[e - 1].el.$el.focus(), this.focusDay += e - 1;
283
266
  });
284
267
  }
285
268
  break;
286
269
  case "ArrowLeft":
287
- a.preventDefault(), this.focusDay > 0 ? (this.focusDay -= 1, this.daysRef[this.focusDay].el.$el.focus()) : (this.$emit("go-to-prev-month"), this.$nextTick(() => {
270
+ s.preventDefault(), this.focusDay > 0 ? (this.focusDay -= 1, this.daysRef[this.focusDay].el.$el.focus()) : (this.$emit("go-to-prev-month"), this.$nextTick(() => {
288
271
  this.focusLastDay();
289
272
  }));
290
273
  break;
291
274
  case "ArrowRight":
292
- a.preventDefault(), this.focusDay < this.daysRef.length - 1 ? (this.focusDay += 1, this.daysRef[this.focusDay].el.$el.focus()) : (this.$emit("go-to-next-month"), this.$nextTick(() => {
275
+ s.preventDefault(), this.focusDay < this.daysRef.length - 1 ? (this.focusDay += 1, this.daysRef[this.focusDay].el.$el.focus()) : (this.$emit("go-to-next-month"), this.$nextTick(() => {
293
276
  this.focusFirstDay();
294
277
  }));
295
278
  break;
296
279
  case "Tab":
297
- a.preventDefault(), this.$emit("focus-month-year-picker");
280
+ s.preventDefault(), this.$emit("focus-month-year-picker");
298
281
  break;
299
282
  case "Escape":
300
283
  this.$emit("close-datepicker");
@@ -311,105 +294,36 @@ const F = A.exports, N = {
311
294
  this.focusDay = this.daysRef.length - 1, this.daysRef[this.focusDay].el.$el.focus();
312
295
  });
313
296
  },
314
- selectDay(a) {
315
- a.currentMonth && (this.selectedDay = a.text, this.$emit("select-date", a.value));
297
+ selectDay(s) {
298
+ s.currentMonth && (this.selectedDay = s.text, this.$emit("select-date", s.value));
316
299
  }
317
300
  }
318
301
  };
319
- var B = function() {
320
- var e = this, t = e._self._c;
321
- return t("table", { staticClass: "d-datepicker__calendar", attrs: { "aria-labelledby": "calendar-heading" } }, [t("thead", [t("tr", e._l(e.weekDays, function(s) {
322
- return t("th", { key: s, staticClass: "d-datepicker__cell d-datepicker__cell--header", attrs: { scope: "col" } }, [t("span", { staticClass: "d-datepicker__weekday", attrs: { title: s, "aria-label": s } }, [e._v(" " + e._s(s))])]);
323
- }), 0)]), t("tbody", e._l(e.calendarDays, function(s, n) {
324
- return t("tr", { key: n }, e._l(s.days, function(r, o) {
325
- return t("td", { key: n + o, staticClass: "d-datepicker__cell", attrs: { role: "listbox" } }, [t("dt-button", { ref: `buttonRef_${n}_${o}`, refInFor: !0, staticClass: "d-datepicker__day", class: {
302
+ var K = function() {
303
+ var t = this, e = t._self._c;
304
+ return e("table", { staticClass: "d-datepicker__calendar", attrs: { "aria-labelledby": "calendar-heading" } }, [e("thead", [e("tr", t._l(t.weekDays, function(a) {
305
+ return e("th", { key: a, staticClass: "d-datepicker__cell d-datepicker__cell--header", attrs: { scope: "col" } }, [e("span", { staticClass: "d-datepicker__weekday", attrs: { title: a, "aria-label": a } }, [t._v(" " + t._s(a))])]);
306
+ }), 0)]), e("tbody", t._l(t.calendarDays, function(a, n) {
307
+ return e("tr", { key: n }, t._l(a.days, function(r, i) {
308
+ return e("td", { key: n + i, staticClass: "d-datepicker__cell", attrs: { role: "listbox" } }, [e("dt-button", { ref: `buttonRef_${n}_${i}`, refInFor: !0, staticClass: "d-datepicker__day", class: {
326
309
  "d-datepicker__day--disabled": !r.currentMonth,
327
- "d-datepicker__day--selected": e.selectedDay ? r.text === e.selectedDay && r.currentMonth : r.selected
328
- }, attrs: { circle: !0, size: "sm", importance: "clear", disabled: !r.currentMonth, type: "button", "aria-selected": e.selectedDay ? r.text === e.selectedDay && r.currentMonth : r.selected, "aria-label": e.dayAriaLabel(r), role: "option" }, on: { click: function(c) {
329
- return e.selectDay(r);
310
+ "d-datepicker__day--selected": t.selectedDay ? r.text === t.selectedDay && r.currentMonth : r.selected
311
+ }, attrs: { circle: !0, size: "sm", importance: "clear", disabled: !r.currentMonth, type: "button", "aria-selected": t.selectedDay ? r.text === t.selectedDay && r.currentMonth : r.selected, "aria-label": t.dayAriaLabel(r), role: "option" }, on: { click: function(c) {
312
+ return t.selectDay(r);
330
313
  }, keydown: function(c) {
331
- return e.handleKeyDown(c);
332
- } } }, [e._v(" " + e._s(r.text) + " ")])], 1);
314
+ return t.handleKeyDown(c);
315
+ } } }, [t._v(" " + t._s(r.text) + " ")])], 1);
333
316
  }), 0);
334
317
  }), 0)]);
335
- }, z = [], K = /* @__PURE__ */ h(
336
- N,
337
- B,
338
- z
318
+ }, B = [], F = /* @__PURE__ */ h(
319
+ O,
320
+ K,
321
+ B
339
322
  );
340
- const I = K.exports, E = {
323
+ const z = F.exports, S = {
341
324
  name: "DtDatepicker",
342
- components: { DtStack: u, MonthYearPicker: F, Calendar: I },
325
+ components: { DtStack: f, MonthYearPicker: w, Calendar: z },
343
326
  props: {
344
- /**
345
- * Label for the previous month button
346
- *
347
- * @type {String}
348
- * @example 'Previous month'
349
- */
350
- prevMonthLabel: {
351
- type: String,
352
- required: !0
353
- },
354
- /**
355
- * Label for the next month button
356
- *
357
- * @type {String}
358
- * @example 'Next month'
359
- */
360
- nextMonthLabel: {
361
- type: String,
362
- required: !0
363
- },
364
- /**
365
- * Label for the previous year button
366
- *
367
- * @type {String}
368
- * @example 'Previous year'
369
- */
370
- prevYearLabel: {
371
- type: String,
372
- required: !0
373
- },
374
- /**
375
- * Label for the next year button
376
- *
377
- * @type {String}
378
- * @example 'Next year'
379
- */
380
- nextYearLabel: {
381
- type: String,
382
- required: !0
383
- },
384
- /**
385
- * Label for the select day button
386
- *
387
- * @type {String}
388
- * @example 'Select day'
389
- */
390
- selectDayLabel: {
391
- type: String,
392
- required: !0
393
- },
394
- /**
395
- * Label for the change to button
396
- *
397
- * @type {String}
398
- * @example 'Change to'
399
- */
400
- changeToLabel: {
401
- type: String,
402
- required: !0
403
- },
404
- /**
405
- * Locale for the calendar
406
- *
407
- * @type {String}
408
- */
409
- locale: {
410
- type: String,
411
- default: "en-US"
412
- },
413
327
  /**
414
328
  * Selected date
415
329
  *
@@ -441,40 +355,40 @@ const I = K.exports, E = {
441
355
  };
442
356
  },
443
357
  mounted() {
444
- C(this.$el, this.$options.name);
358
+ x(this.$el, this.$options.name);
445
359
  },
446
360
  methods: {
447
- updateCalendarDays(a) {
448
- this.calendarDays = a;
361
+ updateCalendarDays(s) {
362
+ this.calendarDays = s;
449
363
  }
450
364
  }
451
365
  };
452
- var O = function() {
453
- var e = this, t = e._self._c;
454
- return t("dt-stack", { staticClass: "d-datepicker", attrs: { gap: "400" } }, [t("div", { staticClass: "d-datepicker__hd" }, [t("month-year-picker", { ref: "monthYearPicker", attrs: { locale: e.locale, "prev-month-label": e.prevMonthLabel, "next-month-label": e.nextMonthLabel, "prev-year-label": e.prevYearLabel, "next-year-label": e.nextYearLabel, "change-to-label": e.changeToLabel, "selected-date": e.selectedDate }, on: { "calendar-days": e.updateCalendarDays, "focus-first-day": function(s) {
455
- return e.$refs.calendar.focusFirstDay();
456
- }, "focus-last-day": function(s) {
457
- return e.$refs.calendar.focusLastDay();
458
- }, "close-datepicker": function(s) {
459
- return e.$emit("close-datepicker");
460
- } } })], 1), t("div", { staticClass: "d-datepicker__bd" }, [t("calendar", { ref: "calendar", attrs: { locale: e.locale, "calendar-days": e.calendarDays, "select-day-label": e.selectDayLabel }, on: { "select-date": function(s) {
461
- return e.$emit("selected-date", s);
462
- }, "focus-month-year-picker": function(s) {
463
- return e.$refs.monthYearPicker.focusMonthYearPicker();
464
- }, "close-datepicker": function(s) {
465
- return e.$emit("close-datepicker");
466
- }, "go-to-next-month": function(s) {
467
- return e.$refs.monthYearPicker.goToNextMonth();
468
- }, "go-to-prev-month": function(s) {
469
- return e.$refs.monthYearPicker.goToPrevMonth();
366
+ var H = function() {
367
+ var t = this, e = t._self._c;
368
+ return e("dt-stack", { staticClass: "d-datepicker", attrs: { gap: "400" } }, [e("div", { staticClass: "d-datepicker__hd" }, [e("month-year-picker", { ref: "monthYearPicker", attrs: { "selected-date": t.selectedDate }, on: { "calendar-days": t.updateCalendarDays, "focus-first-day": function(a) {
369
+ return t.$refs.calendar.focusFirstDay();
370
+ }, "focus-last-day": function(a) {
371
+ return t.$refs.calendar.focusLastDay();
372
+ }, "close-datepicker": function(a) {
373
+ return t.$emit("close-datepicker");
374
+ } } })], 1), e("div", { staticClass: "d-datepicker__bd" }, [e("calendar", { ref: "calendar", attrs: { "calendar-days": t.calendarDays }, on: { "select-date": function(a) {
375
+ return t.$emit("selected-date", a);
376
+ }, "focus-month-year-picker": function(a) {
377
+ return t.$refs.monthYearPicker.focusMonthYearPicker();
378
+ }, "close-datepicker": function(a) {
379
+ return t.$emit("close-datepicker");
380
+ }, "go-to-next-month": function(a) {
381
+ return t.$refs.monthYearPicker.goToNextMonth();
382
+ }, "go-to-prev-month": function(a) {
383
+ return t.$refs.monthYearPicker.goToPrevMonth();
470
384
  } } })], 1)]);
471
- }, U = [], H = /* @__PURE__ */ h(
472
- E,
473
- O,
385
+ }, U = [], G = /* @__PURE__ */ h(
386
+ S,
387
+ H,
474
388
  U
475
389
  );
476
- const te = H.exports;
390
+ const st = G.exports;
477
391
  export {
478
- te as default
392
+ st as default
479
393
  };
480
394
  //# sourceMappingURL=datepicker.js.map