primevue 3.15.0 → 3.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/autocomplete/AutoComplete.d.ts +182 -38
  2. package/autocomplete/AutoComplete.vue +636 -342
  3. package/autocomplete/autocomplete.cjs.js +745 -416
  4. package/autocomplete/autocomplete.cjs.min.js +1 -1
  5. package/autocomplete/autocomplete.esm.js +747 -418
  6. package/autocomplete/autocomplete.esm.min.js +1 -1
  7. package/autocomplete/autocomplete.js +745 -416
  8. package/autocomplete/autocomplete.min.js +1 -1
  9. package/button/Button.vue +4 -1
  10. package/button/button.cjs.js +5 -1
  11. package/button/button.cjs.min.js +1 -1
  12. package/button/button.esm.js +5 -1
  13. package/button/button.esm.min.js +1 -1
  14. package/button/button.js +5 -1
  15. package/button/button.min.js +1 -1
  16. package/calendar/Calendar.d.ts +51 -12
  17. package/calendar/Calendar.vue +259 -114
  18. package/calendar/calendar.cjs.js +414 -220
  19. package/calendar/calendar.cjs.min.js +1 -1
  20. package/calendar/calendar.esm.js +415 -221
  21. package/calendar/calendar.esm.min.js +1 -1
  22. package/calendar/calendar.js +414 -220
  23. package/calendar/calendar.min.js +1 -1
  24. package/carousel/Carousel.vue +25 -0
  25. package/carousel/carousel.cjs.js +25 -0
  26. package/carousel/carousel.cjs.min.js +1 -1
  27. package/carousel/carousel.esm.js +25 -0
  28. package/carousel/carousel.esm.min.js +1 -1
  29. package/carousel/carousel.js +25 -0
  30. package/carousel/carousel.min.js +1 -1
  31. package/cascadeselect/CascadeSelect.d.ts +97 -17
  32. package/cascadeselect/CascadeSelect.vue +560 -135
  33. package/cascadeselect/CascadeSelectSub.vue +48 -129
  34. package/cascadeselect/cascadeselect.cjs.js +670 -306
  35. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  36. package/cascadeselect/cascadeselect.esm.js +672 -308
  37. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  38. package/cascadeselect/cascadeselect.js +670 -306
  39. package/cascadeselect/cascadeselect.min.js +1 -1
  40. package/checkbox/Checkbox.d.ts +40 -4
  41. package/checkbox/Checkbox.vue +50 -13
  42. package/checkbox/checkbox.cjs.js +64 -23
  43. package/checkbox/checkbox.cjs.min.js +1 -1
  44. package/checkbox/checkbox.esm.js +65 -24
  45. package/checkbox/checkbox.esm.min.js +1 -1
  46. package/checkbox/checkbox.js +64 -23
  47. package/checkbox/checkbox.min.js +1 -1
  48. package/chips/Chips.d.ts +36 -12
  49. package/chips/Chips.vue +116 -22
  50. package/chips/chips.cjs.js +149 -37
  51. package/chips/chips.cjs.min.js +1 -1
  52. package/chips/chips.esm.js +150 -38
  53. package/chips/chips.esm.min.js +1 -1
  54. package/chips/chips.js +150 -39
  55. package/chips/chips.min.js +1 -1
  56. package/colorpicker/ColorPicker.d.ts +3 -6
  57. package/colorpicker/ColorPicker.vue +1 -5
  58. package/colorpicker/colorpicker.cjs.js +2 -7
  59. package/colorpicker/colorpicker.cjs.min.js +1 -1
  60. package/colorpicker/colorpicker.esm.js +2 -7
  61. package/colorpicker/colorpicker.esm.min.js +1 -1
  62. package/colorpicker/colorpicker.js +2 -7
  63. package/colorpicker/colorpicker.min.js +1 -1
  64. package/column/Column.d.ts +4 -0
  65. package/column/Column.vue +4 -0
  66. package/column/column.cjs.js +4 -0
  67. package/column/column.cjs.min.js +1 -1
  68. package/column/column.esm.js +4 -0
  69. package/column/column.esm.min.js +1 -1
  70. package/column/column.js +4 -0
  71. package/column/column.min.js +1 -1
  72. package/config/PrimeVue.d.ts +42 -0
  73. package/config/config.cjs.js +35 -4
  74. package/config/config.cjs.min.js +1 -1
  75. package/config/config.esm.js +35 -4
  76. package/config/config.esm.min.js +1 -1
  77. package/config/config.js +35 -4
  78. package/config/config.min.js +1 -1
  79. package/confirmdialog/ConfirmDialog.vue +4 -1
  80. package/confirmdialog/confirmdialog.cjs.js +6 -2
  81. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  82. package/confirmdialog/confirmdialog.esm.js +6 -2
  83. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  84. package/confirmdialog/confirmdialog.js +6 -2
  85. package/confirmdialog/confirmdialog.min.js +1 -1
  86. package/contextmenu/ContextMenu.d.ts +1 -1
  87. package/contextmenu/ContextMenuSub.vue +3 -3
  88. package/contextmenu/contextmenu.cjs.js +14 -8
  89. package/contextmenu/contextmenu.cjs.min.js +1 -1
  90. package/contextmenu/contextmenu.esm.js +15 -9
  91. package/contextmenu/contextmenu.esm.min.js +1 -1
  92. package/contextmenu/contextmenu.js +14 -8
  93. package/contextmenu/contextmenu.min.js +1 -1
  94. package/core/core.js +1128 -772
  95. package/core/core.min.js +12 -12
  96. package/datatable/BodyCell.vue +11 -2
  97. package/datatable/DataTable.vue +23 -2
  98. package/datatable/datatable.cjs.js +34 -4
  99. package/datatable/datatable.cjs.min.js +1 -1
  100. package/datatable/datatable.esm.js +34 -4
  101. package/datatable/datatable.esm.min.js +1 -1
  102. package/datatable/datatable.js +34 -4
  103. package/datatable/datatable.min.js +1 -1
  104. package/dialog/Dialog.d.ts +5 -1
  105. package/dropdown/Dropdown.d.ts +92 -38
  106. package/dropdown/Dropdown.vue +538 -399
  107. package/dropdown/dropdown.cjs.js +657 -486
  108. package/dropdown/dropdown.cjs.min.js +1 -1
  109. package/dropdown/dropdown.esm.js +659 -488
  110. package/dropdown/dropdown.esm.min.js +1 -1
  111. package/dropdown/dropdown.js +657 -486
  112. package/dropdown/dropdown.min.js +1 -1
  113. package/editor/Editor.d.ts +32 -0
  114. package/editor/Editor.vue +15 -1
  115. package/editor/editor.cjs.js +15 -1
  116. package/editor/editor.cjs.min.js +1 -1
  117. package/editor/editor.esm.js +15 -1
  118. package/editor/editor.esm.min.js +1 -1
  119. package/editor/editor.js +15 -1
  120. package/editor/editor.min.js +1 -1
  121. package/inputmask/InputMask.vue +9 -6
  122. package/inputmask/inputmask.cjs.js +14 -6
  123. package/inputmask/inputmask.cjs.min.js +1 -1
  124. package/inputmask/inputmask.esm.js +15 -7
  125. package/inputmask/inputmask.esm.min.js +1 -1
  126. package/inputmask/inputmask.js +14 -6
  127. package/inputmask/inputmask.min.js +1 -1
  128. package/inputnumber/InputNumber.d.ts +31 -7
  129. package/inputnumber/InputNumber.vue +53 -20
  130. package/inputnumber/inputnumber.cjs.js +75 -29
  131. package/inputnumber/inputnumber.cjs.min.js +1 -1
  132. package/inputnumber/inputnumber.esm.js +76 -30
  133. package/inputnumber/inputnumber.esm.min.js +1 -1
  134. package/inputnumber/inputnumber.js +75 -29
  135. package/inputnumber/inputnumber.min.js +1 -1
  136. package/inputswitch/InputSwitch.d.ts +24 -8
  137. package/inputswitch/InputSwitch.vue +27 -12
  138. package/inputswitch/inputswitch.cjs.js +38 -20
  139. package/inputswitch/inputswitch.cjs.min.js +1 -1
  140. package/inputswitch/inputswitch.esm.js +39 -21
  141. package/inputswitch/inputswitch.esm.min.js +1 -1
  142. package/inputswitch/inputswitch.js +38 -20
  143. package/inputswitch/inputswitch.min.js +1 -1
  144. package/inputtext/InputText.vue +1 -2
  145. package/inputtext/inputtext.cjs.js +3 -4
  146. package/inputtext/inputtext.cjs.min.js +1 -1
  147. package/inputtext/inputtext.esm.js +4 -5
  148. package/inputtext/inputtext.esm.min.js +1 -1
  149. package/inputtext/inputtext.js +3 -4
  150. package/inputtext/inputtext.min.js +1 -1
  151. package/knob/Knob.d.ts +12 -0
  152. package/knob/Knob.vue +62 -2
  153. package/knob/knob.cjs.js +73 -5
  154. package/knob/knob.cjs.min.js +1 -1
  155. package/knob/knob.esm.js +73 -5
  156. package/knob/knob.esm.min.js +1 -1
  157. package/knob/knob.js +73 -5
  158. package/knob/knob.min.js +1 -1
  159. package/listbox/Listbox.d.ts +53 -7
  160. package/listbox/Listbox.vue +500 -135
  161. package/listbox/listbox.cjs.js +597 -193
  162. package/listbox/listbox.cjs.min.js +1 -1
  163. package/listbox/listbox.esm.js +599 -195
  164. package/listbox/listbox.esm.min.js +1 -1
  165. package/listbox/listbox.js +597 -193
  166. package/listbox/listbox.min.js +1 -1
  167. package/menu/Menu.d.ts +1 -1
  168. package/menu/Menuitem.vue +2 -2
  169. package/menu/menu.cjs.js +12 -6
  170. package/menu/menu.cjs.min.js +1 -1
  171. package/menu/menu.esm.js +13 -7
  172. package/menu/menu.esm.min.js +1 -1
  173. package/menu/menu.js +12 -6
  174. package/menu/menu.min.js +1 -1
  175. package/menubar/MenubarSub.vue +3 -3
  176. package/menubar/menubar.cjs.js +14 -8
  177. package/menubar/menubar.cjs.min.js +1 -1
  178. package/menubar/menubar.esm.js +15 -9
  179. package/menubar/menubar.esm.min.js +1 -1
  180. package/menubar/menubar.js +14 -8
  181. package/menubar/menubar.min.js +1 -1
  182. package/menuitem/MenuItem.d.ts +1 -1
  183. package/multiselect/MultiSelect.d.ts +111 -51
  184. package/multiselect/MultiSelect.vue +629 -338
  185. package/multiselect/multiselect.cjs.js +748 -428
  186. package/multiselect/multiselect.cjs.min.js +1 -1
  187. package/multiselect/multiselect.esm.js +750 -430
  188. package/multiselect/multiselect.esm.min.js +1 -1
  189. package/multiselect/multiselect.js +748 -428
  190. package/multiselect/multiselect.min.js +1 -1
  191. package/overlaypanel/OverlayPanel.d.ts +1 -1
  192. package/overlaypanel/OverlayPanel.vue +14 -2
  193. package/overlaypanel/overlaypanel.cjs.js +14 -2
  194. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  195. package/overlaypanel/overlaypanel.esm.js +14 -2
  196. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  197. package/overlaypanel/overlaypanel.js +14 -2
  198. package/overlaypanel/overlaypanel.min.js +1 -1
  199. package/package.json +2 -2
  200. package/paginator/Paginator.d.ts +2 -2
  201. package/password/Password.d.ts +36 -8
  202. package/password/Password.vue +50 -14
  203. package/password/password.cjs.js +69 -24
  204. package/password/password.cjs.min.js +1 -1
  205. package/password/password.esm.js +71 -26
  206. package/password/password.esm.min.js +1 -1
  207. package/password/password.js +69 -24
  208. package/password/password.min.js +1 -1
  209. package/picklist/PickList.d.ts +8 -0
  210. package/picklist/PickList.vue +10 -2
  211. package/picklist/picklist.cjs.js +68 -50
  212. package/picklist/picklist.cjs.min.js +1 -1
  213. package/picklist/picklist.esm.js +69 -51
  214. package/picklist/picklist.esm.min.js +1 -1
  215. package/picklist/picklist.js +68 -50
  216. package/picklist/picklist.min.js +1 -1
  217. package/portal/Portal.d.ts +1 -1
  218. package/radiobutton/RadioButton.d.ts +28 -4
  219. package/radiobutton/RadioButton.vue +36 -11
  220. package/radiobutton/radiobutton.cjs.js +49 -23
  221. package/radiobutton/radiobutton.cjs.min.js +1 -1
  222. package/radiobutton/radiobutton.esm.js +50 -24
  223. package/radiobutton/radiobutton.esm.min.js +1 -1
  224. package/radiobutton/radiobutton.js +49 -23
  225. package/radiobutton/radiobutton.min.js +1 -1
  226. package/rating/Rating.d.ts +4 -0
  227. package/rating/Rating.vue +61 -7
  228. package/rating/rating.cjs.js +90 -16
  229. package/rating/rating.cjs.min.js +1 -1
  230. package/rating/rating.esm.js +91 -17
  231. package/rating/rating.esm.min.js +1 -1
  232. package/rating/rating.js +90 -16
  233. package/rating/rating.min.js +1 -1
  234. package/resources/primevue.css +8 -0
  235. package/resources/primevue.min.css +1 -1
  236. package/resources/themes/arya-blue/theme.css +82 -40
  237. package/resources/themes/arya-green/theme.css +82 -40
  238. package/resources/themes/arya-orange/theme.css +82 -40
  239. package/resources/themes/arya-purple/theme.css +82 -40
  240. package/resources/themes/bootstrap4-dark-blue/theme.css +82 -40
  241. package/resources/themes/bootstrap4-dark-purple/theme.css +82 -40
  242. package/resources/themes/bootstrap4-light-blue/theme.css +82 -40
  243. package/resources/themes/bootstrap4-light-purple/theme.css +82 -40
  244. package/resources/themes/fluent-light/theme.css +82 -40
  245. package/resources/themes/lara-dark-blue/theme.css +82 -40
  246. package/resources/themes/lara-dark-indigo/theme.css +82 -40
  247. package/resources/themes/lara-dark-purple/theme.css +82 -40
  248. package/resources/themes/lara-dark-teal/theme.css +82 -40
  249. package/resources/themes/lara-light-blue/theme.css +82 -40
  250. package/resources/themes/lara-light-indigo/theme.css +82 -40
  251. package/resources/themes/lara-light-purple/theme.css +82 -40
  252. package/resources/themes/lara-light-teal/theme.css +82 -40
  253. package/resources/themes/luna-amber/theme.css +82 -40
  254. package/resources/themes/luna-blue/theme.css +82 -40
  255. package/resources/themes/luna-green/theme.css +82 -40
  256. package/resources/themes/luna-pink/theme.css +82 -40
  257. package/resources/themes/md-dark-deeppurple/theme.css +82 -40
  258. package/resources/themes/md-dark-indigo/theme.css +82 -40
  259. package/resources/themes/md-light-deeppurple/theme.css +82 -40
  260. package/resources/themes/md-light-indigo/theme.css +82 -40
  261. package/resources/themes/mdc-dark-deeppurple/theme.css +82 -40
  262. package/resources/themes/mdc-dark-indigo/theme.css +82 -40
  263. package/resources/themes/mdc-light-deeppurple/theme.css +82 -40
  264. package/resources/themes/mdc-light-indigo/theme.css +82 -40
  265. package/resources/themes/nova/theme.css +82 -40
  266. package/resources/themes/nova-accent/theme.css +82 -40
  267. package/resources/themes/nova-alt/theme.css +82 -40
  268. package/resources/themes/nova-vue/theme.css +82 -40
  269. package/resources/themes/rhea/theme.css +82 -40
  270. package/resources/themes/saga-blue/theme.css +82 -40
  271. package/resources/themes/saga-green/theme.css +82 -40
  272. package/resources/themes/saga-orange/theme.css +82 -40
  273. package/resources/themes/saga-purple/theme.css +82 -40
  274. package/resources/themes/tailwind-light/theme.css +82 -40
  275. package/resources/themes/vela-blue/theme.css +82 -40
  276. package/resources/themes/vela-green/theme.css +82 -40
  277. package/resources/themes/vela-orange/theme.css +82 -40
  278. package/resources/themes/vela-purple/theme.css +82 -40
  279. package/ripple/ripple.cjs.js +1 -0
  280. package/ripple/ripple.cjs.min.js +1 -1
  281. package/ripple/ripple.esm.js +1 -0
  282. package/ripple/ripple.esm.min.js +1 -1
  283. package/ripple/ripple.js +1 -0
  284. package/ripple/ripple.min.js +1 -1
  285. package/selectbutton/SelectButton.d.ts +6 -2
  286. package/selectbutton/SelectButton.vue +89 -12
  287. package/selectbutton/selectbutton.cjs.js +97 -22
  288. package/selectbutton/selectbutton.cjs.min.js +1 -1
  289. package/selectbutton/selectbutton.esm.js +99 -24
  290. package/selectbutton/selectbutton.esm.min.js +1 -1
  291. package/selectbutton/selectbutton.js +97 -22
  292. package/selectbutton/selectbutton.min.js +1 -1
  293. package/slider/Slider.d.ts +9 -1
  294. package/slider/Slider.vue +50 -34
  295. package/slider/slider.cjs.js +59 -38
  296. package/slider/slider.cjs.min.js +1 -1
  297. package/slider/slider.esm.js +59 -38
  298. package/slider/slider.esm.min.js +1 -1
  299. package/slider/slider.js +59 -38
  300. package/slider/slider.min.js +1 -1
  301. package/splitbutton/SplitButton.d.ts +1 -1
  302. package/splitter/Splitter.vue +30 -1
  303. package/splitter/splitter.cjs.js +30 -1
  304. package/splitter/splitter.cjs.min.js +1 -1
  305. package/splitter/splitter.esm.js +30 -1
  306. package/splitter/splitter.esm.min.js +1 -1
  307. package/splitter/splitter.js +30 -1
  308. package/splitter/splitter.min.js +1 -1
  309. package/textarea/Textarea.vue +1 -2
  310. package/textarea/textarea.cjs.js +3 -5
  311. package/textarea/textarea.cjs.min.js +1 -1
  312. package/textarea/textarea.esm.js +4 -6
  313. package/textarea/textarea.esm.min.js +1 -1
  314. package/textarea/textarea.js +3 -5
  315. package/textarea/textarea.min.js +1 -1
  316. package/tieredmenu/TieredMenu.d.ts +1 -1
  317. package/tieredmenu/TieredMenuSub.vue +3 -3
  318. package/tieredmenu/tieredmenu.cjs.js +14 -8
  319. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  320. package/tieredmenu/tieredmenu.esm.js +15 -9
  321. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  322. package/tieredmenu/tieredmenu.js +14 -8
  323. package/tieredmenu/tieredmenu.min.js +1 -1
  324. package/timeline/Timeline.d.ts +10 -1
  325. package/timeline/Timeline.vue +1 -1
  326. package/timeline/timeline.cjs.js +5 -1
  327. package/timeline/timeline.cjs.min.js +1 -1
  328. package/timeline/timeline.esm.js +5 -1
  329. package/timeline/timeline.esm.min.js +1 -1
  330. package/timeline/timeline.js +5 -1
  331. package/timeline/timeline.min.js +1 -1
  332. package/togglebutton/ToggleButton.d.ts +42 -0
  333. package/togglebutton/ToggleButton.vue +44 -7
  334. package/togglebutton/togglebutton.cjs.js +59 -13
  335. package/togglebutton/togglebutton.cjs.min.js +1 -1
  336. package/togglebutton/togglebutton.esm.js +60 -14
  337. package/togglebutton/togglebutton.esm.min.js +1 -1
  338. package/togglebutton/togglebutton.js +59 -13
  339. package/togglebutton/togglebutton.min.js +1 -1
  340. package/tooltip/tooltip.cjs.js +20 -11
  341. package/tooltip/tooltip.cjs.min.js +1 -1
  342. package/tooltip/tooltip.esm.js +21 -12
  343. package/tooltip/tooltip.esm.min.js +1 -1
  344. package/tooltip/tooltip.js +20 -11
  345. package/tooltip/tooltip.min.js +1 -1
  346. package/tree/Tree.vue +5 -1
  347. package/tree/TreeNode.vue +20 -19
  348. package/tree/tree.cjs.js +47 -32
  349. package/tree/tree.cjs.min.js +1 -1
  350. package/tree/tree.esm.js +47 -32
  351. package/tree/tree.esm.min.js +1 -1
  352. package/tree/tree.js +47 -32
  353. package/tree/tree.min.js +1 -1
  354. package/treeselect/TreeSelect.d.ts +26 -10
  355. package/treeselect/TreeSelect.vue +52 -29
  356. package/treeselect/treeselect.cjs.js +74 -41
  357. package/treeselect/treeselect.cjs.min.js +1 -1
  358. package/treeselect/treeselect.esm.js +76 -43
  359. package/treeselect/treeselect.esm.min.js +1 -1
  360. package/treeselect/treeselect.js +74 -41
  361. package/treeselect/treeselect.min.js +1 -1
  362. package/tristatecheckbox/TriStateCheckbox.d.ts +20 -4
  363. package/tristatecheckbox/TriStateCheckbox.vue +52 -15
  364. package/tristatecheckbox/tristatecheckbox.cjs.js +67 -26
  365. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  366. package/tristatecheckbox/tristatecheckbox.esm.js +68 -27
  367. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  368. package/tristatecheckbox/tristatecheckbox.js +67 -26
  369. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  370. package/utils/Utils.d.ts +3 -2
  371. package/utils/utils.cjs.js +239 -173
  372. package/utils/utils.cjs.min.js +1 -1
  373. package/utils/utils.esm.js +239 -173
  374. package/utils/utils.esm.min.js +1 -1
  375. package/utils/utils.js +239 -173
  376. package/utils/utils.min.js +1 -1
  377. package/vetur-attributes.json +612 -136
  378. package/vetur-tags.json +180 -59
  379. package/virtualscroller/VirtualScroller.d.ts +10 -0
  380. package/virtualscroller/VirtualScroller.vue +18 -17
  381. package/virtualscroller/virtualscroller.cjs.js +22 -20
  382. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  383. package/virtualscroller/virtualscroller.esm.js +22 -20
  384. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  385. package/virtualscroller/virtualscroller.js +22 -20
  386. package/virtualscroller/virtualscroller.min.js +1 -1
  387. package/web-types.json +1745 -338
@@ -14,144 +14,64 @@ var Portal__default = /*#__PURE__*/_interopDefaultLegacy(Portal);
14
14
 
15
15
  var script$1 = {
16
16
  name: 'CascadeSelectSub',
17
- emits: ['option-select','optiongroup-select'],
17
+ emits: ['option-change'],
18
18
  props: {
19
- selectionPath: Array,
20
- level: Number,
19
+ selectId: String,
20
+ focusedOptionId: String,
21
21
  options: Array,
22
22
  optionLabel: String,
23
23
  optionValue: String,
24
+ optionDisabled: null,
24
25
  optionGroupLabel: String,
25
26
  optionGroupChildren: Array,
26
- parentActive: Boolean,
27
- dirty: Boolean,
28
- templates: null,
29
- root: Boolean
30
- },
31
- data() {
32
- return {
33
- activeOption: null
34
- }
27
+ activeOptionPath: Array,
28
+ level: Number,
29
+ templates: null
35
30
  },
36
31
  mounted() {
37
- if (this.selectionPath && this.options && !this.dirty) {
38
- for (let option of this.options) {
39
- if (this.selectionPath.includes(option)) {
40
- this.activeOption = option;
41
- break;
42
- }
43
- }
44
- }
45
-
46
- if (!this.root) {
32
+ if (utils.ObjectUtils.isNotEmpty(this.parentKey)) {
47
33
  this.position();
48
34
  }
49
35
  },
50
- watch: {
51
- parentActive(newValue) {
52
- if (!newValue) {
53
- this.activeOption = null;
54
- }
55
- }
56
- },
57
36
  methods: {
58
- onOptionClick(event, option) {
59
- if (this.isOptionGroup(option)) {
60
- this.activeOption = (this.activeOption === option) ? null : option;
61
-
62
- this.$emit('optiongroup-select', {
63
- originalEvent: event,
64
- value: option
65
- });
66
- }
67
- else {
68
- this.$emit('option-select', {
69
- originalEvent: event,
70
- value: this.getOptionValue(option)
71
- });
72
- }
37
+ getOptionId(processedOption) {
38
+ return `${this.selectId}_${processedOption.key}`;
73
39
  },
74
- onOptionSelect(event) {
75
- this.$emit('option-select', event);
40
+ getOptionLabel(processedOption) {
41
+ return this.optionLabel ? utils.ObjectUtils.resolveFieldData(processedOption.option, this.optionLabel) : processedOption.option;
76
42
  },
77
- onOptionGroupSelect(event) {
78
- this.$emit('optiongroup-select', event);
43
+ getOptionValue(processedOption) {
44
+ return this.optionValue ? utils.ObjectUtils.resolveFieldData(processedOption.option, this.optionValue) : processedOption.option;
79
45
  },
80
- getOptionLabel(option) {
81
- return this.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
46
+ isOptionDisabled(processedOption) {
47
+ return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(processedOption.option, this.optionDisabled) : false;
82
48
  },
83
- getOptionValue(option) {
84
- return this.optionValue ? utils.ObjectUtils.resolveFieldData(option, this.optionValue) : option;
49
+ getOptionGroupLabel(processedOption) {
50
+ return this.optionGroupLabel ? utils.ObjectUtils.resolveFieldData(processedOption.option, this.optionGroupLabel) : null;
85
51
  },
86
- getOptionGroupLabel(optionGroup) {
87
- return this.optionGroupLabel ? utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel) : null;
52
+ getOptionGroupChildren(processedOption) {
53
+ return processedOption.children;
88
54
  },
89
- getOptionGroupChildren(optionGroup) {
90
- return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren[this.level]);
55
+ isOptionGroup(processedOption) {
56
+ return utils.ObjectUtils.isNotEmpty(processedOption.children);
91
57
  },
92
- isOptionGroup(option) {
93
- return Object.prototype.hasOwnProperty.call(option, this.optionGroupChildren[this.level]);
58
+ isOptionSelected(processedOption) {
59
+ return !this.isOptionGroup(processedOption) && this.isOptionActive(processedOption);
94
60
  },
95
- getOptionLabelToRender(option) {
96
- return this.isOptionGroup(option) ? this.getOptionGroupLabel(option) : this.getOptionLabel(option);
61
+ isOptionActive(processedOption) {
62
+ return this.activeOptionPath.some(path => path.key === processedOption.key);
97
63
  },
98
- getItemClass(option) {
99
- return [
100
- 'p-cascadeselect-item', {
101
- 'p-cascadeselect-item-group': this.isOptionGroup(option),
102
- 'p-cascadeselect-item-active p-highlight': this.isOptionActive(option)
103
- }
104
- ]
64
+ isOptionFocused(processedOption) {
65
+ return this.focusedOptionId === this.getOptionId(processedOption);
105
66
  },
106
- isOptionActive(option) {
107
- return this.activeOption === option;
67
+ getOptionLabelToRender(processedOption) {
68
+ return this.isOptionGroup(processedOption) ? this.getOptionGroupLabel(processedOption) : this.getOptionLabel(processedOption);
108
69
  },
109
- onKeyDown(event, option, index) {
110
- switch (event.key) {
111
- case 'Down':
112
- case 'ArrowDown':
113
- var nextItem = this.$el.children[index + 1];
114
- if (nextItem) {
115
- nextItem.children[0].focus();
116
- }
117
- break;
118
-
119
- case 'Up':
120
- case 'ArrowUp':
121
- var prevItem = this.$el.children[index - 1];
122
- if (prevItem) {
123
- prevItem.children[0].focus();
124
- }
125
- break;
126
-
127
- case 'Right':
128
- case 'ArrowRight':
129
- if (this.isOptionGroup(option)) {
130
- if (this.isOptionActive(option)) {
131
- event.currentTarget.nextElementSibling.children[0].children[0].focus();
132
- }
133
- else {
134
- this.activeOption = option;
135
- }
136
- }
137
- break;
138
-
139
- case 'Left':
140
- case 'ArrowLeft':
141
- this.activeOption = null;
142
-
143
- var parentList = event.currentTarget.parentElement.parentElement.previousElementSibling;
144
- if (parentList) {
145
- parentList.focus();
146
- }
147
- break;
148
-
149
- case 'Enter':
150
- this.onOptionClick(event, option);
151
- break;
152
- }
153
-
154
- event.preventDefault();
70
+ onOptionClick(event, processedOption) {
71
+ this.$emit('option-change', { originalEvent: event, processedOption, isFocus: true });
72
+ },
73
+ onOptionChange(event) {
74
+ this.$emit('option-change', event);
155
75
  },
156
76
  position() {
157
77
  const parentItem = this.$el.parentElement;
@@ -170,19 +90,17 @@ var script$1 = {
170
90
  }
171
91
  };
172
92
 
173
- const _hoisted_1$1 = {
174
- class: "p-cascadeselect-panel p-cascadeselect-items",
175
- role: "listbox",
176
- "aria-orientation": "horizontal"
177
- };
178
- const _hoisted_2$1 = ["onClick", "onKeydown"];
179
- const _hoisted_3$1 = {
93
+ const _hoisted_1$1 = { class: "p-cascadeselect-panel p-cascadeselect-items" };
94
+ const _hoisted_2$1 = ["id", "aria-label", "aria-selected", "aria-expanded", "aria-setsize", "aria-posinset", "aria-level"];
95
+ const _hoisted_3$1 = ["onClick"];
96
+ const _hoisted_4$1 = {
180
97
  key: 1,
181
98
  class: "p-cascadeselect-item-text"
182
99
  };
183
- const _hoisted_4$1 = {
100
+ const _hoisted_5$1 = {
184
101
  key: 2,
185
- class: "p-cascadeselect-group-icon pi pi-angle-right"
102
+ class: "p-cascadeselect-group-icon pi pi-angle-right",
103
+ "aria-hidden": "true"
186
104
  };
187
105
 
188
106
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
@@ -190,49 +108,55 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
190
108
  const _directive_ripple = vue.resolveDirective("ripple");
191
109
 
192
110
  return (vue.openBlock(), vue.createElementBlock("ul", _hoisted_1$1, [
193
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.options, (option, i) => {
111
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.options, (processedOption, index) => {
194
112
  return (vue.openBlock(), vue.createElementBlock("li", {
195
- key: $options.getOptionLabelToRender(option),
196
- class: vue.normalizeClass($options.getItemClass(option)),
197
- role: "none"
113
+ key: $options.getOptionLabelToRender(processedOption),
114
+ id: $options.getOptionId(processedOption),
115
+ class: vue.normalizeClass(['p-cascadeselect-item', {'p-cascadeselect-item-group': $options.isOptionGroup(processedOption), 'p-cascadeselect-item-active p-highlight': $options.isOptionActive(processedOption), 'p-focus': $options.isOptionFocused(processedOption), 'p-disabled': $options.isOptionDisabled(processedOption)}]),
116
+ role: "treeitem",
117
+ "aria-label": $options.getOptionLabelToRender(processedOption),
118
+ "aria-selected": $options.isOptionGroup(processedOption) ? undefined : $options.isOptionSelected(processedOption),
119
+ "aria-expanded": $options.isOptionGroup(processedOption) ? $options.isOptionActive(processedOption) : undefined,
120
+ "aria-setsize": processedOption.length,
121
+ "aria-posinset": index + 1,
122
+ "aria-level": $props.level + 1
198
123
  }, [
199
124
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
200
125
  class: "p-cascadeselect-item-content",
201
- onClick: $event => ($options.onOptionClick($event, option)),
202
- tabindex: "0",
203
- onKeydown: $event => ($options.onKeyDown($event, option, i))
126
+ onClick: $event => ($options.onOptionClick($event, processedOption))
204
127
  }, [
205
128
  ($props.templates['option'])
206
129
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['option']), {
207
130
  key: 0,
208
- option: option
131
+ option: processedOption.option
209
132
  }, null, 8, ["option"]))
210
- : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1, vue.toDisplayString($options.getOptionLabelToRender(option)), 1)),
211
- ($options.isOptionGroup(option))
212
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$1))
133
+ : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$1, vue.toDisplayString($options.getOptionLabelToRender(processedOption)), 1)),
134
+ ($options.isOptionGroup(processedOption))
135
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$1))
213
136
  : vue.createCommentVNode("", true)
214
- ], 40, _hoisted_2$1)), [
137
+ ], 8, _hoisted_3$1)), [
215
138
  [_directive_ripple]
216
139
  ]),
217
- ($options.isOptionGroup(option) && $options.isOptionActive(option))
140
+ ($options.isOptionGroup(processedOption) && $options.isOptionActive(processedOption))
218
141
  ? (vue.openBlock(), vue.createBlock(_component_CascadeSelectSub, {
219
142
  key: 0,
143
+ role: "group",
220
144
  class: "p-cascadeselect-sublist",
221
- selectionPath: $props.selectionPath,
222
- options: $options.getOptionGroupChildren(option),
145
+ selectId: $props.selectId,
146
+ focusedOptionId: $props.focusedOptionId,
147
+ options: $options.getOptionGroupChildren(processedOption),
148
+ activeOptionPath: $props.activeOptionPath,
149
+ level: $props.level + 1,
150
+ templates: $props.templates,
223
151
  optionLabel: $props.optionLabel,
224
152
  optionValue: $props.optionValue,
225
- level: $props.level + 1,
226
- onOptionSelect: $options.onOptionSelect,
227
- onOptiongroupSelect: $options.onOptionGroupSelect,
153
+ optionDisabled: $props.optionDisabled,
228
154
  optionGroupLabel: $props.optionGroupLabel,
229
155
  optionGroupChildren: $props.optionGroupChildren,
230
- parentActive: $options.isOptionActive(option),
231
- dirty: $props.dirty,
232
- templates: $props.templates
233
- }, null, 8, ["selectionPath", "options", "optionLabel", "optionValue", "level", "onOptionSelect", "onOptiongroupSelect", "optionGroupLabel", "optionGroupChildren", "parentActive", "dirty", "templates"]))
156
+ onOptionChange: $options.onOptionChange
157
+ }, null, 8, ["selectId", "focusedOptionId", "options", "activeOptionPath", "level", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "onOptionChange"]))
234
158
  : vue.createCommentVNode("", true)
235
- ], 2))
159
+ ], 10, _hoisted_2$1))
236
160
  }), 128))
237
161
  ]))
238
162
  }
@@ -241,33 +165,29 @@ script$1.render = render$1;
241
165
 
242
166
  var script = {
243
167
  name: 'CascadeSelect',
244
- emits: ['update:modelValue','change','group-change', 'before-show','before-hide','hide','show'],
245
- data() {
246
- return {
247
- selectionPath: null,
248
- focused: false,
249
- overlayVisible: false,
250
- dirty: false
251
- };
252
- },
168
+ emits: ['update:modelValue', 'change', 'focus', 'blur', 'click', 'group-change', 'before-show', 'before-hide', 'hide', 'show'],
253
169
  props: {
254
170
  modelValue: null,
255
171
  options: Array,
256
- optionLabel: String,
257
- optionValue: String,
258
- optionGroupLabel: String,
259
- optionGroupChildren: Array,
172
+ optionLabel: null,
173
+ optionValue: null,
174
+ optionDisabled: null,
175
+ optionGroupLabel: null,
176
+ optionGroupChildren: null,
260
177
  placeholder: String,
261
178
  disabled: Boolean,
262
179
  dataKey: null,
263
- inputId: String,
264
- tabindex: String,
265
- ariaLabelledBy: null,
180
+ inputId: null,
181
+ inputStyle: null,
182
+ inputClass: null,
183
+ inputProps: null,
184
+ panelStyle: null,
185
+ panelClass: null,
186
+ panelProps: null,
266
187
  appendTo: {
267
188
  type: String,
268
189
  default: 'body'
269
190
  },
270
- panelClass: null,
271
191
  loading: {
272
192
  type: Boolean,
273
193
  default: false
@@ -275,12 +195,74 @@ var script = {
275
195
  loadingIcon: {
276
196
  type: String,
277
197
  default: 'pi pi-spinner pi-spin'
198
+ },
199
+ autoOptionFocus: {
200
+ type: Boolean,
201
+ default: true
202
+ },
203
+ searchLocale: {
204
+ type: String,
205
+ default: undefined
206
+ },
207
+ searchMessage: {
208
+ type: String,
209
+ default: null
210
+ },
211
+ selectionMessage: {
212
+ type: String,
213
+ default: null
214
+ },
215
+ emptySelectionMessage: {
216
+ type: String,
217
+ default: null
218
+ },
219
+ emptySearchMessage: {
220
+ type: String,
221
+ default: null
222
+ },
223
+ emptyMessage: {
224
+ type: String,
225
+ default: null
226
+ },
227
+ tabindex: {
228
+ type: Number,
229
+ default: 0
230
+ },
231
+ 'aria-labelledby': {
232
+ type: String,
233
+ default: null
234
+ },
235
+ 'aria-label': {
236
+ type: String,
237
+ default: null
278
238
  }
279
239
  },
280
240
  outsideClickListener: null,
281
241
  scrollHandler: null,
282
242
  resizeListener: null,
283
243
  overlay: null,
244
+ searchTimeout: null,
245
+ searchValue: null,
246
+ selectOnFocus: false,
247
+ focusOnHover: false,
248
+ data() {
249
+ return {
250
+ id: utils.UniqueComponentId(),
251
+ focused: false,
252
+ focusedOptionInfo: { index: -1, level: 0, parentKey: '' },
253
+ activeOptionPath: [],
254
+ overlayVisible: false,
255
+ dirty: false
256
+ }
257
+ },
258
+ watch: {
259
+ options() {
260
+ this.autoUpdateModel();
261
+ }
262
+ },
263
+ mounted() {
264
+ this.id = this.$attrs.id || this.id;
265
+ },
284
266
  beforeUnmount() {
285
267
  this.unbindOutsideClickListener();
286
268
  this.unbindResizeListener();
@@ -295,107 +277,314 @@ var script = {
295
277
  this.overlay = null;
296
278
  }
297
279
  },
298
- mounted() {
299
- this.updateSelectionPath();
300
- },
301
- watch: {
302
- modelValue() {
303
- this.updateSelectionPath();
304
- }
305
- },
306
280
  methods: {
307
- onOptionSelect(event) {
308
- this.$emit('update:modelValue', event.value);
309
- this.$emit('change', event);
310
- this.hide();
311
- this.$refs.focusInput.focus();
312
- },
313
- onOptionGroupSelect(event) {
314
- this.dirty = true;
315
- this.$emit('group-change', event);
316
- },
317
281
  getOptionLabel(option) {
318
282
  return this.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
319
283
  },
320
284
  getOptionValue(option) {
321
285
  return this.optionValue ? utils.ObjectUtils.resolveFieldData(option, this.optionValue) : option;
322
286
  },
287
+ isOptionDisabled(option) {
288
+ return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
289
+ },
290
+ getOptionGroupLabel(optionGroup) {
291
+ return this.optionGroupLabel ? utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel) : null;
292
+ },
323
293
  getOptionGroupChildren(optionGroup, level) {
324
294
  return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren[level]);
325
295
  },
326
296
  isOptionGroup(option, level) {
327
297
  return Object.prototype.hasOwnProperty.call(option, this.optionGroupChildren[level]);
328
298
  },
329
- updateSelectionPath() {
330
- let path;
331
- if (this.modelValue != null && this.options) {
332
- for (let option of this.options) {
333
- path = this.findModelOptionInGroup(option, 0);
334
- if (path) {
335
- break;
336
- }
337
- }
338
- }
339
-
340
- this.selectionPath = path;
299
+ getProccessedOptionLabel(processedOption) {
300
+ const grouped = this.isProccessedOptionGroup(processedOption);
301
+ return grouped ? this.getOptionGroupLabel(processedOption.option, processedOption.level) : this.getOptionLabel(processedOption.option);
341
302
  },
342
- findModelOptionInGroup(option, level) {
343
- if (this.isOptionGroup(option, level)) {
344
- let selectedOption;
345
- for (let childOption of this.getOptionGroupChildren(option, level)) {
346
- selectedOption = this.findModelOptionInGroup(childOption, level + 1);
347
- if (selectedOption) {
348
- selectedOption.unshift(option);
349
- return selectedOption;
350
- }
351
- }
352
- }
353
- else if ((utils.ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.dataKey))) {
354
- return [option];
355
- }
356
-
357
- return null;
303
+ isProccessedOptionGroup(processedOption) {
304
+ return utils.ObjectUtils.isNotEmpty(processedOption.children);
358
305
  },
359
- show() {
306
+ show(isFocus) {
360
307
  this.$emit('before-show');
361
308
  this.overlayVisible = true;
309
+ this.activeOptionPath = this.findOptionPathByValue(this.modelValue);
310
+
311
+ if (this.hasSelectedOption && utils.ObjectUtils.isNotEmpty(this.activeOptionPath)) {
312
+ const processedOption = this.activeOptionPath[this.activeOptionPath.length - 1];
313
+ this.focusedOptionInfo = { index: (this.autoOptionFocus ? processedOption.index : -1), level: processedOption.level, parentKey: processedOption.parentKey };
314
+ }
315
+ else {
316
+ this.focusedOptionInfo = { index: (this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1), level: 0, parentKey: '' };
317
+ }
318
+
319
+ isFocus && this.$refs.focusInput.focus();
362
320
  },
363
- hide() {
364
- this.$emit('before-hide');
365
- this.overlayVisible = false;
321
+ hide(isFocus) {
322
+ const _hide = () => {
323
+ this.$emit('before-hide');
324
+ this.overlayVisible = false;
325
+ this.activeOptionPath = [];
326
+ this.focusedOptionInfo = { index: -1, level: 0, parentKey: '' };
327
+
328
+ isFocus && this.$refs.focusInput.focus();
329
+ };
330
+
331
+ setTimeout(() => { _hide(); }, 0); // For ScreenReaders
366
332
  },
367
- onFocus() {
333
+ onFocus(event) {
368
334
  this.focused = true;
335
+ this.$emit('focus', event);
369
336
  },
370
- onBlur() {
337
+ onBlur(event) {
371
338
  this.focused = false;
339
+ this.focusedOptionInfo = { index: -1, level: 0, parentKey: '' };
340
+ this.searchValue = '';
341
+ this.$emit('blur', event);
372
342
  },
373
- onClick(event) {
343
+ onKeyDown(event) {
374
344
  if (this.disabled || this.loading) {
345
+ event.preventDefault();
375
346
  return;
376
347
  }
377
348
 
378
- if (!this.overlay || !this.overlay.contains(event.target)) {
379
- if (this.overlayVisible)
380
- this.hide();
381
- else
382
- this.show();
349
+ switch (event.code) {
350
+ case 'ArrowDown':
351
+ this.onArrowDownKey(event);
352
+ break;
353
+
354
+ case 'ArrowUp':
355
+ this.onArrowUpKey(event);
356
+ break;
357
+
358
+ case 'ArrowLeft':
359
+ this.onArrowLeftKey(event);
360
+ break;
361
+
362
+ case 'ArrowRight':
363
+ this.onArrowRightKey(event);
364
+ break;
365
+
366
+ case 'Home':
367
+ this.onHomeKey(event);
368
+ break;
369
+
370
+ case 'End':
371
+ this.onEndKey(event);
372
+ break;
373
+
374
+ case 'Space':
375
+ this.onSpaceKey(event);
376
+ break;
377
+
378
+ case 'Enter':
379
+ this.onEnterKey(event);
380
+ break;
381
+
382
+ case 'Escape':
383
+ this.onEscapeKey(event);
384
+ break;
385
+
386
+ case 'Tab':
387
+ this.onTabKey(event);
388
+ break;
389
+
390
+ case 'PageDown':
391
+ case 'PageUp':
392
+ case 'Backspace':
393
+ case 'ShiftLeft':
394
+ case 'ShiftRight':
395
+ //NOOP
396
+ break;
397
+
398
+ default:
399
+ if (utils.ObjectUtils.isPrintableCharacter(event.key)) {
400
+ !this.overlayVisible && this.show();
401
+ this.searchOptions(event, event.key);
402
+ }
403
+
404
+ break;
405
+ }
406
+ },
407
+ onOptionChange(event) {
408
+ const { originalEvent, processedOption, isFocus } = event;
409
+ const { index, level, parentKey, children } = processedOption;
410
+ const grouped = utils.ObjectUtils.isNotEmpty(children);
411
+
412
+ const activeOptionPath = this.activeOptionPath.filter(p => p.parentKey !== parentKey);
413
+ activeOptionPath.push(processedOption);
414
+
415
+ this.focusedOptionInfo = { index, level, parentKey };
416
+ this.activeOptionPath = activeOptionPath;
417
+
418
+ grouped ? this.onOptionGroupSelect(originalEvent, processedOption) : this.onOptionSelect(originalEvent, processedOption);
419
+ isFocus && this.$refs.focusInput.focus();
420
+ },
421
+ onOptionSelect(event, processedOption) {
422
+ const value = this.getOptionValue(processedOption.option);
423
+
424
+ this.activeOptionPath.forEach(p => p.selected = true);
425
+ this.updateModel(event, value);
426
+ this.hide(true);
427
+ },
428
+ onOptionGroupSelect(event, processedOption) {
429
+ this.dirty = true;
430
+ this.$emit('group-change', { originalEvent: event, value: processedOption.option });
431
+ },
432
+ onContainerClick(event) {
433
+ if (this.disabled || this.loading) {
434
+ return;
435
+ }
383
436
 
437
+ if (!this.overlay || !this.overlay.contains(event.target)) {
438
+ this.overlayVisible ? this.hide() : this.show();
384
439
  this.$refs.focusInput.focus();
385
440
  }
441
+
442
+ this.$emit('click', event);
443
+ },
444
+ onOverlayClick(event) {
445
+ OverlayEventBus__default["default"].emit('overlay-click', {
446
+ originalEvent: event,
447
+ target: this.$el
448
+ });
449
+ },
450
+ onOverlayKeyDown(event) {
451
+ switch (event.code) {
452
+ case 'Escape':
453
+ this.onEscapeKey(event);
454
+ break;
455
+ }
456
+ },
457
+ onArrowDownKey(event) {
458
+ const optionIndex = this.focusedOptionInfo.index !== -1 ? this.findNextOptionIndex(this.focusedOptionInfo.index) : this.findFirstFocusedOptionIndex();
459
+
460
+ this.changeFocusedOptionIndex(event, optionIndex);
461
+
462
+ !this.overlayVisible && this.show();
463
+ event.preventDefault();
464
+ },
465
+ onArrowUpKey(event) {
466
+ if (event.altKey) {
467
+ if (this.focusedOptionInfo.index !== -1) {
468
+ const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
469
+ const grouped = this.isProccessedOptionGroup(processedOption);
470
+ !grouped && this.onOptionChange({ originalEvent: event, processedOption });
471
+ }
472
+
473
+ this.overlayVisible && this.hide();
474
+ event.preventDefault();
475
+ }
476
+ else {
477
+ const optionIndex = this.focusedOptionInfo.index !== -1 ? this.findPrevOptionIndex(this.focusedOptionInfo.index) : this.findLastFocusedOptionIndex();
478
+
479
+ this.changeFocusedOptionIndex(event, optionIndex);
480
+
481
+ !this.overlayVisible && this.show();
482
+ event.preventDefault();
483
+ }
484
+ },
485
+ onArrowLeftKey(event) {
486
+ if (this.overlayVisible) {
487
+ const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
488
+ const parentOption = this.activeOptionPath.find(p => p.key === processedOption.parentKey);
489
+ const matched = this.focusedOptionInfo.parentKey === '' || (parentOption && parentOption.key === this.focusedOptionInfo.parentKey);
490
+ const root = utils.ObjectUtils.isEmpty(processedOption.parent);
491
+
492
+ if (matched) {
493
+ this.activeOptionPath = this.activeOptionPath.filter(p => p.parentKey !== this.focusedOptionInfo.parentKey);
494
+ }
495
+
496
+ if (!root) {
497
+ this.focusedOptionInfo = { index: -1, parentKey: parentOption ? parentOption.parentKey : '' };
498
+ this.searchValue = '';
499
+ this.onArrowDownKey(event);
500
+ }
501
+
502
+ event.preventDefault();
503
+ }
504
+ },
505
+ onArrowRightKey(event) {
506
+ if (this.overlayVisible) {
507
+ const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
508
+ const grouped = this.isProccessedOptionGroup(processedOption);
509
+
510
+ if (grouped) {
511
+ const matched = this.activeOptionPath.some(p => processedOption.key === p.key);
512
+
513
+ if (matched) {
514
+ this.focusedOptionInfo = { index: -1, parentKey: processedOption.key };
515
+ this.searchValue = '';
516
+ this.onArrowDownKey(event);
517
+ }
518
+ else {
519
+ this.onOptionChange({ originalEvent: event, processedOption });
520
+ }
521
+ }
522
+
523
+ event.preventDefault();
524
+ }
525
+ },
526
+ onHomeKey(event) {
527
+ this.changeFocusedOptionIndex(event, this.findFirstOptionIndex());
528
+
529
+ !this.overlayVisible && this.show();
530
+ event.preventDefault();
531
+ },
532
+ onEndKey(event) {
533
+ this.changeFocusedOptionIndex(event, this.findLastOptionIndex());
534
+
535
+ !this.overlayVisible && this.show();
536
+ event.preventDefault();
537
+ },
538
+ onEnterKey(event) {
539
+ if (!this.overlayVisible) {
540
+ this.onArrowDownKey(event);
541
+ }
542
+ else {
543
+ if (this.focusedOptionInfo.index !== -1) {
544
+ const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
545
+ const grouped = this.isProccessedOptionGroup(processedOption);
546
+
547
+ this.onOptionChange({ originalEvent: event, processedOption });
548
+ !grouped && this.hide();
549
+ }
550
+ }
551
+
552
+ event.preventDefault();
553
+ },
554
+ onSpaceKey(event) {
555
+ this.onEnterKey(event);
556
+ },
557
+ onEscapeKey(event) {
558
+ this.overlayVisible && this.hide(true);
559
+ event.preventDefault();
560
+ },
561
+ onTabKey(event) {
562
+ if (this.focusedOptionInfo.index !== -1) {
563
+ const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
564
+ const grouped = this.isProccessedOptionGroup(processedOption);
565
+
566
+ !grouped && this.onOptionChange({ originalEvent: event, processedOption });
567
+ }
568
+
569
+ this.overlayVisible && this.hide();
386
570
  },
387
571
  onOverlayEnter(el) {
388
572
  utils.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
389
573
  this.alignOverlay();
574
+ this.scrollInView();
575
+ },
576
+ onOverlayAfterEnter() {
390
577
  this.bindOutsideClickListener();
391
578
  this.bindScrollListener();
392
579
  this.bindResizeListener();
580
+
393
581
  this.$emit('show');
394
582
  },
395
583
  onOverlayLeave() {
396
584
  this.unbindOutsideClickListener();
397
585
  this.unbindScrollListener();
398
586
  this.unbindResizeListener();
587
+
399
588
  this.$emit('hide');
400
589
  this.overlay = null;
401
590
  this.dirty = false;
@@ -460,67 +649,168 @@ var script = {
460
649
  this.resizeListener = null;
461
650
  }
462
651
  },
463
- overlayRef(el) {
464
- this.overlay = el;
652
+ isOptionMatched(processedOption) {
653
+ return this.isValidOption(processedOption) && this.getProccessedOptionLabel(processedOption).toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale));
465
654
  },
466
- onKeyDown(event) {
467
- switch(event.key) {
468
- case 'Down':
469
- case 'ArrowDown':
470
- if (this.overlayVisible) {
471
- utils.DomHandler.findSingle(this.overlay, '.p-cascadeselect-item').children[0].focus();
472
- }
473
- else if (event.altKey && this.options && this.options.length) {
474
- this.show();
475
- }
476
- event.preventDefault();
477
- break;
655
+ isValidOption(processedOption) {
656
+ return !!processedOption && !this.isOptionDisabled(processedOption.option);
657
+ },
658
+ isValidSelectedOption(processedOption) {
659
+ return this.isValidOption(processedOption) && this.isSelected(processedOption);
660
+ },
661
+ isSelected(processedOption) {
662
+ return this.activeOptionPath.some(p => p.key === processedOption.key);
663
+ },
664
+ findFirstOptionIndex() {
665
+ return this.visibleOptions.findIndex(processedOption => this.isValidOption(processedOption));
666
+ },
667
+ findLastOptionIndex() {
668
+ return utils.ObjectUtils.findLastIndex(this.visibleOptions, processedOption => this.isValidOption(processedOption));
669
+ },
670
+ findNextOptionIndex(index) {
671
+ const matchedOptionIndex = index < (this.visibleOptions.length - 1) ? this.visibleOptions.slice(index + 1).findIndex(processedOption => this.isValidOption(processedOption)) : -1;
672
+ return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
673
+ },
674
+ findPrevOptionIndex(index) {
675
+ const matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), processedOption => this.isValidOption(processedOption)) : -1;
676
+ return matchedOptionIndex > -1 ? matchedOptionIndex : index;
677
+ },
678
+ findSelectedOptionIndex() {
679
+ return this.visibleOptions.findIndex(processedOption => this.isValidSelectedOption(processedOption));
680
+ },
681
+ findFirstFocusedOptionIndex() {
682
+ const selectedIndex = this.findSelectedOptionIndex();
683
+ return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
684
+ },
685
+ findLastFocusedOptionIndex() {
686
+ const selectedIndex = this.findSelectedOptionIndex();
687
+ return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
688
+ },
689
+ findOptionPathByValue(value, processedOptions, level = 0) {
690
+ processedOptions = processedOptions || (level === 0 && this.processedOptions);
478
691
 
479
- case 'Escape':
480
- if (this.overlayVisible) {
481
- this.hide();
482
- event.preventDefault();
483
- }
484
- break;
692
+ if (!processedOptions) return null;
693
+ if (utils.ObjectUtils.isEmpty(value)) return [];
485
694
 
486
- case 'Tab':
487
- this.hide();
488
- break;
695
+ for (let i = 0; i < processedOptions.length; i++) {
696
+ const processedOption = processedOptions[i];
697
+
698
+ if (utils.ObjectUtils.equals(value, this.getOptionValue(processedOption.option), this.equalityKey)) {
699
+ return [processedOption];
700
+ }
701
+
702
+ const matchedOptions = this.findOptionPathByValue(value, processedOption.children, level + 1);
703
+ if (matchedOptions) {
704
+ matchedOptions.unshift(processedOption);
705
+
706
+ return matchedOptions;
707
+ }
489
708
  }
490
709
  },
491
- onOverlayClick(event) {
492
- OverlayEventBus__default["default"].emit('overlay-click', {
493
- originalEvent: event,
494
- target: this.$el
710
+ searchOptions(event, char) {
711
+ this.searchValue = (this.searchValue || '') + char;
712
+
713
+ let optionIndex = -1;
714
+ let matched = false;
715
+
716
+ if (this.focusedOptionInfo.index !== -1) {
717
+ optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex(processedOption => this.isOptionMatched(processedOption));
718
+ optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex(processedOption => this.isOptionMatched(processedOption)) : optionIndex + this.focusedOptionInfo.index;
719
+ }
720
+ else {
721
+ optionIndex = this.visibleOptions.findIndex(processedOption => this.isOptionMatched(processedOption));
722
+ }
723
+
724
+ if (optionIndex !== -1) {
725
+ matched = true;
726
+ }
727
+
728
+ if (optionIndex === -1 && this.focusedOptionInfo.index === -1) {
729
+ optionIndex = this.findFirstFocusedOptionIndex();
730
+ }
731
+
732
+ if (optionIndex !== -1) {
733
+ this.changeFocusedOptionIndex(event, optionIndex);
734
+ }
735
+
736
+ if (this.searchTimeout) {
737
+ clearTimeout(this.searchTimeout);
738
+ }
739
+
740
+ this.searchTimeout = setTimeout(() => {
741
+ this.searchValue = '';
742
+ this.searchTimeout = null;
743
+ }, 500);
744
+
745
+ return matched;
746
+ },
747
+ changeFocusedOptionIndex(event, index) {
748
+ if (this.focusedOptionInfo.index !== index) {
749
+ this.focusedOptionInfo.index = index;
750
+ this.scrollInView();
751
+
752
+ if (this.selectOnFocus) {
753
+ this.updateModel(event, this.getOptionValue(this.visibleOptions[index]));
754
+ }
755
+ }
756
+ },
757
+ scrollInView(index = -1) {
758
+ const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
759
+ const element = utils.DomHandler.findSingle(this.list, `li[id="${id}"]`);
760
+ if (element) {
761
+ element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
762
+ }
763
+ },
764
+ autoUpdateModel() {
765
+ if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
766
+ this.focusedOptionInfo.index = this.findFirstFocusedOptionIndex();
767
+ const value = this.getOptionValue(this.visibleOptions[this.focusedOptionInfo.index]);
768
+ this.updateModel(null, value);
769
+ }
770
+ },
771
+ updateModel(event, value) {
772
+ this.$emit('update:modelValue', value);
773
+ this.$emit('change', { originalEvent: event, value });
774
+ },
775
+ createProcessedOptions(options, level = 0, parent = {}, parentKey = '') {
776
+ const processedOptions = [];
777
+
778
+ options && options.forEach((option, index) => {
779
+ const key = (parentKey !== '' ? parentKey + '_' : '') + index;
780
+ const newOption = {
781
+ option,
782
+ index,
783
+ level,
784
+ key,
785
+ parent,
786
+ parentKey
787
+ };
788
+
789
+ newOption['children'] = this.createProcessedOptions(this.getOptionGroupChildren(option, level), level + 1, newOption, key);
790
+ processedOptions.push(newOption);
495
791
  });
792
+
793
+ return processedOptions;
794
+ },
795
+ overlayRef(el) {
796
+ this.overlay = el;
496
797
  }
497
798
  },
498
799
  computed: {
499
800
  containerClass() {
500
- return [
501
- 'p-cascadeselect p-component p-inputwrapper',
502
- {
503
- 'p-disabled': this.disabled,
504
- 'p-focus': this.focused,
505
- 'p-inputwrapper-filled': this.modelValue,
506
- 'p-inputwrapper-focus': this.focused || this.overlayVisible
507
- }
508
- ];
801
+ return ['p-cascadeselect p-component p-inputwrapper', {
802
+ 'p-disabled': this.disabled,
803
+ 'p-focus': this.focused,
804
+ 'p-inputwrapper-filled': this.modelValue,
805
+ 'p-inputwrapper-focus': this.focused || this.overlayVisible,
806
+ 'p-overlay-open': this.overlayVisible
807
+ }];
509
808
  },
510
809
  labelClass() {
511
- return [
512
- 'p-cascadeselect-label',
513
- {
514
- 'p-placeholder': this.label === this.placeholder,
515
- 'p-cascadeselect-label-empty': !this.$slots['value'] && (this.label === 'p-emptylabel' || this.label.length === 0)
516
- }
517
- ];
518
- },
519
- label() {
520
- if (this.selectionPath)
521
- return this.getOptionLabel(this.selectionPath[this.selectionPath.length - 1]);
522
- else
523
- return this.placeholder||'p-emptylabel';
810
+ return ['p-cascadeselect-label', {
811
+ 'p-placeholder': this.label === this.placeholder,
812
+ 'p-cascadeselect-label-empty': !this.$slots['value'] && (this.label === 'p-emptylabel' || this.label.length === 0)
813
+ }];
524
814
  },
525
815
  panelStyleClass() {
526
816
  return ['p-cascadeselect-panel p-component', this.panelClass, {
@@ -530,6 +820,55 @@ var script = {
530
820
  },
531
821
  dropdownIconClass() {
532
822
  return ['p-cascadeselect-trigger-icon', this.loading ? this.loadingIcon : 'pi pi-chevron-down'];
823
+ },
824
+ hasSelectedOption() {
825
+ return utils.ObjectUtils.isNotEmpty(this.modelValue);
826
+ },
827
+ label() {
828
+ const label = this.placeholder || 'p-emptylabel';
829
+
830
+ if (this.hasSelectedOption) {
831
+ const activeOptionPath = this.findOptionPathByValue(this.modelValue);
832
+ const processedOption = activeOptionPath.length ? activeOptionPath[activeOptionPath.length - 1] : null;
833
+
834
+ return processedOption ? this.getOptionLabel(processedOption.option) : label;
835
+ }
836
+
837
+ return label;
838
+ },
839
+ processedOptions() {
840
+ return this.createProcessedOptions(this.options || []);
841
+ },
842
+ visibleOptions() {
843
+ const processedOption = this.activeOptionPath.find(p => p.key === this.focusedOptionInfo.parentKey);
844
+ return processedOption ? processedOption.children : this.processedOptions;
845
+ },
846
+ equalityKey() {
847
+ return this.optionValue ? null : this.dataKey;
848
+ },
849
+ searchResultMessageText() {
850
+ return utils.ObjectUtils.isNotEmpty(this.visibleOptions) ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
851
+ },
852
+ searchMessageText() {
853
+ return this.searchMessage || this.$primevue.config.locale.searchMessage || '';
854
+ },
855
+ emptySearchMessageText() {
856
+ return this.emptySearchMessage || this.$primevue.config.locale.emptySearchMessage || '';
857
+ },
858
+ emptyMessageText() {
859
+ return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
860
+ },
861
+ selectionMessageText() {
862
+ return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
863
+ },
864
+ emptySelectionMessageText() {
865
+ return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
866
+ },
867
+ selectedMessageText() {
868
+ return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', '1') : this.emptySelectionMessageText;
869
+ },
870
+ focusedOptionId() {
871
+ return this.focusedOptionInfo.index !== -1 ? `${this.id}${utils.ObjectUtils.isNotEmpty(this.focusedOptionInfo.parentKey) ? '_' + this.focusedOptionInfo.parentKey : ''}_${this.focusedOptionInfo.index}` : null;
533
872
  }
534
873
  },
535
874
  components: {
@@ -539,9 +878,24 @@ var script = {
539
878
  };
540
879
 
541
880
  const _hoisted_1 = { class: "p-hidden-accessible" };
542
- const _hoisted_2 = ["id", "disabled", "tabindex", "aria-expanded", "aria-labelledby"];
543
- const _hoisted_3 = ["aria-expanded"];
544
- const _hoisted_4 = { class: "p-cascadeselect-items-wrapper" };
881
+ const _hoisted_2 = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
882
+ const _hoisted_3 = {
883
+ class: "p-cascadeselect-trigger",
884
+ role: "button",
885
+ tabindex: "-1",
886
+ "aria-hidden": "true"
887
+ };
888
+ const _hoisted_4 = {
889
+ role: "status",
890
+ "aria-live": "polite",
891
+ class: "p-hidden-accessible"
892
+ };
893
+ const _hoisted_5 = { class: "p-cascadeselect-items-wrapper" };
894
+ const _hoisted_6 = {
895
+ role: "status",
896
+ "aria-live": "polite",
897
+ class: "p-hidden-accessible"
898
+ };
545
899
 
546
900
  function render(_ctx, _cache, $props, $setup, $data, $options) {
547
901
  const _component_CascadeSelectSub = vue.resolveComponent("CascadeSelectSub");
@@ -550,23 +904,30 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
550
904
  return (vue.openBlock(), vue.createElementBlock("div", {
551
905
  ref: "container",
552
906
  class: vue.normalizeClass($options.containerClass),
553
- onClick: _cache[4] || (_cache[4] = $event => ($options.onClick($event)))
907
+ onClick: _cache[5] || (_cache[5] = $event => ($options.onContainerClick($event)))
554
908
  }, [
555
909
  vue.createElementVNode("div", _hoisted_1, [
556
- vue.createElementVNode("input", {
910
+ vue.createElementVNode("input", vue.mergeProps({
557
911
  ref: "focusInput",
558
- type: "text",
559
912
  id: $props.inputId,
913
+ type: "text",
914
+ style: $props.inputStyle,
915
+ class: $props.inputClass,
560
916
  readonly: "",
561
917
  disabled: $props.disabled,
918
+ placeholder: $props.placeholder,
919
+ tabindex: !$props.disabled ? $props.tabindex : -1,
920
+ role: "combobox",
921
+ "aria-label": _ctx.ariaLabel,
922
+ "aria-labelledby": _ctx.ariaLabelledby,
923
+ "aria-haspopup": "tree",
924
+ "aria-expanded": $data.overlayVisible,
925
+ "aria-controls": $data.id + '_tree',
926
+ "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
562
927
  onFocus: _cache[0] || (_cache[0] = (...args) => ($options.onFocus && $options.onFocus(...args))),
563
928
  onBlur: _cache[1] || (_cache[1] = (...args) => ($options.onBlur && $options.onBlur(...args))),
564
- onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
565
- tabindex: $props.tabindex,
566
- "aria-haspopup": "listbox",
567
- "aria-expanded": $data.overlayVisible,
568
- "aria-labelledby": $props.ariaLabelledBy
569
- }, null, 40, _hoisted_2)
929
+ onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args)))
930
+ }, $props.inputProps), null, 16, _hoisted_2)
570
931
  ]),
571
932
  vue.createElementVNode("span", {
572
933
  class: vue.normalizeClass($options.labelClass)
@@ -578,55 +939,58 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
578
939
  vue.createTextVNode(vue.toDisplayString($options.label), 1)
579
940
  ])
580
941
  ], 2),
581
- vue.createElementVNode("div", {
582
- class: "p-cascadeselect-trigger",
583
- role: "button",
584
- "aria-haspopup": "listbox",
585
- "aria-expanded": $data.overlayVisible
586
- }, [
942
+ vue.createElementVNode("div", _hoisted_3, [
587
943
  vue.renderSlot(_ctx.$slots, "indicator", {}, () => [
588
944
  vue.createElementVNode("span", {
589
945
  class: vue.normalizeClass($options.dropdownIconClass)
590
946
  }, null, 2)
591
947
  ])
592
- ], 8, _hoisted_3),
948
+ ]),
949
+ vue.createElementVNode("span", _hoisted_4, vue.toDisplayString($options.searchResultMessageText), 1),
593
950
  vue.createVNode(_component_Portal, { appendTo: $props.appendTo }, {
594
951
  default: vue.withCtx(() => [
595
952
  vue.createVNode(vue.Transition, {
596
953
  name: "p-connected-overlay",
597
954
  onEnter: $options.onOverlayEnter,
955
+ onAfterEnter: $options.onOverlayAfterEnter,
598
956
  onLeave: $options.onOverlayLeave,
599
957
  onAfterLeave: $options.onOverlayAfterLeave
600
958
  }, {
601
959
  default: vue.withCtx(() => [
602
960
  ($data.overlayVisible)
603
- ? (vue.openBlock(), vue.createElementBlock("div", {
961
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
604
962
  key: 0,
605
963
  ref: $options.overlayRef,
606
- class: vue.normalizeClass($options.panelStyleClass),
607
- onClick: _cache[3] || (_cache[3] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
608
- }, [
609
- vue.createElementVNode("div", _hoisted_4, [
964
+ style: $props.panelStyle,
965
+ class: $options.panelStyleClass,
966
+ onClick: _cache[3] || (_cache[3] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
967
+ onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onOverlayKeyDown && $options.onOverlayKeyDown(...args)))
968
+ }, $props.panelProps), [
969
+ vue.createElementVNode("div", _hoisted_5, [
610
970
  vue.createVNode(_component_CascadeSelectSub, {
611
- options: $props.options,
612
- selectionPath: $data.selectionPath,
613
- optionLabel: $props.optionLabel,
614
- optionValue: $props.optionValue,
971
+ id: $data.id + '_tree',
972
+ role: "tree",
973
+ "aria-orientation": "horizontal",
974
+ selectId: $data.id,
975
+ focusedOptionId: $data.focused ? $options.focusedOptionId : undefined,
976
+ options: $options.processedOptions,
977
+ activeOptionPath: $data.activeOptionPath,
615
978
  level: 0,
616
979
  templates: _ctx.$slots,
980
+ optionLabel: $props.optionLabel,
981
+ optionValue: $props.optionValue,
982
+ optionDisabled: $props.optionDisabled,
617
983
  optionGroupLabel: $props.optionGroupLabel,
618
984
  optionGroupChildren: $props.optionGroupChildren,
619
- onOptionSelect: $options.onOptionSelect,
620
- onOptiongroupSelect: $options.onOptionGroupSelect,
621
- dirty: $data.dirty,
622
- root: true
623
- }, null, 8, ["options", "selectionPath", "optionLabel", "optionValue", "templates", "optionGroupLabel", "optionGroupChildren", "onOptionSelect", "onOptiongroupSelect", "dirty"])
985
+ onOptionChange: $options.onOptionChange
986
+ }, null, 8, ["id", "selectId", "focusedOptionId", "options", "activeOptionPath", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "onOptionChange"]),
987
+ vue.createElementVNode("span", _hoisted_6, vue.toDisplayString($options.selectedMessageText), 1)
624
988
  ])
625
- ], 2))
989
+ ], 16))
626
990
  : vue.createCommentVNode("", true)
627
991
  ]),
628
992
  _: 1
629
- }, 8, ["onEnter", "onLeave", "onAfterLeave"])
993
+ }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
630
994
  ]),
631
995
  _: 1
632
996
  }, 8, ["appendTo"])