primevue 3.29.2 → 3.30.1

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 +16 -8
  2. package/accordion/Accordion.d.ts +23 -1
  3. package/accordion/Accordion.vue +39 -92
  4. package/accordion/BaseAccordion.vue +93 -0
  5. package/accordion/accordion.cjs.js +336 -330
  6. package/accordion/accordion.cjs.min.js +1 -1
  7. package/accordion/accordion.esm.js +336 -330
  8. package/accordion/accordion.esm.min.js +1 -1
  9. package/accordion/accordion.js +336 -331
  10. package/accordion/accordion.min.js +1 -1
  11. package/accordiontab/AccordionTab.d.ts +29 -1
  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 +24 -3
  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 +15 -1
  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 +13 -1
  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 +458 -12
  78. package/basecomponent/basecomponent.cjs.js +182 -36
  79. package/basecomponent/basecomponent.cjs.min.js +1 -1
  80. package/basecomponent/basecomponent.esm.js +182 -36
  81. package/basecomponent/basecomponent.esm.min.js +1 -1
  82. package/basecomponent/basecomponent.js +182 -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 +163 -0
  87. package/basedirective/basedirective.cjs.min.js +1 -0
  88. package/basedirective/basedirective.esm.js +161 -0
  89. package/basedirective/basedirective.esm.min.js +1 -0
  90. package/basedirective/basedirective.js +163 -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 +13 -1
  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 +13 -1
  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 +25 -1
  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 +25 -13
  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 +13 -1
  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 +20 -8
  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 +13 -1
  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 +42 -1
  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 +13 -1
  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 +13 -1
  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 +15 -3
  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 +57 -30
  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 +24 -1
  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 +28 -7
  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 +13 -1
  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 +13 -1
  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 +17 -1
  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 +12190 -11725
  269. package/core/core.min.js +76 -70
  270. package/datatable/BaseDataTable.vue +740 -0
  271. package/datatable/BodyCell.vue +49 -35
  272. package/datatable/ColumnFilter.vue +74 -59
  273. package/datatable/DataTable.d.ts +32 -9
  274. package/datatable/DataTable.vue +82 -593
  275. package/datatable/FooterCell.vue +16 -11
  276. package/datatable/HeaderCell.vue +31 -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 +21 -9
  282. package/datatable/TableHeader.vue +33 -21
  283. package/datatable/datatable.cjs.js +5878 -5739
  284. package/datatable/datatable.cjs.min.js +1 -1
  285. package/datatable/datatable.esm.js +5878 -5739
  286. package/datatable/datatable.esm.min.js +1 -1
  287. package/datatable/datatable.js +5878 -5740
  288. package/datatable/datatable.min.js +1 -1
  289. package/dataview/BaseDataView.vue +99 -0
  290. package/dataview/DataView.d.ts +17 -1
  291. package/dataview/DataView.vue +14 -87
  292. package/dataview/dataview.cjs.js +283 -295
  293. package/dataview/dataview.cjs.min.js +1 -1
  294. package/dataview/dataview.esm.js +282 -294
  295. package/dataview/dataview.esm.min.js +1 -1
  296. package/dataview/dataview.js +284 -296
  297. package/dataview/dataview.min.js +1 -1
  298. package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
  299. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +18 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +18 -2
  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 +58 -6
  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 +13 -1
  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 +13 -5
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +18 -1
  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 +41 -1
  765. package/inputtext/InputText.vue +11 -6
  766. package/inputtext/inputtext.cjs.js +59 -20
  767. package/inputtext/inputtext.cjs.min.js +1 -1
  768. package/inputtext/inputtext.esm.js +59 -20
  769. package/inputtext/inputtext.esm.min.js +1 -1
  770. package/inputtext/inputtext.js +59 -20
  771. package/inputtext/inputtext.min.js +1 -1
  772. package/knob/BaseKnob.vue +114 -0
  773. package/knob/Knob.d.ts +13 -1
  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 +13 -1
  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 +17 -1
  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 +13 -1
  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 +17 -1
  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 +13 -1
  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 +13 -6
  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 +30 -1
  840. package/orderlist/OrderList.vue +38 -159
  841. package/orderlist/orderlist.cjs.js +631 -686
  842. package/orderlist/orderlist.cjs.min.js +1 -1
  843. package/orderlist/orderlist.esm.js +630 -685
  844. package/orderlist/orderlist.esm.min.js +1 -1
  845. package/orderlist/orderlist.js +631 -687
  846. package/orderlist/orderlist.min.js +1 -1
  847. package/organizationchart/BaseOrganizationChart.vue +111 -0
  848. package/organizationchart/OrganizationChart.d.ts +13 -1
  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 +13 -1
  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 +20 -9
  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 +14 -2
  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 +17 -1
  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 +17 -1
  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 +36 -3
  916. package/picklist/PickList.vue +51 -180
  917. package/picklist/picklist.cjs.js +1072 -1108
  918. package/picklist/picklist.cjs.min.js +1 -1
  919. package/picklist/picklist.esm.js +1071 -1107
  920. package/picklist/picklist.esm.min.js +1 -1
  921. package/picklist/picklist.js +1072 -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 +13 -1
  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 +13 -1
  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 +18 -1
  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 +31 -2
  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 +26 -2
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +25 -3
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +13 -1
  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 +36 -1
  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 +22 -1
  1107. package/tabview/TabView.vue +59 -172
  1108. package/tabview/tabview.cjs.js +462 -459
  1109. package/tabview/tabview.cjs.min.js +1 -1
  1110. package/tabview/tabview.esm.js +462 -459
  1111. package/tabview/tabview.esm.min.js +1 -1
  1112. package/tabview/tabview.js +462 -460
  1113. package/tabview/tabview.min.js +1 -1
  1114. package/tag/BaseTag.vue +59 -0
  1115. package/tag/Tag.d.ts +13 -1
  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 +13 -1
  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 +30 -1
  1134. package/textarea/Textarea.vue +10 -18
  1135. package/textarea/textarea.cjs.js +85 -77
  1136. package/textarea/textarea.cjs.min.js +1 -1
  1137. package/textarea/textarea.esm.js +85 -77
  1138. package/textarea/textarea.esm.min.js +1 -1
  1139. package/textarea/textarea.js +86 -79
  1140. package/textarea/textarea.min.js +1 -1
  1141. package/tieredmenu/BaseTieredMenu.vue +142 -0
  1142. package/tieredmenu/TieredMenu.d.ts +17 -1
  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 +31 -1
  1153. package/timeline/Timeline.vue +17 -139
  1154. package/timeline/timeline.cjs.js +97 -90
  1155. package/timeline/timeline.cjs.min.js +1 -1
  1156. package/timeline/timeline.esm.js +97 -90
  1157. package/timeline/timeline.esm.min.js +1 -1
  1158. package/timeline/timeline.js +97 -91
  1159. package/timeline/timeline.min.js +1 -1
  1160. package/toast/BaseToast.vue +181 -0
  1161. package/toast/Toast.d.ts +13 -1
  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 +13 -1
  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 +13 -1
  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 +33 -11
  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 +20 -3
  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 +31 -29
  1222. package/treetable/FooterCell.vue +16 -11
  1223. package/treetable/HeaderCell.vue +27 -21
  1224. package/treetable/TreeTable.d.ts +30 -5
  1225. package/treetable/TreeTable.vue +38 -379
  1226. package/treetable/TreeTableRow.vue +9 -11
  1227. package/treetable/treetable.cjs.js +2088 -2129
  1228. package/treetable/treetable.cjs.min.js +1 -1
  1229. package/treetable/treetable.esm.js +2088 -2129
  1230. package/treetable/treetable.esm.min.js +1 -1
  1231. package/treetable/treetable.js +2088 -2130
  1232. package/treetable/treetable.min.js +1 -1
  1233. package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
  1234. package/tristatecheckbox/TriStateCheckbox.d.ts +34 -7
  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 +20 -0
  1255. package/usestyle/package.json +6 -0
  1256. package/usestyle/usestyle.cjs.js +75 -0
  1257. package/usestyle/usestyle.cjs.min.js +1 -0
  1258. package/usestyle/usestyle.esm.js +71 -0
  1259. package/usestyle/usestyle.esm.min.js +1 -0
  1260. package/usestyle/usestyle.js +78 -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 +14 -2
  1269. package/utils/utils.cjs.js +972 -996
  1270. package/utils/utils.cjs.min.js +1 -1
  1271. package/utils/utils.esm.js +972 -996
  1272. package/utils/utils.esm.min.js +1 -1
  1273. package/utils/utils.js +972 -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 +23 -6
  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,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var api = require('primevue/api');
4
- var BaseComponent = require('primevue/basecomponent');
5
4
  var CheckIcon = require('primevue/icons/check');
6
5
  var ChevronDownIcon = require('primevue/icons/chevrondown');
7
6
  var SearchIcon = require('primevue/icons/search');
@@ -13,11 +12,12 @@ var Portal = require('primevue/portal');
13
12
  var Ripple = require('primevue/ripple');
14
13
  var utils = require('primevue/utils');
15
14
  var VirtualScroller = require('primevue/virtualscroller');
15
+ var BaseComponent = require('primevue/basecomponent');
16
+ var usestyle = require('primevue/usestyle');
16
17
  var vue = require('vue');
17
18
 
18
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
19
20
 
20
- var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
21
21
  var CheckIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckIcon);
22
22
  var ChevronDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronDownIcon);
23
23
  var SearchIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchIcon);
@@ -28,1482 +28,1546 @@ var OverlayEventBus__default = /*#__PURE__*/_interopDefaultLegacy(OverlayEventBu
28
28
  var Portal__default = /*#__PURE__*/_interopDefaultLegacy(Portal);
29
29
  var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
30
30
  var VirtualScroller__default = /*#__PURE__*/_interopDefaultLegacy(VirtualScroller);
31
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
31
32
 
32
- var script = {
33
- name: 'MultiSelect',
34
- extends: BaseComponent__default["default"],
35
- emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter', 'selectall-change'],
36
- props: {
37
- modelValue: null,
38
- options: Array,
39
- optionLabel: null,
40
- optionValue: null,
41
- optionDisabled: null,
42
- optionGroupLabel: null,
43
- optionGroupChildren: null,
44
- scrollHeight: {
45
- type: String,
46
- default: '200px'
47
- },
48
- placeholder: String,
49
- disabled: Boolean,
50
- inputId: {
51
- type: String,
52
- default: null
53
- },
54
- inputProps: {
55
- type: null,
56
- default: null
57
- },
58
- panelClass: {
59
- type: String,
60
- default: null
61
- },
62
- panelStyle: {
63
- type: null,
64
- default: null
65
- },
66
- panelProps: {
67
- type: null,
68
- default: null
69
- },
70
- filterInputProps: {
71
- type: null,
72
- default: null
73
- },
74
- closeButtonProps: {
75
- type: null,
76
- default: null
77
- },
78
- dataKey: null,
79
- filter: Boolean,
80
- filterPlaceholder: String,
81
- filterLocale: String,
82
- filterMatchMode: {
83
- type: String,
84
- default: 'contains'
85
- },
86
- filterFields: {
87
- type: Array,
88
- default: null
89
- },
90
- appendTo: {
91
- type: String,
92
- default: 'body'
93
- },
94
- display: {
95
- type: String,
96
- default: 'comma'
97
- },
98
- selectedItemsLabel: {
99
- type: String,
100
- default: '{0} items selected'
101
- },
102
- maxSelectedLabels: {
103
- type: Number,
104
- default: null
105
- },
106
- selectionLimit: {
107
- type: Number,
108
- default: null
109
- },
110
- showToggleAll: {
111
- type: Boolean,
112
- default: true
113
- },
114
- loading: {
115
- type: Boolean,
116
- default: false
117
- },
118
- checkboxIcon: {
119
- type: String,
120
- default: undefined
121
- },
122
- closeIcon: {
123
- type: String,
124
- default: undefined
125
- },
126
- dropdownIcon: {
127
- type: String,
128
- default: undefined
129
- },
130
- filterIcon: {
131
- type: String,
132
- default: undefined
133
- },
134
- loadingIcon: {
135
- type: String,
136
- default: undefined
137
- },
138
- removeTokenIcon: {
139
- type: String,
140
- default: undefined
141
- },
142
- selectAll: {
143
- type: Boolean,
144
- default: null
145
- },
146
- resetFilterOnHide: {
147
- type: Boolean,
148
- default: false
149
- },
150
- virtualScrollerOptions: {
151
- type: Object,
152
- default: null
153
- },
154
- autoOptionFocus: {
155
- type: Boolean,
156
- default: true
157
- },
158
- autoFilterFocus: {
159
- type: Boolean,
160
- default: false
161
- },
162
- filterMessage: {
163
- type: String,
164
- default: null
165
- },
166
- selectionMessage: {
167
- type: String,
168
- default: null
169
- },
170
- emptySelectionMessage: {
171
- type: String,
172
- default: null
173
- },
174
- emptyFilterMessage: {
175
- type: String,
176
- default: null
177
- },
178
- emptyMessage: {
179
- type: String,
180
- default: null
181
- },
182
- tabindex: {
183
- type: Number,
184
- default: 0
185
- },
186
- 'aria-label': {
187
- type: String,
188
- default: null
189
- },
190
- 'aria-labelledby': {
191
- type: String,
192
- default: null
193
- }
33
+ var styles = "\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n}\n\n.p-multiselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.p-multiselect-item {\n cursor: pointer;\n display: flex;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n\n.p-multiselect-item-group {\n cursor: auto;\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.p-multiselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n\n.p-multiselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n\n.p-fluid .p-multiselect {\n display: flex;\n}\n";
34
+ var inlineStyles = {
35
+ root: function root(_ref) {
36
+ var props = _ref.props;
37
+ return {
38
+ position: props.appendTo === 'self' ? 'relative' : undefined
39
+ };
40
+ }
41
+ };
42
+ var classes = {
43
+ root: function root(_ref2) {
44
+ var instance = _ref2.instance,
45
+ props = _ref2.props;
46
+ return ['p-multiselect p-component p-inputwrapper', {
47
+ 'p-multiselect-chip': props.display === 'chip',
48
+ 'p-disabled': props.disabled,
49
+ 'p-focus': instance.focused,
50
+ 'p-inputwrapper-filled': props.modelValue && props.modelValue.length,
51
+ 'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
52
+ 'p-overlay-open': instance.overlayVisible
53
+ }];
54
+ },
55
+ labelContainer: 'p-multiselect-label-container',
56
+ label: function label(_ref3) {
57
+ var instance = _ref3.instance,
58
+ props = _ref3.props;
59
+ return ['p-multiselect-label', {
60
+ 'p-placeholder': instance.label === props.placeholder,
61
+ 'p-multiselect-label-empty': !props.placeholder && (!props.modelValue || props.modelValue.length === 0)
62
+ }];
63
+ },
64
+ token: 'p-multiselect-token',
65
+ tokenLabel: 'p-multiselect-token-label',
66
+ removeTokenIcon: 'p-multiselect-token-icon',
67
+ trigger: 'p-multiselect-trigger',
68
+ loadingIcon: 'p-multiselect-trigger-icon',
69
+ dropdownIcon: 'p-multiselect-trigger-icon',
70
+ panel: function panel(_ref4) {
71
+ var instance = _ref4.instance;
72
+ return ['p-multiselect-panel p-component', {
73
+ 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
74
+ 'p-ripple-disabled': instance.$primevue.config.ripple === false
75
+ }];
76
+ },
77
+ header: 'p-multiselect-header',
78
+ headerCheckboxContainer: function headerCheckboxContainer(_ref5) {
79
+ var instance = _ref5.instance;
80
+ return ['p-checkbox p-component', {
81
+ 'p-checkbox-checked': instance.allSelected,
82
+ 'p-checkbox-focused': instance.headerCheckboxFocused
83
+ }];
84
+ },
85
+ headerCheckbox: function headerCheckbox(_ref6) {
86
+ var instance = _ref6.instance;
87
+ return ['p-checkbox-box', {
88
+ 'p-highlight': instance.allSelected,
89
+ 'p-focus': instance.headerCheckboxFocused
90
+ }];
91
+ },
92
+ headerCheckboxIcon: 'p-checkbox-icon',
93
+ filterContainer: 'p-multiselect-filter-container',
94
+ filterInput: 'p-multiselect-filter p-inputtext p-component',
95
+ filterIcon: 'p-multiselect-filter-icon',
96
+ closeButton: 'p-multiselect-close p-link',
97
+ closeIcon: 'p-multiselect-close-icon',
98
+ wrapper: 'p-multiselect-items-wrapper',
99
+ list: 'p-multiselect-items p-component',
100
+ itemGroup: 'p-multiselect-item-group',
101
+ item: function item(_ref7) {
102
+ var instance = _ref7.instance,
103
+ option = _ref7.option,
104
+ index = _ref7.index,
105
+ getItemOptions = _ref7.getItemOptions;
106
+ return ['p-multiselect-item', {
107
+ 'p-highlight': instance.isSelected(option),
108
+ 'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(index, getItemOptions),
109
+ 'p-disabled': instance.isOptionDisabled(option)
110
+ }];
111
+ },
112
+ checkboxContainer: 'p-checkbox p-component',
113
+ checkbox: function checkbox(_ref8) {
114
+ var instance = _ref8.instance,
115
+ option = _ref8.option;
116
+ return ['p-checkbox-box', {
117
+ 'p-highlight': instance.isSelected(option)
118
+ }];
119
+ },
120
+ checkboxIcon: 'p-checkbox-icon',
121
+ emptyMessage: 'p-multiselect-empty-message'
122
+ };
123
+ var _useStyle = usestyle.useStyle(styles, {
124
+ name: 'multiselect',
125
+ manual: true
126
+ }),
127
+ loadStyle = _useStyle.load;
128
+ var script$1 = {
129
+ name: 'BaseMultiSelect',
130
+ "extends": BaseComponent__default["default"],
131
+ props: {
132
+ modelValue: null,
133
+ options: Array,
134
+ optionLabel: null,
135
+ optionValue: null,
136
+ optionDisabled: null,
137
+ optionGroupLabel: null,
138
+ optionGroupChildren: null,
139
+ scrollHeight: {
140
+ type: String,
141
+ "default": '200px'
194
142
  },
195
- outsideClickListener: null,
196
- scrollHandler: null,
197
- resizeListener: null,
198
- overlay: null,
199
- list: null,
200
- virtualScroller: null,
201
- startRangeIndex: -1,
202
- searchTimeout: null,
203
- searchValue: '',
204
- selectOnFocus: false,
205
- focusOnHover: false,
206
- data() {
207
- return {
208
- id: this.$attrs.id,
209
- focused: false,
210
- focusedOptionIndex: -1,
211
- headerCheckboxFocused: false,
212
- filterValue: null,
213
- overlayVisible: false
214
- };
143
+ placeholder: String,
144
+ disabled: Boolean,
145
+ inputId: {
146
+ type: String,
147
+ "default": null
215
148
  },
216
- watch: {
217
- '$attrs.id': function (newValue) {
218
- this.id = newValue || utils.UniqueComponentId();
219
- },
220
- options() {
221
- this.autoUpdateModel();
222
- }
149
+ inputProps: {
150
+ type: null,
151
+ "default": null
223
152
  },
224
- mounted() {
225
- this.id = this.id || utils.UniqueComponentId();
226
-
227
- this.autoUpdateModel();
153
+ panelClass: {
154
+ type: String,
155
+ "default": null
156
+ },
157
+ panelStyle: {
158
+ type: null,
159
+ "default": null
160
+ },
161
+ panelProps: {
162
+ type: null,
163
+ "default": null
164
+ },
165
+ filterInputProps: {
166
+ type: null,
167
+ "default": null
168
+ },
169
+ closeButtonProps: {
170
+ type: null,
171
+ "default": null
172
+ },
173
+ dataKey: null,
174
+ filter: Boolean,
175
+ filterPlaceholder: String,
176
+ filterLocale: String,
177
+ filterMatchMode: {
178
+ type: String,
179
+ "default": 'contains'
180
+ },
181
+ filterFields: {
182
+ type: Array,
183
+ "default": null
184
+ },
185
+ appendTo: {
186
+ type: String,
187
+ "default": 'body'
188
+ },
189
+ display: {
190
+ type: String,
191
+ "default": 'comma'
192
+ },
193
+ selectedItemsLabel: {
194
+ type: String,
195
+ "default": '{0} items selected'
196
+ },
197
+ maxSelectedLabels: {
198
+ type: Number,
199
+ "default": null
200
+ },
201
+ selectionLimit: {
202
+ type: Number,
203
+ "default": null
204
+ },
205
+ showToggleAll: {
206
+ type: Boolean,
207
+ "default": true
208
+ },
209
+ loading: {
210
+ type: Boolean,
211
+ "default": false
212
+ },
213
+ checkboxIcon: {
214
+ type: String,
215
+ "default": undefined
216
+ },
217
+ closeIcon: {
218
+ type: String,
219
+ "default": undefined
220
+ },
221
+ dropdownIcon: {
222
+ type: String,
223
+ "default": undefined
224
+ },
225
+ filterIcon: {
226
+ type: String,
227
+ "default": undefined
228
+ },
229
+ loadingIcon: {
230
+ type: String,
231
+ "default": undefined
232
+ },
233
+ removeTokenIcon: {
234
+ type: String,
235
+ "default": undefined
236
+ },
237
+ selectAll: {
238
+ type: Boolean,
239
+ "default": null
240
+ },
241
+ resetFilterOnHide: {
242
+ type: Boolean,
243
+ "default": false
244
+ },
245
+ virtualScrollerOptions: {
246
+ type: Object,
247
+ "default": null
248
+ },
249
+ autoOptionFocus: {
250
+ type: Boolean,
251
+ "default": true
252
+ },
253
+ autoFilterFocus: {
254
+ type: Boolean,
255
+ "default": false
256
+ },
257
+ filterMessage: {
258
+ type: String,
259
+ "default": null
260
+ },
261
+ selectionMessage: {
262
+ type: String,
263
+ "default": null
264
+ },
265
+ emptySelectionMessage: {
266
+ type: String,
267
+ "default": null
268
+ },
269
+ emptyFilterMessage: {
270
+ type: String,
271
+ "default": null
272
+ },
273
+ emptyMessage: {
274
+ type: String,
275
+ "default": null
276
+ },
277
+ tabindex: {
278
+ type: Number,
279
+ "default": 0
228
280
  },
229
- beforeUnmount() {
230
- this.unbindOutsideClickListener();
231
- this.unbindResizeListener();
281
+ 'aria-label': {
282
+ type: String,
283
+ "default": null
284
+ },
285
+ 'aria-labelledby': {
286
+ type: String,
287
+ "default": null
288
+ }
289
+ },
290
+ css: {
291
+ classes: classes,
292
+ inlineStyles: inlineStyles,
293
+ loadStyle: loadStyle
294
+ },
295
+ provide: function provide() {
296
+ return {
297
+ $parentInstance: this
298
+ };
299
+ }
300
+ };
232
301
 
233
- if (this.scrollHandler) {
234
- this.scrollHandler.destroy();
235
- this.scrollHandler = null;
302
+ function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "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$1(obj); }
303
+ function ownKeys$1(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; }
304
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
305
+ function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
306
+ function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
307
+ function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
308
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
309
+ 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."); }
310
+ 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); }
311
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
312
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
313
+ 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; }
314
+ var script = {
315
+ name: 'MultiSelect',
316
+ "extends": script$1,
317
+ emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter', 'selectall-change'],
318
+ outsideClickListener: null,
319
+ scrollHandler: null,
320
+ resizeListener: null,
321
+ overlay: null,
322
+ list: null,
323
+ virtualScroller: null,
324
+ startRangeIndex: -1,
325
+ searchTimeout: null,
326
+ searchValue: '',
327
+ selectOnFocus: false,
328
+ focusOnHover: false,
329
+ data: function data() {
330
+ return {
331
+ id: this.$attrs.id,
332
+ focused: false,
333
+ focusedOptionIndex: -1,
334
+ headerCheckboxFocused: false,
335
+ filterValue: null,
336
+ overlayVisible: false
337
+ };
338
+ },
339
+ watch: {
340
+ '$attrs.id': function $attrsId(newValue) {
341
+ this.id = newValue || utils.UniqueComponentId();
342
+ },
343
+ options: function options() {
344
+ this.autoUpdateModel();
345
+ }
346
+ },
347
+ mounted: function mounted() {
348
+ this.id = this.id || utils.UniqueComponentId();
349
+ this.autoUpdateModel();
350
+ },
351
+ beforeUnmount: function beforeUnmount() {
352
+ this.unbindOutsideClickListener();
353
+ this.unbindResizeListener();
354
+ if (this.scrollHandler) {
355
+ this.scrollHandler.destroy();
356
+ this.scrollHandler = null;
357
+ }
358
+ if (this.overlay) {
359
+ utils.ZIndexUtils.clear(this.overlay);
360
+ this.overlay = null;
361
+ }
362
+ },
363
+ methods: {
364
+ getOptionIndex: function getOptionIndex(index, fn) {
365
+ return this.virtualScrollerDisabled ? index : fn && fn(index)['index'];
366
+ },
367
+ getOptionLabel: function getOptionLabel(option) {
368
+ return this.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
369
+ },
370
+ getOptionValue: function getOptionValue(option) {
371
+ return this.optionValue ? utils.ObjectUtils.resolveFieldData(option, this.optionValue) : option;
372
+ },
373
+ getOptionRenderKey: function getOptionRenderKey(option) {
374
+ return this.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
375
+ },
376
+ getHeaderCheckboxPTOptions: function getHeaderCheckboxPTOptions(key) {
377
+ return this.ptm(key, {
378
+ context: {
379
+ selected: this.allSelected,
380
+ focused: this.headerCheckboxFocused
236
381
  }
237
-
238
- if (this.overlay) {
239
- utils.ZIndexUtils.clear(this.overlay);
240
- this.overlay = null;
382
+ });
383
+ },
384
+ getCheckboxPTOptions: function getCheckboxPTOptions(option, itemOptions, index, key) {
385
+ return this.ptm(key, {
386
+ context: {
387
+ selected: this.isSelected(option),
388
+ focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
389
+ disabled: this.isOptionDisabled(option)
241
390
  }
391
+ });
242
392
  },
243
- methods: {
244
- getOptionIndex(index, fn) {
245
- return this.virtualScrollerDisabled ? index : fn && fn(index)['index'];
246
- },
247
- getOptionLabel(option) {
248
- return this.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
249
- },
250
- getOptionValue(option) {
251
- return this.optionValue ? utils.ObjectUtils.resolveFieldData(option, this.optionValue) : option;
252
- },
253
- getOptionRenderKey(option) {
254
- return this.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
255
- },
256
- getHeaderCheckboxPTOptions(key) {
257
- return this.ptm(key, {
258
- context: {
259
- selected: this.allSelected,
260
- focused: this.headerCheckboxFocused
261
- }
262
- });
263
- },
264
- getCheckboxPTOptions(option, itemOptions, index, key) {
265
- return this.ptm(key, {
266
- context: {
267
- selected: this.isSelected(option),
268
- focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
269
- disabled: this.isOptionDisabled(option)
270
- }
393
+ isOptionDisabled: function isOptionDisabled(option) {
394
+ if (this.maxSelectionLimitReached && !this.isSelected(option)) {
395
+ return true;
396
+ }
397
+ return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
398
+ },
399
+ isOptionGroup: function isOptionGroup(option) {
400
+ return this.optionGroupLabel && option.optionGroup && option.group;
401
+ },
402
+ getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
403
+ return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
404
+ },
405
+ getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {
406
+ return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
407
+ },
408
+ getAriaPosInset: function getAriaPosInset(index) {
409
+ var _this = this;
410
+ return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter(function (option) {
411
+ return _this.isOptionGroup(option);
412
+ }).length : index) + 1;
413
+ },
414
+ show: function show(isFocus) {
415
+ this.$emit('before-show');
416
+ this.overlayVisible = true;
417
+ this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
418
+ isFocus && utils.DomHandler.focus(this.$refs.focusInput);
419
+ },
420
+ hide: function hide(isFocus) {
421
+ var _this2 = this;
422
+ var _hide = function _hide() {
423
+ _this2.$emit('before-hide');
424
+ _this2.overlayVisible = false;
425
+ _this2.focusedOptionIndex = -1;
426
+ _this2.searchValue = '';
427
+ _this2.resetFilterOnHide && (_this2.filterValue = null);
428
+ isFocus && utils.DomHandler.focus(_this2.$refs.focusInput);
429
+ };
430
+ setTimeout(function () {
431
+ _hide();
432
+ }, 0); // For ScreenReaders
433
+ },
434
+ onFocus: function onFocus(event) {
435
+ if (this.disabled) {
436
+ // For ScreenReaders
437
+ return;
438
+ }
439
+ this.focused = true;
440
+ this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
441
+ this.overlayVisible && this.scrollInView(this.focusedOptionIndex);
442
+ this.$emit('focus', event);
443
+ },
444
+ onBlur: function onBlur(event) {
445
+ this.focused = false;
446
+ this.focusedOptionIndex = -1;
447
+ this.searchValue = '';
448
+ this.$emit('blur', event);
449
+ },
450
+ onKeyDown: function onKeyDown(event) {
451
+ var _this3 = this;
452
+ if (this.disabled) {
453
+ event.preventDefault();
454
+ return;
455
+ }
456
+ var metaKey = event.metaKey || event.ctrlKey;
457
+ switch (event.code) {
458
+ case 'ArrowDown':
459
+ this.onArrowDownKey(event);
460
+ break;
461
+ case 'ArrowUp':
462
+ this.onArrowUpKey(event);
463
+ break;
464
+ case 'Home':
465
+ this.onHomeKey(event);
466
+ break;
467
+ case 'End':
468
+ this.onEndKey(event);
469
+ break;
470
+ case 'PageDown':
471
+ this.onPageDownKey(event);
472
+ break;
473
+ case 'PageUp':
474
+ this.onPageUpKey(event);
475
+ break;
476
+ case 'Enter':
477
+ case 'Space':
478
+ this.onEnterKey(event);
479
+ break;
480
+ case 'Escape':
481
+ this.onEscapeKey(event);
482
+ break;
483
+ case 'Tab':
484
+ this.onTabKey(event);
485
+ break;
486
+ case 'ShiftLeft':
487
+ case 'ShiftRight':
488
+ this.onShiftKey(event);
489
+ break;
490
+ default:
491
+ if (event.code === 'KeyA' && metaKey) {
492
+ var value = this.visibleOptions.filter(function (option) {
493
+ return _this3.isValidOption(option);
494
+ }).map(function (option) {
495
+ return _this3.getOptionValue(option);
271
496
  });
272
- },
273
- isOptionDisabled(option) {
274
- if (this.maxSelectionLimitReached && !this.isSelected(option)) {
275
- return true;
276
- }
277
-
278
- return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
279
- },
280
- isOptionGroup(option) {
281
- return this.optionGroupLabel && option.optionGroup && option.group;
282
- },
283
- getOptionGroupLabel(optionGroup) {
284
- return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
285
- },
286
- getOptionGroupChildren(optionGroup) {
287
- return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
288
- },
289
- getAriaPosInset(index) {
290
- return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter((option) => this.isOptionGroup(option)).length : index) + 1;
291
- },
292
- show(isFocus) {
293
- this.$emit('before-show');
294
- this.overlayVisible = true;
295
- this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
296
-
297
- isFocus && utils.DomHandler.focus(this.$refs.focusInput);
298
- },
299
- hide(isFocus) {
300
- const _hide = () => {
301
- this.$emit('before-hide');
302
- this.overlayVisible = false;
303
- this.focusedOptionIndex = -1;
304
- this.searchValue = '';
305
-
306
- this.resetFilterOnHide && (this.filterValue = null);
307
- isFocus && utils.DomHandler.focus(this.$refs.focusInput);
308
- };
309
-
310
- setTimeout(() => {
311
- _hide();
312
- }, 0); // For ScreenReaders
313
- },
314
- onFocus(event) {
315
- if (this.disabled) {
316
- // For ScreenReaders
317
- return;
318
- }
319
-
320
- this.focused = true;
321
- this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
322
- this.overlayVisible && this.scrollInView(this.focusedOptionIndex);
323
- this.$emit('focus', event);
324
- },
325
- onBlur(event) {
326
- this.focused = false;
327
- this.focusedOptionIndex = -1;
328
- this.searchValue = '';
329
- this.$emit('blur', event);
330
- },
331
- onKeyDown(event) {
332
- if (this.disabled) {
333
- event.preventDefault();
334
-
335
- return;
336
- }
337
-
338
- const metaKey = event.metaKey || event.ctrlKey;
339
-
340
- switch (event.code) {
341
- case 'ArrowDown':
342
- this.onArrowDownKey(event);
343
- break;
344
-
345
- case 'ArrowUp':
346
- this.onArrowUpKey(event);
347
- break;
348
-
349
- case 'Home':
350
- this.onHomeKey(event);
351
- break;
352
-
353
- case 'End':
354
- this.onEndKey(event);
355
- break;
356
-
357
- case 'PageDown':
358
- this.onPageDownKey(event);
359
- break;
360
-
361
- case 'PageUp':
362
- this.onPageUpKey(event);
363
- break;
364
-
365
- case 'Enter':
366
- case 'Space':
367
- this.onEnterKey(event);
368
- break;
369
-
370
- case 'Escape':
371
- this.onEscapeKey(event);
372
- break;
373
-
374
- case 'Tab':
375
- this.onTabKey(event);
376
- break;
377
-
378
- case 'ShiftLeft':
379
- case 'ShiftRight':
380
- this.onShiftKey(event);
381
- break;
382
-
383
- default:
384
- if (event.code === 'KeyA' && metaKey) {
385
- const value = this.visibleOptions.filter((option) => this.isValidOption(option)).map((option) => this.getOptionValue(option));
386
-
387
- this.updateModel(event, value);
388
-
389
- event.preventDefault();
390
- break;
391
- }
392
-
393
- if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
394
- !this.overlayVisible && this.show();
395
- this.searchOptions(event);
396
- event.preventDefault();
397
- }
398
-
399
- break;
400
- }
401
- },
402
- onContainerClick(event) {
403
- if (this.disabled || this.loading) {
404
- return;
405
- }
406
-
407
- if (!this.overlay || !this.overlay.contains(event.target)) {
408
- this.overlayVisible ? this.hide(true) : this.show(true);
409
- }
410
- },
411
- onFirstHiddenFocus(event) {
412
- const focusableEl = event.relatedTarget === this.$refs.focusInput ? utils.DomHandler.getFirstFocusableElement(this.overlay, ':not(.p-hidden-focusable)') : this.$refs.focusInput;
413
-
414
- utils.DomHandler.focus(focusableEl);
415
- },
416
- onLastHiddenFocus(event) {
417
- const focusableEl = event.relatedTarget === this.$refs.focusInput ? utils.DomHandler.getLastFocusableElement(this.overlay, ':not(.p-hidden-focusable)') : this.$refs.focusInput;
418
-
419
- utils.DomHandler.focus(focusableEl);
420
- },
421
- onCloseClick() {
422
- this.hide(true);
423
- },
424
- onHeaderCheckboxFocus() {
425
- this.headerCheckboxFocused = true;
426
- },
427
- onHeaderCheckboxBlur() {
428
- this.headerCheckboxFocused = false;
429
- },
430
- onOptionSelect(event, option, index = -1, isFocus = false) {
431
- if (this.disabled || this.isOptionDisabled(option)) {
432
- return;
433
- }
434
-
435
- let selected = this.isSelected(option);
436
- let value = null;
437
-
438
- if (selected) value = this.modelValue.filter((val) => !utils.ObjectUtils.equals(val, this.getOptionValue(option), this.equalityKey));
439
- else value = [...(this.modelValue || []), this.getOptionValue(option)];
440
-
441
497
  this.updateModel(event, value);
442
- index !== -1 && (this.focusedOptionIndex = index);
443
- isFocus && utils.DomHandler.focus(this.$refs.focusInput);
444
- },
445
- onOptionMouseMove(event, index) {
446
- if (this.focusOnHover) {
447
- this.changeFocusedOptionIndex(event, index);
448
- }
449
- },
450
- onOptionSelectRange(event, start = -1, end = -1) {
451
- start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
452
- end === -1 && (end = this.findNearestSelectedOptionIndex(start));
453
-
454
- if (start !== -1 && end !== -1) {
455
- const rangeStart = Math.min(start, end);
456
- const rangeEnd = Math.max(start, end);
457
- const value = this.visibleOptions
458
- .slice(rangeStart, rangeEnd + 1)
459
- .filter((option) => this.isValidOption(option))
460
- .map((option) => this.getOptionValue(option));
461
-
462
- this.updateModel(event, value);
463
- }
464
- },
465
- onFilterChange(event) {
466
- const value = event.target.value;
467
-
468
- this.filterValue = value;
469
- this.focusedOptionIndex = -1;
470
- this.$emit('filter', { originalEvent: event, value });
471
-
472
- !this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
473
- },
474
- onFilterKeyDown(event) {
475
- switch (event.code) {
476
- case 'ArrowDown':
477
- this.onArrowDownKey(event);
478
- break;
479
-
480
- case 'ArrowUp':
481
- this.onArrowUpKey(event, true);
482
- break;
483
-
484
- case 'ArrowLeft':
485
- case 'ArrowRight':
486
- this.onArrowLeftKey(event, true);
487
- break;
488
-
489
- case 'Home':
490
- this.onHomeKey(event, true);
491
- break;
492
-
493
- case 'End':
494
- this.onEndKey(event, true);
495
- break;
496
-
497
- case 'Enter':
498
- this.onEnterKey(event);
499
- break;
500
-
501
- case 'Escape':
502
- this.onEscapeKey(event);
503
- break;
504
-
505
- case 'Tab':
506
- this.onTabKey(event, true);
507
- break;
508
- }
509
- },
510
- onFilterBlur() {
511
- this.focusedOptionIndex = -1;
512
- },
513
- onFilterUpdated() {
514
- if (this.overlayVisible) {
515
- this.alignOverlay();
516
- }
517
- },
518
- onOverlayClick(event) {
519
- OverlayEventBus__default["default"].emit('overlay-click', {
520
- originalEvent: event,
521
- target: this.$el
522
- });
523
- },
524
- onOverlayKeyDown(event) {
525
- switch (event.code) {
526
- case 'Escape':
527
- this.onEscapeKey(event);
528
- break;
529
- }
530
- },
531
- onArrowDownKey(event) {
532
- const optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
533
-
534
- if (event.shiftKey) {
535
- this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
536
- }
537
-
538
- this.changeFocusedOptionIndex(event, optionIndex);
539
-
540
- !this.overlayVisible && this.show();
541
498
  event.preventDefault();
542
- },
543
- onArrowUpKey(event, pressedInInputText = false) {
544
- if (event.altKey && !pressedInInputText) {
545
- if (this.focusedOptionIndex !== -1) {
546
- this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
547
- }
548
-
549
- this.overlayVisible && this.hide();
550
- event.preventDefault();
551
- } else {
552
- const optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
553
-
554
- if (event.shiftKey) {
555
- this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
556
- }
557
-
558
- this.changeFocusedOptionIndex(event, optionIndex);
559
-
560
- !this.overlayVisible && this.show();
561
- event.preventDefault();
562
- }
563
- },
564
- onArrowLeftKey(event, pressedInInputText = false) {
565
- pressedInInputText && (this.focusedOptionIndex = -1);
566
- },
567
- onHomeKey(event, pressedInInputText = false) {
568
- const { currentTarget } = event;
569
-
570
- if (pressedInInputText) {
571
- const len = currentTarget.value.length;
572
-
573
- currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
574
- this.focusedOptionIndex = -1;
575
- } else {
576
- let metaKey = event.metaKey || event.ctrlKey;
577
- let optionIndex = this.findFirstOptionIndex();
578
-
579
- if (event.shiftKey && metaKey) {
580
- this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
581
- }
582
-
583
- this.changeFocusedOptionIndex(event, optionIndex);
584
-
585
- !this.overlayVisible && this.show();
586
- }
587
-
588
- event.preventDefault();
589
- },
590
- onEndKey(event, pressedInInputText = false) {
591
- const { currentTarget } = event;
592
-
593
- if (pressedInInputText) {
594
- const len = currentTarget.value.length;
595
-
596
- currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
597
- this.focusedOptionIndex = -1;
598
- } else {
599
- let metaKey = event.metaKey || event.ctrlKey;
600
- let optionIndex = this.findLastOptionIndex();
601
-
602
- if (event.shiftKey && metaKey) {
603
- this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
604
- }
605
-
606
- this.changeFocusedOptionIndex(event, optionIndex);
607
-
608
- !this.overlayVisible && this.show();
609
- }
610
-
611
- event.preventDefault();
612
- },
613
- onPageUpKey(event) {
614
- this.scrollInView(0);
615
- event.preventDefault();
616
- },
617
- onPageDownKey(event) {
618
- this.scrollInView(this.visibleOptions.length - 1);
619
- event.preventDefault();
620
- },
621
- onEnterKey(event) {
622
- if (!this.overlayVisible) {
623
- this.onArrowDownKey(event);
624
- } else {
625
- if (this.focusedOptionIndex !== -1) {
626
- if (event.shiftKey) this.onOptionSelectRange(event, this.focusedOptionIndex);
627
- else this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
628
- }
629
- }
630
-
631
- event.preventDefault();
632
- },
633
- onEscapeKey(event) {
634
- this.overlayVisible && this.hide(true);
499
+ break;
500
+ }
501
+ if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
502
+ !this.overlayVisible && this.show();
503
+ this.searchOptions(event);
635
504
  event.preventDefault();
636
- },
637
- onTabKey(event, pressedInInputText = false) {
638
- if (!pressedInInputText) {
639
- if (this.overlayVisible && this.hasFocusableElements()) {
640
- utils.DomHandler.focus(event.shiftKey ? this.$refs.lastHiddenFocusableElementOnOverlay : this.$refs.firstHiddenFocusableElementOnOverlay);
641
-
642
- event.preventDefault();
643
- } else {
644
- if (this.focusedOptionIndex !== -1) {
645
- this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
646
- }
647
-
648
- this.overlayVisible && this.hide(this.filter);
649
- }
650
- }
651
- },
652
- onShiftKey() {
653
- this.startRangeIndex = this.focusedOptionIndex;
654
- },
655
- onOverlayEnter(el) {
656
- utils.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
657
- this.alignOverlay();
658
- this.scrollInView();
659
-
660
- this.autoFilterFocus && utils.DomHandler.focus(this.$refs.filterInput);
661
- },
662
- onOverlayAfterEnter() {
663
- this.bindOutsideClickListener();
664
- this.bindScrollListener();
665
- this.bindResizeListener();
666
-
667
- this.$emit('show');
668
- },
669
- onOverlayLeave() {
670
- this.unbindOutsideClickListener();
671
- this.unbindScrollListener();
672
- this.unbindResizeListener();
673
-
674
- this.$emit('hide');
675
- this.overlay = null;
676
- },
677
- onOverlayAfterLeave(el) {
678
- utils.ZIndexUtils.clear(el);
679
- },
680
- alignOverlay() {
681
- if (this.appendTo === 'self') {
682
- utils.DomHandler.relativePosition(this.overlay, this.$el);
683
- } else {
684
- this.overlay.style.minWidth = utils.DomHandler.getOuterWidth(this.$el) + 'px';
685
- utils.DomHandler.absolutePosition(this.overlay, this.$el);
686
- }
687
- },
688
- bindOutsideClickListener() {
689
- if (!this.outsideClickListener) {
690
- this.outsideClickListener = (event) => {
691
- if (this.overlayVisible && this.isOutsideClicked(event)) {
692
- this.hide();
693
- }
694
- };
695
-
696
- document.addEventListener('click', this.outsideClickListener);
697
- }
698
- },
699
- unbindOutsideClickListener() {
700
- if (this.outsideClickListener) {
701
- document.removeEventListener('click', this.outsideClickListener);
702
- this.outsideClickListener = null;
703
- }
704
- },
705
- bindScrollListener() {
706
- if (!this.scrollHandler) {
707
- this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, () => {
708
- if (this.overlayVisible) {
709
- this.hide();
710
- }
711
- });
712
- }
713
-
714
- this.scrollHandler.bindScrollListener();
715
- },
716
- unbindScrollListener() {
717
- if (this.scrollHandler) {
718
- this.scrollHandler.unbindScrollListener();
719
- }
720
- },
721
- bindResizeListener() {
722
- if (!this.resizeListener) {
723
- this.resizeListener = () => {
724
- if (this.overlayVisible && !utils.DomHandler.isTouchDevice()) {
725
- this.hide();
726
- }
727
- };
728
-
729
- window.addEventListener('resize', this.resizeListener);
730
- }
731
- },
732
- unbindResizeListener() {
733
- if (this.resizeListener) {
734
- window.removeEventListener('resize', this.resizeListener);
735
- this.resizeListener = null;
736
- }
737
- },
738
- isOutsideClicked(event) {
739
- return !(this.$el.isSameNode(event.target) || this.$el.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
740
- },
741
- getLabelByValue(value) {
742
- const options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
743
- const matchedOption = options.find((option) => !this.isOptionGroup(option) && utils.ObjectUtils.equals(this.getOptionValue(option), value, this.equalityKey));
744
-
745
- return matchedOption ? this.getOptionLabel(matchedOption) : null;
746
- },
747
- getSelectedItemsLabel() {
748
- let pattern = /{(.*?)}/;
749
-
750
- if (pattern.test(this.selectedItemsLabel)) {
751
- return this.selectedItemsLabel.replace(this.selectedItemsLabel.match(pattern)[0], this.modelValue.length + '');
752
- }
753
-
754
- return this.selectedItemsLabel;
755
- },
756
- onToggleAll(event) {
757
- if (this.selectAll !== null) {
758
- this.$emit('selectall-change', { originalEvent: event, checked: !this.allSelected });
759
- } else {
760
- const value = this.allSelected ? [] : this.visibleOptions.filter((option) => this.isValidOption(option)).map((option) => this.getOptionValue(option));
761
-
762
- this.updateModel(event, value);
763
- }
764
-
765
- this.headerCheckboxFocused = true;
766
- },
767
- removeOption(event, optionValue) {
768
- let value = this.modelValue.filter((val) => !utils.ObjectUtils.equals(val, optionValue, this.equalityKey));
769
-
770
- this.updateModel(event, value);
771
- },
772
- clearFilter() {
773
- this.filterValue = null;
774
- },
775
- hasFocusableElements() {
776
- return utils.DomHandler.getFocusableElements(this.overlay, ':not(.p-hidden-focusable)').length > 0;
777
- },
778
- isOptionMatched(option) {
779
- return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
780
- },
781
- isValidOption(option) {
782
- return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
783
- },
784
- isValidSelectedOption(option) {
785
- return this.isValidOption(option) && this.isSelected(option);
786
- },
787
- isSelected(option) {
788
- const optionValue = this.getOptionValue(option);
789
-
790
- return (this.modelValue || []).some((value) => utils.ObjectUtils.equals(value, optionValue, this.equalityKey));
791
- },
792
- findFirstOptionIndex() {
793
- return this.visibleOptions.findIndex((option) => this.isValidOption(option));
794
- },
795
- findLastOptionIndex() {
796
- return utils.ObjectUtils.findLastIndex(this.visibleOptions, (option) => this.isValidOption(option));
797
- },
798
- findNextOptionIndex(index) {
799
- const matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((option) => this.isValidOption(option)) : -1;
800
-
801
- return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
802
- },
803
- findPrevOptionIndex(index) {
804
- const matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidOption(option)) : -1;
805
-
806
- return matchedOptionIndex > -1 ? matchedOptionIndex : index;
807
- },
808
- findFirstSelectedOptionIndex() {
809
- return this.hasSelectedOption ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
810
- },
811
- findLastSelectedOptionIndex() {
812
- return this.hasSelectedOption ? utils.ObjectUtils.findLastIndex(this.visibleOptions, (option) => this.isValidSelectedOption(option)) : -1;
813
- },
814
- findNextSelectedOptionIndex(index) {
815
- const matchedOptionIndex = this.hasSelectedOption && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((option) => this.isValidSelectedOption(option)) : -1;
816
-
817
- return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
818
- },
819
- findPrevSelectedOptionIndex(index) {
820
- const matchedOptionIndex = this.hasSelectedOption && index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidSelectedOption(option)) : -1;
821
-
822
- return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
823
- },
824
- findNearestSelectedOptionIndex(index, firstCheckUp = false) {
825
- let matchedOptionIndex = -1;
826
-
827
- if (this.hasSelectedOption) {
828
- if (firstCheckUp) {
829
- matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
830
- matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
831
- } else {
832
- matchedOptionIndex = this.findNextSelectedOptionIndex(index);
833
- matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
834
- }
835
- }
836
-
837
- return matchedOptionIndex > -1 ? matchedOptionIndex : index;
838
- },
839
- findFirstFocusedOptionIndex() {
840
- const selectedIndex = this.findFirstSelectedOptionIndex();
841
-
842
- return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
843
- },
844
- findLastFocusedOptionIndex() {
845
- const selectedIndex = this.findLastSelectedOptionIndex();
846
-
847
- return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
848
- },
849
- searchOptions(event) {
850
- this.searchValue = (this.searchValue || '') + event.key;
851
-
852
- let optionIndex = -1;
853
-
854
- if (this.focusedOptionIndex !== -1) {
855
- optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex((option) => this.isOptionMatched(option));
856
- optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex((option) => this.isOptionMatched(option)) : optionIndex + this.focusedOptionIndex;
857
- } else {
858
- optionIndex = this.visibleOptions.findIndex((option) => this.isOptionMatched(option));
859
- }
860
-
861
- if (optionIndex === -1 && this.focusedOptionIndex === -1) {
862
- optionIndex = this.findFirstFocusedOptionIndex();
863
- }
864
-
865
- if (optionIndex !== -1) {
866
- this.changeFocusedOptionIndex(event, optionIndex);
867
- }
868
-
869
- if (this.searchTimeout) {
870
- clearTimeout(this.searchTimeout);
871
- }
872
-
873
- this.searchTimeout = setTimeout(() => {
874
- this.searchValue = '';
875
- this.searchTimeout = null;
876
- }, 500);
877
- },
878
- changeFocusedOptionIndex(event, index) {
879
- if (this.focusedOptionIndex !== index) {
880
- this.focusedOptionIndex = index;
881
- this.scrollInView();
882
- }
883
- },
884
- scrollInView(index = -1) {
885
- const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
886
- const element = utils.DomHandler.findSingle(this.list, `li[id="${id}"]`);
887
-
888
- if (element) {
889
- element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
890
- } else if (!this.virtualScrollerDisabled) {
891
- this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
892
- }
893
- },
894
- autoUpdateModel() {
895
- if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
896
- this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
897
- const value = this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);
898
-
899
- this.updateModel(null, [value]);
900
- }
901
- },
902
- updateModel(event, value) {
903
- this.$emit('update:modelValue', value);
904
- this.$emit('change', { originalEvent: event, value });
905
- },
906
- flatOptions(options) {
907
- return (options || []).reduce((result, option, index) => {
908
- result.push({ optionGroup: option, group: true, index });
909
-
910
- const optionGroupChildren = this.getOptionGroupChildren(option);
911
-
912
- optionGroupChildren && optionGroupChildren.forEach((o) => result.push(o));
913
-
914
- return result;
915
- }, []);
916
- },
917
- overlayRef(el) {
918
- this.overlay = el;
919
- },
920
- listRef(el, contentRef) {
921
- this.list = el;
922
- contentRef && contentRef(el); // For VirtualScroller
923
- },
924
- virtualScrollerRef(el) {
925
- this.virtualScroller = el;
505
+ }
506
+ break;
507
+ }
508
+ },
509
+ onContainerClick: function onContainerClick(event) {
510
+ if (this.disabled || this.loading) {
511
+ return;
512
+ }
513
+ if (!this.overlay || !this.overlay.contains(event.target)) {
514
+ this.overlayVisible ? this.hide(true) : this.show(true);
515
+ }
516
+ },
517
+ onFirstHiddenFocus: function onFirstHiddenFocus(event) {
518
+ var focusableEl = event.relatedTarget === this.$refs.focusInput ? utils.DomHandler.getFirstFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
519
+ utils.DomHandler.focus(focusableEl);
520
+ },
521
+ onLastHiddenFocus: function onLastHiddenFocus(event) {
522
+ var focusableEl = event.relatedTarget === this.$refs.focusInput ? utils.DomHandler.getLastFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
523
+ utils.DomHandler.focus(focusableEl);
524
+ },
525
+ onCloseClick: function onCloseClick() {
526
+ this.hide(true);
527
+ },
528
+ onHeaderCheckboxFocus: function onHeaderCheckboxFocus() {
529
+ this.headerCheckboxFocused = true;
530
+ },
531
+ onHeaderCheckboxBlur: function onHeaderCheckboxBlur() {
532
+ this.headerCheckboxFocused = false;
533
+ },
534
+ onOptionSelect: function onOptionSelect(event, option) {
535
+ var _this4 = this;
536
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
537
+ var isFocus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
538
+ if (this.disabled || this.isOptionDisabled(option)) {
539
+ return;
540
+ }
541
+ var selected = this.isSelected(option);
542
+ var value = null;
543
+ if (selected) value = this.modelValue.filter(function (val) {
544
+ return !utils.ObjectUtils.equals(val, _this4.getOptionValue(option), _this4.equalityKey);
545
+ });else value = [].concat(_toConsumableArray(this.modelValue || []), [this.getOptionValue(option)]);
546
+ this.updateModel(event, value);
547
+ index !== -1 && (this.focusedOptionIndex = index);
548
+ isFocus && utils.DomHandler.focus(this.$refs.focusInput);
549
+ },
550
+ onOptionMouseMove: function onOptionMouseMove(event, index) {
551
+ if (this.focusOnHover) {
552
+ this.changeFocusedOptionIndex(event, index);
553
+ }
554
+ },
555
+ onOptionSelectRange: function onOptionSelectRange(event) {
556
+ var _this5 = this;
557
+ var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
558
+ var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
559
+ start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
560
+ end === -1 && (end = this.findNearestSelectedOptionIndex(start));
561
+ if (start !== -1 && end !== -1) {
562
+ var rangeStart = Math.min(start, end);
563
+ var rangeEnd = Math.max(start, end);
564
+ var value = this.visibleOptions.slice(rangeStart, rangeEnd + 1).filter(function (option) {
565
+ return _this5.isValidOption(option);
566
+ }).map(function (option) {
567
+ return _this5.getOptionValue(option);
568
+ });
569
+ this.updateModel(event, value);
570
+ }
571
+ },
572
+ onFilterChange: function onFilterChange(event) {
573
+ var value = event.target.value;
574
+ this.filterValue = value;
575
+ this.focusedOptionIndex = -1;
576
+ this.$emit('filter', {
577
+ originalEvent: event,
578
+ value: value
579
+ });
580
+ !this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
581
+ },
582
+ onFilterKeyDown: function onFilterKeyDown(event) {
583
+ switch (event.code) {
584
+ case 'ArrowDown':
585
+ this.onArrowDownKey(event);
586
+ break;
587
+ case 'ArrowUp':
588
+ this.onArrowUpKey(event, true);
589
+ break;
590
+ case 'ArrowLeft':
591
+ case 'ArrowRight':
592
+ this.onArrowLeftKey(event, true);
593
+ break;
594
+ case 'Home':
595
+ this.onHomeKey(event, true);
596
+ break;
597
+ case 'End':
598
+ this.onEndKey(event, true);
599
+ break;
600
+ case 'Enter':
601
+ this.onEnterKey(event);
602
+ break;
603
+ case 'Escape':
604
+ this.onEscapeKey(event);
605
+ break;
606
+ case 'Tab':
607
+ this.onTabKey(event, true);
608
+ break;
609
+ }
610
+ },
611
+ onFilterBlur: function onFilterBlur() {
612
+ this.focusedOptionIndex = -1;
613
+ },
614
+ onFilterUpdated: function onFilterUpdated() {
615
+ if (this.overlayVisible) {
616
+ this.alignOverlay();
617
+ }
618
+ },
619
+ onOverlayClick: function onOverlayClick(event) {
620
+ OverlayEventBus__default["default"].emit('overlay-click', {
621
+ originalEvent: event,
622
+ target: this.$el
623
+ });
624
+ },
625
+ onOverlayKeyDown: function onOverlayKeyDown(event) {
626
+ switch (event.code) {
627
+ case 'Escape':
628
+ this.onEscapeKey(event);
629
+ break;
630
+ }
631
+ },
632
+ onArrowDownKey: function onArrowDownKey(event) {
633
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
634
+ if (event.shiftKey) {
635
+ this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
636
+ }
637
+ this.changeFocusedOptionIndex(event, optionIndex);
638
+ !this.overlayVisible && this.show();
639
+ event.preventDefault();
640
+ },
641
+ onArrowUpKey: function onArrowUpKey(event) {
642
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
643
+ if (event.altKey && !pressedInInputText) {
644
+ if (this.focusedOptionIndex !== -1) {
645
+ this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
646
+ }
647
+ this.overlayVisible && this.hide();
648
+ event.preventDefault();
649
+ } else {
650
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
651
+ if (event.shiftKey) {
652
+ this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
926
653
  }
654
+ this.changeFocusedOptionIndex(event, optionIndex);
655
+ !this.overlayVisible && this.show();
656
+ event.preventDefault();
657
+ }
927
658
  },
928
- computed: {
929
- containerClass() {
930
- return [
931
- 'p-multiselect p-component p-inputwrapper',
932
- {
933
- 'p-multiselect-chip': this.display === 'chip',
934
- 'p-disabled': this.disabled,
935
- 'p-focus': this.focused,
936
- 'p-inputwrapper-filled': this.modelValue && this.modelValue.length,
937
- 'p-inputwrapper-focus': this.focused || this.overlayVisible,
938
- 'p-overlay-open': this.overlayVisible
939
- }
940
- ];
941
- },
942
- labelClass() {
943
- return [
944
- 'p-multiselect-label',
945
- {
946
- 'p-placeholder': this.label === this.placeholder,
947
- 'p-multiselect-label-empty': !this.placeholder && (!this.modelValue || this.modelValue.length === 0)
948
- }
949
- ];
950
- },
951
- panelStyleClass() {
952
- return [
953
- 'p-multiselect-panel p-component',
954
- this.panelClass,
955
- {
956
- 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
957
- 'p-ripple-disabled': this.$primevue.config.ripple === false
958
- }
959
- ];
960
- },
961
- headerCheckboxClass() {
962
- return [
963
- 'p-checkbox p-component',
964
- {
965
- 'p-checkbox-checked': this.allSelected,
966
- 'p-checkbox-focused': this.headerCheckboxFocused
967
- }
968
- ];
969
- },
970
- visibleOptions() {
971
- const options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
972
-
973
- if (this.filterValue) {
974
- const filteredOptions = api.FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
975
-
976
- if (this.optionGroupLabel) {
977
- const optionGroups = this.options || [];
978
- const filtered = [];
979
-
980
- optionGroups.forEach((group) => {
981
- const groupChildren = this.getOptionGroupChildren(group);
982
- const filteredItems = groupChildren.filter((item) => filteredOptions.includes(item));
983
-
984
- if (filteredItems.length > 0) filtered.push({ ...group, [typeof this.optionGroupChildren === 'string' ? this.optionGroupChildren : 'items']: [...filteredItems] });
985
- });
986
-
987
- return this.flatOptions(filtered);
988
- }
989
-
990
- return filteredOptions;
991
- }
992
-
993
- return options;
994
- },
995
- label() {
996
- // TODO: Refactor
997
- let label;
998
-
999
- if (this.modelValue && this.modelValue.length) {
1000
- if (utils.ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue.length > this.maxSelectedLabels) {
1001
- return this.getSelectedItemsLabel();
1002
- } else {
1003
- label = '';
1004
-
1005
- for (let i = 0; i < this.modelValue.length; i++) {
1006
- if (i !== 0) {
1007
- label += ', ';
1008
- }
1009
-
1010
- label += this.getLabelByValue(this.modelValue[i]);
1011
- }
1012
- }
1013
- } else {
1014
- label = this.placeholder;
659
+ onArrowLeftKey: function onArrowLeftKey(event) {
660
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
661
+ pressedInInputText && (this.focusedOptionIndex = -1);
662
+ },
663
+ onHomeKey: function onHomeKey(event) {
664
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
665
+ var currentTarget = event.currentTarget;
666
+ if (pressedInInputText) {
667
+ var len = currentTarget.value.length;
668
+ currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
669
+ this.focusedOptionIndex = -1;
670
+ } else {
671
+ var metaKey = event.metaKey || event.ctrlKey;
672
+ var optionIndex = this.findFirstOptionIndex();
673
+ if (event.shiftKey && metaKey) {
674
+ this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
675
+ }
676
+ this.changeFocusedOptionIndex(event, optionIndex);
677
+ !this.overlayVisible && this.show();
678
+ }
679
+ event.preventDefault();
680
+ },
681
+ onEndKey: function onEndKey(event) {
682
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
683
+ var currentTarget = event.currentTarget;
684
+ if (pressedInInputText) {
685
+ var len = currentTarget.value.length;
686
+ currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
687
+ this.focusedOptionIndex = -1;
688
+ } else {
689
+ var metaKey = event.metaKey || event.ctrlKey;
690
+ var optionIndex = this.findLastOptionIndex();
691
+ if (event.shiftKey && metaKey) {
692
+ this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
693
+ }
694
+ this.changeFocusedOptionIndex(event, optionIndex);
695
+ !this.overlayVisible && this.show();
696
+ }
697
+ event.preventDefault();
698
+ },
699
+ onPageUpKey: function onPageUpKey(event) {
700
+ this.scrollInView(0);
701
+ event.preventDefault();
702
+ },
703
+ onPageDownKey: function onPageDownKey(event) {
704
+ this.scrollInView(this.visibleOptions.length - 1);
705
+ event.preventDefault();
706
+ },
707
+ onEnterKey: function onEnterKey(event) {
708
+ if (!this.overlayVisible) {
709
+ this.onArrowDownKey(event);
710
+ } else {
711
+ if (this.focusedOptionIndex !== -1) {
712
+ if (event.shiftKey) this.onOptionSelectRange(event, this.focusedOptionIndex);else this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
713
+ }
714
+ }
715
+ event.preventDefault();
716
+ },
717
+ onEscapeKey: function onEscapeKey(event) {
718
+ this.overlayVisible && this.hide(true);
719
+ event.preventDefault();
720
+ },
721
+ onTabKey: function onTabKey(event) {
722
+ var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
723
+ if (!pressedInInputText) {
724
+ if (this.overlayVisible && this.hasFocusableElements()) {
725
+ utils.DomHandler.focus(event.shiftKey ? this.$refs.lastHiddenFocusableElementOnOverlay : this.$refs.firstHiddenFocusableElementOnOverlay);
726
+ event.preventDefault();
727
+ } else {
728
+ if (this.focusedOptionIndex !== -1) {
729
+ this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
730
+ }
731
+ this.overlayVisible && this.hide(this.filter);
732
+ }
733
+ }
734
+ },
735
+ onShiftKey: function onShiftKey() {
736
+ this.startRangeIndex = this.focusedOptionIndex;
737
+ },
738
+ onOverlayEnter: function onOverlayEnter(el) {
739
+ utils.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
740
+ utils.DomHandler.addStyles(el, {
741
+ position: 'absolute',
742
+ top: '0',
743
+ left: '0'
744
+ });
745
+ this.alignOverlay();
746
+ this.scrollInView();
747
+ this.autoFilterFocus && utils.DomHandler.focus(this.$refs.filterInput);
748
+ },
749
+ onOverlayAfterEnter: function onOverlayAfterEnter() {
750
+ this.bindOutsideClickListener();
751
+ this.bindScrollListener();
752
+ this.bindResizeListener();
753
+ this.$emit('show');
754
+ },
755
+ onOverlayLeave: function onOverlayLeave() {
756
+ this.unbindOutsideClickListener();
757
+ this.unbindScrollListener();
758
+ this.unbindResizeListener();
759
+ this.$emit('hide');
760
+ this.overlay = null;
761
+ },
762
+ onOverlayAfterLeave: function onOverlayAfterLeave(el) {
763
+ utils.ZIndexUtils.clear(el);
764
+ },
765
+ alignOverlay: function alignOverlay() {
766
+ if (this.appendTo === 'self') {
767
+ utils.DomHandler.relativePosition(this.overlay, this.$el);
768
+ } else {
769
+ this.overlay.style.minWidth = utils.DomHandler.getOuterWidth(this.$el) + 'px';
770
+ utils.DomHandler.absolutePosition(this.overlay, this.$el);
771
+ }
772
+ },
773
+ bindOutsideClickListener: function bindOutsideClickListener() {
774
+ var _this6 = this;
775
+ if (!this.outsideClickListener) {
776
+ this.outsideClickListener = function (event) {
777
+ if (_this6.overlayVisible && _this6.isOutsideClicked(event)) {
778
+ _this6.hide();
779
+ }
780
+ };
781
+ document.addEventListener('click', this.outsideClickListener);
782
+ }
783
+ },
784
+ unbindOutsideClickListener: function unbindOutsideClickListener() {
785
+ if (this.outsideClickListener) {
786
+ document.removeEventListener('click', this.outsideClickListener);
787
+ this.outsideClickListener = null;
788
+ }
789
+ },
790
+ bindScrollListener: function bindScrollListener() {
791
+ var _this7 = this;
792
+ if (!this.scrollHandler) {
793
+ this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, function () {
794
+ if (_this7.overlayVisible) {
795
+ _this7.hide();
796
+ }
797
+ });
798
+ }
799
+ this.scrollHandler.bindScrollListener();
800
+ },
801
+ unbindScrollListener: function unbindScrollListener() {
802
+ if (this.scrollHandler) {
803
+ this.scrollHandler.unbindScrollListener();
804
+ }
805
+ },
806
+ bindResizeListener: function bindResizeListener() {
807
+ var _this8 = this;
808
+ if (!this.resizeListener) {
809
+ this.resizeListener = function () {
810
+ if (_this8.overlayVisible && !utils.DomHandler.isTouchDevice()) {
811
+ _this8.hide();
812
+ }
813
+ };
814
+ window.addEventListener('resize', this.resizeListener);
815
+ }
816
+ },
817
+ unbindResizeListener: function unbindResizeListener() {
818
+ if (this.resizeListener) {
819
+ window.removeEventListener('resize', this.resizeListener);
820
+ this.resizeListener = null;
821
+ }
822
+ },
823
+ isOutsideClicked: function isOutsideClicked(event) {
824
+ return !(this.$el.isSameNode(event.target) || this.$el.contains(event.target) || this.overlay && this.overlay.contains(event.target));
825
+ },
826
+ getLabelByValue: function getLabelByValue(value) {
827
+ var _this9 = this;
828
+ var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
829
+ var matchedOption = options.find(function (option) {
830
+ return !_this9.isOptionGroup(option) && utils.ObjectUtils.equals(_this9.getOptionValue(option), value, _this9.equalityKey);
831
+ });
832
+ return matchedOption ? this.getOptionLabel(matchedOption) : null;
833
+ },
834
+ getSelectedItemsLabel: function getSelectedItemsLabel() {
835
+ var pattern = /{(.*?)}/;
836
+ if (pattern.test(this.selectedItemsLabel)) {
837
+ return this.selectedItemsLabel.replace(this.selectedItemsLabel.match(pattern)[0], this.modelValue.length + '');
838
+ }
839
+ return this.selectedItemsLabel;
840
+ },
841
+ onToggleAll: function onToggleAll(event) {
842
+ var _this10 = this;
843
+ if (this.selectAll !== null) {
844
+ this.$emit('selectall-change', {
845
+ originalEvent: event,
846
+ checked: !this.allSelected
847
+ });
848
+ } else {
849
+ var value = this.allSelected ? [] : this.visibleOptions.filter(function (option) {
850
+ return _this10.isValidOption(option);
851
+ }).map(function (option) {
852
+ return _this10.getOptionValue(option);
853
+ });
854
+ this.updateModel(event, value);
855
+ }
856
+ this.headerCheckboxFocused = true;
857
+ },
858
+ removeOption: function removeOption(event, optionValue) {
859
+ var _this11 = this;
860
+ var value = this.modelValue.filter(function (val) {
861
+ return !utils.ObjectUtils.equals(val, optionValue, _this11.equalityKey);
862
+ });
863
+ this.updateModel(event, value);
864
+ },
865
+ clearFilter: function clearFilter() {
866
+ this.filterValue = null;
867
+ },
868
+ hasFocusableElements: function hasFocusableElements() {
869
+ return utils.DomHandler.getFocusableElements(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
870
+ },
871
+ isOptionMatched: function isOptionMatched(option) {
872
+ return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
873
+ },
874
+ isValidOption: function isValidOption(option) {
875
+ return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
876
+ },
877
+ isValidSelectedOption: function isValidSelectedOption(option) {
878
+ return this.isValidOption(option) && this.isSelected(option);
879
+ },
880
+ isSelected: function isSelected(option) {
881
+ var _this12 = this;
882
+ var optionValue = this.getOptionValue(option);
883
+ return (this.modelValue || []).some(function (value) {
884
+ return utils.ObjectUtils.equals(value, optionValue, _this12.equalityKey);
885
+ });
886
+ },
887
+ findFirstOptionIndex: function findFirstOptionIndex() {
888
+ var _this13 = this;
889
+ return this.visibleOptions.findIndex(function (option) {
890
+ return _this13.isValidOption(option);
891
+ });
892
+ },
893
+ findLastOptionIndex: function findLastOptionIndex() {
894
+ var _this14 = this;
895
+ return utils.ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
896
+ return _this14.isValidOption(option);
897
+ });
898
+ },
899
+ findNextOptionIndex: function findNextOptionIndex(index) {
900
+ var _this15 = this;
901
+ var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
902
+ return _this15.isValidOption(option);
903
+ }) : -1;
904
+ return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
905
+ },
906
+ findPrevOptionIndex: function findPrevOptionIndex(index) {
907
+ var _this16 = this;
908
+ var matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
909
+ return _this16.isValidOption(option);
910
+ }) : -1;
911
+ return matchedOptionIndex > -1 ? matchedOptionIndex : index;
912
+ },
913
+ findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
914
+ var _this17 = this;
915
+ return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
916
+ return _this17.isValidSelectedOption(option);
917
+ }) : -1;
918
+ },
919
+ findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
920
+ var _this18 = this;
921
+ return this.hasSelectedOption ? utils.ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
922
+ return _this18.isValidSelectedOption(option);
923
+ }) : -1;
924
+ },
925
+ findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
926
+ var _this19 = this;
927
+ var matchedOptionIndex = this.hasSelectedOption && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
928
+ return _this19.isValidSelectedOption(option);
929
+ }) : -1;
930
+ return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
931
+ },
932
+ findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
933
+ var _this20 = this;
934
+ var matchedOptionIndex = this.hasSelectedOption && index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
935
+ return _this20.isValidSelectedOption(option);
936
+ }) : -1;
937
+ return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
938
+ },
939
+ findNearestSelectedOptionIndex: function findNearestSelectedOptionIndex(index) {
940
+ var firstCheckUp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
941
+ var matchedOptionIndex = -1;
942
+ if (this.hasSelectedOption) {
943
+ if (firstCheckUp) {
944
+ matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
945
+ matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
946
+ } else {
947
+ matchedOptionIndex = this.findNextSelectedOptionIndex(index);
948
+ matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
949
+ }
950
+ }
951
+ return matchedOptionIndex > -1 ? matchedOptionIndex : index;
952
+ },
953
+ findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
954
+ var selectedIndex = this.findFirstSelectedOptionIndex();
955
+ return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
956
+ },
957
+ findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
958
+ var selectedIndex = this.findLastSelectedOptionIndex();
959
+ return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
960
+ },
961
+ searchOptions: function searchOptions(event) {
962
+ var _this21 = this;
963
+ this.searchValue = (this.searchValue || '') + event.key;
964
+ var optionIndex = -1;
965
+ if (this.focusedOptionIndex !== -1) {
966
+ optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function (option) {
967
+ return _this21.isOptionMatched(option);
968
+ });
969
+ optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option) {
970
+ return _this21.isOptionMatched(option);
971
+ }) : optionIndex + this.focusedOptionIndex;
972
+ } else {
973
+ optionIndex = this.visibleOptions.findIndex(function (option) {
974
+ return _this21.isOptionMatched(option);
975
+ });
976
+ }
977
+ if (optionIndex === -1 && this.focusedOptionIndex === -1) {
978
+ optionIndex = this.findFirstFocusedOptionIndex();
979
+ }
980
+ if (optionIndex !== -1) {
981
+ this.changeFocusedOptionIndex(event, optionIndex);
982
+ }
983
+ if (this.searchTimeout) {
984
+ clearTimeout(this.searchTimeout);
985
+ }
986
+ this.searchTimeout = setTimeout(function () {
987
+ _this21.searchValue = '';
988
+ _this21.searchTimeout = null;
989
+ }, 500);
990
+ },
991
+ changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
992
+ if (this.focusedOptionIndex !== index) {
993
+ this.focusedOptionIndex = index;
994
+ this.scrollInView();
995
+ }
996
+ },
997
+ scrollInView: function scrollInView() {
998
+ var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
999
+ var id = index !== -1 ? "".concat(this.id, "_").concat(index) : this.focusedOptionId;
1000
+ var element = utils.DomHandler.findSingle(this.list, "li[id=\"".concat(id, "\"]"));
1001
+ if (element) {
1002
+ element.scrollIntoView && element.scrollIntoView({
1003
+ block: 'nearest',
1004
+ inline: 'nearest'
1005
+ });
1006
+ } else if (!this.virtualScrollerDisabled) {
1007
+ this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
1008
+ }
1009
+ },
1010
+ autoUpdateModel: function autoUpdateModel() {
1011
+ if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
1012
+ this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
1013
+ var value = this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);
1014
+ this.updateModel(null, [value]);
1015
+ }
1016
+ },
1017
+ updateModel: function updateModel(event, value) {
1018
+ this.$emit('update:modelValue', value);
1019
+ this.$emit('change', {
1020
+ originalEvent: event,
1021
+ value: value
1022
+ });
1023
+ },
1024
+ flatOptions: function flatOptions(options) {
1025
+ var _this22 = this;
1026
+ return (options || []).reduce(function (result, option, index) {
1027
+ result.push({
1028
+ optionGroup: option,
1029
+ group: true,
1030
+ index: index
1031
+ });
1032
+ var optionGroupChildren = _this22.getOptionGroupChildren(option);
1033
+ optionGroupChildren && optionGroupChildren.forEach(function (o) {
1034
+ return result.push(o);
1035
+ });
1036
+ return result;
1037
+ }, []);
1038
+ },
1039
+ overlayRef: function overlayRef(el) {
1040
+ this.overlay = el;
1041
+ },
1042
+ listRef: function listRef(el, contentRef) {
1043
+ this.list = el;
1044
+ contentRef && contentRef(el); // For VirtualScroller
1045
+ },
1046
+ virtualScrollerRef: function virtualScrollerRef(el) {
1047
+ this.virtualScroller = el;
1048
+ }
1049
+ },
1050
+ computed: {
1051
+ visibleOptions: function visibleOptions() {
1052
+ var _this23 = this;
1053
+ var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
1054
+ if (this.filterValue) {
1055
+ var filteredOptions = api.FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
1056
+ if (this.optionGroupLabel) {
1057
+ var optionGroups = this.options || [];
1058
+ var filtered = [];
1059
+ optionGroups.forEach(function (group) {
1060
+ var groupChildren = _this23.getOptionGroupChildren(group);
1061
+ var filteredItems = groupChildren.filter(function (item) {
1062
+ return filteredOptions.includes(item);
1063
+ });
1064
+ if (filteredItems.length > 0) filtered.push(_objectSpread$1(_objectSpread$1({}, group), {}, _defineProperty$1({}, typeof _this23.optionGroupChildren === 'string' ? _this23.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
1065
+ });
1066
+ return this.flatOptions(filtered);
1067
+ }
1068
+ return filteredOptions;
1069
+ }
1070
+ return options;
1071
+ },
1072
+ label: function label() {
1073
+ // TODO: Refactor
1074
+ var label;
1075
+ if (this.modelValue && this.modelValue.length) {
1076
+ if (utils.ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue.length > this.maxSelectedLabels) {
1077
+ return this.getSelectedItemsLabel();
1078
+ } else {
1079
+ label = '';
1080
+ for (var i = 0; i < this.modelValue.length; i++) {
1081
+ if (i !== 0) {
1082
+ label += ', ';
1015
1083
  }
1016
-
1017
- return label;
1018
- },
1019
- chipSelectedItems() {
1020
- return utils.ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue && this.modelValue.length > this.maxSelectedLabels ? this.modelValue.slice(0, this.maxSelectedLabels) : this.modelValue;
1021
- },
1022
- allSelected() {
1023
- return this.selectAll !== null ? this.selectAll : utils.ObjectUtils.isNotEmpty(this.visibleOptions) && this.visibleOptions.every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));
1024
- },
1025
- hasSelectedOption() {
1026
- return utils.ObjectUtils.isNotEmpty(this.modelValue);
1027
- },
1028
- equalityKey() {
1029
- return this.optionValue ? null : this.dataKey;
1030
- },
1031
- searchFields() {
1032
- return this.filterFields || [this.optionLabel];
1033
- },
1034
- maxSelectionLimitReached() {
1035
- return this.selectionLimit && this.modelValue && this.modelValue.length === this.selectionLimit;
1036
- },
1037
- filterResultMessageText() {
1038
- return utils.ObjectUtils.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptyFilterMessageText;
1039
- },
1040
- filterMessageText() {
1041
- return this.filterMessage || this.$primevue.config.locale.searchMessage || '';
1042
- },
1043
- emptyFilterMessageText() {
1044
- return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || '';
1045
- },
1046
- emptyMessageText() {
1047
- return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
1048
- },
1049
- selectionMessageText() {
1050
- return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
1051
- },
1052
- emptySelectionMessageText() {
1053
- return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
1054
- },
1055
- selectedMessageText() {
1056
- return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.modelValue.length) : this.emptySelectionMessageText;
1057
- },
1058
- focusedOptionId() {
1059
- return this.focusedOptionIndex !== -1 ? `${this.id}_${this.focusedOptionIndex}` : null;
1060
- },
1061
- ariaSetSize() {
1062
- return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
1063
- },
1064
- toggleAllAriaLabel() {
1065
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria[this.allSelected ? 'selectAll' : 'unselectAll'] : undefined;
1066
- },
1067
- closeAriaLabel() {
1068
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : undefined;
1069
- },
1070
- virtualScrollerDisabled() {
1071
- return !this.virtualScrollerOptions;
1084
+ label += this.getLabelByValue(this.modelValue[i]);
1085
+ }
1072
1086
  }
1087
+ } else {
1088
+ label = this.placeholder;
1089
+ }
1090
+ return label;
1091
+ },
1092
+ chipSelectedItems: function chipSelectedItems() {
1093
+ return utils.ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue && this.modelValue.length > this.maxSelectedLabels ? this.modelValue.slice(0, this.maxSelectedLabels) : this.modelValue;
1094
+ },
1095
+ allSelected: function allSelected() {
1096
+ var _this24 = this;
1097
+ return this.selectAll !== null ? this.selectAll : utils.ObjectUtils.isNotEmpty(this.visibleOptions) && this.visibleOptions.every(function (option) {
1098
+ return _this24.isOptionGroup(option) || _this24.isOptionDisabled(option) || _this24.isSelected(option);
1099
+ });
1100
+ },
1101
+ hasSelectedOption: function hasSelectedOption() {
1102
+ return utils.ObjectUtils.isNotEmpty(this.modelValue);
1103
+ },
1104
+ equalityKey: function equalityKey() {
1105
+ return this.optionValue ? null : this.dataKey;
1106
+ },
1107
+ searchFields: function searchFields() {
1108
+ return this.filterFields || [this.optionLabel];
1109
+ },
1110
+ maxSelectionLimitReached: function maxSelectionLimitReached() {
1111
+ return this.selectionLimit && this.modelValue && this.modelValue.length === this.selectionLimit;
1112
+ },
1113
+ filterResultMessageText: function filterResultMessageText() {
1114
+ return utils.ObjectUtils.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptyFilterMessageText;
1115
+ },
1116
+ filterMessageText: function filterMessageText() {
1117
+ return this.filterMessage || this.$primevue.config.locale.searchMessage || '';
1118
+ },
1119
+ emptyFilterMessageText: function emptyFilterMessageText() {
1120
+ return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || '';
1073
1121
  },
1074
- directives: {
1075
- ripple: Ripple__default["default"]
1076
- },
1077
- components: {
1078
- VirtualScroller: VirtualScroller__default["default"],
1079
- Portal: Portal__default["default"],
1080
- TimesIcon: TimesIcon__default["default"],
1081
- SearchIcon: SearchIcon__default["default"],
1082
- TimesCircleIcon: TimesCircleIcon__default["default"],
1083
- ChevronDownIcon: ChevronDownIcon__default["default"],
1084
- SpinnerIcon: SpinnerIcon__default["default"],
1085
- CheckIcon: CheckIcon__default["default"]
1122
+ emptyMessageText: function emptyMessageText() {
1123
+ return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
1124
+ },
1125
+ selectionMessageText: function selectionMessageText() {
1126
+ return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
1127
+ },
1128
+ emptySelectionMessageText: function emptySelectionMessageText() {
1129
+ return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
1130
+ },
1131
+ selectedMessageText: function selectedMessageText() {
1132
+ return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.modelValue.length) : this.emptySelectionMessageText;
1133
+ },
1134
+ focusedOptionId: function focusedOptionId() {
1135
+ return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
1136
+ },
1137
+ ariaSetSize: function ariaSetSize() {
1138
+ var _this25 = this;
1139
+ return this.visibleOptions.filter(function (option) {
1140
+ return !_this25.isOptionGroup(option);
1141
+ }).length;
1142
+ },
1143
+ toggleAllAriaLabel: function toggleAllAriaLabel() {
1144
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria[this.allSelected ? 'selectAll' : 'unselectAll'] : undefined;
1145
+ },
1146
+ closeAriaLabel: function closeAriaLabel() {
1147
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : undefined;
1148
+ },
1149
+ virtualScrollerDisabled: function virtualScrollerDisabled() {
1150
+ return !this.virtualScrollerOptions;
1086
1151
  }
1152
+ },
1153
+ directives: {
1154
+ ripple: Ripple__default["default"]
1155
+ },
1156
+ components: {
1157
+ VirtualScroller: VirtualScroller__default["default"],
1158
+ Portal: Portal__default["default"],
1159
+ TimesIcon: TimesIcon__default["default"],
1160
+ SearchIcon: SearchIcon__default["default"],
1161
+ TimesCircleIcon: TimesCircleIcon__default["default"],
1162
+ ChevronDownIcon: ChevronDownIcon__default["default"],
1163
+ SpinnerIcon: SpinnerIcon__default["default"],
1164
+ CheckIcon: CheckIcon__default["default"]
1165
+ }
1087
1166
  };
1088
1167
 
1089
- const _hoisted_1 = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
1090
- const _hoisted_2 = ["onClick"];
1091
- const _hoisted_3 = ["checked", "aria-label"];
1092
- const _hoisted_4 = ["value", "placeholder", "aria-owns", "aria-activedescendant"];
1093
- const _hoisted_5 = ["aria-label"];
1094
- const _hoisted_6 = ["id"];
1095
- const _hoisted_7 = ["id"];
1096
- const _hoisted_8 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove"];
1097
-
1168
+ 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); }
1169
+ 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; }
1170
+ 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; }
1171
+ 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; }
1172
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1173
+ 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); }
1174
+ var _hoisted_1 = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
1175
+ var _hoisted_2 = ["onClick"];
1176
+ var _hoisted_3 = ["checked", "aria-label"];
1177
+ var _hoisted_4 = ["value", "placeholder", "aria-owns", "aria-activedescendant"];
1178
+ var _hoisted_5 = ["aria-label"];
1179
+ var _hoisted_6 = ["id"];
1180
+ var _hoisted_7 = ["id"];
1181
+ var _hoisted_8 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focused", "data-p-disabled"];
1098
1182
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1099
- const _component_TimesCircleIcon = vue.resolveComponent("TimesCircleIcon");
1100
- const _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
1101
- const _component_VirtualScroller = vue.resolveComponent("VirtualScroller");
1102
- const _component_Portal = vue.resolveComponent("Portal");
1103
- const _directive_ripple = vue.resolveDirective("ripple");
1104
-
1105
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1183
+ var _component_TimesCircleIcon = vue.resolveComponent("TimesCircleIcon");
1184
+ var _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
1185
+ var _component_VirtualScroller = vue.resolveComponent("VirtualScroller");
1186
+ var _component_Portal = vue.resolveComponent("Portal");
1187
+ var _directive_ripple = vue.resolveDirective("ripple");
1188
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1106
1189
  ref: "container",
1107
- class: $options.containerClass,
1108
- onClick: _cache[15] || (_cache[15] = (...args) => ($options.onContainerClick && $options.onContainerClick(...args)))
1109
- }, _ctx.ptm('root')), [
1110
- vue.createElementVNode("div", vue.mergeProps({ class: "p-hidden-accessible" }, _ctx.ptm('hiddenInputWrapper')), [
1111
- vue.createElementVNode("input", vue.mergeProps({
1112
- ref: "focusInput",
1113
- id: $props.inputId,
1114
- type: "text",
1115
- readonly: "",
1116
- disabled: $props.disabled,
1117
- placeholder: $props.placeholder,
1118
- tabindex: !$props.disabled ? $props.tabindex : -1,
1119
- role: "combobox",
1120
- "aria-label": _ctx.ariaLabel,
1121
- "aria-labelledby": _ctx.ariaLabelledby,
1122
- "aria-haspopup": "listbox",
1123
- "aria-expanded": $data.overlayVisible,
1124
- "aria-controls": $data.id + '_list',
1125
- "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
1126
- onFocus: _cache[0] || (_cache[0] = (...args) => ($options.onFocus && $options.onFocus(...args))),
1127
- onBlur: _cache[1] || (_cache[1] = (...args) => ($options.onBlur && $options.onBlur(...args))),
1128
- onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args)))
1129
- }, { ...$props.inputProps, ..._ctx.ptm('input') }), null, 16, _hoisted_1)
1130
- ], 16),
1131
- vue.createElementVNode("div", vue.mergeProps({ class: "p-multiselect-label-container" }, _ctx.ptm('labelContainer')), [
1132
- vue.createElementVNode("div", vue.mergeProps({ class: $options.labelClass }, _ctx.ptm('label')), [
1133
- vue.renderSlot(_ctx.$slots, "value", {
1134
- value: $props.modelValue,
1135
- placeholder: $props.placeholder
1136
- }, () => [
1137
- ($props.display === 'comma')
1138
- ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
1139
- vue.createTextVNode(vue.toDisplayString($options.label || 'empty'), 1)
1140
- ], 64))
1141
- : ($props.display === 'chip')
1142
- ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
1143
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.chipSelectedItems, (item) => {
1144
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1145
- key: $options.getLabelByValue(item),
1146
- class: "p-multiselect-token"
1147
- }, _ctx.ptm('token')), [
1148
- vue.renderSlot(_ctx.$slots, "chip", { value: item }, () => [
1149
- vue.createElementVNode("span", vue.mergeProps({ class: "p-multiselect-token-label" }, _ctx.ptm('tokenLabel')), vue.toDisplayString($options.getLabelByValue(item)), 17)
1150
- ]),
1151
- (!$props.disabled)
1152
- ? vue.renderSlot(_ctx.$slots, "removetokenicon", {
1153
- key: 0,
1154
- class: "p-multiselect-token-icon",
1155
- onClick: (event) => $options.removeOption(event, item)
1156
- }, () => [
1157
- ($props.removeTokenIcon)
1158
- ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1159
- key: 0,
1160
- class: ['p-multiselect-token-icon', $props.removeTokenIcon],
1161
- onClick: vue.withModifiers($event => ($options.removeOption($event, item)), ["stop"])
1162
- }, _ctx.ptm('removeTokenIcon')), null, 16, _hoisted_2))
1163
- : (vue.openBlock(), vue.createBlock(_component_TimesCircleIcon, vue.mergeProps({
1164
- key: 1,
1165
- class: "p-multiselect-token-icon",
1166
- onClick: vue.withModifiers($event => ($options.removeOption($event, item)), ["stop"])
1167
- }, _ctx.ptm('removeTokenIcon')), null, 16, ["onClick"]))
1168
- ])
1169
- : vue.createCommentVNode("", true)
1170
- ], 16))
1171
- }), 128)),
1172
- (!$props.modelValue || $props.modelValue.length === 0)
1173
- ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
1174
- vue.createTextVNode(vue.toDisplayString($props.placeholder || 'empty'), 1)
1175
- ], 64))
1176
- : vue.createCommentVNode("", true)
1177
- ], 64))
1178
- : vue.createCommentVNode("", true)
1179
- ])
1180
- ], 16)
1181
- ], 16),
1182
- vue.createElementVNode("div", vue.mergeProps({ class: "p-multiselect-trigger" }, _ctx.ptm('trigger')), [
1183
- ($props.loading)
1184
- ? vue.renderSlot(_ctx.$slots, "loadingicon", {
1190
+ "class": _ctx.cx('root'),
1191
+ onClick: _cache[15] || (_cache[15] = function () {
1192
+ return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
1193
+ })
1194
+ }, _ctx.ptm('root'), {
1195
+ "data-pc-name": "multiselect"
1196
+ }), [vue.createElementVNode("div", vue.mergeProps({
1197
+ "class": "p-hidden-accessible"
1198
+ }, _ctx.ptm('hiddenInputWrapper'), {
1199
+ "data-p-hidden-accessible": true
1200
+ }), [vue.createElementVNode("input", vue.mergeProps({
1201
+ ref: "focusInput",
1202
+ id: _ctx.inputId,
1203
+ type: "text",
1204
+ readonly: "",
1205
+ disabled: _ctx.disabled,
1206
+ placeholder: _ctx.placeholder,
1207
+ tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
1208
+ role: "combobox",
1209
+ "aria-label": _ctx.ariaLabel,
1210
+ "aria-labelledby": _ctx.ariaLabelledby,
1211
+ "aria-haspopup": "listbox",
1212
+ "aria-expanded": $data.overlayVisible,
1213
+ "aria-controls": $data.id + '_list',
1214
+ "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
1215
+ onFocus: _cache[0] || (_cache[0] = function () {
1216
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
1217
+ }),
1218
+ onBlur: _cache[1] || (_cache[1] = function () {
1219
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
1220
+ }),
1221
+ onKeydown: _cache[2] || (_cache[2] = function () {
1222
+ return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1223
+ })
1224
+ }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('hiddenInput'))), null, 16, _hoisted_1)], 16), vue.createElementVNode("div", vue.mergeProps({
1225
+ "class": _ctx.cx('labelContainer')
1226
+ }, _ctx.ptm('labelContainer')), [vue.createElementVNode("div", vue.mergeProps({
1227
+ "class": _ctx.cx('label')
1228
+ }, _ctx.ptm('label')), [vue.renderSlot(_ctx.$slots, "value", {
1229
+ value: _ctx.modelValue,
1230
+ placeholder: _ctx.placeholder
1231
+ }, function () {
1232
+ return [_ctx.display === 'comma' ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1233
+ key: 0
1234
+ }, [vue.createTextVNode(vue.toDisplayString($options.label || 'empty'), 1)], 64)) : _ctx.display === 'chip' ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1235
+ key: 1
1236
+ }, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.chipSelectedItems, function (item) {
1237
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1238
+ key: $options.getLabelByValue(item),
1239
+ "class": _ctx.cx('token')
1240
+ }, _ctx.ptm('token')), [vue.renderSlot(_ctx.$slots, "chip", {
1241
+ value: item
1242
+ }, function () {
1243
+ return [vue.createElementVNode("span", vue.mergeProps({
1244
+ "class": _ctx.cx('tokenLabel')
1245
+ }, _ctx.ptm('tokenLabel')), vue.toDisplayString($options.getLabelByValue(item)), 17)];
1246
+ }), !_ctx.disabled ? vue.renderSlot(_ctx.$slots, "removetokenicon", {
1247
+ key: 0,
1248
+ "class": vue.normalizeClass(_ctx.cx('removeTokenIcon')),
1249
+ onClick: function onClick(event) {
1250
+ return $options.removeOption(event, item);
1251
+ }
1252
+ }, function () {
1253
+ return [_ctx.removeTokenIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1254
+ key: 0,
1255
+ "class": [_ctx.cx('removeTokenIcon'), _ctx.removeTokenIcon],
1256
+ onClick: vue.withModifiers(function ($event) {
1257
+ return $options.removeOption($event, item);
1258
+ }, ["stop"])
1259
+ }, _ctx.ptm('removeTokenIcon')), null, 16, _hoisted_2)) : (vue.openBlock(), vue.createBlock(_component_TimesCircleIcon, vue.mergeProps({
1260
+ key: 1,
1261
+ "class": _ctx.cx('removeTokenIcon'),
1262
+ onClick: vue.withModifiers(function ($event) {
1263
+ return $options.removeOption($event, item);
1264
+ }, ["stop"])
1265
+ }, _ctx.ptm('removeTokenIcon')), null, 16, ["class", "onClick"]))];
1266
+ }) : vue.createCommentVNode("", true)], 16);
1267
+ }), 128)), !_ctx.modelValue || _ctx.modelValue.length === 0 ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1268
+ key: 0
1269
+ }, [vue.createTextVNode(vue.toDisplayString(_ctx.placeholder || 'empty'), 1)], 64)) : vue.createCommentVNode("", true)], 64)) : vue.createCommentVNode("", true)];
1270
+ })], 16)], 16), vue.createElementVNode("div", vue.mergeProps({
1271
+ "class": _ctx.cx('trigger')
1272
+ }, _ctx.ptm('trigger')), [_ctx.loading ? vue.renderSlot(_ctx.$slots, "loadingicon", {
1273
+ key: 0,
1274
+ "class": vue.normalizeClass(_ctx.cx('loadingIcon'))
1275
+ }, function () {
1276
+ return [_ctx.loadingIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1277
+ key: 0,
1278
+ "class": [_ctx.cx('loadingIcon'), 'pi-spin', _ctx.loadingIcon],
1279
+ "aria-hidden": "true"
1280
+ }, _ctx.ptm('loadingIcon')), null, 16)) : (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, vue.mergeProps({
1281
+ key: 1,
1282
+ "class": _ctx.cx('loadingIcon'),
1283
+ spin: "",
1284
+ "aria-hidden": "true"
1285
+ }, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
1286
+ }) : vue.renderSlot(_ctx.$slots, "dropdownicon", {
1287
+ key: 1,
1288
+ "class": vue.normalizeClass(_ctx.cx('dropdownIcon'))
1289
+ }, function () {
1290
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), vue.mergeProps({
1291
+ "class": [_ctx.cx('dropdownIcon'), _ctx.dropdownIcon],
1292
+ "aria-hidden": "true"
1293
+ }, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))];
1294
+ })], 16), vue.createVNode(_component_Portal, {
1295
+ appendTo: _ctx.appendTo
1296
+ }, {
1297
+ "default": vue.withCtx(function () {
1298
+ return [vue.createVNode(vue.Transition, {
1299
+ name: "p-connected-overlay",
1300
+ onEnter: $options.onOverlayEnter,
1301
+ onAfterEnter: $options.onOverlayAfterEnter,
1302
+ onLeave: $options.onOverlayLeave,
1303
+ onAfterLeave: $options.onOverlayAfterLeave
1304
+ }, {
1305
+ "default": vue.withCtx(function () {
1306
+ return [$data.overlayVisible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1185
1307
  key: 0,
1186
- class: "p-multiselect-trigger-icon"
1187
- }, () => [
1188
- ($props.loadingIcon)
1189
- ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1190
- key: 0,
1191
- class: ['p-multiselect-trigger-icon pi-spin', $props.loadingIcon],
1192
- "aria-hidden": "true"
1193
- }, _ctx.ptm('triggerIcon')), null, 16))
1194
- : (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, vue.mergeProps({
1195
- key: 1,
1196
- class: "p-multiselect-trigger-icon",
1197
- spin: "",
1198
- "aria-hidden": "true"
1199
- }, _ctx.ptm('triggerIcon')), null, 16))
1200
- ])
1201
- : vue.renderSlot(_ctx.$slots, "dropdownicon", {
1308
+ ref: $options.overlayRef,
1309
+ style: _ctx.panelStyle,
1310
+ "class": [_ctx.cx('panel'), _ctx.panelClass],
1311
+ onClick: _cache[13] || (_cache[13] = function () {
1312
+ return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
1313
+ }),
1314
+ onKeydown: _cache[14] || (_cache[14] = function () {
1315
+ return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1316
+ })
1317
+ }, _objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.ptm('panel'))), [vue.createElementVNode("span", vue.mergeProps({
1318
+ ref: "firstHiddenFocusableElementOnOverlay",
1319
+ role: "presentation",
1320
+ "aria-hidden": "true",
1321
+ "class": "p-hidden-accessible p-hidden-focusable",
1322
+ tabindex: 0,
1323
+ onFocus: _cache[3] || (_cache[3] = function () {
1324
+ return $options.onFirstHiddenFocus && $options.onFirstHiddenFocus.apply($options, arguments);
1325
+ })
1326
+ }, _ctx.ptm('hiddenFirstFocusableEl'), {
1327
+ "data-p-hidden-accessible": true,
1328
+ "data-p-hidden-focusable": true
1329
+ }), null, 16), vue.renderSlot(_ctx.$slots, "header", {
1330
+ value: _ctx.modelValue,
1331
+ options: $options.visibleOptions
1332
+ }), _ctx.showToggleAll && _ctx.selectionLimit == null || _ctx.filter ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1333
+ key: 0,
1334
+ "class": _ctx.cx('header')
1335
+ }, _ctx.ptm('header')), [_ctx.showToggleAll && _ctx.selectionLimit == null ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1336
+ key: 0,
1337
+ "class": _ctx.cx('headerCheckboxContainer'),
1338
+ onClick: _cache[6] || (_cache[6] = function () {
1339
+ return $options.onToggleAll && $options.onToggleAll.apply($options, arguments);
1340
+ })
1341
+ }, _ctx.ptm('headerCheckboxContainer')), [vue.createElementVNode("div", vue.mergeProps({
1342
+ "class": "p-hidden-accessible"
1343
+ }, _ctx.ptm('hiddenInputWrapper'), {
1344
+ "data-p-hidden-accessible": true
1345
+ }), [vue.createElementVNode("input", vue.mergeProps({
1346
+ type: "checkbox",
1347
+ readonly: "",
1348
+ checked: $options.allSelected,
1349
+ "aria-label": $options.toggleAllAriaLabel,
1350
+ onFocus: _cache[4] || (_cache[4] = function () {
1351
+ return $options.onHeaderCheckboxFocus && $options.onHeaderCheckboxFocus.apply($options, arguments);
1352
+ }),
1353
+ onBlur: _cache[5] || (_cache[5] = function () {
1354
+ return $options.onHeaderCheckboxBlur && $options.onHeaderCheckboxBlur.apply($options, arguments);
1355
+ })
1356
+ }, _ctx.ptm('headerCheckbox')), null, 16, _hoisted_3)], 16), vue.createElementVNode("div", vue.mergeProps({
1357
+ "class": _ctx.cx('headerCheckbox')
1358
+ }, $options.getHeaderCheckboxPTOptions('headerCheckbox')), [vue.renderSlot(_ctx.$slots, "headercheckboxicon", {
1359
+ allSelected: $options.allSelected,
1360
+ "class": vue.normalizeClass(_ctx.cx('headerCheckboxIcon'))
1361
+ }, function () {
1362
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.checkboxIcon ? 'span' : 'CheckIcon'), vue.mergeProps({
1363
+ "class": [_ctx.cx('headerCheckboxIcon'), _defineProperty({}, _ctx.checkboxIcon, $options.allSelected)]
1364
+ }, $options.getHeaderCheckboxPTOptions('headerCheckboxIcon')), null, 16, ["class"]))];
1365
+ })], 16)], 16)) : vue.createCommentVNode("", true), _ctx.filter ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1202
1366
  key: 1,
1203
- class: "p-multiselect-trigger-icon"
1204
- }, () => [
1205
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.dropdownIcon ? 'span' : 'ChevronDownIcon'), vue.mergeProps({
1206
- class: ['p-multiselect-trigger-icon', $props.dropdownIcon],
1207
- "aria-hidden": "true"
1208
- }, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))
1209
- ])
1210
- ], 16),
1211
- vue.createVNode(_component_Portal, { appendTo: $props.appendTo }, {
1212
- default: vue.withCtx(() => [
1213
- vue.createVNode(vue.Transition, {
1214
- name: "p-connected-overlay",
1215
- onEnter: $options.onOverlayEnter,
1216
- onAfterEnter: $options.onOverlayAfterEnter,
1217
- onLeave: $options.onOverlayLeave,
1218
- onAfterLeave: $options.onOverlayAfterLeave
1219
- }, {
1220
- default: vue.withCtx(() => [
1221
- ($data.overlayVisible)
1222
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1367
+ "class": _ctx.cx('filterContainer')
1368
+ }, _ctx.ptm('filterContainer')), [vue.createElementVNode("input", vue.mergeProps({
1369
+ ref: "filterInput",
1370
+ type: "text",
1371
+ value: $data.filterValue,
1372
+ onVnodeMounted: _cache[7] || (_cache[7] = function () {
1373
+ return $options.onFilterUpdated && $options.onFilterUpdated.apply($options, arguments);
1374
+ }),
1375
+ "class": _ctx.cx('filterInput'),
1376
+ placeholder: _ctx.filterPlaceholder,
1377
+ role: "searchbox",
1378
+ autocomplete: "off",
1379
+ "aria-owns": $data.id + '_list',
1380
+ "aria-activedescendant": $options.focusedOptionId,
1381
+ onKeydown: _cache[8] || (_cache[8] = function () {
1382
+ return $options.onFilterKeyDown && $options.onFilterKeyDown.apply($options, arguments);
1383
+ }),
1384
+ onBlur: _cache[9] || (_cache[9] = function () {
1385
+ return $options.onFilterBlur && $options.onFilterBlur.apply($options, arguments);
1386
+ }),
1387
+ onInput: _cache[10] || (_cache[10] = function () {
1388
+ return $options.onFilterChange && $options.onFilterChange.apply($options, arguments);
1389
+ })
1390
+ }, _objectSpread(_objectSpread({}, _ctx.filterInputProps), _ctx.ptm('filterInput'))), null, 16, _hoisted_4), vue.renderSlot(_ctx.$slots, "filtericon", {
1391
+ "class": vue.normalizeClass(_ctx.cx('filterIcon'))
1392
+ }, function () {
1393
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.filterIcon ? 'span' : 'SearchIcon'), vue.mergeProps({
1394
+ "class": [_ctx.cx('filterIcon'), _ctx.filterIcon]
1395
+ }, _ctx.ptm('filterIcon')), null, 16, ["class"]))];
1396
+ })], 16)) : vue.createCommentVNode("", true), _ctx.filter ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1397
+ key: 2,
1398
+ role: "status",
1399
+ "aria-live": "polite",
1400
+ "class": "p-hidden-accessible"
1401
+ }, _ctx.ptm('hiddenFilterResult'), {
1402
+ "data-p-hidden-accessible": true
1403
+ }), vue.toDisplayString($options.filterResultMessageText), 17)) : vue.createCommentVNode("", true), vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1404
+ "class": _ctx.cx('closeButton'),
1405
+ "aria-label": $options.closeAriaLabel,
1406
+ onClick: _cache[11] || (_cache[11] = function () {
1407
+ return $options.onCloseClick && $options.onCloseClick.apply($options, arguments);
1408
+ }),
1409
+ type: "button"
1410
+ }, _objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('closeButton'))), [vue.renderSlot(_ctx.$slots, "closeicon", {
1411
+ "class": vue.normalizeClass(_ctx.cx('closeIcon'))
1412
+ }, function () {
1413
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.closeIcon ? 'span' : 'TimesIcon'), vue.mergeProps({
1414
+ "class": [_ctx.cx('closeIcon'), _ctx.closeIcon]
1415
+ }, _ctx.ptm('closeIcon')), null, 16, ["class"]))];
1416
+ })], 16, _hoisted_5)), [[_directive_ripple]])], 16)) : vue.createCommentVNode("", true), vue.createElementVNode("div", vue.mergeProps({
1417
+ "class": _ctx.cx('wrapper'),
1418
+ style: {
1419
+ 'max-height': $options.virtualScrollerDisabled ? _ctx.scrollHeight : ''
1420
+ }
1421
+ }, _ctx.ptm('wrapper')), [vue.createVNode(_component_VirtualScroller, vue.mergeProps({
1422
+ ref: $options.virtualScrollerRef
1423
+ }, _ctx.virtualScrollerOptions, {
1424
+ items: $options.visibleOptions,
1425
+ style: {
1426
+ height: _ctx.scrollHeight
1427
+ },
1428
+ tabindex: -1,
1429
+ disabled: $options.virtualScrollerDisabled,
1430
+ pt: _ctx.ptm('virtualScroller')
1431
+ }), vue.createSlots({
1432
+ content: vue.withCtx(function (_ref2) {
1433
+ var styleClass = _ref2.styleClass,
1434
+ contentRef = _ref2.contentRef,
1435
+ items = _ref2.items,
1436
+ getItemOptions = _ref2.getItemOptions,
1437
+ contentStyle = _ref2.contentStyle,
1438
+ itemSize = _ref2.itemSize;
1439
+ return [vue.createElementVNode("ul", vue.mergeProps({
1440
+ ref: function ref(el) {
1441
+ return $options.listRef(el, contentRef);
1442
+ },
1443
+ id: $data.id + '_list',
1444
+ "class": [_ctx.cx('list'), styleClass],
1445
+ style: contentStyle,
1446
+ role: "listbox",
1447
+ "aria-multiselectable": "true"
1448
+ }, _ctx.ptm('list')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, function (option, i) {
1449
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1450
+ key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
1451
+ }, [$options.isOptionGroup(option) ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1223
1452
  key: 0,
1224
- ref: $options.overlayRef,
1225
- style: $props.panelStyle,
1226
- class: $options.panelStyleClass,
1227
- onClick: _cache[13] || (_cache[13] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
1228
- onKeydown: _cache[14] || (_cache[14] = (...args) => ($options.onOverlayKeyDown && $options.onOverlayKeyDown(...args)))
1229
- }, { ...$props.panelProps, ..._ctx.ptm('panel') }), [
1230
- vue.createElementVNode("span", vue.mergeProps({
1231
- ref: "firstHiddenFocusableElementOnOverlay",
1232
- role: "presentation",
1233
- "aria-hidden": "true",
1234
- class: "p-hidden-accessible p-hidden-focusable",
1235
- tabindex: 0,
1236
- onFocus: _cache[3] || (_cache[3] = (...args) => ($options.onFirstHiddenFocus && $options.onFirstHiddenFocus(...args)))
1237
- }, _ctx.ptm('hiddenFirstFocusableEl')), null, 16),
1238
- vue.renderSlot(_ctx.$slots, "header", {
1239
- value: $props.modelValue,
1240
- options: $options.visibleOptions
1241
- }),
1242
- (($props.showToggleAll && $props.selectionLimit == null) || $props.filter)
1243
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1244
- key: 0,
1245
- class: "p-multiselect-header"
1246
- }, _ctx.ptm('header')), [
1247
- ($props.showToggleAll && $props.selectionLimit == null)
1248
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1249
- key: 0,
1250
- class: $options.headerCheckboxClass,
1251
- onClick: _cache[6] || (_cache[6] = (...args) => ($options.onToggleAll && $options.onToggleAll(...args)))
1252
- }, _ctx.ptm('headerCheckboxContainer')), [
1253
- vue.createElementVNode("div", vue.mergeProps({ class: "p-hidden-accessible" }, _ctx.ptm('hiddenInputWrapper')), [
1254
- vue.createElementVNode("input", vue.mergeProps({
1255
- type: "checkbox",
1256
- readonly: "",
1257
- checked: $options.allSelected,
1258
- "aria-label": $options.toggleAllAriaLabel,
1259
- onFocus: _cache[4] || (_cache[4] = (...args) => ($options.onHeaderCheckboxFocus && $options.onHeaderCheckboxFocus(...args))),
1260
- onBlur: _cache[5] || (_cache[5] = (...args) => ($options.onHeaderCheckboxBlur && $options.onHeaderCheckboxBlur(...args)))
1261
- }, _ctx.ptm('headerCheckbox')), null, 16, _hoisted_3)
1262
- ], 16),
1263
- vue.createElementVNode("div", vue.mergeProps({
1264
- class: ['p-checkbox-box', { 'p-highlight': $options.allSelected, 'p-focus': $data.headerCheckboxFocused }]
1265
- }, $options.getHeaderCheckboxPTOptions('headerCheckbox')), [
1266
- vue.renderSlot(_ctx.$slots, "headercheckboxicon", {
1267
- allSelected: $options.allSelected,
1268
- class: "p-checkbox-icon"
1269
- }, () => [
1270
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.checkboxIcon ? 'span' : 'CheckIcon'), vue.mergeProps({
1271
- class: ['p-checkbox-icon', { [$props.checkboxIcon]: $options.allSelected }]
1272
- }, $options.getHeaderCheckboxPTOptions('headerCheckboxIcon')), null, 16, ["class"]))
1273
- ])
1274
- ], 16)
1275
- ], 16))
1276
- : vue.createCommentVNode("", true),
1277
- ($props.filter)
1278
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1279
- key: 1,
1280
- class: "p-multiselect-filter-container"
1281
- }, _ctx.ptm('filterContainer')), [
1282
- vue.createElementVNode("input", vue.mergeProps({
1283
- ref: "filterInput",
1284
- type: "text",
1285
- value: $data.filterValue,
1286
- onVnodeMounted: _cache[7] || (_cache[7] = (...args) => ($options.onFilterUpdated && $options.onFilterUpdated(...args))),
1287
- class: "p-multiselect-filter p-inputtext p-component",
1288
- placeholder: $props.filterPlaceholder,
1289
- role: "searchbox",
1290
- autocomplete: "off",
1291
- "aria-owns": $data.id + '_list',
1292
- "aria-activedescendant": $options.focusedOptionId,
1293
- onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onFilterKeyDown && $options.onFilterKeyDown(...args))),
1294
- onBlur: _cache[9] || (_cache[9] = (...args) => ($options.onFilterBlur && $options.onFilterBlur(...args))),
1295
- onInput: _cache[10] || (_cache[10] = (...args) => ($options.onFilterChange && $options.onFilterChange(...args)))
1296
- }, { ...$props.filterInputProps, ..._ctx.ptm('filterInput') }), null, 16, _hoisted_4),
1297
- vue.renderSlot(_ctx.$slots, "filtericon", { class: "p-multiselect-filter-icon" }, () => [
1298
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterIcon ? 'span' : 'SearchIcon'), vue.mergeProps({
1299
- class: ['p-multiselect-filter-icon', $props.filterIcon]
1300
- }, _ctx.ptm('filterIcon')), null, 16, ["class"]))
1301
- ])
1302
- ], 16))
1303
- : vue.createCommentVNode("", true),
1304
- ($props.filter)
1305
- ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1306
- key: 2,
1307
- role: "status",
1308
- "aria-live": "polite",
1309
- class: "p-hidden-accessible"
1310
- }, _ctx.ptm('hiddenFilterResult')), vue.toDisplayString($options.filterResultMessageText), 17))
1311
- : vue.createCommentVNode("", true),
1312
- vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1313
- class: "p-multiselect-close p-link",
1314
- "aria-label": $options.closeAriaLabel,
1315
- onClick: _cache[11] || (_cache[11] = (...args) => ($options.onCloseClick && $options.onCloseClick(...args))),
1316
- type: "button"
1317
- }, { ...$props.closeButtonProps, ..._ctx.ptm('closeButton') }), [
1318
- vue.renderSlot(_ctx.$slots, "closeicon", { class: "p-multiselect-close-icon" }, () => [
1319
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.closeIcon ? 'span' : 'TimesIcon'), vue.mergeProps({
1320
- class: ['p-multiselect-close-icon', $props.closeIcon]
1321
- }, _ctx.ptm('closeIcon')), null, 16, ["class"]))
1322
- ])
1323
- ], 16, _hoisted_5)), [
1324
- [_directive_ripple]
1325
- ])
1326
- ], 16))
1327
- : vue.createCommentVNode("", true),
1328
- vue.createElementVNode("div", vue.mergeProps({
1329
- class: "p-multiselect-items-wrapper",
1330
- style: { 'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : '' }
1331
- }, _ctx.ptm('wrapper')), [
1332
- vue.createVNode(_component_VirtualScroller, vue.mergeProps({ ref: $options.virtualScrollerRef }, { ...$props.virtualScrollerOptions, ..._ctx.ptm('virtualScroller') }, {
1333
- items: $options.visibleOptions,
1334
- style: { height: $props.scrollHeight },
1335
- tabindex: -1,
1336
- disabled: $options.virtualScrollerDisabled
1337
- }), vue.createSlots({
1338
- content: vue.withCtx(({ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }) => [
1339
- vue.createElementVNode("ul", vue.mergeProps({
1340
- ref: (el) => $options.listRef(el, contentRef),
1341
- id: $data.id + '_list',
1342
- class: ['p-multiselect-items p-component', styleClass],
1343
- style: contentStyle,
1344
- role: "listbox",
1345
- "aria-multiselectable": "true"
1346
- }, _ctx.ptm('list')), [
1347
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (option, i) => {
1348
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1349
- key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
1350
- }, [
1351
- ($options.isOptionGroup(option))
1352
- ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1353
- key: 0,
1354
- id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1355
- style: { height: itemSize ? itemSize + 'px' : undefined },
1356
- class: "p-multiselect-item-group",
1357
- role: "option"
1358
- }, _ctx.ptm('itemGroup')), [
1359
- vue.renderSlot(_ctx.$slots, "optiongroup", {
1360
- option: option.optionGroup,
1361
- index: $options.getOptionIndex(i, getItemOptions)
1362
- }, () => [
1363
- vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)
1364
- ])
1365
- ], 16, _hoisted_7))
1366
- : vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1367
- key: 1,
1368
- id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1369
- style: { height: itemSize ? itemSize + 'px' : undefined },
1370
- class: ['p-multiselect-item', { 'p-highlight': $options.isSelected(option), 'p-focus': $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions), 'p-disabled': $options.isOptionDisabled(option) }],
1371
- role: "option",
1372
- "aria-label": $options.getOptionLabel(option),
1373
- "aria-selected": $options.isSelected(option),
1374
- "aria-disabled": $options.isOptionDisabled(option),
1375
- "aria-setsize": $options.ariaSetSize,
1376
- "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
1377
- onClick: $event => ($options.onOptionSelect($event, option, $options.getOptionIndex(i, getItemOptions), true)),
1378
- onMousemove: $event => ($options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions)))
1379
- }, $options.getCheckboxPTOptions(option, getItemOptions, i, 'item')), [
1380
- vue.createElementVNode("div", vue.mergeProps({ class: "p-checkbox p-component" }, _ctx.ptm('checkboxContainer')), [
1381
- vue.createElementVNode("div", vue.mergeProps({
1382
- class: ['p-checkbox-box', { 'p-highlight': $options.isSelected(option) }]
1383
- }, $options.getCheckboxPTOptions(option, getItemOptions, i, 'checkbox')), [
1384
- vue.renderSlot(_ctx.$slots, "itemcheckboxicon", {
1385
- selected: $options.isSelected(option),
1386
- class: "p-checkbox-icon"
1387
- }, () => [
1388
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.checkboxIcon ? 'span' : 'CheckIcon'), vue.mergeProps({
1389
- class: ['p-checkbox-icon', { [$props.checkboxIcon]: $options.isSelected(option) }]
1390
- }, $options.getCheckboxPTOptions(option, getItemOptions, i, 'checkboxIcon')), null, 16, ["class"]))
1391
- ])
1392
- ], 16)
1393
- ], 16),
1394
- vue.renderSlot(_ctx.$slots, "option", {
1395
- option: option,
1396
- index: $options.getOptionIndex(i, getItemOptions)
1397
- }, () => [
1398
- vue.createElementVNode("span", vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('option'))), vue.toDisplayString($options.getOptionLabel(option)), 17)
1399
- ])
1400
- ], 16, _hoisted_8)), [
1401
- [_directive_ripple]
1402
- ])
1403
- ], 64))
1404
- }), 128)),
1405
- ($data.filterValue && (!items || (items && items.length === 0)))
1406
- ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1407
- key: 0,
1408
- class: "p-multiselect-empty-message",
1409
- role: "option"
1410
- }, _ctx.ptm('emptyMessage')), [
1411
- vue.renderSlot(_ctx.$slots, "emptyfilter", {}, () => [
1412
- vue.createTextVNode(vue.toDisplayString($options.emptyFilterMessageText), 1)
1413
- ])
1414
- ], 16))
1415
- : (!$props.options || ($props.options && $props.options.length === 0))
1416
- ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1417
- key: 1,
1418
- class: "p-multiselect-empty-message",
1419
- role: "option"
1420
- }, _ctx.ptm('emptyMessage')), [
1421
- vue.renderSlot(_ctx.$slots, "empty", {}, () => [
1422
- vue.createTextVNode(vue.toDisplayString($options.emptyMessageText), 1)
1423
- ])
1424
- ], 16))
1425
- : vue.createCommentVNode("", true)
1426
- ], 16, _hoisted_6)
1427
- ]),
1428
- _: 2
1429
- }, [
1430
- (_ctx.$slots.loader)
1431
- ? {
1432
- name: "loader",
1433
- fn: vue.withCtx(({ options }) => [
1434
- vue.renderSlot(_ctx.$slots, "loader", { options: options })
1435
- ]),
1436
- key: "0"
1437
- }
1438
- : undefined
1439
- ]), 1040, ["items", "style", "disabled"])
1440
- ], 16),
1441
- vue.renderSlot(_ctx.$slots, "footer", {
1442
- value: $props.modelValue,
1443
- options: $options.visibleOptions
1453
+ id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1454
+ style: {
1455
+ height: itemSize ? itemSize + 'px' : undefined
1456
+ },
1457
+ "class": _ctx.cx('itemGroup'),
1458
+ role: "option"
1459
+ }, _ctx.ptm('itemGroup')), [vue.renderSlot(_ctx.$slots, "optiongroup", {
1460
+ option: option.optionGroup,
1461
+ index: $options.getOptionIndex(i, getItemOptions)
1462
+ }, function () {
1463
+ return [vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
1464
+ })], 16, _hoisted_7)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1465
+ key: 1,
1466
+ id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1467
+ style: {
1468
+ height: itemSize ? itemSize + 'px' : undefined
1469
+ },
1470
+ "class": _ctx.cx('item', {
1471
+ option: option,
1472
+ index: i,
1473
+ getItemOptions: getItemOptions
1444
1474
  }),
1445
- (!$props.options || ($props.options && $props.options.length === 0))
1446
- ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1447
- key: 1,
1448
- role: "status",
1449
- "aria-live": "polite",
1450
- class: "p-hidden-accessible"
1451
- }, _ctx.ptm('emptyMessage')), vue.toDisplayString($options.emptyMessageText), 17))
1452
- : vue.createCommentVNode("", true),
1453
- vue.createElementVNode("span", vue.mergeProps({
1454
- role: "status",
1455
- "aria-live": "polite",
1456
- class: "p-hidden-accessible"
1457
- }, _ctx.ptm('hiddenSelectedMessage')), vue.toDisplayString($options.selectedMessageText), 17),
1458
- vue.createElementVNode("span", vue.mergeProps({
1459
- ref: "lastHiddenFocusableElementOnOverlay",
1460
- role: "presentation",
1461
- "aria-hidden": "true",
1462
- class: "p-hidden-accessible p-hidden-focusable",
1463
- tabindex: 0,
1464
- onFocus: _cache[12] || (_cache[12] = (...args) => ($options.onLastHiddenFocus && $options.onLastHiddenFocus(...args)))
1465
- }, _ctx.ptm('hiddenLastFocusableEl')), null, 16)
1466
- ], 16))
1467
- : vue.createCommentVNode("", true)
1468
- ]),
1469
- _: 3
1470
- }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
1471
- ]),
1472
- _: 3
1473
- }, 8, ["appendTo"])
1474
- ], 16))
1475
- }
1476
-
1477
- function styleInject(css, ref) {
1478
- if ( ref === void 0 ) ref = {};
1479
- var insertAt = ref.insertAt;
1480
-
1481
- if (!css || typeof document === 'undefined') { return; }
1482
-
1483
- var head = document.head || document.getElementsByTagName('head')[0];
1484
- var style = document.createElement('style');
1485
- style.type = 'text/css';
1486
-
1487
- if (insertAt === 'top') {
1488
- if (head.firstChild) {
1489
- head.insertBefore(style, head.firstChild);
1490
- } else {
1491
- head.appendChild(style);
1492
- }
1493
- } else {
1494
- head.appendChild(style);
1495
- }
1496
-
1497
- if (style.styleSheet) {
1498
- style.styleSheet.cssText = css;
1499
- } else {
1500
- style.appendChild(document.createTextNode(css));
1501
- }
1475
+ role: "option",
1476
+ "aria-label": $options.getOptionLabel(option),
1477
+ "aria-selected": $options.isSelected(option),
1478
+ "aria-disabled": $options.isOptionDisabled(option),
1479
+ "aria-setsize": $options.ariaSetSize,
1480
+ "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
1481
+ onClick: function onClick($event) {
1482
+ return $options.onOptionSelect($event, option, $options.getOptionIndex(i, getItemOptions), true);
1483
+ },
1484
+ onMousemove: function onMousemove($event) {
1485
+ return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
1486
+ }
1487
+ }, $options.getCheckboxPTOptions(option, getItemOptions, i, 'item'), {
1488
+ "data-p-highlight": $options.isSelected(option),
1489
+ "data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
1490
+ "data-p-disabled": $options.isOptionDisabled(option)
1491
+ }), [vue.createElementVNode("div", vue.mergeProps({
1492
+ "class": _ctx.cx('checkboxContainer')
1493
+ }, _ctx.ptm('checkboxContainer')), [vue.createElementVNode("div", vue.mergeProps({
1494
+ "class": _ctx.cx('checkbox', {
1495
+ option: option
1496
+ })
1497
+ }, $options.getCheckboxPTOptions(option, getItemOptions, i, 'checkbox')), [vue.renderSlot(_ctx.$slots, "itemcheckboxicon", {
1498
+ selected: $options.isSelected(option),
1499
+ "class": vue.normalizeClass(_ctx.cx('checkboxIcon'))
1500
+ }, function () {
1501
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.checkboxIcon ? 'span' : 'CheckIcon'), vue.mergeProps({
1502
+ "class": [_ctx.cx('checkboxIcon'), _defineProperty({}, _ctx.checkboxIcon, $options.isSelected(option))]
1503
+ }, $options.getCheckboxPTOptions(option, getItemOptions, i, 'checkboxIcon')), null, 16, ["class"]))];
1504
+ })], 16)], 16), vue.renderSlot(_ctx.$slots, "option", {
1505
+ option: option,
1506
+ index: $options.getOptionIndex(i, getItemOptions)
1507
+ }, function () {
1508
+ return [vue.createElementVNode("span", vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('option'))), vue.toDisplayString($options.getOptionLabel(option)), 17)];
1509
+ })], 16, _hoisted_8)), [[_directive_ripple]])], 64);
1510
+ }), 128)), $data.filterValue && (!items || items && items.length === 0) ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1511
+ key: 0,
1512
+ "class": _ctx.cx('emptyMessage'),
1513
+ role: "option"
1514
+ }, _ctx.ptm('emptyMessage')), [vue.renderSlot(_ctx.$slots, "emptyfilter", {}, function () {
1515
+ return [vue.createTextVNode(vue.toDisplayString($options.emptyFilterMessageText), 1)];
1516
+ })], 16)) : !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1517
+ key: 1,
1518
+ "class": _ctx.cx('emptyMessage'),
1519
+ role: "option"
1520
+ }, _ctx.ptm('emptyMessage')), [vue.renderSlot(_ctx.$slots, "empty", {}, function () {
1521
+ return [vue.createTextVNode(vue.toDisplayString($options.emptyMessageText), 1)];
1522
+ })], 16)) : vue.createCommentVNode("", true)], 16, _hoisted_6)];
1523
+ }),
1524
+ _: 2
1525
+ }, [_ctx.$slots.loader ? {
1526
+ name: "loader",
1527
+ fn: vue.withCtx(function (_ref4) {
1528
+ var options = _ref4.options;
1529
+ return [vue.renderSlot(_ctx.$slots, "loader", {
1530
+ options: options
1531
+ })];
1532
+ }),
1533
+ key: "0"
1534
+ } : undefined]), 1040, ["items", "style", "disabled", "pt"])], 16), vue.renderSlot(_ctx.$slots, "footer", {
1535
+ value: _ctx.modelValue,
1536
+ options: $options.visibleOptions
1537
+ }), !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1538
+ key: 1,
1539
+ role: "status",
1540
+ "aria-live": "polite",
1541
+ "class": "p-hidden-accessible"
1542
+ }, _ctx.ptm('hiddenEmptyMessage'), {
1543
+ "data-p-hidden-accessible": true
1544
+ }), vue.toDisplayString($options.emptyMessageText), 17)) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
1545
+ role: "status",
1546
+ "aria-live": "polite",
1547
+ "class": "p-hidden-accessible"
1548
+ }, _ctx.ptm('hiddenSelectedMessage'), {
1549
+ "data-p-hidden-accessible": true
1550
+ }), vue.toDisplayString($options.selectedMessageText), 17), vue.createElementVNode("span", vue.mergeProps({
1551
+ ref: "lastHiddenFocusableElementOnOverlay",
1552
+ role: "presentation",
1553
+ "aria-hidden": "true",
1554
+ "class": "p-hidden-accessible p-hidden-focusable",
1555
+ tabindex: 0,
1556
+ onFocus: _cache[12] || (_cache[12] = function () {
1557
+ return $options.onLastHiddenFocus && $options.onLastHiddenFocus.apply($options, arguments);
1558
+ })
1559
+ }, _ctx.ptm('hiddenLastFocusableEl'), {
1560
+ "data-p-hidden-accessible": true,
1561
+ "data-p-hidden-focusable": true
1562
+ }), null, 16)], 16)) : vue.createCommentVNode("", true)];
1563
+ }),
1564
+ _: 3
1565
+ }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1566
+ }),
1567
+ _: 3
1568
+ }, 8, ["appendTo"])], 16);
1502
1569
  }
1503
1570
 
1504
- var css_248z = "\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n}\n.p-multiselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-multiselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n.p-multiselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-multiselect-item {\n cursor: pointer;\n display: flex;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-multiselect-item-group {\n cursor: auto;\n}\n.p-multiselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.p-multiselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n}\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n.p-multiselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n.p-fluid .p-multiselect {\n display: flex;\n}\n";
1505
- styleInject(css_248z);
1506
-
1507
1571
  script.render = render;
1508
1572
 
1509
1573
  module.exports = script;