@dialpad/dialtone-vue 2.126.0 → 2.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 (425) hide show
  1. package/dist/chunks/_plugin-vue2_normalizer-1aBeR4AK.js +59 -0
  2. package/dist/chunks/_plugin-vue2_normalizer-1aBeR4AK.js.map +1 -0
  3. package/dist/chunks/_plugin-vue2_normalizer-sOSkiPF3.js +60 -0
  4. package/dist/chunks/_plugin-vue2_normalizer-sOSkiPF3.js.map +1 -0
  5. package/dist/chunks/{dropdown-SMWaTWyF.js → dropdown-DTtcQEFC.js} +131 -84
  6. package/dist/chunks/{dropdown-SMWaTWyF.js.map → dropdown-DTtcQEFC.js.map} +1 -1
  7. package/dist/chunks/dropdown-IaLNHmVd.js +403 -0
  8. package/dist/chunks/dropdown-IaLNHmVd.js.map +1 -0
  9. package/dist/chunks/dropdown_constants-2pGCXy7m.js +8 -0
  10. package/dist/chunks/dropdown_constants-2pGCXy7m.js.map +1 -0
  11. package/dist/chunks/dropdown_constants-w1MXGC3Z.js +9 -0
  12. package/dist/chunks/dropdown_constants-w1MXGC3Z.js.map +1 -0
  13. package/dist/chunks/{icon_constants-OpYAAKwF.js → icon_constants-Dy4MEUJL.js} +7 -6
  14. package/dist/chunks/{icon_constants-OpYAAKwF.js.map → icon_constants-Dy4MEUJL.js.map} +1 -1
  15. package/dist/chunks/icon_constants-QYpmdE0R.js +16 -0
  16. package/dist/chunks/icon_constants-QYpmdE0R.js.map +1 -0
  17. package/dist/chunks/index-DUr1xHR0.js +442 -0
  18. package/dist/chunks/{index-nIyl_PL6.js.map → index-DUr1xHR0.js.map} +1 -1
  19. package/dist/chunks/index-IA-Z8fgm.js +441 -0
  20. package/dist/chunks/index-IA-Z8fgm.js.map +1 -0
  21. package/dist/chunks/{input-1tm09l_-.js → input-6kbd8Pju.js} +83 -60
  22. package/dist/chunks/{input-1tm09l_-.js.map → input-6kbd8Pju.js.map} +1 -1
  23. package/dist/chunks/input-Axw-wFj2.js +295 -0
  24. package/dist/chunks/input-Axw-wFj2.js.map +1 -0
  25. package/dist/chunks/input_group-m3cWYUfI.js +143 -0
  26. package/dist/chunks/{input_group-zcAq3DQl.js.map → input_group-m3cWYUfI.js.map} +1 -1
  27. package/dist/chunks/{input_group-zcAq3DQl.js → input_group-qVZaS5Bb.js} +27 -24
  28. package/dist/chunks/input_group-qVZaS5Bb.js.map +1 -0
  29. package/dist/chunks/keyboard_list_navigation-ScXhrxya.js +284 -0
  30. package/dist/chunks/{keyboard_list_navigation-F0O8nht0.js.map → keyboard_list_navigation-ScXhrxya.js.map} +1 -1
  31. package/dist/chunks/keyboard_list_navigation-fJnl_Iox.js +283 -0
  32. package/dist/chunks/keyboard_list_navigation-fJnl_Iox.js.map +1 -0
  33. package/dist/chunks/link_constants-Huj7D_hm.js +22 -0
  34. package/dist/chunks/{link_constants-vIUB92L4.js.map → link_constants-Huj7D_hm.js.map} +1 -1
  35. package/dist/chunks/link_constants-nWVlXQBs.js +23 -0
  36. package/dist/chunks/link_constants-nWVlXQBs.js.map +1 -0
  37. package/dist/chunks/list_item_constants-EiqkqZvP.js +13 -0
  38. package/dist/chunks/{list_item_constants-LTUc74pD.js.map → list_item_constants-EiqkqZvP.js.map} +1 -1
  39. package/dist/chunks/list_item_constants-u1xcN9Dd.js +14 -0
  40. package/dist/chunks/list_item_constants-u1xcN9Dd.js.map +1 -0
  41. package/dist/chunks/modal-VgxXAQFP.js +105 -0
  42. package/dist/chunks/{modal-VuMFkZFH.js.map → modal-VgxXAQFP.js.map} +1 -1
  43. package/dist/chunks/modal-XOr4kiNZ.js +106 -0
  44. package/dist/chunks/modal-XOr4kiNZ.js.map +1 -0
  45. package/dist/chunks/notice_action-IRUoLX2d.js +196 -0
  46. package/dist/chunks/{notice_action-9NmtQRai.js.map → notice_action-IRUoLX2d.js.map} +1 -1
  47. package/dist/chunks/notice_action-P6uDyE9x.js +195 -0
  48. package/dist/chunks/notice_action-P6uDyE9x.js.map +1 -0
  49. package/dist/chunks/notice_constants-7Qt2CQEY.js +7 -0
  50. package/dist/chunks/{notice_constants-c--hBFQw.js.map → notice_constants-7Qt2CQEY.js.map} +1 -1
  51. package/dist/chunks/notice_constants-UXo9e3bS.js +6 -0
  52. package/dist/chunks/notice_constants-UXo9e3bS.js.map +1 -0
  53. package/dist/chunks/popover_constants-JwBF9h1Z.js +143 -0
  54. package/dist/chunks/{popover_constants-qjlEkroB.js.map → popover_constants-JwBF9h1Z.js.map} +1 -1
  55. package/dist/chunks/popover_constants-Qkpb0yh2.js +144 -0
  56. package/dist/chunks/popover_constants-Qkpb0yh2.js.map +1 -0
  57. package/dist/chunks/sr_only_close_button-81bHIpPu.js +95 -0
  58. package/dist/chunks/{sr_only_close_button-JGole5Xi.js.map → sr_only_close_button-81bHIpPu.js.map} +1 -1
  59. package/dist/chunks/sr_only_close_button-ZaGdAHz7.js +94 -0
  60. package/dist/chunks/sr_only_close_button-ZaGdAHz7.js.map +1 -0
  61. package/dist/chunks/stack_constants-HraCekPm.js +15 -0
  62. package/dist/chunks/{stack_constants-u7tNqGtc.js.map → stack_constants-HraCekPm.js.map} +1 -1
  63. package/dist/chunks/stack_constants-SMzMWnAQ.js +14 -0
  64. package/dist/chunks/stack_constants-SMzMWnAQ.js.map +1 -0
  65. package/dist/chunks/tab-FcsV5VmK.js +386 -0
  66. package/dist/chunks/tab-FcsV5VmK.js.map +1 -0
  67. package/dist/chunks/tab-V4cb44Ry.js +387 -0
  68. package/dist/chunks/{tab-Qm9LVkYj.js.map → tab-V4cb44Ry.js.map} +1 -1
  69. package/dist/common/constants.cjs +60 -0
  70. package/dist/common/constants.cjs.map +1 -0
  71. package/dist/{lib → common}/constants.js +25 -18
  72. package/dist/{lib → common}/constants.js.map +1 -1
  73. package/dist/common/dates.cjs +72 -0
  74. package/dist/common/dates.cjs.map +1 -0
  75. package/dist/common/dates.js +72 -0
  76. package/dist/{lib → common}/dates.js.map +1 -1
  77. package/dist/common/emoji.cjs +163 -0
  78. package/dist/common/emoji.cjs.map +1 -0
  79. package/dist/common/emoji.js +168 -0
  80. package/dist/common/emoji.js.map +1 -0
  81. package/dist/common/mixins.cjs +17 -0
  82. package/dist/common/mixins.cjs.map +1 -0
  83. package/dist/common/mixins.js +17 -0
  84. package/dist/common/utils.cjs +237 -0
  85. package/dist/common/utils.cjs.map +1 -0
  86. package/dist/common/utils.js +237 -0
  87. package/dist/{lib → common}/utils.js.map +1 -1
  88. package/dist/common/validators.cjs +23 -0
  89. package/dist/common/validators.cjs.map +1 -0
  90. package/dist/common/validators.js +23 -0
  91. package/dist/{lib → common}/validators.js.map +1 -1
  92. package/dist/component-documentation.json +1 -1
  93. package/dist/dialtone-vue.cjs +373 -0
  94. package/dist/dialtone-vue.cjs.map +1 -0
  95. package/dist/dialtone-vue.js +325 -324
  96. package/dist/dialtone-vue.js.map +1 -1
  97. package/dist/lib/attachment-carousel.cjs +261 -0
  98. package/dist/lib/attachment-carousel.cjs.map +1 -0
  99. package/dist/lib/attachment-carousel.js +96 -85
  100. package/dist/lib/attachment-carousel.js.map +1 -1
  101. package/dist/lib/avatar.cjs +400 -0
  102. package/dist/lib/avatar.cjs.map +1 -0
  103. package/dist/lib/avatar.js +111 -80
  104. package/dist/lib/avatar.js.map +1 -1
  105. package/dist/lib/badge.cjs +183 -0
  106. package/dist/lib/badge.cjs.map +1 -0
  107. package/dist/lib/badge.js +53 -39
  108. package/dist/lib/badge.js.map +1 -1
  109. package/dist/lib/banner.cjs +210 -0
  110. package/dist/lib/banner.cjs.map +1 -0
  111. package/dist/lib/banner.js +58 -48
  112. package/dist/lib/banner.js.map +1 -1
  113. package/dist/lib/breadcrumbs.cjs +147 -0
  114. package/dist/lib/breadcrumbs.cjs.map +1 -0
  115. package/dist/lib/breadcrumbs.js +57 -48
  116. package/dist/lib/breadcrumbs.js.map +1 -1
  117. package/dist/lib/button-group.cjs +48 -0
  118. package/dist/lib/button-group.cjs.map +1 -0
  119. package/dist/lib/button-group.js +21 -18
  120. package/dist/lib/button-group.js.map +1 -1
  121. package/dist/lib/button.cjs +350 -0
  122. package/dist/lib/button.cjs.map +1 -0
  123. package/dist/lib/button.js +98 -76
  124. package/dist/lib/button.js.map +1 -1
  125. package/dist/lib/callbar-button-with-popover.cjs +250 -0
  126. package/dist/lib/callbar-button-with-popover.cjs.map +1 -0
  127. package/dist/lib/callbar-button-with-popover.js +66 -51
  128. package/dist/lib/callbar-button-with-popover.js.map +1 -1
  129. package/dist/lib/callbar-button.cjs +183 -0
  130. package/dist/lib/callbar-button.cjs.map +1 -0
  131. package/dist/lib/callbar-button.js +42 -34
  132. package/dist/lib/callbar-button.js.map +1 -1
  133. package/dist/lib/callbox.cjs +147 -0
  134. package/dist/lib/callbox.cjs.map +1 -0
  135. package/dist/lib/callbox.js +38 -33
  136. package/dist/lib/callbox.js.map +1 -1
  137. package/dist/lib/card.cjs +74 -0
  138. package/dist/lib/card.cjs.map +1 -0
  139. package/dist/lib/card.js +22 -20
  140. package/dist/lib/card.js.map +1 -1
  141. package/dist/lib/checkbox-group.cjs +130 -0
  142. package/dist/lib/checkbox-group.cjs.map +1 -0
  143. package/dist/lib/checkbox-group.js +42 -29
  144. package/dist/lib/checkbox-group.js.map +1 -1
  145. package/dist/lib/checkbox.cjs +128 -0
  146. package/dist/lib/checkbox.cjs.map +1 -0
  147. package/dist/lib/checkbox.js +46 -35
  148. package/dist/lib/checkbox.js.map +1 -1
  149. package/dist/lib/chip.cjs +199 -0
  150. package/dist/lib/chip.cjs.map +1 -0
  151. package/dist/lib/chip.js +59 -46
  152. package/dist/lib/chip.js.map +1 -1
  153. package/dist/lib/codeblock.cjs +30 -0
  154. package/dist/lib/codeblock.cjs.map +1 -0
  155. package/dist/lib/codeblock.js +15 -14
  156. package/dist/lib/codeblock.js.map +1 -1
  157. package/dist/lib/collapsible.cjs +335 -0
  158. package/dist/lib/collapsible.cjs.map +1 -0
  159. package/dist/lib/collapsible.js +91 -69
  160. package/dist/lib/collapsible.js.map +1 -1
  161. package/dist/lib/combobox-multi-select.cjs +520 -0
  162. package/dist/lib/combobox-multi-select.cjs.map +1 -0
  163. package/dist/lib/combobox-multi-select.js +223 -136
  164. package/dist/lib/combobox-multi-select.js.map +1 -1
  165. package/dist/lib/combobox-with-popover.cjs +385 -0
  166. package/dist/lib/combobox-with-popover.cjs.map +1 -0
  167. package/dist/lib/combobox-with-popover.js +131 -87
  168. package/dist/lib/combobox-with-popover.js.map +1 -1
  169. package/dist/lib/combobox.cjs +19 -0
  170. package/dist/lib/combobox.cjs.map +1 -0
  171. package/dist/lib/combobox.js +9 -9
  172. package/dist/lib/contact-info.cjs +146 -0
  173. package/dist/lib/contact-info.cjs.map +1 -0
  174. package/dist/lib/contact-info.js +34 -33
  175. package/dist/lib/contact-info.js.map +1 -1
  176. package/dist/lib/contact-row.cjs +206 -0
  177. package/dist/lib/contact-row.cjs.map +1 -0
  178. package/dist/lib/contact-row.js +42 -39
  179. package/dist/lib/contact-row.js.map +1 -1
  180. package/dist/lib/datepicker.cjs +663 -0
  181. package/dist/lib/datepicker.cjs.map +1 -0
  182. package/dist/lib/datepicker.js +330 -219
  183. package/dist/lib/datepicker.js.map +1 -1
  184. package/dist/lib/description-list.cjs +115 -0
  185. package/dist/lib/description-list.cjs.map +1 -0
  186. package/dist/lib/description-list.js +51 -19
  187. package/dist/lib/description-list.js.map +1 -1
  188. package/dist/lib/dropdown.cjs +46 -0
  189. package/dist/lib/dropdown.cjs.map +1 -0
  190. package/dist/lib/dropdown.js +27 -26
  191. package/dist/lib/dropdown.js.map +1 -1
  192. package/dist/lib/editor.cjs +556 -0
  193. package/dist/lib/editor.cjs.map +1 -0
  194. package/dist/lib/editor.js +191 -162
  195. package/dist/lib/editor.js.map +1 -1
  196. package/dist/lib/emoji-picker.cjs +1064 -0
  197. package/dist/lib/emoji-picker.cjs.map +1 -0
  198. package/dist/lib/emoji-picker.js +638 -375
  199. package/dist/lib/emoji-picker.js.map +1 -1
  200. package/dist/lib/emoji-row.cjs +89 -0
  201. package/dist/lib/emoji-row.cjs.map +1 -0
  202. package/dist/lib/emoji-row.js +46 -40
  203. package/dist/lib/emoji-row.js.map +1 -1
  204. package/dist/lib/emoji-text-wrapper.cjs +110 -0
  205. package/dist/lib/emoji-text-wrapper.cjs.map +1 -0
  206. package/dist/lib/emoji-text-wrapper.js +49 -35
  207. package/dist/lib/emoji-text-wrapper.js.map +1 -1
  208. package/dist/lib/emoji.cjs +146 -0
  209. package/dist/lib/emoji.cjs.map +1 -0
  210. package/dist/lib/emoji.js +140 -5
  211. package/dist/lib/emoji.js.map +1 -1
  212. package/dist/lib/feed-item-row.cjs +214 -0
  213. package/dist/lib/feed-item-row.cjs.map +1 -0
  214. package/dist/lib/feed-item-row.js +71 -64
  215. package/dist/lib/feed-item-row.js.map +1 -1
  216. package/dist/lib/feed-pill.cjs +150 -0
  217. package/dist/lib/feed-pill.cjs.map +1 -0
  218. package/dist/lib/feed-pill.js +60 -52
  219. package/dist/lib/feed-pill.js.map +1 -1
  220. package/dist/lib/general-row.cjs +406 -0
  221. package/dist/lib/general-row.cjs.map +1 -0
  222. package/dist/lib/general-row.js +133 -106
  223. package/dist/lib/general-row.js.map +1 -1
  224. package/dist/lib/group-row.cjs +118 -0
  225. package/dist/lib/group-row.cjs.map +1 -0
  226. package/dist/lib/group-row.js +34 -31
  227. package/dist/lib/group-row.js.map +1 -1
  228. package/dist/lib/grouped-chip.cjs +46 -0
  229. package/dist/lib/grouped-chip.cjs.map +1 -0
  230. package/dist/lib/grouped-chip.js +28 -27
  231. package/dist/lib/grouped-chip.js.map +1 -1
  232. package/dist/lib/hovercard.cjs +228 -0
  233. package/dist/lib/hovercard.cjs.map +1 -0
  234. package/dist/lib/hovercard.js +98 -64
  235. package/dist/lib/hovercard.js.map +1 -1
  236. package/dist/lib/icon.cjs +60 -0
  237. package/dist/lib/icon.cjs.map +1 -0
  238. package/dist/lib/icon.js +22 -44
  239. package/dist/lib/icon.js.map +1 -1
  240. package/dist/lib/image-viewer.cjs +191 -0
  241. package/dist/lib/image-viewer.cjs.map +1 -0
  242. package/dist/lib/image-viewer.js +83 -63
  243. package/dist/lib/image-viewer.js.map +1 -1
  244. package/dist/lib/input-group.cjs +92 -0
  245. package/dist/lib/input-group.cjs.map +1 -0
  246. package/dist/lib/input-group.js +29 -27
  247. package/dist/lib/input-group.js.map +1 -1
  248. package/dist/lib/input.cjs +493 -0
  249. package/dist/lib/input.cjs.map +1 -0
  250. package/dist/lib/input.js +127 -89
  251. package/dist/lib/input.js.map +1 -1
  252. package/dist/lib/item-layout.cjs +41 -0
  253. package/dist/lib/item-layout.cjs.map +1 -0
  254. package/dist/lib/item-layout.js +15 -13
  255. package/dist/lib/item-layout.js.map +1 -1
  256. package/dist/lib/ivr-node.cjs +210 -0
  257. package/dist/lib/ivr-node.cjs.map +1 -0
  258. package/dist/lib/ivr-node.js +115 -100
  259. package/dist/lib/ivr-node.js.map +1 -1
  260. package/dist/lib/keyboard-shortcut.cjs +107 -0
  261. package/dist/lib/keyboard-shortcut.cjs.map +1 -0
  262. package/dist/lib/keyboard-shortcut.js +42 -35
  263. package/dist/lib/keyboard-shortcut.js.map +1 -1
  264. package/dist/lib/lazy-show.cjs +81 -0
  265. package/dist/lib/lazy-show.cjs.map +1 -0
  266. package/dist/lib/lazy-show.js +20 -16
  267. package/dist/lib/lazy-show.js.map +1 -1
  268. package/dist/lib/link.cjs +71 -0
  269. package/dist/lib/link.cjs.map +1 -0
  270. package/dist/lib/link.js +22 -20
  271. package/dist/lib/link.js.map +1 -1
  272. package/dist/lib/list-item-group.cjs +61 -0
  273. package/dist/lib/list-item-group.cjs.map +1 -0
  274. package/dist/lib/list-item-group.js +19 -17
  275. package/dist/lib/list-item-group.js.map +1 -1
  276. package/dist/lib/list-item.cjs +205 -0
  277. package/dist/lib/list-item.cjs.map +1 -0
  278. package/dist/lib/list-item.js +67 -57
  279. package/dist/lib/list-item.js.map +1 -1
  280. package/dist/lib/message-input.cjs +555 -0
  281. package/dist/lib/message-input.cjs.map +1 -0
  282. package/dist/lib/message-input.js +211 -147
  283. package/dist/lib/message-input.js.map +1 -1
  284. package/dist/lib/modal.cjs +351 -0
  285. package/dist/lib/modal.cjs.map +1 -0
  286. package/dist/lib/modal.js +118 -91
  287. package/dist/lib/modal.js.map +1 -1
  288. package/dist/lib/notice.cjs +160 -0
  289. package/dist/lib/notice.cjs.map +1 -0
  290. package/dist/lib/notice.js +46 -44
  291. package/dist/lib/notice.js.map +1 -1
  292. package/dist/lib/pagination.cjs +153 -0
  293. package/dist/lib/pagination.cjs.map +1 -0
  294. package/dist/lib/pagination.js +60 -49
  295. package/dist/lib/pagination.js.map +1 -1
  296. package/dist/lib/popover.cjs +957 -0
  297. package/dist/lib/popover.cjs.map +1 -0
  298. package/dist/lib/popover.js +401 -222
  299. package/dist/lib/popover.js.map +1 -1
  300. package/dist/lib/presence.cjs +66 -0
  301. package/dist/lib/presence.cjs.map +1 -0
  302. package/dist/lib/presence.js +32 -26
  303. package/dist/lib/presence.js.map +1 -1
  304. package/dist/lib/radio-group.cjs +99 -0
  305. package/dist/lib/radio-group.cjs.map +1 -0
  306. package/dist/lib/radio-group.js +24 -22
  307. package/dist/lib/radio-group.js.map +1 -1
  308. package/dist/lib/radio.cjs +119 -0
  309. package/dist/lib/radio.cjs.map +1 -0
  310. package/dist/lib/radio.js +43 -35
  311. package/dist/lib/radio.js.map +1 -1
  312. package/dist/lib/rich-text-editor.cjs +1139 -0
  313. package/dist/lib/rich-text-editor.cjs.map +1 -0
  314. package/dist/lib/rich-text-editor.js +611 -392
  315. package/dist/lib/rich-text-editor.js.map +1 -1
  316. package/dist/lib/root-layout.cjs +131 -0
  317. package/dist/lib/root-layout.cjs.map +1 -0
  318. package/dist/lib/root-layout.js +28 -24
  319. package/dist/lib/root-layout.js.map +1 -1
  320. package/dist/lib/select-menu.cjs +283 -0
  321. package/dist/lib/select-menu.cjs.map +1 -0
  322. package/dist/lib/select-menu.js +101 -61
  323. package/dist/lib/select-menu.js.map +1 -1
  324. package/dist/lib/settings-menu-button.cjs +66 -0
  325. package/dist/lib/settings-menu-button.cjs.map +1 -0
  326. package/dist/lib/settings-menu-button.js +26 -25
  327. package/dist/lib/settings-menu-button.js.map +1 -1
  328. package/dist/lib/skeleton.cjs +613 -0
  329. package/dist/lib/skeleton.cjs.map +1 -0
  330. package/dist/lib/skeleton.js +174 -135
  331. package/dist/lib/skeleton.js.map +1 -1
  332. package/dist/lib/stack.cjs +128 -0
  333. package/dist/lib/stack.cjs.map +1 -0
  334. package/dist/lib/stack.js +66 -56
  335. package/dist/lib/stack.js.map +1 -1
  336. package/dist/lib/tabs.cjs +100 -0
  337. package/dist/lib/tabs.cjs.map +1 -0
  338. package/dist/lib/tabs.js +42 -35
  339. package/dist/lib/tabs.js.map +1 -1
  340. package/dist/lib/time-pill.cjs +48 -0
  341. package/dist/lib/time-pill.cjs.map +1 -0
  342. package/dist/lib/time-pill.js +21 -16
  343. package/dist/lib/time-pill.js.map +1 -1
  344. package/dist/lib/toast.cjs +248 -0
  345. package/dist/lib/toast.cjs.map +1 -0
  346. package/dist/lib/toast.js +78 -56
  347. package/dist/lib/toast.js.map +1 -1
  348. package/dist/lib/toggle.cjs +178 -0
  349. package/dist/lib/toggle.cjs.map +1 -0
  350. package/dist/lib/toggle.js +46 -37
  351. package/dist/lib/toggle.js.map +1 -1
  352. package/dist/lib/tooltip-directive.cjs +88 -0
  353. package/dist/lib/tooltip-directive.cjs.map +1 -0
  354. package/dist/lib/tooltip-directive.js +55 -41
  355. package/dist/lib/tooltip-directive.js.map +1 -1
  356. package/dist/lib/tooltip.cjs +437 -0
  357. package/dist/lib/tooltip.cjs.map +1 -0
  358. package/dist/lib/tooltip.js +152 -90
  359. package/dist/lib/tooltip.js.map +1 -1
  360. package/dist/lib/top-banner-info.cjs +64 -0
  361. package/dist/lib/top-banner-info.cjs.map +1 -0
  362. package/dist/lib/top-banner-info.js +22 -18
  363. package/dist/lib/top-banner-info.js.map +1 -1
  364. package/dist/lib/unread-pill.cjs +64 -0
  365. package/dist/lib/unread-pill.cjs.map +1 -0
  366. package/dist/lib/unread-pill.js +25 -22
  367. package/dist/lib/unread-pill.js.map +1 -1
  368. package/dist/lib/validation-messages.cjs +86 -0
  369. package/dist/lib/validation-messages.cjs.map +1 -0
  370. package/dist/lib/validation-messages.js +32 -29
  371. package/dist/lib/validation-messages.js.map +1 -1
  372. package/dist/style.css +1214 -1
  373. package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
  374. package/dist/types/components/button/button.vue.d.ts +2 -2
  375. package/dist/types/components/card/card.vue.d.ts +1 -1
  376. package/dist/types/components/chip/chip.vue.d.ts +1 -1
  377. package/dist/types/components/collapsible/collapsible.vue.d.ts +2 -2
  378. package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
  379. package/dist/types/components/dropdown/dropdown.vue.d.ts +1 -1
  380. package/dist/types/components/emoji/emoji.vue.d.ts +1 -1
  381. package/dist/types/components/icon/icon.vue.d.ts +2 -22
  382. package/dist/types/components/icon/icon.vue.d.ts.map +1 -1
  383. package/dist/types/components/list_item_group/list_item_group.vue.d.ts +1 -1
  384. package/dist/types/components/modal/modal.vue.d.ts +2 -2
  385. package/dist/types/components/popover/popover_header_footer.vue.d.ts +1 -1
  386. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +2 -2
  387. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +2 -2
  388. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +91 -1
  389. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  390. package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
  391. package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +3 -3
  392. package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +2 -2
  393. package/dist/types/components/skeleton/skeleton-text.vue.d.ts +2 -2
  394. package/dist/types/components/skeleton/skeleton.vue.d.ts +1 -1
  395. package/dist/types/components/tooltip/tooltip.vue.d.ts +2 -2
  396. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +1 -1
  397. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
  398. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +2 -2
  399. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +90 -0
  400. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  401. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
  402. package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -1
  403. package/package.json +37 -35
  404. package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.js +0 -33
  405. package/dist/chunks/_plugin-vue2_normalizer-u6G_3nkj.js.map +0 -1
  406. package/dist/chunks/dropdown_constants-EUcDxBrX.js +0 -9
  407. package/dist/chunks/dropdown_constants-EUcDxBrX.js.map +0 -1
  408. package/dist/chunks/index-YkSDT8-g.js +0 -244
  409. package/dist/chunks/index-YkSDT8-g.js.map +0 -1
  410. package/dist/chunks/index-nIyl_PL6.js +0 -372
  411. package/dist/chunks/keyboard_list_navigation-F0O8nht0.js +0 -197
  412. package/dist/chunks/link_constants-vIUB92L4.js +0 -16
  413. package/dist/chunks/list_item_constants-LTUc74pD.js +0 -13
  414. package/dist/chunks/modal-VuMFkZFH.js +0 -82
  415. package/dist/chunks/notice_action-9NmtQRai.js +0 -182
  416. package/dist/chunks/notice_constants-c--hBFQw.js +0 -6
  417. package/dist/chunks/popover_constants-qjlEkroB.js +0 -114
  418. package/dist/chunks/sr_only_close_button-JGole5Xi.js +0 -86
  419. package/dist/chunks/stack_constants-u7tNqGtc.js +0 -13
  420. package/dist/chunks/tab-Qm9LVkYj.js +0 -346
  421. package/dist/lib/dates.js +0 -57
  422. package/dist/lib/mixins.js +0 -17
  423. package/dist/lib/utils.js +0 -175
  424. package/dist/lib/validators.js +0 -12
  425. /package/dist/{lib → common}/mixins.js.map +0 -0
@@ -1,89 +1,128 @@
1
- import { startOfWeek as M, getDay as l, addMonths as k, startOfMonth as w, addDays as u, getDate as y, endOfMonth as x, subMonths as _, getMonth as i, isEqual as R, getYear as d, set as L, format as Y } from "date-fns";
2
- import { DtStack as g } from "./stack.js";
3
- import { DtTooltip as T } from "./tooltip.js";
4
- import { DtButton as b } from "./button.js";
5
- import { n as m } from "../chunks/_plugin-vue2_normalizer-u6G_3nkj.js";
6
- import { DtIcon as S } from "./icon.js";
7
- import "../chunks/stack_constants-u7tNqGtc.js";
8
- import "../chunks/popover_constants-qjlEkroB.js";
1
+ import { startOfWeek, getDay, addMonths, startOfMonth, addDays, getDate, endOfMonth, subMonths, getMonth, isEqual, getYear, set, format } from "date-fns";
2
+ import { DtStack } from "./stack.js";
3
+ import { DtTooltip } from "./tooltip.js";
4
+ import { DtButton } from "./button.js";
5
+ import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
6
+ import { DtIcon } from "./icon.js";
7
+ import "../chunks/stack_constants-HraCekPm.js";
8
+ import "../chunks/popover_constants-Qkpb0yh2.js";
9
9
  import "tippy.js";
10
- import "./utils.js";
11
- import "./constants.js";
10
+ import "../common/utils.js";
11
+ import "../common/constants.js";
12
12
  import "vue";
13
13
  import "./lazy-show.js";
14
- import "../chunks/link_constants-vIUB92L4.js";
14
+ import "../chunks/link_constants-nWVlXQBs.js";
15
15
  import "@dialpad/dialtone-icons/vue2";
16
- import "../chunks/icon_constants-OpYAAKwF.js";
16
+ import "../chunks/icon_constants-Dy4MEUJL.js";
17
17
  import "@dialpad/dialtone-icons/icons.json";
18
- import "./skeleton.js";
19
- const $ = 0, P = "MMMM", C = "long", f = (t) => t ? new Date(t) : /* @__PURE__ */ new Date(), F = (t, e, a) => {
20
- const r = f(JSON.parse(JSON.stringify(t))), n = [];
21
- for (let s = 0; s < 7; s++) {
22
- const o = u(r, s), c = i(o) !== e;
23
- n.push({
24
- text: o.getDate(),
25
- value: o,
26
- currentMonth: !c,
27
- isFirstDayOfMonth: o.getDate() === 1 && !c,
18
+ const WEEK_START = 0;
19
+ const MONTH_FORMAT = "MMMM";
20
+ const INTL_MONTH_FORMAT = "long";
21
+ const _parsedGetDate = (value) => value ? new Date(value) : /* @__PURE__ */ new Date();
22
+ const getWeekDays = (startDay, month, selectedDay) => {
23
+ const startDate = _parsedGetDate(JSON.parse(JSON.stringify(startDay)));
24
+ const dates = [];
25
+ for (let i = 0; i < 7; i++) {
26
+ const next = addDays(startDate, i);
27
+ const isNext = getMonth(next) !== month;
28
+ dates.push({
29
+ text: next.getDate(),
30
+ value: next,
31
+ currentMonth: !isNext,
32
+ isFirstDayOfMonth: next.getDate() === 1 && !isNext,
28
33
  // will be selected if the date is the same as the selected day and is from the current month
29
- selected: a ? o.getDate() === a && !c : !1
34
+ selected: selectedDay ? next.getDate() === selectedDay && !isNext : false
30
35
  });
31
36
  }
32
- return n;
33
- }, q = (t, e) => !t || !e ? !1 : R(t, e), N = (t, e, a) => {
34
- const r = [], n = f(new Date(e, t)), s = f(new Date(e, t + 1, 0)), c = M(n, { weekStartsOn: $ }), p = (D) => {
35
- const v = F(D, t, a);
36
- if (r.push({ days: v }), !r[r.length - 1].days.some(
37
- (h) => q(h.value, s)
37
+ return dates;
38
+ };
39
+ const isDateEqual = (date, dateToCompare) => {
40
+ if (!date || !dateToCompare) {
41
+ return false;
42
+ }
43
+ return isEqual(date, dateToCompare);
44
+ };
45
+ const getCalendarDays = (month, year, selectedDay) => {
46
+ const weeks = [];
47
+ const firstDate = _parsedGetDate(new Date(year, month));
48
+ const lastDate = _parsedGetDate(new Date(year, month + 1, 0));
49
+ const weekStartsOn = WEEK_START;
50
+ const firstDateInCalendar = startOfWeek(firstDate, { weekStartsOn });
51
+ const addDaysToWeek = (date) => {
52
+ const days = getWeekDays(date, month, selectedDay);
53
+ weeks.push({ days });
54
+ if (!weeks[weeks.length - 1].days.some(
55
+ (day) => isDateEqual(day.value, lastDate)
38
56
  )) {
39
- const h = u(D, 7);
40
- p(h);
57
+ const nextDate = addDays(date, 7);
58
+ addDaysToWeek(nextDate);
41
59
  }
42
60
  };
43
- return p(c), r;
44
- }, O = (t, e) => {
45
- const a = [1, 2, 3, 4, 5, 6, 7].map((s) => new Intl.DateTimeFormat(t, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${s}T00:00:00+00:00`)).slice(0, 2)), r = a.slice(0, e), n = a.slice(e + 1, a.length);
46
- return [a[e]].concat(...n).concat(...r);
47
- }, A = (t, e, a) => new Intl.DateTimeFormat(a, { month: e }).format(new Date(2e3, t, 1)), B = (t) => {
48
- const e = new Date(t), a = l(e), r = k(e, 1), n = w(r), s = l(n), o = (a - s + 7) % 7, c = u(n, o);
49
- return y(c);
50
- }, I = (t) => {
51
- const e = new Date(t), a = l(e);
52
- let n = x(_(e, 1));
53
- for (; l(n) !== a; )
54
- n = u(n, -1);
55
- return y(n);
56
- }, z = {
61
+ addDaysToWeek(firstDateInCalendar);
62
+ return weeks;
63
+ };
64
+ const getWeekDayNames = (locale, weekStart) => {
65
+ const days = [1, 2, 3, 4, 5, 6, 7].map((day) => {
66
+ return new Intl.DateTimeFormat(locale, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${day}T00:00:00+00:00`)).slice(0, 2);
67
+ });
68
+ const beforeWeekStart = days.slice(0, weekStart);
69
+ const afterWeekStart = days.slice(weekStart + 1, days.length);
70
+ return [days[weekStart]].concat(...afterWeekStart).concat(...beforeWeekStart);
71
+ };
72
+ const formatMonth = (month, monthFormat, locale) => {
73
+ return new Intl.DateTimeFormat(locale, { month: monthFormat }).format(new Date(2e3, month, 1));
74
+ };
75
+ const calculateNextFocusDate = (currentDate) => {
76
+ const date = new Date(currentDate);
77
+ const currentWeekday = getDay(date);
78
+ const nextMonthDate = addMonths(date, 1);
79
+ const nextMonthStart = startOfMonth(nextMonthDate);
80
+ const nextMonthStartWeekday = getDay(nextMonthStart);
81
+ const dayDifference = (currentWeekday - nextMonthStartWeekday + 7) % 7;
82
+ const focusDate = addDays(nextMonthStart, dayDifference);
83
+ return getDate(focusDate);
84
+ };
85
+ const calculatePrevFocusDate = (currentDate) => {
86
+ const date = new Date(currentDate);
87
+ const currentWeekday = getDay(date);
88
+ const lastDayOfPrevMonth = endOfMonth(subMonths(date, 1));
89
+ let focusDate = lastDayOfPrevMonth;
90
+ while (getDay(focusDate) !== currentWeekday) {
91
+ focusDate = addDays(focusDate, -1);
92
+ }
93
+ return getDate(focusDate);
94
+ };
95
+ const _sfc_main$2 = {
57
96
  name: "DtDatepickerMonthYearPicker",
58
- components: { DtButton: b, DtTooltip: T, DtStack: g, DtIcon: S },
97
+ components: { DtButton, DtTooltip, DtStack, DtIcon },
59
98
  props: {
60
99
  locale: {
61
100
  type: String,
62
- required: !0
101
+ required: true
63
102
  },
64
103
  prevMonthLabel: {
65
104
  type: String,
66
- required: !0
105
+ required: true
67
106
  },
68
107
  nextMonthLabel: {
69
108
  type: String,
70
- required: !0
109
+ required: true
71
110
  },
72
111
  prevYearLabel: {
73
112
  type: String,
74
- required: !0
113
+ required: true
75
114
  },
76
115
  nextYearLabel: {
77
116
  type: String,
78
- required: !0
117
+ required: true
79
118
  },
80
119
  changeToLabel: {
81
120
  type: String,
82
- required: !0
121
+ required: true
83
122
  },
84
123
  selectedDate: {
85
124
  type: Date,
86
- required: !0
125
+ required: true
87
126
  }
88
127
  },
89
128
  emits: [
@@ -115,8 +154,8 @@ const $ = 0, P = "MMMM", C = "long", f = (t) => t ? new Date(t) : /* @__PURE__ *
115
154
  ],
116
155
  data() {
117
156
  return {
118
- selectMonth: i(this.selectedDate),
119
- selectYear: d(this.selectedDate),
157
+ selectMonth: getMonth(this.selectedDate),
158
+ selectYear: getYear(this.selectedDate),
120
159
  highlightedDay: null,
121
160
  focusPicker: 0,
122
161
  focusRefs: [],
@@ -126,49 +165,69 @@ const $ = 0, P = "MMMM", C = "long", f = (t) => t ? new Date(t) : /* @__PURE__ *
126
165
  computed: {
127
166
  // Get days for the currently selected month and year and highlight the selected day
128
167
  calendarDays() {
129
- return N(this.selectMonth, this.selectYear, this.highlightedDay);
168
+ return getCalendarDays(this.selectMonth, this.selectYear, this.highlightedDay);
130
169
  },
131
170
  formattedMonth() {
132
- return (t) => A(t, C, this.locale);
171
+ return (month) => formatMonth(month, INTL_MONTH_FORMAT, this.locale);
133
172
  }
134
173
  },
135
174
  watch: {
136
175
  selectMonth: {
137
176
  handler() {
138
- this.highlightDay(), this.$emit("calendar-days", this.calendarDays);
177
+ this.highlightDay();
178
+ this.$emit("calendar-days", this.calendarDays);
139
179
  },
140
- immediate: !0
180
+ immediate: true
141
181
  },
142
182
  selectYear: {
143
183
  handler() {
144
- this.highlightDay(), this.$emit("calendar-days", this.calendarDays);
184
+ this.highlightDay();
185
+ this.$emit("calendar-days", this.calendarDays);
145
186
  },
146
- immediate: !0
187
+ immediate: true
147
188
  }
148
189
  },
149
190
  mounted() {
150
- this.setButtonsRef(), this.focusMonthYearPicker();
191
+ this.setButtonsRef();
192
+ this.focusMonthYearPicker();
151
193
  },
152
194
  methods: {
153
195
  setButtonsRef() {
154
- this.focusRefs = this.refNames.map((t) => this.$refs[t]);
196
+ this.focusRefs = this.refNames.map((refName) => this.$refs[refName]);
155
197
  },
156
198
  focusMonthYearPicker() {
157
- this.focusPicker = 0, this.focusRefs[0].$el.focus();
199
+ this.focusPicker = 0;
200
+ this.focusRefs[0].$el.focus();
158
201
  },
159
- handleKeyDown(t) {
160
- switch (t.key) {
202
+ handleKeyDown(event) {
203
+ switch (event.key) {
161
204
  case "ArrowLeft":
162
- t.preventDefault(), this.focusPicker === 0 ? (this.focusPicker = 3, this.focusRefs[this.focusPicker].$el.focus()) : (this.focusPicker--, this.focusRefs[this.focusPicker].$el.focus());
205
+ event.preventDefault();
206
+ if (this.focusPicker === 0) {
207
+ this.focusPicker = 3;
208
+ this.focusRefs[this.focusPicker].$el.focus();
209
+ } else {
210
+ this.focusPicker--;
211
+ this.focusRefs[this.focusPicker].$el.focus();
212
+ }
163
213
  break;
164
214
  case "ArrowRight":
165
- t.preventDefault(), this.focusPicker === 3 ? (this.focusPicker = 0, this.focusRefs[this.focusPicker].$el.focus()) : (this.focusPicker++, this.focusRefs[this.focusPicker].$el.focus());
215
+ event.preventDefault();
216
+ if (this.focusPicker === 3) {
217
+ this.focusPicker = 0;
218
+ this.focusRefs[this.focusPicker].$el.focus();
219
+ } else {
220
+ this.focusPicker++;
221
+ this.focusRefs[this.focusPicker].$el.focus();
222
+ }
166
223
  break;
167
224
  case "ArrowDown":
168
- t.preventDefault(), this.$emit("focus-first-day");
225
+ event.preventDefault();
226
+ this.$emit("focus-first-day");
169
227
  break;
170
228
  case "Tab":
171
- t.preventDefault(), this.$emit("focus-first-day");
229
+ event.preventDefault();
230
+ this.$emit("focus-first-day");
172
231
  break;
173
232
  case "Escape":
174
233
  this.$emit("close-datepicker");
@@ -176,16 +235,24 @@ const $ = 0, P = "MMMM", C = "long", f = (t) => t ? new Date(t) : /* @__PURE__ *
176
235
  }
177
236
  },
178
237
  highlightDay() {
179
- const t = d(this.selectedDate), e = i(this.selectedDate);
180
- t !== this.selectYear || e !== this.selectMonth ? this.highlightedDay = null : this.highlightedDay = y(this.selectedDate);
238
+ const year = getYear(this.selectedDate);
239
+ const month = getMonth(this.selectedDate);
240
+ if (year !== this.selectYear || month !== this.selectMonth) {
241
+ this.highlightedDay = null;
242
+ } else {
243
+ this.highlightedDay = getDate(this.selectedDate);
244
+ }
181
245
  },
182
- changeMonth(t) {
183
- (this.selectMonth === 0 && t === -1 || this.selectMonth === 11 && t === 1) && (this.selectYear += t);
184
- const e = L(this.selectedDate, { month: this.selectMonth, year: this.selectYear }), a = t === 1 ? k(e, 1) : _(e, 1);
185
- this.selectMonth = i(a);
246
+ changeMonth(value) {
247
+ if (this.selectMonth === 0 && value === -1 || this.selectMonth === 11 && value === 1) {
248
+ this.selectYear += value;
249
+ }
250
+ const initialDate = set(this.selectedDate, { month: this.selectMonth, year: this.selectYear });
251
+ const newDate = value === 1 ? addMonths(initialDate, 1) : subMonths(initialDate, 1);
252
+ this.selectMonth = getMonth(newDate);
186
253
  },
187
- changeYear(t) {
188
- this.selectYear = this.selectYear + t;
254
+ changeYear(value) {
255
+ this.selectYear = this.selectYear + value;
189
256
  },
190
257
  goToNextMonth() {
191
258
  this.changeMonth(1);
@@ -195,58 +262,61 @@ const $ = 0, P = "MMMM", C = "long", f = (t) => t ? new Date(t) : /* @__PURE__ *
195
262
  }
196
263
  }
197
264
  };
198
- var K = function() {
199
- var e = this, a = e._self._c;
200
- return a("dt-stack", { staticClass: "d-datepicker__month-year", attrs: { direction: "row", gap: "300" } }, [a("dt-stack", { staticClass: "d-datepicker__nav", attrs: { as: "nav", direction: "row", gap: "200" } }, [a("dt-tooltip", { attrs: { message: e.prevYearLabel, placement: "top" }, scopedSlots: e._u([{ key: "anchor", fn: function() {
201
- return [a("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(r) {
202
- return e.changeYear(-1);
203
- }, keydown: function(r) {
204
- return e.handleKeyDown(r);
205
- } } }, [a("dt-icon", { attrs: { name: "chevrons-left", size: "200" } })], 1)];
206
- }, proxy: !0 }]) }), a("dt-tooltip", { attrs: { message: e.prevMonthLabel, placement: "top" }, scopedSlots: e._u([{ key: "anchor", fn: function() {
207
- return [a("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(r) {
208
- return e.changeMonth(-1);
209
- }, keydown: function(r) {
210
- return e.handleKeyDown(r);
211
- } } }, [a("dt-icon", { attrs: { name: "chevron-left", size: "200" } })], 1)];
212
- }, proxy: !0 }]) })], 1), a("div", { staticClass: "d-datepicker__month-year-title", attrs: { id: "calendar-heading" } }, [e._v(" " + e._s(e.formattedMonth(e.selectMonth)) + " " + e._s(e.selectYear) + " ")]), a("dt-stack", { staticClass: "d-datepicker__nav", attrs: { as: "nav", direction: "row", gap: "200" } }, [a("dt-tooltip", { attrs: { message: e.nextMonthLabel, placement: "top" }, scopedSlots: e._u([{ key: "anchor", fn: function() {
213
- return [a("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(r) {
214
- return e.changeMonth(1);
215
- }, keydown: function(r) {
216
- return e.handleKeyDown(r);
217
- } } }, [a("dt-icon", { attrs: { name: "chevron-right", size: "200" } })], 1)];
218
- }, proxy: !0 }]) }), a("dt-tooltip", { attrs: { message: e.nextYearLabel, placement: "top" }, scopedSlots: e._u([{ key: "anchor", fn: function() {
219
- return [a("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(r) {
220
- return e.changeYear(1);
221
- }, keydown: function(r) {
222
- return e.handleKeyDown(r);
223
- } } }, [a("dt-icon", { attrs: { name: "chevrons-right", size: "200" } })], 1)];
224
- }, proxy: !0 }]) })], 1)], 1);
225
- }, E = [], W = /* @__PURE__ */ m(
226
- z,
227
- K,
228
- E,
229
- !1,
265
+ var _sfc_render$2 = function render() {
266
+ var _vm = this, _c = _vm._self._c;
267
+ return _c("dt-stack", { staticClass: "d-datepicker__month-year", attrs: { "direction": "row", "gap": "300" } }, [_c("dt-stack", { staticClass: "d-datepicker__nav", attrs: { "as": "nav", "direction": "row", "gap": "200" } }, [_c("dt-tooltip", { attrs: { "message": _vm.prevYearLabel, "placement": "top" }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
268
+ return [_c("dt-button", { ref: _vm.refNames[0], staticClass: "d-datepicker__nav-btn", attrs: { "id": "prevYearButton", "size": "xs", "importance": "clear", "kind": "muted", "circle": true, "type": "button", "aria-label": `${_vm.changeToLabel} ${_vm.prevYearLabel} ${_vm.selectYear - 1}` }, on: { "click": function($event) {
269
+ return _vm.changeYear(-1);
270
+ }, "keydown": function($event) {
271
+ return _vm.handleKeyDown($event);
272
+ } } }, [_c("dt-icon", { attrs: { "name": "chevrons-left", "size": "200" } })], 1)];
273
+ }, proxy: true }]) }), _c("dt-tooltip", { attrs: { "message": _vm.prevMonthLabel, "placement": "top" }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
274
+ return [_c("dt-button", { ref: _vm.refNames[1], staticClass: "d-datepicker__nav-btn", attrs: { "id": "prevMonthButton", "size": "xs", "importance": "clear", "kind": "muted", "circle": true, "type": "button", "aria-label": `${_vm.changeToLabel} ${_vm.prevMonthLabel} ${_vm.formattedMonth(_vm.selectMonth - 1)}` }, on: { "click": function($event) {
275
+ return _vm.changeMonth(-1);
276
+ }, "keydown": function($event) {
277
+ return _vm.handleKeyDown($event);
278
+ } } }, [_c("dt-icon", { attrs: { "name": "chevron-left", "size": "200" } })], 1)];
279
+ }, proxy: true }]) })], 1), _c("div", { staticClass: "d-datepicker__month-year-title", attrs: { "id": "calendar-heading" } }, [_vm._v(" " + _vm._s(_vm.formattedMonth(_vm.selectMonth)) + " " + _vm._s(_vm.selectYear) + " ")]), _c("dt-stack", { staticClass: "d-datepicker__nav", attrs: { "as": "nav", "direction": "row", "gap": "200" } }, [_c("dt-tooltip", { attrs: { "message": _vm.nextMonthLabel, "placement": "top" }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
280
+ return [_c("dt-button", { ref: _vm.refNames[2], staticClass: "d-datepicker__nav-btn", attrs: { "id": "nextMonthButton", "size": "xs", "importance": "clear", "circle": true, "kind": "muted", "type": "button", "aria-label": `${_vm.changeToLabel} ${_vm.nextMonthLabel} ${_vm.formattedMonth(_vm.selectMonth + 1)}` }, on: { "click": function($event) {
281
+ return _vm.changeMonth(1);
282
+ }, "keydown": function($event) {
283
+ return _vm.handleKeyDown($event);
284
+ } } }, [_c("dt-icon", { attrs: { "name": "chevron-right", "size": "200" } })], 1)];
285
+ }, proxy: true }]) }), _c("dt-tooltip", { attrs: { "message": _vm.nextYearLabel, "placement": "top" }, scopedSlots: _vm._u([{ key: "anchor", fn: function() {
286
+ return [_c("dt-button", { ref: _vm.refNames[3], staticClass: "d-datepicker__nav-btn", attrs: { "id": "nextYearButton", "size": "xs", "kind": "muted", "circle": true, "importance": "clear", "type": "button", "aria-label": `${_vm.changeToLabel} ${_vm.nextYearLabel} ${_vm.selectYear + 1}` }, on: { "click": function($event) {
287
+ return _vm.changeYear(1);
288
+ }, "keydown": function($event) {
289
+ return _vm.handleKeyDown($event);
290
+ } } }, [_c("dt-icon", { attrs: { "name": "chevrons-right", "size": "200" } })], 1)];
291
+ }, proxy: true }]) })], 1)], 1);
292
+ };
293
+ var _sfc_staticRenderFns$2 = [];
294
+ var __component__$2 = /* @__PURE__ */ normalizeComponent(
295
+ _sfc_main$2,
296
+ _sfc_render$2,
297
+ _sfc_staticRenderFns$2,
298
+ false,
230
299
  null,
231
300
  null,
232
301
  null,
233
302
  null
234
303
  );
235
- const U = W.exports, H = {
304
+ const MonthYearPicker = __component__$2.exports;
305
+ const _sfc_main$1 = {
236
306
  name: "DtDatepickerCalendar",
237
- components: { DtButton: b },
307
+ components: { DtButton },
238
308
  props: {
239
309
  calendarDays: {
240
310
  type: Array,
241
- required: !0
311
+ required: true
242
312
  },
243
313
  locale: {
244
314
  type: String,
245
- required: !0
315
+ required: true
246
316
  },
247
317
  selectDayLabel: {
248
318
  type: String,
249
- required: !0
319
+ required: true
250
320
  }
251
321
  },
252
322
  emits: [
@@ -280,64 +350,94 @@ const U = W.exports, H = {
280
350
  },
281
351
  computed: {
282
352
  weekDays() {
283
- return O(this.locale, $);
353
+ return getWeekDayNames(this.locale, WEEK_START);
284
354
  }
285
355
  },
286
356
  watch: {
287
357
  calendarDays() {
288
- this.focusDay = 0, this.selectedDay = null, this.daysRef = [], this.$nextTick(() => {
289
- this.daysRef = [], this.setDayRef();
358
+ this.focusDay = 0;
359
+ this.selectedDay = null;
360
+ this.daysRef = [];
361
+ this.$nextTick(() => {
362
+ this.daysRef = [];
363
+ this.setDayRef();
290
364
  });
291
365
  }
292
366
  },
293
367
  methods: {
294
- dayAriaLabel(t) {
295
- return `${this.selectDayLabel} ${t.text} ${Y(t.value, P)} ${d(t.value)}`;
368
+ dayAriaLabel(day) {
369
+ return `${this.selectDayLabel} ${day.text} ${format(day.value, MONTH_FORMAT)} ${getYear(day.value)}`;
296
370
  },
297
- setDayRef(t, e) {
298
- this.calendarDays.forEach((a, r) => {
299
- a.days.forEach((n, s) => {
300
- const o = `buttonRef_${r}_${s}`, c = this.$refs[o];
301
- c && n.currentMonth && this.daysRef.push({ el: c[0], day: n });
371
+ setDayRef(el, day) {
372
+ this.calendarDays.forEach((week, weekIndex) => {
373
+ week.days.forEach((day2, dayIndex) => {
374
+ const refKey = `buttonRef_${weekIndex}_${dayIndex}`;
375
+ const dayButton = this.$refs[refKey];
376
+ if (dayButton && day2.currentMonth) {
377
+ this.daysRef.push({ el: dayButton[0], day: day2 });
378
+ }
302
379
  });
303
380
  });
304
381
  },
305
- handleKeyDown(t) {
306
- switch (t.key) {
382
+ handleKeyDown(event) {
383
+ switch (event.key) {
307
384
  case "ArrowUp":
308
- t.preventDefault(), this.focusDay -= 7;
385
+ event.preventDefault();
386
+ this.focusDay -= 7;
309
387
  try {
310
388
  this.daysRef[this.focusDay].el.$el.focus();
311
- } catch {
312
- const a = I(this.daysRef[this.focusDay + 7].day.value);
313
- this.$emit("go-to-prev-month"), this.$nextTick(() => {
314
- this.setDayRef(), this.daysRef[a - 1].el.$el.focus(), this.focusDay += a - 1;
389
+ } catch (error) {
390
+ const prevFocusDate = calculatePrevFocusDate(this.daysRef[this.focusDay + 7].day.value);
391
+ this.$emit("go-to-prev-month");
392
+ this.$nextTick(() => {
393
+ this.setDayRef();
394
+ this.daysRef[prevFocusDate - 1].el.$el.focus();
395
+ this.focusDay += prevFocusDate - 1;
315
396
  });
316
397
  }
317
398
  break;
318
399
  case "ArrowDown":
319
- t.preventDefault(), this.focusDay += 7;
400
+ event.preventDefault();
401
+ this.focusDay += 7;
320
402
  try {
321
403
  this.daysRef[this.focusDay].el.$el.focus();
322
- } catch {
323
- const a = B(this.daysRef[this.focusDay - 7].day.value);
324
- this.$emit("go-to-next-month"), this.$nextTick(() => {
325
- this.setDayRef(), this.daysRef[a - 1].el.$el.focus(), this.focusDay += a - 1;
404
+ } catch (error) {
405
+ const nextFocusDate = calculateNextFocusDate(this.daysRef[this.focusDay - 7].day.value);
406
+ this.$emit("go-to-next-month");
407
+ this.$nextTick(() => {
408
+ this.setDayRef();
409
+ this.daysRef[nextFocusDate - 1].el.$el.focus();
410
+ this.focusDay += nextFocusDate - 1;
326
411
  });
327
412
  }
328
413
  break;
329
414
  case "ArrowLeft":
330
- t.preventDefault(), this.focusDay > 0 ? (this.focusDay -= 1, this.daysRef[this.focusDay].el.$el.focus()) : (this.$emit("go-to-prev-month"), this.$nextTick(() => {
331
- this.focusLastDay();
332
- }));
415
+ event.preventDefault();
416
+ if (this.focusDay > 0) {
417
+ this.focusDay -= 1;
418
+ this.daysRef[this.focusDay].el.$el.focus();
419
+ } else {
420
+ this.$emit("go-to-prev-month");
421
+ this.$nextTick(() => {
422
+ this.focusLastDay();
423
+ });
424
+ }
333
425
  break;
334
426
  case "ArrowRight":
335
- t.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(() => {
336
- this.focusFirstDay();
337
- }));
427
+ event.preventDefault();
428
+ if (this.focusDay < this.daysRef.length - 1) {
429
+ this.focusDay += 1;
430
+ this.daysRef[this.focusDay].el.$el.focus();
431
+ } else {
432
+ this.$emit("go-to-next-month");
433
+ this.$nextTick(() => {
434
+ this.focusFirstDay();
435
+ });
436
+ }
338
437
  break;
339
438
  case "Tab":
340
- t.preventDefault(), this.$emit("focus-month-year-picker");
439
+ event.preventDefault();
440
+ this.$emit("focus-month-year-picker");
341
441
  break;
342
442
  case "Escape":
343
443
  this.$emit("close-datepicker");
@@ -345,49 +445,58 @@ const U = W.exports, H = {
345
445
  }
346
446
  },
347
447
  focusFirstDay() {
348
- this.focusDay = 0, this.$nextTick(() => {
448
+ this.focusDay = 0;
449
+ this.$nextTick(() => {
349
450
  this.daysRef[this.focusDay].el.$el.focus();
350
451
  });
351
452
  },
352
453
  focusLastDay() {
353
454
  this.$nextTick(() => {
354
- this.focusDay = this.daysRef.length - 1, this.daysRef[this.focusDay].el.$el.focus();
455
+ this.focusDay = this.daysRef.length - 1;
456
+ this.daysRef[this.focusDay].el.$el.focus();
355
457
  });
356
458
  },
357
- selectDay(t) {
358
- t.currentMonth && (this.selectedDay = t.text, this.$emit("select-date", t.value));
459
+ selectDay(day) {
460
+ if (!day.currentMonth) {
461
+ return;
462
+ }
463
+ this.selectedDay = day.text;
464
+ this.$emit("select-date", day.value);
359
465
  }
360
466
  }
361
467
  };
362
- var J = function() {
363
- var e = this, a = e._self._c;
364
- return a("table", { staticClass: "d-datepicker__calendar", attrs: { "aria-labelledby": "calendar-heading" } }, [a("thead", [a("tr", e._l(e.weekDays, function(r) {
365
- return a("th", { key: r, staticClass: "d-datepicker__cell d-datepicker__cell--header", attrs: { scope: "col" } }, [a("span", { staticClass: "d-datepicker__weekday", attrs: { title: r, "aria-label": r } }, [e._v(" " + e._s(r))])]);
366
- }), 0)]), a("tbody", e._l(e.calendarDays, function(r, n) {
367
- return a("tr", { key: n }, e._l(r.days, function(s, o) {
368
- return a("td", { key: n + o, staticClass: "d-datepicker__cell", attrs: { role: "listbox" } }, [a("dt-button", { ref: `buttonRef_${n}_${o}`, refInFor: !0, staticClass: "d-datepicker__day", class: {
369
- "d-datepicker__day--disabled": !s.currentMonth,
370
- "d-datepicker__day--selected": e.selectedDay ? s.text === e.selectedDay && s.currentMonth : s.selected
371
- }, attrs: { circle: !0, size: "sm", importance: "clear", disabled: !s.currentMonth, type: "button", "aria-selected": e.selectedDay ? s.text === e.selectedDay && s.currentMonth : s.selected, "aria-label": e.dayAriaLabel(s), role: "option" }, on: { click: function(c) {
372
- return e.selectDay(s);
373
- }, keydown: function(c) {
374
- return e.handleKeyDown(c);
375
- } } }, [e._v(" " + e._s(s.text) + " ")])], 1);
468
+ var _sfc_render$1 = function render2() {
469
+ var _vm = this, _c = _vm._self._c;
470
+ return _c("table", { staticClass: "d-datepicker__calendar", attrs: { "aria-labelledby": "calendar-heading" } }, [_c("thead", [_c("tr", _vm._l(_vm.weekDays, function(day) {
471
+ return _c("th", { key: day, staticClass: "d-datepicker__cell d-datepicker__cell--header", attrs: { "scope": "col" } }, [_c("span", { staticClass: "d-datepicker__weekday", attrs: { "title": day, "aria-label": day } }, [_vm._v(" " + _vm._s(day))])]);
472
+ }), 0)]), _c("tbody", _vm._l(_vm.calendarDays, function(week, indexWeek) {
473
+ return _c("tr", { key: indexWeek }, _vm._l(week.days, function(day, indexDays) {
474
+ return _c("td", { key: indexWeek + indexDays, staticClass: "d-datepicker__cell", attrs: { "role": "listbox" } }, [_c("dt-button", { ref: `buttonRef_${indexWeek}_${indexDays}`, refInFor: true, staticClass: "d-datepicker__day", class: {
475
+ "d-datepicker__day--disabled": !day.currentMonth,
476
+ "d-datepicker__day--selected": _vm.selectedDay ? day.text === _vm.selectedDay && day.currentMonth : day.selected
477
+ }, attrs: { "circle": true, "size": "sm", "importance": "clear", "disabled": !day.currentMonth, "type": "button", "aria-selected": !!_vm.selectedDay ? day.text === _vm.selectedDay && day.currentMonth : day.selected, "aria-label": _vm.dayAriaLabel(day), "role": "option" }, on: { "click": function($event) {
478
+ return _vm.selectDay(day);
479
+ }, "keydown": function($event) {
480
+ return _vm.handleKeyDown($event);
481
+ } } }, [_vm._v(" " + _vm._s(day.text) + " ")])], 1);
376
482
  }), 0);
377
483
  }), 0)]);
378
- }, G = [], Z = /* @__PURE__ */ m(
379
- H,
380
- J,
381
- G,
382
- !1,
484
+ };
485
+ var _sfc_staticRenderFns$1 = [];
486
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(
487
+ _sfc_main$1,
488
+ _sfc_render$1,
489
+ _sfc_staticRenderFns$1,
490
+ false,
383
491
  null,
384
492
  null,
385
493
  null,
386
494
  null
387
495
  );
388
- const j = Z.exports, Q = {
496
+ const Calendar = __component__$1.exports;
497
+ const _sfc_main = {
389
498
  name: "DtDatepicker",
390
- components: { DtStack: g, MonthYearPicker: U, Calendar: j },
499
+ components: { DtStack, MonthYearPicker, Calendar },
391
500
  props: {
392
501
  /**
393
502
  * Label for the previous month button
@@ -397,7 +506,7 @@ const j = Z.exports, Q = {
397
506
  */
398
507
  prevMonthLabel: {
399
508
  type: String,
400
- required: !0
509
+ required: true
401
510
  },
402
511
  /**
403
512
  * Label for the next month button
@@ -407,7 +516,7 @@ const j = Z.exports, Q = {
407
516
  */
408
517
  nextMonthLabel: {
409
518
  type: String,
410
- required: !0
519
+ required: true
411
520
  },
412
521
  /**
413
522
  * Label for the previous year button
@@ -417,7 +526,7 @@ const j = Z.exports, Q = {
417
526
  */
418
527
  prevYearLabel: {
419
528
  type: String,
420
- required: !0
529
+ required: true
421
530
  },
422
531
  /**
423
532
  * Label for the next year button
@@ -427,7 +536,7 @@ const j = Z.exports, Q = {
427
536
  */
428
537
  nextYearLabel: {
429
538
  type: String,
430
- required: !0
539
+ required: true
431
540
  },
432
541
  /**
433
542
  * Label for the select day button
@@ -437,7 +546,7 @@ const j = Z.exports, Q = {
437
546
  */
438
547
  selectDayLabel: {
439
548
  type: String,
440
- required: !0
549
+ required: true
441
550
  },
442
551
  /**
443
552
  * Label for the change to button
@@ -447,7 +556,7 @@ const j = Z.exports, Q = {
447
556
  */
448
557
  changeToLabel: {
449
558
  type: String,
450
- required: !0
559
+ required: true
451
560
  },
452
561
  /**
453
562
  * Locale for the calendar
@@ -489,64 +598,66 @@ const j = Z.exports, Q = {
489
598
  };
490
599
  },
491
600
  methods: {
492
- updateCalendarDays(t) {
493
- this.calendarDays = t;
601
+ updateCalendarDays(days) {
602
+ this.calendarDays = days;
494
603
  }
495
604
  }
496
605
  };
497
- var V = function() {
498
- var e = this, a = e._self._c;
499
- return a("dt-stack", { staticClass: "d-datepicker", attrs: { gap: "400" } }, [a("div", { staticClass: "d-datepicker__hd" }, [a("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(r) {
500
- return e.$refs.calendar.focusFirstDay();
501
- }, "focus-last-day": function(r) {
502
- return e.$refs.calendar.focusLastDay();
503
- }, "close-datepicker": function(r) {
504
- return e.$emit("close-datepicker");
505
- } } })], 1), a("div", { staticClass: "d-datepicker__bd" }, [a("calendar", { ref: "calendar", attrs: { locale: e.locale, "calendar-days": e.calendarDays, "select-day-label": e.selectDayLabel }, on: { "select-date": function(r) {
506
- return e.$emit("selected-date", r);
507
- }, "focus-month-year-picker": function(r) {
508
- return e.$refs.monthYearPicker.focusMonthYearPicker();
509
- }, "close-datepicker": function(r) {
510
- return e.$emit("close-datepicker");
511
- }, "go-to-next-month": function(r) {
512
- return e.$refs.monthYearPicker.goToNextMonth();
513
- }, "go-to-prev-month": function(r) {
514
- return e.$refs.monthYearPicker.goToPrevMonth();
606
+ var _sfc_render = function render3() {
607
+ var _vm = this, _c = _vm._self._c;
608
+ return _c("dt-stack", { staticClass: "d-datepicker", attrs: { "gap": "400" } }, [_c("div", { staticClass: "d-datepicker__hd" }, [_c("month-year-picker", { ref: "monthYearPicker", attrs: { "locale": _vm.locale, "prev-month-label": _vm.prevMonthLabel, "next-month-label": _vm.nextMonthLabel, "prev-year-label": _vm.prevYearLabel, "next-year-label": _vm.nextYearLabel, "change-to-label": _vm.changeToLabel, "selected-date": _vm.selectedDate }, on: { "calendar-days": _vm.updateCalendarDays, "focus-first-day": function($event) {
609
+ return _vm.$refs.calendar.focusFirstDay();
610
+ }, "focus-last-day": function($event) {
611
+ return _vm.$refs.calendar.focusLastDay();
612
+ }, "close-datepicker": function($event) {
613
+ return _vm.$emit("close-datepicker");
614
+ } } })], 1), _c("div", { staticClass: "d-datepicker__bd" }, [_c("calendar", { ref: "calendar", attrs: { "locale": _vm.locale, "calendar-days": _vm.calendarDays, "select-day-label": _vm.selectDayLabel }, on: { "select-date": function($event) {
615
+ return _vm.$emit("selected-date", $event);
616
+ }, "focus-month-year-picker": function($event) {
617
+ return _vm.$refs.monthYearPicker.focusMonthYearPicker();
618
+ }, "close-datepicker": function($event) {
619
+ return _vm.$emit("close-datepicker");
620
+ }, "go-to-next-month": function($event) {
621
+ return _vm.$refs.monthYearPicker.goToNextMonth();
622
+ }, "go-to-prev-month": function($event) {
623
+ return _vm.$refs.monthYearPicker.goToPrevMonth();
515
624
  } } })], 1)]);
516
- }, X = [], ee = /* @__PURE__ */ m(
517
- Q,
518
- V,
519
- X,
520
- !1,
625
+ };
626
+ var _sfc_staticRenderFns = [];
627
+ var __component__ = /* @__PURE__ */ normalizeComponent(
628
+ _sfc_main,
629
+ _sfc_render,
630
+ _sfc_staticRenderFns,
631
+ false,
521
632
  null,
522
633
  null,
523
634
  null,
524
635
  null
525
636
  );
526
- const _e = ee.exports;
527
- function ge(t, e = "default") {
528
- return new Intl.DateTimeFormat(e, { weekday: "long", year: "numeric", month: "long", day: "numeric" }).format(t);
637
+ const datepicker = __component__.exports;
638
+ function formatLong(date, locale = "default") {
639
+ return new Intl.DateTimeFormat(locale, { weekday: "long", year: "numeric", month: "long", day: "numeric" }).format(date);
529
640
  }
530
- function be(t, e = "default") {
531
- return new Intl.DateTimeFormat(e, { year: "numeric", month: "long", day: "numeric" }).format(t);
641
+ function formatMedium(date, locale = "default") {
642
+ return new Intl.DateTimeFormat(locale, { year: "numeric", month: "long", day: "numeric" }).format(date);
532
643
  }
533
- function $e(t, e = "default", a = !0) {
534
- const r = a ? { weekday: "short", year: "numeric", month: "short", day: "numeric" } : { year: "numeric", month: "short", day: "numeric" };
535
- return new Intl.DateTimeFormat(e, r).format(t);
644
+ function formatShort(date, locale = "default", showWeekday = true) {
645
+ const options = showWeekday ? { weekday: "short", year: "numeric", month: "short", day: "numeric" } : { year: "numeric", month: "short", day: "numeric" };
646
+ return new Intl.DateTimeFormat(locale, options).format(date);
536
647
  }
537
- function ve(t, e = "default", a = !1) {
538
- const r = a ? "short" : "long";
539
- return new Intl.DateTimeFormat(e, { month: r, day: "numeric" }).format(t);
648
+ function formatNoYear(date, locale = "default", abbreviated = false) {
649
+ const monthFormat = abbreviated ? "short" : "long";
650
+ return new Intl.DateTimeFormat(locale, { month: monthFormat, day: "numeric" }).format(date);
540
651
  }
541
- function Me(t, e = "default") {
542
- return new Intl.DateTimeFormat(e, { year: "2-digit", month: "2-digit", day: "2-digit" }).format(t);
652
+ function formatNumerical(date, locale = "default") {
653
+ return new Intl.DateTimeFormat(locale, { year: "2-digit", month: "2-digit", day: "2-digit" }).format(date);
543
654
  }
544
655
  export {
545
- _e as DtDatepicker,
546
- ge as formatLong,
547
- be as formatMedium,
548
- ve as formatNoYear,
549
- Me as formatNumerical,
550
- $e as formatShort
656
+ datepicker as DtDatepicker,
657
+ formatLong,
658
+ formatMedium,
659
+ formatNoYear,
660
+ formatNumerical,
661
+ formatShort
551
662
  };
552
663
  //# sourceMappingURL=datepicker.js.map