@dialpad/dialtone 9.133.0-next.2 → 9.133.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1060) hide show
  1. package/dist/css/dialtone-default-theme.css +2954 -2995
  2. package/dist/css/dialtone-default-theme.min.css +1 -1
  3. package/dist/css/dialtone-docs.json +1 -1
  4. package/dist/css/dialtone.css +1938 -2041
  5. package/dist/css/dialtone.min.css +1 -1
  6. package/dist/tokens/doc.json +53137 -53137
  7. package/dist/vue2/common/constants/index.cjs.map +1 -1
  8. package/dist/vue2/common/constants/index.js.map +1 -1
  9. package/dist/vue2/common/dates/index.cjs.map +1 -1
  10. package/dist/vue2/common/dates/index.js +3 -3
  11. package/dist/vue2/common/dates/index.js.map +1 -1
  12. package/dist/vue2/common/emoji/index.cjs.map +1 -1
  13. package/dist/vue2/common/emoji/index.js.map +1 -1
  14. package/dist/vue2/common/mixins/dom.cjs.map +1 -1
  15. package/dist/vue2/common/mixins/dom.js.map +1 -1
  16. package/dist/vue2/common/mixins/input-group.cjs.map +1 -1
  17. package/dist/vue2/common/mixins/input-group.js +5 -5
  18. package/dist/vue2/common/mixins/input-group.js.map +1 -1
  19. package/dist/vue2/common/mixins/input.cjs.map +1 -1
  20. package/dist/vue2/common/mixins/input.js.map +1 -1
  21. package/dist/vue2/common/mixins/keyboard-list-navigation.cjs.map +1 -1
  22. package/dist/vue2/common/mixins/keyboard-list-navigation.js.map +1 -1
  23. package/dist/vue2/common/mixins/modal.cjs.map +1 -1
  24. package/dist/vue2/common/mixins/modal.js.map +1 -1
  25. package/dist/vue2/common/mixins/skeleton.cjs.map +1 -1
  26. package/dist/vue2/common/mixins/skeleton.js.map +1 -1
  27. package/dist/vue2/common/utils/index.cjs.map +1 -1
  28. package/dist/vue2/common/utils/index.js.map +1 -1
  29. package/dist/vue2/common/validators/index.cjs.map +1 -1
  30. package/dist/vue2/common/validators/index.js.map +1 -1
  31. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  32. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  33. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +4 -4
  34. package/dist/vue2/lib/avatar/avatar-constants.cjs.map +1 -1
  35. package/dist/vue2/lib/avatar/avatar-constants.js.map +1 -1
  36. package/dist/vue2/lib/avatar/avatar.cjs.map +1 -1
  37. package/dist/vue2/lib/avatar/avatar.js +11 -11
  38. package/dist/vue2/lib/avatar/avatar.js.map +1 -1
  39. package/dist/vue2/lib/avatar/utils.cjs.map +1 -1
  40. package/dist/vue2/lib/avatar/utils.js.map +1 -1
  41. package/dist/vue2/lib/badge/badge.cjs.map +1 -1
  42. package/dist/vue2/lib/badge/badge.js +7 -7
  43. package/dist/vue2/lib/badge/badge.js.map +1 -1
  44. package/dist/vue2/lib/banner/banner.cjs +1 -1
  45. package/dist/vue2/lib/banner/banner.cjs.map +1 -1
  46. package/dist/vue2/lib/banner/banner.js +4 -4
  47. package/dist/vue2/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
  48. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  49. package/dist/vue2/lib/button/button-constants.cjs.map +1 -1
  50. package/dist/vue2/lib/button/button-constants.js.map +1 -1
  51. package/dist/vue2/lib/button/button.cjs.map +1 -1
  52. package/dist/vue2/lib/button/button.js +12 -12
  53. package/dist/vue2/lib/button-group/button-group.cjs.map +1 -1
  54. package/dist/vue2/lib/button-group/buttons-decorator.cjs.map +1 -1
  55. package/dist/vue2/lib/callbar-button/callbar-button-constants.cjs.map +1 -1
  56. package/dist/vue2/lib/callbar-button/callbar-button-constants.js.map +1 -1
  57. package/dist/vue2/lib/callbar-button/callbar-button.cjs +1 -1
  58. package/dist/vue2/lib/callbar-button/callbar-button.cjs.map +1 -1
  59. package/dist/vue2/lib/callbar-button/callbar-button.js +3 -3
  60. package/dist/vue2/lib/callbar-button/callbar-button.js.map +1 -1
  61. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  62. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  63. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +6 -6
  64. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  65. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  66. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  67. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +6 -6
  68. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  69. package/dist/vue2/lib/callbox/callbox-constants.cjs.map +1 -1
  70. package/dist/vue2/lib/callbox/callbox-constants.js.map +1 -1
  71. package/dist/vue2/lib/callbox/callbox.cjs.map +1 -1
  72. package/dist/vue2/lib/callbox/callbox.js +5 -5
  73. package/dist/vue2/lib/checkbox/checkbox-constants.cjs.map +1 -1
  74. package/dist/vue2/lib/checkbox/checkbox-constants.js.map +1 -1
  75. package/dist/vue2/lib/checkbox/checkbox.cjs.map +1 -1
  76. package/dist/vue2/lib/checkbox-group/checkbox-group.cjs.map +1 -1
  77. package/dist/vue2/lib/checkbox-group/checkbox-group.js.map +1 -1
  78. package/dist/vue2/lib/checkbox-group/checkboxes-decorator.cjs.map +1 -1
  79. package/dist/vue2/lib/chip/chip-constants.cjs.map +1 -1
  80. package/dist/vue2/lib/chip/chip-constants.js.map +1 -1
  81. package/dist/vue2/lib/chip/chip.cjs.map +1 -1
  82. package/dist/vue2/lib/chip/chip.js +3 -3
  83. package/dist/vue2/lib/collapsible/collapsible.cjs +1 -1
  84. package/dist/vue2/lib/collapsible/collapsible.cjs.map +1 -1
  85. package/dist/vue2/lib/collapsible/collapsible.js +7 -7
  86. package/dist/vue2/lib/combobox/combobox-constants.cjs.map +1 -1
  87. package/dist/vue2/lib/combobox/combobox-constants.js.map +1 -1
  88. package/dist/vue2/lib/combobox/combobox-empty-list.cjs.map +1 -1
  89. package/dist/vue2/lib/combobox/combobox-loading-list.cjs +1 -1
  90. package/dist/vue2/lib/combobox/combobox-loading-list.cjs.map +1 -1
  91. package/dist/vue2/lib/combobox/combobox-loading-list.js +3 -3
  92. package/dist/vue2/lib/combobox/combobox.cjs.map +1 -1
  93. package/dist/vue2/lib/combobox/combobox.js.map +1 -1
  94. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select-constants.cjs.map +1 -1
  95. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select-constants.js.map +1 -1
  96. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select-story-constants.cjs.map +1 -1
  97. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select-story-constants.js.map +1 -1
  98. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  99. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +3 -3
  100. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  101. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  102. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  103. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js +9 -9
  104. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  105. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  106. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +7 -7
  107. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  108. package/dist/vue2/lib/contact-info/contact-info.cjs.map +1 -1
  109. package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
  110. package/dist/vue2/lib/contact-row/contact-row.cjs.map +1 -1
  111. package/dist/vue2/lib/contact-row/contact-row.js +4 -4
  112. package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
  113. package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
  114. package/dist/vue2/lib/datepicker/datepicker.js +21 -21
  115. package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
  116. package/dist/vue2/lib/datepicker/formatUtils.cjs.map +1 -1
  117. package/dist/vue2/lib/datepicker/formatUtils.js.map +1 -1
  118. package/dist/vue2/lib/datepicker/utils.cjs.map +1 -1
  119. package/dist/vue2/lib/datepicker/utils.js.map +1 -1
  120. package/dist/vue2/lib/description-list/description-list.cjs.map +1 -1
  121. package/dist/vue2/lib/dropdown/dropdown-constants.cjs.map +1 -1
  122. package/dist/vue2/lib/dropdown/dropdown-constants.js.map +1 -1
  123. package/dist/vue2/lib/dropdown/dropdown-story-constants.cjs.map +1 -1
  124. package/dist/vue2/lib/dropdown/dropdown-story-constants.js.map +1 -1
  125. package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
  126. package/dist/vue2/lib/dropdown/dropdown.cjs.map +1 -1
  127. package/dist/vue2/lib/dropdown/dropdown.js +1 -1
  128. package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
  129. package/dist/vue2/lib/editor/editor-constants.cjs.map +1 -1
  130. package/dist/vue2/lib/editor/editor-constants.js.map +1 -1
  131. package/dist/vue2/lib/editor/editor.cjs +1 -1
  132. package/dist/vue2/lib/editor/editor.cjs.map +1 -1
  133. package/dist/vue2/lib/editor/editor.js +44 -44
  134. package/dist/vue2/lib/editor/editor.js.map +1 -1
  135. package/dist/vue2/lib/emoji/emoji.cjs.map +1 -1
  136. package/dist/vue2/lib/emoji/emoji.js +4 -4
  137. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  138. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  139. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
  140. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  141. package/dist/vue2/lib/emoji-picker/emoji-picker.js +9 -9
  142. package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
  143. package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
  144. package/dist/vue2/lib/emoji-row/emoji-row-constants.js.map +1 -1
  145. package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
  146. package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
  147. package/dist/vue2/lib/emoji-row/emoji-row.js +5 -5
  148. package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.cjs.map +1 -1
  149. package/dist/vue2/lib/empty-state/empty-state-constants.cjs.map +1 -1
  150. package/dist/vue2/lib/empty-state/empty-state-constants.js.map +1 -1
  151. package/dist/vue2/lib/empty-state/empty-state.cjs.map +1 -1
  152. package/dist/vue2/lib/empty-state/empty-state.js +3 -3
  153. package/dist/vue2/lib/empty-state/empty-state.js.map +1 -1
  154. package/dist/vue2/lib/feed-item-pill/feed-item-pill-constants.cjs.map +1 -1
  155. package/dist/vue2/lib/feed-item-pill/feed-item-pill-constants.js.map +1 -1
  156. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  157. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  158. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +3 -3
  159. package/dist/vue2/lib/feed-item-row/feed-item-row-constants.cjs.map +1 -1
  160. package/dist/vue2/lib/feed-item-row/feed-item-row-constants.js.map +1 -1
  161. package/dist/vue2/lib/feed-item-row/feed-item-row.cjs +1 -1
  162. package/dist/vue2/lib/feed-item-row/feed-item-row.cjs.map +1 -1
  163. package/dist/vue2/lib/feed-item-row/feed-item-row.js +8 -8
  164. package/dist/vue2/lib/general-row/general-row-constants.cjs.map +1 -1
  165. package/dist/vue2/lib/general-row/general-row-constants.js.map +1 -1
  166. package/dist/vue2/lib/general-row/general-row.cjs +1 -1
  167. package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
  168. package/dist/vue2/lib/general-row/general-row.js +14 -14
  169. package/dist/vue2/lib/general-row/general-row.js.map +1 -1
  170. package/dist/vue2/lib/general-row/leftbar-general-row-icon.cjs.map +1 -1
  171. package/dist/vue2/lib/general-row/leftbar-general-row-icon.js +30 -30
  172. package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
  173. package/dist/vue2/lib/grouped-chip/grouped-chip.cjs.map +1 -1
  174. package/dist/vue2/lib/hovercard/hovercard.cjs +1 -1
  175. package/dist/vue2/lib/hovercard/hovercard.cjs.map +1 -1
  176. package/dist/vue2/lib/hovercard/hovercard.js +7 -7
  177. package/dist/vue2/lib/hovercard/hovercard.js.map +1 -1
  178. package/dist/vue2/lib/icon/icon-constants.cjs.map +1 -1
  179. package/dist/vue2/lib/icon/icon-constants.js.map +1 -1
  180. package/dist/vue2/lib/icon/icon.js +3 -3
  181. package/dist/vue2/lib/illustration/illustration-constants.cjs.map +1 -1
  182. package/dist/vue2/lib/illustration/illustration-constants.js.map +1 -1
  183. package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
  184. package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
  185. package/dist/vue2/lib/input/input-constants.cjs.map +1 -1
  186. package/dist/vue2/lib/input/input-constants.js.map +1 -1
  187. package/dist/vue2/lib/input/input.cjs.map +1 -1
  188. package/dist/vue2/lib/input/input.js +8 -8
  189. package/dist/vue2/lib/input/input.js.map +1 -1
  190. package/dist/vue2/lib/input-group/input-group.cjs.map +1 -1
  191. package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
  192. package/dist/vue2/lib/ivr-node/ivr-node-constants.js.map +1 -1
  193. package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
  194. package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
  195. package/dist/vue2/lib/ivr-node/ivr-node.js +27 -27
  196. package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
  197. package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.js +13 -13
  198. package/dist/vue2/lib/link/link-constants.cjs.map +1 -1
  199. package/dist/vue2/lib/link/link-constants.js.map +1 -1
  200. package/dist/vue2/lib/link/link.cjs.map +1 -1
  201. package/dist/vue2/lib/link/link.js +3 -3
  202. package/dist/vue2/lib/list-item/list-item-constants.cjs.map +1 -1
  203. package/dist/vue2/lib/list-item/list-item-constants.js.map +1 -1
  204. package/dist/vue2/lib/list-item/list-item.cjs.map +1 -1
  205. package/dist/vue2/lib/list-item/list-item.js +1 -1
  206. package/dist/vue2/lib/list-item/list-item.js.map +1 -1
  207. package/dist/vue2/lib/list-item-group/list-item-group-constants.cjs.map +1 -1
  208. package/dist/vue2/lib/list-item-group/list-item-group-constants.js.map +1 -1
  209. package/dist/vue2/lib/list-item-group/list-item-group.cjs.map +1 -1
  210. package/dist/vue2/lib/loader/loader.cjs.map +1 -1
  211. package/dist/vue2/lib/message-input/last-active-nodes.cjs.map +1 -1
  212. package/dist/vue2/lib/message-input/last-active-nodes.js.map +1 -1
  213. package/dist/vue2/lib/message-input/message-input-button.cjs +1 -1
  214. package/dist/vue2/lib/message-input/message-input-button.cjs.map +1 -1
  215. package/dist/vue2/lib/message-input/message-input-button.js +8 -8
  216. package/dist/vue2/lib/message-input/message-input-constants.cjs.map +1 -1
  217. package/dist/vue2/lib/message-input/message-input-constants.js.map +1 -1
  218. package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
  219. package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
  220. package/dist/vue2/lib/message-input/message-input-link.js +8 -8
  221. package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
  222. package/dist/vue2/lib/message-input/message-input-topbar.js +9 -9
  223. package/dist/vue2/lib/message-input/message-input.cjs +1 -1
  224. package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
  225. package/dist/vue2/lib/message-input/message-input.js +26 -26
  226. package/dist/vue2/lib/message-input/message-input.js.map +1 -1
  227. package/dist/vue2/lib/modal/modal.cjs +1 -1
  228. package/dist/vue2/lib/modal/modal.cjs.map +1 -1
  229. package/dist/vue2/lib/modal/modal.js +12 -12
  230. package/dist/vue2/lib/modal/modal.js.map +1 -1
  231. package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
  232. package/dist/vue2/lib/notice/notice-constants.cjs.map +1 -1
  233. package/dist/vue2/lib/notice/notice-constants.js.map +1 -1
  234. package/dist/vue2/lib/notice/notice-icon.cjs.map +1 -1
  235. package/dist/vue2/lib/notice/notice-icon.js +9 -9
  236. package/dist/vue2/lib/notice/notice.cjs.map +1 -1
  237. package/dist/vue2/lib/notice/notice.js +3 -3
  238. package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
  239. package/dist/vue2/lib/pagination/pagination.js +3 -3
  240. package/dist/vue2/lib/pagination/pagination.js.map +1 -1
  241. package/dist/vue2/lib/popover/popover-constants.cjs.map +1 -1
  242. package/dist/vue2/lib/popover/popover-constants.js.map +1 -1
  243. package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
  244. package/dist/vue2/lib/popover/popover.cjs.map +1 -1
  245. package/dist/vue2/lib/popover/popover.js +14 -14
  246. package/dist/vue2/lib/popover/popover.js.map +1 -1
  247. package/dist/vue2/lib/popover/tippy-utils.cjs.map +1 -1
  248. package/dist/vue2/lib/popover/tippy-utils.js.map +1 -1
  249. package/dist/vue2/lib/presence/presence.cjs.map +1 -1
  250. package/dist/vue2/lib/radio/radio-constants.cjs.map +1 -1
  251. package/dist/vue2/lib/radio/radio-constants.js.map +1 -1
  252. package/dist/vue2/lib/radio/radio.cjs.map +1 -1
  253. package/dist/vue2/lib/radio-group/radio-group.cjs.map +1 -1
  254. package/dist/vue2/lib/radio-group/radios-decorator.cjs.map +1 -1
  255. package/dist/vue2/lib/recipes/eslint.config.cjs.map +1 -1
  256. package/dist/vue2/lib/recipes/eslint.config.js.map +1 -1
  257. package/dist/vue2/lib/rich-text-editor/channel-suggestion.cjs.map +1 -1
  258. package/dist/vue2/lib/rich-text-editor/channel-suggestion.js.map +1 -1
  259. package/dist/vue2/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  260. package/dist/vue2/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  261. package/dist/vue2/lib/rich-text-editor/rich-text-editor-constants.cjs.map +1 -1
  262. package/dist/vue2/lib/rich-text-editor/rich-text-editor-constants.js.map +1 -1
  263. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  264. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +21 -21
  265. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  266. package/dist/vue2/lib/rich-text-editor/slash-command-suggestion.cjs.map +1 -1
  267. package/dist/vue2/lib/rich-text-editor/slash-command-suggestion.js.map +1 -1
  268. package/dist/vue2/lib/root-layout/root-layout-constants.cjs.map +1 -1
  269. package/dist/vue2/lib/root-layout/root-layout-constants.js.map +1 -1
  270. package/dist/vue2/lib/root-layout/root-layout.cjs.map +1 -1
  271. package/dist/vue2/lib/root-layout/root-layout.js +1 -1
  272. package/dist/vue2/lib/scrollbar-directive/scrollbar.cjs.map +1 -1
  273. package/dist/vue2/lib/scrollbar-directive/scrollbar.js.map +1 -1
  274. package/dist/vue2/lib/select-menu/select-menu-constants.cjs.map +1 -1
  275. package/dist/vue2/lib/select-menu/select-menu-constants.js.map +1 -1
  276. package/dist/vue2/lib/select-menu/select-menu.cjs.map +1 -1
  277. package/dist/vue2/lib/select-menu/select-menu.js +7 -7
  278. package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  279. package/dist/vue2/lib/skeleton/skeleton-constants.cjs.map +1 -1
  280. package/dist/vue2/lib/skeleton/skeleton-constants.js.map +1 -1
  281. package/dist/vue2/lib/skeleton/skeleton-list-item.cjs.map +1 -1
  282. package/dist/vue2/lib/skeleton/skeleton-paragraph.cjs.map +1 -1
  283. package/dist/vue2/lib/skeleton/skeleton-paragraph.js.map +1 -1
  284. package/dist/vue2/lib/skeleton/skeleton-shape.cjs.map +1 -1
  285. package/dist/vue2/lib/skeleton/skeleton-shape.js +1 -1
  286. package/dist/vue2/lib/skeleton/skeleton-text.cjs.map +1 -1
  287. package/dist/vue2/lib/skeleton/skeleton.cjs.map +1 -1
  288. package/dist/vue2/lib/split-button/split-button-alpha.cjs.map +1 -1
  289. package/dist/vue2/lib/split-button/split-button-constants.cjs.map +1 -1
  290. package/dist/vue2/lib/split-button/split-button-constants.js.map +1 -1
  291. package/dist/vue2/lib/split-button/split-button-omega.cjs.map +1 -1
  292. package/dist/vue2/lib/split-button/split-button.cjs.map +1 -1
  293. package/dist/vue2/lib/split-button/split-button.js +5 -5
  294. package/dist/vue2/lib/split-button/split-button.js.map +1 -1
  295. package/dist/vue2/lib/stack/stack-constants.cjs.map +1 -1
  296. package/dist/vue2/lib/stack/stack-constants.js.map +1 -1
  297. package/dist/vue2/lib/stack/stack.cjs.map +1 -1
  298. package/dist/vue2/lib/stack/stack.js +9 -9
  299. package/dist/vue2/lib/stack/utils.cjs.map +1 -1
  300. package/dist/vue2/lib/stack/utils.js.map +1 -1
  301. package/dist/vue2/lib/stack/validators.cjs.map +1 -1
  302. package/dist/vue2/lib/stack/validators.js.map +1 -1
  303. package/dist/vue2/lib/tab/tab-group.cjs.map +1 -1
  304. package/dist/vue2/lib/tab/tab-group.js +5 -5
  305. package/dist/vue2/lib/tab/tab-group.js.map +1 -1
  306. package/dist/vue2/lib/tab/tab.cjs.map +1 -1
  307. package/dist/vue2/lib/toast/toast-constants.cjs.map +1 -1
  308. package/dist/vue2/lib/toast/toast-constants.js.map +1 -1
  309. package/dist/vue2/lib/toast/toast.cjs +1 -1
  310. package/dist/vue2/lib/toast/toast.cjs.map +1 -1
  311. package/dist/vue2/lib/toast/toast.js +11 -11
  312. package/dist/vue2/lib/toggle/toggle-constants.cjs.map +1 -1
  313. package/dist/vue2/lib/toggle/toggle-constants.js.map +1 -1
  314. package/dist/vue2/lib/toggle/toggle.cjs.map +1 -1
  315. package/dist/vue2/lib/tooltip/tooltip-constants.cjs.map +1 -1
  316. package/dist/vue2/lib/tooltip/tooltip-constants.js.map +1 -1
  317. package/dist/vue2/lib/tooltip/tooltip.cjs +1 -1
  318. package/dist/vue2/lib/tooltip/tooltip.cjs.map +1 -1
  319. package/dist/vue2/lib/tooltip/tooltip.js +62 -63
  320. package/dist/vue2/lib/tooltip/tooltip.js.map +1 -1
  321. package/dist/vue2/lib/tooltip-directive/tooltip.cjs.map +1 -1
  322. package/dist/vue2/lib/tooltip-directive/tooltip.js.map +1 -1
  323. package/dist/vue2/lib/top-banner-info/top-banner-info-constants.cjs.map +1 -1
  324. package/dist/vue2/lib/top-banner-info/top-banner-info-constants.js.map +1 -1
  325. package/dist/vue2/lib/top-banner-info/top-banner-info.cjs.map +1 -1
  326. package/dist/vue2/lib/unread-pill/unread-pill-constants.cjs.map +1 -1
  327. package/dist/vue2/lib/unread-pill/unread-pill-constants.js.map +1 -1
  328. package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
  329. package/dist/vue2/lib/unread-pill/unread-pill.js +6 -6
  330. package/dist/vue2/lib/validation-messages/validation-messages.cjs.map +1 -1
  331. package/dist/vue2/lib/validation-messages/validation-messages.js +3 -3
  332. package/dist/vue2/localization/de-DE.cjs.map +1 -1
  333. package/dist/vue2/localization/de-DE.js.map +1 -1
  334. package/dist/vue2/localization/en-US.cjs.map +1 -1
  335. package/dist/vue2/localization/en-US.js.map +1 -1
  336. package/dist/vue2/localization/es-LA.cjs.map +1 -1
  337. package/dist/vue2/localization/es-LA.js.map +1 -1
  338. package/dist/vue2/localization/fr-FR.cjs.map +1 -1
  339. package/dist/vue2/localization/fr-FR.js.map +1 -1
  340. package/dist/vue2/localization/index.cjs.map +1 -1
  341. package/dist/vue2/localization/index.js.map +1 -1
  342. package/dist/vue2/localization/it-IT.cjs.map +1 -1
  343. package/dist/vue2/localization/it-IT.js.map +1 -1
  344. package/dist/vue2/localization/ja-JP.cjs.map +1 -1
  345. package/dist/vue2/localization/ja-JP.js.map +1 -1
  346. package/dist/vue2/localization/nl-NL.cjs.map +1 -1
  347. package/dist/vue2/localization/nl-NL.js.map +1 -1
  348. package/dist/vue2/localization/pt-BR.cjs.map +1 -1
  349. package/dist/vue2/localization/pt-BR.js.map +1 -1
  350. package/dist/vue2/localization/ru-RU.cjs.map +1 -1
  351. package/dist/vue2/localization/ru-RU.js.map +1 -1
  352. package/dist/vue2/localization/zh-CN.cjs.map +1 -1
  353. package/dist/vue2/localization/zh-CN.js.map +1 -1
  354. package/dist/vue2/node_modules/@linusborg/vue-simple-portal.cjs.map +1 -1
  355. package/dist/vue2/node_modules/@linusborg/vue-simple-portal.js.map +1 -1
  356. package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
  357. package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
  358. package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
  359. package/dist/vue2/types/common/constants/index.d.ts.map +1 -1
  360. package/dist/vue2/types/common/dates/index.d.ts.map +1 -1
  361. package/dist/vue2/types/common/emoji/index.d.ts.map +1 -1
  362. package/dist/vue2/types/common/mixins/dom.d.ts.map +1 -1
  363. package/dist/vue2/types/common/mixins/input.d.ts +7 -7
  364. package/dist/vue2/types/common/mixins/input.d.ts.map +1 -1
  365. package/dist/vue2/types/common/mixins/input_group.d.ts +3 -3
  366. package/dist/vue2/types/common/mixins/modal.d.ts.map +1 -1
  367. package/dist/vue2/types/common/utils/index.d.ts.map +1 -1
  368. package/dist/vue2/types/components/avatar/avatar.vue.d.ts +8 -8
  369. package/dist/vue2/types/components/badge/badge.vue.d.ts +3 -3
  370. package/dist/vue2/types/components/banner/banner.vue.d.ts +2 -2
  371. package/dist/vue2/types/components/banner/banner.vue.d.ts.map +1 -1
  372. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -1
  373. package/dist/vue2/types/components/breadcrumbs/breadcrumbs_constants.d.ts.map +1 -1
  374. package/dist/vue2/types/components/button/button.vue.d.ts +2 -2
  375. package/dist/vue2/types/components/button/button_constants.d.ts.map +1 -1
  376. package/dist/vue2/types/components/card/card.vue.d.ts +8 -8
  377. package/dist/vue2/types/components/checkbox/checkbox.vue.d.ts +7 -7
  378. package/dist/vue2/types/components/checkbox_group/checkbox_group.vue.d.ts +3 -3
  379. package/dist/vue2/types/components/chip/chip.vue.d.ts +6 -6
  380. package/dist/vue2/types/components/collapsible/collapsible.vue.d.ts +4 -4
  381. package/dist/vue2/types/components/combobox/combobox.vue.d.ts +3 -3
  382. package/dist/vue2/types/components/combobox/combobox_empty-list.vue.d.ts +2 -2
  383. package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  384. package/dist/vue2/types/components/datepicker/formatUtils.d.ts +5 -5
  385. package/dist/vue2/types/components/datepicker/formatUtils.d.ts.map +1 -1
  386. package/dist/vue2/types/components/description_list/description_list.vue.d.ts +4 -4
  387. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts +8 -8
  388. package/dist/vue2/types/components/emoji/emoji.vue.d.ts +2 -2
  389. package/dist/vue2/types/components/emoji_picker/emoji_picker_constants.d.ts.map +1 -1
  390. package/dist/vue2/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  391. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  392. package/dist/vue2/types/components/input/input.vue.d.ts +7 -7
  393. package/dist/vue2/types/components/input_group/input_group.vue.d.ts +3 -3
  394. package/dist/vue2/types/components/item_layout/item_layout.vue.d.ts +1 -1
  395. package/dist/vue2/types/components/link/link_constants.d.ts.map +1 -1
  396. package/dist/vue2/types/components/list_item/list_item.vue.d.ts +2 -2
  397. package/dist/vue2/types/components/list_item_group/list_item_group.vue.d.ts +4 -4
  398. package/dist/vue2/types/components/modal/modal.vue.d.ts +13 -13
  399. package/dist/vue2/types/components/modal/modal.vue.d.ts.map +1 -1
  400. package/dist/vue2/types/components/notice/notice.vue.d.ts +2 -2
  401. package/dist/vue2/types/components/popover/popover.vue.d.ts +20 -20
  402. package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
  403. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +2 -2
  404. package/dist/vue2/types/components/popover/tippy_utils.d.ts +1 -1
  405. package/dist/vue2/types/components/radio/radio.vue.d.ts +7 -7
  406. package/dist/vue2/types/components/radio_group/radio_group.vue.d.ts +3 -3
  407. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts +1 -1
  408. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts.map +1 -1
  409. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +11 -11
  410. package/dist/vue2/types/components/root_layout/root_layout.vue.d.ts +8 -8
  411. package/dist/vue2/types/components/select_menu/select_menu.vue.d.ts +10 -10
  412. package/dist/vue2/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
  413. package/dist/vue2/types/components/skeleton/skeleton-paragraph.vue.d.ts +1 -1
  414. package/dist/vue2/types/components/skeleton/skeleton-shape.vue.d.ts +3 -3
  415. package/dist/vue2/types/components/skeleton/skeleton-text.vue.d.ts +1 -1
  416. package/dist/vue2/types/components/skeleton/skeleton.vue.d.ts +7 -7
  417. package/dist/vue2/types/components/skeleton/skeleton_constants.d.ts.map +1 -1
  418. package/dist/vue2/types/components/split_button/split_button-alpha.vue.d.ts +3 -3
  419. package/dist/vue2/types/components/split_button/split_button-omega.vue.d.ts +1 -1
  420. package/dist/vue2/types/components/split_button/split_button.vue.d.ts +2 -2
  421. package/dist/vue2/types/components/tab/tab.vue.d.ts +2 -2
  422. package/dist/vue2/types/components/tab/tab_group.vue.d.ts +2 -2
  423. package/dist/vue2/types/components/tab/tab_panel.vue.d.ts +2 -2
  424. package/dist/vue2/types/components/tab/tab_panel.vue.d.ts.map +1 -1
  425. package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +2 -2
  426. package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts +2 -2
  427. package/dist/vue2/types/components/toast/toast.vue.d.ts +7 -7
  428. package/dist/vue2/types/components/toast/toast_constants.d.ts.map +1 -1
  429. package/dist/vue2/types/components/toggle/toggle.vue.d.ts +4 -4
  430. package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +8 -8
  431. package/dist/vue2/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  432. package/dist/vue2/types/components/validation_messages/validation_messages.vue.d.ts +0 -1
  433. package/dist/vue2/types/components/validation_messages/validation_messages.vue.d.ts.map +1 -1
  434. package/dist/vue2/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -6
  435. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +5 -5
  436. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +6 -6
  437. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
  438. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
  439. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +7 -7
  440. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +3 -3
  441. package/dist/vue2/types/recipes/conversation_view/editor/editor_constants.d.ts.map +1 -1
  442. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +4 -4
  443. package/dist/vue2/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
  444. package/dist/vue2/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  445. package/dist/vue2/types/recipes/conversation_view/feed_item_row/feed_item_row_constants.d.ts.map +1 -1
  446. package/dist/vue2/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -1
  447. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -15
  448. package/dist/vue2/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +1 -1
  449. package/dist/vue2/types/recipes/leftbar/callbox/callbox.vue.d.ts +1 -1
  450. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +1 -1
  451. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
  452. package/dist/vue3/common/constants/index.cjs.map +1 -1
  453. package/dist/vue3/common/constants/index.js.map +1 -1
  454. package/dist/vue3/common/dates/index.cjs.map +1 -1
  455. package/dist/vue3/common/dates/index.js +3 -3
  456. package/dist/vue3/common/dates/index.js.map +1 -1
  457. package/dist/vue3/common/emoji/index.cjs.map +1 -1
  458. package/dist/vue3/common/emoji/index.js.map +1 -1
  459. package/dist/vue3/common/mixins/dom.cjs.map +1 -1
  460. package/dist/vue3/common/mixins/dom.js.map +1 -1
  461. package/dist/vue3/common/mixins/input-group.cjs.map +1 -1
  462. package/dist/vue3/common/mixins/input-group.js +5 -5
  463. package/dist/vue3/common/mixins/input-group.js.map +1 -1
  464. package/dist/vue3/common/mixins/input.cjs.map +1 -1
  465. package/dist/vue3/common/mixins/input.js.map +1 -1
  466. package/dist/vue3/common/mixins/keyboard-list-navigation.cjs.map +1 -1
  467. package/dist/vue3/common/mixins/keyboard-list-navigation.js.map +1 -1
  468. package/dist/vue3/common/mixins/modal.cjs.map +1 -1
  469. package/dist/vue3/common/mixins/modal.js.map +1 -1
  470. package/dist/vue3/common/mixins/skeleton.cjs.map +1 -1
  471. package/dist/vue3/common/mixins/skeleton.js.map +1 -1
  472. package/dist/vue3/common/utils/index.cjs.map +1 -1
  473. package/dist/vue3/common/utils/index.js +3 -3
  474. package/dist/vue3/common/utils/index.js.map +1 -1
  475. package/dist/vue3/common/validators/index.cjs.map +1 -1
  476. package/dist/vue3/common/validators/index.js.map +1 -1
  477. package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  478. package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  479. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js +5 -5
  480. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  481. package/dist/vue3/lib/avatar/avatar-constants.cjs.map +1 -1
  482. package/dist/vue3/lib/avatar/avatar-constants.js.map +1 -1
  483. package/dist/vue3/lib/avatar/avatar.cjs.map +1 -1
  484. package/dist/vue3/lib/avatar/avatar.js +11 -11
  485. package/dist/vue3/lib/avatar/avatar.js.map +1 -1
  486. package/dist/vue3/lib/avatar/utils.cjs.map +1 -1
  487. package/dist/vue3/lib/avatar/utils.js.map +1 -1
  488. package/dist/vue3/lib/badge/badge.cjs.map +1 -1
  489. package/dist/vue3/lib/badge/badge.js +12 -12
  490. package/dist/vue3/lib/badge/badge.js.map +1 -1
  491. package/dist/vue3/lib/banner/banner.cjs +1 -1
  492. package/dist/vue3/lib/banner/banner.cjs.map +1 -1
  493. package/dist/vue3/lib/banner/banner.js +7 -7
  494. package/dist/vue3/lib/banner/banner.js.map +1 -1
  495. package/dist/vue3/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
  496. package/dist/vue3/lib/breadcrumbs/breadcrumb-item.js +5 -5
  497. package/dist/vue3/lib/breadcrumbs/breadcrumb-item.js.map +1 -1
  498. package/dist/vue3/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  499. package/dist/vue3/lib/breadcrumbs/breadcrumbs.js +1 -1
  500. package/dist/vue3/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  501. package/dist/vue3/lib/button/button-constants.cjs.map +1 -1
  502. package/dist/vue3/lib/button/button-constants.js.map +1 -1
  503. package/dist/vue3/lib/button/button.cjs.map +1 -1
  504. package/dist/vue3/lib/button/button.js +22 -22
  505. package/dist/vue3/lib/button/button.js.map +1 -1
  506. package/dist/vue3/lib/button-group/button-group.cjs.map +1 -1
  507. package/dist/vue3/lib/button-group/button-group.js +2 -2
  508. package/dist/vue3/lib/button-group/button-group.js.map +1 -1
  509. package/dist/vue3/lib/button-group/buttons-decorator.cjs.map +1 -1
  510. package/dist/vue3/lib/button-group/buttons-decorator.js +2 -2
  511. package/dist/vue3/lib/button-group/buttons-decorator.js.map +1 -1
  512. package/dist/vue3/lib/callbar-button/callbar-button-constants.cjs.map +1 -1
  513. package/dist/vue3/lib/callbar-button/callbar-button-constants.js.map +1 -1
  514. package/dist/vue3/lib/callbar-button/callbar-button.cjs +1 -1
  515. package/dist/vue3/lib/callbar-button/callbar-button.cjs.map +1 -1
  516. package/dist/vue3/lib/callbar-button/callbar-button.js +13 -13
  517. package/dist/vue3/lib/callbar-button/callbar-button.js.map +1 -1
  518. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  519. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  520. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +13 -13
  521. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  522. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  523. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  524. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js +13 -13
  525. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  526. package/dist/vue3/lib/callbox/callbox-constants.cjs.map +1 -1
  527. package/dist/vue3/lib/callbox/callbox-constants.js.map +1 -1
  528. package/dist/vue3/lib/callbox/callbox.cjs.map +1 -1
  529. package/dist/vue3/lib/callbox/callbox.js +6 -6
  530. package/dist/vue3/lib/callbox/callbox.js.map +1 -1
  531. package/dist/vue3/lib/card/card.cjs.map +1 -1
  532. package/dist/vue3/lib/card/card.js +4 -4
  533. package/dist/vue3/lib/card/card.js.map +1 -1
  534. package/dist/vue3/lib/checkbox/checkbox-constants.cjs.map +1 -1
  535. package/dist/vue3/lib/checkbox/checkbox-constants.js.map +1 -1
  536. package/dist/vue3/lib/checkbox/checkbox.cjs.map +1 -1
  537. package/dist/vue3/lib/checkbox/checkbox.js +8 -8
  538. package/dist/vue3/lib/checkbox/checkbox.js.map +1 -1
  539. package/dist/vue3/lib/checkbox-group/checkbox-group.cjs.map +1 -1
  540. package/dist/vue3/lib/checkbox-group/checkbox-group.js.map +1 -1
  541. package/dist/vue3/lib/checkbox-group/checkboxes-decorator.cjs.map +1 -1
  542. package/dist/vue3/lib/checkbox-group/checkboxes-decorator.js +1 -1
  543. package/dist/vue3/lib/checkbox-group/checkboxes-decorator.js.map +1 -1
  544. package/dist/vue3/lib/chip/chip-constants.cjs.map +1 -1
  545. package/dist/vue3/lib/chip/chip-constants.js.map +1 -1
  546. package/dist/vue3/lib/chip/chip.cjs.map +1 -1
  547. package/dist/vue3/lib/chip/chip.js +13 -13
  548. package/dist/vue3/lib/chip/chip.js.map +1 -1
  549. package/dist/vue3/lib/codeblock/codeblock.cjs.map +1 -1
  550. package/dist/vue3/lib/codeblock/codeblock.js +2 -2
  551. package/dist/vue3/lib/codeblock/codeblock.js.map +1 -1
  552. package/dist/vue3/lib/collapsible/collapsible-lazy-show.cjs.map +1 -1
  553. package/dist/vue3/lib/collapsible/collapsible-lazy-show.js +3 -3
  554. package/dist/vue3/lib/collapsible/collapsible-lazy-show.js.map +1 -1
  555. package/dist/vue3/lib/collapsible/collapsible.cjs +1 -1
  556. package/dist/vue3/lib/collapsible/collapsible.cjs.map +1 -1
  557. package/dist/vue3/lib/collapsible/collapsible.js +18 -18
  558. package/dist/vue3/lib/collapsible/collapsible.js.map +1 -1
  559. package/dist/vue3/lib/combobox/combobox-constants.cjs.map +1 -1
  560. package/dist/vue3/lib/combobox/combobox-constants.js.map +1 -1
  561. package/dist/vue3/lib/combobox/combobox-empty-list.cjs.map +1 -1
  562. package/dist/vue3/lib/combobox/combobox-empty-list.js +2 -2
  563. package/dist/vue3/lib/combobox/combobox-empty-list.js.map +1 -1
  564. package/dist/vue3/lib/combobox/combobox-loading-list.cjs +1 -1
  565. package/dist/vue3/lib/combobox/combobox-loading-list.cjs.map +1 -1
  566. package/dist/vue3/lib/combobox/combobox-loading-list.js +6 -6
  567. package/dist/vue3/lib/combobox/combobox-loading-list.js.map +1 -1
  568. package/dist/vue3/lib/combobox/combobox.cjs.map +1 -1
  569. package/dist/vue3/lib/combobox/combobox.js +7 -7
  570. package/dist/vue3/lib/combobox/combobox.js.map +1 -1
  571. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select-constants.cjs.map +1 -1
  572. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select-constants.js.map +1 -1
  573. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select-story-constants.cjs.map +1 -1
  574. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select-story-constants.js.map +1 -1
  575. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  576. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +15 -15
  577. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  578. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  579. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  580. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js +13 -13
  581. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
  582. package/dist/vue3/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  583. package/dist/vue3/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  584. package/dist/vue3/lib/contact-centers-row/contact-centers-row.js +19 -19
  585. package/dist/vue3/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  586. package/dist/vue3/lib/contact-info/contact-info.cjs.map +1 -1
  587. package/dist/vue3/lib/contact-info/contact-info.js +1 -1
  588. package/dist/vue3/lib/contact-info/contact-info.js.map +1 -1
  589. package/dist/vue3/lib/contact-row/contact-row.cjs +1 -1
  590. package/dist/vue3/lib/contact-row/contact-row.cjs.map +1 -1
  591. package/dist/vue3/lib/contact-row/contact-row.js +12 -12
  592. package/dist/vue3/lib/contact-row/contact-row.js.map +1 -1
  593. package/dist/vue3/lib/datepicker/datepicker.cjs.map +1 -1
  594. package/dist/vue3/lib/datepicker/datepicker.js +5 -5
  595. package/dist/vue3/lib/datepicker/datepicker.js.map +1 -1
  596. package/dist/vue3/lib/datepicker/formatUtils.cjs.map +1 -1
  597. package/dist/vue3/lib/datepicker/formatUtils.js.map +1 -1
  598. package/dist/vue3/lib/datepicker/utils.cjs.map +1 -1
  599. package/dist/vue3/lib/datepicker/utils.js.map +1 -1
  600. package/dist/vue3/lib/description-list/description-list.cjs.map +1 -1
  601. package/dist/vue3/lib/description-list/description-list.js +3 -3
  602. package/dist/vue3/lib/description-list/description-list.js.map +1 -1
  603. package/dist/vue3/lib/dropdown/dropdown-constants.cjs.map +1 -1
  604. package/dist/vue3/lib/dropdown/dropdown-constants.js.map +1 -1
  605. package/dist/vue3/lib/dropdown/dropdown-list.cjs.map +1 -1
  606. package/dist/vue3/lib/dropdown/dropdown-list.js +5 -5
  607. package/dist/vue3/lib/dropdown/dropdown-list.js.map +1 -1
  608. package/dist/vue3/lib/dropdown/dropdown-separator.cjs.map +1 -1
  609. package/dist/vue3/lib/dropdown/dropdown-separator.js +2 -2
  610. package/dist/vue3/lib/dropdown/dropdown-separator.js.map +1 -1
  611. package/dist/vue3/lib/dropdown/dropdown-story-constants.cjs.map +1 -1
  612. package/dist/vue3/lib/dropdown/dropdown-story-constants.js.map +1 -1
  613. package/dist/vue3/lib/dropdown/dropdown.cjs +1 -1
  614. package/dist/vue3/lib/dropdown/dropdown.cjs.map +1 -1
  615. package/dist/vue3/lib/dropdown/dropdown.js +3 -3
  616. package/dist/vue3/lib/dropdown/dropdown.js.map +1 -1
  617. package/dist/vue3/lib/editor/editor-constants.cjs.map +1 -1
  618. package/dist/vue3/lib/editor/editor-constants.js.map +1 -1
  619. package/dist/vue3/lib/editor/editor.cjs +1 -1
  620. package/dist/vue3/lib/editor/editor.cjs.map +1 -1
  621. package/dist/vue3/lib/editor/editor.js +48 -48
  622. package/dist/vue3/lib/editor/editor.js.map +1 -1
  623. package/dist/vue3/lib/emoji/emoji.cjs.map +1 -1
  624. package/dist/vue3/lib/emoji/emoji.js +6 -6
  625. package/dist/vue3/lib/emoji/emoji.js.map +1 -1
  626. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  627. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  628. package/dist/vue3/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  629. package/dist/vue3/lib/emoji-picker/emoji-picker.js +2 -2
  630. package/dist/vue3/lib/emoji-picker/emoji-picker.js.map +1 -1
  631. package/dist/vue3/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
  632. package/dist/vue3/lib/emoji-row/emoji-row-constants.js.map +1 -1
  633. package/dist/vue3/lib/emoji-row/emoji-row.cjs +1 -1
  634. package/dist/vue3/lib/emoji-row/emoji-row.cjs.map +1 -1
  635. package/dist/vue3/lib/emoji-row/emoji-row.js +10 -10
  636. package/dist/vue3/lib/emoji-row/emoji-row.js.map +1 -1
  637. package/dist/vue3/lib/emoji-text-wrapper/emoji-text-wrapper.cjs.map +1 -1
  638. package/dist/vue3/lib/emoji-text-wrapper/emoji-text-wrapper.js.map +1 -1
  639. package/dist/vue3/lib/empty-state/empty-state-constants.cjs.map +1 -1
  640. package/dist/vue3/lib/empty-state/empty-state-constants.js.map +1 -1
  641. package/dist/vue3/lib/empty-state/empty-state.cjs.map +1 -1
  642. package/dist/vue3/lib/empty-state/empty-state.js +7 -7
  643. package/dist/vue3/lib/feed-item-pill/feed-item-pill-constants.cjs.map +1 -1
  644. package/dist/vue3/lib/feed-item-pill/feed-item-pill-constants.js.map +1 -1
  645. package/dist/vue3/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  646. package/dist/vue3/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  647. package/dist/vue3/lib/feed-item-pill/feed-item-pill.js +6 -6
  648. package/dist/vue3/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  649. package/dist/vue3/lib/feed-item-row/feed-item-row-constants.cjs.map +1 -1
  650. package/dist/vue3/lib/feed-item-row/feed-item-row-constants.js.map +1 -1
  651. package/dist/vue3/lib/feed-item-row/feed-item-row.cjs +1 -1
  652. package/dist/vue3/lib/feed-item-row/feed-item-row.cjs.map +1 -1
  653. package/dist/vue3/lib/feed-item-row/feed-item-row.js +29 -29
  654. package/dist/vue3/lib/feed-item-row/feed-item-row.js.map +1 -1
  655. package/dist/vue3/lib/general-row/general-row-constants.cjs.map +1 -1
  656. package/dist/vue3/lib/general-row/general-row-constants.js.map +1 -1
  657. package/dist/vue3/lib/general-row/general-row.cjs +1 -1
  658. package/dist/vue3/lib/general-row/general-row.cjs.map +1 -1
  659. package/dist/vue3/lib/general-row/general-row.js +30 -30
  660. package/dist/vue3/lib/general-row/general-row.js.map +1 -1
  661. package/dist/vue3/lib/general-row/leftbar-general-row-icon.cjs.map +1 -1
  662. package/dist/vue3/lib/general-row/leftbar-general-row-icon.js +35 -35
  663. package/dist/vue3/lib/general-row/leftbar-general-row-icon.js.map +1 -1
  664. package/dist/vue3/lib/group-row/group-row.cjs.map +1 -1
  665. package/dist/vue3/lib/group-row/group-row.js +3 -3
  666. package/dist/vue3/lib/group-row/group-row.js.map +1 -1
  667. package/dist/vue3/lib/grouped-chip/grouped-chip.cjs.map +1 -1
  668. package/dist/vue3/lib/grouped-chip/grouped-chip.js +14 -14
  669. package/dist/vue3/lib/grouped-chip/grouped-chip.js.map +1 -1
  670. package/dist/vue3/lib/hovercard/hovercard.cjs +1 -1
  671. package/dist/vue3/lib/hovercard/hovercard.cjs.map +1 -1
  672. package/dist/vue3/lib/hovercard/hovercard.js +6 -6
  673. package/dist/vue3/lib/hovercard/hovercard.js.map +1 -1
  674. package/dist/vue3/lib/icon/icon-constants.cjs.map +1 -1
  675. package/dist/vue3/lib/icon/icon-constants.js.map +1 -1
  676. package/dist/vue3/lib/icon/icon.cjs.map +1 -1
  677. package/dist/vue3/lib/icon/icon.js +6 -6
  678. package/dist/vue3/lib/icon/icon.js.map +1 -1
  679. package/dist/vue3/lib/illustration/illustration-constants.cjs.map +1 -1
  680. package/dist/vue3/lib/illustration/illustration-constants.js.map +1 -1
  681. package/dist/vue3/lib/illustration/illustration.cjs.map +1 -1
  682. package/dist/vue3/lib/illustration/illustration.js +3 -3
  683. package/dist/vue3/lib/image-viewer/image-viewer.cjs.map +1 -1
  684. package/dist/vue3/lib/image-viewer/image-viewer.js +12 -12
  685. package/dist/vue3/lib/image-viewer/image-viewer.js.map +1 -1
  686. package/dist/vue3/lib/input/input-constants.cjs.map +1 -1
  687. package/dist/vue3/lib/input/input-constants.js.map +1 -1
  688. package/dist/vue3/lib/input/input.cjs.map +1 -1
  689. package/dist/vue3/lib/input/input.js +20 -20
  690. package/dist/vue3/lib/input/input.js.map +1 -1
  691. package/dist/vue3/lib/input-group/input-group.cjs.map +1 -1
  692. package/dist/vue3/lib/input-group/input-group.js +8 -8
  693. package/dist/vue3/lib/input-group/input-group.js.map +1 -1
  694. package/dist/vue3/lib/item-layout/item-layout.cjs.map +1 -1
  695. package/dist/vue3/lib/item-layout/item-layout.js +13 -13
  696. package/dist/vue3/lib/item-layout/item-layout.js.map +1 -1
  697. package/dist/vue3/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
  698. package/dist/vue3/lib/ivr-node/ivr-node-constants.js.map +1 -1
  699. package/dist/vue3/lib/ivr-node/ivr-node.cjs +1 -1
  700. package/dist/vue3/lib/ivr-node/ivr-node.cjs.map +1 -1
  701. package/dist/vue3/lib/ivr-node/ivr-node.js +36 -36
  702. package/dist/vue3/lib/ivr-node/ivr-node.js.map +1 -1
  703. package/dist/vue3/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
  704. package/dist/vue3/lib/keyboard-shortcut/keyboard-shortcut.js +15 -15
  705. package/dist/vue3/lib/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  706. package/dist/vue3/lib/lazy-show/lazy-show.cjs.map +1 -1
  707. package/dist/vue3/lib/lazy-show/lazy-show.js +2 -2
  708. package/dist/vue3/lib/lazy-show/lazy-show.js.map +1 -1
  709. package/dist/vue3/lib/link/link-constants.cjs.map +1 -1
  710. package/dist/vue3/lib/link/link-constants.js.map +1 -1
  711. package/dist/vue3/lib/link/link.cjs.map +1 -1
  712. package/dist/vue3/lib/link/link.js +5 -5
  713. package/dist/vue3/lib/link/link.js.map +1 -1
  714. package/dist/vue3/lib/list-item/list-item-constants.cjs.map +1 -1
  715. package/dist/vue3/lib/list-item/list-item-constants.js.map +1 -1
  716. package/dist/vue3/lib/list-item/list-item.cjs.map +1 -1
  717. package/dist/vue3/lib/list-item/list-item.js +4 -4
  718. package/dist/vue3/lib/list-item/list-item.js.map +1 -1
  719. package/dist/vue3/lib/list-item-group/list-item-group-constants.cjs.map +1 -1
  720. package/dist/vue3/lib/list-item-group/list-item-group-constants.js.map +1 -1
  721. package/dist/vue3/lib/list-item-group/list-item-group.cjs.map +1 -1
  722. package/dist/vue3/lib/list-item-group/list-item-group.js +5 -5
  723. package/dist/vue3/lib/list-item-group/list-item-group.js.map +1 -1
  724. package/dist/vue3/lib/loader/loader.cjs.map +1 -1
  725. package/dist/vue3/lib/loader/loader.js +2 -2
  726. package/dist/vue3/lib/loader/loader.js.map +1 -1
  727. package/dist/vue3/lib/message-input/last-active-nodes.cjs.map +1 -1
  728. package/dist/vue3/lib/message-input/last-active-nodes.js.map +1 -1
  729. package/dist/vue3/lib/message-input/message-input-button.cjs +1 -1
  730. package/dist/vue3/lib/message-input/message-input-button.cjs.map +1 -1
  731. package/dist/vue3/lib/message-input/message-input-button.js +14 -14
  732. package/dist/vue3/lib/message-input/message-input-button.js.map +1 -1
  733. package/dist/vue3/lib/message-input/message-input-constants.cjs.map +1 -1
  734. package/dist/vue3/lib/message-input/message-input-constants.js.map +1 -1
  735. package/dist/vue3/lib/message-input/message-input-link.cjs +1 -1
  736. package/dist/vue3/lib/message-input/message-input-link.cjs.map +1 -1
  737. package/dist/vue3/lib/message-input/message-input-link.js +10 -10
  738. package/dist/vue3/lib/message-input/message-input-link.js.map +1 -1
  739. package/dist/vue3/lib/message-input/message-input-topbar.cjs.map +1 -1
  740. package/dist/vue3/lib/message-input/message-input-topbar.js +11 -11
  741. package/dist/vue3/lib/message-input/message-input-topbar.js.map +1 -1
  742. package/dist/vue3/lib/message-input/message-input.cjs +1 -1
  743. package/dist/vue3/lib/message-input/message-input.cjs.map +1 -1
  744. package/dist/vue3/lib/message-input/message-input.js +30 -30
  745. package/dist/vue3/lib/message-input/message-input.js.map +1 -1
  746. package/dist/vue3/lib/modal/modal.cjs +1 -1
  747. package/dist/vue3/lib/modal/modal.cjs.map +1 -1
  748. package/dist/vue3/lib/modal/modal.js +14 -14
  749. package/dist/vue3/lib/modal/modal.js.map +1 -1
  750. package/dist/vue3/lib/notice/notice-action.cjs.map +1 -1
  751. package/dist/vue3/lib/notice/notice-action.js +1 -1
  752. package/dist/vue3/lib/notice/notice-action.js.map +1 -1
  753. package/dist/vue3/lib/notice/notice-constants.cjs.map +1 -1
  754. package/dist/vue3/lib/notice/notice-constants.js.map +1 -1
  755. package/dist/vue3/lib/notice/notice-content.cjs.map +1 -1
  756. package/dist/vue3/lib/notice/notice-content.js +6 -6
  757. package/dist/vue3/lib/notice/notice-content.js.map +1 -1
  758. package/dist/vue3/lib/notice/notice-icon.cjs.map +1 -1
  759. package/dist/vue3/lib/notice/notice-icon.js +13 -13
  760. package/dist/vue3/lib/notice/notice-icon.js.map +1 -1
  761. package/dist/vue3/lib/notice/notice.cjs.map +1 -1
  762. package/dist/vue3/lib/notice/notice.js +4 -4
  763. package/dist/vue3/lib/notice/notice.js.map +1 -1
  764. package/dist/vue3/lib/pagination/pagination.cjs.map +1 -1
  765. package/dist/vue3/lib/pagination/pagination.js +4 -4
  766. package/dist/vue3/lib/pagination/pagination.js.map +1 -1
  767. package/dist/vue3/lib/popover/popover-constants.cjs.map +1 -1
  768. package/dist/vue3/lib/popover/popover-constants.js.map +1 -1
  769. package/dist/vue3/lib/popover/popover-header-footer.cjs.map +1 -1
  770. package/dist/vue3/lib/popover/popover-header-footer.js +6 -6
  771. package/dist/vue3/lib/popover/popover-header-footer.js.map +1 -1
  772. package/dist/vue3/lib/popover/popover.cjs.map +1 -1
  773. package/dist/vue3/lib/popover/popover.js +15 -15
  774. package/dist/vue3/lib/popover/popover.js.map +1 -1
  775. package/dist/vue3/lib/popover/tippy-utils.cjs.map +1 -1
  776. package/dist/vue3/lib/popover/tippy-utils.js.map +1 -1
  777. package/dist/vue3/lib/presence/presence.cjs.map +1 -1
  778. package/dist/vue3/lib/presence/presence.js +4 -4
  779. package/dist/vue3/lib/presence/presence.js.map +1 -1
  780. package/dist/vue3/lib/radio/radio-constants.cjs.map +1 -1
  781. package/dist/vue3/lib/radio/radio-constants.js.map +1 -1
  782. package/dist/vue3/lib/radio/radio.cjs.map +1 -1
  783. package/dist/vue3/lib/radio/radio.js +13 -13
  784. package/dist/vue3/lib/radio/radio.js.map +1 -1
  785. package/dist/vue3/lib/radio-group/radio-group.cjs.map +1 -1
  786. package/dist/vue3/lib/radio-group/radio-group.js.map +1 -1
  787. package/dist/vue3/lib/radio-group/radios-decorator.cjs.map +1 -1
  788. package/dist/vue3/lib/radio-group/radios-decorator.js +1 -1
  789. package/dist/vue3/lib/radio-group/radios-decorator.js.map +1 -1
  790. package/dist/vue3/lib/recipes/eslint.config.cjs.map +1 -1
  791. package/dist/vue3/lib/recipes/eslint.config.js.map +1 -1
  792. package/dist/vue3/lib/rich-text-editor/channel-suggestion.cjs.map +1 -1
  793. package/dist/vue3/lib/rich-text-editor/channel-suggestion.js.map +1 -1
  794. package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  795. package/dist/vue3/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  796. package/dist/vue3/lib/rich-text-editor/rich-text-editor-constants.cjs.map +1 -1
  797. package/dist/vue3/lib/rich-text-editor/rich-text-editor-constants.js.map +1 -1
  798. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  799. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +22 -22
  800. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  801. package/dist/vue3/lib/rich-text-editor/slash-command-suggestion.cjs.map +1 -1
  802. package/dist/vue3/lib/rich-text-editor/slash-command-suggestion.js.map +1 -1
  803. package/dist/vue3/lib/root-layout/root-layout-constants.cjs.map +1 -1
  804. package/dist/vue3/lib/root-layout/root-layout-constants.js.map +1 -1
  805. package/dist/vue3/lib/root-layout/root-layout.cjs.map +1 -1
  806. package/dist/vue3/lib/root-layout/root-layout.js +3 -3
  807. package/dist/vue3/lib/root-layout/root-layout.js.map +1 -1
  808. package/dist/vue3/lib/scrollbar-directive/scrollbar.cjs.map +1 -1
  809. package/dist/vue3/lib/scrollbar-directive/scrollbar.js.map +1 -1
  810. package/dist/vue3/lib/scroller/scroller.cjs +1 -1
  811. package/dist/vue3/lib/scroller/scroller.cjs.map +1 -1
  812. package/dist/vue3/lib/scroller/scroller.js +2 -2
  813. package/dist/vue3/lib/scroller/scroller.js.map +1 -1
  814. package/dist/vue3/lib/select-menu/select-menu-constants.cjs.map +1 -1
  815. package/dist/vue3/lib/select-menu/select-menu-constants.js.map +1 -1
  816. package/dist/vue3/lib/select-menu/select-menu.cjs.map +1 -1
  817. package/dist/vue3/lib/select-menu/select-menu.js +21 -21
  818. package/dist/vue3/lib/select-menu/select-menu.js.map +1 -1
  819. package/dist/vue3/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  820. package/dist/vue3/lib/settings-menu-button/settings-menu-button.js +3 -3
  821. package/dist/vue3/lib/settings-menu-button/settings-menu-button.js.map +1 -1
  822. package/dist/vue3/lib/skeleton/skeleton-constants.cjs.map +1 -1
  823. package/dist/vue3/lib/skeleton/skeleton-constants.js.map +1 -1
  824. package/dist/vue3/lib/skeleton/skeleton-list-item.cjs.map +1 -1
  825. package/dist/vue3/lib/skeleton/skeleton-list-item.js +2 -2
  826. package/dist/vue3/lib/skeleton/skeleton-list-item.js.map +1 -1
  827. package/dist/vue3/lib/skeleton/skeleton-paragraph.cjs.map +1 -1
  828. package/dist/vue3/lib/skeleton/skeleton-paragraph.js +1 -1
  829. package/dist/vue3/lib/skeleton/skeleton-paragraph.js.map +1 -1
  830. package/dist/vue3/lib/skeleton/skeleton-shape.cjs.map +1 -1
  831. package/dist/vue3/lib/skeleton/skeleton-shape.js +5 -5
  832. package/dist/vue3/lib/skeleton/skeleton-shape.js.map +1 -1
  833. package/dist/vue3/lib/skeleton/skeleton-text.cjs.map +1 -1
  834. package/dist/vue3/lib/skeleton/skeleton-text.js +7 -7
  835. package/dist/vue3/lib/skeleton/skeleton-text.js.map +1 -1
  836. package/dist/vue3/lib/skeleton/skeleton.cjs.map +1 -1
  837. package/dist/vue3/lib/skeleton/skeleton.js +1 -1
  838. package/dist/vue3/lib/skeleton/skeleton.js.map +1 -1
  839. package/dist/vue3/lib/split-button/split-button-alpha.cjs.map +1 -1
  840. package/dist/vue3/lib/split-button/split-button-alpha.js +2 -2
  841. package/dist/vue3/lib/split-button/split-button-alpha.js.map +1 -1
  842. package/dist/vue3/lib/split-button/split-button-constants.cjs.map +1 -1
  843. package/dist/vue3/lib/split-button/split-button-constants.js.map +1 -1
  844. package/dist/vue3/lib/split-button/split-button-omega.cjs.map +1 -1
  845. package/dist/vue3/lib/split-button/split-button-omega.js +2 -2
  846. package/dist/vue3/lib/split-button/split-button-omega.js.map +1 -1
  847. package/dist/vue3/lib/split-button/split-button.cjs.map +1 -1
  848. package/dist/vue3/lib/split-button/split-button.js +19 -19
  849. package/dist/vue3/lib/split-button/split-button.js.map +1 -1
  850. package/dist/vue3/lib/stack/stack-constants.cjs.map +1 -1
  851. package/dist/vue3/lib/stack/stack-constants.js.map +1 -1
  852. package/dist/vue3/lib/stack/stack.cjs.map +1 -1
  853. package/dist/vue3/lib/stack/stack.js +11 -11
  854. package/dist/vue3/lib/stack/stack.js.map +1 -1
  855. package/dist/vue3/lib/stack/utils.cjs.map +1 -1
  856. package/dist/vue3/lib/stack/utils.js.map +1 -1
  857. package/dist/vue3/lib/stack/validators.cjs.map +1 -1
  858. package/dist/vue3/lib/stack/validators.js +5 -5
  859. package/dist/vue3/lib/stack/validators.js.map +1 -1
  860. package/dist/vue3/lib/tab/tab-group.cjs.map +1 -1
  861. package/dist/vue3/lib/tab/tab-group.js +7 -7
  862. package/dist/vue3/lib/tab/tab-group.js.map +1 -1
  863. package/dist/vue3/lib/tab/tab-panel.cjs.map +1 -1
  864. package/dist/vue3/lib/tab/tab-panel.js +2 -2
  865. package/dist/vue3/lib/tab/tab-panel.js.map +1 -1
  866. package/dist/vue3/lib/tab/tab.cjs.map +1 -1
  867. package/dist/vue3/lib/tab/tab.js +2 -2
  868. package/dist/vue3/lib/tab/tab.js.map +1 -1
  869. package/dist/vue3/lib/time-pill/time-pill.cjs.map +1 -1
  870. package/dist/vue3/lib/time-pill/time-pill.js +2 -2
  871. package/dist/vue3/lib/time-pill/time-pill.js.map +1 -1
  872. package/dist/vue3/lib/toast/toast-constants.cjs.map +1 -1
  873. package/dist/vue3/lib/toast/toast-constants.js.map +1 -1
  874. package/dist/vue3/lib/toast/toast.cjs +1 -1
  875. package/dist/vue3/lib/toast/toast.cjs.map +1 -1
  876. package/dist/vue3/lib/toast/toast.js +12 -12
  877. package/dist/vue3/lib/toast/toast.js.map +1 -1
  878. package/dist/vue3/lib/toggle/toggle-constants.cjs.map +1 -1
  879. package/dist/vue3/lib/toggle/toggle-constants.js.map +1 -1
  880. package/dist/vue3/lib/toggle/toggle.cjs.map +1 -1
  881. package/dist/vue3/lib/toggle/toggle.js +11 -11
  882. package/dist/vue3/lib/toggle/toggle.js.map +1 -1
  883. package/dist/vue3/lib/tooltip/tooltip-constants.cjs.map +1 -1
  884. package/dist/vue3/lib/tooltip/tooltip-constants.js.map +1 -1
  885. package/dist/vue3/lib/tooltip/tooltip.cjs +1 -1
  886. package/dist/vue3/lib/tooltip/tooltip.cjs.map +1 -1
  887. package/dist/vue3/lib/tooltip/tooltip.js +20 -21
  888. package/dist/vue3/lib/tooltip/tooltip.js.map +1 -1
  889. package/dist/vue3/lib/tooltip-directive/tooltip.cjs.map +1 -1
  890. package/dist/vue3/lib/tooltip-directive/tooltip.js +1 -1
  891. package/dist/vue3/lib/tooltip-directive/tooltip.js.map +1 -1
  892. package/dist/vue3/lib/top-banner-info/top-banner-info-constants.cjs.map +1 -1
  893. package/dist/vue3/lib/top-banner-info/top-banner-info-constants.js.map +1 -1
  894. package/dist/vue3/lib/top-banner-info/top-banner-info.cjs.map +1 -1
  895. package/dist/vue3/lib/top-banner-info/top-banner-info.js +2 -2
  896. package/dist/vue3/lib/top-banner-info/top-banner-info.js.map +1 -1
  897. package/dist/vue3/lib/unread-pill/unread-pill-constants.cjs.map +1 -1
  898. package/dist/vue3/lib/unread-pill/unread-pill-constants.js.map +1 -1
  899. package/dist/vue3/lib/unread-pill/unread-pill.cjs.map +1 -1
  900. package/dist/vue3/lib/unread-pill/unread-pill.js +7 -7
  901. package/dist/vue3/lib/unread-pill/unread-pill.js.map +1 -1
  902. package/dist/vue3/lib/validation-messages/validation-messages.cjs.map +1 -1
  903. package/dist/vue3/lib/validation-messages/validation-messages.js +9 -9
  904. package/dist/vue3/lib/validation-messages/validation-messages.js.map +1 -1
  905. package/dist/vue3/localization/de-DE.cjs.map +1 -1
  906. package/dist/vue3/localization/de-DE.js.map +1 -1
  907. package/dist/vue3/localization/en-US.cjs.map +1 -1
  908. package/dist/vue3/localization/en-US.js.map +1 -1
  909. package/dist/vue3/localization/es-LA.cjs.map +1 -1
  910. package/dist/vue3/localization/es-LA.js.map +1 -1
  911. package/dist/vue3/localization/fr-FR.cjs.map +1 -1
  912. package/dist/vue3/localization/fr-FR.js.map +1 -1
  913. package/dist/vue3/localization/index.cjs.map +1 -1
  914. package/dist/vue3/localization/index.js.map +1 -1
  915. package/dist/vue3/localization/it-IT.cjs.map +1 -1
  916. package/dist/vue3/localization/it-IT.js.map +1 -1
  917. package/dist/vue3/localization/ja-JP.cjs.map +1 -1
  918. package/dist/vue3/localization/ja-JP.js.map +1 -1
  919. package/dist/vue3/localization/nl-NL.cjs.map +1 -1
  920. package/dist/vue3/localization/nl-NL.js.map +1 -1
  921. package/dist/vue3/localization/pt-BR.cjs.map +1 -1
  922. package/dist/vue3/localization/pt-BR.js.map +1 -1
  923. package/dist/vue3/localization/ru-RU.cjs.map +1 -1
  924. package/dist/vue3/localization/ru-RU.js.map +1 -1
  925. package/dist/vue3/localization/zh-CN.cjs.map +1 -1
  926. package/dist/vue3/localization/zh-CN.js.map +1 -1
  927. package/dist/vue3/node_modules/@tiptap/vue-3.cjs.map +1 -1
  928. package/dist/vue3/node_modules/@tiptap/vue-3.js +3 -3
  929. package/dist/vue3/node_modules/@tiptap/vue-3.js.map +1 -1
  930. package/dist/vue3/shared/sr_only_close_button.cjs.map +1 -1
  931. package/dist/vue3/shared/sr_only_close_button.js +2 -2
  932. package/dist/vue3/shared/sr_only_close_button.js.map +1 -1
  933. package/dist/vue3/types/common/constants/index.d.ts.map +1 -1
  934. package/dist/vue3/types/common/dates/index.d.ts.map +1 -1
  935. package/dist/vue3/types/common/emoji/index.d.ts.map +1 -1
  936. package/dist/vue3/types/common/mixins/dom.d.ts.map +1 -1
  937. package/dist/vue3/types/common/mixins/input.d.ts +6 -6
  938. package/dist/vue3/types/common/mixins/input.d.ts.map +1 -1
  939. package/dist/vue3/types/common/mixins/input_group.d.ts +2 -2
  940. package/dist/vue3/types/common/mixins/modal.d.ts.map +1 -1
  941. package/dist/vue3/types/common/utils/index.d.ts.map +1 -1
  942. package/dist/vue3/types/components/avatar/avatar.vue.d.ts +12 -12
  943. package/dist/vue3/types/components/badge/badge.vue.d.ts +4 -4
  944. package/dist/vue3/types/components/banner/banner.vue.d.ts +1 -1
  945. package/dist/vue3/types/components/banner/banner.vue.d.ts.map +1 -1
  946. package/dist/vue3/types/components/breadcrumbs/breadcrumbs_constants.d.ts.map +1 -1
  947. package/dist/vue3/types/components/button/button.vue.d.ts +3 -3
  948. package/dist/vue3/types/components/button/button_constants.d.ts.map +1 -1
  949. package/dist/vue3/types/components/card/card.vue.d.ts +12 -12
  950. package/dist/vue3/types/components/checkbox/checkbox.vue.d.ts +6 -6
  951. package/dist/vue3/types/components/checkbox_group/checkbox_group.vue.d.ts +2 -2
  952. package/dist/vue3/types/components/chip/chip.vue.d.ts +6 -6
  953. package/dist/vue3/types/components/collapsible/collapsible.vue.d.ts +6 -6
  954. package/dist/vue3/types/components/combobox/combobox.vue.d.ts +4 -4
  955. package/dist/vue3/types/components/combobox/combobox_empty-list.vue.d.ts +3 -3
  956. package/dist/vue3/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  957. package/dist/vue3/types/components/datepicker/formatUtils.d.ts +5 -5
  958. package/dist/vue3/types/components/datepicker/formatUtils.d.ts.map +1 -1
  959. package/dist/vue3/types/components/datepicker/modules/calendar.vue.d.ts +1 -1
  960. package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts +1 -1
  961. package/dist/vue3/types/components/description_list/description_list.vue.d.ts +6 -6
  962. package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts +10 -10
  963. package/dist/vue3/types/components/emoji/emoji.vue.d.ts +3 -3
  964. package/dist/vue3/types/components/emoji_picker/emoji_picker_constants.d.ts.map +1 -1
  965. package/dist/vue3/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
  966. package/dist/vue3/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +1 -1
  967. package/dist/vue3/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts.map +1 -1
  968. package/dist/vue3/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
  969. package/dist/vue3/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  970. package/dist/vue3/types/components/empty_state/empty_state.vue.d.ts +7 -11
  971. package/dist/vue3/types/components/empty_state/empty_state.vue.d.ts.map +1 -1
  972. package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts +686 -11
  973. package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
  974. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  975. package/dist/vue3/types/components/input/input.vue.d.ts +8 -8
  976. package/dist/vue3/types/components/input_group/input_group.vue.d.ts +2 -2
  977. package/dist/vue3/types/components/item_layout/item_layout.vue.d.ts +1 -1
  978. package/dist/vue3/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +7 -210
  979. package/dist/vue3/types/components/lazy_show/lazy_show.vue.d.ts +1 -1
  980. package/dist/vue3/types/components/link/link_constants.d.ts.map +1 -1
  981. package/dist/vue3/types/components/list_item/list_item.vue.d.ts +3 -3
  982. package/dist/vue3/types/components/list_item_group/list_item_group.vue.d.ts +6 -6
  983. package/dist/vue3/types/components/modal/modal.vue.d.ts +16 -16
  984. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  985. package/dist/vue3/types/components/notice/notice.vue.d.ts +1 -1
  986. package/dist/vue3/types/components/notice/notice_icon.vue.d.ts +1 -30
  987. package/dist/vue3/types/components/notice/notice_icon.vue.d.ts.map +1 -1
  988. package/dist/vue3/types/components/popover/popover.vue.d.ts +24 -24
  989. package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
  990. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +3 -3
  991. package/dist/vue3/types/components/popover/tippy_utils.d.ts +1 -1
  992. package/dist/vue3/types/components/radio/radio.vue.d.ts +6 -6
  993. package/dist/vue3/types/components/radio_group/radio_group.vue.d.ts +2 -2
  994. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +22 -22
  995. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +22 -22
  996. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +22 -22
  997. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +22 -22
  998. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts +1 -1
  999. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts.map +1 -1
  1000. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +6 -6
  1001. package/dist/vue3/types/components/root_layout/root_layout.vue.d.ts +15 -15
  1002. package/dist/vue3/types/components/scroller/modules/core_scroller.vue.d.ts +26 -16
  1003. package/dist/vue3/types/components/scroller/modules/core_scroller.vue.d.ts.map +1 -1
  1004. package/dist/vue3/types/components/scroller/modules/scroller_item.vue.d.ts +1 -1
  1005. package/dist/vue3/types/components/scroller/scroller.vue.d.ts +245 -12
  1006. package/dist/vue3/types/components/scroller/scroller.vue.d.ts.map +1 -1
  1007. package/dist/vue3/types/components/select_menu/select_menu.vue.d.ts +13 -13
  1008. package/dist/vue3/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
  1009. package/dist/vue3/types/components/skeleton/skeleton-paragraph.vue.d.ts +3 -3
  1010. package/dist/vue3/types/components/skeleton/skeleton-shape.vue.d.ts +4 -4
  1011. package/dist/vue3/types/components/skeleton/skeleton-text.vue.d.ts +1 -1
  1012. package/dist/vue3/types/components/skeleton/skeleton.vue.d.ts +1 -1
  1013. package/dist/vue3/types/components/skeleton/skeleton_constants.d.ts.map +1 -1
  1014. package/dist/vue3/types/components/split_button/split_button-alpha.vue.d.ts +3 -3
  1015. package/dist/vue3/types/components/split_button/split_button.vue.d.ts +3 -3
  1016. package/dist/vue3/types/components/tab/tab.vue.d.ts +3 -3
  1017. package/dist/vue3/types/components/tab/tab_group.vue.d.ts +3 -3
  1018. package/dist/vue3/types/components/tab/tab_panel.vue.d.ts +3 -3
  1019. package/dist/vue3/types/components/tab/tab_panel.vue.d.ts.map +1 -1
  1020. package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +1 -1
  1021. package/dist/vue3/types/components/toast/layouts/toast_layout_alternate_icon.vue.d.ts +1 -30
  1022. package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -1
  1023. package/dist/vue3/types/components/toast/toast.vue.d.ts +4 -4
  1024. package/dist/vue3/types/components/toast/toast_constants.d.ts.map +1 -1
  1025. package/dist/vue3/types/components/toggle/toggle.vue.d.ts +7 -7
  1026. package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +10 -10
  1027. package/dist/vue3/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  1028. package/dist/vue3/types/components/validation_messages/validation_messages.vue.d.ts +0 -1
  1029. package/dist/vue3/types/components/validation_messages/validation_messages.vue.d.ts.map +1 -1
  1030. package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +7 -7
  1031. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +7 -7
  1032. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +9 -9
  1033. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +1 -30
  1034. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  1035. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
  1036. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +9 -9
  1037. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +9 -241
  1038. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  1039. package/dist/vue3/types/recipes/conversation_view/editor/editor_constants.d.ts.map +1 -1
  1040. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +7 -36
  1041. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  1042. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
  1043. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  1044. package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row_constants.d.ts.map +1 -1
  1045. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +22 -22
  1046. package/dist/vue3/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -1
  1047. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +7 -7
  1048. package/dist/vue3/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +1 -1
  1049. package/dist/vue3/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -30
  1050. package/package.json +3 -3
  1051. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +0 -47
  1052. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +0 -1
  1053. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +0 -45
  1054. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts.map +0 -1
  1055. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +0 -47
  1056. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +0 -1
  1057. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +0 -47
  1058. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts.map +0 -1
  1059. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +0 -52
  1060. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.cjs","sources":["../../../components/combobox/combobox.vue"],"sourcesContent":["<!-- eslint-disable vuejs-accessibility/no-static-element-interactions -->\n<template>\n <div\n @keydown.esc.stop=\"onKeyValidation($event, 'onEscapeKey')\"\n @keydown.enter.exact=\"onKeyValidation($event, 'onEnterKey')\"\n @keydown.up.stop.prevent=\"onKeyValidation($event, 'onUpKey')\"\n @keydown.down.stop.prevent=\"onKeyValidation($event, 'onDownKey')\"\n @keydown.home.stop.prevent=\"onKeyValidation($event, 'onHomeKey')\"\n @keydown.end.stop.prevent=\"onKeyValidation($event, 'onEndKey')\"\n >\n <div data-qa=\"dt-combobox-input-wrapper\">\n <!-- @slot Slot for the combobox input element -->\n <slot\n name=\"input\"\n :input-props=\"inputProps\"\n />\n </div>\n\n <div\n v-if=\"showList\"\n ref=\"listWrapper\"\n data-qa=\"dt-combobox-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @focusout=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <combobox-loading-list\n v-if=\"loading && !listRenderedOutside\"\n v-bind=\"listProps\"\n />\n <combobox-empty-list\n v-else-if=\"emptyList && (emptyStateMessage || hasSlotContent($slots.emptyListItem)) && !listRenderedOutside\"\n v-bind=\"listProps\"\n :message=\"emptyStateMessage\"\n :item-class=\"emptyStateClass\"\n >\n <slot name=\"emptyListItem\" />\n </combobox-empty-list>\n <!-- @slot Slot for the combobox list element -->\n <slot\n v-else\n name=\"list\"\n :list-props=\"listProps\"\n :opened=\"onOpen\"\n :clear-highlight-index=\"clearHighlightIndex\"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport ComboboxLoadingList from './combobox_loading-list.vue';\nimport ComboboxEmptyList from './combobox_empty-list.vue';\nimport { DtKeyboardListNavigationMixin } from '@/common/mixins';\nimport { getUniqueString, hasSlotContent } from '@/common/utils';\nimport { COMBOBOX_LABEL_SIZES } from '@/components/combobox';\n\n/**\n * A combobox is a semantic component that displays an input element combined with a listbox,\n * which enables the user to select items from the list.\n * @see https://dialtone.dialpad.com/components/combobox.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtCombobox',\n\n components: {\n ComboboxLoadingList,\n ComboboxEmptyList,\n },\n\n mixins: [\n DtKeyboardListNavigationMixin({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n }),\n ],\n\n props: {\n /**\n * String to use for the input label.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Determines visibility of input label.\n * @values true, false\n */\n labelVisible: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`\n * @values null, xs, sm, md, lg, xl\n */\n size: {\n type: String,\n default: null,\n validator: (t) => Object.values(COMBOBOX_LABEL_SIZES).includes(t),\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Determines when to show the list element and also controls the aria-expanded attribute.\n * @values true, false\n */\n showList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If the list is rendered outside the component, like when using popover as the list wrapper.\n * @values true, false\n */\n listRenderedOutside: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines when to show the skeletons and also controls aria-busy attribute.\n * @values true, false\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the list to an empty state, and displays the message from prop `emptyStateMessage`.\n * @values true, false\n */\n emptyList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Message to show when the list is empty\n */\n emptyStateMessage: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class name for the empty list element.\n * Can accept all of String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n emptyStateClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Programmatically click on the active list item element when a selection\n * comes from keyboard navigation, i.e. pressing the \"Enter\" key.\n * @values true, false\n */\n clickOnSelect: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when pressing escape\n *\n * @event escape\n */\n 'escape',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired when list is shown or hidden\n *\n * @event opened\n * @type {Boolean}\n */\n 'opened',\n ],\n\n data () {\n return {\n // If the list is rendered at the root, rather than as a child\n // of this component, this is the ref to that dom element. Set\n // by the onOpen method.\n outsideRenderedListRef: null,\n hasSlotContent,\n };\n },\n\n computed: {\n inputProps () {\n return {\n label: this.label,\n labelVisible: this.labelVisible,\n size: this.size,\n description: this.description,\n role: 'combobox',\n 'aria-label': this.label,\n 'aria-expanded': this.showList.toString(),\n 'aria-owns': this.listId,\n 'aria-haspopup': 'listbox',\n 'aria-activedescendant': this.activeItemId,\n 'aria-controls': this.listId,\n };\n },\n\n listProps () {\n return {\n role: 'listbox',\n id: this.listId,\n // The list has to be positioned relatively so that the auto-scroll can\n // calculate the correct offset for the list items.\n class: 'd-ps-relative',\n 'aria-label': this.label,\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemId () {\n if (!this.showList || this.highlightIndex < 0 || this.loading) {\n return;\n }\n return this.highlightId;\n },\n\n activeItemEl () {\n if (!this.highlightId) return '';\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n },\n\n watch: {\n showList (showList) {\n // When the list's visibility changes reset the highlight index.\n\n if (!this.listRenderedOutside) {\n this.setInitialHighlightIndex();\n this.$emit('opened', showList);\n }\n\n if (!showList && this.outsideRenderedListRef) {\n this.outsideRenderedListRef.removeEventListener('mousemove', this.onMouseHighlight);\n this.outsideRenderedListRef = null;\n }\n },\n\n loading () {\n this.$nextTick(() => {\n this.setInitialHighlightIndex();\n });\n },\n\n $props: {\n deep: true,\n immediate: true,\n handler () {\n this.validateEmptyListProps();\n },\n },\n },\n\n created () {\n this.validateEmptyListProps();\n },\n\n methods: {\n onMouseHighlight (e) {\n if (this.loading) return;\n\n const liElement = e.target.closest('li');\n\n if (liElement && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n }\n },\n\n getListElement () {\n return this.outsideRenderedListRef ?? this.$refs.listWrapper?.querySelector(`#${this.listId}`);\n },\n\n clearHighlightIndex () {\n if (this.showList) {\n this.setHighlightIndex(-1);\n }\n },\n\n afterHighlight () {\n if (this.loading) return;\n this.$emit('highlight', this.highlightIndex);\n },\n\n onEnterKey () {\n if (this.loading || this.emptyList) return;\n\n if (this.highlightIndex >= 0) {\n this.$emit('select', this.highlightIndex);\n\n if (this.clickOnSelect) {\n this.activeItemEl?.click();\n }\n }\n },\n\n onEscapeKey () {\n this.$emit('escape');\n },\n\n onOpen (open, contentRef) {\n this.outsideRenderedListRef = contentRef;\n this.outsideRenderedListRef?.addEventListener('mousemove', this.onMouseHighlight);\n this.$emit('opened', open);\n\n if (open) {\n this.setInitialHighlightIndex();\n }\n },\n\n onKeyValidation (e, eventHandler) {\n if (!this.showList || !this.getListElement()) return;\n\n this[eventHandler](e);\n },\n\n setInitialHighlightIndex () {\n if (!this.showList) return;\n this.$nextTick(() => {\n // When the list's is shown, reset the highlight index.\n // If the list is loading, set to -1\n this.setHighlightIndex(this.loading ? -1 : 0);\n });\n },\n\n validateEmptyListProps () {\n if (this.$slots.emptyListItem) { return; }\n\n if (this.emptyList && !this.emptyStateMessage) {\n console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the\n empty message.`);\n }\n },\n },\n};\n</script>\n"],"names":["_sfc_main","ComboboxLoadingList","ComboboxEmptyList","DtKeyboardListNavigationMixin","t","COMBOBOX_LABEL_SIZES","getUniqueString","hasSlotContent","showList","e","liElement","_a","open","contentRef","eventHandler","_hoisted_1","_createElementBlock","_withKeys","_withModifiers","$event","$options","_createElementVNode","_renderSlot","_ctx","$props","args","_cache","_openBlock","_createBlock","_component_combobox_loading_list","_normalizeProps","_mergeProps","$data","_component_combobox_empty_list","_withCtx","_createCommentVNode"],"mappings":"2ZA8DKA,EAAU,CACb,aAAc,CAAE,KAAM,CAAG,EACzB,KAAM,aAEN,WAAY,CACV,oBAAAC,EAAmB,QACnB,kBAAAC,EAAiB,OAClB,EAED,OAAQ,CACNC,UAA8B,CAC5B,SAAU,iBACV,MAAO,cACP,eAAgB,iBAChB,qBAAsB,iBACtB,sBAAuB,wBACvB,gBAAiB,kBACjB,cAAe,cACjB,CAAC,CACF,EAED,MAAO,CAIL,MAAO,CACL,KAAM,OACN,SAAU,EACX,EAMD,aAAc,CACZ,KAAM,QACN,QAAS,EACV,EAMD,KAAM,CACJ,KAAM,OACN,QAAS,KACT,UAAYC,GAAM,OAAO,OAAOC,sBAAoB,EAAE,SAASD,CAAC,CACjE,EAKD,YAAa,CACX,KAAM,OACN,QAAS,EACV,EAMD,OAAQ,CACN,KAAM,OACN,SAAW,CAAE,OAAOE,EAAe,gBAAA,CAAK,CACzC,EAKD,kBAAmB,CACjB,KAAM,SACN,QAAS,IACV,EAKD,YAAa,CACX,KAAM,SACN,QAAS,IACV,EAMD,SAAU,CACR,KAAM,QACN,QAAS,EACV,EAMD,oBAAqB,CACnB,KAAM,QACN,QAAS,EACV,EAMD,QAAS,CACP,KAAM,QACN,QAAS,EACV,EAMD,UAAW,CACT,KAAM,QACN,QAAS,EACV,EAKD,kBAAmB,CACjB,KAAM,OACN,QAAS,EACV,EAOD,gBAAiB,CACf,KAAM,CAAC,OAAQ,OAAQ,KAAK,EAC5B,QAAS,EACV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AAmB,qBAD7GG,YAAA,EAAAC,cAOsBK,EAPtBF,EAAA,WAOsB,CArC5B,IAAA,GAgCgBX,EAAS,UAAA,CAChB,QAASI,EAAiB,kBAC1B,aAAYA,EAAe,mBAlCpC,QAAAU,EAAA,QAoCQ,IAA6B,CAA7BZ,aAA6BC,EAAA,OAAA,eAAA,IApCrC,EAAA,iCAuCMD,aAMEC,EAAA,OAAA,OAAA,CA7CR,IAAA,EA0CS,UAAYH,EAAS,UACrB,OAAQA,EAAM,OACd,oBAAuBA,EAAmB,6BA5CnDe,EAAA,mBAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"combobox.cjs","sources":["../../../components/combobox/combobox.vue"],"sourcesContent":["<!-- eslint-disable vuejs-accessibility/no-static-element-interactions -->\n<template>\n <div\n @keydown.esc.stop=\"onKeyValidation($event, 'onEscapeKey')\"\n @keydown.enter.exact=\"onKeyValidation($event, 'onEnterKey')\"\n @keydown.up.stop.prevent=\"onKeyValidation($event, 'onUpKey')\"\n @keydown.down.stop.prevent=\"onKeyValidation($event, 'onDownKey')\"\n @keydown.home.stop.prevent=\"onKeyValidation($event, 'onHomeKey')\"\n @keydown.end.stop.prevent=\"onKeyValidation($event, 'onEndKey')\"\n >\n <div data-qa=\"dt-combobox-input-wrapper\">\n <!-- @slot Slot for the combobox input element -->\n <slot\n name=\"input\"\n :input-props=\"inputProps\"\n />\n </div>\n\n <div\n v-if=\"showList\"\n ref=\"listWrapper\"\n data-qa=\"dt-combobox-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @focusout=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <combobox-loading-list\n v-if=\"loading && !listRenderedOutside\"\n v-bind=\"listProps\"\n />\n <combobox-empty-list\n v-else-if=\"emptyList && (emptyStateMessage || hasSlotContent($slots.emptyListItem)) && !listRenderedOutside\"\n v-bind=\"listProps\"\n :message=\"emptyStateMessage\"\n :item-class=\"emptyStateClass\"\n >\n <slot name=\"emptyListItem\" />\n </combobox-empty-list>\n <!-- @slot Slot for the combobox list element -->\n <slot\n v-else\n name=\"list\"\n :list-props=\"listProps\"\n :opened=\"onOpen\"\n :clear-highlight-index=\"clearHighlightIndex\"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport ComboboxLoadingList from './combobox_loading-list.vue';\nimport ComboboxEmptyList from './combobox_empty-list.vue';\nimport { DtKeyboardListNavigationMixin } from '@/common/mixins';\nimport { getUniqueString, hasSlotContent } from '@/common/utils';\nimport { COMBOBOX_LABEL_SIZES } from '@/components/combobox';\n\n/**\n * A combobox is a semantic component that displays an input element combined with a listbox,\n * which enables the user to select items from the list.\n * @see https://dialtone.dialpad.com/components/combobox.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtCombobox',\n\n components: {\n ComboboxLoadingList,\n ComboboxEmptyList,\n },\n\n mixins: [\n DtKeyboardListNavigationMixin({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n }),\n ],\n\n props: {\n /**\n * String to use for the input label.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Determines visibility of input label.\n * @values true, false\n */\n labelVisible: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`\n * @values null, xs, sm, md, lg, xl\n */\n size: {\n type: String,\n default: null,\n validator: (t) => Object.values(COMBOBOX_LABEL_SIZES).includes(t),\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Determines when to show the list element and also controls the aria-expanded attribute.\n * @values true, false\n */\n showList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If the list is rendered outside the component, like when using popover as the list wrapper.\n * @values true, false\n */\n listRenderedOutside: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines when to show the skeletons and also controls aria-busy attribute.\n * @values true, false\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the list to an empty state, and displays the message from prop `emptyStateMessage`.\n * @values true, false\n */\n emptyList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Message to show when the list is empty\n */\n emptyStateMessage: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class name for the empty list element.\n * Can accept all of String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n emptyStateClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Programmatically click on the active list item element when a selection\n * comes from keyboard navigation, i.e. pressing the \"Enter\" key.\n * @values true, false\n */\n clickOnSelect: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when pressing escape\n *\n * @event escape\n */\n 'escape',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired when list is shown or hidden\n *\n * @event opened\n * @type {Boolean}\n */\n 'opened',\n ],\n\n data () {\n return {\n // If the list is rendered at the root, rather than as a child\n // of this component, this is the ref to that dom element. Set\n // by the onOpen method.\n outsideRenderedListRef: null,\n hasSlotContent,\n };\n },\n\n computed: {\n inputProps () {\n return {\n label: this.label,\n labelVisible: this.labelVisible,\n size: this.size,\n description: this.description,\n role: 'combobox',\n 'aria-label': this.label,\n 'aria-expanded': this.showList.toString(),\n 'aria-owns': this.listId,\n 'aria-haspopup': 'listbox',\n 'aria-activedescendant': this.activeItemId,\n 'aria-controls': this.listId,\n };\n },\n\n listProps () {\n return {\n role: 'listbox',\n id: this.listId,\n // The list has to be positioned relatively so that the auto-scroll can\n // calculate the correct offset for the list items.\n class: 'd-ps-relative',\n 'aria-label': this.label,\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemId () {\n if (!this.showList || this.highlightIndex < 0 || this.loading) {\n return;\n }\n return this.highlightId;\n },\n\n activeItemEl () {\n if (!this.highlightId) return '';\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n },\n\n watch: {\n showList (showList) {\n // When the list's visibility changes reset the highlight index.\n\n if (!this.listRenderedOutside) {\n this.setInitialHighlightIndex();\n this.$emit('opened', showList);\n }\n\n if (!showList && this.outsideRenderedListRef) {\n this.outsideRenderedListRef.removeEventListener('mousemove', this.onMouseHighlight);\n this.outsideRenderedListRef = null;\n }\n },\n\n loading () {\n this.$nextTick(() => {\n this.setInitialHighlightIndex();\n });\n },\n\n $props: {\n deep: true,\n immediate: true,\n handler () {\n this.validateEmptyListProps();\n },\n },\n },\n\n created () {\n this.validateEmptyListProps();\n },\n\n methods: {\n onMouseHighlight (e) {\n if (this.loading) return;\n\n const liElement = e.target.closest('li');\n\n if (liElement && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n }\n },\n\n getListElement () {\n return this.outsideRenderedListRef ?? this.$refs.listWrapper?.querySelector(`#${this.listId}`);\n },\n\n clearHighlightIndex () {\n if (this.showList) {\n this.setHighlightIndex(-1);\n }\n },\n\n afterHighlight () {\n if (this.loading) return;\n this.$emit('highlight', this.highlightIndex);\n },\n\n onEnterKey () {\n if (this.loading || this.emptyList) return;\n\n if (this.highlightIndex >= 0) {\n this.$emit('select', this.highlightIndex);\n\n if (this.clickOnSelect) {\n this.activeItemEl?.click();\n }\n }\n },\n\n onEscapeKey () {\n this.$emit('escape');\n },\n\n onOpen (open, contentRef) {\n this.outsideRenderedListRef = contentRef;\n this.outsideRenderedListRef?.addEventListener('mousemove', this.onMouseHighlight);\n this.$emit('opened', open);\n\n if (open) {\n this.setInitialHighlightIndex();\n }\n },\n\n onKeyValidation (e, eventHandler) {\n if (!this.showList || !this.getListElement()) return;\n\n this[eventHandler](e);\n },\n\n setInitialHighlightIndex () {\n if (!this.showList) return;\n this.$nextTick(() => {\n // When the list's is shown, reset the highlight index.\n // If the list is loading, set to -1\n this.setHighlightIndex(this.loading ? -1 : 0);\n });\n },\n\n validateEmptyListProps () {\n if (this.$slots.emptyListItem) { return; }\n\n if (this.emptyList && !this.emptyStateMessage) {\n console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the\n empty message.`);\n }\n },\n },\n};\n</script>\n"],"names":["_sfc_main","ComboboxLoadingList","ComboboxEmptyList","DtKeyboardListNavigationMixin","t","COMBOBOX_LABEL_SIZES","getUniqueString","hasSlotContent","showList","e","liElement","_a","open","contentRef","eventHandler","_hoisted_1","_createElementBlock","_withKeys","_withModifiers","$event","$options","_createElementVNode","_renderSlot","_ctx","$props","args","_cache","_openBlock","_createBlock","_component_combobox_loading_list","_normalizeProps","_mergeProps","$data","_component_combobox_empty_list","_withCtx","_createCommentVNode"],"mappings":"2ZA8DKA,EAAU,CACb,aAAc,CAAE,KAAM,GACtB,KAAM,aAEN,WAAY,CACV,oBAAAC,EAAAA,QACA,kBAAAC,EAAAA,SAGF,OAAQ,CACNC,UAA8B,CAC5B,SAAU,iBACV,MAAO,cACP,eAAgB,iBAChB,qBAAsB,iBACtB,sBAAuB,wBACvB,gBAAiB,kBACjB,cAAe,cACjB,CAAC,GAGH,MAAO,CAIL,MAAO,CACL,KAAM,OACN,SAAU,IAOZ,aAAc,CACZ,KAAM,QACN,QAAS,IAOX,KAAM,CACJ,KAAM,OACN,QAAS,KACT,UAAYC,GAAM,OAAO,OAAOC,sBAAoB,EAAE,SAASD,CAAC,GAMlE,YAAa,CACX,KAAM,OACN,QAAS,IAOX,OAAQ,CACN,KAAM,O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EAAA,oBAAA,GAAAK,CAAA,GAvBjB,mBAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,IAAAD,IAwB0BL,EAAA,kBAAAA,EAAA,iBAAA,GAAAK,CAAA,KAGZD,EAAA,UAAYA,EAAA,qBADpBG,EAAAA,UAAA,EAAAC,EAAAA,YAGEC,EA7BRC,EAAAA,eAAAC,EAAAA,WAAA,CAAA,IAAA,GA4BgBX,EAAA,SAAS,CAAA,EAAA,KAAA,EAAA,GAGNI,EAAA,YAAcA,qBAAqBQ,EAAA,eAAeT,EAAA,OAAO,aAAa,IAAA,CAAOC,EAAA,qBAD1FG,YAAA,EAAAC,cAOsBK,EAPtBF,EAAAA,WAOsB,CArC5B,IAAA,GAgCgBX,EAAA,UAAS,CAChB,QAASI,EAAA,kBACT,aAAYA,EAAA,mBAlCrB,QAAAU,EAAAA,QAoCQ,IAA6B,CAA7BZ,aAA6BC,EAAA,OAAA,eAAA,IApCrC,EAAA,iCAuCMD,aAMEC,EAAA,OAAA,OAAA,CA7CR,IAAA,EA0CS,UAAYH,EAAA,UACZ,OAAQA,EAAA,OACR,oBAAuBA,EAAA,6BA5ChCe,EAAAA,mBAAA,GAAA,EAAA"}
@@ -1,7 +1,7 @@
1
1
  import y from "./combobox-loading-list.js";
2
2
  import I from "./combobox-empty-list.js";
3
- import { getUniqueString as L, hasSlotContent as b } from "../../common/utils/index.js";
4
- import { resolveComponent as h, openBlock as d, createElementBlock as a, withKeys as l, withModifiers as o, createElementVNode as c, renderSlot as r, createBlock as g, normalizeProps as x, mergeProps as m, withCtx as v, createCommentVNode as E } from "vue";
3
+ import { hasSlotContent as L, getUniqueString as b } from "../../common/utils/index.js";
4
+ import { resolveComponent as h, createElementBlock as a, openBlock as d, withKeys as l, withModifiers as o, createElementVNode as c, createCommentVNode as x, renderSlot as r, createBlock as g, normalizeProps as v, mergeProps as m, withCtx as E } from "vue";
5
5
  import { _ as O } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import S from "../../common/mixins/keyboard-list-navigation.js";
7
7
  import { COMBOBOX_LABEL_SIZES as H } from "./combobox-constants.js";
@@ -62,7 +62,7 @@ const K = {
62
62
  listId: {
63
63
  type: String,
64
64
  default() {
65
- return L();
65
+ return b();
66
66
  }
67
67
  },
68
68
  /**
@@ -172,7 +172,7 @@ const K = {
172
172
  // of this component, this is the ref to that dom element. Set
173
173
  // by the onOpen method.
174
174
  outsideRenderedListRef: null,
175
- hasSlotContent: b
175
+ hasSlotContent: L
176
176
  };
177
177
  },
178
178
  computed: {
@@ -299,11 +299,11 @@ function w(e, t, n, R, p, i) {
299
299
  onFocusout: t[1] || (t[1] = (...s) => i.clearHighlightIndex && i.clearHighlightIndex(...s)),
300
300
  onMousemoveCapture: t[2] || (t[2] = (...s) => i.onMouseHighlight && i.onMouseHighlight(...s))
301
301
  }, [
302
- n.loading && !n.listRenderedOutside ? (d(), g(u, x(m({ key: 0 }, i.listProps)), null, 16)) : n.emptyList && (n.emptyStateMessage || p.hasSlotContent(e.$slots.emptyListItem)) && !n.listRenderedOutside ? (d(), g(f, m({ key: 1 }, i.listProps, {
302
+ n.loading && !n.listRenderedOutside ? (d(), g(u, v(m({ key: 0 }, i.listProps)), null, 16)) : n.emptyList && (n.emptyStateMessage || p.hasSlotContent(e.$slots.emptyListItem)) && !n.listRenderedOutside ? (d(), g(f, m({ key: 1 }, i.listProps, {
303
303
  message: n.emptyStateMessage,
304
304
  "item-class": n.emptyStateClass
305
305
  }), {
306
- default: v(() => [
306
+ default: E(() => [
307
307
  r(e.$slots, "emptyListItem")
308
308
  ]),
309
309
  _: 3
@@ -313,7 +313,7 @@ function w(e, t, n, R, p, i) {
313
313
  opened: i.onOpen,
314
314
  clearHighlightIndex: i.clearHighlightIndex
315
315
  })
316
- ], 544)) : E("", !0)
316
+ ], 544)) : x("", !0)
317
317
  ], 32);
318
318
  }
319
319
  const z = /* @__PURE__ */ O(K, [["render", w]]);
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.js","sources":["../../../components/combobox/combobox.vue"],"sourcesContent":["<!-- eslint-disable vuejs-accessibility/no-static-element-interactions -->\n<template>\n <div\n @keydown.esc.stop=\"onKeyValidation($event, 'onEscapeKey')\"\n @keydown.enter.exact=\"onKeyValidation($event, 'onEnterKey')\"\n @keydown.up.stop.prevent=\"onKeyValidation($event, 'onUpKey')\"\n @keydown.down.stop.prevent=\"onKeyValidation($event, 'onDownKey')\"\n @keydown.home.stop.prevent=\"onKeyValidation($event, 'onHomeKey')\"\n @keydown.end.stop.prevent=\"onKeyValidation($event, 'onEndKey')\"\n >\n <div data-qa=\"dt-combobox-input-wrapper\">\n <!-- @slot Slot for the combobox input element -->\n <slot\n name=\"input\"\n :input-props=\"inputProps\"\n />\n </div>\n\n <div\n v-if=\"showList\"\n ref=\"listWrapper\"\n data-qa=\"dt-combobox-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @focusout=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <combobox-loading-list\n v-if=\"loading && !listRenderedOutside\"\n v-bind=\"listProps\"\n />\n <combobox-empty-list\n v-else-if=\"emptyList && (emptyStateMessage || hasSlotContent($slots.emptyListItem)) && !listRenderedOutside\"\n v-bind=\"listProps\"\n :message=\"emptyStateMessage\"\n :item-class=\"emptyStateClass\"\n >\n <slot name=\"emptyListItem\" />\n </combobox-empty-list>\n <!-- @slot Slot for the combobox list element -->\n <slot\n v-else\n name=\"list\"\n :list-props=\"listProps\"\n :opened=\"onOpen\"\n :clear-highlight-index=\"clearHighlightIndex\"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport ComboboxLoadingList from './combobox_loading-list.vue';\nimport ComboboxEmptyList from './combobox_empty-list.vue';\nimport { DtKeyboardListNavigationMixin } from '@/common/mixins';\nimport { getUniqueString, hasSlotContent } from '@/common/utils';\nimport { COMBOBOX_LABEL_SIZES } from '@/components/combobox';\n\n/**\n * A combobox is a semantic component that displays an input element combined with a listbox,\n * which enables the user to select items from the list.\n * @see https://dialtone.dialpad.com/components/combobox.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtCombobox',\n\n components: {\n ComboboxLoadingList,\n ComboboxEmptyList,\n },\n\n mixins: [\n DtKeyboardListNavigationMixin({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n }),\n ],\n\n props: {\n /**\n * String to use for the input label.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Determines visibility of input label.\n * @values true, false\n */\n labelVisible: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`\n * @values null, xs, sm, md, lg, xl\n */\n size: {\n type: String,\n default: null,\n validator: (t) => Object.values(COMBOBOX_LABEL_SIZES).includes(t),\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Determines when to show the list element and also controls the aria-expanded attribute.\n * @values true, false\n */\n showList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If the list is rendered outside the component, like when using popover as the list wrapper.\n * @values true, false\n */\n listRenderedOutside: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines when to show the skeletons and also controls aria-busy attribute.\n * @values true, false\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the list to an empty state, and displays the message from prop `emptyStateMessage`.\n * @values true, false\n */\n emptyList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Message to show when the list is empty\n */\n emptyStateMessage: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class name for the empty list element.\n * Can accept all of String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n emptyStateClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Programmatically click on the active list item element when a selection\n * comes from keyboard navigation, i.e. pressing the \"Enter\" key.\n * @values true, false\n */\n clickOnSelect: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when pressing escape\n *\n * @event escape\n */\n 'escape',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired when list is shown or hidden\n *\n * @event opened\n * @type {Boolean}\n */\n 'opened',\n ],\n\n data () {\n return {\n // If the list is rendered at the root, rather than as a child\n // of this component, this is the ref to that dom element. Set\n // by the onOpen method.\n outsideRenderedListRef: null,\n hasSlotContent,\n };\n },\n\n computed: {\n inputProps () {\n return {\n label: this.label,\n labelVisible: this.labelVisible,\n size: this.size,\n description: this.description,\n role: 'combobox',\n 'aria-label': this.label,\n 'aria-expanded': this.showList.toString(),\n 'aria-owns': this.listId,\n 'aria-haspopup': 'listbox',\n 'aria-activedescendant': this.activeItemId,\n 'aria-controls': this.listId,\n };\n },\n\n listProps () {\n return {\n role: 'listbox',\n id: this.listId,\n // The list has to be positioned relatively so that the auto-scroll can\n // calculate the correct offset for the list items.\n class: 'd-ps-relative',\n 'aria-label': this.label,\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemId () {\n if (!this.showList || this.highlightIndex < 0 || this.loading) {\n return;\n }\n return this.highlightId;\n },\n\n activeItemEl () {\n if (!this.highlightId) return '';\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n },\n\n watch: {\n showList (showList) {\n // When the list's visibility changes reset the highlight index.\n\n if (!this.listRenderedOutside) {\n this.setInitialHighlightIndex();\n this.$emit('opened', showList);\n }\n\n if (!showList && this.outsideRenderedListRef) {\n this.outsideRenderedListRef.removeEventListener('mousemove', this.onMouseHighlight);\n this.outsideRenderedListRef = null;\n }\n },\n\n loading () {\n this.$nextTick(() => {\n this.setInitialHighlightIndex();\n });\n },\n\n $props: {\n deep: true,\n immediate: true,\n handler () {\n this.validateEmptyListProps();\n },\n },\n },\n\n created () {\n this.validateEmptyListProps();\n },\n\n methods: {\n onMouseHighlight (e) {\n if (this.loading) return;\n\n const liElement = e.target.closest('li');\n\n if (liElement && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n }\n },\n\n getListElement () {\n return this.outsideRenderedListRef ?? this.$refs.listWrapper?.querySelector(`#${this.listId}`);\n },\n\n clearHighlightIndex () {\n if (this.showList) {\n this.setHighlightIndex(-1);\n }\n },\n\n afterHighlight () {\n if (this.loading) return;\n this.$emit('highlight', this.highlightIndex);\n },\n\n onEnterKey () {\n if (this.loading || this.emptyList) return;\n\n if (this.highlightIndex >= 0) {\n this.$emit('select', this.highlightIndex);\n\n if (this.clickOnSelect) {\n this.activeItemEl?.click();\n }\n }\n },\n\n onEscapeKey () {\n this.$emit('escape');\n },\n\n onOpen (open, contentRef) {\n this.outsideRenderedListRef = contentRef;\n this.outsideRenderedListRef?.addEventListener('mousemove', this.onMouseHighlight);\n this.$emit('opened', open);\n\n if (open) {\n this.setInitialHighlightIndex();\n }\n },\n\n onKeyValidation (e, eventHandler) {\n if (!this.showList || !this.getListElement()) return;\n\n this[eventHandler](e);\n },\n\n setInitialHighlightIndex () {\n if (!this.showList) return;\n this.$nextTick(() => {\n // When the list's is shown, reset the highlight index.\n // If the list is loading, set to -1\n this.setHighlightIndex(this.loading ? -1 : 0);\n });\n },\n\n validateEmptyListProps () {\n if (this.$slots.emptyListItem) { return; }\n\n if (this.emptyList && !this.emptyStateMessage) {\n console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the\n empty message.`);\n }\n },\n },\n};\n</script>\n"],"names":["_sfc_main","ComboboxLoadingList","ComboboxEmptyList","DtKeyboardListNavigationMixin","t","COMBOBOX_LABEL_SIZES","getUniqueString","hasSlotContent","showList","liElement","_a","open","contentRef","eventHandler","_hoisted_1","_createElementBlock","_withKeys","_withModifiers","$event","$options","_createElementVNode","_renderSlot","_ctx","$props","args","_cache","_openBlock","_createBlock","_component_combobox_loading_list","_normalizeProps","_mergeProps","$data","_component_combobox_empty_list","_withCtx","_createCommentVNode"],"mappings":";;;;;;;AA8DA,MAAKA,IAAU;AAAA,EACb,cAAc,EAAE,MAAM,EAAG;AAAA,EACzB,MAAM;AAAA,EAEN,YAAY;AAAA,IACV,qBAAAC;AAAA,IACA,mBAAAC;AAAA,EACD;AAAA,EAED,QAAQ;AAAA,IACNC,EAA8B;AAAA,MAC5B,UAAU;AAAA,MACV,OAAO;AAAA,MACP,gBAAgB;AAAA,MAChB,sBAAsB;AAAA,MACtB,uBAAuB;AAAA,MACvB,iBAAiB;AAAA,MACjB,eAAe;AAAA,IACjB,CAAC;AAAA,EACF;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,WAAW,CAACC,MAAM,OAAO,OAAOC,CAAoB,EAAE,SAASD,CAAC;AAAA,IACjE;AAAA;AAAA;AAAA;AAAA,IAKD,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,UAAW;AAAE,eAAOE,EAAe;AAAA,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AAA,IAAA,IAAAD,MAwB0BL,EAAgB,oBAAAA,EAAA,iBAAA,GAAAK,CAAA;AAAA;MAG5BD,EAAA,YAAYA,EAAmB,uBADvCG,EAAA,GAAAC,EAGEC,GA7BRC,EAAAC,EAAA,EAAA,KAAA,KA4BgBX,EAAS,SAAA,CAAA,GAAA,MAAA,EAAA,KAGNI,EAAS,cAAKA,uBAAqBQ,EAAA,eAAeT,EAAM,OAAC,aAAa,MAAA,CAAOC,EAAmB,uBAD7GG,EAAA,GAAAC,EAOsBK,GAPtBF,EAOsB,EArC5B,KAAA,KAgCgBX,EAAS,WAAA;AAAA,QAChB,SAASI,EAAiB;AAAA,QAC1B,cAAYA,EAAe;AAAA;QAlCpC,SAAAU,EAoCQ,MAA6B;AAAA,UAA7BZ,EAA6BC,EAAA,QAAA,eAAA;AAAA;QApCrC,GAAA;AAAA,2CAuCMD,EAMEC,EAAA,QAAA,QAAA;AAAA,QA7CR,KAAA;AAAA,QA0CS,WAAYH,EAAS;AAAA,QACrB,QAAQA,EAAM;AAAA,QACd,qBAAuBA,EAAmB;AAAA;eA5CnDe,EAAA,IAAA,EAAA;AAAA;;;"}
1
+ {"version":3,"file":"combobox.js","sources":["../../../components/combobox/combobox.vue"],"sourcesContent":["<!-- eslint-disable vuejs-accessibility/no-static-element-interactions -->\n<template>\n <div\n @keydown.esc.stop=\"onKeyValidation($event, 'onEscapeKey')\"\n @keydown.enter.exact=\"onKeyValidation($event, 'onEnterKey')\"\n @keydown.up.stop.prevent=\"onKeyValidation($event, 'onUpKey')\"\n @keydown.down.stop.prevent=\"onKeyValidation($event, 'onDownKey')\"\n @keydown.home.stop.prevent=\"onKeyValidation($event, 'onHomeKey')\"\n @keydown.end.stop.prevent=\"onKeyValidation($event, 'onEndKey')\"\n >\n <div data-qa=\"dt-combobox-input-wrapper\">\n <!-- @slot Slot for the combobox input element -->\n <slot\n name=\"input\"\n :input-props=\"inputProps\"\n />\n </div>\n\n <div\n v-if=\"showList\"\n ref=\"listWrapper\"\n data-qa=\"dt-combobox-list-wrapper\"\n @mouseleave=\"clearHighlightIndex\"\n @focusout=\"clearHighlightIndex\"\n @mousemove.capture=\"onMouseHighlight\"\n >\n <combobox-loading-list\n v-if=\"loading && !listRenderedOutside\"\n v-bind=\"listProps\"\n />\n <combobox-empty-list\n v-else-if=\"emptyList && (emptyStateMessage || hasSlotContent($slots.emptyListItem)) && !listRenderedOutside\"\n v-bind=\"listProps\"\n :message=\"emptyStateMessage\"\n :item-class=\"emptyStateClass\"\n >\n <slot name=\"emptyListItem\" />\n </combobox-empty-list>\n <!-- @slot Slot for the combobox list element -->\n <slot\n v-else\n name=\"list\"\n :list-props=\"listProps\"\n :opened=\"onOpen\"\n :clear-highlight-index=\"clearHighlightIndex\"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport ComboboxLoadingList from './combobox_loading-list.vue';\nimport ComboboxEmptyList from './combobox_empty-list.vue';\nimport { DtKeyboardListNavigationMixin } from '@/common/mixins';\nimport { getUniqueString, hasSlotContent } from '@/common/utils';\nimport { COMBOBOX_LABEL_SIZES } from '@/components/combobox';\n\n/**\n * A combobox is a semantic component that displays an input element combined with a listbox,\n * which enables the user to select items from the list.\n * @see https://dialtone.dialpad.com/components/combobox.html\n */\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtCombobox',\n\n components: {\n ComboboxLoadingList,\n ComboboxEmptyList,\n },\n\n mixins: [\n DtKeyboardListNavigationMixin({\n indexKey: 'highlightIndex',\n idKey: 'highlightId',\n listElementKey: 'getListElement',\n afterHighlightMethod: 'afterHighlight',\n beginningOfListMethod: 'beginningOfListMethod',\n endOfListMethod: 'endOfListMethod',\n activeItemKey: 'activeItemEl',\n }),\n ],\n\n props: {\n /**\n * String to use for the input label.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Determines visibility of input label.\n * @values true, false\n */\n labelVisible: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`\n * @values null, xs, sm, md, lg, xl\n */\n size: {\n type: String,\n default: null,\n validator: (t) => Object.values(COMBOBOX_LABEL_SIZES).includes(t),\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Sets an ID on the list element of the component. Used by several aria attributes\n * as well as when deriving the IDs for each item.\n */\n listId: {\n type: String,\n default () { return getUniqueString(); },\n },\n\n /**\n * A method that will be called when the selection goes past the beginning of the list.\n */\n onBeginningOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * A method that will be called when the selection goes past the end of the list.\n */\n onEndOfList: {\n type: Function,\n default: null,\n },\n\n /**\n * Determines when to show the list element and also controls the aria-expanded attribute.\n * @values true, false\n */\n showList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If the list is rendered outside the component, like when using popover as the list wrapper.\n * @values true, false\n */\n listRenderedOutside: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines when to show the skeletons and also controls aria-busy attribute.\n * @values true, false\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the list to an empty state, and displays the message from prop `emptyStateMessage`.\n * @values true, false\n */\n emptyList: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Message to show when the list is empty\n */\n emptyStateMessage: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class name for the empty list element.\n * Can accept all of String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n emptyStateClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Programmatically click on the active list item element when a selection\n * comes from keyboard navigation, i.e. pressing the \"Enter\" key.\n * @values true, false\n */\n clickOnSelect: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when pressing escape\n *\n * @event escape\n */\n 'escape',\n\n /**\n * Event fired when the highlight changes\n *\n * @event highlight\n * @type {Number}\n */\n 'highlight',\n\n /**\n * Event fired when list is shown or hidden\n *\n * @event opened\n * @type {Boolean}\n */\n 'opened',\n ],\n\n data () {\n return {\n // If the list is rendered at the root, rather than as a child\n // of this component, this is the ref to that dom element. Set\n // by the onOpen method.\n outsideRenderedListRef: null,\n hasSlotContent,\n };\n },\n\n computed: {\n inputProps () {\n return {\n label: this.label,\n labelVisible: this.labelVisible,\n size: this.size,\n description: this.description,\n role: 'combobox',\n 'aria-label': this.label,\n 'aria-expanded': this.showList.toString(),\n 'aria-owns': this.listId,\n 'aria-haspopup': 'listbox',\n 'aria-activedescendant': this.activeItemId,\n 'aria-controls': this.listId,\n };\n },\n\n listProps () {\n return {\n role: 'listbox',\n id: this.listId,\n // The list has to be positioned relatively so that the auto-scroll can\n // calculate the correct offset for the list items.\n class: 'd-ps-relative',\n 'aria-label': this.label,\n };\n },\n\n beginningOfListMethod () {\n return this.onBeginningOfList || this.jumpToEnd;\n },\n\n endOfListMethod () {\n return this.onEndOfList || this.jumpToBeginning;\n },\n\n activeItemId () {\n if (!this.showList || this.highlightIndex < 0 || this.loading) {\n return;\n }\n return this.highlightId;\n },\n\n activeItemEl () {\n if (!this.highlightId) return '';\n return this.getListElement().querySelector('#' + this.highlightId);\n },\n },\n\n watch: {\n showList (showList) {\n // When the list's visibility changes reset the highlight index.\n\n if (!this.listRenderedOutside) {\n this.setInitialHighlightIndex();\n this.$emit('opened', showList);\n }\n\n if (!showList && this.outsideRenderedListRef) {\n this.outsideRenderedListRef.removeEventListener('mousemove', this.onMouseHighlight);\n this.outsideRenderedListRef = null;\n }\n },\n\n loading () {\n this.$nextTick(() => {\n this.setInitialHighlightIndex();\n });\n },\n\n $props: {\n deep: true,\n immediate: true,\n handler () {\n this.validateEmptyListProps();\n },\n },\n },\n\n created () {\n this.validateEmptyListProps();\n },\n\n methods: {\n onMouseHighlight (e) {\n if (this.loading) return;\n\n const liElement = e.target.closest('li');\n\n if (liElement && this.highlightId !== liElement.id) {\n this.setHighlightId(liElement.id);\n }\n },\n\n getListElement () {\n return this.outsideRenderedListRef ?? this.$refs.listWrapper?.querySelector(`#${this.listId}`);\n },\n\n clearHighlightIndex () {\n if (this.showList) {\n this.setHighlightIndex(-1);\n }\n },\n\n afterHighlight () {\n if (this.loading) return;\n this.$emit('highlight', this.highlightIndex);\n },\n\n onEnterKey () {\n if (this.loading || this.emptyList) return;\n\n if (this.highlightIndex >= 0) {\n this.$emit('select', this.highlightIndex);\n\n if (this.clickOnSelect) {\n this.activeItemEl?.click();\n }\n }\n },\n\n onEscapeKey () {\n this.$emit('escape');\n },\n\n onOpen (open, contentRef) {\n this.outsideRenderedListRef = contentRef;\n this.outsideRenderedListRef?.addEventListener('mousemove', this.onMouseHighlight);\n this.$emit('opened', open);\n\n if (open) {\n this.setInitialHighlightIndex();\n }\n },\n\n onKeyValidation (e, eventHandler) {\n if (!this.showList || !this.getListElement()) return;\n\n this[eventHandler](e);\n },\n\n setInitialHighlightIndex () {\n if (!this.showList) return;\n this.$nextTick(() => {\n // When the list's is shown, reset the highlight index.\n // If the list is loading, set to -1\n this.setHighlightIndex(this.loading ? -1 : 0);\n });\n },\n\n validateEmptyListProps () {\n if (this.$slots.emptyListItem) { return; }\n\n if (this.emptyList && !this.emptyStateMessage) {\n console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the\n empty message.`);\n }\n },\n },\n};\n</script>\n"],"names":["_sfc_main","ComboboxLoadingList","ComboboxEmptyList","DtKeyboardListNavigationMixin","t","COMBOBOX_LABEL_SIZES","getUniqueString","hasSlotContent","showList","liElement","_a","open","contentRef","eventHandler","_hoisted_1","_createElementBlock","_withKeys","_withModifiers","$event","$options","_createElementVNode","_renderSlot","_ctx","$props","args","_cache","_openBlock","_createBlock","_component_combobox_loading_list","_normalizeProps","_mergeProps","$data","_component_combobox_empty_list","_withCtx","_createCommentVNode"],"mappings":";;;;;;;AA8DA,MAAKA,IAAU;AAAA,EACb,cAAc,EAAE,MAAM;EACtB,MAAM;AAAA,EAEN,YAAY;AAAA,IACV,qBAAAC;AAAA,IACA,mBAAAC;AAAA;EAGF,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SAAA,EADC,YAAaH,EAAA,WAAU,CAAA;AAAA;IAKpBI,EAAA,iBADRR,EA4BM,OAAA;AAAA,MA9CV,KAAA;AAAA,MAoBM,KAAI;AAAA,MACJ,WAAQ;AAAA,MACP,wCAAYI,EAAA,uBAAAA,EAAA,oBAAA,GAAAK,CAAA;AAAA,MACZ,sCAAUL,EAAA,uBAAAA,EAAA,oBAAA,GAAAK,CAAA;AAAA,MAvBjB,oBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,IAAAD,MAwB0BL,EAAA,oBAAAA,EAAA,iBAAA,GAAAK,CAAA;AAAA;MAGZD,EAAA,YAAYA,EAAA,uBADpBG,EAAA,GAAAC,EAGEC,GA7BRC,EAAAC,EAAA,EAAA,KAAA,KA4BgBX,EAAA,SAAS,CAAA,GAAA,MAAA,EAAA,KAGNI,EAAA,cAAcA,uBAAqBQ,EAAA,eAAeT,EAAA,OAAO,aAAa,MAAA,CAAOC,EAAA,uBAD1FG,EAAA,GAAAC,EAOsBK,GAPtBF,EAOsB,EArC5B,KAAA,KAgCgBX,EAAA,WAAS;AAAA,QAChB,SAASI,EAAA;AAAA,QACT,cAAYA,EAAA;AAAA;QAlCrB,SAAAU,EAoCQ,MAA6B;AAAA,UAA7BZ,EAA6BC,EAAA,QAAA,eAAA;AAAA;QApCrC,GAAA;AAAA,2CAuCMD,EAMEC,EAAA,QAAA,QAAA;AAAA,QA7CR,KAAA;AAAA,QA0CS,WAAYH,EAAA;AAAA,QACZ,QAAQA,EAAA;AAAA,QACR,qBAAuBA,EAAA;AAAA;eA5ChCe,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-multi-select-constants.cjs","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.js"],"sourcesContent":["export const MULTI_SELECT_SIZES = {\n // Chip has no 'lg' and 'xl' size. So we don't support that in multi-select.\n EXTRA_SMALL: 'xs',\n SMALL: 'sm',\n DEFAULT: 'md',\n};\n\nexport const CHIP_SIZES = {\n xs: 'xs',\n sm: 'xs',\n md: 'sm',\n};\n\nexport const CHIP_TOP_POSITION = {\n xs: 1.4,\n sm: 0.4,\n md: 0.2,\n};\n\nexport default {\n MULTI_SELECT_SIZES,\n CHIP_SIZES,\n CHIP_TOP_POSITION,\n};\n"],"names":["MULTI_SELECT_SIZES","CHIP_SIZES","CHIP_TOP_POSITION","combobox_multi_select_constants"],"mappings":"4GAAY,MAACA,EAAqB,CAEhC,YAAa,KACb,MAAO,KACP,QAAS,IACX,EAEaC,EAAa,CACxB,GAAI,KACJ,GAAI,KACJ,GAAI,IACN,EAEaC,EAAoB,CAC/B,GAAI,IACJ,GAAI,GACJ,GAAI,EACN,EAEeC,EAAA,CACb,mBAAAH,EACA,WAAAC,EACA,kBAAAC,CACF"}
1
+ {"version":3,"file":"combobox-multi-select-constants.cjs","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.js"],"sourcesContent":["export const MULTI_SELECT_SIZES = {\n // Chip has no 'lg' and 'xl' size. So we don't support that in multi-select.\n EXTRA_SMALL: 'xs',\n SMALL: 'sm',\n DEFAULT: 'md',\n};\n\nexport const CHIP_SIZES = {\n xs: 'xs',\n sm: 'xs',\n md: 'sm',\n};\n\nexport const CHIP_TOP_POSITION = {\n xs: 1.4,\n sm: 0.4,\n md: 0.2,\n};\n\nexport default {\n MULTI_SELECT_SIZES,\n CHIP_SIZES,\n CHIP_TOP_POSITION,\n};\n"],"names":["MULTI_SELECT_SIZES","CHIP_SIZES","CHIP_TOP_POSITION","combobox_multi_select_constants"],"mappings":"4GAAY,MAACA,EAAqB,CAEhC,YAAa,KACb,MAAO,KACP,QAAS,IACX,EAEaC,EAAa,CACxB,GAAI,KACJ,GAAI,KACJ,GAAI,IACN,EAEaC,EAAoB,CAC/B,GAAI,IACJ,GAAI,GACJ,GAAI,EACN,EAEAC,EAAe,CACb,mBAAAH,EACA,WAAAC,EACA,kBAAAC,CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-multi-select-constants.js","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.js"],"sourcesContent":["export const MULTI_SELECT_SIZES = {\n // Chip has no 'lg' and 'xl' size. So we don't support that in multi-select.\n EXTRA_SMALL: 'xs',\n SMALL: 'sm',\n DEFAULT: 'md',\n};\n\nexport const CHIP_SIZES = {\n xs: 'xs',\n sm: 'xs',\n md: 'sm',\n};\n\nexport const CHIP_TOP_POSITION = {\n xs: 1.4,\n sm: 0.4,\n md: 0.2,\n};\n\nexport default {\n MULTI_SELECT_SIZES,\n CHIP_SIZES,\n CHIP_TOP_POSITION,\n};\n"],"names":["MULTI_SELECT_SIZES","CHIP_SIZES","CHIP_TOP_POSITION","combobox_multi_select_constants"],"mappings":"AAAY,MAACA,IAAqB;AAAA;AAAA,EAEhC,aAAa;AAAA,EACb,OAAO;AAAA,EACP,SAAS;AACX,GAEaC,IAAa;AAAA,EACxB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEaC,IAAoB;AAAA,EAC/B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEeC,IAAA;AAAA,EACb,oBAAAH;AAAA,EACA,YAAAC;AAAA,EACA,mBAAAC;AACF;"}
1
+ {"version":3,"file":"combobox-multi-select-constants.js","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.js"],"sourcesContent":["export const MULTI_SELECT_SIZES = {\n // Chip has no 'lg' and 'xl' size. So we don't support that in multi-select.\n EXTRA_SMALL: 'xs',\n SMALL: 'sm',\n DEFAULT: 'md',\n};\n\nexport const CHIP_SIZES = {\n xs: 'xs',\n sm: 'xs',\n md: 'sm',\n};\n\nexport const CHIP_TOP_POSITION = {\n xs: 1.4,\n sm: 0.4,\n md: 0.2,\n};\n\nexport default {\n MULTI_SELECT_SIZES,\n CHIP_SIZES,\n CHIP_TOP_POSITION,\n};\n"],"names":["MULTI_SELECT_SIZES","CHIP_SIZES","CHIP_TOP_POSITION","combobox_multi_select_constants"],"mappings":"AAAY,MAACA,IAAqB;AAAA;AAAA,EAEhC,aAAa;AAAA,EACb,OAAO;AAAA,EACP,SAAS;AACX,GAEaC,IAAa;AAAA,EACxB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEaC,IAAoB;AAAA,EAC/B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEAC,IAAe;AAAA,EACb,oBAAAH;AAAA,EACA,YAAAC;AAAA,EACA,mBAAAC;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-multi-select-story-constants.cjs","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js"],"sourcesContent":["// The item list for default story\nexport const ITEMS_LIST_DATA = [\n { id: 'item1', value: 'item1', type: 'MAINLINE' },\n { id: 'item2', value: 'item2', type: 'MAINLINE' },\n { id: 'item3', value: 'item3', type: 'MAINLINE' },\n { id: 'item4', value: 'item4', type: 'MAINLINE' },\n { id: 'item5', value: 'item5 this is a longer item for testing truncation', type: 'MAINLINE' },\n { id: 'item6', value: 'item6', type: 'MAINLINE' },\n { id: 'item7', value: 'item7', type: 'MAINLINE' },\n { id: 'item8', value: 'item8', type: 'Other' },\n { id: 'item9', value: 'item9', type: 'MAINLINE' },\n { id: 'item10', value: 'item10 another longer item', type: 'MAINLINE' },\n { id: 'item11', value: 'item11', type: 'MAINLINE' },\n { id: 'item12', value: 'item12', type: 'Other' },\n { id: 'item13', value: 'item13', type: 'MAINLINE' },\n { id: 'item14', value: 'item14', type: 'MAINLINE' },\n { id: 'item15', value: 'item15 one more slightly longer item', type: 'MAINLINE' },\n { id: 'item16', value: 'item16', type: 'MAINLINE' },\n { id: 'item17', value: 'item17', type: 'MAINLINE' },\n { id: 'item18', value: 'item18', type: 'Other' },\n { id: 'item19', value: 'item19', type: 'MAINLINE' },\n { id: 'item20', value: 'item20', type: 'MAINLINE' },\n { id: 'item21', value: 'item21', type: 'MAINLINE' },\n { id: 'item22', value: 'item22', type: 'Other' },\n];\n"],"names":["ITEMS_LIST_DATA"],"mappings":"gFACY,MAACA,EAAkB,CAC7B,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAY,EACjD,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAY,EACjD,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAY,EACjD,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAY,EACjD,CAAE,GAAI,QAAS,MAAO,qDAAsD,KAAM,UAAY,EAC9F,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAY,EACjD,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAY,EACjD,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,OAAS,EAC9C,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAY,EACjD,CAAE,GAAI,SAAU,MAAO,6BAA8B,KAAM,UAAY,EACvE,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAY,EACnD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,OAAS,EAChD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAY,EACnD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAY,EACnD,CAAE,GAAI,SAAU,MAAO,uCAAwC,KAAM,UAAY,EACjF,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAY,EACnD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAY,EACnD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,OAAS,EAChD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAY,EACnD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAY,EACnD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAY,EACnD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,OAAS,CAClD"}
1
+ {"version":3,"file":"combobox-multi-select-story-constants.cjs","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js"],"sourcesContent":["// The item list for default story\nexport const ITEMS_LIST_DATA = [\n { id: 'item1', value: 'item1', type: 'MAINLINE' },\n { id: 'item2', value: 'item2', type: 'MAINLINE' },\n { id: 'item3', value: 'item3', type: 'MAINLINE' },\n { id: 'item4', value: 'item4', type: 'MAINLINE' },\n { id: 'item5', value: 'item5 this is a longer item for testing truncation', type: 'MAINLINE' },\n { id: 'item6', value: 'item6', type: 'MAINLINE' },\n { id: 'item7', value: 'item7', type: 'MAINLINE' },\n { id: 'item8', value: 'item8', type: 'Other' },\n { id: 'item9', value: 'item9', type: 'MAINLINE' },\n { id: 'item10', value: 'item10 another longer item', type: 'MAINLINE' },\n { id: 'item11', value: 'item11', type: 'MAINLINE' },\n { id: 'item12', value: 'item12', type: 'Other' },\n { id: 'item13', value: 'item13', type: 'MAINLINE' },\n { id: 'item14', value: 'item14', type: 'MAINLINE' },\n { id: 'item15', value: 'item15 one more slightly longer item', type: 'MAINLINE' },\n { id: 'item16', value: 'item16', type: 'MAINLINE' },\n { id: 'item17', value: 'item17', type: 'MAINLINE' },\n { id: 'item18', value: 'item18', type: 'Other' },\n { id: 'item19', value: 'item19', type: 'MAINLINE' },\n { id: 'item20', value: 'item20', type: 'MAINLINE' },\n { id: 'item21', value: 'item21', type: 'MAINLINE' },\n { id: 'item22', value: 'item22', type: 'Other' },\n];\n"],"names":["ITEMS_LIST_DATA"],"mappings":"gFACY,MAACA,EAAkB,CAC7B,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAU,EAC/C,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAU,EAC/C,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAU,EAC/C,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAU,EAC/C,CAAE,GAAI,QAAS,MAAO,qDAAsD,KAAM,UAAU,EAC5F,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAU,EAC/C,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAU,EAC/C,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,OAAO,EAC5C,CAAE,GAAI,QAAS,MAAO,QAAS,KAAM,UAAU,EAC/C,CAAE,GAAI,SAAU,MAAO,6BAA8B,KAAM,UAAU,EACrE,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAU,EACjD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,OAAO,EAC9C,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAU,EACjD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAU,EACjD,CAAE,GAAI,SAAU,MAAO,uCAAwC,KAAM,UAAU,EAC/E,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAU,EACjD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAU,EACjD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,OAAO,EAC9C,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAU,EACjD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAU,EACjD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,UAAU,EACjD,CAAE,GAAI,SAAU,MAAO,SAAU,KAAM,OAAO,CAChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-multi-select-story-constants.js","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js"],"sourcesContent":["// The item list for default story\nexport const ITEMS_LIST_DATA = [\n { id: 'item1', value: 'item1', type: 'MAINLINE' },\n { id: 'item2', value: 'item2', type: 'MAINLINE' },\n { id: 'item3', value: 'item3', type: 'MAINLINE' },\n { id: 'item4', value: 'item4', type: 'MAINLINE' },\n { id: 'item5', value: 'item5 this is a longer item for testing truncation', type: 'MAINLINE' },\n { id: 'item6', value: 'item6', type: 'MAINLINE' },\n { id: 'item7', value: 'item7', type: 'MAINLINE' },\n { id: 'item8', value: 'item8', type: 'Other' },\n { id: 'item9', value: 'item9', type: 'MAINLINE' },\n { id: 'item10', value: 'item10 another longer item', type: 'MAINLINE' },\n { id: 'item11', value: 'item11', type: 'MAINLINE' },\n { id: 'item12', value: 'item12', type: 'Other' },\n { id: 'item13', value: 'item13', type: 'MAINLINE' },\n { id: 'item14', value: 'item14', type: 'MAINLINE' },\n { id: 'item15', value: 'item15 one more slightly longer item', type: 'MAINLINE' },\n { id: 'item16', value: 'item16', type: 'MAINLINE' },\n { id: 'item17', value: 'item17', type: 'MAINLINE' },\n { id: 'item18', value: 'item18', type: 'Other' },\n { id: 'item19', value: 'item19', type: 'MAINLINE' },\n { id: 'item20', value: 'item20', type: 'MAINLINE' },\n { id: 'item21', value: 'item21', type: 'MAINLINE' },\n { id: 'item22', value: 'item22', type: 'Other' },\n];\n"],"names":["ITEMS_LIST_DATA"],"mappings":"AACY,MAACA,IAAkB;AAAA,EAC7B,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAY;AAAA,EACjD,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAY;AAAA,EACjD,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAY;AAAA,EACjD,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAY;AAAA,EACjD,EAAE,IAAI,SAAS,OAAO,sDAAsD,MAAM,WAAY;AAAA,EAC9F,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAY;AAAA,EACjD,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAY;AAAA,EACjD,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,QAAS;AAAA,EAC9C,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAY;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,8BAA8B,MAAM,WAAY;AAAA,EACvE,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAY;AAAA,EACnD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,QAAS;AAAA,EAChD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAY;AAAA,EACnD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAY;AAAA,EACnD,EAAE,IAAI,UAAU,OAAO,wCAAwC,MAAM,WAAY;AAAA,EACjF,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAY;AAAA,EACnD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAY;AAAA,EACnD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,QAAS;AAAA,EAChD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAY;AAAA,EACnD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAY;AAAA,EACnD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAY;AAAA,EACnD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,QAAS;AAClD;"}
1
+ {"version":3,"file":"combobox-multi-select-story-constants.js","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js"],"sourcesContent":["// The item list for default story\nexport const ITEMS_LIST_DATA = [\n { id: 'item1', value: 'item1', type: 'MAINLINE' },\n { id: 'item2', value: 'item2', type: 'MAINLINE' },\n { id: 'item3', value: 'item3', type: 'MAINLINE' },\n { id: 'item4', value: 'item4', type: 'MAINLINE' },\n { id: 'item5', value: 'item5 this is a longer item for testing truncation', type: 'MAINLINE' },\n { id: 'item6', value: 'item6', type: 'MAINLINE' },\n { id: 'item7', value: 'item7', type: 'MAINLINE' },\n { id: 'item8', value: 'item8', type: 'Other' },\n { id: 'item9', value: 'item9', type: 'MAINLINE' },\n { id: 'item10', value: 'item10 another longer item', type: 'MAINLINE' },\n { id: 'item11', value: 'item11', type: 'MAINLINE' },\n { id: 'item12', value: 'item12', type: 'Other' },\n { id: 'item13', value: 'item13', type: 'MAINLINE' },\n { id: 'item14', value: 'item14', type: 'MAINLINE' },\n { id: 'item15', value: 'item15 one more slightly longer item', type: 'MAINLINE' },\n { id: 'item16', value: 'item16', type: 'MAINLINE' },\n { id: 'item17', value: 'item17', type: 'MAINLINE' },\n { id: 'item18', value: 'item18', type: 'Other' },\n { id: 'item19', value: 'item19', type: 'MAINLINE' },\n { id: 'item20', value: 'item20', type: 'MAINLINE' },\n { id: 'item21', value: 'item21', type: 'MAINLINE' },\n { id: 'item22', value: 'item22', type: 'Other' },\n];\n"],"names":["ITEMS_LIST_DATA"],"mappings":"AACY,MAACA,IAAkB;AAAA,EAC7B,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAU;AAAA,EAC/C,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAU;AAAA,EAC/C,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAU;AAAA,EAC/C,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAU;AAAA,EAC/C,EAAE,IAAI,SAAS,OAAO,sDAAsD,MAAM,WAAU;AAAA,EAC5F,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAU;AAAA,EAC/C,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAU;AAAA,EAC/C,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,QAAO;AAAA,EAC5C,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,WAAU;AAAA,EAC/C,EAAE,IAAI,UAAU,OAAO,8BAA8B,MAAM,WAAU;AAAA,EACrE,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAU;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,QAAO;AAAA,EAC9C,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAU;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAU;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,wCAAwC,MAAM,WAAU;AAAA,EAC/E,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAU;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAU;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,QAAO;AAAA,EAC9C,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAU;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAU;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,WAAU;AAAA,EACjD,EAAE,IAAI,UAAU,OAAO,UAAU,MAAM,QAAO;AAChD;"}
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-multi-select.cjs","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue"],"sourcesContent":["<!-- eslint-disable vue/no-static-inline-styles -->\n<template>\n <dt-recipe-combobox-with-popover\n ref=\"comboboxWithPopover\"\n :label=\"label\"\n :show-list=\"showList\"\n :max-height=\"listMaxHeight\"\n :max-width=\"listMaxWidth\"\n :popover-offset=\"popoverOffset\"\n :has-suggestion-list=\"hasSuggestionList\"\n content-width=\"anchor\"\n :append-to=\"appendTo\"\n :transition=\"transition\"\n @select=\"onComboboxSelect\"\n @highlight=\"comboboxHighlight\"\n >\n <template #input=\"{ onInput }\">\n <span\n ref=\"inputSlotWrapper\"\n class=\"d-recipe-combobox-multi-select__input-wrapper\"\n @focusin=\"handleInputFocusIn\"\n @focusout=\"handleInputFocusOut\"\n >\n <span\n ref=\"chipsWrapper\"\n :class=\"['d-recipe-combobox-multi-select__chip-wrapper', chipWrapperClass]\"\n >\n <dt-chip\n v-for=\"item in selectedItems\"\n ref=\"chips\"\n :key=\"item\"\n :label-class=\"['d-chip__label']\"\n :class=\"[\n 'd-recipe-combobox-multi-select__chip',\n { 'd-recipe-combobox-multi-select__chip--truncate': !!chipMaxWidth },\n ]\"\n :style=\"{ maxWidth: chipMaxWidth }\"\n :size=\"CHIP_SIZES[size]\"\n v-on=\"chipListeners\"\n @keydown.backspace=\"onChipRemove(item)\"\n @close=\"onChipRemove(item)\"\n >\n {{ item }}\n </dt-chip>\n </span>\n\n <dt-input\n ref=\"input\"\n v-model=\"value\"\n class=\"d-recipe-combobox-multi-select__input\"\n :input-class=\"[\n inputClass, {\n 'd-recipe-combobox-multi-select__input--hidden': hideInputText,\n }]\"\n :input-wrapper-class=\"inputWrapperClass\"\n :aria-label=\"label\"\n :label=\"labelVisible ? label : ''\"\n :description=\"description\"\n :placeholder=\"inputPlaceHolder\"\n :show-messages=\"showInputMessages\"\n :messages=\"inputMessages\"\n :size=\"size\"\n v-on=\"inputListeners\"\n @input=\"onInput\"\n />\n\n <dt-validation-messages\n :validation-messages=\"maxSelectedMessage\"\n :show-messages=\"showValidationMessages\"\n />\n </span>\n </template>\n\n <!-- @slot slot for popover header -->\n <template\n v-if=\"hasSlotContent($slots.header)\"\n #header\n >\n <div ref=\"header\">\n <slot name=\"header\" />\n </div>\n </template>\n\n <!-- @slot slot for popover list -->\n <template #list>\n <div\n ref=\"list\"\n class=\"d-recipe-combobox-multi-select__list\"\n @mousedown.prevent\n >\n <slot\n v-if=\"!loading\"\n name=\"list\"\n />\n <div\n v-else\n class=\"d-recipe-combobox-multi-select__list--loading\"\n >\n {{ loadingMessage }}\n </div>\n </div>\n </template>\n\n <!-- @slot slot for popover footer -->\n <template\n v-if=\"hasSlotContent($slots.footer)\"\n #footer\n >\n <div ref=\"footer\">\n <slot name=\"footer\" />\n </div>\n </template>\n </dt-recipe-combobox-with-popover>\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport DtRecipeComboboxWithPopover from '@/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue';\nimport DtInput from '@/components/input/input.vue';\nimport DtChip from '@/components/chip/chip.vue';\nimport DtValidationMessages from '@/components/validation_messages/validation_messages.vue';\nimport { validationMessageValidator } from '@/common/validators';\nimport { hasSlotContent, returnFirstEl } from '@/common/utils';\nimport {\n POPOVER_APPEND_TO_VALUES,\n} from '@/components/popover/popover_constants';\nimport {\n MULTI_SELECT_SIZES,\n CHIP_SIZES,\n CHIP_TOP_POSITION,\n} from './combobox_multi_select_constants';\n\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtRecipeComboboxMultiSelect',\n\n components: {\n DtRecipeComboboxWithPopover,\n DtInput,\n DtChip,\n DtValidationMessages,\n },\n\n props: {\n /**\n * String to use for the input label.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Determines visibility of input label.\n * @values true, false\n */\n labelVisible: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Input placeholder\n */\n placeholder: {\n type: String,\n default: 'Select one or start typing',\n },\n\n /**\n * Input validation messages\n */\n inputMessages: {\n type: Array,\n default: () => [],\n validator: inputMessages => {\n return validationMessageValidator(inputMessages);\n },\n },\n\n /**\n * Show input validation message\n */\n showInputMessages: {\n type: Boolean,\n default: true,\n },\n\n // @TODO: https://dialpad.atlassian.net/browse/DP-52324\n // type: {\n // type: String,\n // values: ['input', 'select'],\n // default: 'select',\n // },\n\n /**\n * Determines if the list is loading\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The message when the list is loading\n */\n loadingMessage: {\n type: String,\n default: 'loading...',\n },\n\n /**\n * Determines when to show the list element and also controls the aria-expanded attribute.\n * Leaving this null will have the combobox trigger on input focus by default.\n * If you set this value, the default trigger behavior will be disabled and you can\n * control it as you need.\n */\n showList: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n listMaxHeight: {\n type: String,\n default: '300px',\n },\n\n /**\n * The selected items\n */\n selectedItems: {\n type: Array,\n default: function () { return []; },\n },\n\n /**\n * Would be the maximum number of selections you can make. 0 is unlimited\n */\n maxSelected: {\n type: Number,\n default: 0,\n },\n\n /**\n * Max select message when the max selections is exceeded with the structure:\n * `[{\"message\": string, \"type\": VALIDATION_MESSAGE_TYPES }]`\n */\n maxSelectedMessage: {\n type: Array,\n default: function () { return []; },\n },\n\n /**\n * Displays the list when the combobox is focused, before the user has typed anything.\n * When this is enabled the list will not close after selection.\n */\n hasSuggestionList: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Size of the chip, one of `xs`, `sm`, `md`\n */\n size: {\n type: String,\n default: 'md',\n validator: (t) => Object.values(MULTI_SELECT_SIZES).includes(t),\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', HTMLElement,\n */\n appendTo: {\n type: [HTMLElement, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n\n /**\n * Determines whether the combobox should collapse to a single when losing focus.\n * @type {boolean}\n */\n collapseOnFocusOut: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|em\n */\n listMaxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Amount of reserved space (in px) on the right side of the input\n * before the chips and the input caret jump to the next line.\n * default is 64\n */\n reservedRightSpace: {\n type: Number,\n default: 64,\n },\n\n /**\n * Determines the maximum width of a single chip. If the text within this chip exceeds the value\n * it will be truncated with ellipses.\n * Possible units rem|px|em\n */\n chipMaxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class name for the input element.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n inputClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the input wrapper element.\n * Can accept all of String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n inputWrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native input event\n *\n * @event input\n * @type {String }\n */\n 'input',\n\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when item removed\n *\n * @event remove\n * @type {String}\n */\n 'remove',\n\n /**\n * Event fired when max selected items limit is reached\n *\n * @event max-selected\n * @type {Object}\n */\n 'max-selected',\n\n /**\n * Native keyup event\n *\n * @event keyup\n * @type {KeyboardEvent}\n */\n 'keyup',\n\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Event fired when combobox item is highlighted\n *\n * @event combobox-highlight\n * @type {Object}\n */\n 'combobox-highlight',\n ],\n\n data () {\n return {\n value: '',\n popoverOffset: [0, 4],\n showValidationMessages: false,\n resizeWindowObserver: null,\n initialInputHeight: null,\n CHIP_SIZES,\n hasSlotContent,\n inputFocused: false,\n hideInputText: false,\n };\n },\n\n computed: {\n inputPlaceHolder () {\n return this.selectedItems?.length > 0 ? '' : this.placeholder;\n },\n\n chipListeners () {\n return {\n keydown: event => {\n this.onChipKeyDown(event);\n this.$emit('keydown', event);\n },\n };\n },\n\n inputListeners () {\n return {\n input: event => {\n this.$emit('input', event);\n if (this.hasSuggestionList) {\n this.showComboboxList();\n }\n },\n\n keydown: event => {\n this.onInputKeyDown(event);\n },\n\n keyup: event => {\n this.$emit('keyup', event);\n },\n\n click: () => {\n if (this.hasSuggestionList) {\n this.showComboboxList();\n }\n },\n };\n },\n\n chipWrapperClass () {\n return {\n [`d-recipe-combobox-multi-select__chip-wrapper-${this.size}--collapsed`]: !this.inputFocused && this.collapseOnFocusOut,\n };\n },\n },\n\n watch: {\n selectedItems: {\n deep: true,\n handler: async function () {\n this.initSelectedItems();\n },\n },\n\n chipMaxWidth: {\n async handler () {\n this.initSelectedItems();\n },\n },\n\n async label () {\n await this.$nextTick();\n // Adjust the chips position if label changed\n this.setChipsTopPosition();\n },\n\n async description () {\n await this.$nextTick();\n // Adjust the chips position if description changed\n this.setChipsTopPosition();\n },\n\n size: {\n async handler () {\n await this.$nextTick();\n const input = this.getInput();\n this.revertInputPadding(input);\n this.initialInputHeight = input.getBoundingClientRect().height;\n this.setInputPadding();\n this.setChipsTopPosition();\n },\n },\n },\n\n mounted () {\n this.setInitialInputHeight();\n // Recalculate chip position and input padding when resizing window\n this.resizeWindowObserver = new ResizeObserver(async () => {\n this.setChipsTopPosition();\n this.setInputPadding();\n });\n this.resizeWindowObserver.observe(document.body);\n\n this.initSelectedItems();\n },\n\n beforeUnmount () {\n this.resizeWindowObserver?.unobserve(document.body);\n },\n\n methods: {\n comboboxHighlight (highlightIndex) {\n this.$emit('combobox-highlight', highlightIndex);\n },\n\n async initSelectedItems () {\n await this.$nextTick();\n this.setInputPadding();\n this.setChipsTopPosition();\n this.setInputMinWidth();\n this.checkMaxSelected();\n },\n\n onChipRemove (item) {\n this.$emit('remove', item);\n this.$refs.input?.focus();\n },\n\n onComboboxSelect (i) {\n if (this.loading) return;\n this.value = '';\n this.$emit('select', i);\n },\n\n showComboboxList () {\n if (this.showList != null) { return; }\n this.$refs.comboboxWithPopover?.showComboboxList();\n },\n\n closeComboboxList () {\n if (this.showList != null) { return; }\n this.$refs.comboboxWithPopover?.closeComboboxList();\n },\n\n getChipButtons () {\n return this.$refs.chips && this.$refs.chips.map(chip => returnFirstEl(chip.$el).querySelector('button'));\n },\n\n getChips () {\n return this.$refs.chips && this.$refs.chips.map(chip => returnFirstEl(chip.$el));\n },\n\n getLastChipButton () {\n return this.$refs.chips && this.getChipButtons()[this.getChipButtons().length - 1];\n },\n\n getLastChip () {\n return this.$refs.chips && this.getChips()[this.getChips().length - 1];\n },\n\n getFirstChip () {\n return this.$refs.chips && this.getChips()[0];\n },\n\n getInput () {\n return this.$refs.input?.$refs.input;\n },\n\n onChipKeyDown (event) {\n const key = event.code?.toLowerCase();\n if (key === 'arrowleft') {\n // Move to the previous chip\n this.navigateBetweenChips(event.target, true);\n } else if (key === 'arrowright') {\n if (event.target.id === this.getLastChipButton().id) {\n // Move to the input if it's the last chip\n this.moveFromChipToInput();\n } else {\n // Move to the next chip\n this.navigateBetweenChips(event.target, false);\n }\n }\n },\n\n onInputKeyDown (event) {\n const key = event.code?.toLowerCase();\n // If the cursor is at the start of the text,\n // press 'backspace' or 'left' focuses the last chip\n if (this.selectedItems.length > 0 && event.target.selectionStart === 0) {\n // if there is selected text, do not focus the last chip\n if (event.target.selectionEnd !== event.target.selectionStart) {\n return;\n }\n if (key === 'backspace' || key === 'arrowleft') {\n this.moveFromInputToChip();\n }\n }\n },\n\n moveFromInputToChip () {\n this.getLastChipButton().focus();\n this.$refs.input?.blur();\n this.closeComboboxList();\n },\n\n moveFromChipToInput () {\n this.getLastChipButton().blur();\n this.$refs.input?.focus();\n this.showComboboxList();\n },\n\n navigateBetweenChips (target, toLeft) {\n const from = this.getChipButtons().indexOf(target);\n const to = toLeft ? from - 1 : from + 1;\n if (to < 0 || to >= this.$refs.chips?.length) {\n return;\n }\n this.getChipButtons()[from].blur();\n this.getChipButtons()[to].focus();\n this.closeComboboxList();\n },\n\n setChipsTopPosition () {\n // To place the chips in the input box\n // The chip \"top\" position should be the same line as the input box\n const input = this.getInput();\n if (!input) return;\n const inputSlotWrapper = this.$refs.inputSlotWrapper;\n const top = input.getBoundingClientRect().top -\n inputSlotWrapper.getBoundingClientRect().top;\n const chipsWrapper = this.$refs.chipsWrapper;\n chipsWrapper.style.top = (top - CHIP_TOP_POSITION[this.size]) + 'px';\n },\n\n setInputPadding () {\n const lastChip = this.getLastChip();\n const input = this.getInput();\n const chipsWrapper = this.$refs.chipsWrapper;\n if (!input) return;\n this.revertInputPadding(input);\n this.popoverOffset = [0, 4];\n if (!lastChip) return;\n // Avoid adding extra padding when the input is not focused if collapseOnFocusOut is true\n // This ensures the input returns to its original state when resizing\n if (this.collapseOnFocusOut && !this.inputFocused) return;\n\n // Get the position of the last chip\n // The input cursor should be the same \"top\" as that chip and next besides it\n const left = lastChip.offsetLeft + this.getFullWidth(lastChip);\n const spaceLeft = input.getBoundingClientRect().width - left;\n // input.style.paddingLeft = left + 'px';\n\n if (spaceLeft > this.reservedRightSpace) {\n input.style.paddingLeft = left + 'px';\n } else {\n input.style.paddingLeft = '4px';\n }\n\n // Get the chip wrapper height minus the 4px padding\n const chipsWrapperHeight = chipsWrapper.getBoundingClientRect().height - 4;\n const lastChipHeight = lastChip.getBoundingClientRect().height - 4;\n\n // Get lastChip offsetTop plus 2px of the input padding.\n const top = spaceLeft > this.reservedRightSpace\n ? lastChip.offsetTop + 2\n : (chipsWrapperHeight + lastChipHeight - 9);\n\n input.style.paddingTop = `${top}px`;\n },\n\n revertInputPadding (input) {\n input.style.paddingLeft = '';\n input.style.paddingTop = '';\n input.style.paddingBottom = '';\n },\n\n getFullWidth (el) {\n const styles = window.getComputedStyle(el);\n return el.offsetWidth + parseInt(styles.marginLeft) + parseInt(styles.marginRight);\n },\n\n setInputMinWidth () {\n // Ensure the width of the input is \"slightly bigger\" than the width of a single chip\n const firstChip = this.getFirstChip();\n const input = this.getInput();\n if (!input) return;\n if (firstChip) {\n // Add 4px buffer for typing room\n input.style.minWidth = (this.getFullWidth(firstChip) + 4) + 'px';\n } else {\n input.style.minWidth = '';\n }\n },\n\n checkMaxSelected () {\n if (this.maxSelected === 0) return;\n if (this.selectedItems.length > this.maxSelected) {\n this.showValidationMessages = true;\n this.$emit('max-selected');\n } else {\n this.showValidationMessages = false;\n }\n },\n\n setInitialInputHeight () {\n const input = this.getInput();\n if (!input) return;\n this.initialInputHeight = input.getBoundingClientRect().height;\n },\n\n async handleInputFocusIn () {\n this.inputFocused = true;\n if (this.collapseOnFocusOut) {\n this.hideInputText = false;\n await this.$nextTick();\n this.setInputPadding();\n }\n },\n\n async handleInputFocusOut () {\n this.inputFocused = false;\n if (this.collapseOnFocusOut) {\n this.hideInputText = true;\n const input = this.getInput();\n if (!input) return;\n // Hide the input text when is not on first line\n if (!input.style.paddingTop) {\n return;\n }\n this.revertInputPadding(input);\n }\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtRecipeComboboxWithPopover","DtInput","DtChip","DtValidationMessages","inputMessages","validationMessageValidator","t","MULTI_SELECT_SIZES","appendTo","POPOVER_APPEND_TO_VALUES","CHIP_SIZES","hasSlotContent","_a","event","input","highlightIndex","item","i","chip","returnFirstEl","key","target","toLeft","from","to","inputSlotWrapper","top","chipsWrapper","CHIP_TOP_POSITION","lastChip","left","spaceLeft","chipsWrapperHeight","lastChipHeight","el","styles","firstChip","_hoisted_1","_hoisted_3","_createBlock","_component_dt_recipe_combobox_with_popover","$props","$data","$options","_createSlots","_withCtx","onInput","_createElementVNode","args","_normalizeClass","_openBlock","_createElementBlock","_Fragment","_renderList","_component_dt_chip","_mergeProps","_toHandlers","_withKeys","$event","_createTextVNode","_toDisplayString","_createVNode","_component_dt_input","_cache","_component_dt_validation_messages","_withModifiers","_hoisted_2","_renderSlot","_ctx"],"mappings":"ijBAoIKA,EAAU,CACb,aAAc,CAAE,KAAM,CAAG,EACzB,KAAM,8BAEN,WAAY,6BACVC,EAA2B,QAC3B,QAAAC,EAAO,QACP,OAAAC,EAAM,QACN,qBAAAC,EAAoB,OACrB,EAED,MAAO,CAIL,MAAO,CACL,KAAM,OACN,SAAU,EACX,EAMD,aAAc,CACZ,KAAM,QACN,QAAS,EACV,EAKD,YAAa,CACX,KAAM,OACN,QAAS,EACV,EAKD,YAAa,CACX,KAAM,OACN,QAAS,4BACV,EAKD,cAAe,CACb,KAAM,MACN,QAAS,IAAM,CAAE,EACjB,UAAWC,GACFC,EAAAA,2BAA2BD,CAAa,CAElD,EAKD,kBAAmB,CACjB,KAAM,QACN,QAAS,EACV,EAYD,QAAS,CACP,KAAM,QACN,QAAS,EACV,EAKD,eAAgB,CACd,KAAM,OACN,QAAS,YACV,EAQD,SAAU,CACR,KAAM,QACN,QAAS,IACV,EAMD,cAAe,CACb,KAAM,OACN,QAAS,OACV,EAKD,cAAe,CACb,KAAM,MACN,QAAS,UAAY,CAAE,MAAO,CAAA,CAAK,CACpC,EAKD,YAAa,CACX,KAAM,OACN,QAAS,CACV,EAMD,mBAAoB,CAClB,KAAM,MACN,QAAS,UAAY,CAAE,MAAO,CAAA,CAAK,CACpC,EAMD,kBAAmB,CACjB,KAAM,QACN,QAAS,EACV,EAKD,KAAM,CACJ,KAAM,OACN,QAAS,KACT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B,aAAsBC,EAAA,OAAA,QAAA,UA7G9B,IAAA,KAAA"}
1
+ {"version":3,"file":"combobox-multi-select.cjs","sources":["../../../recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue"],"sourcesContent":["<!-- eslint-disable vue/no-static-inline-styles -->\n<template>\n <dt-recipe-combobox-with-popover\n ref=\"comboboxWithPopover\"\n :label=\"label\"\n :show-list=\"showList\"\n :max-height=\"listMaxHeight\"\n :max-width=\"listMaxWidth\"\n :popover-offset=\"popoverOffset\"\n :has-suggestion-list=\"hasSuggestionList\"\n content-width=\"anchor\"\n :append-to=\"appendTo\"\n :transition=\"transition\"\n @select=\"onComboboxSelect\"\n @highlight=\"comboboxHighlight\"\n >\n <template #input=\"{ onInput }\">\n <span\n ref=\"inputSlotWrapper\"\n class=\"d-recipe-combobox-multi-select__input-wrapper\"\n @focusin=\"handleInputFocusIn\"\n @focusout=\"handleInputFocusOut\"\n >\n <span\n ref=\"chipsWrapper\"\n :class=\"['d-recipe-combobox-multi-select__chip-wrapper', chipWrapperClass]\"\n >\n <dt-chip\n v-for=\"item in selectedItems\"\n ref=\"chips\"\n :key=\"item\"\n :label-class=\"['d-chip__label']\"\n :class=\"[\n 'd-recipe-combobox-multi-select__chip',\n { 'd-recipe-combobox-multi-select__chip--truncate': !!chipMaxWidth },\n ]\"\n :style=\"{ maxWidth: chipMaxWidth }\"\n :size=\"CHIP_SIZES[size]\"\n v-on=\"chipListeners\"\n @keydown.backspace=\"onChipRemove(item)\"\n @close=\"onChipRemove(item)\"\n >\n {{ item }}\n </dt-chip>\n </span>\n\n <dt-input\n ref=\"input\"\n v-model=\"value\"\n class=\"d-recipe-combobox-multi-select__input\"\n :input-class=\"[\n inputClass, {\n 'd-recipe-combobox-multi-select__input--hidden': hideInputText,\n }]\"\n :input-wrapper-class=\"inputWrapperClass\"\n :aria-label=\"label\"\n :label=\"labelVisible ? label : ''\"\n :description=\"description\"\n :placeholder=\"inputPlaceHolder\"\n :show-messages=\"showInputMessages\"\n :messages=\"inputMessages\"\n :size=\"size\"\n v-on=\"inputListeners\"\n @input=\"onInput\"\n />\n\n <dt-validation-messages\n :validation-messages=\"maxSelectedMessage\"\n :show-messages=\"showValidationMessages\"\n />\n </span>\n </template>\n\n <!-- @slot slot for popover header -->\n <template\n v-if=\"hasSlotContent($slots.header)\"\n #header\n >\n <div ref=\"header\">\n <slot name=\"header\" />\n </div>\n </template>\n\n <!-- @slot slot for popover list -->\n <template #list>\n <div\n ref=\"list\"\n class=\"d-recipe-combobox-multi-select__list\"\n @mousedown.prevent\n >\n <slot\n v-if=\"!loading\"\n name=\"list\"\n />\n <div\n v-else\n class=\"d-recipe-combobox-multi-select__list--loading\"\n >\n {{ loadingMessage }}\n </div>\n </div>\n </template>\n\n <!-- @slot slot for popover footer -->\n <template\n v-if=\"hasSlotContent($slots.footer)\"\n #footer\n >\n <div ref=\"footer\">\n <slot name=\"footer\" />\n </div>\n </template>\n </dt-recipe-combobox-with-popover>\n</template>\n\n<script>\n/* eslint-disable max-lines */\nimport DtRecipeComboboxWithPopover from '@/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue';\nimport DtInput from '@/components/input/input.vue';\nimport DtChip from '@/components/chip/chip.vue';\nimport DtValidationMessages from '@/components/validation_messages/validation_messages.vue';\nimport { validationMessageValidator } from '@/common/validators';\nimport { hasSlotContent, returnFirstEl } from '@/common/utils';\nimport {\n POPOVER_APPEND_TO_VALUES,\n} from '@/components/popover/popover_constants';\nimport {\n MULTI_SELECT_SIZES,\n CHIP_SIZES,\n CHIP_TOP_POSITION,\n} from './combobox_multi_select_constants';\n\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtRecipeComboboxMultiSelect',\n\n components: {\n DtRecipeComboboxWithPopover,\n DtInput,\n DtChip,\n DtValidationMessages,\n },\n\n props: {\n /**\n * String to use for the input label.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Determines visibility of input label.\n * @values true, false\n */\n labelVisible: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Description for the input\n */\n description: {\n type: String,\n default: '',\n },\n\n /**\n * Input placeholder\n */\n placeholder: {\n type: String,\n default: 'Select one or start typing',\n },\n\n /**\n * Input validation messages\n */\n inputMessages: {\n type: Array,\n default: () => [],\n validator: inputMessages => {\n return validationMessageValidator(inputMessages);\n },\n },\n\n /**\n * Show input validation message\n */\n showInputMessages: {\n type: Boolean,\n default: true,\n },\n\n // @TODO: https://dialpad.atlassian.net/browse/DP-52324\n // type: {\n // type: String,\n // values: ['input', 'select'],\n // default: 'select',\n // },\n\n /**\n * Determines if the list is loading\n */\n loading: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The message when the list is loading\n */\n loadingMessage: {\n type: String,\n default: 'loading...',\n },\n\n /**\n * Determines when to show the list element and also controls the aria-expanded attribute.\n * Leaving this null will have the combobox trigger on input focus by default.\n * If you set this value, the default trigger behavior will be disabled and you can\n * control it as you need.\n */\n showList: {\n type: Boolean,\n default: null,\n },\n\n /**\n * Determines maximum height for the popover before overflow.\n * Possible units rem|px|em\n */\n listMaxHeight: {\n type: String,\n default: '300px',\n },\n\n /**\n * The selected items\n */\n selectedItems: {\n type: Array,\n default: function () { return []; },\n },\n\n /**\n * Would be the maximum number of selections you can make. 0 is unlimited\n */\n maxSelected: {\n type: Number,\n default: 0,\n },\n\n /**\n * Max select message when the max selections is exceeded with the structure:\n * `[{\"message\": string, \"type\": VALIDATION_MESSAGE_TYPES }]`\n */\n maxSelectedMessage: {\n type: Array,\n default: function () { return []; },\n },\n\n /**\n * Displays the list when the combobox is focused, before the user has typed anything.\n * When this is enabled the list will not close after selection.\n */\n hasSuggestionList: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Size of the chip, one of `xs`, `sm`, `md`\n */\n size: {\n type: String,\n default: 'md',\n validator: (t) => Object.values(MULTI_SELECT_SIZES).includes(t),\n },\n\n /**\n * Sets the element to which the popover is going to append to.\n * 'body' will append to the nearest body (supports shadow DOM).\n * @values 'body', 'parent', HTMLElement,\n */\n appendTo: {\n type: [HTMLElement, String],\n default: 'body',\n validator: appendTo => {\n return POPOVER_APPEND_TO_VALUES.includes(appendTo) ||\n (appendTo instanceof HTMLElement);\n },\n },\n\n /**\n * Named transition when the content display is toggled.\n * @see DtLazyShow\n */\n transition: {\n type: String,\n default: 'fade',\n },\n\n /**\n * Determines whether the combobox should collapse to a single when losing focus.\n * @type {boolean}\n */\n collapseOnFocusOut: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Determines maximum width for the popover before overflow.\n * Possible units rem|px|em\n */\n listMaxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Amount of reserved space (in px) on the right side of the input\n * before the chips and the input caret jump to the next line.\n * default is 64\n */\n reservedRightSpace: {\n type: Number,\n default: 64,\n },\n\n /**\n * Determines the maximum width of a single chip. If the text within this chip exceeds the value\n * it will be truncated with ellipses.\n * Possible units rem|px|em\n */\n chipMaxWidth: {\n type: String,\n default: '',\n },\n\n /**\n * Additional class name for the input element.\n * Can accept String, Object, and Array, i.e. has the\n * same API as Vue's built-in handling of the class attribute.\n */\n inputClass: {\n type: [String, Object, Array],\n default: '',\n },\n\n /**\n * Additional class name for the input wrapper element.\n * Can accept all of String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n inputWrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native input event\n *\n * @event input\n * @type {String }\n */\n 'input',\n\n /**\n * Event fired when item selected\n *\n * @event select\n * @type {Number}\n */\n 'select',\n\n /**\n * Event fired when item removed\n *\n * @event remove\n * @type {String}\n */\n 'remove',\n\n /**\n * Event fired when max selected items limit is reached\n *\n * @event max-selected\n * @type {Object}\n */\n 'max-selected',\n\n /**\n * Native keyup event\n *\n * @event keyup\n * @type {KeyboardEvent}\n */\n 'keyup',\n\n /**\n * Native keydown event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Event fired when combobox item is highlighted\n *\n * @event combobox-highlight\n * @type {Object}\n */\n 'combobox-highlight',\n ],\n\n data () {\n return {\n value: '',\n popoverOffset: [0, 4],\n showValidationMessages: false,\n resizeWindowObserver: null,\n initialInputHeight: null,\n CHIP_SIZES,\n hasSlotContent,\n inputFocused: false,\n hideInputText: false,\n };\n },\n\n computed: {\n inputPlaceHolder () {\n return this.selectedItems?.length > 0 ? '' : this.placeholder;\n },\n\n chipListeners () {\n return {\n keydown: event => {\n this.onChipKeyDown(event);\n this.$emit('keydown', event);\n },\n };\n },\n\n inputListeners () {\n return {\n input: event => {\n this.$emit('input', event);\n if (this.hasSuggestionList) {\n this.showComboboxList();\n }\n },\n\n keydown: event => {\n this.onInputKeyDown(event);\n },\n\n keyup: event => {\n this.$emit('keyup', event);\n },\n\n click: () => {\n if (this.hasSuggestionList) {\n this.showComboboxList();\n }\n },\n };\n },\n\n chipWrapperClass () {\n return {\n [`d-recipe-combobox-multi-select__chip-wrapper-${this.size}--collapsed`]: !this.inputFocused && this.collapseOnFocusOut,\n };\n },\n },\n\n watch: {\n selectedItems: {\n deep: true,\n handler: async function () {\n this.initSelectedItems();\n },\n },\n\n chipMaxWidth: {\n async handler () {\n this.initSelectedItems();\n },\n },\n\n async label () {\n await this.$nextTick();\n // Adjust the chips position if label changed\n this.setChipsTopPosition();\n },\n\n async description () {\n await this.$nextTick();\n // Adjust the chips position if description changed\n this.setChipsTopPosition();\n },\n\n size: {\n async handler () {\n await this.$nextTick();\n const input = this.getInput();\n this.revertInputPadding(input);\n this.initialInputHeight = input.getBoundingClientRect().height;\n this.setInputPadding();\n this.setChipsTopPosition();\n },\n },\n },\n\n mounted () {\n this.setInitialInputHeight();\n // Recalculate chip position and input padding when resizing window\n this.resizeWindowObserver = new ResizeObserver(async () => {\n this.setChipsTopPosition();\n this.setInputPadding();\n });\n this.resizeWindowObserver.observe(document.body);\n\n this.initSelectedItems();\n },\n\n beforeUnmount () {\n this.resizeWindowObserver?.unobserve(document.body);\n },\n\n methods: {\n comboboxHighlight (highlightIndex) {\n this.$emit('combobox-highlight', highlightIndex);\n },\n\n async initSelectedItems () {\n await this.$nextTick();\n this.setInputPadding();\n this.setChipsTopPosition();\n this.setInputMinWidth();\n this.checkMaxSelected();\n },\n\n onChipRemove (item) {\n this.$emit('remove', item);\n this.$refs.input?.focus();\n },\n\n onComboboxSelect (i) {\n if (this.loading) return;\n this.value = '';\n this.$emit('select', i);\n },\n\n showComboboxList () {\n if (this.showList != null) { return; }\n this.$refs.comboboxWithPopover?.showComboboxList();\n },\n\n closeComboboxList () {\n if (this.showList != null) { return; }\n this.$refs.comboboxWithPopover?.closeComboboxList();\n },\n\n getChipButtons () {\n return this.$refs.chips && this.$refs.chips.map(chip => returnFirstEl(chip.$el).querySelector('button'));\n },\n\n getChips () {\n return this.$refs.chips && this.$refs.chips.map(chip => returnFirstEl(chip.$el));\n },\n\n getLastChipButton () {\n return this.$refs.chips && this.getChipButtons()[this.getChipButtons().length - 1];\n },\n\n getLastChip () {\n return this.$refs.chips && this.getChips()[this.getChips().length - 1];\n },\n\n getFirstChip () {\n return this.$refs.chips && this.getChips()[0];\n },\n\n getInput () {\n return this.$refs.input?.$refs.input;\n },\n\n onChipKeyDown (event) {\n const key = event.code?.toLowerCase();\n if (key === 'arrowleft') {\n // Move to the previous chip\n this.navigateBetweenChips(event.target, true);\n } else if (key === 'arrowright') {\n if (event.target.id === this.getLastChipButton().id) {\n // Move to the input if it's the last chip\n this.moveFromChipToInput();\n } else {\n // Move to the next chip\n this.navigateBetweenChips(event.target, false);\n }\n }\n },\n\n onInputKeyDown (event) {\n const key = event.code?.toLowerCase();\n // If the cursor is at the start of the text,\n // press 'backspace' or 'left' focuses the last chip\n if (this.selectedItems.length > 0 && event.target.selectionStart === 0) {\n // if there is selected text, do not focus the last chip\n if (event.target.selectionEnd !== event.target.selectionStart) {\n return;\n }\n if (key === 'backspace' || key === 'arrowleft') {\n this.moveFromInputToChip();\n }\n }\n },\n\n moveFromInputToChip () {\n this.getLastChipButton().focus();\n this.$refs.input?.blur();\n this.closeComboboxList();\n },\n\n moveFromChipToInput () {\n this.getLastChipButton().blur();\n this.$refs.input?.focus();\n this.showComboboxList();\n },\n\n navigateBetweenChips (target, toLeft) {\n const from = this.getChipButtons().indexOf(target);\n const to = toLeft ? from - 1 : from + 1;\n if (to < 0 || to >= this.$refs.chips?.length) {\n return;\n }\n this.getChipButtons()[from].blur();\n this.getChipButtons()[to].focus();\n this.closeComboboxList();\n },\n\n setChipsTopPosition () {\n // To place the chips in the input box\n // The chip \"top\" position should be the same line as the input box\n const input = this.getInput();\n if (!input) return;\n const inputSlotWrapper = this.$refs.inputSlotWrapper;\n const top = input.getBoundingClientRect().top -\n inputSlotWrapper.getBoundingClientRect().top;\n const chipsWrapper = this.$refs.chipsWrapper;\n chipsWrapper.style.top = (top - CHIP_TOP_POSITION[this.size]) + 'px';\n },\n\n setInputPadding () {\n const lastChip = this.getLastChip();\n const input = this.getInput();\n const chipsWrapper = this.$refs.chipsWrapper;\n if (!input) return;\n this.revertInputPadding(input);\n this.popoverOffset = [0, 4];\n if (!lastChip) return;\n // Avoid adding extra padding when the input is not focused if collapseOnFocusOut is true\n // This ensures the input returns to its original state when resizing\n if (this.collapseOnFocusOut && !this.inputFocused) return;\n\n // Get the position of the last chip\n // The input cursor should be the same \"top\" as that chip and next besides it\n const left = lastChip.offsetLeft + this.getFullWidth(lastChip);\n const spaceLeft = input.getBoundingClientRect().width - left;\n // input.style.paddingLeft = left + 'px';\n\n if (spaceLeft > this.reservedRightSpace) {\n input.style.paddingLeft = left + 'px';\n } else {\n input.style.paddingLeft = '4px';\n }\n\n // Get the chip wrapper height minus the 4px padding\n const chipsWrapperHeight = chipsWrapper.getBoundingClientRect().height - 4;\n const lastChipHeight = lastChip.getBoundingClientRect().height - 4;\n\n // Get lastChip offsetTop plus 2px of the input padding.\n const top = spaceLeft > this.reservedRightSpace\n ? lastChip.offsetTop + 2\n : (chipsWrapperHeight + lastChipHeight - 9);\n\n input.style.paddingTop = `${top}px`;\n },\n\n revertInputPadding (input) {\n input.style.paddingLeft = '';\n input.style.paddingTop = '';\n input.style.paddingBottom = '';\n },\n\n getFullWidth (el) {\n const styles = window.getComputedStyle(el);\n return el.offsetWidth + parseInt(styles.marginLeft) + parseInt(styles.marginRight);\n },\n\n setInputMinWidth () {\n // Ensure the width of the input is \"slightly bigger\" than the width of a single chip\n const firstChip = this.getFirstChip();\n const input = this.getInput();\n if (!input) return;\n if (firstChip) {\n // Add 4px buffer for typing room\n input.style.minWidth = (this.getFullWidth(firstChip) + 4) + 'px';\n } else {\n input.style.minWidth = '';\n }\n },\n\n checkMaxSelected () {\n if (this.maxSelected === 0) return;\n if (this.selectedItems.length > this.maxSelected) {\n this.showValidationMessages = true;\n this.$emit('max-selected');\n } else {\n this.showValidationMessages = false;\n }\n },\n\n setInitialInputHeight () {\n const input = this.getInput();\n if (!input) return;\n this.initialInputHeight = input.getBoundingClientRect().height;\n },\n\n async handleInputFocusIn () {\n this.inputFocused = true;\n if (this.collapseOnFocusOut) {\n this.hideInputText = false;\n await this.$nextTick();\n this.setInputPadding();\n }\n },\n\n async handleInputFocusOut () {\n this.inputFocused = false;\n if (this.collapseOnFocusOut) {\n this.hideInputText = true;\n const input = this.getInput();\n if (!input) return;\n // Hide the input text when is not on first line\n if (!input.style.paddingTop) {\n return;\n }\n this.revertInputPadding(input);\n }\n },\n },\n};\n</script>\n"],"names":["_sfc_main","DtRecipeComboboxWithPopover","DtInput","DtChip","DtValidationMessages","inputMessages","validationMessageValidator","t","MULTI_SELECT_SIZES","appendTo","POPOVER_APPEND_TO_VALUES","CHIP_SIZES","hasSlotContent","_a","event","input","highlightIndex","item","i","chip","returnFirstEl","key","target","toLeft","from","to","inputSlotWrapper","top","chipsWrapper","CHIP_TOP_POSITION","lastChip","left","spaceLeft","chipsWrapperHeight","lastChipHeight","el","styles","firstChip","_hoisted_1","_hoisted_3","_createBlock","_component_dt_recipe_combobox_with_popover","$props","$data","$options","_createSlots","_withCtx","onInput","_createElementVNode","args","_normalizeClass","_openBlock","_createElementBlock","_Fragment","_renderList","_component_dt_chip","_mergeProps","_toHandlers","_withKeys","$event","_createTextVNode","_toDisplayString","_createVNode","_component_dt_input","_cache","_component_dt_validation_messages","_withModifiers","_hoisted_2","_renderSlot","_ctx"],"mappings":"ijBAoIKA,EAAU,CACb,aAAc,CAAE,KAAM,GACtB,KAAM,8BAEN,WAAY,6BACVC,EAAAA,QACA,QAAAC,EAAAA,QACA,OAAAC,EAAAA,QACA,qBAAAC,EAAAA,SAGF,MAAO,CAIL,MAAO,CACL,KAAM,OACN,SAAU,IAOZ,aAAc,CACZ,KAAM,QACN,QAAS,IAMX,YAAa,CACX,KAAM,OACN,QAAS,IAMX,YAAa,CACX,KAAM,OACN,QAAS,8BAMX,cAAe,CACb,KAAM,MACN,QAAS,IAAM,CAAA,EACf,UAAWC,GACFC,EAAAA,2BAA2BD,CAAa,GAOnD,kBAAmB,CACjB,KAAM,QACN,QAAS,IAaX,QAAS,CACP,KAAM,QACN,QAAS,IAMX,eAAgB,CACd,KAAM,OACN,QAAS,cASX,SAAU,CACR,KAAM,QACN,QAAS,MAOX,cAAe,CACb,KAAM,OACN,QAAS,SAMX,cAAe,CACb,KAAM,MACN,QAAS,UAAY,CAAE,MAAO,CAAA,CAAI,GAMpC,YAAa,CACX,KAAM,OACN,QAAS,GAOX,mBAAoB,CAClB,KAAM,MACN,QAAS,UAAY,CAAE,MAAO,CAAA,CAAI,GAOpC,kBAAmB,CACjB,KAAM,QACN,QAAS,IAMX,KAAM,CACJ,KAAM,OACN,QAAS,KACT,UAAYE,GAAM,OAAO,OAAOC,oBAAkB,EAAE,SAASD,CAAC,GAQhE,SAAU,CACR,KAAM,CAAC,YAAa,MAAM,EAC1B,QAAS,OACT,UAAWE,GACFC,EAAAA,yBAAyB,SAASD,CAAQ,GAC5CA,aAAoB,aAQ7B,WAAY,CACV,KAAM,OACN,QAAS,QAOX,mBAAoB,CAClB,KAAM,QACN,QAAS,IAOX,aAAc,CACZ,KAAM,OACN,QAA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D,EAAA,kBACrB,aAAYA,EAAA,MACZ,MAAOA,EAAA,aAAeA,EAAA,MAAK,GAC3B,YAAaA,EAAA,YACb,YAAaE,EAAA,iBACb,gBAAeF,EAAA,kBACf,SAAUA,EAAA,cACV,KAAMA,EAAA,IACP,EAAAe,EAAAA,WAAqBb,EAAf,cAAc,EAAA,CACnB,QAAOG,EAAO,EAAA,KAAA,GAAA,CAAA,aAAA,cAAA,sBAAA,aAAA,QAAA,cAAA,cAAA,gBAAA,WAAA,OAAA,SAAA,CAAA,EAGjBe,EAAAA,YAGEG,EAAA,CAFC,sBAAqBvB,EAAA,mBACrB,gBAAeC,EAAA,gFAgBX,eACT,IAeM,CAfNK,EAAAA,mBAeM,MAAA,CAdJ,IAAI,OACJ,MAAM,uCACL,YAASgB,EAAA,CAAA,IAAAA,EAAA,CAAA,EAxFlBE,EAAAA,cAwFQ,IAAA,CAAA,EAAkB,CAAA,SAAA,CAAA,KAGTxB,EAAA,uBAGTU,EAAAA,mBAKM,MALNe,EAKMN,EAAAA,gBADDnB,EAAA,cAAc,EAAA,CAAA,GARnB0B,EAAAA,WAGEC,iBA7FV,IAAA,CAAA,CAAA,UAAA,EAAA,IA2EY1B,EAAA,eAAe0B,EAAA,OAAO,MAAM,GA3ExC,KA4EO,SA5EP,GAAAvB,EAAAA,QA8EM,IAEM,CAFNE,EAAAA,mBAEM,MAFNV,EAEM,CADJ8B,aAAsBC,EAAA,OAAA,QAAA,UA/E9B,IAAA,KAAA,OAyGY1B,EAAA,eAAe0B,EAAA,OAAO,MAAM,GAzGxC,KA0GO,SA1GP,GAAAvB,EAAAA,QA4GM,IAEM,CAFNE,EAAAA,mBAEM,MAFNT,EAEM,CADJ6B,aAAsBC,EAAA,OAAA,QAAA,UA7G9B,IAAA,KAAA"}
@@ -3,10 +3,10 @@ import L from "../input/input.js";
3
3
  import W from "../chip/chip.js";
4
4
  import M from "../validation-messages/validation-messages.js";
5
5
  import { validationMessageValidator as O } from "../../common/validators/index.js";
6
- import { hasSlotContent as T, returnFirstEl as g } from "../../common/utils/index.js";
6
+ import { returnFirstEl as g, hasSlotContent as T } from "../../common/utils/index.js";
7
7
  import { POPOVER_APPEND_TO_VALUES as P } from "../popover/popover-constants.js";
8
- import { MULTI_SELECT_SIZES as B, CHIP_SIZES as F, CHIP_TOP_POSITION as k } from "./combobox-multi-select-constants.js";
9
- import { resolveComponent as h, openBlock as p, createBlock as m, createSlots as H, withCtx as r, createElementVNode as a, normalizeClass as R, createElementBlock as f, Fragment as z, renderList as V, mergeProps as b, toHandlers as C, withKeys as E, createTextVNode as D, toDisplayString as y, createVNode as x, withModifiers as A, renderSlot as d } from "vue";
8
+ import { CHIP_TOP_POSITION as B, CHIP_SIZES as F, MULTI_SELECT_SIZES as k } from "./combobox-multi-select-constants.js";
9
+ import { resolveComponent as h, createBlock as m, openBlock as p, createSlots as H, withCtx as r, createElementVNode as a, withModifiers as R, renderSlot as d, createElementBlock as f, toDisplayString as b, createVNode as C, normalizeClass as z, Fragment as V, renderList as E, mergeProps as y, toHandlers as x, withKeys as D, createTextVNode as A } from "vue";
10
10
  import { _ as K } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const N = {
12
12
  compatConfig: { MODE: 3 },
@@ -140,7 +140,7 @@ const N = {
140
140
  size: {
141
141
  type: String,
142
142
  default: "md",
143
- validator: (t) => Object.values(B).includes(t)
143
+ validator: (t) => Object.values(k).includes(t)
144
144
  },
145
145
  /**
146
146
  * Sets the element to which the popover is going to append to.
@@ -418,7 +418,7 @@ const N = {
418
418
  const t = this.getInput();
419
419
  if (!t) return;
420
420
  const i = this.$refs.inputSlotWrapper, e = t.getBoundingClientRect().top - i.getBoundingClientRect().top, l = this.$refs.chipsWrapper;
421
- l.style.top = e - k[this.size] + "px";
421
+ l.style.top = e - B[this.size] + "px";
422
422
  },
423
423
  setInputPadding() {
424
424
  const t = this.getLastChip(), i = this.getInput(), e = this.$refs.chipsWrapper;
@@ -488,9 +488,9 @@ function q(t, i, e, l, s, o) {
488
488
  }, [
489
489
  a("span", {
490
490
  ref: "chipsWrapper",
491
- class: R(["d-recipe-combobox-multi-select__chip-wrapper", o.chipWrapperClass])
491
+ class: z(["d-recipe-combobox-multi-select__chip-wrapper", o.chipWrapperClass])
492
492
  }, [
493
- (p(!0), f(z, null, V(e.selectedItems, (n) => (p(), m(u, b({
493
+ (p(!0), f(V, null, E(e.selectedItems, (n) => (p(), m(u, y({
494
494
  ref_for: !0,
495
495
  ref: "chips",
496
496
  key: n,
@@ -501,17 +501,17 @@ function q(t, i, e, l, s, o) {
501
501
  ],
502
502
  style: { maxWidth: e.chipMaxWidth },
503
503
  size: s.CHIP_SIZES[e.size]
504
- }, C(o.chipListeners), {
505
- onKeydown: E((_) => o.onChipRemove(n), ["backspace"]),
504
+ }, x(o.chipListeners), {
505
+ onKeydown: D((_) => o.onChipRemove(n), ["backspace"]),
506
506
  onClose: (_) => o.onChipRemove(n)
507
507
  }), {
508
508
  default: r(() => [
509
- D(y(n), 1)
509
+ A(b(n), 1)
510
510
  ]),
511
511
  _: 2
512
512
  }, 1040, ["class", "style", "size", "onKeydown", "onClose"]))), 128))
513
513
  ], 2),
514
- x(c, b({
514
+ C(c, y({
515
515
  ref: "input",
516
516
  modelValue: s.value,
517
517
  "onUpdate:modelValue": i[0] || (i[0] = (n) => s.value = n),
@@ -530,8 +530,8 @@ function q(t, i, e, l, s, o) {
530
530
  "show-messages": e.showInputMessages,
531
531
  messages: e.inputMessages,
532
532
  size: e.size
533
- }, C(o.inputListeners), { onInput: S }), null, 16, ["modelValue", "input-class", "input-wrapper-class", "aria-label", "label", "description", "placeholder", "show-messages", "messages", "size", "onInput"]),
534
- x(I, {
533
+ }, x(o.inputListeners), { onInput: S }), null, 16, ["modelValue", "input-class", "input-wrapper-class", "aria-label", "label", "description", "placeholder", "show-messages", "messages", "size", "onInput"]),
534
+ C(I, {
535
535
  "validation-messages": e.maxSelectedMessage,
536
536
  "show-messages": s.showValidationMessages
537
537
  }, null, 8, ["validation-messages", "show-messages"])
@@ -541,10 +541,10 @@ function q(t, i, e, l, s, o) {
541
541
  a("div", {
542
542
  ref: "list",
543
543
  class: "d-recipe-combobox-multi-select__list",
544
- onMousedown: i[3] || (i[3] = A(() => {
544
+ onMousedown: i[3] || (i[3] = R(() => {
545
545
  }, ["prevent"]))
546
546
  }, [
547
- e.loading ? (p(), f("div", j, y(e.loadingMessage), 1)) : d(t.$slots, "list", { key: 0 })
547
+ e.loading ? (p(), f("div", j, b(e.loadingMessage), 1)) : d(t.$slots, "list", { key: 0 })
548
548
  ], 544)
549
549
  ]),
550
550
  _: 2