primevue 3.29.2 → 3.30.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 (1288) hide show
  1. package/README.md +15 -9
  2. package/accordion/Accordion.d.ts +17 -0
  3. package/accordion/Accordion.vue +38 -92
  4. package/accordion/BaseAccordion.vue +93 -0
  5. package/accordion/accordion.cjs.js +340 -330
  6. package/accordion/accordion.cjs.min.js +1 -1
  7. package/accordion/accordion.esm.js +339 -329
  8. package/accordion/accordion.esm.min.js +1 -1
  9. package/accordion/accordion.js +340 -331
  10. package/accordion/accordion.min.js +1 -1
  11. package/accordiontab/AccordionTab.d.ts +28 -0
  12. package/accordiontab/AccordionTab.vue +2 -13
  13. package/accordiontab/BaseAccordionTab.vue +24 -0
  14. package/accordiontab/accordiontab.cjs.js +24 -14
  15. package/accordiontab/accordiontab.cjs.min.js +1 -1
  16. package/accordiontab/accordiontab.esm.js +24 -14
  17. package/accordiontab/accordiontab.esm.min.js +1 -1
  18. package/accordiontab/accordiontab.js +24 -14
  19. package/accordiontab/accordiontab.min.js +1 -1
  20. package/api/api.cjs.js +475 -500
  21. package/api/api.cjs.min.js +1 -1
  22. package/api/api.esm.js +475 -500
  23. package/api/api.esm.min.js +1 -1
  24. package/api/api.js +475 -500
  25. package/api/api.min.js +1 -1
  26. package/autocomplete/AutoComplete.d.ts +23 -2
  27. package/autocomplete/AutoComplete.vue +40 -322
  28. package/autocomplete/BaseAutoComplete.vue +322 -0
  29. package/autocomplete/autocomplete.cjs.js +1290 -1237
  30. package/autocomplete/autocomplete.cjs.min.js +1 -1
  31. package/autocomplete/autocomplete.esm.js +1291 -1238
  32. package/autocomplete/autocomplete.esm.min.js +1 -1
  33. package/autocomplete/autocomplete.js +1290 -1238
  34. package/autocomplete/autocomplete.min.js +1 -1
  35. package/avatar/Avatar.d.ts +14 -0
  36. package/avatar/Avatar.vue +13 -81
  37. package/avatar/BaseAvatar.vue +96 -0
  38. package/avatar/avatar.cjs.js +101 -110
  39. package/avatar/avatar.cjs.min.js +1 -1
  40. package/avatar/avatar.esm.js +102 -111
  41. package/avatar/avatar.esm.min.js +1 -1
  42. package/avatar/avatar.js +102 -112
  43. package/avatar/avatar.min.js +1 -1
  44. package/avatargroup/AvatarGroup.d.ts +11 -0
  45. package/avatargroup/AvatarGroup.vue +3 -14
  46. package/avatargroup/BaseAvatarGroup.vue +35 -0
  47. package/avatargroup/avatargroup.cjs.js +31 -35
  48. package/avatargroup/avatargroup.cjs.min.js +1 -1
  49. package/avatargroup/avatargroup.esm.js +31 -35
  50. package/avatargroup/avatargroup.esm.min.js +1 -1
  51. package/avatargroup/avatargroup.js +32 -37
  52. package/avatargroup/avatargroup.min.js +1 -1
  53. package/badge/Badge.d.ts +12 -0
  54. package/badge/Badge.vue +3 -38
  55. package/badge/BaseBadge.vue +86 -0
  56. package/badge/badge.cjs.js +59 -40
  57. package/badge/badge.cjs.min.js +1 -1
  58. package/badge/badge.esm.js +59 -40
  59. package/badge/badge.esm.min.js +1 -1
  60. package/badge/badge.js +60 -42
  61. package/badge/badge.min.js +1 -1
  62. package/badgedirective/BadgeDirective.d.ts +43 -1
  63. package/badgedirective/badgedirective.cjs.js +66 -45
  64. package/badgedirective/badgedirective.cjs.min.js +1 -1
  65. package/badgedirective/badgedirective.esm.js +64 -47
  66. package/badgedirective/badgedirective.esm.min.js +1 -1
  67. package/badgedirective/badgedirective.js +66 -47
  68. package/badgedirective/badgedirective.min.js +1 -1
  69. package/base/base.cjs.js +18 -0
  70. package/base/base.cjs.min.js +1 -0
  71. package/base/base.esm.js +13 -0
  72. package/base/base.esm.min.js +1 -0
  73. package/base/base.js +22 -0
  74. package/base/base.min.js +1 -0
  75. package/base/package.json +5 -0
  76. package/basecomponent/BaseComponent.d.ts +23 -0
  77. package/basecomponent/BaseComponent.vue +462 -12
  78. package/basecomponent/basecomponent.cjs.js +170 -36
  79. package/basecomponent/basecomponent.cjs.min.js +1 -1
  80. package/basecomponent/basecomponent.esm.js +170 -36
  81. package/basecomponent/basecomponent.esm.min.js +1 -1
  82. package/basecomponent/basecomponent.js +170 -38
  83. package/basecomponent/basecomponent.min.js +1 -1
  84. package/basecomponent/package.json +1 -0
  85. package/basedirective/BaseDirective.d.ts +38 -0
  86. package/basedirective/basedirective.cjs.js +157 -0
  87. package/basedirective/basedirective.cjs.min.js +1 -0
  88. package/basedirective/basedirective.esm.js +155 -0
  89. package/basedirective/basedirective.esm.min.js +1 -0
  90. package/basedirective/basedirective.js +157 -0
  91. package/basedirective/basedirective.min.js +1 -0
  92. package/basedirective/package.json +6 -0
  93. package/baseicon/baseicon.cjs.js +22 -26
  94. package/baseicon/baseicon.cjs.min.js +1 -1
  95. package/baseicon/baseicon.esm.js +22 -26
  96. package/baseicon/baseicon.esm.min.js +1 -1
  97. package/baseicon/baseicon.js +22 -26
  98. package/baseicon/baseicon.min.js +1 -1
  99. package/blockui/BaseBlockUI.vue +64 -0
  100. package/blockui/BlockUI.d.ts +12 -0
  101. package/blockui/BlockUI.vue +10 -48
  102. package/blockui/blockui.cjs.js +103 -115
  103. package/blockui/blockui.cjs.min.js +1 -1
  104. package/blockui/blockui.esm.js +103 -115
  105. package/blockui/blockui.esm.min.js +1 -1
  106. package/blockui/blockui.js +103 -116
  107. package/blockui/blockui.min.js +1 -1
  108. package/breadcrumb/BaseBreadcrumb.vue +85 -0
  109. package/breadcrumb/Breadcrumb.d.ts +12 -0
  110. package/breadcrumb/Breadcrumb.vue +6 -54
  111. package/breadcrumb/BreadcrumbItem.vue +10 -21
  112. package/breadcrumb/breadcrumb.cjs.js +198 -219
  113. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  114. package/breadcrumb/breadcrumb.esm.js +198 -219
  115. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  116. package/breadcrumb/breadcrumb.js +198 -220
  117. package/breadcrumb/breadcrumb.min.js +1 -1
  118. package/button/BaseButton.vue +115 -0
  119. package/button/Button.d.ts +24 -0
  120. package/button/Button.vue +21 -121
  121. package/button/button.cjs.js +176 -174
  122. package/button/button.cjs.min.js +1 -1
  123. package/button/button.esm.js +174 -173
  124. package/button/button.esm.min.js +1 -1
  125. package/button/button.js +176 -175
  126. package/button/button.min.js +1 -1
  127. package/calendar/BaseCalendar.vue +453 -0
  128. package/calendar/Calendar.d.ts +24 -12
  129. package/calendar/Calendar.vue +127 -491
  130. package/calendar/calendar.cjs.js +3115 -3197
  131. package/calendar/calendar.cjs.min.js +1 -1
  132. package/calendar/calendar.esm.js +3115 -3197
  133. package/calendar/calendar.esm.min.js +1 -1
  134. package/calendar/calendar.js +3115 -3198
  135. package/calendar/calendar.min.js +1 -1
  136. package/card/BaseCard.vue +21 -0
  137. package/card/Card.d.ts +11 -0
  138. package/card/Card.vue +9 -9
  139. package/card/card.cjs.js +40 -41
  140. package/card/card.cjs.min.js +1 -1
  141. package/card/card.esm.js +40 -41
  142. package/card/card.esm.min.js +1 -1
  143. package/card/card.js +40 -41
  144. package/card/card.min.js +1 -1
  145. package/carousel/BaseCarousel.vue +197 -0
  146. package/carousel/Carousel.d.ts +12 -0
  147. package/carousel/Carousel.vue +36 -188
  148. package/carousel/carousel.cjs.js +705 -737
  149. package/carousel/carousel.cjs.min.js +1 -1
  150. package/carousel/carousel.esm.js +704 -736
  151. package/carousel/carousel.esm.min.js +1 -1
  152. package/carousel/carousel.js +705 -738
  153. package/carousel/carousel.min.js +1 -1
  154. package/cascadeselect/BaseCascadeSelect.vue +257 -0
  155. package/cascadeselect/CascadeSelect.d.ts +19 -7
  156. package/cascadeselect/CascadeSelect.vue +18 -242
  157. package/cascadeselect/CascadeSelectSub.vue +15 -22
  158. package/cascadeselect/cascadeselect.cjs.js +1143 -1083
  159. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  160. package/cascadeselect/cascadeselect.esm.js +1143 -1083
  161. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  162. package/cascadeselect/cascadeselect.js +1143 -1084
  163. package/cascadeselect/cascadeselect.min.js +1 -1
  164. package/chart/BaseChart.vue +48 -0
  165. package/chart/Chart.d.ts +12 -0
  166. package/chart/Chart.vue +3 -27
  167. package/chart/chart.cjs.js +144 -135
  168. package/chart/chart.cjs.min.js +1 -1
  169. package/chart/chart.esm.js +144 -135
  170. package/chart/chart.esm.min.js +1 -1
  171. package/chart/chart.js +145 -137
  172. package/chart/chart.min.js +1 -1
  173. package/checkbox/BaseCheckbox.vue +93 -0
  174. package/checkbox/Checkbox.d.ts +41 -0
  175. package/checkbox/Checkbox.vue +16 -74
  176. package/checkbox/checkbox.cjs.js +201 -140
  177. package/checkbox/checkbox.cjs.min.js +1 -1
  178. package/checkbox/checkbox.esm.js +201 -140
  179. package/checkbox/checkbox.esm.min.js +1 -1
  180. package/checkbox/checkbox.js +202 -141
  181. package/checkbox/checkbox.min.js +1 -1
  182. package/chip/BaseChip.vue +78 -0
  183. package/chip/Chip.d.ts +12 -0
  184. package/chip/Chip.vue +7 -63
  185. package/chip/chip.cjs.js +106 -129
  186. package/chip/chip.cjs.min.js +1 -1
  187. package/chip/chip.esm.js +105 -128
  188. package/chip/chip.esm.min.js +1 -1
  189. package/chip/chip.js +106 -130
  190. package/chip/chip.min.js +1 -1
  191. package/chips/BaseChips.vue +143 -0
  192. package/chips/Chips.d.ts +12 -0
  193. package/chips/Chips.vue +11 -127
  194. package/chips/chips.cjs.js +368 -344
  195. package/chips/chips.cjs.min.js +1 -1
  196. package/chips/chips.esm.js +368 -344
  197. package/chips/chips.esm.min.js +1 -1
  198. package/chips/chips.js +368 -345
  199. package/chips/chips.min.js +1 -1
  200. package/colorpicker/BaseColorPicker.vue +89 -0
  201. package/colorpicker/ColorPicker.d.ts +14 -2
  202. package/colorpicker/ColorPicker.vue +16 -34
  203. package/colorpicker/colorpicker.cjs.js +699 -650
  204. package/colorpicker/colorpicker.cjs.min.js +1 -1
  205. package/colorpicker/colorpicker.esm.js +698 -649
  206. package/colorpicker/colorpicker.esm.min.js +1 -1
  207. package/colorpicker/colorpicker.js +699 -651
  208. package/colorpicker/colorpicker.min.js +1 -1
  209. package/column/BaseColumn.vue +191 -0
  210. package/column/Column.d.ts +56 -29
  211. package/column/Column.vue +2 -180
  212. package/column/column.cjs.js +193 -183
  213. package/column/column.cjs.min.js +1 -1
  214. package/column/column.esm.js +193 -183
  215. package/column/column.esm.min.js +1 -1
  216. package/column/column.js +193 -183
  217. package/column/column.min.js +1 -1
  218. package/columngroup/BaseColumnGroup.vue +19 -0
  219. package/columngroup/ColumnGroup.d.ts +23 -0
  220. package/columngroup/ColumnGroup.vue +2 -8
  221. package/columngroup/columngroup.cjs.js +21 -11
  222. package/columngroup/columngroup.cjs.min.js +1 -1
  223. package/columngroup/columngroup.esm.js +21 -11
  224. package/columngroup/columngroup.esm.min.js +1 -1
  225. package/columngroup/columngroup.js +21 -11
  226. package/columngroup/columngroup.min.js +1 -1
  227. package/config/PrimeVue.d.ts +15 -1
  228. package/config/config.cjs.js +167 -168
  229. package/config/config.cjs.min.js +1 -1
  230. package/config/config.esm.js +167 -168
  231. package/config/config.esm.min.js +1 -1
  232. package/config/config.js +167 -168
  233. package/config/config.min.js +1 -1
  234. package/confirmationservice/confirmationservice.cjs.js +12 -13
  235. package/confirmationservice/confirmationservice.cjs.min.js +1 -1
  236. package/confirmationservice/confirmationservice.esm.js +12 -13
  237. package/confirmationservice/confirmationservice.esm.min.js +1 -1
  238. package/confirmationservice/confirmationservice.js +12 -13
  239. package/confirmationservice/confirmationservice.min.js +1 -1
  240. package/confirmdialog/BaseConfirmDialog.vue +35 -0
  241. package/confirmdialog/ConfirmDialog.d.ts +12 -0
  242. package/confirmdialog/ConfirmDialog.vue +18 -33
  243. package/confirmdialog/confirmdialog.cjs.js +213 -183
  244. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  245. package/confirmdialog/confirmdialog.esm.js +213 -183
  246. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  247. package/confirmdialog/confirmdialog.js +214 -184
  248. package/confirmdialog/confirmdialog.min.js +1 -1
  249. package/confirmpopup/BaseConfirmPopup.vue +111 -0
  250. package/confirmpopup/ConfirmPopup.d.ts +12 -0
  251. package/confirmpopup/ConfirmPopup.vue +21 -109
  252. package/confirmpopup/confirmpopup.cjs.js +375 -377
  253. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  254. package/confirmpopup/confirmpopup.esm.js +375 -377
  255. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  256. package/confirmpopup/confirmpopup.js +375 -378
  257. package/confirmpopup/confirmpopup.min.js +1 -1
  258. package/contextmenu/BaseContextMenu.vue +133 -0
  259. package/contextmenu/ContextMenu.d.ts +16 -0
  260. package/contextmenu/ContextMenu.vue +6 -93
  261. package/contextmenu/ContextMenuSub.vue +24 -58
  262. package/contextmenu/contextmenu.cjs.js +989 -951
  263. package/contextmenu/contextmenu.cjs.min.js +1 -1
  264. package/contextmenu/contextmenu.esm.js +988 -950
  265. package/contextmenu/contextmenu.esm.min.js +1 -1
  266. package/contextmenu/contextmenu.js +989 -952
  267. package/contextmenu/contextmenu.min.js +1 -1
  268. package/core/core.js +12138 -11708
  269. package/core/core.min.js +76 -70
  270. package/datatable/BaseDataTable.vue +740 -0
  271. package/datatable/BodyCell.vue +48 -35
  272. package/datatable/ColumnFilter.vue +74 -59
  273. package/datatable/DataTable.d.ts +31 -8
  274. package/datatable/DataTable.vue +82 -593
  275. package/datatable/FooterCell.vue +15 -11
  276. package/datatable/HeaderCell.vue +30 -24
  277. package/datatable/HeaderCheckbox.vue +8 -7
  278. package/datatable/RowCheckbox.vue +13 -7
  279. package/datatable/RowRadioButton.vue +13 -7
  280. package/datatable/TableBody.vue +24 -35
  281. package/datatable/TableFooter.vue +20 -9
  282. package/datatable/TableHeader.vue +32 -21
  283. package/datatable/datatable.cjs.js +5908 -5739
  284. package/datatable/datatable.cjs.min.js +1 -1
  285. package/datatable/datatable.esm.js +5908 -5739
  286. package/datatable/datatable.esm.min.js +1 -1
  287. package/datatable/datatable.js +5908 -5740
  288. package/datatable/datatable.min.js +1 -1
  289. package/dataview/BaseDataView.vue +100 -0
  290. package/dataview/DataView.d.ts +16 -0
  291. package/dataview/DataView.vue +13 -86
  292. package/dataview/dataview.cjs.js +291 -295
  293. package/dataview/dataview.cjs.min.js +1 -1
  294. package/dataview/dataview.esm.js +290 -294
  295. package/dataview/dataview.esm.min.js +1 -1
  296. package/dataview/dataview.js +292 -296
  297. package/dataview/dataview.min.js +1 -1
  298. package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
  299. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +12 -0
  300. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +5 -14
  301. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +91 -75
  302. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  303. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +90 -74
  304. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  305. package/dataviewlayoutoptions/dataviewlayoutoptions.js +92 -76
  306. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  307. package/deferredcontent/DeferredContent.d.ts +12 -0
  308. package/deferredcontent/deferredcontent.cjs.js +49 -51
  309. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  310. package/deferredcontent/deferredcontent.esm.js +49 -51
  311. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  312. package/deferredcontent/deferredcontent.js +49 -51
  313. package/deferredcontent/deferredcontent.min.js +1 -1
  314. package/dialog/BaseDialog.vue +319 -0
  315. package/dialog/Dialog.d.ts +12 -0
  316. package/dialog/Dialog.vue +23 -339
  317. package/dialog/dialog.cjs.js +591 -603
  318. package/dialog/dialog.cjs.min.js +1 -1
  319. package/dialog/dialog.esm.js +590 -602
  320. package/dialog/dialog.esm.min.js +1 -1
  321. package/dialog/dialog.js +591 -604
  322. package/dialog/dialog.min.js +1 -1
  323. package/dialogservice/dialogservice.cjs.js +24 -21
  324. package/dialogservice/dialogservice.cjs.min.js +1 -1
  325. package/dialogservice/dialogservice.esm.js +23 -20
  326. package/dialogservice/dialogservice.esm.min.js +1 -1
  327. package/dialogservice/dialogservice.js +24 -21
  328. package/dialogservice/dialogservice.min.js +1 -1
  329. package/divider/BaseDivider.vue +136 -0
  330. package/divider/Divider.d.ts +12 -0
  331. package/divider/Divider.vue +4 -120
  332. package/divider/divider.cjs.js +64 -74
  333. package/divider/divider.cjs.min.js +1 -1
  334. package/divider/divider.esm.js +64 -74
  335. package/divider/divider.esm.min.js +1 -1
  336. package/divider/divider.js +65 -76
  337. package/divider/divider.min.js +1 -1
  338. package/dock/BaseDock.vue +185 -0
  339. package/dock/Dock.d.ts +12 -0
  340. package/dock/Dock.vue +3 -146
  341. package/dock/DockSub.vue +19 -39
  342. package/dock/dock.cjs.js +423 -411
  343. package/dock/dock.cjs.min.js +1 -1
  344. package/dock/dock.esm.js +424 -412
  345. package/dock/dock.esm.min.js +1 -1
  346. package/dock/dock.js +424 -413
  347. package/dock/dock.min.js +1 -1
  348. package/dropdown/BaseDropdown.vue +313 -0
  349. package/dropdown/Dropdown.d.ts +17 -1
  350. package/dropdown/Dropdown.vue +60 -320
  351. package/dropdown/dropdown.cjs.js +1261 -1226
  352. package/dropdown/dropdown.cjs.min.js +1 -1
  353. package/dropdown/dropdown.esm.js +1261 -1226
  354. package/dropdown/dropdown.esm.min.js +1 -1
  355. package/dropdown/dropdown.js +1261 -1227
  356. package/dropdown/dropdown.min.js +1 -1
  357. package/dynamicdialog/DynamicDialog.d.ts +7 -1
  358. package/dynamicdialog/DynamicDialog.vue +3 -3
  359. package/dynamicdialog/dynamicdialog.cjs.js +90 -89
  360. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  361. package/dynamicdialog/dynamicdialog.esm.js +90 -89
  362. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  363. package/dynamicdialog/dynamicdialog.js +90 -89
  364. package/dynamicdialog/dynamicdialog.min.js +1 -1
  365. package/editor/BaseEditor.vue +996 -0
  366. package/editor/Editor.d.ts +57 -5
  367. package/editor/Editor.vue +25 -981
  368. package/editor/editor.cjs.js +241 -236
  369. package/editor/editor.cjs.min.js +1 -1
  370. package/editor/editor.esm.js +241 -236
  371. package/editor/editor.esm.min.js +1 -1
  372. package/editor/editor.js +241 -237
  373. package/editor/editor.min.js +1 -1
  374. package/fieldset/BaseFieldset.vue +65 -0
  375. package/fieldset/Fieldset.d.ts +12 -0
  376. package/fieldset/Fieldset.vue +9 -39
  377. package/fieldset/fieldset.cjs.js +150 -140
  378. package/fieldset/fieldset.cjs.min.js +1 -1
  379. package/fieldset/fieldset.esm.js +149 -139
  380. package/fieldset/fieldset.esm.min.js +1 -1
  381. package/fieldset/fieldset.js +150 -141
  382. package/fieldset/fieldset.min.js +1 -1
  383. package/fileupload/BaseFileUpload.vue +189 -0
  384. package/fileupload/FileContent.vue +10 -8
  385. package/fileupload/FileUpload.d.ts +12 -4
  386. package/fileupload/FileUpload.vue +29 -190
  387. package/fileupload/fileupload.cjs.js +817 -790
  388. package/fileupload/fileupload.cjs.min.js +1 -1
  389. package/fileupload/fileupload.esm.js +817 -790
  390. package/fileupload/fileupload.esm.min.js +1 -1
  391. package/fileupload/fileupload.js +817 -790
  392. package/fileupload/fileupload.min.js +1 -1
  393. package/focustrap/FocusTrap.d.ts +44 -0
  394. package/focustrap/focustrap.cjs.js +116 -102
  395. package/focustrap/focustrap.cjs.min.js +1 -1
  396. package/focustrap/focustrap.esm.js +116 -106
  397. package/focustrap/focustrap.esm.min.js +1 -1
  398. package/focustrap/focustrap.js +117 -104
  399. package/focustrap/focustrap.min.js +1 -1
  400. package/galleria/BaseGalleria.vue +499 -0
  401. package/galleria/Galleria.d.ts +12 -0
  402. package/galleria/Galleria.vue +6 -413
  403. package/galleria/GalleriaContent.vue +8 -22
  404. package/galleria/GalleriaItem.vue +13 -27
  405. package/galleria/GalleriaThumbnails.vue +32 -56
  406. package/galleria/galleria.cjs.js +1164 -1247
  407. package/galleria/galleria.cjs.min.js +1 -1
  408. package/galleria/galleria.esm.js +1164 -1247
  409. package/galleria/galleria.esm.min.js +1 -1
  410. package/galleria/galleria.js +1164 -1248
  411. package/galleria/galleria.min.js +1 -1
  412. package/icons/angledoubledown/index.cjs.js +6 -9
  413. package/icons/angledoubledown/index.cjs.min.js +1 -1
  414. package/icons/angledoubledown/index.esm.js +6 -9
  415. package/icons/angledoubledown/index.esm.min.js +1 -1
  416. package/icons/angledoubledown/index.js +6 -9
  417. package/icons/angledoubledown/index.min.js +1 -1
  418. package/icons/angledoubleleft/index.cjs.js +6 -9
  419. package/icons/angledoubleleft/index.cjs.min.js +1 -1
  420. package/icons/angledoubleleft/index.esm.js +6 -9
  421. package/icons/angledoubleleft/index.esm.min.js +1 -1
  422. package/icons/angledoubleleft/index.js +6 -9
  423. package/icons/angledoubleleft/index.min.js +1 -1
  424. package/icons/angledoubleright/index.cjs.js +6 -9
  425. package/icons/angledoubleright/index.cjs.min.js +1 -1
  426. package/icons/angledoubleright/index.esm.js +6 -9
  427. package/icons/angledoubleright/index.esm.min.js +1 -1
  428. package/icons/angledoubleright/index.js +6 -9
  429. package/icons/angledoubleright/index.min.js +1 -1
  430. package/icons/angledoubleup/index.cjs.js +6 -9
  431. package/icons/angledoubleup/index.cjs.min.js +1 -1
  432. package/icons/angledoubleup/index.esm.js +6 -9
  433. package/icons/angledoubleup/index.esm.min.js +1 -1
  434. package/icons/angledoubleup/index.js +6 -9
  435. package/icons/angledoubleup/index.min.js +1 -1
  436. package/icons/angledown/index.cjs.js +6 -9
  437. package/icons/angledown/index.cjs.min.js +1 -1
  438. package/icons/angledown/index.esm.js +6 -9
  439. package/icons/angledown/index.esm.min.js +1 -1
  440. package/icons/angledown/index.js +6 -9
  441. package/icons/angledown/index.min.js +1 -1
  442. package/icons/angleleft/index.cjs.js +6 -9
  443. package/icons/angleleft/index.cjs.min.js +1 -1
  444. package/icons/angleleft/index.esm.js +6 -9
  445. package/icons/angleleft/index.esm.min.js +1 -1
  446. package/icons/angleleft/index.js +6 -9
  447. package/icons/angleleft/index.min.js +1 -1
  448. package/icons/angleright/index.cjs.js +6 -9
  449. package/icons/angleright/index.cjs.min.js +1 -1
  450. package/icons/angleright/index.esm.js +6 -9
  451. package/icons/angleright/index.esm.min.js +1 -1
  452. package/icons/angleright/index.js +6 -9
  453. package/icons/angleright/index.min.js +1 -1
  454. package/icons/angleup/index.cjs.js +6 -9
  455. package/icons/angleup/index.cjs.min.js +1 -1
  456. package/icons/angleup/index.esm.js +6 -9
  457. package/icons/angleup/index.esm.min.js +1 -1
  458. package/icons/angleup/index.js +6 -9
  459. package/icons/angleup/index.min.js +1 -1
  460. package/icons/arrowdown/index.cjs.js +29 -26
  461. package/icons/arrowdown/index.cjs.min.js +1 -1
  462. package/icons/arrowdown/index.esm.js +29 -26
  463. package/icons/arrowdown/index.esm.min.js +1 -1
  464. package/icons/arrowdown/index.js +30 -28
  465. package/icons/arrowdown/index.min.js +1 -1
  466. package/icons/arrowdown/index.vue +10 -3
  467. package/icons/arrowup/index.cjs.js +29 -26
  468. package/icons/arrowup/index.cjs.min.js +1 -1
  469. package/icons/arrowup/index.esm.js +29 -26
  470. package/icons/arrowup/index.esm.min.js +1 -1
  471. package/icons/arrowup/index.js +30 -28
  472. package/icons/arrowup/index.min.js +1 -1
  473. package/icons/arrowup/index.vue +10 -3
  474. package/icons/ban/index.cjs.js +27 -24
  475. package/icons/ban/index.cjs.min.js +1 -1
  476. package/icons/ban/index.esm.js +27 -24
  477. package/icons/ban/index.esm.min.js +1 -1
  478. package/icons/ban/index.js +28 -26
  479. package/icons/ban/index.min.js +1 -1
  480. package/icons/ban/index.vue +10 -3
  481. package/icons/bars/index.cjs.js +6 -9
  482. package/icons/bars/index.cjs.min.js +1 -1
  483. package/icons/bars/index.esm.js +6 -9
  484. package/icons/bars/index.esm.min.js +1 -1
  485. package/icons/bars/index.js +6 -9
  486. package/icons/bars/index.min.js +1 -1
  487. package/icons/calendar/index.cjs.js +6 -9
  488. package/icons/calendar/index.cjs.min.js +1 -1
  489. package/icons/calendar/index.esm.js +6 -9
  490. package/icons/calendar/index.esm.min.js +1 -1
  491. package/icons/calendar/index.js +6 -9
  492. package/icons/calendar/index.min.js +1 -1
  493. package/icons/check/index.cjs.js +6 -9
  494. package/icons/check/index.cjs.min.js +1 -1
  495. package/icons/check/index.esm.js +6 -9
  496. package/icons/check/index.esm.min.js +1 -1
  497. package/icons/check/index.js +6 -9
  498. package/icons/check/index.min.js +1 -1
  499. package/icons/chevrondown/index.cjs.js +6 -9
  500. package/icons/chevrondown/index.cjs.min.js +1 -1
  501. package/icons/chevrondown/index.esm.js +6 -9
  502. package/icons/chevrondown/index.esm.min.js +1 -1
  503. package/icons/chevrondown/index.js +6 -9
  504. package/icons/chevrondown/index.min.js +1 -1
  505. package/icons/chevronleft/index.cjs.js +6 -9
  506. package/icons/chevronleft/index.cjs.min.js +1 -1
  507. package/icons/chevronleft/index.esm.js +6 -9
  508. package/icons/chevronleft/index.esm.min.js +1 -1
  509. package/icons/chevronleft/index.js +6 -9
  510. package/icons/chevronleft/index.min.js +1 -1
  511. package/icons/chevronright/index.cjs.js +6 -9
  512. package/icons/chevronright/index.cjs.min.js +1 -1
  513. package/icons/chevronright/index.esm.js +6 -9
  514. package/icons/chevronright/index.esm.min.js +1 -1
  515. package/icons/chevronright/index.js +6 -9
  516. package/icons/chevronright/index.min.js +1 -1
  517. package/icons/chevronup/index.cjs.js +6 -9
  518. package/icons/chevronup/index.cjs.min.js +1 -1
  519. package/icons/chevronup/index.esm.js +6 -9
  520. package/icons/chevronup/index.esm.min.js +1 -1
  521. package/icons/chevronup/index.js +6 -9
  522. package/icons/chevronup/index.min.js +1 -1
  523. package/icons/exclamationtriangle/index.cjs.js +35 -9
  524. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  525. package/icons/exclamationtriangle/index.esm.js +36 -10
  526. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  527. package/icons/exclamationtriangle/index.js +36 -11
  528. package/icons/exclamationtriangle/index.min.js +1 -1
  529. package/icons/exclamationtriangle/index.vue +10 -3
  530. package/icons/eye/index.cjs.js +6 -9
  531. package/icons/eye/index.cjs.min.js +1 -1
  532. package/icons/eye/index.esm.js +6 -9
  533. package/icons/eye/index.esm.min.js +1 -1
  534. package/icons/eye/index.js +6 -9
  535. package/icons/eye/index.min.js +1 -1
  536. package/icons/eyeslash/index.cjs.js +29 -26
  537. package/icons/eyeslash/index.cjs.min.js +1 -1
  538. package/icons/eyeslash/index.esm.js +29 -26
  539. package/icons/eyeslash/index.esm.min.js +1 -1
  540. package/icons/eyeslash/index.js +30 -28
  541. package/icons/eyeslash/index.min.js +1 -1
  542. package/icons/eyeslash/index.vue +10 -3
  543. package/icons/filter/index.cjs.js +27 -24
  544. package/icons/filter/index.cjs.min.js +1 -1
  545. package/icons/filter/index.esm.js +27 -24
  546. package/icons/filter/index.esm.min.js +1 -1
  547. package/icons/filter/index.js +28 -26
  548. package/icons/filter/index.min.js +1 -1
  549. package/icons/filter/index.vue +10 -3
  550. package/icons/filterslash/index.cjs.js +29 -26
  551. package/icons/filterslash/index.cjs.min.js +1 -1
  552. package/icons/filterslash/index.esm.js +29 -26
  553. package/icons/filterslash/index.esm.min.js +1 -1
  554. package/icons/filterslash/index.js +30 -28
  555. package/icons/filterslash/index.min.js +1 -1
  556. package/icons/filterslash/index.vue +10 -3
  557. package/icons/infocircle/index.cjs.js +29 -26
  558. package/icons/infocircle/index.cjs.min.js +1 -1
  559. package/icons/infocircle/index.esm.js +29 -26
  560. package/icons/infocircle/index.esm.min.js +1 -1
  561. package/icons/infocircle/index.js +30 -28
  562. package/icons/infocircle/index.min.js +1 -1
  563. package/icons/infocircle/index.vue +10 -3
  564. package/icons/minus/index.cjs.js +6 -9
  565. package/icons/minus/index.cjs.min.js +1 -1
  566. package/icons/minus/index.esm.js +6 -9
  567. package/icons/minus/index.esm.min.js +1 -1
  568. package/icons/minus/index.js +6 -9
  569. package/icons/minus/index.min.js +1 -1
  570. package/icons/pencil/index.cjs.js +27 -24
  571. package/icons/pencil/index.cjs.min.js +1 -1
  572. package/icons/pencil/index.esm.js +27 -24
  573. package/icons/pencil/index.esm.min.js +1 -1
  574. package/icons/pencil/index.js +28 -26
  575. package/icons/pencil/index.min.js +1 -1
  576. package/icons/pencil/index.vue +10 -3
  577. package/icons/plus/index.cjs.js +27 -24
  578. package/icons/plus/index.cjs.min.js +1 -1
  579. package/icons/plus/index.esm.js +27 -24
  580. package/icons/plus/index.esm.min.js +1 -1
  581. package/icons/plus/index.js +28 -26
  582. package/icons/plus/index.min.js +1 -1
  583. package/icons/plus/index.vue +10 -3
  584. package/icons/refresh/index.cjs.js +29 -26
  585. package/icons/refresh/index.cjs.min.js +1 -1
  586. package/icons/refresh/index.esm.js +29 -26
  587. package/icons/refresh/index.esm.min.js +1 -1
  588. package/icons/refresh/index.js +30 -28
  589. package/icons/refresh/index.min.js +1 -1
  590. package/icons/refresh/index.vue +10 -3
  591. package/icons/search/index.cjs.js +29 -26
  592. package/icons/search/index.cjs.min.js +1 -1
  593. package/icons/search/index.esm.js +29 -26
  594. package/icons/search/index.esm.min.js +1 -1
  595. package/icons/search/index.js +30 -28
  596. package/icons/search/index.min.js +1 -1
  597. package/icons/search/index.vue +10 -3
  598. package/icons/searchminus/index.cjs.js +29 -26
  599. package/icons/searchminus/index.cjs.min.js +1 -1
  600. package/icons/searchminus/index.esm.js +29 -26
  601. package/icons/searchminus/index.esm.min.js +1 -1
  602. package/icons/searchminus/index.js +30 -28
  603. package/icons/searchminus/index.min.js +1 -1
  604. package/icons/searchminus/index.vue +10 -3
  605. package/icons/searchplus/index.cjs.js +29 -26
  606. package/icons/searchplus/index.cjs.min.js +1 -1
  607. package/icons/searchplus/index.esm.js +29 -26
  608. package/icons/searchplus/index.esm.min.js +1 -1
  609. package/icons/searchplus/index.js +30 -28
  610. package/icons/searchplus/index.min.js +1 -1
  611. package/icons/searchplus/index.vue +10 -3
  612. package/icons/sortalt/index.cjs.js +39 -9
  613. package/icons/sortalt/index.cjs.min.js +1 -1
  614. package/icons/sortalt/index.esm.js +40 -10
  615. package/icons/sortalt/index.esm.min.js +1 -1
  616. package/icons/sortalt/index.js +40 -11
  617. package/icons/sortalt/index.min.js +1 -1
  618. package/icons/sortalt/index.vue +10 -3
  619. package/icons/sortamountdown/index.cjs.js +24 -9
  620. package/icons/sortamountdown/index.cjs.min.js +1 -1
  621. package/icons/sortamountdown/index.esm.js +25 -10
  622. package/icons/sortamountdown/index.esm.min.js +1 -1
  623. package/icons/sortamountdown/index.js +25 -11
  624. package/icons/sortamountdown/index.min.js +1 -1
  625. package/icons/sortamountdown/index.vue +10 -3
  626. package/icons/sortamountupalt/index.cjs.js +24 -9
  627. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  628. package/icons/sortamountupalt/index.esm.js +25 -10
  629. package/icons/sortamountupalt/index.esm.min.js +1 -1
  630. package/icons/sortamountupalt/index.js +25 -11
  631. package/icons/sortamountupalt/index.min.js +1 -1
  632. package/icons/sortamountupalt/index.vue +10 -3
  633. package/icons/spinner/index.cjs.js +27 -24
  634. package/icons/spinner/index.cjs.min.js +1 -1
  635. package/icons/spinner/index.esm.js +27 -24
  636. package/icons/spinner/index.esm.min.js +1 -1
  637. package/icons/spinner/index.js +28 -26
  638. package/icons/spinner/index.min.js +1 -1
  639. package/icons/spinner/index.vue +10 -3
  640. package/icons/star/index.cjs.js +27 -24
  641. package/icons/star/index.cjs.min.js +1 -1
  642. package/icons/star/index.esm.js +27 -24
  643. package/icons/star/index.esm.min.js +1 -1
  644. package/icons/star/index.js +28 -26
  645. package/icons/star/index.min.js +1 -1
  646. package/icons/star/index.vue +10 -3
  647. package/icons/starfill/index.cjs.js +27 -24
  648. package/icons/starfill/index.cjs.min.js +1 -1
  649. package/icons/starfill/index.esm.js +27 -24
  650. package/icons/starfill/index.esm.min.js +1 -1
  651. package/icons/starfill/index.js +28 -26
  652. package/icons/starfill/index.min.js +1 -1
  653. package/icons/starfill/index.vue +10 -3
  654. package/icons/thlarge/index.cjs.js +29 -26
  655. package/icons/thlarge/index.cjs.min.js +1 -1
  656. package/icons/thlarge/index.esm.js +29 -26
  657. package/icons/thlarge/index.esm.min.js +1 -1
  658. package/icons/thlarge/index.js +30 -28
  659. package/icons/thlarge/index.min.js +1 -1
  660. package/icons/thlarge/index.vue +10 -3
  661. package/icons/times/index.cjs.js +6 -9
  662. package/icons/times/index.cjs.min.js +1 -1
  663. package/icons/times/index.esm.js +6 -9
  664. package/icons/times/index.esm.min.js +1 -1
  665. package/icons/times/index.js +6 -9
  666. package/icons/times/index.min.js +1 -1
  667. package/icons/timescircle/index.cjs.js +29 -26
  668. package/icons/timescircle/index.cjs.min.js +1 -1
  669. package/icons/timescircle/index.esm.js +29 -26
  670. package/icons/timescircle/index.esm.min.js +1 -1
  671. package/icons/timescircle/index.js +30 -28
  672. package/icons/timescircle/index.min.js +1 -1
  673. package/icons/timescircle/index.vue +10 -3
  674. package/icons/trash/index.cjs.js +29 -26
  675. package/icons/trash/index.cjs.min.js +1 -1
  676. package/icons/trash/index.esm.js +29 -26
  677. package/icons/trash/index.esm.min.js +1 -1
  678. package/icons/trash/index.js +30 -28
  679. package/icons/trash/index.min.js +1 -1
  680. package/icons/trash/index.vue +10 -3
  681. package/icons/undo/index.cjs.js +29 -26
  682. package/icons/undo/index.cjs.min.js +1 -1
  683. package/icons/undo/index.esm.js +29 -26
  684. package/icons/undo/index.esm.min.js +1 -1
  685. package/icons/undo/index.js +30 -28
  686. package/icons/undo/index.min.js +1 -1
  687. package/icons/undo/index.vue +10 -3
  688. package/icons/upload/index.cjs.js +29 -26
  689. package/icons/upload/index.cjs.min.js +1 -1
  690. package/icons/upload/index.esm.js +29 -26
  691. package/icons/upload/index.esm.min.js +1 -1
  692. package/icons/upload/index.js +30 -28
  693. package/icons/upload/index.min.js +1 -1
  694. package/icons/upload/index.vue +10 -3
  695. package/icons/windowmaximize/index.cjs.js +29 -26
  696. package/icons/windowmaximize/index.cjs.min.js +1 -1
  697. package/icons/windowmaximize/index.esm.js +29 -26
  698. package/icons/windowmaximize/index.esm.min.js +1 -1
  699. package/icons/windowmaximize/index.js +30 -28
  700. package/icons/windowmaximize/index.min.js +1 -1
  701. package/icons/windowmaximize/index.vue +10 -3
  702. package/icons/windowminimize/index.cjs.js +29 -26
  703. package/icons/windowminimize/index.cjs.min.js +1 -1
  704. package/icons/windowminimize/index.esm.js +29 -26
  705. package/icons/windowminimize/index.esm.min.js +1 -1
  706. package/icons/windowminimize/index.js +30 -28
  707. package/icons/windowminimize/index.min.js +1 -1
  708. package/icons/windowminimize/index.vue +10 -3
  709. package/image/BaseImage.vue +153 -0
  710. package/image/Image.d.ts +12 -0
  711. package/image/Image.vue +17 -130
  712. package/image/image.cjs.js +385 -379
  713. package/image/image.cjs.min.js +1 -1
  714. package/image/image.esm.js +385 -379
  715. package/image/image.esm.min.js +1 -1
  716. package/image/image.js +385 -380
  717. package/image/image.min.js +1 -1
  718. package/inlinemessage/BaseInlineMessage.vue +54 -0
  719. package/inlinemessage/InlineMessage.d.ts +12 -0
  720. package/inlinemessage/InlineMessage.vue +5 -36
  721. package/inlinemessage/inlinemessage.cjs.js +80 -80
  722. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  723. package/inlinemessage/inlinemessage.esm.js +80 -80
  724. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  725. package/inlinemessage/inlinemessage.js +81 -82
  726. package/inlinemessage/inlinemessage.min.js +1 -1
  727. package/inplace/BaseInplace.vue +72 -0
  728. package/inplace/Inplace.d.ts +12 -0
  729. package/inplace/Inplace.vue +6 -58
  730. package/inplace/inplace.cjs.js +145 -145
  731. package/inplace/inplace.cjs.min.js +1 -1
  732. package/inplace/inplace.esm.js +144 -144
  733. package/inplace/inplace.esm.min.js +1 -1
  734. package/inplace/inplace.js +145 -146
  735. package/inplace/inplace.min.js +1 -1
  736. package/inputmask/BaseInputMask.vue +43 -0
  737. package/inputmask/InputMask.d.ts +11 -0
  738. package/inputmask/InputMask.vue +3 -34
  739. package/inputmask/inputmask.cjs.js +464 -519
  740. package/inputmask/inputmask.cjs.min.js +1 -1
  741. package/inputmask/inputmask.esm.js +464 -519
  742. package/inputmask/inputmask.esm.min.js +1 -1
  743. package/inputmask/inputmask.js +465 -520
  744. package/inputmask/inputmask.min.js +1 -1
  745. package/inputnumber/BaseInputNumber.vue +288 -0
  746. package/inputnumber/InputNumber.d.ts +12 -0
  747. package/inputnumber/InputNumber.vue +50 -283
  748. package/inputnumber/inputnumber.cjs.js +1113 -1157
  749. package/inputnumber/inputnumber.cjs.min.js +1 -1
  750. package/inputnumber/inputnumber.esm.js +1112 -1156
  751. package/inputnumber/inputnumber.esm.min.js +1 -1
  752. package/inputnumber/inputnumber.js +1113 -1158
  753. package/inputnumber/inputnumber.min.js +1 -1
  754. package/inputswitch/BaseInputSwitch.vue +101 -0
  755. package/inputswitch/InputSwitch.d.ts +17 -0
  756. package/inputswitch/InputSwitch.vue +6 -83
  757. package/inputswitch/inputswitch.cjs.js +149 -138
  758. package/inputswitch/inputswitch.cjs.min.js +1 -1
  759. package/inputswitch/inputswitch.esm.js +149 -138
  760. package/inputswitch/inputswitch.esm.min.js +1 -1
  761. package/inputswitch/inputswitch.js +150 -140
  762. package/inputswitch/inputswitch.min.js +1 -1
  763. package/inputtext/BaseInputText.vue +34 -0
  764. package/inputtext/InputText.d.ts +15 -0
  765. package/inputtext/InputText.vue +10 -6
  766. package/inputtext/inputtext.cjs.js +58 -20
  767. package/inputtext/inputtext.cjs.min.js +1 -1
  768. package/inputtext/inputtext.esm.js +58 -20
  769. package/inputtext/inputtext.esm.min.js +1 -1
  770. package/inputtext/inputtext.js +58 -20
  771. package/inputtext/inputtext.min.js +1 -1
  772. package/knob/BaseKnob.vue +114 -0
  773. package/knob/Knob.d.ts +12 -0
  774. package/knob/Knob.vue +6 -101
  775. package/knob/knob.cjs.js +316 -326
  776. package/knob/knob.cjs.min.js +1 -1
  777. package/knob/knob.esm.js +316 -326
  778. package/knob/knob.esm.min.js +1 -1
  779. package/knob/knob.js +317 -328
  780. package/knob/knob.min.js +1 -1
  781. package/listbox/BaseListbox.vue +156 -0
  782. package/listbox/Listbox.d.ts +12 -0
  783. package/listbox/Listbox.vue +45 -141
  784. package/listbox/listbox.cjs.js +925 -877
  785. package/listbox/listbox.cjs.min.js +1 -1
  786. package/listbox/listbox.esm.js +925 -877
  787. package/listbox/listbox.esm.min.js +1 -1
  788. package/listbox/listbox.js +925 -878
  789. package/listbox/listbox.min.js +1 -1
  790. package/megamenu/BaseMegaMenu.vue +238 -0
  791. package/megamenu/MegaMenu.d.ts +16 -0
  792. package/megamenu/MegaMenu.vue +6 -129
  793. package/megamenu/MegaMenuSub.vue +27 -91
  794. package/megamenu/megamenu.cjs.js +1028 -979
  795. package/megamenu/megamenu.cjs.min.js +1 -1
  796. package/megamenu/megamenu.esm.js +1029 -980
  797. package/megamenu/megamenu.esm.min.js +1 -1
  798. package/megamenu/megamenu.js +1028 -980
  799. package/megamenu/megamenu.min.js +1 -1
  800. package/menu/BaseMenu.vue +112 -0
  801. package/menu/Menu.d.ts +12 -0
  802. package/menu/Menu.vue +15 -92
  803. package/menu/Menuitem.vue +22 -27
  804. package/menu/menu.cjs.js +609 -651
  805. package/menu/menu.cjs.min.js +1 -1
  806. package/menu/menu.esm.js +608 -650
  807. package/menu/menu.esm.min.js +1 -1
  808. package/menu/menu.js +609 -652
  809. package/menu/menu.min.js +1 -1
  810. package/menubar/BaseMenubar.vue +155 -0
  811. package/menubar/Menubar.d.ts +16 -0
  812. package/menubar/Menubar.vue +11 -110
  813. package/menubar/MenubarSub.vue +19 -55
  814. package/menubar/menubar.cjs.js +970 -923
  815. package/menubar/menubar.cjs.min.js +1 -1
  816. package/menubar/menubar.esm.js +970 -923
  817. package/menubar/menubar.esm.min.js +1 -1
  818. package/menubar/menubar.js +970 -924
  819. package/menubar/menubar.min.js +1 -1
  820. package/message/BaseMessage.vue +105 -0
  821. package/message/Message.d.ts +12 -0
  822. package/message/Message.vue +10 -89
  823. package/message/message.cjs.js +150 -154
  824. package/message/message.cjs.min.js +1 -1
  825. package/message/message.esm.js +149 -153
  826. package/message/message.esm.min.js +1 -1
  827. package/message/message.js +150 -155
  828. package/message/message.min.js +1 -1
  829. package/multiselect/BaseMultiSelect.vue +363 -0
  830. package/multiselect/MultiSelect.d.ts +12 -5
  831. package/multiselect/MultiSelect.vue +76 -373
  832. package/multiselect/multiselect.cjs.js +1513 -1449
  833. package/multiselect/multiselect.cjs.min.js +1 -1
  834. package/multiselect/multiselect.esm.js +1513 -1449
  835. package/multiselect/multiselect.esm.min.js +1 -1
  836. package/multiselect/multiselect.js +1513 -1450
  837. package/multiselect/multiselect.min.js +1 -1
  838. package/orderlist/BaseOrderList.vue +146 -0
  839. package/orderlist/OrderList.d.ts +12 -0
  840. package/orderlist/OrderList.vue +35 -156
  841. package/orderlist/orderlist.cjs.js +627 -686
  842. package/orderlist/orderlist.cjs.min.js +1 -1
  843. package/orderlist/orderlist.esm.js +626 -685
  844. package/orderlist/orderlist.esm.min.js +1 -1
  845. package/orderlist/orderlist.js +627 -687
  846. package/orderlist/orderlist.min.js +1 -1
  847. package/organizationchart/BaseOrganizationChart.vue +111 -0
  848. package/organizationchart/OrganizationChart.d.ts +12 -0
  849. package/organizationchart/OrganizationChart.vue +4 -80
  850. package/organizationchart/OrganizationChartNode.vue +15 -16
  851. package/organizationchart/organizationchart.cjs.js +315 -313
  852. package/organizationchart/organizationchart.cjs.min.js +1 -1
  853. package/organizationchart/organizationchart.esm.js +315 -313
  854. package/organizationchart/organizationchart.esm.min.js +1 -1
  855. package/organizationchart/organizationchart.js +316 -315
  856. package/organizationchart/organizationchart.min.js +1 -1
  857. package/overlaypanel/BaseOverlayPanel.vue +135 -0
  858. package/overlaypanel/OverlayPanel.d.ts +12 -0
  859. package/overlaypanel/OverlayPanel.vue +10 -122
  860. package/overlaypanel/overlaypanel.cjs.js +352 -374
  861. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  862. package/overlaypanel/overlaypanel.esm.js +351 -373
  863. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  864. package/overlaypanel/overlaypanel.js +352 -375
  865. package/overlaypanel/overlaypanel.min.js +1 -1
  866. package/package.json +1 -1
  867. package/paginator/BasePaginator.vue +147 -0
  868. package/paginator/CurrentPageReport.vue +2 -1
  869. package/paginator/FirstPageLink.vue +3 -12
  870. package/paginator/JumpToPageDropdown.vue +13 -1
  871. package/paginator/JumpToPageInput.vue +12 -1
  872. package/paginator/LastPageLink.vue +3 -12
  873. package/paginator/NextPageLink.vue +3 -12
  874. package/paginator/PageLinks.vue +4 -2
  875. package/paginator/Paginator.d.ts +41 -5
  876. package/paginator/Paginator.vue +19 -93
  877. package/paginator/PrevPageLink.vue +3 -12
  878. package/paginator/RowsPerPageDropdown.vue +13 -1
  879. package/paginator/paginator.cjs.js +753 -782
  880. package/paginator/paginator.cjs.min.js +1 -1
  881. package/paginator/paginator.esm.js +754 -783
  882. package/paginator/paginator.esm.min.js +1 -1
  883. package/paginator/paginator.js +753 -783
  884. package/paginator/paginator.min.js +1 -1
  885. package/panel/BasePanel.vue +67 -0
  886. package/panel/Panel.d.ts +12 -0
  887. package/panel/Panel.vue +11 -45
  888. package/panel/panel.cjs.js +151 -154
  889. package/panel/panel.cjs.min.js +1 -1
  890. package/panel/panel.esm.js +151 -154
  891. package/panel/panel.esm.min.js +1 -1
  892. package/panel/panel.js +151 -155
  893. package/panel/panel.min.js +1 -1
  894. package/panelmenu/BasePanelMenu.vue +118 -0
  895. package/panelmenu/PanelMenu.d.ts +16 -0
  896. package/panelmenu/PanelMenu.vue +28 -104
  897. package/panelmenu/PanelMenuList.vue +5 -3
  898. package/panelmenu/PanelMenuSub.vue +29 -49
  899. package/panelmenu/panelmenu.cjs.js +1034 -1007
  900. package/panelmenu/panelmenu.cjs.min.js +1 -1
  901. package/panelmenu/panelmenu.esm.js +1034 -1007
  902. package/panelmenu/panelmenu.esm.min.js +1 -1
  903. package/panelmenu/panelmenu.js +1034 -1008
  904. package/panelmenu/panelmenu.min.js +1 -1
  905. package/password/BasePassword.vue +180 -0
  906. package/password/Password.d.ts +16 -0
  907. package/password/Password.vue +12 -176
  908. package/password/password.cjs.js +473 -479
  909. package/password/password.cjs.min.js +1 -1
  910. package/password/password.esm.js +472 -478
  911. package/password/password.esm.min.js +1 -1
  912. package/password/password.js +473 -480
  913. package/password/password.min.js +1 -1
  914. package/picklist/BasePickList.vue +167 -0
  915. package/picklist/PickList.d.ts +14 -2
  916. package/picklist/PickList.vue +46 -175
  917. package/picklist/picklist.cjs.js +1060 -1108
  918. package/picklist/picklist.cjs.min.js +1 -1
  919. package/picklist/picklist.esm.js +1059 -1107
  920. package/picklist/picklist.esm.min.js +1 -1
  921. package/picklist/picklist.js +1060 -1109
  922. package/picklist/picklist.min.js +1 -1
  923. package/portal/portal.cjs.js +28 -32
  924. package/portal/portal.cjs.min.js +1 -1
  925. package/portal/portal.esm.js +28 -32
  926. package/portal/portal.esm.min.js +1 -1
  927. package/portal/portal.js +28 -32
  928. package/portal/portal.min.js +1 -1
  929. package/progressbar/BaseProgressBar.vue +158 -0
  930. package/progressbar/ProgressBar.d.ts +12 -0
  931. package/progressbar/ProgressBar.vue +7 -141
  932. package/progressbar/progressbar.cjs.js +80 -100
  933. package/progressbar/progressbar.cjs.min.js +1 -1
  934. package/progressbar/progressbar.esm.js +80 -100
  935. package/progressbar/progressbar.esm.min.js +1 -1
  936. package/progressbar/progressbar.js +81 -102
  937. package/progressbar/progressbar.min.js +1 -1
  938. package/progressspinner/BaseProgressSpinner.vue +68 -0
  939. package/progressspinner/ProgressSpinner.d.ts +12 -0
  940. package/progressspinner/ProgressSpinner.vue +5 -47
  941. package/progressspinner/progressspinner.cjs.js +65 -72
  942. package/progressspinner/progressspinner.cjs.min.js +1 -1
  943. package/progressspinner/progressspinner.esm.js +65 -72
  944. package/progressspinner/progressspinner.esm.min.js +1 -1
  945. package/progressspinner/progressspinner.js +66 -74
  946. package/progressspinner/progressspinner.min.js +1 -1
  947. package/radiobutton/BaseRadioButton.vue +72 -0
  948. package/radiobutton/RadioButton.d.ts +17 -0
  949. package/radiobutton/RadioButton.vue +7 -68
  950. package/radiobutton/radiobutton.cjs.js +145 -106
  951. package/radiobutton/radiobutton.cjs.min.js +1 -1
  952. package/radiobutton/radiobutton.esm.js +145 -106
  953. package/radiobutton/radiobutton.esm.min.js +1 -1
  954. package/radiobutton/radiobutton.js +146 -107
  955. package/radiobutton/radiobutton.min.js +1 -1
  956. package/rating/BaseRating.vue +98 -0
  957. package/rating/Rating.d.ts +30 -1
  958. package/rating/Rating.vue +13 -76
  959. package/rating/rating.cjs.js +238 -206
  960. package/rating/rating.cjs.min.js +1 -1
  961. package/rating/rating.esm.js +238 -206
  962. package/rating/rating.esm.min.js +1 -1
  963. package/rating/rating.js +238 -207
  964. package/rating/rating.min.js +1 -1
  965. package/resources/primevue.css +3 -521
  966. package/resources/primevue.min.css +3 -1
  967. package/ripple/Ripple.d.ts +48 -1
  968. package/ripple/ripple.cjs.js +102 -82
  969. package/ripple/ripple.cjs.min.js +1 -1
  970. package/ripple/ripple.esm.js +100 -84
  971. package/ripple/ripple.esm.min.js +1 -1
  972. package/ripple/ripple.js +102 -84
  973. package/ripple/ripple.min.js +1 -1
  974. package/row/Row.d.ts +25 -1
  975. package/row/row.cjs.js +5 -5
  976. package/row/row.cjs.min.js +1 -1
  977. package/row/row.esm.js +5 -5
  978. package/row/row.esm.min.js +1 -1
  979. package/row/row.js +5 -5
  980. package/row/row.min.js +1 -1
  981. package/scrollpanel/BaseScrollPanel.vue +92 -0
  982. package/scrollpanel/ScrollPanel.d.ts +12 -0
  983. package/scrollpanel/ScrollPanel.vue +29 -82
  984. package/scrollpanel/scrollpanel.cjs.js +370 -358
  985. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  986. package/scrollpanel/scrollpanel.esm.js +370 -358
  987. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  988. package/scrollpanel/scrollpanel.js +370 -359
  989. package/scrollpanel/scrollpanel.min.js +1 -1
  990. package/scrolltop/BaseScrollTop.vue +78 -0
  991. package/scrolltop/ScrollTop.d.ts +12 -0
  992. package/scrolltop/ScrollTop.vue +5 -61
  993. package/scrolltop/scrolltop.cjs.js +140 -147
  994. package/scrolltop/scrolltop.cjs.min.js +1 -1
  995. package/scrolltop/scrolltop.esm.js +140 -147
  996. package/scrolltop/scrolltop.esm.min.js +1 -1
  997. package/scrolltop/scrolltop.js +140 -148
  998. package/scrolltop/scrolltop.min.js +1 -1
  999. package/selectbutton/BaseSelectButton.vue +46 -0
  1000. package/selectbutton/SelectButton.d.ts +12 -0
  1001. package/selectbutton/SelectButton.vue +11 -44
  1002. package/selectbutton/selectbutton.cjs.js +241 -209
  1003. package/selectbutton/selectbutton.cjs.min.js +1 -1
  1004. package/selectbutton/selectbutton.esm.js +241 -209
  1005. package/selectbutton/selectbutton.esm.min.js +1 -1
  1006. package/selectbutton/selectbutton.js +242 -210
  1007. package/selectbutton/selectbutton.min.js +1 -1
  1008. package/sidebar/BaseSidebar.vue +255 -0
  1009. package/sidebar/Sidebar.d.ts +12 -0
  1010. package/sidebar/Sidebar.vue +10 -251
  1011. package/sidebar/sidebar.cjs.js +316 -329
  1012. package/sidebar/sidebar.cjs.min.js +1 -1
  1013. package/sidebar/sidebar.esm.js +315 -328
  1014. package/sidebar/sidebar.esm.min.js +1 -1
  1015. package/sidebar/sidebar.js +316 -330
  1016. package/sidebar/sidebar.min.js +1 -1
  1017. package/skeleton/BaseSkeleton.vue +96 -0
  1018. package/skeleton/Skeleton.d.ts +12 -0
  1019. package/skeleton/Skeleton.vue +3 -74
  1020. package/skeleton/skeleton.cjs.js +81 -75
  1021. package/skeleton/skeleton.cjs.min.js +1 -1
  1022. package/skeleton/skeleton.esm.js +81 -75
  1023. package/skeleton/skeleton.esm.min.js +1 -1
  1024. package/skeleton/skeleton.js +82 -77
  1025. package/skeleton/skeleton.min.js +1 -1
  1026. package/slider/BaseSlider.vue +118 -0
  1027. package/slider/Slider.d.ts +12 -0
  1028. package/slider/Slider.vue +13 -104
  1029. package/slider/slider.cjs.js +411 -400
  1030. package/slider/slider.cjs.min.js +1 -1
  1031. package/slider/slider.esm.js +411 -400
  1032. package/slider/slider.esm.min.js +1 -1
  1033. package/slider/slider.js +411 -401
  1034. package/slider/slider.min.js +1 -1
  1035. package/speeddial/BaseSpeedDial.vue +234 -0
  1036. package/speeddial/SpeedDial.d.ts +12 -0
  1037. package/speeddial/SpeedDial.vue +19 -237
  1038. package/speeddial/speeddial.cjs.js +607 -614
  1039. package/speeddial/speeddial.cjs.min.js +1 -1
  1040. package/speeddial/speeddial.esm.js +606 -613
  1041. package/speeddial/speeddial.esm.min.js +1 -1
  1042. package/speeddial/speeddial.js +607 -615
  1043. package/speeddial/speeddial.min.js +1 -1
  1044. package/splitbutton/BaseSplitButton.vue +149 -0
  1045. package/splitbutton/SplitButton.d.ts +24 -2
  1046. package/splitbutton/SplitButton.vue +17 -135
  1047. package/splitbutton/splitbutton.cjs.js +230 -220
  1048. package/splitbutton/splitbutton.cjs.min.js +1 -1
  1049. package/splitbutton/splitbutton.esm.js +230 -220
  1050. package/splitbutton/splitbutton.esm.min.js +1 -1
  1051. package/splitbutton/splitbutton.js +230 -221
  1052. package/splitbutton/splitbutton.min.js +1 -1
  1053. package/splitter/BaseSplitter.vue +101 -0
  1054. package/splitter/Splitter.d.ts +12 -0
  1055. package/splitter/Splitter.vue +13 -97
  1056. package/splitter/splitter.cjs.js +427 -409
  1057. package/splitter/splitter.cjs.min.js +1 -1
  1058. package/splitter/splitter.esm.js +427 -409
  1059. package/splitter/splitter.esm.min.js +1 -1
  1060. package/splitter/splitter.js +427 -410
  1061. package/splitter/splitter.min.js +1 -1
  1062. package/splitterpanel/BaseSplitterPanel.vue +49 -0
  1063. package/splitterpanel/SplitterPanel.d.ts +12 -0
  1064. package/splitterpanel/SplitterPanel.vue +3 -16
  1065. package/splitterpanel/splitterpanel.cjs.js +52 -26
  1066. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  1067. package/splitterpanel/splitterpanel.esm.js +52 -26
  1068. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  1069. package/splitterpanel/splitterpanel.js +53 -28
  1070. package/splitterpanel/splitterpanel.min.js +1 -1
  1071. package/steps/BaseSteps.vue +112 -0
  1072. package/steps/Steps.d.ts +12 -0
  1073. package/steps/Steps.vue +14 -110
  1074. package/steps/steps.cjs.js +248 -260
  1075. package/steps/steps.cjs.min.js +1 -1
  1076. package/steps/steps.esm.js +248 -260
  1077. package/steps/steps.esm.min.js +1 -1
  1078. package/steps/steps.js +248 -261
  1079. package/steps/steps.min.js +1 -1
  1080. package/styleclass/StyleClass.d.ts +17 -0
  1081. package/styleclass/styleclass.cjs.js +117 -141
  1082. package/styleclass/styleclass.cjs.min.js +1 -1
  1083. package/styleclass/styleclass.esm.js +113 -141
  1084. package/styleclass/styleclass.esm.min.js +1 -1
  1085. package/styleclass/styleclass.js +117 -142
  1086. package/styleclass/styleclass.min.js +1 -1
  1087. package/tabmenu/BaseTabMenu.vue +100 -0
  1088. package/tabmenu/TabMenu.d.ts +12 -0
  1089. package/tabmenu/TabMenu.vue +39 -107
  1090. package/tabmenu/tabmenu.cjs.js +365 -394
  1091. package/tabmenu/tabmenu.cjs.min.js +1 -1
  1092. package/tabmenu/tabmenu.esm.js +364 -393
  1093. package/tabmenu/tabmenu.esm.min.js +1 -1
  1094. package/tabmenu/tabmenu.js +365 -395
  1095. package/tabmenu/tabmenu.min.js +1 -1
  1096. package/tabpanel/BaseTabPanel.vue +19 -0
  1097. package/tabpanel/TabPanel.d.ts +19 -0
  1098. package/tabpanel/TabPanel.vue +3 -13
  1099. package/tabpanel/tabpanel.cjs.js +19 -14
  1100. package/tabpanel/tabpanel.cjs.min.js +1 -1
  1101. package/tabpanel/tabpanel.esm.js +19 -14
  1102. package/tabpanel/tabpanel.esm.min.js +1 -1
  1103. package/tabpanel/tabpanel.js +19 -14
  1104. package/tabpanel/tabpanel.min.js +1 -1
  1105. package/tabview/BaseTabView.vue +159 -0
  1106. package/tabview/TabView.d.ts +16 -0
  1107. package/tabview/TabView.vue +53 -172
  1108. package/tabview/tabview.cjs.js +459 -459
  1109. package/tabview/tabview.cjs.min.js +1 -1
  1110. package/tabview/tabview.esm.js +458 -458
  1111. package/tabview/tabview.esm.min.js +1 -1
  1112. package/tabview/tabview.js +459 -460
  1113. package/tabview/tabview.min.js +1 -1
  1114. package/tag/BaseTag.vue +59 -0
  1115. package/tag/Tag.d.ts +12 -0
  1116. package/tag/Tag.vue +6 -47
  1117. package/tag/tag.cjs.js +58 -71
  1118. package/tag/tag.cjs.min.js +1 -1
  1119. package/tag/tag.esm.js +58 -71
  1120. package/tag/tag.esm.min.js +1 -1
  1121. package/tag/tag.js +59 -73
  1122. package/tag/tag.min.js +1 -1
  1123. package/terminal/BaseTerminal.vue +65 -0
  1124. package/terminal/Terminal.d.ts +12 -0
  1125. package/terminal/Terminal.vue +10 -45
  1126. package/terminal/terminal.cjs.js +112 -107
  1127. package/terminal/terminal.cjs.min.js +1 -1
  1128. package/terminal/terminal.esm.js +111 -106
  1129. package/terminal/terminal.esm.min.js +1 -1
  1130. package/terminal/terminal.js +112 -108
  1131. package/terminal/terminal.min.js +1 -1
  1132. package/textarea/BaseTextarea.vue +45 -0
  1133. package/textarea/Textarea.d.ts +12 -0
  1134. package/textarea/Textarea.vue +3 -18
  1135. package/textarea/textarea.cjs.js +80 -79
  1136. package/textarea/textarea.cjs.min.js +1 -1
  1137. package/textarea/textarea.esm.js +80 -79
  1138. package/textarea/textarea.esm.min.js +1 -1
  1139. package/textarea/textarea.js +81 -81
  1140. package/textarea/textarea.min.js +1 -1
  1141. package/tieredmenu/BaseTieredMenu.vue +142 -0
  1142. package/tieredmenu/TieredMenu.d.ts +16 -0
  1143. package/tieredmenu/TieredMenu.vue +5 -105
  1144. package/tieredmenu/TieredMenuSub.vue +23 -50
  1145. package/tieredmenu/tieredmenu.cjs.js +987 -941
  1146. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  1147. package/tieredmenu/tieredmenu.esm.js +987 -941
  1148. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  1149. package/tieredmenu/tieredmenu.js +987 -942
  1150. package/tieredmenu/tieredmenu.min.js +1 -1
  1151. package/timeline/BaseTimeline.vue +155 -0
  1152. package/timeline/Timeline.d.ts +11 -0
  1153. package/timeline/Timeline.vue +9 -139
  1154. package/timeline/timeline.cjs.js +87 -90
  1155. package/timeline/timeline.cjs.min.js +1 -1
  1156. package/timeline/timeline.esm.js +87 -90
  1157. package/timeline/timeline.esm.min.js +1 -1
  1158. package/timeline/timeline.js +87 -91
  1159. package/timeline/timeline.min.js +1 -1
  1160. package/toast/BaseToast.vue +181 -0
  1161. package/toast/Toast.d.ts +12 -0
  1162. package/toast/Toast.vue +4 -155
  1163. package/toast/ToastMessage.vue +9 -31
  1164. package/toast/toast.cjs.js +389 -380
  1165. package/toast/toast.cjs.min.js +1 -1
  1166. package/toast/toast.esm.js +388 -379
  1167. package/toast/toast.esm.min.js +1 -1
  1168. package/toast/toast.js +389 -381
  1169. package/toast/toast.min.js +1 -1
  1170. package/toastservice/toastservice.cjs.js +15 -16
  1171. package/toastservice/toastservice.cjs.min.js +1 -1
  1172. package/toastservice/toastservice.esm.js +15 -16
  1173. package/toastservice/toastservice.esm.min.js +1 -1
  1174. package/toastservice/toastservice.js +15 -16
  1175. package/toastservice/toastservice.min.js +1 -1
  1176. package/togglebutton/BaseToggleButton.vue +85 -0
  1177. package/togglebutton/ToggleButton.d.ts +12 -0
  1178. package/togglebutton/ToggleButton.vue +7 -77
  1179. package/togglebutton/togglebutton.cjs.js +193 -170
  1180. package/togglebutton/togglebutton.cjs.min.js +1 -1
  1181. package/togglebutton/togglebutton.esm.js +192 -169
  1182. package/togglebutton/togglebutton.esm.min.js +1 -1
  1183. package/togglebutton/togglebutton.js +194 -171
  1184. package/togglebutton/togglebutton.min.js +1 -1
  1185. package/toolbar/BaseToolbar.vue +55 -0
  1186. package/toolbar/Toolbar.d.ts +12 -0
  1187. package/toolbar/Toolbar.vue +7 -34
  1188. package/toolbar/toolbar.cjs.js +50 -52
  1189. package/toolbar/toolbar.cjs.min.js +1 -1
  1190. package/toolbar/toolbar.esm.js +50 -52
  1191. package/toolbar/toolbar.esm.min.js +1 -1
  1192. package/toolbar/toolbar.js +51 -54
  1193. package/toolbar/toolbar.min.js +1 -1
  1194. package/tooltip/Tooltip.d.ts +44 -0
  1195. package/tooltip/tooltip.cjs.js +379 -400
  1196. package/tooltip/tooltip.cjs.min.js +1 -1
  1197. package/tooltip/tooltip.esm.js +379 -404
  1198. package/tooltip/tooltip.esm.min.js +1 -1
  1199. package/tooltip/tooltip.js +409 -432
  1200. package/tooltip/tooltip.min.js +1 -1
  1201. package/tree/BaseTree.vue +211 -0
  1202. package/tree/Tree.d.ts +32 -10
  1203. package/tree/Tree.vue +13 -173
  1204. package/tree/TreeNode.vue +23 -45
  1205. package/tree/tree.cjs.js +852 -855
  1206. package/tree/tree.cjs.min.js +1 -1
  1207. package/tree/tree.esm.js +852 -855
  1208. package/tree/tree.esm.min.js +1 -1
  1209. package/tree/tree.js +852 -856
  1210. package/tree/tree.min.js +1 -1
  1211. package/treeselect/BaseTreeSelect.vue +184 -0
  1212. package/treeselect/TreeSelect.d.ts +19 -2
  1213. package/treeselect/TreeSelect.vue +21 -180
  1214. package/treeselect/treeselect.cjs.js +675 -622
  1215. package/treeselect/treeselect.cjs.min.js +1 -1
  1216. package/treeselect/treeselect.esm.js +675 -622
  1217. package/treeselect/treeselect.esm.min.js +1 -1
  1218. package/treeselect/treeselect.js +675 -623
  1219. package/treeselect/treeselect.min.js +1 -1
  1220. package/treetable/BaseTreeTable.vue +434 -0
  1221. package/treetable/BodyCell.vue +30 -29
  1222. package/treetable/FooterCell.vue +15 -11
  1223. package/treetable/HeaderCell.vue +26 -21
  1224. package/treetable/TreeTable.d.ts +29 -4
  1225. package/treetable/TreeTable.vue +37 -379
  1226. package/treetable/TreeTableRow.vue +9 -11
  1227. package/treetable/treetable.cjs.js +2104 -2129
  1228. package/treetable/treetable.cjs.min.js +1 -1
  1229. package/treetable/treetable.esm.js +2104 -2129
  1230. package/treetable/treetable.esm.min.js +1 -1
  1231. package/treetable/treetable.js +2104 -2130
  1232. package/treetable/treetable.min.js +1 -1
  1233. package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
  1234. package/tristatecheckbox/TriStateCheckbox.d.ts +33 -6
  1235. package/tristatecheckbox/TriStateCheckbox.vue +12 -49
  1236. package/tristatecheckbox/tristatecheckbox.cjs.js +196 -144
  1237. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  1238. package/tristatecheckbox/tristatecheckbox.esm.js +196 -144
  1239. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  1240. package/tristatecheckbox/tristatecheckbox.js +197 -145
  1241. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  1242. package/useconfirm/useconfirm.cjs.js +6 -9
  1243. package/useconfirm/useconfirm.cjs.min.js +1 -1
  1244. package/useconfirm/useconfirm.esm.js +6 -9
  1245. package/useconfirm/useconfirm.esm.min.js +1 -1
  1246. package/useconfirm/useconfirm.js +6 -9
  1247. package/useconfirm/useconfirm.min.js +1 -1
  1248. package/usedialog/usedialog.cjs.js +6 -9
  1249. package/usedialog/usedialog.cjs.min.js +1 -1
  1250. package/usedialog/usedialog.esm.js +6 -9
  1251. package/usedialog/usedialog.esm.min.js +1 -1
  1252. package/usedialog/usedialog.js +6 -9
  1253. package/usedialog/usedialog.min.js +1 -1
  1254. package/usestyle/UseStyle.d.ts +19 -0
  1255. package/usestyle/package.json +6 -0
  1256. package/usestyle/usestyle.cjs.js +73 -0
  1257. package/usestyle/usestyle.cjs.min.js +1 -0
  1258. package/usestyle/usestyle.esm.js +69 -0
  1259. package/usestyle/usestyle.esm.min.js +1 -0
  1260. package/usestyle/usestyle.js +76 -0
  1261. package/usestyle/usestyle.min.js +1 -0
  1262. package/usetoast/usetoast.cjs.js +6 -9
  1263. package/usetoast/usetoast.cjs.min.js +1 -1
  1264. package/usetoast/usetoast.esm.js +6 -9
  1265. package/usetoast/usetoast.esm.min.js +1 -1
  1266. package/usetoast/usetoast.js +6 -9
  1267. package/usetoast/usetoast.min.js +1 -1
  1268. package/utils/Utils.d.ts +12 -1
  1269. package/utils/utils.cjs.js +958 -996
  1270. package/utils/utils.cjs.min.js +1 -1
  1271. package/utils/utils.esm.js +958 -996
  1272. package/utils/utils.esm.min.js +1 -1
  1273. package/utils/utils.js +958 -996
  1274. package/utils/utils.min.js +1 -1
  1275. package/vetur-attributes.json +332 -0
  1276. package/vetur-tags.json +168 -80
  1277. package/virtualscroller/BaseVirtualScroller.vue +164 -0
  1278. package/virtualscroller/VirtualScroller.d.ts +22 -5
  1279. package/virtualscroller/VirtualScroller.vue +6 -151
  1280. package/virtualscroller/virtualscroller.cjs.js +865 -800
  1281. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  1282. package/virtualscroller/virtualscroller.esm.js +864 -799
  1283. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  1284. package/virtualscroller/virtualscroller.js +865 -801
  1285. package/virtualscroller/virtualscroller.min.js +1 -1
  1286. package/web-types.json +836 -4
  1287. package/resources/images/color.png +0 -0
  1288. package/resources/images/hue.png +0 -0
@@ -1,4 +1,3 @@
1
- import BaseComponent from 'primevue/basecomponent';
2
1
  import Button from 'primevue/button';
3
2
  import AngleDoubleDownIcon from 'primevue/icons/angledoubledown';
4
3
  import AngleDoubleLeftIcon from 'primevue/icons/angledoubleleft';
@@ -10,1135 +9,1088 @@ import AngleRightIcon from 'primevue/icons/angleright';
10
9
  import AngleUpIcon from 'primevue/icons/angleup';
11
10
  import Ripple from 'primevue/ripple';
12
11
  import { UniqueComponentId, ObjectUtils, DomHandler } from 'primevue/utils';
12
+ import BaseComponent from 'primevue/basecomponent';
13
+ import { useStyle } from 'primevue/usestyle';
13
14
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, renderSlot, createVNode, withCtx, normalizeProps, guardReactiveProps, createCommentVNode, createElementVNode, TransitionGroup, Fragment, renderList, withDirectives, createBlock, resolveDynamicComponent } from 'vue';
14
15
 
15
- var script = {
16
- name: 'PickList',
17
- extends: BaseComponent,
18
- emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'move-to-target', 'move-to-source', 'move-all-to-target', 'move-all-to-source', 'focus', 'blur'],
19
- props: {
20
- modelValue: {
21
- type: Array,
22
- default: () => [[], []]
23
- },
24
- selection: {
25
- type: Array,
26
- default: () => [[], []]
27
- },
28
- dataKey: {
29
- type: String,
30
- default: null
31
- },
32
- listStyle: {
33
- type: null,
34
- default: null
35
- },
36
- metaKeySelection: {
37
- type: Boolean,
38
- default: true
39
- },
40
- responsive: {
41
- type: Boolean,
42
- default: true
43
- },
44
- breakpoint: {
45
- type: String,
46
- default: '960px'
47
- },
48
- stripedRows: {
49
- type: Boolean,
50
- default: false
51
- },
52
- showSourceControls: {
53
- type: Boolean,
54
- default: true
55
- },
56
- showTargetControls: {
57
- type: Boolean,
58
- default: true
59
- },
60
- targetListProps: {
61
- type: null,
62
- default: null
63
- },
64
- sourceListProps: {
65
- type: null,
66
- default: null
67
- },
68
- moveUpButtonProps: {
69
- type: null,
70
- default: null
71
- },
72
- moveTopButtonProps: {
73
- type: null,
74
- default: null
75
- },
76
- moveDownButtonProps: {
77
- type: null,
78
- default: null
79
- },
80
- moveBottomButtonProps: {
81
- type: null,
82
- default: null
83
- },
84
- moveToTargetProps: {
85
- type: null,
86
- default: null
87
- },
88
- moveAllToTargetProps: {
89
- type: null,
90
- default: null
91
- },
92
- moveToSourceProps: {
93
- type: null,
94
- default: null
95
- },
96
- moveAllToSourceProps: {
97
- type: null,
98
- default: null
99
- },
100
- tabindex: {
101
- type: Number,
102
- default: 0
103
- }
16
+ var styles = "\n.p-picklist {\n display: flex;\n}\n\n.p-picklist-buttons {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.p-picklist-list-wrapper {\n flex: 1 1 50%;\n}\n\n.p-picklist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n\n.p-picklist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n.p-picklist-item.p-picklist-flip-enter-active.p-picklist-flip-enter-to,\n.p-picklist-item.p-picklist-flip-leave-active.p-picklist-flip-leave-to {\n transition: none !important;\n}\n";
17
+ var classes = {
18
+ root: function root(_ref) {
19
+ var props = _ref.props;
20
+ return ['p-picklist p-component', {
21
+ 'p-picklist-striped': props.stripedRows
22
+ }];
23
+ },
24
+ sourceControls: 'p-picklist-buttons p-picklist-source-controls',
25
+ sourceWrapper: 'p-picklist-list-wrapper p-picklist-source-wrapper',
26
+ sourceHeader: 'p-picklist-header',
27
+ sourceList: 'p-picklist-list p-picklist-source-list',
28
+ item: function item(_ref2) {
29
+ var instance = _ref2.instance,
30
+ _item = _ref2.item,
31
+ id = _ref2.id,
32
+ listIndex = _ref2.listIndex;
33
+ return ['p-picklist-item', {
34
+ 'p-highlight': instance.isSelected(_item, listIndex),
35
+ 'p-focus': id === instance.focusedOptionId
36
+ }];
37
+ },
38
+ buttons: 'p-picklist-buttons p-picklist-transfer-buttons',
39
+ targetWrapper: 'p-picklist-list-wrapper p-picklist-target-wrapper',
40
+ targetHeader: 'p-picklist-header',
41
+ targetList: 'p-picklist-list p-picklist-target',
42
+ targetControls: 'p-picklist-buttons p-picklist-target-controls'
43
+ };
44
+ var _useStyle = useStyle(styles, {
45
+ name: 'picklist',
46
+ manual: true
47
+ }),
48
+ loadStyle = _useStyle.load;
49
+ var script$1 = {
50
+ name: 'BasePickList',
51
+ "extends": BaseComponent,
52
+ props: {
53
+ modelValue: {
54
+ type: Array,
55
+ "default": function _default() {
56
+ return [[], []];
57
+ }
104
58
  },
105
- itemTouched: false,
106
- reorderDirection: null,
107
- styleElement: null,
108
- media: null,
109
- mediaChangeListener: null,
110
- data() {
111
- return {
112
- id: this.$attrs.id,
113
- d_selection: this.selection,
114
- focused: {
115
- sourceList: false,
116
- targetList: false
117
- },
118
- focusedOptionIndex: -1,
119
- viewChanged: false
120
- };
59
+ selection: {
60
+ type: Array,
61
+ "default": function _default() {
62
+ return [[], []];
63
+ }
121
64
  },
122
- watch: {
123
- '$attrs.id': function (newValue) {
124
- this.id = newValue || UniqueComponentId();
125
- },
126
- selection(newValue) {
127
- this.d_selection = newValue;
128
- },
129
- breakpoint(newValue) {
130
- this.destroyMedia();
131
- this.initMedia();
132
- }
65
+ dataKey: {
66
+ type: String,
67
+ "default": null
133
68
  },
134
- updated() {
135
- if (this.reorderDirection) {
136
- this.updateListScroll(this.$refs.sourceList.$el);
137
- this.updateListScroll(this.$refs.targetList.$el);
138
- this.reorderDirection = null;
139
- }
69
+ listStyle: {
70
+ type: null,
71
+ "default": null
140
72
  },
141
- beforeUnmount() {
142
- this.destroyStyle();
143
- this.destroyMedia();
73
+ metaKeySelection: {
74
+ type: Boolean,
75
+ "default": true
144
76
  },
145
- mounted() {
146
- this.id = this.id || UniqueComponentId();
147
-
148
- if (this.responsive) {
149
- this.createStyle();
150
- this.initMedia();
151
- }
77
+ responsive: {
78
+ type: Boolean,
79
+ "default": true
152
80
  },
153
- methods: {
154
- getItemKey(item, index) {
155
- return this.dataKey ? ObjectUtils.resolveFieldData(item, this.dataKey) : index;
156
- },
157
- getPTOptions(item, key) {
158
- return this.ptm(key, {
159
- context: {
160
- active: this.isSelected(item),
161
- focused: this.id === this.focusedOptionId
162
- }
163
- });
164
- },
165
- isSelected(item, listIndex) {
166
- return ObjectUtils.findIndexInList(item, this.d_selection[listIndex]) != -1;
167
- },
168
- onListFocus(event, listType) {
169
- const selectedFirstItem = DomHandler.findSingle(this.$refs[listType].$el, 'li.p-picklist-item.p-highlight');
170
- const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.$refs[listType].$el.children);
171
-
172
- this.focused[listType] = true;
173
-
174
- const index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
175
-
176
- this.changeFocusedOptionIndex(index, listType);
177
- this.$emit('focus', event);
178
- },
179
- onListBlur(event, listType) {
180
- this.focused[listType] = false;
181
- this.focusedOptionIndex = -1;
182
- this.$emit('blur', event);
183
- },
184
- onOptionMouseDown(index, listType) {
185
- this.focused[listType] = true;
186
- this.focusedOptionIndex = index;
187
- },
188
- moveUp(event, listIndex) {
189
- if (this.d_selection && this.d_selection[listIndex]) {
190
- let valueList = [...this.modelValue[listIndex]];
191
- let selectionList = this.d_selection[listIndex];
192
-
193
- for (let i = 0; i < selectionList.length; i++) {
194
- let selectedItem = selectionList[i];
195
- let selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, valueList);
196
-
197
- if (selectedItemIndex !== 0) {
198
- let movedItem = valueList[selectedItemIndex];
199
- let temp = valueList[selectedItemIndex - 1];
200
-
201
- valueList[selectedItemIndex - 1] = movedItem;
202
- valueList[selectedItemIndex] = temp;
203
- } else {
204
- break;
205
- }
206
- }
207
-
208
- let value = [...this.modelValue];
209
-
210
- value[listIndex] = valueList;
211
-
212
- this.reorderDirection = 'up';
213
- this.$emit('update:modelValue', value);
214
- this.$emit('reorder', {
215
- originalEvent: event,
216
- value: value,
217
- direction: this.reorderDirection,
218
- listIndex: listIndex
219
- });
220
- }
221
- },
222
- moveTop(event, listIndex) {
223
- if (this.d_selection) {
224
- let valueList = [...this.modelValue[listIndex]];
225
- let selectionList = this.d_selection[listIndex];
226
-
227
- for (let i = 0; i < selectionList.length; i++) {
228
- let selectedItem = selectionList[i];
229
- let selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, valueList);
230
-
231
- if (selectedItemIndex !== 0) {
232
- let movedItem = valueList.splice(selectedItemIndex, 1)[0];
233
-
234
- valueList.unshift(movedItem);
235
- } else {
236
- break;
237
- }
238
- }
239
-
240
- let value = [...this.modelValue];
241
-
242
- value[listIndex] = valueList;
243
-
244
- this.reorderDirection = 'top';
245
- this.$emit('update:modelValue', value);
246
- this.$emit('reorder', {
247
- originalEvent: event,
248
- value: value,
249
- direction: this.reorderDirection,
250
- listIndex: listIndex
251
- });
252
- }
253
- },
254
- moveDown(event, listIndex) {
255
- if (this.d_selection) {
256
- let valueList = [...this.modelValue[listIndex]];
257
- let selectionList = this.d_selection[listIndex];
258
-
259
- for (let i = selectionList.length - 1; i >= 0; i--) {
260
- let selectedItem = selectionList[i];
261
- let selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, valueList);
262
-
263
- if (selectedItemIndex !== valueList.length - 1) {
264
- let movedItem = valueList[selectedItemIndex];
265
- let temp = valueList[selectedItemIndex + 1];
266
-
267
- valueList[selectedItemIndex + 1] = movedItem;
268
- valueList[selectedItemIndex] = temp;
269
- } else {
270
- break;
271
- }
272
- }
273
-
274
- let value = [...this.modelValue];
275
-
276
- value[listIndex] = valueList;
277
-
278
- this.reorderDirection = 'down';
279
- this.$emit('update:modelValue', value);
280
- this.$emit('reorder', {
281
- originalEvent: event,
282
- value: value,
283
- direction: this.reorderDirection,
284
- listIndex: listIndex
285
- });
286
- }
287
- },
288
- moveBottom(event, listIndex) {
289
- if (this.d_selection) {
290
- let valueList = [...this.modelValue[listIndex]];
291
- let selectionList = this.d_selection[listIndex];
292
-
293
- for (let i = selectionList.length - 1; i >= 0; i--) {
294
- let selectedItem = selectionList[i];
295
- let selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, valueList);
296
-
297
- if (selectedItemIndex !== valueList.length - 1) {
298
- let movedItem = valueList.splice(selectedItemIndex, 1)[0];
299
-
300
- valueList.push(movedItem);
301
- } else {
302
- break;
303
- }
304
- }
305
-
306
- let value = [...this.modelValue];
307
-
308
- value[listIndex] = valueList;
309
-
310
- this.reorderDirection = 'bottom';
311
- this.$emit('update:modelValue', value);
312
- this.$emit('reorder', {
313
- originalEvent: event,
314
- value: value,
315
- direction: this.reorderDirection,
316
- listIndex: listIndex
317
- });
318
- }
319
- },
320
- moveToTarget(event) {
321
- let selection = this.d_selection && this.d_selection[0] ? this.d_selection[0] : null;
322
- let sourceList = [...this.modelValue[0]];
323
- let targetList = [...this.modelValue[1]];
324
-
325
- if (selection) {
326
- for (let i = 0; i < selection.length; i++) {
327
- let selectedItem = selection[i];
328
-
329
- if (ObjectUtils.findIndexInList(selectedItem, targetList) == -1) {
330
- targetList.push(sourceList.splice(ObjectUtils.findIndexInList(selectedItem, sourceList), 1)[0]);
331
- }
332
- }
333
-
334
- let value = [...this.modelValue];
335
-
336
- value[0] = sourceList;
337
- value[1] = targetList;
338
- this.$emit('update:modelValue', value);
339
-
340
- this.$emit('move-to-target', {
341
- originalEvent: event,
342
- items: selection
343
- });
344
-
345
- this.d_selection[0] = [];
346
- this.$emit('update:selection', this.d_selection);
347
- this.$emit('selection-change', {
348
- originalEvent: event,
349
- value: this.d_selection
350
- });
351
- }
352
- },
353
- moveAllToTarget(event) {
354
- if (this.modelValue[0]) {
355
- let sourceList = [...this.modelValue[0]];
356
- let targetList = [...this.modelValue[1]];
357
-
358
- this.$emit('move-all-to-target', {
359
- originalEvent: event,
360
- items: sourceList
361
- });
362
-
363
- targetList = [...targetList, ...sourceList];
364
- sourceList = [];
365
-
366
- let value = [...this.modelValue];
367
-
368
- value[0] = sourceList;
369
- value[1] = targetList;
370
- this.$emit('update:modelValue', value);
371
-
372
- this.d_selection[0] = [];
373
- this.$emit('update:selection', this.d_selection);
374
- this.$emit('selection-change', {
375
- originalEvent: event,
376
- value: this.d_selection
377
- });
378
- }
379
- },
380
- moveToSource(event) {
381
- let selection = this.d_selection && this.d_selection[1] ? this.d_selection[1] : null;
382
- let sourceList = [...this.modelValue[0]];
383
- let targetList = [...this.modelValue[1]];
384
-
385
- if (selection) {
386
- for (let i = 0; i < selection.length; i++) {
387
- let selectedItem = selection[i];
388
-
389
- if (ObjectUtils.findIndexInList(selectedItem, sourceList) == -1) {
390
- sourceList.push(targetList.splice(ObjectUtils.findIndexInList(selectedItem, targetList), 1)[0]);
391
- }
392
- }
393
-
394
- let value = [...this.modelValue];
395
-
396
- value[0] = sourceList;
397
- value[1] = targetList;
398
- this.$emit('update:modelValue', value);
399
-
400
- this.$emit('move-to-source', {
401
- originalEvent: event,
402
- items: selection
403
- });
404
-
405
- this.d_selection[1] = [];
406
- this.$emit('update:selection', this.d_selection);
407
- this.$emit('selection-change', {
408
- originalEvent: event,
409
- value: this.d_selection
410
- });
411
- }
412
- },
413
- moveAllToSource(event) {
414
- if (this.modelValue[1]) {
415
- let sourceList = [...this.modelValue[0]];
416
- let targetList = [...this.modelValue[1]];
417
-
418
- this.$emit('move-all-to-source', {
419
- originalEvent: event,
420
- items: targetList
421
- });
422
-
423
- sourceList = [...sourceList, ...targetList];
424
- targetList = [];
425
-
426
- let value = [...this.modelValue];
427
-
428
- value[0] = sourceList;
429
- value[1] = targetList;
430
- this.$emit('update:modelValue', value);
431
-
432
- this.d_selection[1] = [];
433
- this.$emit('update:selection', this.d_selection);
434
- this.$emit('selection-change', {
435
- originalEvent: event,
436
- value: this.d_selection
437
- });
438
- }
439
- },
440
- onItemClick(event, item, index, listIndex) {
441
- const listType = listIndex === 0 ? 'sourceList' : 'targetList';
442
-
443
- this.itemTouched = false;
444
- const selectionList = this.d_selection[listIndex];
445
- const selectedIndex = ObjectUtils.findIndexInList(item, this.d_selection);
446
- const selected = selectedIndex != -1;
447
- const metaSelection = this.itemTouched ? false : this.metaKeySelection;
448
- const selectedId = DomHandler.find(this.$refs[listType].$el, '.p-picklist-item')[index].getAttribute('id');
449
-
450
- this.focusedOptionIndex = selectedId;
451
- let _selection;
452
-
453
- if (metaSelection) {
454
- let metaKey = event.metaKey || event.ctrlKey;
455
-
456
- if (selected && metaKey) {
457
- _selection = selectionList.filter((val, index) => index !== selectedIndex);
458
- } else {
459
- _selection = metaKey ? (selectionList ? [...selectionList] : []) : [];
460
- _selection.push(item);
461
- }
462
- } else {
463
- if (selected) {
464
- _selection = selectionList.filter((val, index) => index !== selectedIndex);
465
- } else {
466
- _selection = selectionList ? [...selectionList] : [];
467
- _selection.push(item);
468
- }
469
- }
470
-
471
- let newSelection = [...this.d_selection];
472
-
473
- newSelection[listIndex] = _selection;
474
- this.d_selection = newSelection;
475
-
476
- this.$emit('update:selection', this.d_selection);
477
- this.$emit('selection-change', {
478
- originalEvent: event,
479
- value: this.d_selection
480
- });
481
- },
482
- onItemDblClick(event, item, listIndex) {
483
- if (listIndex === 0) this.moveToTarget(event);
484
- else if (listIndex === 1) this.moveToSource(event);
485
- },
486
- onItemTouchEnd() {
487
- this.itemTouched = true;
488
- },
489
- onItemKeyDown(event, listType) {
490
- switch (event.code) {
491
- case 'ArrowDown':
492
- this.onArrowDownKey(event, listType);
493
- break;
494
-
495
- case 'ArrowUp':
496
- this.onArrowUpKey(event, listType);
497
- break;
498
-
499
- case 'Home':
500
- this.onHomeKey(event, listType);
501
- break;
502
-
503
- case 'End':
504
- this.onEndKey(event, listType);
505
- break;
506
-
507
- case 'Enter':
508
- this.onEnterKey(event, listType);
509
- break;
510
-
511
- case 'Space':
512
- this.onSpaceKey(event, listType);
513
- break;
514
-
515
- case 'KeyA':
516
- if (event.ctrlKey) {
517
- this.d_selection = [...this.modelValue];
518
- this.$emit('update:selection', this.d_selection);
519
- }
520
- }
521
- },
522
- onArrowDownKey(event, listType) {
523
- const optionIndex = this.findNextOptionIndex(this.focusedOptionIndex, listType);
524
-
525
- this.changeFocusedOptionIndex(optionIndex, listType);
526
-
527
- if (event.shiftKey) {
528
- this.onEnterKey(event, listType);
529
- }
530
-
531
- event.preventDefault();
532
- },
533
- onArrowUpKey(event, listType) {
534
- const optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex, listType);
535
-
536
- this.changeFocusedOptionIndex(optionIndex, listType);
537
-
538
- if (event.shiftKey) {
539
- this.onEnterKey(event, listType);
540
- }
541
-
542
- event.preventDefault();
543
- },
544
- onEnterKey(event, listType) {
545
- const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
546
- const focusedItem = DomHandler.findSingle(this.$refs[listType].$el, `li.p-picklist-item[id=${this.focusedOptionIndex}]`);
547
- const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
548
- const listId = listType === 'sourceList' ? 0 : 1;
549
-
550
- this.onItemClick(event, this.modelValue[listId][matchedOptionIndex], matchedOptionIndex, listId);
551
-
552
- event.preventDefault();
553
- },
554
- onSpaceKey(event, listType) {
555
- event.preventDefault();
556
-
557
- if (event.shiftKey) {
558
- const listId = listType === 'sourceList' ? 0 : 1;
559
- const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
560
- const selectedItemIndex = ObjectUtils.findIndexInList(this.d_selection[listId][0], [...this.modelValue[listId]]);
561
- const focusedItem = DomHandler.findSingle(this.$refs[listType].$el, `li.p-picklist-item[id=${this.focusedOptionIndex}]`);
562
- const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
563
-
564
- this.d_selection[listId] = [...this.modelValue[listId]].slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
565
- this.$emit('update:selection', this.d_selection);
566
- } else {
567
- this.onEnterKey(event, listType);
568
- }
569
- },
570
- onHomeKey(event, listType) {
571
- if (event.ctrlKey && event.shiftKey) {
572
- const listId = listType === 'sourceList' ? 0 : 1;
573
- const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
574
- const focusedItem = DomHandler.findSingle(this.$refs[listType].$el, `li.p-picklist-item[id=${this.focusedOptionIndex}]`);
575
- const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
576
-
577
- this.d_selection[listId] = [...this.modelValue[listId]].slice(0, matchedOptionIndex + 1);
578
- this.$emit('update:selection', this.d_selection);
579
- } else {
580
- this.changeFocusedOptionIndex(0, listType);
581
- }
582
-
583
- event.preventDefault();
584
- },
585
- onEndKey(event, listType) {
586
- const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
587
-
588
- if (event.ctrlKey && event.shiftKey) {
589
- const listId = listType === 'sourceList' ? 0 : 1;
590
- const focusedItem = DomHandler.findSingle(this.$refs[listType].$el, `li.p-picklist-item[id=${this.focusedOptionIndex}]`);
591
- const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
592
-
593
- this.d_selection[listId] = [...this.modelValue[listId]].slice(matchedOptionIndex, items.length);
594
- this.$emit('update:selection', this.d_selection);
595
- } else {
596
- this.changeFocusedOptionIndex(items.length - 1, listType);
597
- }
598
-
599
- event.preventDefault();
600
- },
601
- findNextOptionIndex(index, listType) {
602
- const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
603
-
604
- const matchedOptionIndex = [...items].findIndex((link) => link.id === index);
605
-
606
- return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
607
- },
608
- findPrevOptionIndex(index, listType) {
609
- const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
610
- const matchedOptionIndex = [...items].findIndex((link) => link.id === index);
611
-
612
- return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
613
- },
614
- changeFocusedOptionIndex(index, listType) {
615
- const items = DomHandler.find(this.$refs[listType].$el, 'li.p-picklist-item');
616
-
617
- let order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
618
-
619
- this.focusedOptionIndex = items[order].getAttribute('id');
620
- this.scrollInView(items[order].getAttribute('id'), listType);
621
- },
622
- scrollInView(id, listType) {
623
- const element = DomHandler.findSingle(this.$refs[listType].$el, `li[id="${id}"]`);
624
-
625
- if (element) {
626
- element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
627
- }
628
- },
629
- updateListScroll(listElement) {
630
- const listItems = DomHandler.find(listElement, '.p-picklist-item.p-highlight');
631
-
632
- if (listItems && listItems.length) {
633
- switch (this.reorderDirection) {
634
- case 'up':
635
- DomHandler.scrollInView(listElement, listItems[0]);
636
- break;
637
-
638
- case 'top':
639
- listElement.scrollTop = 0;
640
- break;
641
-
642
- case 'down':
643
- DomHandler.scrollInView(listElement, listItems[listItems.length - 1]);
644
- break;
645
-
646
- case 'bottom':
647
- listElement.scrollTop = listElement.scrollHeight;
648
- break;
649
- }
650
- }
651
- },
652
- initMedia() {
653
- this.media = window.matchMedia(`(max-width: ${this.breakpoint})`);
654
- this.viewChanged = this.media.matches;
655
- this.bindMediaChangeListener();
656
- },
657
- destroyMedia() {
658
- this.unbindMediaChangeListener();
659
- },
660
- bindMediaChangeListener() {
661
- if (this.media && !this.mediaChangeListener) {
662
- this.mediaChangeListener = (event) => {
663
- this.viewChanged = event.matches;
664
- };
665
-
666
- this.media.addEventListener('change', this.mediaChangeListener);
667
- }
668
- },
669
- unbindMediaChangeListener() {
670
- if (this.media && this.mediaChangeListener) {
671
- this.media.removeEventListener('change', this.mediaChangeListener);
672
- this.mediaChangeListener = null;
673
- }
674
- },
675
- createStyle() {
676
- if (!this.styleElement) {
677
- this.$el.setAttribute(this.attributeSelector, '');
678
- this.styleElement = document.createElement('style');
679
- this.styleElement.type = 'text/css';
680
- document.head.appendChild(this.styleElement);
681
-
682
- let innerHTML = `
683
- @media screen and (max-width: ${this.breakpoint}) {
684
- .p-picklist[${this.attributeSelector}] {
685
- flex-direction: column;
81
+ breakpoint: {
82
+ type: String,
83
+ "default": '960px'
84
+ },
85
+ stripedRows: {
86
+ type: Boolean,
87
+ "default": false
88
+ },
89
+ showSourceControls: {
90
+ type: Boolean,
91
+ "default": true
92
+ },
93
+ showTargetControls: {
94
+ type: Boolean,
95
+ "default": true
96
+ },
97
+ targetListProps: {
98
+ type: null,
99
+ "default": null
100
+ },
101
+ sourceListProps: {
102
+ type: null,
103
+ "default": null
104
+ },
105
+ moveUpButtonProps: {
106
+ type: null,
107
+ "default": null
108
+ },
109
+ moveTopButtonProps: {
110
+ type: null,
111
+ "default": null
112
+ },
113
+ moveDownButtonProps: {
114
+ type: null,
115
+ "default": null
116
+ },
117
+ moveBottomButtonProps: {
118
+ type: null,
119
+ "default": null
120
+ },
121
+ moveToTargetProps: {
122
+ type: null,
123
+ "default": null
124
+ },
125
+ moveAllToTargetProps: {
126
+ type: null,
127
+ "default": null
128
+ },
129
+ moveToSourceProps: {
130
+ type: null,
131
+ "default": null
132
+ },
133
+ moveAllToSourceProps: {
134
+ type: null,
135
+ "default": null
136
+ },
137
+ tabindex: {
138
+ type: Number,
139
+ "default": 0
686
140
  }
141
+ },
142
+ css: {
143
+ classes: classes,
144
+ loadStyle: loadStyle
145
+ },
146
+ provide: function provide() {
147
+ return {
148
+ $parentInstance: this
149
+ };
150
+ }
151
+ };
687
152
 
688
- .p-picklist[${this.attributeSelector}] .p-picklist-buttons {
689
- padding: var(--content-padding);
690
- flex-direction: row;
153
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
154
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
155
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
156
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
157
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
158
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
159
+ var script = {
160
+ name: 'PickList',
161
+ "extends": script$1,
162
+ emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'move-to-target', 'move-to-source', 'move-all-to-target', 'move-all-to-source', 'focus', 'blur'],
163
+ itemTouched: false,
164
+ reorderDirection: null,
165
+ styleElement: null,
166
+ media: null,
167
+ mediaChangeListener: null,
168
+ data: function data() {
169
+ return {
170
+ id: this.$attrs.id,
171
+ d_selection: this.selection,
172
+ focused: {
173
+ sourceList: false,
174
+ targetList: false
175
+ },
176
+ focusedOptionIndex: -1,
177
+ viewChanged: false
178
+ };
179
+ },
180
+ watch: {
181
+ '$attrs.id': function $attrsId(newValue) {
182
+ this.id = newValue || UniqueComponentId();
183
+ },
184
+ selection: function selection(newValue) {
185
+ this.d_selection = newValue;
186
+ },
187
+ breakpoint: function breakpoint(newValue) {
188
+ this.destroyMedia();
189
+ this.initMedia();
691
190
  }
692
-
693
- .p-picklist[${this.attributeSelector}] .p-picklist-buttons .p-button {
694
- margin-right: var(--inline-spacing);
695
- margin-bottom: 0;
191
+ },
192
+ updated: function updated() {
193
+ if (this.reorderDirection) {
194
+ this.updateListScroll(this.$refs.sourceList.$el);
195
+ this.updateListScroll(this.$refs.targetList.$el);
196
+ this.reorderDirection = null;
696
197
  }
697
-
698
- .p-picklist[${this.attributeSelector}] .p-picklist-buttons .p-button:last-child {
699
- margin-right: 0;
198
+ },
199
+ beforeUnmount: function beforeUnmount() {
200
+ this.destroyStyle();
201
+ this.destroyMedia();
202
+ },
203
+ mounted: function mounted() {
204
+ this.id = this.id || UniqueComponentId();
205
+ if (this.responsive) {
206
+ this.createStyle();
207
+ this.initMedia();
700
208
  }
701
- }
702
- `;
703
-
704
- this.styleElement.innerHTML = innerHTML;
705
- }
706
- },
707
- destroyStyle() {
708
- if (this.styleElement) {
709
- document.head.removeChild(this.styleElement);
710
- this.styleElement = null;
711
- }
712
- },
713
- moveDisabled(index) {
714
- if (!this.d_selection[index] || !this.d_selection[index].length) {
715
- return true;
716
- }
717
- },
718
- moveAllDisabled(list) {
719
- return ObjectUtils.isEmpty(this[list]);
720
- },
721
- moveSourceDisabled() {
722
- return ObjectUtils.isEmpty(this.targetList);
723
- },
724
- itemClass(item, id, listIndex) {
725
- return ['p-picklist-item', { 'p-highlight': this.isSelected(item, listIndex), 'p-focus': id === this.focusedOptionId }];
209
+ },
210
+ methods: {
211
+ getItemKey: function getItemKey(item, index) {
212
+ return this.dataKey ? ObjectUtils.resolveFieldData(item, this.dataKey) : index;
213
+ },
214
+ getPTOptions: function getPTOptions(item, key) {
215
+ return this.ptm(key, {
216
+ context: {
217
+ active: this.isSelected(item),
218
+ focused: this.id === this.focusedOptionId
219
+ }
220
+ });
221
+ },
222
+ isSelected: function isSelected(item, listIndex) {
223
+ return ObjectUtils.findIndexInList(item, this.d_selection[listIndex]) != -1;
224
+ },
225
+ onListFocus: function onListFocus(event, listType) {
226
+ var selectedFirstItem = DomHandler.findSingle(this.$refs[listType].$el, '[data-p-highlight="true"]');
227
+ var findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.$refs[listType].$el.children);
228
+ this.focused[listType] = true;
229
+ var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
230
+ this.changeFocusedOptionIndex(index, listType);
231
+ this.$emit('focus', event);
232
+ },
233
+ onListBlur: function onListBlur(event, listType) {
234
+ this.focused[listType] = false;
235
+ this.focusedOptionIndex = -1;
236
+ this.$emit('blur', event);
237
+ },
238
+ onOptionMouseDown: function onOptionMouseDown(index, listType) {
239
+ this.focused[listType] = true;
240
+ this.focusedOptionIndex = index;
241
+ },
242
+ moveUp: function moveUp(event, listIndex) {
243
+ if (this.d_selection && this.d_selection[listIndex]) {
244
+ var valueList = _toConsumableArray(this.modelValue[listIndex]);
245
+ var selectionList = this.d_selection[listIndex];
246
+ for (var i = 0; i < selectionList.length; i++) {
247
+ var selectedItem = selectionList[i];
248
+ var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, valueList);
249
+ if (selectedItemIndex !== 0) {
250
+ var movedItem = valueList[selectedItemIndex];
251
+ var temp = valueList[selectedItemIndex - 1];
252
+ valueList[selectedItemIndex - 1] = movedItem;
253
+ valueList[selectedItemIndex] = temp;
254
+ } else {
255
+ break;
256
+ }
257
+ }
258
+ var value = _toConsumableArray(this.modelValue);
259
+ value[listIndex] = valueList;
260
+ this.reorderDirection = 'up';
261
+ this.$emit('update:modelValue', value);
262
+ this.$emit('reorder', {
263
+ originalEvent: event,
264
+ value: value,
265
+ direction: this.reorderDirection,
266
+ listIndex: listIndex
267
+ });
268
+ }
269
+ },
270
+ moveTop: function moveTop(event, listIndex) {
271
+ if (this.d_selection) {
272
+ var valueList = _toConsumableArray(this.modelValue[listIndex]);
273
+ var selectionList = this.d_selection[listIndex];
274
+ for (var i = 0; i < selectionList.length; i++) {
275
+ var selectedItem = selectionList[i];
276
+ var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, valueList);
277
+ if (selectedItemIndex !== 0) {
278
+ var movedItem = valueList.splice(selectedItemIndex, 1)[0];
279
+ valueList.unshift(movedItem);
280
+ } else {
281
+ break;
282
+ }
283
+ }
284
+ var value = _toConsumableArray(this.modelValue);
285
+ value[listIndex] = valueList;
286
+ this.reorderDirection = 'top';
287
+ this.$emit('update:modelValue', value);
288
+ this.$emit('reorder', {
289
+ originalEvent: event,
290
+ value: value,
291
+ direction: this.reorderDirection,
292
+ listIndex: listIndex
293
+ });
294
+ }
295
+ },
296
+ moveDown: function moveDown(event, listIndex) {
297
+ if (this.d_selection) {
298
+ var valueList = _toConsumableArray(this.modelValue[listIndex]);
299
+ var selectionList = this.d_selection[listIndex];
300
+ for (var i = selectionList.length - 1; i >= 0; i--) {
301
+ var selectedItem = selectionList[i];
302
+ var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, valueList);
303
+ if (selectedItemIndex !== valueList.length - 1) {
304
+ var movedItem = valueList[selectedItemIndex];
305
+ var temp = valueList[selectedItemIndex + 1];
306
+ valueList[selectedItemIndex + 1] = movedItem;
307
+ valueList[selectedItemIndex] = temp;
308
+ } else {
309
+ break;
310
+ }
311
+ }
312
+ var value = _toConsumableArray(this.modelValue);
313
+ value[listIndex] = valueList;
314
+ this.reorderDirection = 'down';
315
+ this.$emit('update:modelValue', value);
316
+ this.$emit('reorder', {
317
+ originalEvent: event,
318
+ value: value,
319
+ direction: this.reorderDirection,
320
+ listIndex: listIndex
321
+ });
322
+ }
323
+ },
324
+ moveBottom: function moveBottom(event, listIndex) {
325
+ if (this.d_selection) {
326
+ var valueList = _toConsumableArray(this.modelValue[listIndex]);
327
+ var selectionList = this.d_selection[listIndex];
328
+ for (var i = selectionList.length - 1; i >= 0; i--) {
329
+ var selectedItem = selectionList[i];
330
+ var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, valueList);
331
+ if (selectedItemIndex !== valueList.length - 1) {
332
+ var movedItem = valueList.splice(selectedItemIndex, 1)[0];
333
+ valueList.push(movedItem);
334
+ } else {
335
+ break;
336
+ }
337
+ }
338
+ var value = _toConsumableArray(this.modelValue);
339
+ value[listIndex] = valueList;
340
+ this.reorderDirection = 'bottom';
341
+ this.$emit('update:modelValue', value);
342
+ this.$emit('reorder', {
343
+ originalEvent: event,
344
+ value: value,
345
+ direction: this.reorderDirection,
346
+ listIndex: listIndex
347
+ });
348
+ }
349
+ },
350
+ moveToTarget: function moveToTarget(event) {
351
+ var selection = this.d_selection && this.d_selection[0] ? this.d_selection[0] : null;
352
+ var sourceList = _toConsumableArray(this.modelValue[0]);
353
+ var targetList = _toConsumableArray(this.modelValue[1]);
354
+ if (selection) {
355
+ for (var i = 0; i < selection.length; i++) {
356
+ var selectedItem = selection[i];
357
+ if (ObjectUtils.findIndexInList(selectedItem, targetList) == -1) {
358
+ targetList.push(sourceList.splice(ObjectUtils.findIndexInList(selectedItem, sourceList), 1)[0]);
359
+ }
360
+ }
361
+ var value = _toConsumableArray(this.modelValue);
362
+ value[0] = sourceList;
363
+ value[1] = targetList;
364
+ this.$emit('update:modelValue', value);
365
+ this.$emit('move-to-target', {
366
+ originalEvent: event,
367
+ items: selection
368
+ });
369
+ this.d_selection[0] = [];
370
+ this.$emit('update:selection', this.d_selection);
371
+ this.$emit('selection-change', {
372
+ originalEvent: event,
373
+ value: this.d_selection
374
+ });
375
+ }
376
+ },
377
+ moveAllToTarget: function moveAllToTarget(event) {
378
+ if (this.modelValue[0]) {
379
+ var sourceList = _toConsumableArray(this.modelValue[0]);
380
+ var targetList = _toConsumableArray(this.modelValue[1]);
381
+ this.$emit('move-all-to-target', {
382
+ originalEvent: event,
383
+ items: sourceList
384
+ });
385
+ targetList = [].concat(_toConsumableArray(targetList), _toConsumableArray(sourceList));
386
+ sourceList = [];
387
+ var value = _toConsumableArray(this.modelValue);
388
+ value[0] = sourceList;
389
+ value[1] = targetList;
390
+ this.$emit('update:modelValue', value);
391
+ this.d_selection[0] = [];
392
+ this.$emit('update:selection', this.d_selection);
393
+ this.$emit('selection-change', {
394
+ originalEvent: event,
395
+ value: this.d_selection
396
+ });
397
+ }
398
+ },
399
+ moveToSource: function moveToSource(event) {
400
+ var selection = this.d_selection && this.d_selection[1] ? this.d_selection[1] : null;
401
+ var sourceList = _toConsumableArray(this.modelValue[0]);
402
+ var targetList = _toConsumableArray(this.modelValue[1]);
403
+ if (selection) {
404
+ for (var i = 0; i < selection.length; i++) {
405
+ var selectedItem = selection[i];
406
+ if (ObjectUtils.findIndexInList(selectedItem, sourceList) == -1) {
407
+ sourceList.push(targetList.splice(ObjectUtils.findIndexInList(selectedItem, targetList), 1)[0]);
408
+ }
726
409
  }
410
+ var value = _toConsumableArray(this.modelValue);
411
+ value[0] = sourceList;
412
+ value[1] = targetList;
413
+ this.$emit('update:modelValue', value);
414
+ this.$emit('move-to-source', {
415
+ originalEvent: event,
416
+ items: selection
417
+ });
418
+ this.d_selection[1] = [];
419
+ this.$emit('update:selection', this.d_selection);
420
+ this.$emit('selection-change', {
421
+ originalEvent: event,
422
+ value: this.d_selection
423
+ });
424
+ }
727
425
  },
728
- computed: {
729
- idSource() {
730
- return `${this.id}_source`;
731
- },
732
- idTarget() {
733
- return `${this.id}_target`;
734
- },
735
- focusedOptionId() {
736
- return this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : null;
737
- },
738
- containerClass() {
739
- return [
740
- 'p-picklist p-component',
741
- {
742
- 'p-picklist-striped': this.stripedRows
743
- }
744
- ];
745
- },
746
- sourceList() {
747
- return this.modelValue && this.modelValue[0] ? this.modelValue[0] : null;
748
- },
749
- targetList() {
750
- return this.modelValue && this.modelValue[1] ? this.modelValue[1] : null;
751
- },
752
- attributeSelector() {
753
- return UniqueComponentId();
754
- },
755
- moveUpAriaLabel() {
756
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveUp : undefined;
757
- },
758
- moveTopAriaLabel() {
759
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveTop : undefined;
760
- },
761
- moveDownAriaLabel() {
762
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveDown : undefined;
763
- },
764
- moveBottomAriaLabel() {
765
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveBottom : undefined;
766
- },
767
- moveToTargetAriaLabel() {
768
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveToTarget : undefined;
769
- },
770
- moveAllToTargetAriaLabel() {
771
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveAllToTarget : undefined;
772
- },
773
- moveToSourceAriaLabel() {
774
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveToSource : undefined;
775
- },
776
- moveAllToSourceAriaLabel() {
777
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveAllToSource : undefined;
426
+ moveAllToSource: function moveAllToSource(event) {
427
+ if (this.modelValue[1]) {
428
+ var sourceList = _toConsumableArray(this.modelValue[0]);
429
+ var targetList = _toConsumableArray(this.modelValue[1]);
430
+ this.$emit('move-all-to-source', {
431
+ originalEvent: event,
432
+ items: targetList
433
+ });
434
+ sourceList = [].concat(_toConsumableArray(sourceList), _toConsumableArray(targetList));
435
+ targetList = [];
436
+ var value = _toConsumableArray(this.modelValue);
437
+ value[0] = sourceList;
438
+ value[1] = targetList;
439
+ this.$emit('update:modelValue', value);
440
+ this.d_selection[1] = [];
441
+ this.$emit('update:selection', this.d_selection);
442
+ this.$emit('selection-change', {
443
+ originalEvent: event,
444
+ value: this.d_selection
445
+ });
446
+ }
447
+ },
448
+ onItemClick: function onItemClick(event, item, index, listIndex) {
449
+ var listType = listIndex === 0 ? 'sourceList' : 'targetList';
450
+ this.itemTouched = false;
451
+ var selectionList = this.d_selection[listIndex];
452
+ var selectedIndex = ObjectUtils.findIndexInList(item, this.d_selection);
453
+ var selected = selectedIndex != -1;
454
+ var metaSelection = this.itemTouched ? false : this.metaKeySelection;
455
+ var selectedId = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]')[index].getAttribute('id');
456
+ this.focusedOptionIndex = selectedId;
457
+ var _selection;
458
+ if (metaSelection) {
459
+ var metaKey = event.metaKey || event.ctrlKey;
460
+ if (selected && metaKey) {
461
+ _selection = selectionList.filter(function (val, index) {
462
+ return index !== selectedIndex;
463
+ });
464
+ } else {
465
+ _selection = metaKey ? selectionList ? _toConsumableArray(selectionList) : [] : [];
466
+ _selection.push(item);
467
+ }
468
+ } else {
469
+ if (selected) {
470
+ _selection = selectionList.filter(function (val, index) {
471
+ return index !== selectedIndex;
472
+ });
473
+ } else {
474
+ _selection = selectionList ? _toConsumableArray(selectionList) : [];
475
+ _selection.push(item);
778
476
  }
477
+ }
478
+ var newSelection = _toConsumableArray(this.d_selection);
479
+ newSelection[listIndex] = _selection;
480
+ this.d_selection = newSelection;
481
+ this.$emit('update:selection', this.d_selection);
482
+ this.$emit('selection-change', {
483
+ originalEvent: event,
484
+ value: this.d_selection
485
+ });
486
+ },
487
+ onItemDblClick: function onItemDblClick(event, item, listIndex) {
488
+ if (listIndex === 0) this.moveToTarget(event);else if (listIndex === 1) this.moveToSource(event);
489
+ },
490
+ onItemTouchEnd: function onItemTouchEnd() {
491
+ this.itemTouched = true;
492
+ },
493
+ onItemKeyDown: function onItemKeyDown(event, listType) {
494
+ switch (event.code) {
495
+ case 'ArrowDown':
496
+ this.onArrowDownKey(event, listType);
497
+ break;
498
+ case 'ArrowUp':
499
+ this.onArrowUpKey(event, listType);
500
+ break;
501
+ case 'Home':
502
+ this.onHomeKey(event, listType);
503
+ break;
504
+ case 'End':
505
+ this.onEndKey(event, listType);
506
+ break;
507
+ case 'Enter':
508
+ this.onEnterKey(event, listType);
509
+ break;
510
+ case 'Space':
511
+ this.onSpaceKey(event, listType);
512
+ break;
513
+ case 'KeyA':
514
+ if (event.ctrlKey) {
515
+ this.d_selection = _toConsumableArray(this.modelValue);
516
+ this.$emit('update:selection', this.d_selection);
517
+ }
518
+ }
779
519
  },
780
- components: {
781
- PLButton: Button,
782
- AngleRightIcon: AngleRightIcon,
783
- AngleLeftIcon: AngleLeftIcon,
784
- AngleDownIcon: AngleDownIcon,
785
- AngleUpIcon: AngleUpIcon,
786
- AngleDoubleRightIcon: AngleDoubleRightIcon,
787
- AngleDoubleLeftIcon: AngleDoubleLeftIcon,
788
- AngleDoubleDownIcon: AngleDoubleDownIcon,
789
- AngleDoubleUpIcon: AngleDoubleUpIcon
790
- },
791
- directives: {
792
- ripple: Ripple
520
+ onArrowDownKey: function onArrowDownKey(event, listType) {
521
+ var optionIndex = this.findNextOptionIndex(this.focusedOptionIndex, listType);
522
+ this.changeFocusedOptionIndex(optionIndex, listType);
523
+ if (event.shiftKey) {
524
+ this.onEnterKey(event, listType);
525
+ }
526
+ event.preventDefault();
527
+ },
528
+ onArrowUpKey: function onArrowUpKey(event, listType) {
529
+ var optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex, listType);
530
+ this.changeFocusedOptionIndex(optionIndex, listType);
531
+ if (event.shiftKey) {
532
+ this.onEnterKey(event, listType);
533
+ }
534
+ event.preventDefault();
535
+ },
536
+ onEnterKey: function onEnterKey(event, listType) {
537
+ var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
538
+ var focusedItem = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
539
+ var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
540
+ return item === focusedItem;
541
+ });
542
+ var listId = listType === 'sourceList' ? 0 : 1;
543
+ this.onItemClick(event, this.modelValue[listId][matchedOptionIndex], matchedOptionIndex, listId);
544
+ event.preventDefault();
545
+ },
546
+ onSpaceKey: function onSpaceKey(event, listType) {
547
+ event.preventDefault();
548
+ if (event.shiftKey) {
549
+ var listId = listType === 'sourceList' ? 0 : 1;
550
+ var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
551
+ var selectedItemIndex = ObjectUtils.findIndexInList(this.d_selection[listId][0], _toConsumableArray(this.modelValue[listId]));
552
+ var focusedItem = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
553
+ var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
554
+ return item === focusedItem;
555
+ });
556
+ this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
557
+ this.$emit('update:selection', this.d_selection);
558
+ } else {
559
+ this.onEnterKey(event, listType);
560
+ }
561
+ },
562
+ onHomeKey: function onHomeKey(event, listType) {
563
+ if (event.ctrlKey && event.shiftKey) {
564
+ var listId = listType === 'sourceList' ? 0 : 1;
565
+ var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
566
+ var focusedItem = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
567
+ var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
568
+ return item === focusedItem;
569
+ });
570
+ this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(0, matchedOptionIndex + 1);
571
+ this.$emit('update:selection', this.d_selection);
572
+ } else {
573
+ this.changeFocusedOptionIndex(0, listType);
574
+ }
575
+ event.preventDefault();
576
+ },
577
+ onEndKey: function onEndKey(event, listType) {
578
+ var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
579
+ if (event.ctrlKey && event.shiftKey) {
580
+ var listId = listType === 'sourceList' ? 0 : 1;
581
+ var focusedItem = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
582
+ var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
583
+ return item === focusedItem;
584
+ });
585
+ this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(matchedOptionIndex, items.length);
586
+ this.$emit('update:selection', this.d_selection);
587
+ } else {
588
+ this.changeFocusedOptionIndex(items.length - 1, listType);
589
+ }
590
+ event.preventDefault();
591
+ },
592
+ findNextOptionIndex: function findNextOptionIndex(index, listType) {
593
+ var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
594
+ var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
595
+ return link.id === index;
596
+ });
597
+ return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
598
+ },
599
+ findPrevOptionIndex: function findPrevOptionIndex(index, listType) {
600
+ var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
601
+ var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
602
+ return link.id === index;
603
+ });
604
+ return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
605
+ },
606
+ changeFocusedOptionIndex: function changeFocusedOptionIndex(index, listType) {
607
+ var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
608
+ var order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
609
+ this.focusedOptionIndex = items[order].getAttribute('id');
610
+ this.scrollInView(items[order].getAttribute('id'), listType);
611
+ },
612
+ scrollInView: function scrollInView(id, listType) {
613
+ var element = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=\"".concat(id, "\"]"));
614
+ if (element) {
615
+ element.scrollIntoView && element.scrollIntoView({
616
+ block: 'nearest',
617
+ inline: 'start'
618
+ });
619
+ }
620
+ },
621
+ updateListScroll: function updateListScroll(listElement) {
622
+ var listItems = DomHandler.find(listElement, '[data-pc-section="item"][data-p-highlight="true"]');
623
+ if (listItems && listItems.length) {
624
+ switch (this.reorderDirection) {
625
+ case 'up':
626
+ DomHandler.scrollInView(listElement, listItems[0]);
627
+ break;
628
+ case 'top':
629
+ listElement.scrollTop = 0;
630
+ break;
631
+ case 'down':
632
+ DomHandler.scrollInView(listElement, listItems[listItems.length - 1]);
633
+ break;
634
+ case 'bottom':
635
+ listElement.scrollTop = listElement.scrollHeight;
636
+ break;
637
+ }
638
+ }
639
+ },
640
+ initMedia: function initMedia() {
641
+ this.media = window.matchMedia("(max-width: ".concat(this.breakpoint, ")"));
642
+ this.viewChanged = this.media.matches;
643
+ this.bindMediaChangeListener();
644
+ },
645
+ destroyMedia: function destroyMedia() {
646
+ this.unbindMediaChangeListener();
647
+ },
648
+ bindMediaChangeListener: function bindMediaChangeListener() {
649
+ var _this = this;
650
+ if (this.media && !this.mediaChangeListener) {
651
+ this.mediaChangeListener = function (event) {
652
+ _this.viewChanged = event.matches;
653
+ };
654
+ this.media.addEventListener('change', this.mediaChangeListener);
655
+ }
656
+ },
657
+ unbindMediaChangeListener: function unbindMediaChangeListener() {
658
+ if (this.media && this.mediaChangeListener) {
659
+ this.media.removeEventListener('change', this.mediaChangeListener);
660
+ this.mediaChangeListener = null;
661
+ }
662
+ },
663
+ createStyle: function createStyle() {
664
+ if (!this.styleElement && !this.isUnstyled) {
665
+ this.$el.setAttribute(this.attributeSelector, '');
666
+ this.styleElement = document.createElement('style');
667
+ this.styleElement.type = 'text/css';
668
+ document.head.appendChild(this.styleElement);
669
+ var innerHTML = "\n@media screen and (max-width: ".concat(this.breakpoint, ") {\n .p-picklist[").concat(this.attributeSelector, "] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(this.attributeSelector, "] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(this.attributeSelector, "] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(this.attributeSelector, "] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n}\n");
670
+ this.styleElement.innerHTML = innerHTML;
671
+ }
672
+ },
673
+ destroyStyle: function destroyStyle() {
674
+ if (this.styleElement) {
675
+ document.head.removeChild(this.styleElement);
676
+ this.styleElement = null;
677
+ }
678
+ },
679
+ moveDisabled: function moveDisabled(index) {
680
+ if (!this.d_selection[index] || !this.d_selection[index].length) {
681
+ return true;
682
+ }
683
+ },
684
+ moveAllDisabled: function moveAllDisabled(list) {
685
+ return ObjectUtils.isEmpty(this[list]);
686
+ },
687
+ moveSourceDisabled: function moveSourceDisabled() {
688
+ return ObjectUtils.isEmpty(this.targetList);
793
689
  }
794
- };
795
-
796
- const _hoisted_1 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected"];
797
- const _hoisted_2 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected"];
798
-
799
- function render(_ctx, _cache, $props, $setup, $data, $options) {
800
- const _component_AngleUpIcon = resolveComponent("AngleUpIcon");
801
- const _component_PLButton = resolveComponent("PLButton");
802
- const _component_AngleDoubleUpIcon = resolveComponent("AngleDoubleUpIcon");
803
- const _component_AngleDownIcon = resolveComponent("AngleDownIcon");
804
- const _component_AngleDoubleDownIcon = resolveComponent("AngleDoubleDownIcon");
805
- const _directive_ripple = resolveDirective("ripple");
806
-
807
- return (openBlock(), createElementBlock("div", mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
808
- ($props.showSourceControls)
809
- ? (openBlock(), createElementBlock("div", mergeProps({
810
- key: 0,
811
- class: "p-picklist-buttons p-picklist-source-controls"
812
- }, _ctx.ptm('sourceControls')), [
813
- renderSlot(_ctx.$slots, "sourcecontrolsstart"),
814
- createVNode(_component_PLButton, mergeProps({
815
- "aria-label": $options.moveUpAriaLabel,
816
- disabled: $options.moveDisabled(0),
817
- type: "button",
818
- onClick: _cache[0] || (_cache[0] = $event => ($options.moveUp($event, 0)))
819
- }, $props.moveUpButtonProps, {
820
- pt: _ctx.ptm('sourceMoveUpButton')
821
- }), {
822
- icon: withCtx(() => [
823
- renderSlot(_ctx.$slots, "moveupicon", {}, () => [
824
- createVNode(_component_AngleUpIcon, normalizeProps(guardReactiveProps(_ctx.ptm('sourceMoveUpButton')['icon'])), null, 16)
825
- ])
826
- ]),
827
- _: 3
828
- }, 16, ["aria-label", "disabled", "pt"]),
829
- createVNode(_component_PLButton, mergeProps({
830
- "aria-label": $options.moveTopAriaLabel,
831
- disabled: $options.moveDisabled(0),
832
- type: "button",
833
- onClick: _cache[1] || (_cache[1] = $event => ($options.moveTop($event, 0)))
834
- }, $props.moveTopButtonProps, {
835
- pt: _ctx.ptm('sourceMoveTopButton')
836
- }), {
837
- icon: withCtx(() => [
838
- renderSlot(_ctx.$slots, "movetopicon", {}, () => [
839
- createVNode(_component_AngleDoubleUpIcon, normalizeProps(guardReactiveProps(_ctx.ptm('sourceMoveTopButton')['icon'])), null, 16)
840
- ])
841
- ]),
842
- _: 3
843
- }, 16, ["aria-label", "disabled", "pt"]),
844
- createVNode(_component_PLButton, mergeProps({
845
- "aria-label": $options.moveDownAriaLabel,
846
- disabled: $options.moveDisabled(0),
847
- type: "button",
848
- onClick: _cache[2] || (_cache[2] = $event => ($options.moveDown($event, 0)))
849
- }, $props.moveDownButtonProps, {
850
- pt: _ctx.ptm('sourceMoveDownButton')
851
- }), {
852
- icon: withCtx(() => [
853
- renderSlot(_ctx.$slots, "movedownicon", {}, () => [
854
- createVNode(_component_AngleDownIcon, normalizeProps(guardReactiveProps(_ctx.ptm('sourceMoveDownButton')['icon'])), null, 16)
855
- ])
856
- ]),
857
- _: 3
858
- }, 16, ["aria-label", "disabled", "pt"]),
859
- createVNode(_component_PLButton, mergeProps({
860
- "aria-label": $options.moveBottomAriaLabel,
861
- disabled: $options.moveDisabled(0),
862
- type: "button",
863
- onClick: _cache[3] || (_cache[3] = $event => ($options.moveBottom($event, 0)))
864
- }, $props.moveBottomButtonProps, {
865
- pt: _ctx.ptm('sourceMoveBottomButton')
866
- }), {
867
- icon: withCtx(() => [
868
- renderSlot(_ctx.$slots, "movebottomicon", {}, () => [
869
- createVNode(_component_AngleDoubleDownIcon, normalizeProps(guardReactiveProps(_ctx.ptm('sourceMoveBottomButton')['icon'])), null, 16)
870
- ])
871
- ]),
872
- _: 3
873
- }, 16, ["aria-label", "disabled", "pt"]),
874
- renderSlot(_ctx.$slots, "sourcecontrolsend")
875
- ], 16))
876
- : createCommentVNode("", true),
877
- createElementVNode("div", mergeProps({ class: "p-picklist-list-wrapper p-picklist-source-wrapper" }, _ctx.ptm('sourceWrapper')), [
878
- (_ctx.$slots.sourceheader)
879
- ? (openBlock(), createElementBlock("div", mergeProps({
880
- key: 0,
881
- class: "p-picklist-header"
882
- }, _ctx.ptm('sourceHeader')), [
883
- renderSlot(_ctx.$slots, "sourceheader")
884
- ], 16))
885
- : createCommentVNode("", true),
886
- createVNode(TransitionGroup, mergeProps({
887
- ref: "sourceList",
888
- id: $options.idSource + '_list',
889
- name: "p-picklist-flip",
890
- tag: "ul",
891
- class: "p-picklist-list p-picklist-source",
892
- style: $props.listStyle,
893
- role: "listbox",
894
- "aria-multiselectable": "true",
895
- "aria-activedescendant": $data.focused['sourceList'] ? $options.focusedOptionId : undefined,
896
- tabindex: $options.sourceList && $options.sourceList.length > 0 ? $props.tabindex : -1,
897
- onFocus: _cache[5] || (_cache[5] = $event => ($options.onListFocus($event, 'sourceList'))),
898
- onBlur: _cache[6] || (_cache[6] = $event => ($options.onListBlur($event, 'sourceList'))),
899
- onKeydown: _cache[7] || (_cache[7] = $event => ($options.onItemKeyDown($event, 'sourceList')))
900
- }, { ...$props.sourceListProps, ..._ctx.ptm('sourceList') }), {
901
- default: withCtx(() => [
902
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.sourceList, (item, i) => {
903
- return withDirectives((openBlock(), createElementBlock("li", mergeProps({
904
- key: $options.getItemKey(item, i),
905
- id: $options.idSource + '_' + i,
906
- class: $options.itemClass(item, `${$options.idSource}_${i}`, 0),
907
- onClick: $event => ($options.onItemClick($event, item, i, 0)),
908
- onDblclick: $event => ($options.onItemDblClick($event, item, 0)),
909
- onTouchend: _cache[4] || (_cache[4] = (...args) => ($options.onItemTouchEnd && $options.onItemTouchEnd(...args))),
910
- onMousedown: $event => ($options.onOptionMouseDown(i, 'sourceList')),
911
- role: "option",
912
- "aria-selected": $options.isSelected(item, 0)
913
- }, $options.getPTOptions(item, 'item')), [
914
- renderSlot(_ctx.$slots, "item", {
915
- item: item,
916
- index: i
917
- })
918
- ], 16, _hoisted_1)), [
919
- [_directive_ripple]
920
- ])
921
- }), 128))
922
- ]),
923
- _: 3
924
- }, 16, ["id", "style", "aria-activedescendant", "tabindex"])
925
- ], 16),
926
- createElementVNode("div", mergeProps({ class: "p-picklist-buttons p-picklist-transfer-buttons" }, _ctx.ptm('buttons')), [
927
- renderSlot(_ctx.$slots, "movecontrolsstart"),
928
- createVNode(_component_PLButton, mergeProps({
929
- "aria-label": $options.moveToTargetAriaLabel,
930
- type: "button",
931
- onClick: $options.moveToTarget,
932
- disabled: $options.moveDisabled(0)
933
- }, $props.moveToTargetProps, {
934
- pt: _ctx.ptm('moveToTargetButton')
935
- }), {
936
- icon: withCtx(() => [
937
- renderSlot(_ctx.$slots, "movetotargeticon", { viewChanged: $data.viewChanged }, () => [
938
- (openBlock(), createBlock(resolveDynamicComponent($data.viewChanged ? 'AngleDownIcon' : 'AngleRightIcon'), normalizeProps(guardReactiveProps(_ctx.ptm('moveToTargetButton')['icon'])), null, 16))
939
- ])
940
- ]),
941
- _: 3
942
- }, 16, ["aria-label", "onClick", "disabled", "pt"]),
943
- createVNode(_component_PLButton, mergeProps({
944
- "aria-label": $options.moveAllToTargetAriaLabel,
945
- type: "button",
946
- onClick: $options.moveAllToTarget,
947
- disabled: $options.moveAllDisabled('sourceList')
948
- }, $props.moveAllToTargetProps, {
949
- pt: _ctx.ptm('moveAllToTargetButton')
950
- }), {
951
- icon: withCtx(() => [
952
- renderSlot(_ctx.$slots, "movealltotargeticon", { viewChanged: $data.viewChanged }, () => [
953
- (openBlock(), createBlock(resolveDynamicComponent($data.viewChanged ? 'AngleDoubleDownIcon' : 'AngleDoubleRightIcon'), normalizeProps(guardReactiveProps(_ctx.ptm('moveAllToTargetButton')['icon'])), null, 16))
954
- ])
955
- ]),
956
- _: 3
957
- }, 16, ["aria-label", "onClick", "disabled", "pt"]),
958
- createVNode(_component_PLButton, mergeProps({
959
- "aria-label": $options.moveToSourceAriaLabel,
960
- type: "button",
961
- onClick: $options.moveToSource,
962
- disabled: $options.moveDisabled(1)
963
- }, $props.moveToSourceProps, {
964
- pt: _ctx.ptm('moveToSourceButton')
965
- }), {
966
- icon: withCtx(() => [
967
- renderSlot(_ctx.$slots, "movetosourceicon", { viewChanged: $data.viewChanged }, () => [
968
- (openBlock(), createBlock(resolveDynamicComponent($data.viewChanged ? 'AngleUpIcon' : 'AngleLeftIcon'), normalizeProps(guardReactiveProps(_ctx.ptm('moveToSourceButton')['icon'])), null, 16))
969
- ])
970
- ]),
971
- _: 3
972
- }, 16, ["aria-label", "onClick", "disabled", "pt"]),
973
- createVNode(_component_PLButton, mergeProps({
974
- "aria-label": $options.moveAllToSourceAriaLabel,
975
- type: "button",
976
- onClick: $options.moveAllToSource,
977
- disabled: $options.moveSourceDisabled('targetList')
978
- }, $props.moveAllToSourceProps, {
979
- pt: _ctx.ptm('moveAllToSourceButton')
980
- }), {
981
- icon: withCtx(() => [
982
- renderSlot(_ctx.$slots, "movealltosourceicon", { viewChanged: $data.viewChanged }, () => [
983
- (openBlock(), createBlock(resolveDynamicComponent($data.viewChanged ? 'AngleDoubleUpIcon' : 'AngleDoubleLeftIcon'), normalizeProps(guardReactiveProps(_ctx.ptm('moveAllToSourceButton')['icon'])), null, 16))
984
- ])
985
- ]),
986
- _: 3
987
- }, 16, ["aria-label", "onClick", "disabled", "pt"]),
988
- renderSlot(_ctx.$slots, "movecontrolsend")
989
- ], 16),
990
- createElementVNode("div", mergeProps({ class: "p-picklist-list-wrapper p-picklist-target-wrapper" }, _ctx.ptm('targetWrapper')), [
991
- (_ctx.$slots.targetheader)
992
- ? (openBlock(), createElementBlock("div", mergeProps({
993
- key: 0,
994
- class: "p-picklist-header"
995
- }, _ctx.ptm('targetHeader')), [
996
- renderSlot(_ctx.$slots, "targetheader")
997
- ], 16))
998
- : createCommentVNode("", true),
999
- createVNode(TransitionGroup, mergeProps({
1000
- ref: "targetList",
1001
- id: $options.idTarget + '_list',
1002
- name: "p-picklist-flip",
1003
- tag: "ul",
1004
- class: "p-picklist-list p-picklist-target",
1005
- style: $props.listStyle,
1006
- role: "listbox",
1007
- "aria-multiselectable": "true",
1008
- "aria-activedescendant": $data.focused['targetList'] ? $options.focusedOptionId : undefined,
1009
- tabindex: $options.targetList && $options.targetList.length > 0 ? $props.tabindex : -1,
1010
- onFocus: _cache[10] || (_cache[10] = $event => ($options.onListFocus($event, 'targetList'))),
1011
- onBlur: _cache[11] || (_cache[11] = $event => ($options.onListBlur($event, 'targetList'))),
1012
- onKeydown: _cache[12] || (_cache[12] = $event => ($options.onItemKeyDown($event, 'targetList')))
1013
- }, { ...$props.targetListProps, ..._ctx.ptm('targetList') }), {
1014
- default: withCtx(() => [
1015
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.targetList, (item, i) => {
1016
- return withDirectives((openBlock(), createElementBlock("li", mergeProps({
1017
- key: $options.getItemKey(item, i),
1018
- id: $options.idTarget + '_' + i,
1019
- class: $options.itemClass(item, `${$options.idTarget}_${i}`, 1),
1020
- onClick: $event => ($options.onItemClick($event, item, i, 1)),
1021
- onDblclick: $event => ($options.onItemDblClick($event, item, 1)),
1022
- onKeydown: _cache[8] || (_cache[8] = $event => ($options.onItemKeyDown($event, 'targetList'))),
1023
- onMousedown: $event => ($options.onOptionMouseDown(i, 'targetList')),
1024
- onTouchend: _cache[9] || (_cache[9] = (...args) => ($options.onItemTouchEnd && $options.onItemTouchEnd(...args))),
1025
- role: "option",
1026
- "aria-selected": $options.isSelected(item, 1)
1027
- }, $options.getPTOptions(item, 'item')), [
1028
- renderSlot(_ctx.$slots, "item", {
1029
- item: item,
1030
- index: i
1031
- })
1032
- ], 16, _hoisted_2)), [
1033
- [_directive_ripple]
1034
- ])
1035
- }), 128))
1036
- ]),
1037
- _: 3
1038
- }, 16, ["id", "style", "aria-activedescendant", "tabindex"])
1039
- ], 16),
1040
- ($props.showTargetControls)
1041
- ? (openBlock(), createElementBlock("div", mergeProps({
1042
- key: 1,
1043
- class: "p-picklist-buttons p-picklist-target-controls"
1044
- }, _ctx.ptm('targetControls')), [
1045
- renderSlot(_ctx.$slots, "targetcontrolsstart"),
1046
- createVNode(_component_PLButton, mergeProps({
1047
- "aria-label": $options.moveUpAriaLabel,
1048
- disabled: $options.moveDisabled(1),
1049
- type: "button",
1050
- onClick: _cache[13] || (_cache[13] = $event => ($options.moveUp($event, 1)))
1051
- }, $props.moveUpButtonProps, {
1052
- pt: _ctx.ptm('targetMoveUpButton')
1053
- }), {
1054
- icon: withCtx(() => [
1055
- renderSlot(_ctx.$slots, "moveupicon", {}, () => [
1056
- createVNode(_component_AngleUpIcon, normalizeProps(guardReactiveProps(_ctx.ptm('targetMoveUpButton')['icon'])), null, 16)
1057
- ])
1058
- ]),
1059
- _: 3
1060
- }, 16, ["aria-label", "disabled", "pt"]),
1061
- createVNode(_component_PLButton, mergeProps({
1062
- "aria-label": $options.moveTopAriaLabel,
1063
- disabled: $options.moveDisabled(1),
1064
- type: "button",
1065
- onClick: _cache[14] || (_cache[14] = $event => ($options.moveTop($event, 1)))
1066
- }, $props.moveTopButtonProps, {
1067
- pt: _ctx.ptm('targetMoveTopButton')
1068
- }), {
1069
- icon: withCtx(() => [
1070
- renderSlot(_ctx.$slots, "movetopicon", {}, () => [
1071
- createVNode(_component_AngleDoubleUpIcon, normalizeProps(guardReactiveProps(_ctx.ptm('targetMoveTopButton')['icon'])), null, 16)
1072
- ])
1073
- ]),
1074
- _: 3
1075
- }, 16, ["aria-label", "disabled", "pt"]),
1076
- createVNode(_component_PLButton, mergeProps({
1077
- "aria-label": $options.moveDownAriaLabel,
1078
- disabled: $options.moveDisabled(1),
1079
- type: "button",
1080
- onClick: _cache[15] || (_cache[15] = $event => ($options.moveDown($event, 1)))
1081
- }, $props.moveDownButtonProps, {
1082
- pt: _ctx.ptm('targetMoveDownButton')
1083
- }), {
1084
- icon: withCtx(() => [
1085
- renderSlot(_ctx.$slots, "movedownicon", {}, () => [
1086
- createVNode(_component_AngleDownIcon, normalizeProps(guardReactiveProps(_ctx.ptm('targetMoveDownButton')['icon'])), null, 16)
1087
- ])
1088
- ]),
1089
- _: 3
1090
- }, 16, ["aria-label", "disabled", "pt"]),
1091
- createVNode(_component_PLButton, mergeProps({
1092
- "aria-label": $options.moveBottomAriaLabel,
1093
- disabled: $options.moveDisabled(1),
1094
- type: "button",
1095
- onClick: _cache[16] || (_cache[16] = $event => ($options.moveBottom($event, 1)))
1096
- }, $props.moveBottomButtonProps, {
1097
- pt: _ctx.ptm('targetMoveBottomButton')
1098
- }), {
1099
- icon: withCtx(() => [
1100
- renderSlot(_ctx.$slots, "movebottomicon", {}, () => [
1101
- createVNode(_component_AngleDoubleDownIcon, normalizeProps(guardReactiveProps(_ctx.ptm('targetMoveBottomButton')['icon'])), null, 16)
1102
- ])
1103
- ]),
1104
- _: 3
1105
- }, 16, ["aria-label", "disabled", "pt"]),
1106
- renderSlot(_ctx.$slots, "targetcontrolsend")
1107
- ], 16))
1108
- : createCommentVNode("", true)
1109
- ], 16))
1110
- }
1111
-
1112
- function styleInject(css, ref) {
1113
- if ( ref === void 0 ) ref = {};
1114
- var insertAt = ref.insertAt;
1115
-
1116
- if (!css || typeof document === 'undefined') { return; }
1117
-
1118
- var head = document.head || document.getElementsByTagName('head')[0];
1119
- var style = document.createElement('style');
1120
- style.type = 'text/css';
1121
-
1122
- if (insertAt === 'top') {
1123
- if (head.firstChild) {
1124
- head.insertBefore(style, head.firstChild);
1125
- } else {
1126
- head.appendChild(style);
690
+ },
691
+ computed: {
692
+ idSource: function idSource() {
693
+ return "".concat(this.id, "_source");
694
+ },
695
+ idTarget: function idTarget() {
696
+ return "".concat(this.id, "_target");
697
+ },
698
+ focusedOptionId: function focusedOptionId() {
699
+ return this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : null;
700
+ },
701
+ sourceList: function sourceList() {
702
+ return this.modelValue && this.modelValue[0] ? this.modelValue[0] : null;
703
+ },
704
+ targetList: function targetList() {
705
+ return this.modelValue && this.modelValue[1] ? this.modelValue[1] : null;
706
+ },
707
+ attributeSelector: function attributeSelector() {
708
+ return UniqueComponentId();
709
+ },
710
+ moveUpAriaLabel: function moveUpAriaLabel() {
711
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveUp : undefined;
712
+ },
713
+ moveTopAriaLabel: function moveTopAriaLabel() {
714
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveTop : undefined;
715
+ },
716
+ moveDownAriaLabel: function moveDownAriaLabel() {
717
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveDown : undefined;
718
+ },
719
+ moveBottomAriaLabel: function moveBottomAriaLabel() {
720
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveBottom : undefined;
721
+ },
722
+ moveToTargetAriaLabel: function moveToTargetAriaLabel() {
723
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveToTarget : undefined;
724
+ },
725
+ moveAllToTargetAriaLabel: function moveAllToTargetAriaLabel() {
726
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveAllToTarget : undefined;
727
+ },
728
+ moveToSourceAriaLabel: function moveToSourceAriaLabel() {
729
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveToSource : undefined;
730
+ },
731
+ moveAllToSourceAriaLabel: function moveAllToSourceAriaLabel() {
732
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveAllToSource : undefined;
1127
733
  }
1128
- } else {
1129
- head.appendChild(style);
734
+ },
735
+ components: {
736
+ PLButton: Button,
737
+ AngleRightIcon: AngleRightIcon,
738
+ AngleLeftIcon: AngleLeftIcon,
739
+ AngleDownIcon: AngleDownIcon,
740
+ AngleUpIcon: AngleUpIcon,
741
+ AngleDoubleRightIcon: AngleDoubleRightIcon,
742
+ AngleDoubleLeftIcon: AngleDoubleLeftIcon,
743
+ AngleDoubleDownIcon: AngleDoubleDownIcon,
744
+ AngleDoubleUpIcon: AngleDoubleUpIcon
745
+ },
746
+ directives: {
747
+ ripple: Ripple
1130
748
  }
749
+ };
1131
750
 
1132
- if (style.styleSheet) {
1133
- style.styleSheet.cssText = css;
1134
- } else {
1135
- style.appendChild(document.createTextNode(css));
1136
- }
751
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
752
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
753
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
754
+ 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; }
755
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
756
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
757
+ var _hoisted_1 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected", "data-p-highlight", "data-p-focused"];
758
+ var _hoisted_2 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected", "data-p-highlight", "data-p-focused"];
759
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
760
+ var _component_AngleUpIcon = resolveComponent("AngleUpIcon");
761
+ var _component_PLButton = resolveComponent("PLButton");
762
+ var _component_AngleDoubleUpIcon = resolveComponent("AngleDoubleUpIcon");
763
+ var _component_AngleDownIcon = resolveComponent("AngleDownIcon");
764
+ var _component_AngleDoubleDownIcon = resolveComponent("AngleDoubleDownIcon");
765
+ var _directive_ripple = resolveDirective("ripple");
766
+ return openBlock(), createElementBlock("div", mergeProps({
767
+ "class": _ctx.cx('root')
768
+ }, _ctx.ptm('root')), [_ctx.showSourceControls ? (openBlock(), createElementBlock("div", mergeProps({
769
+ key: 0,
770
+ "class": _ctx.cx('sourceControls')
771
+ }, _ctx.ptm('sourceControls')), [renderSlot(_ctx.$slots, "sourcecontrolsstart"), createVNode(_component_PLButton, mergeProps({
772
+ "aria-label": $options.moveUpAriaLabel,
773
+ disabled: $options.moveDisabled(0),
774
+ type: "button",
775
+ onClick: _cache[0] || (_cache[0] = function ($event) {
776
+ return $options.moveUp($event, 0);
777
+ })
778
+ }, _objectSpread(_objectSpread({}, _ctx.moveUpButtonProps), _ctx.ptm('sourceMoveUpButton')), {
779
+ unstyled: _ctx.unstyled
780
+ }), {
781
+ icon: withCtx(function () {
782
+ return [renderSlot(_ctx.$slots, "moveupicon", {}, function () {
783
+ return [createVNode(_component_AngleUpIcon, normalizeProps(guardReactiveProps(_ctx.ptm('sourceMoveUpButton')['icon'])), null, 16)];
784
+ })];
785
+ }),
786
+ _: 3
787
+ }, 16, ["aria-label", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
788
+ "aria-label": $options.moveTopAriaLabel,
789
+ disabled: $options.moveDisabled(0),
790
+ type: "button",
791
+ onClick: _cache[1] || (_cache[1] = function ($event) {
792
+ return $options.moveTop($event, 0);
793
+ })
794
+ }, _objectSpread(_objectSpread({}, _ctx.moveTopButtonProps), _ctx.ptm('sourceMoveTopButton')), {
795
+ unstyled: _ctx.unstyled
796
+ }), {
797
+ icon: withCtx(function () {
798
+ return [renderSlot(_ctx.$slots, "movetopicon", {}, function () {
799
+ return [createVNode(_component_AngleDoubleUpIcon, normalizeProps(guardReactiveProps(_ctx.ptm('sourceMoveTopButton')['icon'])), null, 16)];
800
+ })];
801
+ }),
802
+ _: 3
803
+ }, 16, ["aria-label", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
804
+ "aria-label": $options.moveDownAriaLabel,
805
+ disabled: $options.moveDisabled(0),
806
+ type: "button",
807
+ onClick: _cache[2] || (_cache[2] = function ($event) {
808
+ return $options.moveDown($event, 0);
809
+ })
810
+ }, _objectSpread(_objectSpread({}, _ctx.moveDownButtonProps), _ctx.ptm('sourceMoveDownButton')), {
811
+ unstyled: _ctx.unstyled
812
+ }), {
813
+ icon: withCtx(function () {
814
+ return [renderSlot(_ctx.$slots, "movedownicon", {}, function () {
815
+ return [createVNode(_component_AngleDownIcon, normalizeProps(guardReactiveProps(_ctx.ptm('sourceMoveDownButton')['icon'])), null, 16)];
816
+ })];
817
+ }),
818
+ _: 3
819
+ }, 16, ["aria-label", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
820
+ "aria-label": $options.moveBottomAriaLabel,
821
+ disabled: $options.moveDisabled(0),
822
+ type: "button",
823
+ onClick: _cache[3] || (_cache[3] = function ($event) {
824
+ return $options.moveBottom($event, 0);
825
+ })
826
+ }, _objectSpread(_objectSpread({}, _ctx.moveBottomButtonProps), _ctx.ptm('sourceMoveBottomButton')), {
827
+ unstyled: _ctx.unstyled
828
+ }), {
829
+ icon: withCtx(function () {
830
+ return [renderSlot(_ctx.$slots, "movebottomicon", {}, function () {
831
+ return [createVNode(_component_AngleDoubleDownIcon, normalizeProps(guardReactiveProps(_ctx.ptm('sourceMoveBottomButton')['icon'])), null, 16)];
832
+ })];
833
+ }),
834
+ _: 3
835
+ }, 16, ["aria-label", "disabled", "unstyled"]), renderSlot(_ctx.$slots, "sourcecontrolsend")], 16)) : createCommentVNode("", true), createElementVNode("div", mergeProps({
836
+ "class": _ctx.cx('sourceWrapper')
837
+ }, _ctx.ptm('sourceWrapper')), [_ctx.$slots.sourceheader ? (openBlock(), createElementBlock("div", mergeProps({
838
+ key: 0,
839
+ "class": _ctx.cx('sourceHeader')
840
+ }, _ctx.ptm('sourceHeader')), [renderSlot(_ctx.$slots, "sourceheader")], 16)) : createCommentVNode("", true), createVNode(TransitionGroup, mergeProps({
841
+ ref: "sourceList",
842
+ id: $options.idSource + '_list',
843
+ name: "p-picklist-flip",
844
+ tag: "ul",
845
+ "class": _ctx.cx('sourceList'),
846
+ style: _ctx.listStyle,
847
+ role: "listbox",
848
+ "aria-multiselectable": "true",
849
+ "aria-activedescendant": $data.focused['sourceList'] ? $options.focusedOptionId : undefined,
850
+ tabindex: $options.sourceList && $options.sourceList.length > 0 ? _ctx.tabindex : -1,
851
+ onFocus: _cache[5] || (_cache[5] = function ($event) {
852
+ return $options.onListFocus($event, 'sourceList');
853
+ }),
854
+ onBlur: _cache[6] || (_cache[6] = function ($event) {
855
+ return $options.onListBlur($event, 'sourceList');
856
+ }),
857
+ onKeydown: _cache[7] || (_cache[7] = function ($event) {
858
+ return $options.onItemKeyDown($event, 'sourceList');
859
+ })
860
+ }, _objectSpread(_objectSpread({}, _ctx.sourceListProps), _ctx.ptm('sourceList'))), {
861
+ "default": withCtx(function () {
862
+ return [(openBlock(true), createElementBlock(Fragment, null, renderList($options.sourceList, function (item, i) {
863
+ return withDirectives((openBlock(), createElementBlock("li", mergeProps({
864
+ key: $options.getItemKey(item, i),
865
+ id: $options.idSource + '_' + i,
866
+ "class": _ctx.cx('item', {
867
+ item: item,
868
+ id: "".concat($options.idSource, "_").concat(i),
869
+ listIndex: 0
870
+ }),
871
+ onClick: function onClick($event) {
872
+ return $options.onItemClick($event, item, i, 0);
873
+ },
874
+ onDblclick: function onDblclick($event) {
875
+ return $options.onItemDblClick($event, item, 0);
876
+ },
877
+ onTouchend: _cache[4] || (_cache[4] = function () {
878
+ return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
879
+ }),
880
+ onMousedown: function onMousedown($event) {
881
+ return $options.onOptionMouseDown(i, 'sourceList');
882
+ },
883
+ role: "option",
884
+ "aria-selected": $options.isSelected(item, 0)
885
+ }, $options.getPTOptions(item, 'item'), {
886
+ "data-p-highlight": $options.isSelected(item, 0),
887
+ "data-p-focused": "".concat($data.id, "_").concat(i) === $options.focusedOptionId
888
+ }), [renderSlot(_ctx.$slots, "item", {
889
+ item: item,
890
+ index: i
891
+ })], 16, _hoisted_1)), [[_directive_ripple]]);
892
+ }), 128))];
893
+ }),
894
+ _: 3
895
+ }, 16, ["id", "class", "style", "aria-activedescendant", "tabindex"])], 16), createElementVNode("div", mergeProps({
896
+ "class": _ctx.cx('buttons')
897
+ }, _ctx.ptm('buttons')), [renderSlot(_ctx.$slots, "movecontrolsstart"), createVNode(_component_PLButton, mergeProps({
898
+ "aria-label": $options.moveToTargetAriaLabel,
899
+ type: "button",
900
+ onClick: $options.moveToTarget,
901
+ disabled: $options.moveDisabled(0)
902
+ }, _objectSpread(_objectSpread({}, _ctx.moveToTargetProps), _ctx.ptm('moveToTargetButton')), {
903
+ unstyled: _ctx.unstyled
904
+ }), {
905
+ icon: withCtx(function () {
906
+ return [renderSlot(_ctx.$slots, "movetotargeticon", {
907
+ viewChanged: $data.viewChanged
908
+ }, function () {
909
+ return [(openBlock(), createBlock(resolveDynamicComponent($data.viewChanged ? 'AngleDownIcon' : 'AngleRightIcon'), normalizeProps(guardReactiveProps(_ctx.ptm('moveToTargetButton')['icon'])), null, 16))];
910
+ })];
911
+ }),
912
+ _: 3
913
+ }, 16, ["aria-label", "onClick", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
914
+ "aria-label": $options.moveAllToTargetAriaLabel,
915
+ type: "button",
916
+ onClick: $options.moveAllToTarget,
917
+ disabled: $options.moveAllDisabled('sourceList')
918
+ }, _objectSpread(_objectSpread({}, _ctx.moveAllToTargetProps), _ctx.ptm('moveAllToTargetButton')), {
919
+ unstyled: _ctx.unstyled
920
+ }), {
921
+ icon: withCtx(function () {
922
+ return [renderSlot(_ctx.$slots, "movealltotargeticon", {
923
+ viewChanged: $data.viewChanged
924
+ }, function () {
925
+ return [(openBlock(), createBlock(resolveDynamicComponent($data.viewChanged ? 'AngleDoubleDownIcon' : 'AngleDoubleRightIcon'), normalizeProps(guardReactiveProps(_ctx.ptm('moveAllToTargetButton')['icon'])), null, 16))];
926
+ })];
927
+ }),
928
+ _: 3
929
+ }, 16, ["aria-label", "onClick", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
930
+ "aria-label": $options.moveToSourceAriaLabel,
931
+ type: "button",
932
+ onClick: $options.moveToSource,
933
+ disabled: $options.moveDisabled(1)
934
+ }, _objectSpread(_objectSpread({}, _ctx.moveToSourceProps), _ctx.ptm('moveToSourceButton')), {
935
+ unstyled: _ctx.unstyled
936
+ }), {
937
+ icon: withCtx(function () {
938
+ return [renderSlot(_ctx.$slots, "movetosourceicon", {
939
+ viewChanged: $data.viewChanged
940
+ }, function () {
941
+ return [(openBlock(), createBlock(resolveDynamicComponent($data.viewChanged ? 'AngleUpIcon' : 'AngleLeftIcon'), normalizeProps(guardReactiveProps(_ctx.ptm('moveToSourceButton')['icon'])), null, 16))];
942
+ })];
943
+ }),
944
+ _: 3
945
+ }, 16, ["aria-label", "onClick", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
946
+ "aria-label": $options.moveAllToSourceAriaLabel,
947
+ type: "button",
948
+ onClick: $options.moveAllToSource,
949
+ disabled: $options.moveSourceDisabled('targetList')
950
+ }, _objectSpread(_objectSpread({}, _ctx.moveAllToSourceProps), _ctx.ptm('moveAllToSourceButton')), {
951
+ unstyled: _ctx.unstyled
952
+ }), {
953
+ icon: withCtx(function () {
954
+ return [renderSlot(_ctx.$slots, "movealltosourceicon", {
955
+ viewChanged: $data.viewChanged
956
+ }, function () {
957
+ return [(openBlock(), createBlock(resolveDynamicComponent($data.viewChanged ? 'AngleDoubleUpIcon' : 'AngleDoubleLeftIcon'), normalizeProps(guardReactiveProps(_ctx.ptm('moveAllToSourceButton')['icon'])), null, 16))];
958
+ })];
959
+ }),
960
+ _: 3
961
+ }, 16, ["aria-label", "onClick", "disabled", "unstyled"]), renderSlot(_ctx.$slots, "movecontrolsend")], 16), createElementVNode("div", mergeProps({
962
+ "class": _ctx.cx('targetWrapper')
963
+ }, _ctx.ptm('targetWrapper')), [_ctx.$slots.targetheader ? (openBlock(), createElementBlock("div", mergeProps({
964
+ key: 0,
965
+ "class": _ctx.cx('targetHeader')
966
+ }, _ctx.ptm('targetHeader')), [renderSlot(_ctx.$slots, "targetheader")], 16)) : createCommentVNode("", true), createVNode(TransitionGroup, mergeProps({
967
+ ref: "targetList",
968
+ id: $options.idTarget + '_list',
969
+ name: "p-picklist-flip",
970
+ tag: "ul",
971
+ "class": _ctx.cx('targetList'),
972
+ style: _ctx.listStyle,
973
+ role: "listbox",
974
+ "aria-multiselectable": "true",
975
+ "aria-activedescendant": $data.focused['targetList'] ? $options.focusedOptionId : undefined,
976
+ tabindex: $options.targetList && $options.targetList.length > 0 ? _ctx.tabindex : -1,
977
+ onFocus: _cache[10] || (_cache[10] = function ($event) {
978
+ return $options.onListFocus($event, 'targetList');
979
+ }),
980
+ onBlur: _cache[11] || (_cache[11] = function ($event) {
981
+ return $options.onListBlur($event, 'targetList');
982
+ }),
983
+ onKeydown: _cache[12] || (_cache[12] = function ($event) {
984
+ return $options.onItemKeyDown($event, 'targetList');
985
+ })
986
+ }, _objectSpread(_objectSpread({}, _ctx.targetListProps), _ctx.ptm('targetList'))), {
987
+ "default": withCtx(function () {
988
+ return [(openBlock(true), createElementBlock(Fragment, null, renderList($options.targetList, function (item, i) {
989
+ return withDirectives((openBlock(), createElementBlock("li", mergeProps({
990
+ key: $options.getItemKey(item, i),
991
+ id: $options.idTarget + '_' + i,
992
+ "class": _ctx.cx('item', {
993
+ item: item,
994
+ id: "".concat($options.idTarget, "_").concat(i),
995
+ listIndex: 1
996
+ }),
997
+ onClick: function onClick($event) {
998
+ return $options.onItemClick($event, item, i, 1);
999
+ },
1000
+ onDblclick: function onDblclick($event) {
1001
+ return $options.onItemDblClick($event, item, 1);
1002
+ },
1003
+ onKeydown: _cache[8] || (_cache[8] = function ($event) {
1004
+ return $options.onItemKeyDown($event, 'targetList');
1005
+ }),
1006
+ onMousedown: function onMousedown($event) {
1007
+ return $options.onOptionMouseDown(i, 'targetList');
1008
+ },
1009
+ onTouchend: _cache[9] || (_cache[9] = function () {
1010
+ return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
1011
+ }),
1012
+ role: "option",
1013
+ "aria-selected": $options.isSelected(item, 1)
1014
+ }, $options.getPTOptions(item, 'item'), {
1015
+ "data-p-highlight": $options.isSelected(item, 1),
1016
+ "data-p-focused": "".concat($data.id, "_").concat(i) === $options.focusedOptionId
1017
+ }), [renderSlot(_ctx.$slots, "item", {
1018
+ item: item,
1019
+ index: i
1020
+ })], 16, _hoisted_2)), [[_directive_ripple]]);
1021
+ }), 128))];
1022
+ }),
1023
+ _: 3
1024
+ }, 16, ["id", "class", "style", "aria-activedescendant", "tabindex"])], 16), _ctx.showTargetControls ? (openBlock(), createElementBlock("div", mergeProps({
1025
+ key: 1,
1026
+ "class": _ctx.cx('targetControls')
1027
+ }, _ctx.ptm('targetControls')), [renderSlot(_ctx.$slots, "targetcontrolsstart"), createVNode(_component_PLButton, mergeProps({
1028
+ "aria-label": $options.moveUpAriaLabel,
1029
+ disabled: $options.moveDisabled(1),
1030
+ type: "button",
1031
+ onClick: _cache[13] || (_cache[13] = function ($event) {
1032
+ return $options.moveUp($event, 1);
1033
+ })
1034
+ }, _objectSpread(_objectSpread({}, _ctx.moveUpButtonProps), _ctx.ptm('targetMoveUpButton')), {
1035
+ unstyled: _ctx.unstyled
1036
+ }), {
1037
+ icon: withCtx(function () {
1038
+ return [renderSlot(_ctx.$slots, "moveupicon", {}, function () {
1039
+ return [createVNode(_component_AngleUpIcon, normalizeProps(guardReactiveProps(_ctx.ptm('targetMoveUpButton')['icon'])), null, 16)];
1040
+ })];
1041
+ }),
1042
+ _: 3
1043
+ }, 16, ["aria-label", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
1044
+ "aria-label": $options.moveTopAriaLabel,
1045
+ disabled: $options.moveDisabled(1),
1046
+ type: "button",
1047
+ onClick: _cache[14] || (_cache[14] = function ($event) {
1048
+ return $options.moveTop($event, 1);
1049
+ })
1050
+ }, _objectSpread(_objectSpread({}, _ctx.moveTopButtonProps), _ctx.ptm('targetMoveTopButton')), {
1051
+ unstyled: _ctx.unstyled
1052
+ }), {
1053
+ icon: withCtx(function () {
1054
+ return [renderSlot(_ctx.$slots, "movetopicon", {}, function () {
1055
+ return [createVNode(_component_AngleDoubleUpIcon, normalizeProps(guardReactiveProps(_ctx.ptm('targetMoveTopButton')['icon'])), null, 16)];
1056
+ })];
1057
+ }),
1058
+ _: 3
1059
+ }, 16, ["aria-label", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
1060
+ "aria-label": $options.moveDownAriaLabel,
1061
+ disabled: $options.moveDisabled(1),
1062
+ type: "button",
1063
+ onClick: _cache[15] || (_cache[15] = function ($event) {
1064
+ return $options.moveDown($event, 1);
1065
+ })
1066
+ }, _objectSpread(_objectSpread({}, _ctx.moveDownButtonProps), _ctx.ptm('targetMoveDownButton')), {
1067
+ unstyled: _ctx.unstyled
1068
+ }), {
1069
+ icon: withCtx(function () {
1070
+ return [renderSlot(_ctx.$slots, "movedownicon", {}, function () {
1071
+ return [createVNode(_component_AngleDownIcon, normalizeProps(guardReactiveProps(_ctx.ptm('targetMoveDownButton')['icon'])), null, 16)];
1072
+ })];
1073
+ }),
1074
+ _: 3
1075
+ }, 16, ["aria-label", "disabled", "unstyled"]), createVNode(_component_PLButton, mergeProps({
1076
+ "aria-label": $options.moveBottomAriaLabel,
1077
+ disabled: $options.moveDisabled(1),
1078
+ type: "button",
1079
+ onClick: _cache[16] || (_cache[16] = function ($event) {
1080
+ return $options.moveBottom($event, 1);
1081
+ })
1082
+ }, _objectSpread(_objectSpread({}, _ctx.moveBottomButtonProps), _ctx.ptm('targetMoveBottomButton')), {
1083
+ unstyled: _ctx.unstyled
1084
+ }), {
1085
+ icon: withCtx(function () {
1086
+ return [renderSlot(_ctx.$slots, "movebottomicon", {}, function () {
1087
+ return [createVNode(_component_AngleDoubleDownIcon, normalizeProps(guardReactiveProps(_ctx.ptm('targetMoveBottomButton')['icon'])), null, 16)];
1088
+ })];
1089
+ }),
1090
+ _: 3
1091
+ }, 16, ["aria-label", "disabled", "unstyled"]), renderSlot(_ctx.$slots, "targetcontrolsend")], 16)) : createCommentVNode("", true)], 16);
1137
1092
  }
1138
1093
 
1139
- var css_248z = "\n.p-picklist {\n display: flex;\n}\n.p-picklist-buttons {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.p-picklist-list-wrapper {\n flex: 1 1 50%;\n}\n.p-picklist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-picklist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-picklist-item.p-picklist-flip-enter-active.p-picklist-flip-enter-to,\n.p-picklist-item.p-picklist-flip-leave-active.p-picklist-flip-leave-to {\n transition: none !important;\n}\n";
1140
- styleInject(css_248z);
1141
-
1142
1094
  script.render = render;
1143
1095
 
1144
1096
  export { script as default };