@dialpad/dialtone-vue 3.120.0 → 3.120.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. package/dist/chunks/_plugin-vue_export-helper-caHeSgYY.js +11 -0
  2. package/dist/chunks/_plugin-vue_export-helper-caHeSgYY.js.map +1 -0
  3. package/dist/chunks/_plugin-vue_export-helper-fhnQq0tA.js +10 -0
  4. package/dist/chunks/_plugin-vue_export-helper-fhnQq0tA.js.map +1 -0
  5. package/dist/chunks/{dropdown-eWOvBvwq.js → dropdown-Hn-TeTvZ.js} +151 -104
  6. package/dist/chunks/{dropdown-UO3UJalk.js.map → dropdown-Hn-TeTvZ.js.map} +1 -1
  7. package/dist/chunks/dropdown-w8Do29L5.js +442 -0
  8. package/dist/chunks/{dropdown-eWOvBvwq.js.map → dropdown-w8Do29L5.js.map} +1 -1
  9. package/dist/chunks/dropdown_constants-2pGCXy7m.js +8 -0
  10. package/dist/chunks/dropdown_constants-2pGCXy7m.js.map +1 -0
  11. package/dist/chunks/dropdown_constants-w1MXGC3Z.js +9 -0
  12. package/dist/chunks/dropdown_constants-w1MXGC3Z.js.map +1 -0
  13. package/dist/chunks/{icon_constants-OpYAAKwF.js → icon_constants-Dy4MEUJL.js} +7 -6
  14. package/dist/chunks/{icon_constants-2S_OSQ1t.js.map → icon_constants-Dy4MEUJL.js.map} +1 -1
  15. package/dist/chunks/icon_constants-QYpmdE0R.js +16 -0
  16. package/dist/chunks/{icon_constants-OpYAAKwF.js.map → icon_constants-QYpmdE0R.js.map} +1 -1
  17. package/dist/chunks/index-4qgKeErp.js +446 -0
  18. package/dist/chunks/{index-b4iXYvId.js.map → index-4qgKeErp.js.map} +1 -1
  19. package/dist/chunks/index-b_MgDylR.js +447 -0
  20. package/dist/chunks/{index-6tYeqbgP.js.map → index-b_MgDylR.js.map} +1 -1
  21. package/dist/chunks/{input-4UQWegUk.js → input-NmYDD5bn.js} +83 -60
  22. package/dist/chunks/{input-0Uksk4DP.js.map → input-NmYDD5bn.js.map} +1 -1
  23. package/dist/chunks/input-ttnte8zB.js +295 -0
  24. package/dist/chunks/{input-4UQWegUk.js.map → input-ttnte8zB.js.map} +1 -1
  25. package/dist/chunks/input_group-M-D25pOJ.js +152 -0
  26. package/dist/chunks/{input_group-bBKaq3Wi.js.map → input_group-M-D25pOJ.js.map} +1 -1
  27. package/dist/chunks/{input_group-bBKaq3Wi.js → input_group-jWnq2DJT.js} +27 -24
  28. package/dist/chunks/{input_group-AS760Cp7.js.map → input_group-jWnq2DJT.js.map} +1 -1
  29. package/dist/chunks/keyboard_list_navigation-ScXhrxya.js +284 -0
  30. package/dist/chunks/{keyboard_list_navigation-N74Bpdq7.js.map → keyboard_list_navigation-ScXhrxya.js.map} +1 -1
  31. package/dist/chunks/keyboard_list_navigation-fJnl_Iox.js +283 -0
  32. package/dist/chunks/{keyboard_list_navigation-F0O8nht0.js.map → keyboard_list_navigation-fJnl_Iox.js.map} +1 -1
  33. package/dist/chunks/link_constants-Huj7D_hm.js +22 -0
  34. package/dist/chunks/{link_constants-Kn6kP4i1.js.map → link_constants-Huj7D_hm.js.map} +1 -1
  35. package/dist/chunks/link_constants-nWVlXQBs.js +23 -0
  36. package/dist/chunks/{link_constants-vIUB92L4.js.map → link_constants-nWVlXQBs.js.map} +1 -1
  37. package/dist/chunks/list_item_constants-EiqkqZvP.js +13 -0
  38. package/dist/chunks/{list_item_constants-Tsz5CO1m.js.map → list_item_constants-EiqkqZvP.js.map} +1 -1
  39. package/dist/chunks/list_item_constants-u1xcN9Dd.js +14 -0
  40. package/dist/chunks/{list_item_constants-LTUc74pD.js.map → list_item_constants-u1xcN9Dd.js.map} +1 -1
  41. package/dist/chunks/modal-VgxXAQFP.js +105 -0
  42. package/dist/chunks/{modal-qEzlo0Sj.js.map → modal-VgxXAQFP.js.map} +1 -1
  43. package/dist/chunks/modal-XOr4kiNZ.js +106 -0
  44. package/dist/chunks/{modal-VuMFkZFH.js.map → modal-XOr4kiNZ.js.map} +1 -1
  45. package/dist/chunks/notice_action-WTucGhvr.js +222 -0
  46. package/dist/chunks/{notice_action-tJfD5Qw1.js.map → notice_action-WTucGhvr.js.map} +1 -1
  47. package/dist/chunks/notice_action-p-ePanW_.js +223 -0
  48. package/dist/chunks/{notice_action-jO199emq.js.map → notice_action-p-ePanW_.js.map} +1 -1
  49. package/dist/chunks/notice_constants-7Qt2CQEY.js +7 -0
  50. package/dist/chunks/{notice_constants-mC6al2Dm.js.map → notice_constants-7Qt2CQEY.js.map} +1 -1
  51. package/dist/chunks/notice_constants-UXo9e3bS.js +6 -0
  52. package/dist/chunks/{notice_constants-c--hBFQw.js.map → notice_constants-UXo9e3bS.js.map} +1 -1
  53. package/dist/chunks/popover_constants-JwBF9h1Z.js +143 -0
  54. package/dist/chunks/{popover_constants-hOEhklvr.js.map → popover_constants-JwBF9h1Z.js.map} +1 -1
  55. package/dist/chunks/popover_constants-Qkpb0yh2.js +144 -0
  56. package/dist/chunks/{popover_constants-qjlEkroB.js.map → popover_constants-Qkpb0yh2.js.map} +1 -1
  57. package/dist/chunks/{sr_only_close_button-7O-Ev8uM.js → sr_only_close_button-3EdsV-dH.js} +28 -24
  58. package/dist/chunks/{sr_only_close_button-iD7s1Pbj.js.map → sr_only_close_button-3EdsV-dH.js.map} +1 -1
  59. package/dist/chunks/sr_only_close_button-xGrHFjwA.js +91 -0
  60. package/dist/chunks/{sr_only_close_button-7O-Ev8uM.js.map → sr_only_close_button-xGrHFjwA.js.map} +1 -1
  61. package/dist/chunks/stack_constants-HraCekPm.js +15 -0
  62. package/dist/chunks/{stack_constants-m9Ickqw0.js.map → stack_constants-HraCekPm.js.map} +1 -1
  63. package/dist/chunks/stack_constants-SMzMWnAQ.js +14 -0
  64. package/dist/chunks/{stack_constants-u7tNqGtc.js.map → stack_constants-SMzMWnAQ.js.map} +1 -1
  65. package/dist/chunks/tab-RTDgnD9-.js +391 -0
  66. package/dist/chunks/{tab-at7WWglk.js.map → tab-RTDgnD9-.js.map} +1 -1
  67. package/dist/chunks/tab-qc3f42Yp.js +390 -0
  68. package/dist/chunks/{tab-GQZFMq83.js.map → tab-qc3f42Yp.js.map} +1 -1
  69. package/dist/common/constants.cjs +60 -0
  70. package/dist/{lib → common}/constants.cjs.map +1 -1
  71. package/dist/{lib → common}/constants.js +25 -18
  72. package/dist/{lib → common}/constants.js.map +1 -1
  73. package/dist/common/dates.cjs +72 -0
  74. package/dist/{lib → common}/dates.cjs.map +1 -1
  75. package/dist/common/dates.js +72 -0
  76. package/dist/{lib → common}/dates.js.map +1 -1
  77. package/dist/common/emoji.cjs +163 -0
  78. package/dist/common/emoji.cjs.map +1 -0
  79. package/dist/common/emoji.js +168 -0
  80. package/dist/common/emoji.js.map +1 -0
  81. package/dist/common/mixins.cjs +17 -0
  82. package/dist/{lib → common}/mixins.cjs.map +1 -1
  83. package/dist/common/mixins.js +17 -0
  84. package/dist/common/utils.cjs +243 -0
  85. package/dist/{lib → common}/utils.cjs.map +1 -1
  86. package/dist/common/utils.js +243 -0
  87. package/dist/{lib → common}/utils.js.map +1 -1
  88. package/dist/common/validators.cjs +23 -0
  89. package/dist/{lib → common}/validators.cjs.map +1 -1
  90. package/dist/common/validators.js +23 -0
  91. package/dist/{lib → common}/validators.js.map +1 -1
  92. package/dist/dialtone-vue.cjs +373 -1
  93. package/dist/dialtone-vue.cjs.map +1 -1
  94. package/dist/dialtone-vue.js +328 -327
  95. package/dist/dialtone-vue.js.map +1 -1
  96. package/dist/lib/attachment-carousel.cjs +345 -1
  97. package/dist/lib/attachment-carousel.cjs.map +1 -1
  98. package/dist/lib/attachment-carousel.js +126 -108
  99. package/dist/lib/attachment-carousel.js.map +1 -1
  100. package/dist/lib/avatar.cjs +447 -1
  101. package/dist/lib/avatar.cjs.map +1 -1
  102. package/dist/lib/avatar.js +135 -101
  103. package/dist/lib/avatar.js.map +1 -1
  104. package/dist/lib/badge.cjs +206 -1
  105. package/dist/lib/badge.cjs.map +1 -1
  106. package/dist/lib/badge.js +64 -48
  107. package/dist/lib/badge.js.map +1 -1
  108. package/dist/lib/banner.cjs +242 -2
  109. package/dist/lib/banner.cjs.map +1 -1
  110. package/dist/lib/banner.js +81 -71
  111. package/dist/lib/banner.js.map +1 -1
  112. package/dist/lib/breadcrumbs.cjs +150 -1
  113. package/dist/lib/breadcrumbs.cjs.map +1 -1
  114. package/dist/lib/breadcrumbs.js +60 -52
  115. package/dist/lib/breadcrumbs.js.map +1 -1
  116. package/dist/lib/button-group.cjs +41 -1
  117. package/dist/lib/button-group.cjs.map +1 -1
  118. package/dist/lib/button-group.js +15 -14
  119. package/dist/lib/button-group.js.map +1 -1
  120. package/dist/lib/button.cjs +356 -1
  121. package/dist/lib/button.cjs.map +1 -1
  122. package/dist/lib/button.js +108 -88
  123. package/dist/lib/button.js.map +1 -1
  124. package/dist/lib/callbar-button-with-popover.cjs +322 -1
  125. package/dist/lib/callbar-button-with-popover.cjs.map +1 -1
  126. package/dist/lib/callbar-button-with-popover.js +101 -83
  127. package/dist/lib/callbar-button-with-popover.js.map +1 -1
  128. package/dist/lib/callbar-button.cjs +200 -1
  129. package/dist/lib/callbar-button.cjs.map +1 -1
  130. package/dist/lib/callbar-button.js +52 -45
  131. package/dist/lib/callbar-button.js.map +1 -1
  132. package/dist/lib/callbox.cjs +217 -1
  133. package/dist/lib/callbox.cjs.map +1 -1
  134. package/dist/lib/callbox.js +80 -67
  135. package/dist/lib/callbox.js.map +1 -1
  136. package/dist/lib/card.cjs +91 -1
  137. package/dist/lib/card.cjs.map +1 -1
  138. package/dist/lib/card.js +27 -27
  139. package/dist/lib/card.js.map +1 -1
  140. package/dist/lib/checkbox-group.cjs +115 -1
  141. package/dist/lib/checkbox-group.cjs.map +1 -1
  142. package/dist/lib/checkbox-group.js +34 -23
  143. package/dist/lib/checkbox-group.js.map +1 -1
  144. package/dist/lib/checkbox.cjs +156 -1
  145. package/dist/lib/checkbox.cjs.map +1 -1
  146. package/dist/lib/checkbox.js +72 -60
  147. package/dist/lib/checkbox.js.map +1 -1
  148. package/dist/lib/chip.cjs +235 -1
  149. package/dist/lib/chip.cjs.map +1 -1
  150. package/dist/lib/chip.js +84 -67
  151. package/dist/lib/chip.js.map +1 -1
  152. package/dist/lib/codeblock.cjs +23 -2
  153. package/dist/lib/codeblock.cjs.map +1 -1
  154. package/dist/lib/codeblock.js +13 -13
  155. package/dist/lib/codeblock.js.map +1 -1
  156. package/dist/lib/collapsible.cjs +398 -1
  157. package/dist/lib/collapsible.cjs.map +1 -1
  158. package/dist/lib/collapsible.js +123 -100
  159. package/dist/lib/collapsible.js.map +1 -1
  160. package/dist/lib/combobox-multi-select.cjs +589 -1
  161. package/dist/lib/combobox-multi-select.cjs.map +1 -1
  162. package/dist/lib/combobox-multi-select.js +270 -177
  163. package/dist/lib/combobox-multi-select.js.map +1 -1
  164. package/dist/lib/combobox-with-popover.cjs +452 -1
  165. package/dist/lib/combobox-with-popover.cjs.map +1 -1
  166. package/dist/lib/combobox-with-popover.js +172 -127
  167. package/dist/lib/combobox-with-popover.js.map +1 -1
  168. package/dist/lib/combobox.cjs +18 -1
  169. package/dist/lib/combobox.cjs.map +1 -1
  170. package/dist/lib/combobox.js +9 -9
  171. package/dist/lib/contact-info.cjs +205 -1
  172. package/dist/lib/contact-info.cjs.map +1 -1
  173. package/dist/lib/contact-info.js +69 -60
  174. package/dist/lib/contact-info.js.map +1 -1
  175. package/dist/lib/contact-row.cjs +246 -1
  176. package/dist/lib/contact-row.cjs.map +1 -1
  177. package/dist/lib/contact-row.js +67 -63
  178. package/dist/lib/contact-row.js.map +1 -1
  179. package/dist/lib/datepicker.cjs +854 -1
  180. package/dist/lib/datepicker.cjs.map +1 -1
  181. package/dist/lib/datepicker.js +585 -441
  182. package/dist/lib/datepicker.js.map +1 -1
  183. package/dist/lib/description-list.cjs +116 -1
  184. package/dist/lib/description-list.cjs.map +1 -1
  185. package/dist/lib/description-list.js +56 -24
  186. package/dist/lib/description-list.js.map +1 -1
  187. package/dist/lib/dropdown.cjs +36 -1
  188. package/dist/lib/dropdown.cjs.map +1 -1
  189. package/dist/lib/dropdown.js +22 -21
  190. package/dist/lib/dropdown.js.map +1 -1
  191. package/dist/lib/editor.cjs +711 -1
  192. package/dist/lib/editor.cjs.map +1 -1
  193. package/dist/lib/editor.js +271 -235
  194. package/dist/lib/editor.js.map +1 -1
  195. package/dist/lib/emoji-picker.cjs +1277 -1
  196. package/dist/lib/emoji-picker.cjs.map +1 -1
  197. package/dist/lib/emoji-picker.js +859 -569
  198. package/dist/lib/emoji-picker.js.map +1 -1
  199. package/dist/lib/emoji-row.cjs +128 -1
  200. package/dist/lib/emoji-row.cjs.map +1 -1
  201. package/dist/lib/emoji-row.js +89 -75
  202. package/dist/lib/emoji-row.js.map +1 -1
  203. package/dist/lib/emoji-text-wrapper.cjs +102 -1
  204. package/dist/lib/emoji-text-wrapper.cjs.map +1 -1
  205. package/dist/lib/emoji-text-wrapper.js +42 -31
  206. package/dist/lib/emoji-text-wrapper.js.map +1 -1
  207. package/dist/lib/emoji.cjs +158 -1
  208. package/dist/lib/emoji.cjs.map +1 -1
  209. package/dist/lib/emoji.js +153 -6
  210. package/dist/lib/emoji.js.map +1 -1
  211. package/dist/lib/feed-item-row.cjs +296 -1
  212. package/dist/lib/feed-item-row.cjs.map +1 -1
  213. package/dist/lib/feed-item-row.js +119 -100
  214. package/dist/lib/feed-item-row.js.map +1 -1
  215. package/dist/lib/feed-pill.cjs +173 -1
  216. package/dist/lib/feed-pill.cjs.map +1 -1
  217. package/dist/lib/feed-pill.js +70 -57
  218. package/dist/lib/feed-pill.js.map +1 -1
  219. package/dist/lib/general-row.cjs +518 -1
  220. package/dist/lib/general-row.cjs.map +1 -1
  221. package/dist/lib/general-row.js +186 -148
  222. package/dist/lib/general-row.js.map +1 -1
  223. package/dist/lib/group-row.cjs +116 -1
  224. package/dist/lib/group-row.cjs.map +1 -1
  225. package/dist/lib/group-row.js +37 -35
  226. package/dist/lib/group-row.js.map +1 -1
  227. package/dist/lib/grouped-chip.cjs +96 -1
  228. package/dist/lib/grouped-chip.cjs.map +1 -1
  229. package/dist/lib/grouped-chip.js +51 -46
  230. package/dist/lib/grouped-chip.js.map +1 -1
  231. package/dist/lib/hovercard.cjs +223 -1
  232. package/dist/lib/hovercard.cjs.map +1 -1
  233. package/dist/lib/hovercard.js +115 -80
  234. package/dist/lib/hovercard.js.map +1 -1
  235. package/dist/lib/icon.cjs +58 -1
  236. package/dist/lib/icon.cjs.map +1 -1
  237. package/dist/lib/icon.js +20 -20
  238. package/dist/lib/icon.js.map +1 -1
  239. package/dist/lib/image-viewer.cjs +243 -1
  240. package/dist/lib/image-viewer.cjs.map +1 -1
  241. package/dist/lib/image-viewer.js +104 -80
  242. package/dist/lib/image-viewer.js.map +1 -1
  243. package/dist/lib/input-group.cjs +91 -1
  244. package/dist/lib/input-group.cjs.map +1 -1
  245. package/dist/lib/input-group.js +41 -39
  246. package/dist/lib/input-group.js.map +1 -1
  247. package/dist/lib/input.cjs +578 -1
  248. package/dist/lib/input.cjs.map +1 -1
  249. package/dist/lib/input.js +185 -137
  250. package/dist/lib/input.js.map +1 -1
  251. package/dist/lib/item-layout.cjs +91 -1
  252. package/dist/lib/item-layout.cjs.map +1 -1
  253. package/dist/lib/item-layout.js +45 -39
  254. package/dist/lib/item-layout.js.map +1 -1
  255. package/dist/lib/ivr-node.cjs +263 -1
  256. package/dist/lib/ivr-node.cjs.map +1 -1
  257. package/dist/lib/ivr-node.js +130 -112
  258. package/dist/lib/ivr-node.js.map +1 -1
  259. package/dist/lib/keyboard-shortcut.cjs +119 -1
  260. package/dist/lib/keyboard-shortcut.cjs.map +1 -1
  261. package/dist/lib/keyboard-shortcut.js +58 -48
  262. package/dist/lib/keyboard-shortcut.js.map +1 -1
  263. package/dist/lib/lazy-show.cjs +82 -1
  264. package/dist/lib/lazy-show.cjs.map +1 -1
  265. package/dist/lib/lazy-show.js +21 -19
  266. package/dist/lib/lazy-show.js.map +1 -1
  267. package/dist/lib/link.cjs +43 -1
  268. package/dist/lib/link.cjs.map +1 -1
  269. package/dist/lib/link.js +20 -19
  270. package/dist/lib/link.js.map +1 -1
  271. package/dist/lib/list-item-group.cjs +67 -1
  272. package/dist/lib/list-item-group.cjs.map +1 -1
  273. package/dist/lib/list-item-group.js +24 -22
  274. package/dist/lib/list-item-group.js.map +1 -1
  275. package/dist/lib/list-item.cjs +216 -1
  276. package/dist/lib/list-item.cjs.map +1 -1
  277. package/dist/lib/list-item.js +71 -60
  278. package/dist/lib/list-item.js.map +1 -1
  279. package/dist/lib/message-input.cjs +708 -1
  280. package/dist/lib/message-input.cjs.map +1 -1
  281. package/dist/lib/message-input.js +232 -206
  282. package/dist/lib/message-input.js.map +1 -1
  283. package/dist/lib/modal.cjs +444 -2
  284. package/dist/lib/modal.cjs.map +1 -1
  285. package/dist/lib/modal.js +153 -120
  286. package/dist/lib/modal.js.map +1 -1
  287. package/dist/lib/notice.cjs +197 -1
  288. package/dist/lib/notice.cjs.map +1 -1
  289. package/dist/lib/notice.js +66 -63
  290. package/dist/lib/notice.js.map +1 -1
  291. package/dist/lib/pagination.cjs +205 -1
  292. package/dist/lib/pagination.cjs.map +1 -1
  293. package/dist/lib/pagination.js +96 -81
  294. package/dist/lib/pagination.js.map +1 -1
  295. package/dist/lib/popover.cjs +1080 -1
  296. package/dist/lib/popover.cjs.map +1 -1
  297. package/dist/lib/popover.js +447 -267
  298. package/dist/lib/popover.js.map +1 -1
  299. package/dist/lib/presence.cjs +70 -1
  300. package/dist/lib/presence.cjs.map +1 -1
  301. package/dist/lib/presence.js +33 -27
  302. package/dist/lib/presence.js.map +1 -1
  303. package/dist/lib/radio-group.cjs +88 -1
  304. package/dist/lib/radio-group.cjs.map +1 -1
  305. package/dist/lib/radio-group.js +18 -18
  306. package/dist/lib/radio-group.js.map +1 -1
  307. package/dist/lib/radio.cjs +162 -1
  308. package/dist/lib/radio.cjs.map +1 -1
  309. package/dist/lib/radio.js +66 -57
  310. package/dist/lib/radio.js.map +1 -1
  311. package/dist/lib/rich-text-editor.cjs +1137 -1
  312. package/dist/lib/rich-text-editor.cjs.map +1 -1
  313. package/dist/lib/rich-text-editor.js +567 -386
  314. package/dist/lib/rich-text-editor.js.map +1 -1
  315. package/dist/lib/root-layout.cjs +158 -1
  316. package/dist/lib/root-layout.cjs.map +1 -1
  317. package/dist/lib/root-layout.js +33 -31
  318. package/dist/lib/root-layout.js.map +1 -1
  319. package/dist/lib/scroller.cjs +1090 -1
  320. package/dist/lib/scroller.cjs.map +1 -1
  321. package/dist/lib/scroller.js +668 -345
  322. package/dist/lib/scroller.js.map +1 -1
  323. package/dist/lib/select-menu.cjs +312 -1
  324. package/dist/lib/select-menu.cjs.map +1 -1
  325. package/dist/lib/select-menu.js +124 -79
  326. package/dist/lib/select-menu.js.map +1 -1
  327. package/dist/lib/settings-menu-button.cjs +77 -1
  328. package/dist/lib/settings-menu-button.cjs.map +1 -1
  329. package/dist/lib/settings-menu-button.js +31 -30
  330. package/dist/lib/settings-menu-button.js.map +1 -1
  331. package/dist/lib/skeleton.cjs +635 -1
  332. package/dist/lib/skeleton.cjs.map +1 -1
  333. package/dist/lib/skeleton.js +189 -152
  334. package/dist/lib/skeleton.js.map +1 -1
  335. package/dist/lib/stack.cjs +123 -1
  336. package/dist/lib/stack.cjs.map +1 -1
  337. package/dist/lib/stack.js +61 -53
  338. package/dist/lib/stack.js.map +1 -1
  339. package/dist/lib/tabs.cjs +102 -1
  340. package/dist/lib/tabs.cjs.map +1 -1
  341. package/dist/lib/tabs.js +47 -41
  342. package/dist/lib/tabs.js.map +1 -1
  343. package/dist/lib/time-pill.cjs +41 -1
  344. package/dist/lib/time-pill.cjs.map +1 -1
  345. package/dist/lib/time-pill.js +18 -14
  346. package/dist/lib/time-pill.js.map +1 -1
  347. package/dist/lib/toast.cjs +281 -1
  348. package/dist/lib/toast.cjs.map +1 -1
  349. package/dist/lib/toast.js +96 -74
  350. package/dist/lib/toast.js.map +1 -1
  351. package/dist/lib/toggle.cjs +192 -1
  352. package/dist/lib/toggle.cjs.map +1 -1
  353. package/dist/lib/toggle.js +60 -49
  354. package/dist/lib/toggle.js.map +1 -1
  355. package/dist/lib/tooltip-directive.cjs +84 -1
  356. package/dist/lib/tooltip-directive.cjs.map +1 -1
  357. package/dist/lib/tooltip-directive.js +56 -42
  358. package/dist/lib/tooltip-directive.js.map +1 -1
  359. package/dist/lib/tooltip.cjs +460 -1
  360. package/dist/lib/tooltip.cjs.map +1 -1
  361. package/dist/lib/tooltip.js +162 -103
  362. package/dist/lib/tooltip.js.map +1 -1
  363. package/dist/lib/top-banner-info.cjs +71 -1
  364. package/dist/lib/top-banner-info.cjs.map +1 -1
  365. package/dist/lib/top-banner-info.js +27 -22
  366. package/dist/lib/top-banner-info.js.map +1 -1
  367. package/dist/lib/unread-pill.cjs +73 -1
  368. package/dist/lib/unread-pill.cjs.map +1 -1
  369. package/dist/lib/unread-pill.js +28 -25
  370. package/dist/lib/unread-pill.js.map +1 -1
  371. package/dist/lib/validation-messages.cjs +89 -1
  372. package/dist/lib/validation-messages.cjs.map +1 -1
  373. package/dist/lib/validation-messages.js +41 -36
  374. package/dist/lib/validation-messages.js.map +1 -1
  375. package/dist/style.css +1257 -1
  376. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +2 -2
  377. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +2 -2
  378. package/package.json +30 -29
  379. package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js +0 -2
  380. package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js.map +0 -1
  381. package/dist/chunks/_plugin-vue_export-helper-hUChTQA_.js +0 -10
  382. package/dist/chunks/_plugin-vue_export-helper-hUChTQA_.js.map +0 -1
  383. package/dist/chunks/dropdown-UO3UJalk.js +0 -2
  384. package/dist/chunks/dropdown_constants-EUcDxBrX.js +0 -9
  385. package/dist/chunks/dropdown_constants-EUcDxBrX.js.map +0 -1
  386. package/dist/chunks/dropdown_constants-KHFvVI2L.js +0 -2
  387. package/dist/chunks/dropdown_constants-KHFvVI2L.js.map +0 -1
  388. package/dist/chunks/icon_constants-2S_OSQ1t.js +0 -2
  389. package/dist/chunks/index-6tYeqbgP.js +0 -3
  390. package/dist/chunks/index-IBtQ5jRJ.js +0 -2
  391. package/dist/chunks/index-IBtQ5jRJ.js.map +0 -1
  392. package/dist/chunks/index-b4iXYvId.js +0 -399
  393. package/dist/chunks/index-mRmwpCBG.js +0 -256
  394. package/dist/chunks/index-mRmwpCBG.js.map +0 -1
  395. package/dist/chunks/input-0Uksk4DP.js +0 -2
  396. package/dist/chunks/input_group-AS760Cp7.js +0 -2
  397. package/dist/chunks/keyboard_list_navigation-F0O8nht0.js +0 -197
  398. package/dist/chunks/keyboard_list_navigation-N74Bpdq7.js +0 -2
  399. package/dist/chunks/link_constants-Kn6kP4i1.js +0 -2
  400. package/dist/chunks/link_constants-vIUB92L4.js +0 -16
  401. package/dist/chunks/list_item_constants-LTUc74pD.js +0 -13
  402. package/dist/chunks/list_item_constants-Tsz5CO1m.js +0 -2
  403. package/dist/chunks/modal-VuMFkZFH.js +0 -82
  404. package/dist/chunks/modal-qEzlo0Sj.js +0 -2
  405. package/dist/chunks/notice_action-jO199emq.js +0 -2
  406. package/dist/chunks/notice_action-tJfD5Qw1.js +0 -209
  407. package/dist/chunks/notice_constants-c--hBFQw.js +0 -6
  408. package/dist/chunks/notice_constants-mC6al2Dm.js +0 -2
  409. package/dist/chunks/popover_constants-hOEhklvr.js +0 -2
  410. package/dist/chunks/popover_constants-qjlEkroB.js +0 -114
  411. package/dist/chunks/sr_only_close_button-iD7s1Pbj.js +0 -3
  412. package/dist/chunks/stack_constants-m9Ickqw0.js +0 -2
  413. package/dist/chunks/stack_constants-u7tNqGtc.js +0 -13
  414. package/dist/chunks/tab-GQZFMq83.js +0 -367
  415. package/dist/chunks/tab-at7WWglk.js +0 -2
  416. package/dist/lib/constants.cjs +0 -2
  417. package/dist/lib/dates.cjs +0 -2
  418. package/dist/lib/dates.js +0 -57
  419. package/dist/lib/mixins.cjs +0 -2
  420. package/dist/lib/mixins.js +0 -17
  421. package/dist/lib/utils.cjs +0 -2
  422. package/dist/lib/utils.js +0 -171
  423. package/dist/lib/validators.cjs +0 -2
  424. package/dist/lib/validators.js +0 -12
  425. /package/dist/{lib → common}/mixins.js.map +0 -0
@@ -1,61 +1,64 @@
1
- import { DtRecipeComboboxWithPopover as w } from "./combobox-with-popover.js";
2
- import { DtInput as I } from "./input.js";
3
- import { DtChip as L } from "./chip.js";
4
- import { DtValidationMessages as M } from "./validation-messages.js";
5
- import { validationMessageValidator as P } from "./validators.js";
6
- import { hasSlotContent as T } from "./utils.js";
7
- import { e as B } from "../chunks/popover_constants-qjlEkroB.js";
8
- import { a as k } from "../chunks/sr_only_close_button-7O-Ev8uM.js";
9
- import { resolveComponent as p, openBlock as h, createBlock as d, createSlots as W, withCtx as l, createElementVNode as a, createElementBlock as c, Fragment as z, renderList as O, mergeProps as m, toHandlers as f, withKeys as V, createTextVNode as E, toDisplayString as g, createVNode as b, withModifiers as R, renderSlot as u } from "vue";
10
- import { _ as H } from "../chunks/_plugin-vue_export-helper-hUChTQA_.js";
11
- import "../chunks/index-b4iXYvId.js";
12
- import "../chunks/keyboard_list_navigation-F0O8nht0.js";
1
+ import { DtRecipeComboboxWithPopover } from "./combobox-with-popover.js";
2
+ import { DtInput } from "./input.js";
3
+ import { DtChip } from "./chip.js";
4
+ import { DtValidationMessages } from "./validation-messages.js";
5
+ import { validationMessageValidator } from "../common/validators.js";
6
+ import { hasSlotContent } from "../common/utils.js";
7
+ import { POPOVER_APPEND_TO_VALUES } from "../chunks/popover_constants-Qkpb0yh2.js";
8
+ import { SrOnlyCloseButtonMixin } from "../chunks/sr_only_close_button-3EdsV-dH.js";
9
+ import { resolveComponent, openBlock, createBlock, createSlots, withCtx, createElementVNode, createElementBlock, Fragment, renderList, mergeProps, toHandlers, withKeys, createTextVNode, toDisplayString, createVNode, withModifiers, renderSlot } from "vue";
10
+ import { _export_sfc } from "../chunks/_plugin-vue_export-helper-caHeSgYY.js";
11
+ import "../chunks/index-b_MgDylR.js";
12
+ import "../chunks/keyboard_list_navigation-ScXhrxya.js";
13
13
  import "./list-item.js";
14
- import "../chunks/list_item_constants-LTUc74pD.js";
14
+ import "../chunks/list_item_constants-u1xcN9Dd.js";
15
15
  import "./item-layout.js";
16
- import "./constants.js";
16
+ import "../common/constants.js";
17
17
  import "./icon.js";
18
18
  import "@dialpad/dialtone-icons/vue3";
19
- import "../chunks/icon_constants-OpYAAKwF.js";
19
+ import "../chunks/icon_constants-Dy4MEUJL.js";
20
20
  import "@dialpad/dialtone-icons/icons.json";
21
21
  import "./skeleton.js";
22
22
  import "./popover.js";
23
- import "../chunks/modal-VuMFkZFH.js";
23
+ import "../chunks/modal-XOr4kiNZ.js";
24
24
  import "./button.js";
25
- import "../chunks/link_constants-vIUB92L4.js";
25
+ import "../chunks/link_constants-nWVlXQBs.js";
26
26
  import "./lazy-show.js";
27
27
  import "tippy.js";
28
- import "../chunks/dropdown_constants-EUcDxBrX.js";
29
- import "../chunks/input-4UQWegUk.js";
30
- const F = {
28
+ import "../chunks/dropdown_constants-w1MXGC3Z.js";
29
+ import "../chunks/input-NmYDD5bn.js";
30
+ const MULTI_SELECT_SIZES = {
31
31
  // Chip has no 'lg' and 'xl' size. So we don't support that in multi-select.
32
32
  EXTRA_SMALL: "xs",
33
33
  SMALL: "sm",
34
34
  DEFAULT: "md"
35
- }, $ = {
35
+ };
36
+ const CHIP_SIZES = {
36
37
  xs: "xs",
37
38
  sm: "xs",
38
39
  md: "sm"
39
- }, A = {
40
+ };
41
+ const CHIP_TOP_POSITION = {
40
42
  xs: 1.4,
41
43
  sm: 0.4,
42
44
  md: 0.2
43
- }, D = {
45
+ };
46
+ const _sfc_main = {
44
47
  name: "DtRecipeComboboxMultiSelect",
45
48
  components: {
46
- DtRecipeComboboxWithPopover: w,
47
- DtInput: I,
48
- DtChip: L,
49
- DtValidationMessages: M
49
+ DtRecipeComboboxWithPopover,
50
+ DtInput,
51
+ DtChip,
52
+ DtValidationMessages
50
53
  },
51
- mixins: [k],
54
+ mixins: [SrOnlyCloseButtonMixin],
52
55
  props: {
53
56
  /**
54
57
  * String to use for the input label.
55
58
  */
56
59
  label: {
57
60
  type: String,
58
- required: !0
61
+ required: true
59
62
  },
60
63
  /**
61
64
  * Determines visibility of input label.
@@ -63,7 +66,7 @@ const F = {
63
66
  */
64
67
  labelVisible: {
65
68
  type: Boolean,
66
- default: !0
69
+ default: true
67
70
  },
68
71
  /**
69
72
  * Description for the input
@@ -85,14 +88,16 @@ const F = {
85
88
  inputMessages: {
86
89
  type: Array,
87
90
  default: () => [],
88
- validator: (e) => P(e)
91
+ validator: (inputMessages) => {
92
+ return validationMessageValidator(inputMessages);
93
+ }
89
94
  },
90
95
  /**
91
96
  * Show input validation message
92
97
  */
93
98
  showInputMessages: {
94
99
  type: Boolean,
95
- default: !0
100
+ default: true
96
101
  },
97
102
  // @TODO: https://dialpad.atlassian.net/browse/DP-52324
98
103
  // type: {
@@ -105,7 +110,7 @@ const F = {
105
110
  */
106
111
  loading: {
107
112
  type: Boolean,
108
- default: !1
113
+ default: false
109
114
  },
110
115
  /**
111
116
  * The message when the list is loading
@@ -164,7 +169,7 @@ const F = {
164
169
  */
165
170
  hasSuggestionList: {
166
171
  type: Boolean,
167
- default: !0
172
+ default: true
168
173
  },
169
174
  /**
170
175
  * Size of the chip, one of `xs`, `sm`, `md`
@@ -172,7 +177,7 @@ const F = {
172
177
  size: {
173
178
  type: String,
174
179
  default: "md",
175
- validator: (e) => Object.values(F).includes(e)
180
+ validator: (t) => Object.values(MULTI_SELECT_SIZES).includes(t)
176
181
  },
177
182
  /**
178
183
  * Sets the element to which the popover is going to append to.
@@ -182,7 +187,9 @@ const F = {
182
187
  appendTo: {
183
188
  type: [HTMLElement, String],
184
189
  default: "body",
185
- validator: (e) => B.includes(e) || e instanceof HTMLElement
190
+ validator: (appendTo) => {
191
+ return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
192
+ }
186
193
  },
187
194
  /**
188
195
  * Named transition when the content display is toggled.
@@ -234,94 +241,121 @@ const F = {
234
241
  return {
235
242
  value: "",
236
243
  popoverOffset: [0, 4],
237
- showValidationMessages: !1,
244
+ showValidationMessages: false,
238
245
  initialInputPadding: {},
239
246
  resizeWindowObserver: null,
240
247
  originalInputSize: null,
241
- CHIP_SIZES: $,
242
- hasSlotContent: T
248
+ CHIP_SIZES,
249
+ hasSlotContent
243
250
  };
244
251
  },
245
252
  computed: {
246
253
  inputPlaceHolder() {
247
- var e;
248
- return ((e = this.selectedItems) == null ? void 0 : e.length) > 0 ? "" : this.placeholder;
254
+ var _a;
255
+ return ((_a = this.selectedItems) == null ? void 0 : _a.length) > 0 ? "" : this.placeholder;
249
256
  },
250
257
  chipListeners() {
251
258
  return {
252
- keyup: (e) => {
253
- this.onChipKeyup(e), this.$emit("keyup", e);
259
+ keyup: (event) => {
260
+ this.onChipKeyup(event);
261
+ this.$emit("keyup", event);
254
262
  }
255
263
  };
256
264
  },
257
265
  inputListeners() {
258
266
  return {
259
- input: (e) => {
260
- this.$emit("input", e), this.hasSuggestionList && this.showComboboxList();
267
+ input: (event) => {
268
+ this.$emit("input", event);
269
+ if (this.hasSuggestionList) {
270
+ this.showComboboxList();
271
+ }
261
272
  },
262
- keyup: (e) => {
263
- this.onInputKeyup(e), this.$emit("keyup", e);
273
+ keyup: (event) => {
274
+ this.onInputKeyup(event);
275
+ this.$emit("keyup", event);
264
276
  },
265
- click: (e) => {
266
- this.hasSuggestionList && this.showComboboxList();
277
+ click: (event) => {
278
+ if (this.hasSuggestionList) {
279
+ this.showComboboxList();
280
+ }
267
281
  }
268
282
  };
269
283
  }
270
284
  },
271
285
  watch: {
272
286
  selectedItems: {
273
- deep: !0,
287
+ deep: true,
274
288
  handler: async function() {
275
289
  this.initSelectedItems();
276
290
  }
277
291
  },
278
292
  async label() {
279
- await this.$nextTick(), this.setChipsTopPosition();
293
+ await this.$nextTick();
294
+ this.setChipsTopPosition();
280
295
  },
281
296
  async description() {
282
- await this.$nextTick(), this.setChipsTopPosition();
297
+ await this.$nextTick();
298
+ this.setChipsTopPosition();
283
299
  },
284
300
  size: {
285
301
  async handler() {
286
302
  await this.$nextTick();
287
- const e = this.getInput();
288
- this.revertInputPadding(e), this.originalInputSize = e.getBoundingClientRect().height, this.setInputPadding(), this.setChipsTopPosition();
303
+ const input = this.getInput();
304
+ this.revertInputPadding(input);
305
+ this.originalInputSize = input.getBoundingClientRect().height;
306
+ this.setInputPadding();
307
+ this.setChipsTopPosition();
289
308
  }
290
309
  }
291
310
  },
292
311
  mounted() {
293
312
  this.resizeWindowObserver = new ResizeObserver(async () => {
294
- this.setChipsTopPosition(), this.setInputPadding();
295
- }), this.resizeWindowObserver.observe(document.body), this.initSelectedItems();
313
+ this.setChipsTopPosition();
314
+ this.setInputPadding();
315
+ });
316
+ this.resizeWindowObserver.observe(document.body);
317
+ this.initSelectedItems();
296
318
  },
297
319
  beforeUnmount() {
298
- var e;
299
- (e = this.resizeWindowObserver) == null || e.unobserve(document.body);
320
+ var _a;
321
+ (_a = this.resizeWindowObserver) == null ? void 0 : _a.unobserve(document.body);
300
322
  },
301
323
  methods: {
302
324
  async initSelectedItems() {
303
- await this.$nextTick(), this.setInputPadding(), this.setChipsTopPosition(), this.setInputMinWidth(), this.checkMaxSelected();
325
+ await this.$nextTick();
326
+ this.setInputPadding();
327
+ this.setChipsTopPosition();
328
+ this.setInputMinWidth();
329
+ this.checkMaxSelected();
304
330
  },
305
- onChipRemove(e) {
306
- var s;
307
- this.$emit("remove", e), (s = this.$refs.input) == null || s.focus();
331
+ onChipRemove(item) {
332
+ var _a;
333
+ this.$emit("remove", item);
334
+ (_a = this.$refs.input) == null ? void 0 : _a.focus();
308
335
  },
309
- onComboboxSelect(e) {
310
- this.value = "", this.$emit("select", e);
336
+ onComboboxSelect(i) {
337
+ this.value = "";
338
+ this.$emit("select", i);
311
339
  },
312
340
  showComboboxList() {
313
- var e;
314
- this.showList == null && ((e = this.$refs.comboboxWithPopover) == null || e.showComboboxList());
341
+ var _a;
342
+ if (this.showList != null) {
343
+ return;
344
+ }
345
+ (_a = this.$refs.comboboxWithPopover) == null ? void 0 : _a.showComboboxList();
315
346
  },
316
347
  closeComboboxList() {
317
- var e;
318
- this.showList == null && ((e = this.$refs.comboboxWithPopover) == null || e.closeComboboxList());
348
+ var _a;
349
+ if (this.showList != null) {
350
+ return;
351
+ }
352
+ (_a = this.$refs.comboboxWithPopover) == null ? void 0 : _a.closeComboboxList();
319
353
  },
320
354
  getChipButtons() {
321
- return this.$refs.chips && this.$refs.chips.map((e) => e.$el.querySelector("button"));
355
+ return this.$refs.chips && this.$refs.chips.map((chip) => chip.$el.querySelector("button"));
322
356
  },
323
357
  getChips() {
324
- return this.$refs.chips && this.$refs.chips.map((e) => e.$el);
358
+ return this.$refs.chips && this.$refs.chips.map((chip) => chip.$el);
325
359
  },
326
360
  getLastChipButton() {
327
361
  return this.$refs.chips && this.getChipButtons()[this.getChipButtons().length - 1];
@@ -333,165 +367,224 @@ const F = {
333
367
  return this.$refs.chips && this.getChips()[0];
334
368
  },
335
369
  getInput() {
336
- var e;
337
- return (e = this.$refs.input) == null ? void 0 : e.$refs.input;
338
- },
339
- onChipKeyup(e) {
340
- var t;
341
- const s = (t = e.code) == null ? void 0 : t.toLowerCase();
342
- s === "arrowleft" ? this.navigateBetweenChips(e.target, !0) : s === "arrowright" && (e.target.id === this.getLastChipButton().id ? this.moveFromChipToInput() : this.navigateBetweenChips(e.target, !1));
370
+ var _a;
371
+ return (_a = this.$refs.input) == null ? void 0 : _a.$refs.input;
372
+ },
373
+ onChipKeyup(event) {
374
+ var _a;
375
+ const key = (_a = event.code) == null ? void 0 : _a.toLowerCase();
376
+ if (key === "arrowleft") {
377
+ this.navigateBetweenChips(event.target, true);
378
+ } else if (key === "arrowright") {
379
+ if (event.target.id === this.getLastChipButton().id) {
380
+ this.moveFromChipToInput();
381
+ } else {
382
+ this.navigateBetweenChips(event.target, false);
383
+ }
384
+ }
343
385
  },
344
- onInputKeyup(e) {
345
- var t;
346
- const s = (t = e.code) == null ? void 0 : t.toLowerCase();
347
- this.selectedItems.length > 0 && e.target.selectionStart === 0 && (s === "backspace" || s === "arrowleft") && this.moveFromInputToChip();
386
+ onInputKeyup(event) {
387
+ var _a;
388
+ const key = (_a = event.code) == null ? void 0 : _a.toLowerCase();
389
+ if (this.selectedItems.length > 0 && event.target.selectionStart === 0) {
390
+ if (key === "backspace" || key === "arrowleft") {
391
+ this.moveFromInputToChip();
392
+ }
393
+ }
348
394
  },
349
395
  moveFromInputToChip() {
350
- var e;
351
- this.getLastChipButton().focus(), (e = this.$refs.input) == null || e.blur(), this.closeComboboxList();
396
+ var _a;
397
+ this.getLastChipButton().focus();
398
+ (_a = this.$refs.input) == null ? void 0 : _a.blur();
399
+ this.closeComboboxList();
352
400
  },
353
401
  moveFromChipToInput() {
354
- var e;
355
- this.getLastChipButton().blur(), (e = this.$refs.input) == null || e.focus(), this.showComboboxList();
356
- },
357
- navigateBetweenChips(e, s) {
358
- var i;
359
- const t = this.getChipButtons().indexOf(e), o = s ? t - 1 : t + 1;
360
- o < 0 || o >= ((i = this.$refs.chips) == null ? void 0 : i.length) || (this.getChipButtons()[t].blur(), this.getChipButtons()[o].focus(), this.closeComboboxList());
402
+ var _a;
403
+ this.getLastChipButton().blur();
404
+ (_a = this.$refs.input) == null ? void 0 : _a.focus();
405
+ this.showComboboxList();
406
+ },
407
+ navigateBetweenChips(target, toLeft) {
408
+ var _a;
409
+ const from = this.getChipButtons().indexOf(target);
410
+ const to = toLeft ? from - 1 : from + 1;
411
+ if (to < 0 || to >= ((_a = this.$refs.chips) == null ? void 0 : _a.length)) {
412
+ return;
413
+ }
414
+ this.getChipButtons()[from].blur();
415
+ this.getChipButtons()[to].focus();
416
+ this.closeComboboxList();
361
417
  },
362
418
  setChipsTopPosition() {
363
- const e = this.getInput();
364
- if (!e)
419
+ const input = this.getInput();
420
+ if (!input)
365
421
  return;
366
- const s = this.$refs.inputSlotWrapper, t = e.getBoundingClientRect().top - s.getBoundingClientRect().top, o = this.$refs.chipsWrapper;
367
- o.style.top = t - A[this.size] + "px";
422
+ const inputSlotWrapper = this.$refs.inputSlotWrapper;
423
+ const top = input.getBoundingClientRect().top - inputSlotWrapper.getBoundingClientRect().top;
424
+ const chipsWrapper = this.$refs.chipsWrapper;
425
+ chipsWrapper.style.top = top - CHIP_TOP_POSITION[this.size] + "px";
368
426
  },
369
427
  setInputPadding() {
370
- const e = this.getLastChip(), s = this.getInput(), t = this.$refs.chipsWrapper;
371
- if (!s || (this.revertInputPadding(s), this.popoverOffset = [0, 4], !e))
428
+ const lastChip = this.getLastChip();
429
+ const input = this.getInput();
430
+ const chipsWrapper = this.$refs.chipsWrapper;
431
+ if (!input)
432
+ return;
433
+ this.revertInputPadding(input);
434
+ this.popoverOffset = [0, 4];
435
+ if (!lastChip)
372
436
  return;
373
- const o = e.offsetLeft + this.getFullWidth(e);
374
- s.style.paddingLeft = o + "px";
375
- const i = t.getBoundingClientRect().height - 4, n = e.offsetTop + 2;
376
- i > this.originalInputSize && (s.style.paddingTop = `${n}px`);
437
+ const left = lastChip.offsetLeft + this.getFullWidth(lastChip);
438
+ input.style.paddingLeft = left + "px";
439
+ const chipsSize = chipsWrapper.getBoundingClientRect().height - 4;
440
+ const top = lastChip.offsetTop + 2;
441
+ if (chipsSize > this.originalInputSize) {
442
+ input.style.paddingTop = `${top}px`;
443
+ }
377
444
  },
378
- revertInputPadding(e) {
379
- e.style.paddingLeft = "", e.style.paddingTop = "", e.style.paddingBottom = "";
445
+ revertInputPadding(input) {
446
+ input.style.paddingLeft = "";
447
+ input.style.paddingTop = "";
448
+ input.style.paddingBottom = "";
380
449
  },
381
- getFullWidth(e) {
382
- const s = window.getComputedStyle(e);
383
- return e.offsetWidth + parseInt(s.marginLeft) + parseInt(s.marginRight);
450
+ getFullWidth(el) {
451
+ const styles = window.getComputedStyle(el);
452
+ return el.offsetWidth + parseInt(styles.marginLeft) + parseInt(styles.marginRight);
384
453
  },
385
454
  setInputMinWidth() {
386
- const e = this.getFirstChip(), s = this.getInput();
387
- s && (e ? s.style.minWidth = this.getFullWidth(e) + 4 + "px" : s.style.minWidth = "");
455
+ const firstChip = this.getFirstChip();
456
+ const input = this.getInput();
457
+ if (!input)
458
+ return;
459
+ if (firstChip) {
460
+ input.style.minWidth = this.getFullWidth(firstChip) + 4 + "px";
461
+ } else {
462
+ input.style.minWidth = "";
463
+ }
388
464
  },
389
465
  checkMaxSelected() {
390
- this.maxSelected !== 0 && (this.selectedItems.length > this.maxSelected ? (this.showValidationMessages = !0, this.$emit("max-selected")) : this.showValidationMessages = !1);
466
+ if (this.maxSelected === 0)
467
+ return;
468
+ if (this.selectedItems.length > this.maxSelected) {
469
+ this.showValidationMessages = true;
470
+ this.$emit("max-selected");
471
+ } else {
472
+ this.showValidationMessages = false;
473
+ }
391
474
  }
392
475
  }
393
- }, K = {
476
+ };
477
+ const _hoisted_1 = {
394
478
  ref: "inputSlotWrapper",
395
479
  class: "combobox__input-wrapper"
396
- }, N = {
480
+ };
481
+ const _hoisted_2 = {
397
482
  ref: "chipsWrapper",
398
483
  class: "combobox__chip-wrapper"
399
- }, U = { ref: "header" }, Z = {
484
+ };
485
+ const _hoisted_3 = { ref: "header" };
486
+ const _hoisted_4 = {
400
487
  key: 1,
401
488
  class: "combobox__list--loading"
402
- }, q = { ref: "footer" };
403
- function j(e, s, t, o, i, n) {
404
- const C = p("dt-chip"), y = p("dt-input"), S = p("dt-validation-messages"), v = p("dt-recipe-combobox-with-popover");
405
- return h(), d(v, {
489
+ };
490
+ const _hoisted_5 = { ref: "footer" };
491
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
492
+ const _component_dt_chip = resolveComponent("dt-chip");
493
+ const _component_dt_input = resolveComponent("dt-input");
494
+ const _component_dt_validation_messages = resolveComponent("dt-validation-messages");
495
+ const _component_dt_recipe_combobox_with_popover = resolveComponent("dt-recipe-combobox-with-popover");
496
+ return openBlock(), createBlock(_component_dt_recipe_combobox_with_popover, {
406
497
  ref: "comboboxWithPopover",
407
- label: t.label,
408
- "show-list": t.showList,
409
- "max-height": t.listMaxHeight,
410
- "popover-offset": i.popoverOffset,
411
- "has-suggestion-list": t.hasSuggestionList,
412
- "visually-hidden-close-label": e.visuallyHiddenCloseLabel,
413
- "visually-hidden-close": e.visuallyHiddenClose,
498
+ label: $props.label,
499
+ "show-list": $props.showList,
500
+ "max-height": $props.listMaxHeight,
501
+ "popover-offset": $data.popoverOffset,
502
+ "has-suggestion-list": $props.hasSuggestionList,
503
+ "visually-hidden-close-label": _ctx.visuallyHiddenCloseLabel,
504
+ "visually-hidden-close": _ctx.visuallyHiddenClose,
414
505
  "content-width": "anchor",
415
- "append-to": t.appendTo,
416
- transition: t.transition,
417
- onSelect: n.onComboboxSelect
418
- }, W({
419
- input: l(({ onInput: x }) => [
420
- a("span", K, [
421
- a("span", N, [
422
- (h(!0), c(z, null, O(t.selectedItems, (r) => (h(), d(C, m({
423
- ref_for: !0,
424
- ref: "chips",
425
- key: r,
426
- "label-class": ["d-chip__label"],
427
- class: "combobox__chip",
428
- "close-button-props": { ariaLabel: "close" },
429
- size: i.CHIP_SIZES[t.size]
430
- }, f(n.chipListeners), {
431
- onKeyup: V((_) => n.onChipRemove(r), ["backspace"]),
432
- onClose: (_) => n.onChipRemove(r)
433
- }), {
434
- default: l(() => [
435
- E(g(r), 1)
436
- ]),
437
- _: 2
438
- }, 1040, ["size", "onKeyup", "onClose"]))), 128))
506
+ "append-to": $props.appendTo,
507
+ transition: $props.transition,
508
+ onSelect: $options.onComboboxSelect
509
+ }, createSlots({
510
+ input: withCtx(({ onInput }) => [
511
+ createElementVNode("span", _hoisted_1, [
512
+ createElementVNode("span", _hoisted_2, [
513
+ (openBlock(true), createElementBlock(Fragment, null, renderList($props.selectedItems, (item) => {
514
+ return openBlock(), createBlock(_component_dt_chip, mergeProps({
515
+ ref_for: true,
516
+ ref: "chips",
517
+ key: item,
518
+ "label-class": ["d-chip__label"],
519
+ class: "combobox__chip",
520
+ "close-button-props": { ariaLabel: "close" },
521
+ size: $data.CHIP_SIZES[$props.size]
522
+ }, toHandlers($options.chipListeners), {
523
+ onKeyup: withKeys(($event) => $options.onChipRemove(item), ["backspace"]),
524
+ onClose: ($event) => $options.onChipRemove(item)
525
+ }), {
526
+ default: withCtx(() => [
527
+ createTextVNode(toDisplayString(item), 1)
528
+ ]),
529
+ _: 2
530
+ }, 1040, ["size", "onKeyup", "onClose"]);
531
+ }), 128))
439
532
  ], 512),
440
- b(y, m({
533
+ createVNode(_component_dt_input, mergeProps({
441
534
  ref: "input",
442
- modelValue: i.value,
443
- "onUpdate:modelValue": s[0] || (s[0] = (r) => i.value = r),
535
+ modelValue: $data.value,
536
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.value = $event),
444
537
  class: "combobox__input",
445
- "aria-label": t.label,
446
- label: t.labelVisible ? t.label : "",
447
- description: t.description,
448
- placeholder: n.inputPlaceHolder,
449
- "show-messages": t.showInputMessages,
450
- messages: t.inputMessages,
451
- size: t.size
452
- }, f(n.inputListeners), { onInput: x }), null, 16, ["modelValue", "aria-label", "label", "description", "placeholder", "show-messages", "messages", "size", "onInput"]),
453
- b(S, {
454
- "validation-messages": t.maxSelectedMessage,
455
- "show-messages": i.showValidationMessages
538
+ "aria-label": $props.label,
539
+ label: $props.labelVisible ? $props.label : "",
540
+ description: $props.description,
541
+ placeholder: $options.inputPlaceHolder,
542
+ "show-messages": $props.showInputMessages,
543
+ messages: $props.inputMessages,
544
+ size: $props.size
545
+ }, toHandlers($options.inputListeners), { onInput }), null, 16, ["modelValue", "aria-label", "label", "description", "placeholder", "show-messages", "messages", "size", "onInput"]),
546
+ createVNode(_component_dt_validation_messages, {
547
+ "validation-messages": $props.maxSelectedMessage,
548
+ "show-messages": $data.showValidationMessages
456
549
  }, null, 8, ["validation-messages", "show-messages"])
457
550
  ], 512)
458
551
  ]),
459
- list: l(() => [
460
- a("div", {
552
+ list: withCtx(() => [
553
+ createElementVNode("div", {
461
554
  ref: "list",
462
- onMousedown: s[1] || (s[1] = R(() => {
555
+ onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
463
556
  }, ["prevent"]))
464
557
  }, [
465
- t.loading ? (h(), c("div", Z, g(t.loadingMessage), 1)) : u(e.$slots, "list", { key: 0 }, void 0, !0)
558
+ !$props.loading ? renderSlot(_ctx.$slots, "list", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString($props.loadingMessage), 1))
466
559
  ], 544)
467
560
  ]),
468
561
  _: 2
469
562
  }, [
470
- i.hasSlotContent(e.$slots.header) ? {
563
+ $data.hasSlotContent(_ctx.$slots.header) ? {
471
564
  name: "header",
472
- fn: l(() => [
473
- a("div", U, [
474
- u(e.$slots, "header", {}, void 0, !0)
565
+ fn: withCtx(() => [
566
+ createElementVNode("div", _hoisted_3, [
567
+ renderSlot(_ctx.$slots, "header", {}, void 0, true)
475
568
  ], 512)
476
569
  ]),
477
570
  key: "0"
478
571
  } : void 0,
479
- i.hasSlotContent(e.$slots.footer) ? {
572
+ $data.hasSlotContent(_ctx.$slots.footer) ? {
480
573
  name: "footer",
481
- fn: l(() => [
482
- a("div", q, [
483
- u(e.$slots, "footer", {}, void 0, !0)
574
+ fn: withCtx(() => [
575
+ createElementVNode("div", _hoisted_5, [
576
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
484
577
  ], 512)
485
578
  ]),
486
579
  key: "1"
487
580
  } : void 0
488
581
  ]), 1032, ["label", "show-list", "max-height", "popover-offset", "has-suggestion-list", "visually-hidden-close-label", "visually-hidden-close", "append-to", "transition", "onSelect"]);
489
582
  }
490
- const we = /* @__PURE__ */ H(D, [["render", j], ["__scopeId", "data-v-d1f21523"]]);
583
+ const combobox_multi_select = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d1f21523"]]);
491
584
  export {
492
- $ as CHIP_SIZES,
493
- A as CHIP_TOP_POSITION,
494
- we as DtRecipeComboboxMultiSelect,
495
- F as MULTI_SELECT_SIZES
585
+ CHIP_SIZES,
586
+ CHIP_TOP_POSITION,
587
+ combobox_multi_select as DtRecipeComboboxMultiSelect,
588
+ MULTI_SELECT_SIZES
496
589
  };
497
590
  //# sourceMappingURL=combobox-multi-select.js.map