primevue 3.29.2 → 3.30.0

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