primevue 3.45.0 → 3.47.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 (850) hide show
  1. package/README.md +2 -2
  2. package/api/api.cjs.js +6 -6
  3. package/api/api.cjs.min.js +1 -1
  4. package/api/api.esm.js +6 -6
  5. package/api/api.esm.min.js +1 -1
  6. package/api/api.js +6 -6
  7. package/api/api.min.js +1 -1
  8. package/autocomplete/AutoComplete.d.ts +6 -1
  9. package/autocomplete/AutoComplete.vue +24 -15
  10. package/autocomplete/BaseAutoComplete.vue +6 -2
  11. package/autocomplete/autocomplete.cjs.js +30 -19
  12. package/autocomplete/autocomplete.cjs.min.js +1 -1
  13. package/autocomplete/autocomplete.esm.js +30 -19
  14. package/autocomplete/autocomplete.esm.min.js +1 -1
  15. package/autocomplete/autocomplete.js +30 -19
  16. package/autocomplete/autocomplete.min.js +1 -1
  17. package/basecomponent/basecomponent.cjs.js +1 -3
  18. package/basecomponent/basecomponent.cjs.min.js +1 -1
  19. package/basecomponent/basecomponent.esm.js +1 -3
  20. package/basecomponent/basecomponent.esm.min.js +1 -1
  21. package/basecomponent/basecomponent.js +1 -3
  22. package/basecomponent/basecomponent.min.js +1 -1
  23. package/basecomponent/style/basecomponentstyle.cjs.js +1 -3
  24. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  25. package/basecomponent/style/basecomponentstyle.esm.js +1 -3
  26. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  27. package/basecomponent/style/basecomponentstyle.js +1 -3
  28. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  29. package/basedirective/basedirective.cjs.js +11 -2
  30. package/basedirective/basedirective.cjs.min.js +1 -1
  31. package/basedirective/basedirective.esm.js +11 -2
  32. package/basedirective/basedirective.esm.min.js +1 -1
  33. package/basedirective/basedirective.js +11 -2
  34. package/basedirective/basedirective.min.js +1 -1
  35. package/baseicon/BaseIcon.vue +6 -1
  36. package/baseicon/baseicon.cjs.js +5 -0
  37. package/baseicon/baseicon.cjs.min.js +1 -1
  38. package/baseicon/baseicon.esm.js +6 -1
  39. package/baseicon/baseicon.esm.min.js +1 -1
  40. package/baseicon/baseicon.js +5 -0
  41. package/baseicon/baseicon.min.js +1 -1
  42. package/calendar/BaseCalendar.vue +1 -1
  43. package/calendar/Calendar.d.ts +53 -2
  44. package/calendar/Calendar.vue +12 -0
  45. package/calendar/calendar.cjs.js +13 -1
  46. package/calendar/calendar.cjs.min.js +1 -1
  47. package/calendar/calendar.esm.js +13 -1
  48. package/calendar/calendar.esm.min.js +1 -1
  49. package/calendar/calendar.js +13 -1
  50. package/calendar/calendar.min.js +1 -1
  51. package/card/Card.d.ts +4 -0
  52. package/card/Card.vue +7 -5
  53. package/card/card.cjs.js +6 -3
  54. package/card/card.cjs.min.js +1 -1
  55. package/card/card.esm.js +6 -3
  56. package/card/card.esm.min.js +1 -1
  57. package/card/card.js +6 -3
  58. package/card/card.min.js +1 -1
  59. package/card/style/cardstyle.cjs.js +1 -0
  60. package/card/style/cardstyle.cjs.min.js +1 -1
  61. package/card/style/cardstyle.esm.js +1 -0
  62. package/card/style/cardstyle.esm.min.js +1 -1
  63. package/card/style/cardstyle.js +1 -0
  64. package/card/style/cardstyle.min.js +1 -1
  65. package/cascadeselect/BaseCascadeSelect.vue +6 -2
  66. package/cascadeselect/CascadeSelect.d.ts +47 -1
  67. package/cascadeselect/CascadeSelect.vue +56 -35
  68. package/cascadeselect/CascadeSelectSub.vue +26 -6
  69. package/cascadeselect/cascadeselect.cjs.js +118 -58
  70. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  71. package/cascadeselect/cascadeselect.esm.js +118 -58
  72. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  73. package/cascadeselect/cascadeselect.js +118 -58
  74. package/cascadeselect/cascadeselect.min.js +1 -1
  75. package/checkbox/BaseCheckbox.vue +0 -4
  76. package/checkbox/Checkbox.d.ts +17 -34
  77. package/checkbox/Checkbox.vue +24 -35
  78. package/checkbox/checkbox.cjs.js +21 -49
  79. package/checkbox/checkbox.cjs.min.js +1 -1
  80. package/checkbox/checkbox.esm.js +21 -49
  81. package/checkbox/checkbox.esm.min.js +1 -1
  82. package/checkbox/checkbox.js +21 -49
  83. package/checkbox/checkbox.min.js +1 -1
  84. package/checkbox/style/checkboxstyle.cjs.js +5 -11
  85. package/checkbox/style/checkboxstyle.cjs.min.js +1 -1
  86. package/checkbox/style/checkboxstyle.esm.js +5 -11
  87. package/checkbox/style/checkboxstyle.esm.min.js +1 -1
  88. package/checkbox/style/checkboxstyle.js +5 -11
  89. package/checkbox/style/checkboxstyle.min.js +1 -1
  90. package/chips/Chips.vue +2 -1
  91. package/chips/chips.cjs.js +2 -1
  92. package/chips/chips.cjs.min.js +1 -1
  93. package/chips/chips.esm.js +2 -1
  94. package/chips/chips.esm.min.js +1 -1
  95. package/chips/chips.js +2 -1
  96. package/chips/chips.min.js +1 -1
  97. package/colorpicker/BaseColorPicker.vue +1 -1
  98. package/colorpicker/ColorPicker.d.ts +1 -1
  99. package/colorpicker/colorpicker.cjs.js +1 -1
  100. package/colorpicker/colorpicker.cjs.min.js +1 -1
  101. package/colorpicker/colorpicker.esm.js +1 -1
  102. package/colorpicker/colorpicker.esm.min.js +1 -1
  103. package/colorpicker/colorpicker.js +1 -1
  104. package/colorpicker/colorpicker.min.js +1 -1
  105. package/column/Column.d.ts +15 -44
  106. package/confirmdialog/ConfirmDialog.vue +1 -1
  107. package/confirmdialog/confirmdialog.cjs.js +1 -1
  108. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  109. package/confirmdialog/confirmdialog.esm.js +1 -1
  110. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  111. package/confirmdialog/confirmdialog.js +1 -1
  112. package/confirmdialog/confirmdialog.min.js +1 -1
  113. package/confirmdialog/style/confirmdialogstyle.cjs.js +3 -6
  114. package/confirmdialog/style/confirmdialogstyle.cjs.min.js +1 -1
  115. package/confirmdialog/style/confirmdialogstyle.esm.js +3 -6
  116. package/confirmdialog/style/confirmdialogstyle.esm.min.js +1 -1
  117. package/confirmdialog/style/confirmdialogstyle.js +3 -6
  118. package/confirmdialog/style/confirmdialogstyle.min.js +1 -1
  119. package/confirmpopup/ConfirmPopup.vue +2 -2
  120. package/confirmpopup/confirmpopup.cjs.js +2 -2
  121. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  122. package/confirmpopup/confirmpopup.esm.js +2 -2
  123. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  124. package/confirmpopup/confirmpopup.js +2 -2
  125. package/confirmpopup/confirmpopup.min.js +1 -1
  126. package/confirmpopup/style/confirmpopupstyle.cjs.js +5 -8
  127. package/confirmpopup/style/confirmpopupstyle.cjs.min.js +1 -1
  128. package/confirmpopup/style/confirmpopupstyle.esm.js +5 -8
  129. package/confirmpopup/style/confirmpopupstyle.esm.min.js +1 -1
  130. package/confirmpopup/style/confirmpopupstyle.js +5 -8
  131. package/confirmpopup/style/confirmpopupstyle.min.js +1 -1
  132. package/contextmenu/BaseContextMenu.vue +1 -1
  133. package/contextmenu/ContextMenu.vue +8 -8
  134. package/contextmenu/ContextMenuSub.vue +6 -1
  135. package/contextmenu/contextmenu.cjs.js +18 -11
  136. package/contextmenu/contextmenu.cjs.min.js +1 -1
  137. package/contextmenu/contextmenu.esm.js +18 -11
  138. package/contextmenu/contextmenu.esm.min.js +1 -1
  139. package/contextmenu/contextmenu.js +18 -11
  140. package/contextmenu/contextmenu.min.js +1 -1
  141. package/core/core.js +973 -679
  142. package/core/core.min.js +70 -62
  143. package/datatable/BaseDataTable.vue +4 -0
  144. package/datatable/BodyCell.vue +11 -1
  145. package/datatable/BodyRow.vue +16 -9
  146. package/datatable/ColumnFilter.vue +5 -2
  147. package/datatable/DataTable.d.ts +5 -0
  148. package/datatable/DataTable.vue +2 -2
  149. package/datatable/HeaderCell.vue +2 -0
  150. package/datatable/HeaderCheckbox.vue +14 -42
  151. package/datatable/RowCheckbox.vue +10 -52
  152. package/datatable/RowRadioButton.vue +11 -32
  153. package/datatable/TableHeader.vue +3 -1
  154. package/datatable/datatable.cjs.js +120 -199
  155. package/datatable/datatable.cjs.min.js +1 -1
  156. package/datatable/datatable.esm.js +119 -200
  157. package/datatable/datatable.esm.min.js +1 -1
  158. package/datatable/datatable.js +120 -201
  159. package/datatable/datatable.min.js +1 -1
  160. package/datatable/style/datatablestyle.cjs.js +24 -73
  161. package/datatable/style/datatablestyle.cjs.min.js +1 -1
  162. package/datatable/style/datatablestyle.esm.js +24 -73
  163. package/datatable/style/datatablestyle.esm.min.js +1 -1
  164. package/datatable/style/datatablestyle.js +24 -73
  165. package/datatable/style/datatablestyle.min.js +1 -1
  166. package/dialog/BaseDialog.vue +1 -1
  167. package/dialog/dialog.cjs.js +1 -1
  168. package/dialog/dialog.cjs.min.js +1 -1
  169. package/dialog/dialog.esm.js +1 -1
  170. package/dialog/dialog.esm.min.js +1 -1
  171. package/dialog/dialog.js +1 -1
  172. package/dialog/dialog.min.js +1 -1
  173. package/dialog/style/dialogstyle.cjs.js +1 -1
  174. package/dialog/style/dialogstyle.cjs.min.js +1 -1
  175. package/dialog/style/dialogstyle.esm.js +1 -1
  176. package/dialog/style/dialogstyle.esm.min.js +1 -1
  177. package/dialog/style/dialogstyle.js +1 -1
  178. package/dialog/style/dialogstyle.min.js +1 -1
  179. package/dropdown/BaseDropdown.vue +18 -2
  180. package/dropdown/Dropdown.d.ts +37 -1
  181. package/dropdown/Dropdown.vue +68 -40
  182. package/dropdown/dropdown.cjs.js +96 -46
  183. package/dropdown/dropdown.cjs.min.js +1 -1
  184. package/dropdown/dropdown.esm.js +94 -46
  185. package/dropdown/dropdown.esm.min.js +1 -1
  186. package/dropdown/dropdown.js +96 -48
  187. package/dropdown/dropdown.min.js +1 -1
  188. package/dropdown/style/dropdownstyle.cjs.js +7 -2
  189. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  190. package/dropdown/style/dropdownstyle.esm.js +7 -2
  191. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  192. package/dropdown/style/dropdownstyle.js +7 -2
  193. package/dropdown/style/dropdownstyle.min.js +1 -1
  194. package/focustrap/focustrap.cjs.js +15 -2
  195. package/focustrap/focustrap.cjs.min.js +1 -1
  196. package/focustrap/focustrap.esm.js +15 -2
  197. package/focustrap/focustrap.esm.min.js +1 -1
  198. package/focustrap/focustrap.js +15 -2
  199. package/focustrap/focustrap.min.js +1 -1
  200. package/icons/arrowdown/index.cjs.js +4 -10
  201. package/icons/arrowdown/index.cjs.min.js +1 -1
  202. package/icons/arrowdown/index.esm.js +4 -10
  203. package/icons/arrowdown/index.esm.min.js +1 -1
  204. package/icons/arrowdown/index.js +6 -11
  205. package/icons/arrowdown/index.min.js +1 -1
  206. package/icons/arrowdown/index.vue +2 -8
  207. package/icons/arrowup/index.cjs.js +4 -10
  208. package/icons/arrowup/index.cjs.min.js +1 -1
  209. package/icons/arrowup/index.esm.js +4 -10
  210. package/icons/arrowup/index.esm.min.js +1 -1
  211. package/icons/arrowup/index.js +6 -11
  212. package/icons/arrowup/index.min.js +1 -1
  213. package/icons/arrowup/index.vue +2 -8
  214. package/icons/ban/index.cjs.js +4 -10
  215. package/icons/ban/index.cjs.min.js +1 -1
  216. package/icons/ban/index.esm.js +4 -10
  217. package/icons/ban/index.esm.min.js +1 -1
  218. package/icons/ban/index.js +6 -11
  219. package/icons/ban/index.min.js +1 -1
  220. package/icons/ban/index.vue +2 -8
  221. package/icons/blank/index.cjs.js +34 -0
  222. package/icons/blank/index.cjs.min.js +1 -0
  223. package/icons/blank/index.d.ts +12 -0
  224. package/icons/blank/index.esm.js +28 -0
  225. package/icons/blank/index.esm.min.js +1 -0
  226. package/icons/blank/index.js +36 -0
  227. package/icons/blank/index.min.js +1 -0
  228. package/icons/blank/index.vue +13 -0
  229. package/icons/blank/package.json +9 -0
  230. package/icons/exclamationtriangle/index.cjs.js +4 -10
  231. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  232. package/icons/exclamationtriangle/index.esm.js +4 -10
  233. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  234. package/icons/exclamationtriangle/index.js +6 -11
  235. package/icons/exclamationtriangle/index.min.js +1 -1
  236. package/icons/exclamationtriangle/index.vue +2 -8
  237. package/icons/eyeslash/index.cjs.js +4 -10
  238. package/icons/eyeslash/index.cjs.min.js +1 -1
  239. package/icons/eyeslash/index.esm.js +4 -10
  240. package/icons/eyeslash/index.esm.min.js +1 -1
  241. package/icons/eyeslash/index.js +6 -11
  242. package/icons/eyeslash/index.min.js +1 -1
  243. package/icons/eyeslash/index.vue +2 -8
  244. package/icons/filter/index.cjs.js +4 -10
  245. package/icons/filter/index.cjs.min.js +1 -1
  246. package/icons/filter/index.esm.js +4 -10
  247. package/icons/filter/index.esm.min.js +1 -1
  248. package/icons/filter/index.js +6 -11
  249. package/icons/filter/index.min.js +1 -1
  250. package/icons/filter/index.vue +2 -8
  251. package/icons/filterslash/index.cjs.js +4 -10
  252. package/icons/filterslash/index.cjs.min.js +1 -1
  253. package/icons/filterslash/index.esm.js +4 -10
  254. package/icons/filterslash/index.esm.min.js +1 -1
  255. package/icons/filterslash/index.js +6 -11
  256. package/icons/filterslash/index.min.js +1 -1
  257. package/icons/filterslash/index.vue +2 -8
  258. package/icons/infocircle/index.cjs.js +4 -10
  259. package/icons/infocircle/index.cjs.min.js +1 -1
  260. package/icons/infocircle/index.esm.js +4 -10
  261. package/icons/infocircle/index.esm.min.js +1 -1
  262. package/icons/infocircle/index.js +6 -11
  263. package/icons/infocircle/index.min.js +1 -1
  264. package/icons/infocircle/index.vue +2 -8
  265. package/icons/pencil/index.cjs.js +4 -10
  266. package/icons/pencil/index.cjs.min.js +1 -1
  267. package/icons/pencil/index.esm.js +4 -10
  268. package/icons/pencil/index.esm.min.js +1 -1
  269. package/icons/pencil/index.js +6 -11
  270. package/icons/pencil/index.min.js +1 -1
  271. package/icons/pencil/index.vue +2 -8
  272. package/icons/plus/index.cjs.js +4 -10
  273. package/icons/plus/index.cjs.min.js +1 -1
  274. package/icons/plus/index.esm.js +4 -10
  275. package/icons/plus/index.esm.min.js +1 -1
  276. package/icons/plus/index.js +6 -11
  277. package/icons/plus/index.min.js +1 -1
  278. package/icons/plus/index.vue +2 -8
  279. package/icons/refresh/index.cjs.js +4 -10
  280. package/icons/refresh/index.cjs.min.js +1 -1
  281. package/icons/refresh/index.esm.js +4 -10
  282. package/icons/refresh/index.esm.min.js +1 -1
  283. package/icons/refresh/index.js +6 -11
  284. package/icons/refresh/index.min.js +1 -1
  285. package/icons/refresh/index.vue +2 -8
  286. package/icons/search/index.cjs.js +4 -10
  287. package/icons/search/index.cjs.min.js +1 -1
  288. package/icons/search/index.esm.js +4 -10
  289. package/icons/search/index.esm.min.js +1 -1
  290. package/icons/search/index.js +6 -11
  291. package/icons/search/index.min.js +1 -1
  292. package/icons/search/index.vue +2 -8
  293. package/icons/searchminus/index.cjs.js +4 -10
  294. package/icons/searchminus/index.cjs.min.js +1 -1
  295. package/icons/searchminus/index.esm.js +4 -10
  296. package/icons/searchminus/index.esm.min.js +1 -1
  297. package/icons/searchminus/index.js +6 -11
  298. package/icons/searchminus/index.min.js +1 -1
  299. package/icons/searchminus/index.vue +2 -8
  300. package/icons/searchplus/index.cjs.js +4 -10
  301. package/icons/searchplus/index.cjs.min.js +1 -1
  302. package/icons/searchplus/index.esm.js +4 -10
  303. package/icons/searchplus/index.esm.min.js +1 -1
  304. package/icons/searchplus/index.js +6 -11
  305. package/icons/searchplus/index.min.js +1 -1
  306. package/icons/searchplus/index.vue +2 -8
  307. package/icons/sortalt/index.cjs.js +4 -10
  308. package/icons/sortalt/index.cjs.min.js +1 -1
  309. package/icons/sortalt/index.esm.js +4 -10
  310. package/icons/sortalt/index.esm.min.js +1 -1
  311. package/icons/sortalt/index.js +6 -11
  312. package/icons/sortalt/index.min.js +1 -1
  313. package/icons/sortalt/index.vue +2 -8
  314. package/icons/sortamountdown/index.cjs.js +4 -10
  315. package/icons/sortamountdown/index.cjs.min.js +1 -1
  316. package/icons/sortamountdown/index.esm.js +4 -10
  317. package/icons/sortamountdown/index.esm.min.js +1 -1
  318. package/icons/sortamountdown/index.js +6 -11
  319. package/icons/sortamountdown/index.min.js +1 -1
  320. package/icons/sortamountdown/index.vue +2 -8
  321. package/icons/sortamountupalt/index.cjs.js +4 -10
  322. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  323. package/icons/sortamountupalt/index.esm.js +4 -10
  324. package/icons/sortamountupalt/index.esm.min.js +1 -1
  325. package/icons/sortamountupalt/index.js +6 -11
  326. package/icons/sortamountupalt/index.min.js +1 -1
  327. package/icons/sortamountupalt/index.vue +2 -8
  328. package/icons/spinner/index.cjs.js +4 -10
  329. package/icons/spinner/index.cjs.min.js +1 -1
  330. package/icons/spinner/index.esm.js +4 -10
  331. package/icons/spinner/index.esm.min.js +1 -1
  332. package/icons/spinner/index.js +6 -11
  333. package/icons/spinner/index.min.js +1 -1
  334. package/icons/spinner/index.vue +2 -8
  335. package/icons/star/index.cjs.js +4 -10
  336. package/icons/star/index.cjs.min.js +1 -1
  337. package/icons/star/index.esm.js +4 -10
  338. package/icons/star/index.esm.min.js +1 -1
  339. package/icons/star/index.js +6 -11
  340. package/icons/star/index.min.js +1 -1
  341. package/icons/star/index.vue +2 -8
  342. package/icons/starfill/index.cjs.js +4 -10
  343. package/icons/starfill/index.cjs.min.js +1 -1
  344. package/icons/starfill/index.esm.js +4 -10
  345. package/icons/starfill/index.esm.min.js +1 -1
  346. package/icons/starfill/index.js +6 -11
  347. package/icons/starfill/index.min.js +1 -1
  348. package/icons/starfill/index.vue +2 -8
  349. package/icons/thlarge/index.cjs.js +4 -10
  350. package/icons/thlarge/index.cjs.min.js +1 -1
  351. package/icons/thlarge/index.esm.js +4 -10
  352. package/icons/thlarge/index.esm.min.js +1 -1
  353. package/icons/thlarge/index.js +6 -11
  354. package/icons/thlarge/index.min.js +1 -1
  355. package/icons/thlarge/index.vue +2 -8
  356. package/icons/timescircle/index.cjs.js +4 -10
  357. package/icons/timescircle/index.cjs.min.js +1 -1
  358. package/icons/timescircle/index.esm.js +4 -10
  359. package/icons/timescircle/index.esm.min.js +1 -1
  360. package/icons/timescircle/index.js +6 -11
  361. package/icons/timescircle/index.min.js +1 -1
  362. package/icons/timescircle/index.vue +2 -8
  363. package/icons/trash/index.cjs.js +4 -10
  364. package/icons/trash/index.cjs.min.js +1 -1
  365. package/icons/trash/index.esm.js +4 -10
  366. package/icons/trash/index.esm.min.js +1 -1
  367. package/icons/trash/index.js +6 -11
  368. package/icons/trash/index.min.js +1 -1
  369. package/icons/trash/index.vue +2 -8
  370. package/icons/undo/index.cjs.js +4 -10
  371. package/icons/undo/index.cjs.min.js +1 -1
  372. package/icons/undo/index.esm.js +4 -10
  373. package/icons/undo/index.esm.min.js +1 -1
  374. package/icons/undo/index.js +6 -11
  375. package/icons/undo/index.min.js +1 -1
  376. package/icons/undo/index.vue +2 -8
  377. package/icons/upload/index.cjs.js +4 -10
  378. package/icons/upload/index.cjs.min.js +1 -1
  379. package/icons/upload/index.esm.js +4 -10
  380. package/icons/upload/index.esm.min.js +1 -1
  381. package/icons/upload/index.js +6 -11
  382. package/icons/upload/index.min.js +1 -1
  383. package/icons/upload/index.vue +2 -8
  384. package/icons/windowmaximize/index.cjs.js +4 -10
  385. package/icons/windowmaximize/index.cjs.min.js +1 -1
  386. package/icons/windowmaximize/index.esm.js +4 -10
  387. package/icons/windowmaximize/index.esm.min.js +1 -1
  388. package/icons/windowmaximize/index.js +6 -11
  389. package/icons/windowmaximize/index.min.js +1 -1
  390. package/icons/windowmaximize/index.vue +2 -8
  391. package/icons/windowminimize/index.cjs.js +4 -10
  392. package/icons/windowminimize/index.cjs.min.js +1 -1
  393. package/icons/windowminimize/index.esm.js +4 -10
  394. package/icons/windowminimize/index.esm.min.js +1 -1
  395. package/icons/windowminimize/index.js +6 -11
  396. package/icons/windowminimize/index.min.js +1 -1
  397. package/icons/windowminimize/index.vue +2 -8
  398. package/inputnumber/InputNumber.vue +22 -9
  399. package/inputnumber/inputnumber.cjs.js +17 -6
  400. package/inputnumber/inputnumber.cjs.min.js +1 -1
  401. package/inputnumber/inputnumber.esm.js +18 -7
  402. package/inputnumber/inputnumber.esm.min.js +1 -1
  403. package/inputnumber/inputnumber.js +17 -6
  404. package/inputnumber/inputnumber.min.js +1 -1
  405. package/inputswitch/BaseInputSwitch.vue +8 -4
  406. package/inputswitch/InputSwitch.d.ts +41 -20
  407. package/inputswitch/InputSwitch.vue +31 -33
  408. package/inputswitch/inputswitch.cjs.js +38 -42
  409. package/inputswitch/inputswitch.cjs.min.js +1 -1
  410. package/inputswitch/inputswitch.esm.js +38 -42
  411. package/inputswitch/inputswitch.esm.min.js +1 -1
  412. package/inputswitch/inputswitch.js +38 -42
  413. package/inputswitch/inputswitch.min.js +1 -1
  414. package/inputswitch/style/inputswitchstyle.cjs.js +4 -4
  415. package/inputswitch/style/inputswitchstyle.cjs.min.js +1 -1
  416. package/inputswitch/style/inputswitchstyle.esm.js +4 -4
  417. package/inputswitch/style/inputswitchstyle.esm.min.js +1 -1
  418. package/inputswitch/style/inputswitchstyle.js +4 -4
  419. package/inputswitch/style/inputswitchstyle.min.js +1 -1
  420. package/listbox/BaseListbox.vue +4 -0
  421. package/listbox/Listbox.d.ts +6 -1
  422. package/listbox/Listbox.vue +47 -26
  423. package/listbox/listbox.cjs.js +88 -50
  424. package/listbox/listbox.cjs.min.js +1 -1
  425. package/listbox/listbox.esm.js +88 -50
  426. package/listbox/listbox.esm.min.js +1 -1
  427. package/listbox/listbox.js +88 -50
  428. package/listbox/listbox.min.js +1 -1
  429. package/listbox/style/listboxstyle.cjs.js +2 -3
  430. package/listbox/style/listboxstyle.cjs.min.js +1 -1
  431. package/listbox/style/listboxstyle.esm.js +2 -3
  432. package/listbox/style/listboxstyle.esm.min.js +1 -1
  433. package/listbox/style/listboxstyle.js +2 -3
  434. package/listbox/style/listboxstyle.min.js +1 -1
  435. package/megamenu/MegaMenu.vue +1 -1
  436. package/megamenu/megamenu.cjs.js +2 -1
  437. package/megamenu/megamenu.cjs.min.js +1 -1
  438. package/megamenu/megamenu.esm.js +2 -1
  439. package/megamenu/megamenu.esm.min.js +1 -1
  440. package/megamenu/megamenu.js +2 -1
  441. package/megamenu/megamenu.min.js +1 -1
  442. package/menu/BaseMenu.vue +1 -1
  443. package/menu/menu.cjs.js +1 -1
  444. package/menu/menu.cjs.min.js +1 -1
  445. package/menu/menu.esm.js +1 -1
  446. package/menu/menu.esm.min.js +1 -1
  447. package/menu/menu.js +1 -1
  448. package/menu/menu.min.js +1 -1
  449. package/menubar/Menubar.vue +3 -2
  450. package/menubar/MenubarSub.vue +5 -1
  451. package/menubar/menubar.cjs.js +12 -5
  452. package/menubar/menubar.cjs.min.js +1 -1
  453. package/menubar/menubar.esm.js +12 -5
  454. package/menubar/menubar.esm.min.js +1 -1
  455. package/menubar/menubar.js +12 -5
  456. package/menubar/menubar.min.js +1 -1
  457. package/message/Message.d.ts +4 -0
  458. package/message/Message.vue +2 -1
  459. package/message/message.cjs.js +2 -1
  460. package/message/message.cjs.min.js +1 -1
  461. package/message/message.esm.js +2 -1
  462. package/message/message.esm.min.js +1 -1
  463. package/message/message.js +2 -1
  464. package/message/message.min.js +1 -1
  465. package/metergroup/BaseMeterGroup.vue +41 -0
  466. package/metergroup/MeterGroup.d.ts +302 -0
  467. package/metergroup/MeterGroup.vue +73 -0
  468. package/metergroup/MeterGroupLabel.vue +36 -0
  469. package/metergroup/metergroup.cjs.js +218 -0
  470. package/metergroup/metergroup.cjs.min.js +1 -0
  471. package/metergroup/metergroup.esm.js +211 -0
  472. package/metergroup/metergroup.esm.min.js +1 -0
  473. package/metergroup/metergroup.js +218 -0
  474. package/metergroup/metergroup.min.js +1 -0
  475. package/metergroup/package.json +9 -0
  476. package/metergroup/style/MeterGroupStyle.d.ts +3 -0
  477. package/metergroup/style/metergroupstyle.cjs.js +40 -0
  478. package/metergroup/style/metergroupstyle.cjs.min.js +1 -0
  479. package/metergroup/style/metergroupstyle.esm.js +34 -0
  480. package/metergroup/style/metergroupstyle.esm.min.js +1 -0
  481. package/metergroup/style/metergroupstyle.js +43 -0
  482. package/metergroup/style/metergroupstyle.min.js +1 -0
  483. package/metergroup/style/package.json +6 -0
  484. package/multiselect/BaseMultiSelect.vue +10 -2
  485. package/multiselect/MultiSelect.d.ts +13 -19
  486. package/multiselect/MultiSelect.vue +108 -76
  487. package/multiselect/multiselect.cjs.js +174 -134
  488. package/multiselect/multiselect.cjs.min.js +1 -1
  489. package/multiselect/multiselect.esm.js +174 -135
  490. package/multiselect/multiselect.esm.min.js +1 -1
  491. package/multiselect/multiselect.js +175 -136
  492. package/multiselect/multiselect.min.js +1 -1
  493. package/multiselect/style/multiselectstyle.cjs.js +7 -30
  494. package/multiselect/style/multiselectstyle.cjs.min.js +1 -1
  495. package/multiselect/style/multiselectstyle.esm.js +7 -30
  496. package/multiselect/style/multiselectstyle.esm.min.js +1 -1
  497. package/multiselect/style/multiselectstyle.js +7 -30
  498. package/multiselect/style/multiselectstyle.min.js +1 -1
  499. package/orderlist/BaseOrderList.vue +8 -0
  500. package/orderlist/OrderList.d.ts +10 -0
  501. package/orderlist/OrderList.vue +72 -52
  502. package/orderlist/orderlist.cjs.js +79 -56
  503. package/orderlist/orderlist.cjs.min.js +1 -1
  504. package/orderlist/orderlist.esm.js +79 -56
  505. package/orderlist/orderlist.esm.min.js +1 -1
  506. package/orderlist/orderlist.js +79 -56
  507. package/orderlist/orderlist.min.js +1 -1
  508. package/orderlist/style/orderliststyle.cjs.js +1 -1
  509. package/orderlist/style/orderliststyle.cjs.min.js +1 -1
  510. package/orderlist/style/orderliststyle.esm.js +1 -1
  511. package/orderlist/style/orderliststyle.esm.min.js +1 -1
  512. package/orderlist/style/orderliststyle.js +1 -1
  513. package/orderlist/style/orderliststyle.min.js +1 -1
  514. package/overlaypanel/BaseOverlayPanel.vue +1 -1
  515. package/overlaypanel/OverlayPanel.d.ts +4 -0
  516. package/overlaypanel/OverlayPanel.vue +1 -1
  517. package/overlaypanel/overlaypanel.cjs.js +2 -2
  518. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  519. package/overlaypanel/overlaypanel.esm.js +2 -2
  520. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  521. package/overlaypanel/overlaypanel.js +2 -2
  522. package/overlaypanel/overlaypanel.min.js +1 -1
  523. package/package.json +1 -1
  524. package/panelmenu/PanelMenuList.vue +1 -1
  525. package/panelmenu/panelmenu.cjs.js +2 -1
  526. package/panelmenu/panelmenu.cjs.min.js +1 -1
  527. package/panelmenu/panelmenu.esm.js +2 -1
  528. package/panelmenu/panelmenu.esm.min.js +1 -1
  529. package/panelmenu/panelmenu.js +2 -1
  530. package/panelmenu/panelmenu.min.js +1 -1
  531. package/password/BasePassword.vue +1 -1
  532. package/password/password.cjs.js +1 -1
  533. package/password/password.cjs.min.js +1 -1
  534. package/password/password.esm.js +1 -1
  535. package/password/password.esm.min.js +1 -1
  536. package/password/password.js +1 -1
  537. package/password/password.min.js +1 -1
  538. package/picklist/BasePickList.vue +8 -0
  539. package/picklist/PickList.d.ts +10 -0
  540. package/picklist/PickList.vue +72 -37
  541. package/picklist/picklist.cjs.js +81 -46
  542. package/picklist/picklist.cjs.min.js +1 -1
  543. package/picklist/picklist.esm.js +81 -46
  544. package/picklist/picklist.esm.min.js +1 -1
  545. package/picklist/picklist.js +81 -46
  546. package/picklist/picklist.min.js +1 -1
  547. package/portal/Portal.vue +1 -1
  548. package/portal/portal.cjs.js +1 -1
  549. package/portal/portal.cjs.min.js +1 -1
  550. package/portal/portal.esm.js +1 -1
  551. package/portal/portal.esm.min.js +1 -1
  552. package/portal/portal.js +1 -1
  553. package/portal/portal.min.js +1 -1
  554. package/progressbar/ProgressBar.vue +1 -1
  555. package/progressbar/progressbar.cjs.js +3 -1
  556. package/progressbar/progressbar.cjs.min.js +1 -1
  557. package/progressbar/progressbar.esm.js +3 -1
  558. package/progressbar/progressbar.esm.min.js +1 -1
  559. package/progressbar/progressbar.js +3 -1
  560. package/progressbar/progressbar.min.js +1 -1
  561. package/radiobutton/BaseRadioButton.vue +9 -4
  562. package/radiobutton/RadioButton.d.ts +48 -22
  563. package/radiobutton/RadioButton.vue +36 -23
  564. package/radiobutton/radiobutton.cjs.js +42 -50
  565. package/radiobutton/radiobutton.cjs.min.js +1 -1
  566. package/radiobutton/radiobutton.esm.js +42 -50
  567. package/radiobutton/radiobutton.esm.min.js +1 -1
  568. package/radiobutton/radiobutton.js +42 -50
  569. package/radiobutton/radiobutton.min.js +1 -1
  570. package/radiobutton/style/radiobuttonstyle.cjs.js +5 -11
  571. package/radiobutton/style/radiobuttonstyle.cjs.min.js +1 -1
  572. package/radiobutton/style/radiobuttonstyle.esm.js +5 -11
  573. package/radiobutton/style/radiobuttonstyle.esm.min.js +1 -1
  574. package/radiobutton/style/radiobuttonstyle.js +5 -11
  575. package/radiobutton/style/radiobuttonstyle.min.js +1 -1
  576. package/resources/themes/arya-blue/theme.css +432 -351
  577. package/resources/themes/arya-green/theme.css +432 -351
  578. package/resources/themes/arya-orange/theme.css +432 -351
  579. package/resources/themes/arya-purple/theme.css +432 -351
  580. package/resources/themes/aura-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
  581. package/resources/themes/aura-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
  582. package/resources/themes/aura-dark-amber/theme.css +7012 -0
  583. package/resources/themes/aura-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  584. package/resources/themes/aura-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  585. package/resources/themes/aura-dark-blue/theme.css +7012 -0
  586. package/resources/themes/aura-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
  587. package/resources/themes/aura-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
  588. package/resources/themes/aura-dark-cyan/theme.css +7012 -0
  589. package/resources/themes/aura-dark-green/fonts/Inter-italic.var.woff2 +0 -0
  590. package/resources/themes/aura-dark-green/fonts/Inter-roman.var.woff2 +0 -0
  591. package/resources/themes/aura-dark-green/theme.css +7012 -0
  592. package/resources/themes/aura-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  593. package/resources/themes/aura-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  594. package/resources/themes/aura-dark-indigo/theme.css +7012 -0
  595. package/resources/themes/aura-dark-lime/fonts/Inter-italic.var.woff2 +0 -0
  596. package/resources/themes/aura-dark-lime/fonts/Inter-roman.var.woff2 +0 -0
  597. package/resources/themes/aura-dark-lime/theme.css +7012 -0
  598. package/resources/themes/aura-dark-noir/fonts/Inter-italic.var.woff2 +0 -0
  599. package/resources/themes/aura-dark-noir/fonts/Inter-roman.var.woff2 +0 -0
  600. package/resources/themes/aura-dark-noir/theme.css +7012 -0
  601. package/resources/themes/aura-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
  602. package/resources/themes/aura-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
  603. package/resources/themes/aura-dark-pink/theme.css +7012 -0
  604. package/resources/themes/aura-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  605. package/resources/themes/aura-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  606. package/resources/themes/aura-dark-purple/theme.css +7012 -0
  607. package/resources/themes/aura-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  608. package/resources/themes/aura-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  609. package/resources/themes/aura-dark-teal/theme.css +7012 -0
  610. package/resources/themes/aura-light-amber/fonts/Inter-italic.var.woff2 +0 -0
  611. package/resources/themes/aura-light-amber/fonts/Inter-roman.var.woff2 +0 -0
  612. package/resources/themes/aura-light-amber/theme.css +7014 -0
  613. package/resources/themes/aura-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  614. package/resources/themes/aura-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  615. package/resources/themes/aura-light-blue/theme.css +7014 -0
  616. package/resources/themes/aura-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
  617. package/resources/themes/aura-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
  618. package/resources/themes/aura-light-cyan/theme.css +7014 -0
  619. package/resources/themes/aura-light-green/fonts/Inter-italic.var.woff2 +0 -0
  620. package/resources/themes/aura-light-green/fonts/Inter-roman.var.woff2 +0 -0
  621. package/resources/themes/aura-light-green/theme.css +7014 -0
  622. package/resources/themes/aura-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  623. package/resources/themes/aura-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  624. package/resources/themes/aura-light-indigo/theme.css +7014 -0
  625. package/resources/themes/aura-light-lime/fonts/Inter-italic.var.woff2 +0 -0
  626. package/resources/themes/aura-light-lime/fonts/Inter-roman.var.woff2 +0 -0
  627. package/resources/themes/aura-light-lime/theme.css +7014 -0
  628. package/resources/themes/aura-light-noir/fonts/Inter-italic.var.woff2 +0 -0
  629. package/resources/themes/aura-light-noir/fonts/Inter-roman.var.woff2 +0 -0
  630. package/resources/themes/aura-light-noir/theme.css +7022 -0
  631. package/resources/themes/aura-light-pink/fonts/Inter-italic.var.woff2 +0 -0
  632. package/resources/themes/aura-light-pink/fonts/Inter-roman.var.woff2 +0 -0
  633. package/resources/themes/aura-light-pink/theme.css +7014 -0
  634. package/resources/themes/aura-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  635. package/resources/themes/aura-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  636. package/resources/themes/aura-light-purple/theme.css +7014 -0
  637. package/resources/themes/aura-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  638. package/resources/themes/aura-light-teal/fonts/Inter-roman.var.woff2 +0 -0
  639. package/resources/themes/aura-light-teal/theme.css +7014 -0
  640. package/resources/themes/bootstrap4-dark-blue/theme.css +533 -403
  641. package/resources/themes/bootstrap4-dark-purple/theme.css +533 -403
  642. package/resources/themes/bootstrap4-light-blue/theme.css +533 -403
  643. package/resources/themes/bootstrap4-light-purple/theme.css +533 -403
  644. package/resources/themes/fluent-light/theme.css +431 -350
  645. package/resources/themes/lara-dark-amber/theme.css +534 -404
  646. package/resources/themes/lara-dark-blue/theme.css +534 -404
  647. package/resources/themes/lara-dark-cyan/theme.css +534 -404
  648. package/resources/themes/lara-dark-green/theme.css +534 -404
  649. package/resources/themes/lara-dark-indigo/theme.css +534 -404
  650. package/resources/themes/lara-dark-pink/theme.css +534 -404
  651. package/resources/themes/lara-dark-purple/theme.css +534 -404
  652. package/resources/themes/lara-dark-teal/theme.css +534 -404
  653. package/resources/themes/lara-light-amber/theme.css +535 -405
  654. package/resources/themes/lara-light-blue/theme.css +535 -405
  655. package/resources/themes/lara-light-cyan/theme.css +535 -405
  656. package/resources/themes/lara-light-green/theme.css +535 -405
  657. package/resources/themes/lara-light-indigo/theme.css +535 -405
  658. package/resources/themes/lara-light-pink/theme.css +535 -405
  659. package/resources/themes/lara-light-purple/theme.css +535 -405
  660. package/resources/themes/lara-light-teal/theme.css +535 -405
  661. package/resources/themes/luna-amber/theme.css +432 -351
  662. package/resources/themes/luna-blue/theme.css +432 -351
  663. package/resources/themes/luna-green/theme.css +432 -351
  664. package/resources/themes/luna-pink/theme.css +432 -351
  665. package/resources/themes/md-dark-deeppurple/theme.css +696 -431
  666. package/resources/themes/md-dark-indigo/theme.css +696 -431
  667. package/resources/themes/md-light-deeppurple/theme.css +700 -435
  668. package/resources/themes/md-light-indigo/theme.css +700 -435
  669. package/resources/themes/mdc-dark-deeppurple/theme.css +696 -431
  670. package/resources/themes/mdc-dark-indigo/theme.css +696 -431
  671. package/resources/themes/mdc-light-deeppurple/theme.css +700 -435
  672. package/resources/themes/mdc-light-indigo/theme.css +700 -435
  673. package/resources/themes/mira/theme.css +486 -405
  674. package/resources/themes/nano/theme.css +432 -351
  675. package/resources/themes/nova/theme.css +432 -351
  676. package/resources/themes/nova-accent/theme.css +432 -351
  677. package/resources/themes/nova-alt/theme.css +432 -351
  678. package/resources/themes/nova-vue/theme.css +432 -351
  679. package/resources/themes/rhea/theme.css +432 -351
  680. package/resources/themes/saga-blue/theme.css +432 -351
  681. package/resources/themes/saga-green/theme.css +432 -351
  682. package/resources/themes/saga-orange/theme.css +432 -351
  683. package/resources/themes/saga-purple/theme.css +432 -351
  684. package/resources/themes/soho-dark/theme.css +534 -404
  685. package/resources/themes/soho-light/theme.css +534 -404
  686. package/resources/themes/tailwind-light/theme.css +432 -351
  687. package/resources/themes/vela-blue/theme.css +432 -351
  688. package/resources/themes/vela-green/theme.css +432 -351
  689. package/resources/themes/vela-orange/theme.css +432 -351
  690. package/resources/themes/vela-purple/theme.css +432 -351
  691. package/resources/themes/viva-dark/theme.css +535 -405
  692. package/resources/themes/viva-light/theme.css +535 -405
  693. package/sidebar/Sidebar.vue +16 -1
  694. package/sidebar/sidebar.cjs.js +17 -5
  695. package/sidebar/sidebar.cjs.min.js +1 -1
  696. package/sidebar/sidebar.esm.js +17 -5
  697. package/sidebar/sidebar.esm.min.js +1 -1
  698. package/sidebar/sidebar.js +17 -5
  699. package/sidebar/sidebar.min.js +1 -1
  700. package/slider/Slider.vue +0 -1
  701. package/slider/slider.cjs.js +0 -1
  702. package/slider/slider.cjs.min.js +1 -1
  703. package/slider/slider.esm.js +0 -1
  704. package/slider/slider.esm.min.js +1 -1
  705. package/slider/slider.js +0 -1
  706. package/slider/slider.min.js +1 -1
  707. package/speeddial/SpeedDial.vue +2 -2
  708. package/speeddial/speeddial.cjs.js +2 -2
  709. package/speeddial/speeddial.cjs.min.js +1 -1
  710. package/speeddial/speeddial.esm.js +2 -2
  711. package/speeddial/speeddial.esm.min.js +1 -1
  712. package/speeddial/speeddial.js +2 -2
  713. package/speeddial/speeddial.min.js +1 -1
  714. package/splitbutton/BaseSplitButton.vue +1 -1
  715. package/splitbutton/splitbutton.cjs.js +1 -1
  716. package/splitbutton/splitbutton.cjs.min.js +1 -1
  717. package/splitbutton/splitbutton.esm.js +1 -1
  718. package/splitbutton/splitbutton.esm.min.js +1 -1
  719. package/splitbutton/splitbutton.js +1 -1
  720. package/splitbutton/splitbutton.min.js +1 -1
  721. package/splitbutton/style/splitbuttonstyle.cjs.js +8 -5
  722. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  723. package/splitbutton/style/splitbuttonstyle.esm.js +8 -5
  724. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  725. package/splitbutton/style/splitbuttonstyle.js +8 -5
  726. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  727. package/steps/Steps.vue +2 -1
  728. package/steps/steps.cjs.js +3 -2
  729. package/steps/steps.cjs.min.js +1 -1
  730. package/steps/steps.esm.js +3 -2
  731. package/steps/steps.esm.min.js +1 -1
  732. package/steps/steps.js +3 -2
  733. package/steps/steps.min.js +1 -1
  734. package/tabview/TabView.vue +2 -3
  735. package/tabview/tabview.cjs.js +3 -3
  736. package/tabview/tabview.cjs.min.js +1 -1
  737. package/tabview/tabview.esm.js +3 -3
  738. package/tabview/tabview.esm.min.js +1 -1
  739. package/tabview/tabview.js +3 -3
  740. package/tabview/tabview.min.js +1 -1
  741. package/tag/Tag.vue +1 -1
  742. package/tag/tag.cjs.js +4 -2
  743. package/tag/tag.cjs.min.js +1 -1
  744. package/tag/tag.esm.js +4 -2
  745. package/tag/tag.esm.min.js +1 -1
  746. package/tag/tag.js +4 -2
  747. package/tag/tag.min.js +1 -1
  748. package/textarea/Textarea.d.ts +2 -2
  749. package/tieredmenu/BaseTieredMenu.vue +1 -1
  750. package/tieredmenu/TieredMenu.d.ts +4 -0
  751. package/tieredmenu/TieredMenu.vue +1 -1
  752. package/tieredmenu/TieredMenuSub.vue +5 -1
  753. package/tieredmenu/tieredmenu.cjs.js +12 -5
  754. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  755. package/tieredmenu/tieredmenu.esm.js +12 -5
  756. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  757. package/tieredmenu/tieredmenu.js +12 -5
  758. package/tieredmenu/tieredmenu.min.js +1 -1
  759. package/togglebutton/BaseToggleButton.vue +4 -4
  760. package/togglebutton/ToggleButton.d.ts +17 -24
  761. package/togglebutton/ToggleButton.vue +41 -67
  762. package/togglebutton/style/togglebuttonstyle.cjs.js +15 -8
  763. package/togglebutton/style/togglebuttonstyle.cjs.min.js +1 -1
  764. package/togglebutton/style/togglebuttonstyle.esm.js +15 -8
  765. package/togglebutton/style/togglebuttonstyle.esm.min.js +1 -1
  766. package/togglebutton/style/togglebuttonstyle.js +15 -8
  767. package/togglebutton/style/togglebuttonstyle.min.js +1 -1
  768. package/togglebutton/togglebutton.cjs.js +45 -80
  769. package/togglebutton/togglebutton.cjs.min.js +1 -1
  770. package/togglebutton/togglebutton.esm.js +46 -81
  771. package/togglebutton/togglebutton.esm.min.js +1 -1
  772. package/togglebutton/togglebutton.js +46 -82
  773. package/togglebutton/togglebutton.min.js +1 -1
  774. package/tooltip/style/tooltipstyle.cjs.js +1 -1
  775. package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
  776. package/tooltip/style/tooltipstyle.esm.js +1 -1
  777. package/tooltip/style/tooltipstyle.esm.min.js +1 -1
  778. package/tooltip/style/tooltipstyle.js +1 -1
  779. package/tooltip/style/tooltipstyle.min.js +1 -1
  780. package/tree/BaseTree.vue +4 -0
  781. package/tree/Tree.d.ts +6 -9
  782. package/tree/Tree.vue +1 -1
  783. package/tree/TreeNode.vue +14 -11
  784. package/tree/style/treestyle.cjs.js +3 -6
  785. package/tree/style/treestyle.cjs.min.js +1 -1
  786. package/tree/style/treestyle.esm.js +3 -6
  787. package/tree/style/treestyle.esm.min.js +1 -1
  788. package/tree/style/treestyle.js +3 -6
  789. package/tree/style/treestyle.min.js +1 -1
  790. package/tree/tree.cjs.js +34 -21
  791. package/tree/tree.cjs.min.js +1 -1
  792. package/tree/tree.esm.js +34 -22
  793. package/tree/tree.esm.min.js +1 -1
  794. package/tree/tree.js +35 -23
  795. package/tree/tree.min.js +1 -1
  796. package/treeselect/BaseTreeSelect.vue +1 -1
  797. package/treeselect/TreeSelect.vue +0 -4
  798. package/treeselect/treeselect.cjs.js +1 -5
  799. package/treeselect/treeselect.cjs.min.js +1 -1
  800. package/treeselect/treeselect.esm.js +1 -5
  801. package/treeselect/treeselect.esm.min.js +1 -1
  802. package/treeselect/treeselect.js +1 -5
  803. package/treeselect/treeselect.min.js +1 -1
  804. package/treetable/BodyCell.vue +26 -24
  805. package/treetable/TreeTable.vue +3 -1
  806. package/treetable/TreeTableRow.vue +2 -0
  807. package/treetable/style/treetablestyle.cjs.js +4 -13
  808. package/treetable/style/treetablestyle.cjs.min.js +1 -1
  809. package/treetable/style/treetablestyle.esm.js +4 -13
  810. package/treetable/style/treetablestyle.esm.min.js +1 -1
  811. package/treetable/style/treetablestyle.js +4 -13
  812. package/treetable/style/treetablestyle.min.js +1 -1
  813. package/treetable/treetable.cjs.js +39 -44
  814. package/treetable/treetable.cjs.min.js +1 -1
  815. package/treetable/treetable.esm.js +39 -45
  816. package/treetable/treetable.esm.min.js +1 -1
  817. package/treetable/treetable.js +40 -46
  818. package/treetable/treetable.min.js +1 -1
  819. package/tristatecheckbox/BaseTriStateCheckbox.vue +17 -9
  820. package/tristatecheckbox/TriStateCheckbox.d.ts +34 -23
  821. package/tristatecheckbox/TriStateCheckbox.vue +49 -61
  822. package/tristatecheckbox/style/tristatecheckboxstyle.cjs.js +7 -13
  823. package/tristatecheckbox/style/tristatecheckboxstyle.cjs.min.js +1 -1
  824. package/tristatecheckbox/style/tristatecheckboxstyle.esm.js +7 -13
  825. package/tristatecheckbox/style/tristatecheckboxstyle.esm.min.js +1 -1
  826. package/tristatecheckbox/style/tristatecheckboxstyle.js +7 -13
  827. package/tristatecheckbox/style/tristatecheckboxstyle.min.js +1 -1
  828. package/tristatecheckbox/tristatecheckbox.cjs.js +69 -87
  829. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  830. package/tristatecheckbox/tristatecheckbox.esm.js +70 -88
  831. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  832. package/tristatecheckbox/tristatecheckbox.js +69 -87
  833. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  834. package/utils/utils.cjs.js +14 -6
  835. package/utils/utils.cjs.min.js +1 -1
  836. package/utils/utils.esm.js +14 -6
  837. package/utils/utils.esm.min.js +1 -1
  838. package/utils/utils.js +14 -6
  839. package/utils/utils.min.js +1 -1
  840. package/vetur-attributes.json +24 -0
  841. package/vetur-tags.json +6 -0
  842. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  843. package/virtualscroller/VirtualScroller.vue +58 -50
  844. package/virtualscroller/virtualscroller.cjs.js +90 -77
  845. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  846. package/virtualscroller/virtualscroller.esm.js +90 -77
  847. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  848. package/virtualscroller/virtualscroller.js +90 -77
  849. package/virtualscroller/virtualscroller.min.js +1 -1
  850. package/web-types.json +71 -6
@@ -62,8 +62,9 @@
62
62
  :class="cx('item', { item, id: `${id}_${i}` })"
63
63
  @click="onItemClick($event, item, i)"
64
64
  @touchend="onItemTouchEnd"
65
+ @mousedown="onOptionMouseDown($event, i)"
66
+ @mousemove="onOptionMouseMove(i)"
65
67
  :aria-selected="isSelected(item)"
66
- @mousedown="onOptionMouseDown(i)"
67
68
  v-bind="getPTOptions(item, 'item', i)"
68
69
  :data-p-highlight="isSelected(item)"
69
70
  :data-p-focused="`${id}_${i}` === focusedOptionId"
@@ -139,18 +140,9 @@ export default {
139
140
  return ObjectUtils.findIndexInList(item, this.d_selection) != -1;
140
141
  },
141
142
  onListFocus(event) {
142
- const selectedFirstItem = DomHandler.findSingle(this.list, '[data-p-highlight="true"]') || DomHandler.findSingle(this.list, '[data-pc-section="item"]');
143
-
144
- if (selectedFirstItem) {
145
- const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);
146
-
147
- this.focused = true;
148
-
149
- const index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
150
-
151
- this.changeFocusedOptionIndex(index);
152
- this.$emit('focus', event);
153
- }
143
+ this.focused = true;
144
+ this.findCurrentFocusedIndex();
145
+ this.$emit('focus', event);
154
146
  },
155
147
  onListBlur(event) {
156
148
  this.focused = false;
@@ -196,12 +188,18 @@ export default {
196
188
  break;
197
189
  }
198
190
  },
199
- onOptionMouseDown(index) {
191
+ onOptionMouseDown(event, index) {
200
192
  this.focused = true;
201
- this.focusedOptionIndex = index;
193
+ this.focusedOptionIndex = `${this.id}_${index}`;
194
+ event.preventDefault();
195
+ },
196
+ onOptionMouseMove(index) {
197
+ if (this.focusOnHover && this.focused) {
198
+ this.changeFocusedOptionIndex(index);
199
+ }
202
200
  },
203
201
  onArrowDownKey(event) {
204
- const optionIndex = this.findNextOptionIndex(this.focusedOptionIndex);
202
+ const optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex() : this.findFirstSelectedOptionIndex();
205
203
 
206
204
  this.changeFocusedOptionIndex(optionIndex);
207
205
 
@@ -212,7 +210,7 @@ export default {
212
210
  event.preventDefault();
213
211
  },
214
212
  onArrowUpKey(event) {
215
- const optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex);
213
+ const optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex() : this.findLastSelectedOptionIndex();
216
214
 
217
215
  this.changeFocusedOptionIndex(optionIndex);
218
216
 
@@ -224,9 +222,7 @@ export default {
224
222
  },
225
223
  onHomeKey(event) {
226
224
  if (event.ctrlKey && event.shiftKey) {
227
- const items = DomHandler.find(this.list, '[data-pc-section="item"]');
228
- const focusedItem = DomHandler.findSingle(this.list, `[data-pc-section="item"][id=${this.focusedOptionIndex}]`);
229
- const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
225
+ const matchedOptionIndex = this.findMatchedOptionIndex();
230
226
 
231
227
  this.d_selection = [...this.modelValue].slice(0, matchedOptionIndex + 1);
232
228
  this.$emit('update:selection', this.d_selection);
@@ -242,9 +238,7 @@ export default {
242
238
  },
243
239
  onEndKey(event) {
244
240
  if (event.ctrlKey && event.shiftKey) {
245
- const items = DomHandler.find(this.list, '[data-pc-section="item"]');
246
- const focusedItem = DomHandler.findSingle(this.list, `[data-pc-section="item"][id=${this.focusedOptionIndex}]`);
247
- const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
241
+ const matchedOptionIndex = this.findMatchedOptionIndex();
248
242
 
249
243
  this.d_selection = [...this.modelValue].slice(matchedOptionIndex, items.length);
250
244
  this.$emit('update:selection', this.d_selection);
@@ -253,28 +247,23 @@ export default {
253
247
  value: this.d_selection
254
248
  });
255
249
  } else {
256
- this.changeFocusedOptionIndex(DomHandler.find(this.list, '[data-pc-section="item"]').length - 1);
250
+ this.changeFocusedOptionIndex(this.findAllItems().length - 1);
257
251
  }
258
252
 
259
253
  event.preventDefault();
260
254
  },
261
255
  onEnterKey(event) {
262
- const items = DomHandler.find(this.list, '[data-pc-section="item"]');
263
- const focusedItem = DomHandler.findSingle(this.list, `[data-pc-section="item"][id=${this.focusedOptionIndex}]`);
264
- const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
256
+ const matchedOptionIndex = this.findMatchedOptionIndex();
265
257
 
266
258
  this.onItemClick(event, this.modelValue[matchedOptionIndex], matchedOptionIndex);
267
-
268
259
  event.preventDefault();
269
260
  },
270
261
  onSpaceKey(event) {
271
262
  event.preventDefault();
272
263
 
273
264
  if (event.shiftKey && this.d_selection && this.d_selection.length > 0) {
274
- const items = DomHandler.find(this.list, '[data-pc-section="item"]');
275
265
  const selectedItemIndex = ObjectUtils.findIndexInList(this.d_selection[0], [...this.modelValue]);
276
- const focusedItem = DomHandler.findSingle(this.list, `[data-pc-section="item"][id=${this.focusedOptionIndex}]`);
277
- const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
266
+ const matchedOptionIndex = this.findMatchedOptionIndex();
278
267
 
279
268
  this.d_selection = [...this.modelValue].slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
280
269
  this.$emit('update:selection', this.d_selection);
@@ -286,20 +275,61 @@ export default {
286
275
  this.onEnterKey(event);
287
276
  }
288
277
  },
289
- findNextOptionIndex(index) {
290
- const items = DomHandler.find(this.list, '[data-pc-section="item"]');
291
- const matchedOptionIndex = [...items].findIndex((link) => link.id === index);
278
+ findAllItems() {
279
+ return DomHandler.find(this.list, '[data-pc-section="item"]');
280
+ },
281
+ findFocusedItem() {
282
+ return DomHandler.findSingle(this.list, `[data-pc-section="item"][id=${this.focusedOptionIndex}]`);
283
+ },
284
+ findCurrentFocusedIndex() {
285
+ this.focusedOptionIndex = this.findFirstSelectedOptionIndex();
286
+
287
+ if (this.autoOptionFocus && this.focusedOptionIndex === -1) {
288
+ this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
289
+ }
290
+
291
+ this.scrollInView(this.focusedOptionIndex);
292
+ },
293
+ findFirstFocusedOptionIndex() {
294
+ const firstFocusableItem = DomHandler.findSingle(this.list, '[data-pc-section="item"]');
295
+
296
+ return DomHandler.getAttribute(firstFocusableItem, 'id');
297
+ },
298
+ findFirstSelectedOptionIndex() {
299
+ if (this.hasSelectedOption) {
300
+ const selectedFirstItem = DomHandler.findSingle(this.list, '[data-p-highlight="true"]');
301
+
302
+ return DomHandler.getAttribute(selectedFirstItem, 'id');
303
+ }
304
+
305
+ return -1;
306
+ },
307
+ findLastSelectedOptionIndex() {
308
+ if (this.hasSelectedOption) {
309
+ const selectedItems = DomHandler.find(this.list, '[data-p-highlight="true"]');
310
+
311
+ return ObjectUtils.findIndexInList(selectedItems[selectedItems.length - 1], this.list.children);
312
+ }
313
+
314
+ return -1;
315
+ },
316
+ findMatchedOptionIndex(id = this.focusedOptionIndex) {
317
+ const items = this.findAllItems();
318
+
319
+ return [...items].findIndex((link) => link.id === id);
320
+ },
321
+ findNextOptionIndex() {
322
+ const matchedOptionIndex = this.findMatchedOptionIndex();
292
323
 
293
324
  return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
294
325
  },
295
- findPrevOptionIndex(index) {
296
- const items = DomHandler.find(this.list, '[data-pc-section="item"]');
297
- const matchedOptionIndex = [...items].findIndex((link) => link.id === index);
326
+ findPrevOptionIndex() {
327
+ const matchedOptionIndex = this.findMatchedOptionIndex();
298
328
 
299
329
  return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
300
330
  },
301
331
  changeFocusedOptionIndex(index) {
302
- const items = DomHandler.find(this.list, '[data-pc-section="item"]');
332
+ const items = this.findAllItems();
303
333
 
304
334
  let order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
305
335
 
@@ -426,8 +456,7 @@ export default {
426
456
  const selectedIndex = ObjectUtils.findIndexInList(item, this.d_selection);
427
457
  const selected = selectedIndex != -1;
428
458
  const metaSelection = this.itemTouched ? false : this.metaKeySelection;
429
-
430
- const selectedId = DomHandler.find(this.list, '[data-pc-section="item"]')[index].getAttribute('id');
459
+ const selectedId = this.findAllItems()[index].getAttribute('id');
431
460
 
432
461
  this.focusedOptionIndex = selectedId;
433
462
 
@@ -458,18 +487,6 @@ export default {
458
487
  onItemTouchEnd() {
459
488
  this.itemTouched = true;
460
489
  },
461
- findNextItem(item) {
462
- let nextItem = item.nextElementSibling;
463
-
464
- if (nextItem) return !(DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findNextItem(nextItem) : nextItem;
465
- else return null;
466
- },
467
- findPrevItem(item) {
468
- let prevItem = item.previousElementSibling;
469
-
470
- if (prevItem) return !(DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findPrevItem(prevItem) : prevItem;
471
- else return null;
472
- },
473
490
  updateListScroll() {
474
491
  const listItems = DomHandler.find(this.list, '[data-pc-section="item"][data-p-highlight="true"]');
475
492
 
@@ -562,6 +579,9 @@ export default {
562
579
  },
563
580
  moveBottomAriaLabel() {
564
581
  return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveBottom : undefined;
582
+ },
583
+ hasSelectedOption() {
584
+ return ObjectUtils.isNotEmpty(this.d_selection);
565
585
  }
566
586
  },
567
587
  components: {
@@ -46,6 +46,14 @@ var script$1 = {
46
46
  type: Boolean,
47
47
  "default": false
48
48
  },
49
+ autoOptionFocus: {
50
+ type: Boolean,
51
+ "default": true
52
+ },
53
+ focusOnHover: {
54
+ type: Boolean,
55
+ "default": true
56
+ },
49
57
  responsive: {
50
58
  type: Boolean,
51
59
  "default": true
@@ -157,14 +165,9 @@ var script = {
157
165
  return utils.ObjectUtils.findIndexInList(item, this.d_selection) != -1;
158
166
  },
159
167
  onListFocus: function onListFocus(event) {
160
- var selectedFirstItem = utils.DomHandler.findSingle(this.list, '[data-p-highlight="true"]') || utils.DomHandler.findSingle(this.list, '[data-pc-section="item"]');
161
- if (selectedFirstItem) {
162
- var findIndex = utils.ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);
163
- this.focused = true;
164
- var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
165
- this.changeFocusedOptionIndex(index);
166
- this.$emit('focus', event);
167
- }
168
+ this.focused = true;
169
+ this.findCurrentFocusedIndex();
170
+ this.$emit('focus', event);
168
171
  },
169
172
  onListBlur: function onListBlur(event) {
170
173
  this.focused = false;
@@ -200,12 +203,18 @@ var script = {
200
203
  }
201
204
  }
202
205
  },
203
- onOptionMouseDown: function onOptionMouseDown(index) {
206
+ onOptionMouseDown: function onOptionMouseDown(event, index) {
204
207
  this.focused = true;
205
- this.focusedOptionIndex = index;
208
+ this.focusedOptionIndex = "".concat(this.id, "_").concat(index);
209
+ event.preventDefault();
210
+ },
211
+ onOptionMouseMove: function onOptionMouseMove(index) {
212
+ if (this.focusOnHover && this.focused) {
213
+ this.changeFocusedOptionIndex(index);
214
+ }
206
215
  },
207
216
  onArrowDownKey: function onArrowDownKey(event) {
208
- var optionIndex = this.findNextOptionIndex(this.focusedOptionIndex);
217
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex() : this.findFirstSelectedOptionIndex();
209
218
  this.changeFocusedOptionIndex(optionIndex);
210
219
  if (event.shiftKey) {
211
220
  this.onEnterKey(event);
@@ -213,7 +222,7 @@ var script = {
213
222
  event.preventDefault();
214
223
  },
215
224
  onArrowUpKey: function onArrowUpKey(event) {
216
- var optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex);
225
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex() : this.findLastSelectedOptionIndex();
217
226
  this.changeFocusedOptionIndex(optionIndex);
218
227
  if (event.shiftKey) {
219
228
  this.onEnterKey(event);
@@ -222,11 +231,7 @@ var script = {
222
231
  },
223
232
  onHomeKey: function onHomeKey(event) {
224
233
  if (event.ctrlKey && event.shiftKey) {
225
- var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
226
- var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
227
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
228
- return item === focusedItem;
229
- });
234
+ var matchedOptionIndex = this.findMatchedOptionIndex();
230
235
  this.d_selection = _toConsumableArray(this.modelValue).slice(0, matchedOptionIndex + 1);
231
236
  this.$emit('update:selection', this.d_selection);
232
237
  this.$emit('selection-change', {
@@ -240,11 +245,7 @@ var script = {
240
245
  },
241
246
  onEndKey: function onEndKey(event) {
242
247
  if (event.ctrlKey && event.shiftKey) {
243
- var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
244
- var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
245
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
246
- return item === focusedItem;
247
- });
248
+ var matchedOptionIndex = this.findMatchedOptionIndex();
248
249
  this.d_selection = _toConsumableArray(this.modelValue).slice(matchedOptionIndex, items.length);
249
250
  this.$emit('update:selection', this.d_selection);
250
251
  this.$emit('selection-change', {
@@ -252,28 +253,20 @@ var script = {
252
253
  value: this.d_selection
253
254
  });
254
255
  } else {
255
- this.changeFocusedOptionIndex(utils.DomHandler.find(this.list, '[data-pc-section="item"]').length - 1);
256
+ this.changeFocusedOptionIndex(this.findAllItems().length - 1);
256
257
  }
257
258
  event.preventDefault();
258
259
  },
259
260
  onEnterKey: function onEnterKey(event) {
260
- var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
261
- var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
262
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
263
- return item === focusedItem;
264
- });
261
+ var matchedOptionIndex = this.findMatchedOptionIndex();
265
262
  this.onItemClick(event, this.modelValue[matchedOptionIndex], matchedOptionIndex);
266
263
  event.preventDefault();
267
264
  },
268
265
  onSpaceKey: function onSpaceKey(event) {
269
266
  event.preventDefault();
270
267
  if (event.shiftKey && this.d_selection && this.d_selection.length > 0) {
271
- var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
272
268
  var selectedItemIndex = utils.ObjectUtils.findIndexInList(this.d_selection[0], _toConsumableArray(this.modelValue));
273
- var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
274
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
275
- return item === focusedItem;
276
- });
269
+ var matchedOptionIndex = this.findMatchedOptionIndex();
277
270
  this.d_selection = _toConsumableArray(this.modelValue).slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
278
271
  this.$emit('update:selection', this.d_selection);
279
272
  this.$emit('selection-change', {
@@ -284,22 +277,54 @@ var script = {
284
277
  this.onEnterKey(event);
285
278
  }
286
279
  },
287
- findNextOptionIndex: function findNextOptionIndex(index) {
288
- var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
289
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
290
- return link.id === index;
280
+ findAllItems: function findAllItems() {
281
+ return utils.DomHandler.find(this.list, '[data-pc-section="item"]');
282
+ },
283
+ findFocusedItem: function findFocusedItem() {
284
+ return utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
285
+ },
286
+ findCurrentFocusedIndex: function findCurrentFocusedIndex() {
287
+ this.focusedOptionIndex = this.findFirstSelectedOptionIndex();
288
+ if (this.autoOptionFocus && this.focusedOptionIndex === -1) {
289
+ this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
290
+ }
291
+ this.scrollInView(this.focusedOptionIndex);
292
+ },
293
+ findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
294
+ var firstFocusableItem = utils.DomHandler.findSingle(this.list, '[data-pc-section="item"]');
295
+ return utils.DomHandler.getAttribute(firstFocusableItem, 'id');
296
+ },
297
+ findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
298
+ if (this.hasSelectedOption) {
299
+ var selectedFirstItem = utils.DomHandler.findSingle(this.list, '[data-p-highlight="true"]');
300
+ return utils.DomHandler.getAttribute(selectedFirstItem, 'id');
301
+ }
302
+ return -1;
303
+ },
304
+ findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
305
+ if (this.hasSelectedOption) {
306
+ var selectedItems = utils.DomHandler.find(this.list, '[data-p-highlight="true"]');
307
+ return utils.ObjectUtils.findIndexInList(selectedItems[selectedItems.length - 1], this.list.children);
308
+ }
309
+ return -1;
310
+ },
311
+ findMatchedOptionIndex: function findMatchedOptionIndex() {
312
+ var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.focusedOptionIndex;
313
+ var items = this.findAllItems();
314
+ return _toConsumableArray(items).findIndex(function (link) {
315
+ return link.id === id;
291
316
  });
317
+ },
318
+ findNextOptionIndex: function findNextOptionIndex() {
319
+ var matchedOptionIndex = this.findMatchedOptionIndex();
292
320
  return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
293
321
  },
294
- findPrevOptionIndex: function findPrevOptionIndex(index) {
295
- var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
296
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
297
- return link.id === index;
298
- });
322
+ findPrevOptionIndex: function findPrevOptionIndex() {
323
+ var matchedOptionIndex = this.findMatchedOptionIndex();
299
324
  return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
300
325
  },
301
326
  changeFocusedOptionIndex: function changeFocusedOptionIndex(index) {
302
- var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
327
+ var items = this.findAllItems();
303
328
  var order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
304
329
  this.focusedOptionIndex = items[order] ? items[order].getAttribute('id') : -1;
305
330
  this.scrollInView(this.focusedOptionIndex);
@@ -410,7 +435,7 @@ var script = {
410
435
  var selectedIndex = utils.ObjectUtils.findIndexInList(item, this.d_selection);
411
436
  var selected = selectedIndex != -1;
412
437
  var metaSelection = this.itemTouched ? false : this.metaKeySelection;
413
- var selectedId = utils.DomHandler.find(this.list, '[data-pc-section="item"]')[index].getAttribute('id');
438
+ var selectedId = this.findAllItems()[index].getAttribute('id');
414
439
  this.focusedOptionIndex = selectedId;
415
440
  if (metaSelection) {
416
441
  var metaKey = event.metaKey || event.ctrlKey;
@@ -441,14 +466,6 @@ var script = {
441
466
  onItemTouchEnd: function onItemTouchEnd() {
442
467
  this.itemTouched = true;
443
468
  },
444
- findNextItem: function findNextItem(item) {
445
- var nextItem = item.nextElementSibling;
446
- if (nextItem) return !(utils.DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findNextItem(nextItem) : nextItem;else return null;
447
- },
448
- findPrevItem: function findPrevItem(item) {
449
- var prevItem = item.previousElementSibling;
450
- if (prevItem) return !(utils.DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findPrevItem(prevItem) : prevItem;else return null;
451
- },
452
469
  updateListScroll: function updateListScroll() {
453
470
  var listItems = utils.DomHandler.find(this.list, '[data-pc-section="item"][data-p-highlight="true"]');
454
471
  if (listItems && listItems.length) {
@@ -513,6 +530,9 @@ var script = {
513
530
  },
514
531
  moveBottomAriaLabel: function moveBottomAriaLabel() {
515
532
  return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveBottom : undefined;
533
+ },
534
+ hasSelectedOption: function hasSelectedOption() {
535
+ return utils.ObjectUtils.isNotEmpty(this.d_selection);
516
536
  }
517
537
  },
518
538
  components: {
@@ -533,7 +553,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
533
553
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
534
554
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
535
555
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
536
- var _hoisted_1 = ["id", "onClick", "aria-selected", "onMousedown", "data-p-highlight", "data-p-focused"];
556
+ var _hoisted_1 = ["id", "onClick", "onMousedown", "onMousemove", "aria-selected", "data-p-highlight", "data-p-focused"];
537
557
  function render(_ctx, _cache, $props, $setup, $data, $options) {
538
558
  var _component_AngleUpIcon = vue.resolveComponent("AngleUpIcon");
539
559
  var _component_OLButton = vue.resolveComponent("OLButton");
@@ -655,10 +675,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
655
675
  onTouchend: _cache[0] || (_cache[0] = function () {
656
676
  return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
657
677
  }),
658
- "aria-selected": $options.isSelected(item),
659
678
  onMousedown: function onMousedown($event) {
660
- return $options.onOptionMouseDown(i);
661
- }
679
+ return $options.onOptionMouseDown($event, i);
680
+ },
681
+ onMousemove: function onMousemove($event) {
682
+ return $options.onOptionMouseMove(i);
683
+ },
684
+ "aria-selected": $options.isSelected(item)
662
685
  }, $options.getPTOptions(item, 'item', i), {
663
686
  "data-p-highlight": $options.isSelected(item),
664
687
  "data-p-focused": "".concat($data.id, "_").concat(i) === $options.focusedOptionId
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/icons/angledoubledown"),n=require("primevue/icons/angledoubleup"),i=require("primevue/icons/angledown"),o=require("primevue/icons/angleup"),r=require("primevue/ripple"),l=require("primevue/utils"),s=require("primevue/basecomponent"),c=require("primevue/orderlist/style"),a=require("vue");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(e),p=d(t),m=d(n),h=d(i),f=d(o),v=d(r);function b(e){return D(e)||I(e)||g(e)||y()}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function I(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function D(e){if(Array.isArray(e))return x(e)}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var O={name:"OrderList",extends:{name:"BaseOrderList",extends:d(s).default,props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!1},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:d(c).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(e){this.id=e||l.UniqueComponentId()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||l.UniqueComponentId(),this.responsive&&this.createStyle()},methods:{getItemKey:function(e,t){return this.dataKey?l.ObjectUtils.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,n){return this.ptm(t,{context:{active:this.isSelected(e),focused:"".concat(this.id,"_").concat(n)===this.focusedOptionId}})},isSelected:function(e){return-1!=l.ObjectUtils.findIndexInList(e,this.d_selection)},onListFocus:function(e){var t=l.DomHandler.findSingle(this.list,'[data-p-highlight="true"]')||l.DomHandler.findSingle(this.list,'[data-pc-section="item"]');if(t){var n=l.ObjectUtils.findIndexInList(t,this.list.children);this.focused=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:t?n:-1),this.$emit("focus",e)}},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onListKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"KeyA":e.ctrlKey&&(this.d_selection=b(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onOptionMouseDown:function(e){this.focused=!0,this.focusedOptionIndex=e},onArrowDownKey:function(e){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onArrowUpKey:function(e){var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onHomeKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=b(t).findIndex((function(e){return e===n}));this.d_selection=b(this.modelValue).slice(0,i+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(0);e.preventDefault()},onEndKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=b(t).findIndex((function(e){return e===n}));this.d_selection=b(this.modelValue).slice(i,t.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(l.DomHandler.find(this.list,'[data-pc-section="item"]').length-1);e.preventDefault()},onEnterKey:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=b(t).findIndex((function(e){return e===n}));this.onItemClick(e,this.modelValue[i],i),e.preventDefault()},onSpaceKey:function(e){if(e.preventDefault(),e.shiftKey&&this.d_selection&&this.d_selection.length>0){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.ObjectUtils.findIndexInList(this.d_selection[0],b(this.modelValue)),i=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),o=b(t).findIndex((function(e){return e===i}));this.d_selection=b(this.modelValue).slice(Math.min(n,o),Math.max(n,o)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.onEnterKey(e)},findNextOptionIndex:function(e){var t=b(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=b(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=e>=t.length?t.length-1:e<0?0:e;this.focusedOptionIndex=t[n]?t[n].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(e){var t=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id="'.concat(e,'"]'));t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(e){if(this.d_selection){for(var t=b(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t[i-1];t[i-1]=t[i],t[i]=o}this.reorderDirection="up",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveTop:function(e){if(this.d_selection){for(var t=b(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t.splice(i,1)[0];t.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveDown:function(e){if(this.d_selection){for(var t=b(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t[i+1];t[i+1]=t[i],t[i]=o}this.reorderDirection="down",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveBottom:function(e){if(this.d_selection){for(var t=b(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t.splice(i,1)[0];t.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},onItemClick:function(e,t,n){this.itemTouched=!1;var i=l.ObjectUtils.findIndexInList(t,this.d_selection),o=-1!=i,r=!this.itemTouched&&this.metaKeySelection,s=l.DomHandler.find(this.list,'[data-pc-section="item"]')[n].getAttribute("id");if(this.focusedOptionIndex=s,r){var c=e.metaKey||e.ctrlKey;o&&c?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=c&&this.d_selection?b(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=this.d_selection?b(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},findNextItem:function(e){var t=e.nextElementSibling;return t?"item"!==l.DomHandler.getAttribute(t,"data-pc-section")?this.findNextItem(t):t:null},findPrevItem:function(e){var t=e.previousElementSibling;return t?"item"!==l.DomHandler.getAttribute(nextItem,"data-pc-section")?this.findPrevItem(t):t:null},updateListScroll:function(){var e=l.DomHandler.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(e&&e.length)switch(this.reorderDirection){case"up":l.DomHandler.scrollInView(this.list,e[0]);break;case"top":this.list.scrollTop=0;break;case"down":l.DomHandler.scrollInView(this.list,e[e.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(e){this.list=e?e.$el:void 0}},computed:{attributeSelector:function(){return l.UniqueComponentId()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0}},components:{OLButton:u.default,AngleUpIcon:f.default,AngleDownIcon:h.default,AngleDoubleUpIcon:m.default,AngleDoubleDownIcon:p.default},directives:{ripple:v.default}};function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){var i;return(t="symbol"==w(i=B(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $=["id","onClick","aria-selected","onMousedown","data-p-highlight","data-p-focused"];O.render=function(e,t,n,i,o,r){var l=a.resolveComponent("AngleUpIcon"),s=a.resolveComponent("OLButton"),c=a.resolveComponent("AngleDoubleUpIcon"),d=a.resolveComponent("AngleDownIcon"),u=a.resolveComponent("AngleDoubleDownIcon"),p=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},e.ptm("root")),[a.createElementVNode("div",a.mergeProps({class:e.cx("controls")},e.ptm("controls")),[a.renderSlot(e.$slots,"controlsstart"),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled()},e.moveUpButtonProps,{pt:e.ptm("moveUpButton"),unstyled:e.unstyled,"data-pc-section":"moveupbutton"}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"moveupicon",{},(function(){return[a.createVNode(l,a.mergeProps(e.ptm("moveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled()},e.moveTopButtonProps,{pt:e.ptm("moveTopButton"),unstyled:e.unstyled,"data-pc-section":"movetopbutton"}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movetopicon",{},(function(){return[a.createVNode(c,a.mergeProps(e.ptm("moveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled()},e.moveDownButtonProps,{pt:e.ptm("moveDownButton"),unstyled:e.unstyled,"data-pc-section":"movedownbutton"}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movedownicon",{},(function(){return[a.createVNode(d,a.mergeProps(e.ptm("moveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled()},e.moveBottomButtonProps,{pt:e.ptm("moveBottomButton"),unstyled:e.unstyled,"data-pc-section":"movebottombutton"}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movebottomicon",{},(function(){return[a.createVNode(u,a.mergeProps(e.ptm("moveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.renderSlot(e.$slots,"controlsend")],16),a.createElementVNode("div",a.mergeProps({class:e.cx("container")},e.ptm("container")),[e.$slots.header?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[a.renderSlot(e.$slots,"header")],16)):a.createCommentVNode("",!0),a.createVNode(a.TransitionGroup,a.mergeProps({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:e.cx("list"),style:e.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:e.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},_(_(_({},e.listProps),e.ptm("list")),e.ptm("transition"))),{default:a.withCtx((function(){return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.modelValue,(function(n,i){return a.withDirectives((a.openBlock(),a.createElementBlock("li",a.mergeProps({key:r.getItemKey(n,i),id:o.id+"_"+i,role:"option",class:e.cx("item",{item:n,id:"".concat(o.id,"_").concat(i)}),onClick:function(e){return r.onItemClick(e,n,i)},onTouchend:t[0]||(t[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),"aria-selected":r.isSelected(n),onMousedown:function(e){return r.onOptionMouseDown(i)}},r.getPTOptions(n,"item",i),{"data-p-highlight":r.isSelected(n),"data-p-focused":"".concat(o.id,"_").concat(i)===r.focusedOptionId}),[a.renderSlot(e.$slots,"item",{item:n,index:i})],16,$)),[[p]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)},module.exports=O;
1
+ "use strict";var e=require("primevue/button"),t=require("primevue/icons/angledoubledown"),n=require("primevue/icons/angledoubleup"),i=require("primevue/icons/angledown"),o=require("primevue/icons/angleup"),r=require("primevue/ripple"),s=require("primevue/utils"),l=require("primevue/basecomponent"),c=require("primevue/orderlist/style"),d=require("vue");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(e),p=a(t),h=a(n),m=a(i),f=a(o),v=a(r);function b(e){return O(e)||I(e)||g(e)||y()}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function I(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function O(e){if(Array.isArray(e))return x(e)}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var w={name:"OrderList",extends:{name:"BaseOrderList",extends:a(l).default,props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!1},autoOptionFocus:{type:Boolean,default:!0},focusOnHover:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a(c).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(e){this.id=e||s.UniqueComponentId()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||s.UniqueComponentId(),this.responsive&&this.createStyle()},methods:{getItemKey:function(e,t){return this.dataKey?s.ObjectUtils.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,n){return this.ptm(t,{context:{active:this.isSelected(e),focused:"".concat(this.id,"_").concat(n)===this.focusedOptionId}})},isSelected:function(e){return-1!=s.ObjectUtils.findIndexInList(e,this.d_selection)},onListFocus:function(e){this.focused=!0,this.findCurrentFocusedIndex(),this.$emit("focus",e)},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onListKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"KeyA":e.ctrlKey&&(this.d_selection=b(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onOptionMouseDown:function(e,t){this.focused=!0,this.focusedOptionIndex="".concat(this.id,"_").concat(t),e.preventDefault()},onOptionMouseMove:function(e){this.focusOnHover&&this.focused&&this.changeFocusedOptionIndex(e)},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex():this.findFirstSelectedOptionIndex();this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onArrowUpKey:function(e){var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex():this.findLastSelectedOptionIndex();this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onHomeKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=this.findMatchedOptionIndex();this.d_selection=b(this.modelValue).slice(0,t+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(0);e.preventDefault()},onEndKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=this.findMatchedOptionIndex();this.d_selection=b(this.modelValue).slice(t,items.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(this.findAllItems().length-1);e.preventDefault()},onEnterKey:function(e){var t=this.findMatchedOptionIndex();this.onItemClick(e,this.modelValue[t],t),e.preventDefault()},onSpaceKey:function(e){if(e.preventDefault(),e.shiftKey&&this.d_selection&&this.d_selection.length>0){var t=s.ObjectUtils.findIndexInList(this.d_selection[0],b(this.modelValue)),n=this.findMatchedOptionIndex();this.d_selection=b(this.modelValue).slice(Math.min(t,n),Math.max(t,n)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.onEnterKey(e)},findAllItems:function(){return s.DomHandler.find(this.list,'[data-pc-section="item"]')},findFocusedItem:function(){return s.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]"))},findCurrentFocusedIndex:function(){this.focusedOptionIndex=this.findFirstSelectedOptionIndex(),this.autoOptionFocus&&-1===this.focusedOptionIndex&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex()),this.scrollInView(this.focusedOptionIndex)},findFirstFocusedOptionIndex:function(){var e=s.DomHandler.findSingle(this.list,'[data-pc-section="item"]');return s.DomHandler.getAttribute(e,"id")},findFirstSelectedOptionIndex:function(){if(this.hasSelectedOption){var e=s.DomHandler.findSingle(this.list,'[data-p-highlight="true"]');return s.DomHandler.getAttribute(e,"id")}return-1},findLastSelectedOptionIndex:function(){if(this.hasSelectedOption){var e=s.DomHandler.find(this.list,'[data-p-highlight="true"]');return s.ObjectUtils.findIndexInList(e[e.length-1],this.list.children)}return-1},findMatchedOptionIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.focusedOptionIndex;return b(this.findAllItems()).findIndex((function(t){return t.id===e}))},findNextOptionIndex:function(){var e=this.findMatchedOptionIndex();return e>-1?e+1:0},findPrevOptionIndex:function(){var e=this.findMatchedOptionIndex();return e>-1?e-1:0},changeFocusedOptionIndex:function(e){var t=this.findAllItems(),n=e>=t.length?t.length-1:e<0?0:e;this.focusedOptionIndex=t[n]?t[n].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(e){var t=s.DomHandler.findSingle(this.list,'[data-pc-section="item"][id="'.concat(e,'"]'));t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(e){if(this.d_selection){for(var t=b(this.modelValue),n=0;n<this.d_selection.length;n++){var i=s.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t[i-1];t[i-1]=t[i],t[i]=o}this.reorderDirection="up",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveTop:function(e){if(this.d_selection){for(var t=b(this.modelValue),n=0;n<this.d_selection.length;n++){var i=s.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t.splice(i,1)[0];t.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveDown:function(e){if(this.d_selection){for(var t=b(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=s.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t[i+1];t[i+1]=t[i],t[i]=o}this.reorderDirection="down",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveBottom:function(e){if(this.d_selection){for(var t=b(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=s.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t.splice(i,1)[0];t.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},onItemClick:function(e,t,n){this.itemTouched=!1;var i=s.ObjectUtils.findIndexInList(t,this.d_selection),o=-1!=i,r=!this.itemTouched&&this.metaKeySelection,l=this.findAllItems()[n].getAttribute("id");if(this.focusedOptionIndex=l,r){var c=e.metaKey||e.ctrlKey;o&&c?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=c&&this.d_selection?b(this.d_selection):[],s.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=this.d_selection?b(this.d_selection):[],s.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},updateListScroll:function(){var e=s.DomHandler.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(e&&e.length)switch(this.reorderDirection){case"up":s.DomHandler.scrollInView(this.list,e[0]);break;case"top":this.list.scrollTop=0;break;case"down":s.DomHandler.scrollInView(this.list,e[e.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",s.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(e){this.list=e?e.$el:void 0}},computed:{attributeSelector:function(){return s.UniqueComponentId()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},hasSelectedOption:function(){return s.ObjectUtils.isNotEmpty(this.d_selection)}},components:{OLButton:u.default,AngleUpIcon:f.default,AngleDownIcon:m.default,AngleDoubleUpIcon:h.default,AngleDoubleDownIcon:p.default},directives:{ripple:v.default}};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){var i;return(t="symbol"==D(i=B(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=D(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var E=["id","onClick","onMousedown","onMousemove","aria-selected","data-p-highlight","data-p-focused"];w.render=function(e,t,n,i,o,r){var s=d.resolveComponent("AngleUpIcon"),l=d.resolveComponent("OLButton"),c=d.resolveComponent("AngleDoubleUpIcon"),a=d.resolveComponent("AngleDownIcon"),u=d.resolveComponent("AngleDoubleDownIcon"),p=d.resolveDirective("ripple");return d.openBlock(),d.createElementBlock("div",d.mergeProps({class:e.cx("root")},e.ptm("root")),[d.createElementVNode("div",d.mergeProps({class:e.cx("controls")},e.ptm("controls")),[d.renderSlot(e.$slots,"controlsstart"),d.createVNode(l,d.mergeProps({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled()},e.moveUpButtonProps,{pt:e.ptm("moveUpButton"),unstyled:e.unstyled,"data-pc-section":"moveupbutton"}),{icon:d.withCtx((function(){return[d.renderSlot(e.$slots,"moveupicon",{},(function(){return[d.createVNode(s,d.mergeProps(e.ptm("moveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),d.createVNode(l,d.mergeProps({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled()},e.moveTopButtonProps,{pt:e.ptm("moveTopButton"),unstyled:e.unstyled,"data-pc-section":"movetopbutton"}),{icon:d.withCtx((function(){return[d.renderSlot(e.$slots,"movetopicon",{},(function(){return[d.createVNode(c,d.mergeProps(e.ptm("moveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),d.createVNode(l,d.mergeProps({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled()},e.moveDownButtonProps,{pt:e.ptm("moveDownButton"),unstyled:e.unstyled,"data-pc-section":"movedownbutton"}),{icon:d.withCtx((function(){return[d.renderSlot(e.$slots,"movedownicon",{},(function(){return[d.createVNode(a,d.mergeProps(e.ptm("moveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),d.createVNode(l,d.mergeProps({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled()},e.moveBottomButtonProps,{pt:e.ptm("moveBottomButton"),unstyled:e.unstyled,"data-pc-section":"movebottombutton"}),{icon:d.withCtx((function(){return[d.renderSlot(e.$slots,"movebottomicon",{},(function(){return[d.createVNode(u,d.mergeProps(e.ptm("moveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),d.renderSlot(e.$slots,"controlsend")],16),d.createElementVNode("div",d.mergeProps({class:e.cx("container")},e.ptm("container")),[e.$slots.header?(d.openBlock(),d.createElementBlock("div",d.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[d.renderSlot(e.$slots,"header")],16)):d.createCommentVNode("",!0),d.createVNode(d.TransitionGroup,d.mergeProps({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:e.cx("list"),style:e.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:e.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},_(_(_({},e.listProps),e.ptm("list")),e.ptm("transition"))),{default:d.withCtx((function(){return[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.modelValue,(function(n,i){return d.withDirectives((d.openBlock(),d.createElementBlock("li",d.mergeProps({key:r.getItemKey(n,i),id:o.id+"_"+i,role:"option",class:e.cx("item",{item:n,id:"".concat(o.id,"_").concat(i)}),onClick:function(e){return r.onItemClick(e,n,i)},onTouchend:t[0]||(t[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),onMousedown:function(e){return r.onOptionMouseDown(e,i)},onMousemove:function(e){return r.onOptionMouseMove(i)},"aria-selected":r.isSelected(n)},r.getPTOptions(n,"item",i),{"data-p-highlight":r.isSelected(n),"data-p-focused":"".concat(o.id,"_").concat(i)===r.focusedOptionId}),[d.renderSlot(e.$slots,"item",{item:n,index:i})],16,E)),[[p]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)},module.exports=w;