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,10 +1,9 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.autocomplete = (function (BaseComponent, Button, ChevronDownIcon, SpinnerIcon, TimesCircleIcon, OverlayEventBus, Portal, Ripple, utils, VirtualScroller, vue) {
2
+ this.primevue.autocomplete = (function (Button, ChevronDownIcon, SpinnerIcon, TimesCircleIcon, OverlayEventBus, Portal, Ripple, utils, VirtualScroller, BaseComponent, usestyle, vue) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
6
 
7
- var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
8
7
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
9
8
  var ChevronDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronDownIcon);
10
9
  var SpinnerIcon__default = /*#__PURE__*/_interopDefaultLegacy(SpinnerIcon);
@@ -13,1270 +12,1323 @@ this.primevue.autocomplete = (function (BaseComponent, Button, ChevronDownIcon,
13
12
  var Portal__default = /*#__PURE__*/_interopDefaultLegacy(Portal);
14
13
  var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
15
14
  var VirtualScroller__default = /*#__PURE__*/_interopDefaultLegacy(VirtualScroller);
15
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
16
+
17
+ var styles = "\n.p-autocomplete {\n display: inline-flex;\n}\n\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-autocomplete-dd .p-autocomplete-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n\n.p-autocomplete-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n\n.p-autocomplete-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n}\n\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n\n.p-fluid .p-autocomplete {\n display: flex;\n}\n\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n";
18
+ var inlineStyles = {
19
+ root: {
20
+ position: 'relative'
21
+ }
22
+ };
23
+ var classes = {
24
+ root: function root(_ref) {
25
+ var instance = _ref.instance,
26
+ props = _ref.props;
27
+ return ['p-autocomplete p-component p-inputwrapper', {
28
+ 'p-disabled': props.disabled,
29
+ 'p-focus': instance.focused,
30
+ 'p-autocomplete-dd': props.dropdown,
31
+ 'p-autocomplete-multiple': props.multiple,
32
+ 'p-inputwrapper-filled': props.modelValue || utils.ObjectUtils.isNotEmpty(instance.inputValue),
33
+ 'p-inputwrapper-focus': instance.focused,
34
+ 'p-overlay-open': instance.overlayVisible
35
+ }];
36
+ },
37
+ input: function input(_ref2) {
38
+ var props = _ref2.props;
39
+ return ['p-autocomplete-input p-inputtext p-component', {
40
+ 'p-autocomplete-dd-input': props.dropdown
41
+ }];
42
+ },
43
+ container: 'p-autocomplete-multiple-container p-component p-inputtext',
44
+ token: function token(_ref3) {
45
+ var instance = _ref3.instance,
46
+ i = _ref3.i;
47
+ return ['p-autocomplete-token', {
48
+ 'p-focus': instance.focusedMultipleOptionIndex === i
49
+ }];
50
+ },
51
+ tokenLabel: 'p-autocomplete-token-label',
52
+ removeTokenIcon: 'p-autocomplete-token-icon',
53
+ inputToken: 'p-autocomplete-input-token',
54
+ loadingIcon: 'p-autocomplete-loader',
55
+ dropdownButton: 'p-autocomplete-dropdown',
56
+ panel: function panel(_ref4) {
57
+ var instance = _ref4.instance;
58
+ return ['p-autocomplete-panel p-component', {
59
+ 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
60
+ 'p-ripple-disabled': instance.$primevue.config.ripple === false
61
+ }];
62
+ },
63
+ list: 'p-autocomplete-items',
64
+ itemGroup: 'p-autocomplete-item-group',
65
+ item: function item(_ref5) {
66
+ var instance = _ref5.instance,
67
+ option = _ref5.option,
68
+ i = _ref5.i,
69
+ getItemOptions = _ref5.getItemOptions;
70
+ return ['p-autocomplete-item', {
71
+ 'p-highlight': instance.isSelected(option),
72
+ 'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(i, getItemOptions),
73
+ 'p-disabled': instance.isOptionDisabled(option)
74
+ }];
75
+ },
76
+ emptyMessage: 'p-autocomplete-empty-message'
77
+ };
78
+ var _useStyle = usestyle.useStyle(styles, {
79
+ name: 'autocomplete',
80
+ manual: true
81
+ }),
82
+ loadStyle = _useStyle.load;
83
+ var script$1 = {
84
+ name: 'BaseAutoComplete',
85
+ "extends": BaseComponent__default["default"],
86
+ props: {
87
+ modelValue: null,
88
+ suggestions: {
89
+ type: Array,
90
+ "default": null
91
+ },
92
+ field: {
93
+ // TODO: Deprecated since v3.16.0
94
+ type: [String, Function],
95
+ "default": null
96
+ },
97
+ optionLabel: null,
98
+ optionDisabled: null,
99
+ optionGroupLabel: null,
100
+ optionGroupChildren: null,
101
+ scrollHeight: {
102
+ type: String,
103
+ "default": '200px'
104
+ },
105
+ dropdown: {
106
+ type: Boolean,
107
+ "default": false
108
+ },
109
+ dropdownMode: {
110
+ type: String,
111
+ "default": 'blank'
112
+ },
113
+ autoHighlight: {
114
+ // TODO: Deprecated since v3.16.0. Use selectOnFocus property instead.
115
+ type: Boolean,
116
+ "default": false
117
+ },
118
+ multiple: {
119
+ type: Boolean,
120
+ "default": false
121
+ },
122
+ disabled: {
123
+ type: Boolean,
124
+ "default": false
125
+ },
126
+ placeholder: {
127
+ type: String,
128
+ "default": null
129
+ },
130
+ dataKey: {
131
+ type: String,
132
+ "default": null
133
+ },
134
+ minLength: {
135
+ type: Number,
136
+ "default": 1
137
+ },
138
+ delay: {
139
+ type: Number,
140
+ "default": 300
141
+ },
142
+ appendTo: {
143
+ type: String,
144
+ "default": 'body'
145
+ },
146
+ forceSelection: {
147
+ type: Boolean,
148
+ "default": false
149
+ },
150
+ completeOnFocus: {
151
+ type: Boolean,
152
+ "default": false
153
+ },
154
+ inputId: {
155
+ type: String,
156
+ "default": null
157
+ },
158
+ inputStyle: {
159
+ type: Object,
160
+ "default": null
161
+ },
162
+ inputClass: {
163
+ type: [String, Object],
164
+ "default": null
165
+ },
166
+ inputProps: {
167
+ type: null,
168
+ "default": null
169
+ },
170
+ panelStyle: {
171
+ type: Object,
172
+ "default": null
173
+ },
174
+ panelClass: {
175
+ type: [String, Object],
176
+ "default": null
177
+ },
178
+ panelProps: {
179
+ type: null,
180
+ "default": null
181
+ },
182
+ dropdownIcon: {
183
+ type: String,
184
+ "default": undefined
185
+ },
186
+ dropdownClass: {
187
+ type: [String, Object],
188
+ "default": null
189
+ },
190
+ loadingIcon: {
191
+ type: String,
192
+ "default": undefined
193
+ },
194
+ removeTokenIcon: {
195
+ type: String,
196
+ "default": undefined
197
+ },
198
+ virtualScrollerOptions: {
199
+ type: Object,
200
+ "default": null
201
+ },
202
+ autoOptionFocus: {
203
+ type: Boolean,
204
+ "default": true
205
+ },
206
+ selectOnFocus: {
207
+ type: Boolean,
208
+ "default": false
209
+ },
210
+ searchLocale: {
211
+ type: String,
212
+ "default": undefined
213
+ },
214
+ searchMessage: {
215
+ type: String,
216
+ "default": null
217
+ },
218
+ selectionMessage: {
219
+ type: String,
220
+ "default": null
221
+ },
222
+ emptySelectionMessage: {
223
+ type: String,
224
+ "default": null
225
+ },
226
+ emptySearchMessage: {
227
+ type: String,
228
+ "default": null
229
+ },
230
+ tabindex: {
231
+ type: Number,
232
+ "default": 0
233
+ },
234
+ 'aria-label': {
235
+ type: String,
236
+ "default": null
237
+ },
238
+ 'aria-labelledby': {
239
+ type: String,
240
+ "default": null
241
+ }
242
+ },
243
+ css: {
244
+ classes: classes,
245
+ inlineStyles: inlineStyles,
246
+ loadStyle: loadStyle
247
+ },
248
+ provide: function provide() {
249
+ return {
250
+ $parentInstance: this
251
+ };
252
+ }
253
+ };
16
254
 
255
+ 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); }
256
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
257
+ 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."); }
258
+ 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); }
259
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
260
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
261
+ 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; }
17
262
  var script = {
18
- name: 'AutoComplete',
19
- extends: BaseComponent__default["default"],
20
- emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
21
- props: {
22
- modelValue: null,
23
- suggestions: {
24
- type: Array,
25
- default: null
26
- },
27
- field: {
28
- // TODO: Deprecated since v3.16.0
29
- type: [String, Function],
30
- default: null
31
- },
32
- optionLabel: null,
33
- optionDisabled: null,
34
- optionGroupLabel: null,
35
- optionGroupChildren: null,
36
- scrollHeight: {
37
- type: String,
38
- default: '200px'
39
- },
40
- dropdown: {
41
- type: Boolean,
42
- default: false
43
- },
44
- dropdownMode: {
45
- type: String,
46
- default: 'blank'
47
- },
48
- autoHighlight: {
49
- // TODO: Deprecated since v3.16.0. Use selectOnFocus property instead.
50
- type: Boolean,
51
- default: false
52
- },
53
- multiple: {
54
- type: Boolean,
55
- default: false
56
- },
57
- disabled: {
58
- type: Boolean,
59
- default: false
60
- },
61
- placeholder: {
62
- type: String,
63
- default: null
64
- },
65
- dataKey: {
66
- type: String,
67
- default: null
68
- },
69
- minLength: {
70
- type: Number,
71
- default: 1
72
- },
73
- delay: {
74
- type: Number,
75
- default: 300
76
- },
77
- appendTo: {
78
- type: String,
79
- default: 'body'
80
- },
81
- forceSelection: {
82
- type: Boolean,
83
- default: false
84
- },
85
- completeOnFocus: {
86
- type: Boolean,
87
- default: false
88
- },
89
- inputId: {
90
- type: String,
91
- default: null
92
- },
93
- inputStyle: {
94
- type: Object,
95
- default: null
96
- },
97
- inputClass: {
98
- type: [String, Object],
99
- default: null
100
- },
101
- inputProps: {
102
- type: null,
103
- default: null
104
- },
105
- panelStyle: {
106
- type: Object,
107
- default: null
108
- },
109
- panelClass: {
110
- type: [String, Object],
111
- default: null
112
- },
113
- panelProps: {
114
- type: null,
115
- default: null
116
- },
117
- dropdownIcon: {
118
- type: String,
119
- default: undefined
120
- },
121
- dropdownClass: {
122
- type: [String, Object],
123
- default: null
124
- },
125
- loadingIcon: {
126
- type: String,
127
- default: undefined
128
- },
129
- removeTokenIcon: {
130
- type: String,
131
- default: undefined
132
- },
133
- virtualScrollerOptions: {
134
- type: Object,
135
- default: null
136
- },
137
- autoOptionFocus: {
138
- type: Boolean,
139
- default: true
140
- },
141
- selectOnFocus: {
142
- type: Boolean,
143
- default: false
144
- },
145
- searchLocale: {
146
- type: String,
147
- default: undefined
148
- },
149
- searchMessage: {
150
- type: String,
151
- default: null
152
- },
153
- selectionMessage: {
154
- type: String,
155
- default: null
156
- },
157
- emptySelectionMessage: {
158
- type: String,
159
- default: null
160
- },
161
- emptySearchMessage: {
162
- type: String,
163
- default: null
164
- },
165
- tabindex: {
166
- type: Number,
167
- default: 0
168
- },
169
- 'aria-label': {
170
- type: String,
171
- default: null
172
- },
173
- 'aria-labelledby': {
174
- type: String,
175
- default: null
263
+ name: 'AutoComplete',
264
+ "extends": script$1,
265
+ emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
266
+ outsideClickListener: null,
267
+ resizeListener: null,
268
+ scrollHandler: null,
269
+ overlay: null,
270
+ virtualScroller: null,
271
+ searchTimeout: null,
272
+ focusOnHover: false,
273
+ dirty: false,
274
+ data: function data() {
275
+ return {
276
+ id: this.$attrs.id,
277
+ focused: false,
278
+ focusedOptionIndex: -1,
279
+ focusedMultipleOptionIndex: -1,
280
+ overlayVisible: false,
281
+ searching: false
282
+ };
283
+ },
284
+ watch: {
285
+ '$attrs.id': function $attrsId(newValue) {
286
+ this.id = newValue || utils.UniqueComponentId();
287
+ },
288
+ suggestions: function suggestions() {
289
+ if (this.searching) {
290
+ utils.ObjectUtils.isNotEmpty(this.suggestions) ? this.show() : !!this.$slots.empty ? this.show() : this.hide();
291
+ this.focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
292
+ this.searching = false;
293
+ }
294
+ this.autoUpdateModel();
295
+ }
296
+ },
297
+ mounted: function mounted() {
298
+ this.id = this.id || utils.UniqueComponentId();
299
+ this.autoUpdateModel();
300
+ },
301
+ updated: function updated() {
302
+ if (this.overlayVisible) {
303
+ this.alignOverlay();
304
+ }
305
+ },
306
+ beforeUnmount: function beforeUnmount() {
307
+ this.unbindOutsideClickListener();
308
+ this.unbindResizeListener();
309
+ if (this.scrollHandler) {
310
+ this.scrollHandler.destroy();
311
+ this.scrollHandler = null;
312
+ }
313
+ if (this.overlay) {
314
+ utils.ZIndexUtils.clear(this.overlay);
315
+ this.overlay = null;
316
+ }
317
+ },
318
+ methods: {
319
+ getOptionIndex: function getOptionIndex(index, fn) {
320
+ return this.virtualScrollerDisabled ? index : fn && fn(index)['index'];
321
+ },
322
+ getOptionLabel: function getOptionLabel(option) {
323
+ return this.field || this.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.field || this.optionLabel) : option;
324
+ },
325
+ getOptionValue: function getOptionValue(option) {
326
+ return option; // TODO: The 'optionValue' properties can be added.
327
+ },
328
+ getOptionRenderKey: function getOptionRenderKey(option, index) {
329
+ return (this.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option)) + '_' + index;
330
+ },
331
+ getPTOptions: function getPTOptions(option, itemOptions, index, key) {
332
+ return this.ptm(key, {
333
+ context: {
334
+ selected: this.isSelected(option),
335
+ focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
336
+ disabled: this.isOptionDisabled(option)
176
337
  }
338
+ });
177
339
  },
178
- outsideClickListener: null,
179
- resizeListener: null,
180
- scrollHandler: null,
181
- overlay: null,
182
- virtualScroller: null,
183
- searchTimeout: null,
184
- focusOnHover: false,
185
- dirty: false,
186
- data() {
187
- return {
188
- id: this.$attrs.id,
189
- focused: false,
190
- focusedOptionIndex: -1,
191
- focusedMultipleOptionIndex: -1,
192
- overlayVisible: false,
193
- searching: false
194
- };
340
+ isOptionDisabled: function isOptionDisabled(option) {
341
+ return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
195
342
  },
196
- watch: {
197
- '$attrs.id': function (newValue) {
198
- this.id = newValue || utils.UniqueComponentId();
199
- },
200
- suggestions() {
201
- if (this.searching) {
202
- utils.ObjectUtils.isNotEmpty(this.suggestions) ? this.show() : !!this.$slots.empty ? this.show() : this.hide();
203
- this.focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
204
- this.searching = false;
205
- }
206
-
207
- this.autoUpdateModel();
343
+ isOptionGroup: function isOptionGroup(option) {
344
+ return this.optionGroupLabel && option.optionGroup && option.group;
345
+ },
346
+ getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
347
+ return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
348
+ },
349
+ getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {
350
+ return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
351
+ },
352
+ getAriaPosInset: function getAriaPosInset(index) {
353
+ var _this = this;
354
+ return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter(function (option) {
355
+ return _this.isOptionGroup(option);
356
+ }).length : index) + 1;
357
+ },
358
+ show: function show(isFocus) {
359
+ this.$emit('before-show');
360
+ this.dirty = true;
361
+ this.overlayVisible = true;
362
+ this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
363
+ isFocus && utils.DomHandler.focus(this.$refs.focusInput);
364
+ },
365
+ hide: function hide(isFocus) {
366
+ var _this2 = this;
367
+ var _hide = function _hide() {
368
+ _this2.$emit('before-hide');
369
+ _this2.dirty = isFocus;
370
+ _this2.overlayVisible = false;
371
+ _this2.focusedOptionIndex = -1;
372
+ isFocus && utils.DomHandler.focus(_this2.$refs.focusInput);
373
+ };
374
+ setTimeout(function () {
375
+ _hide();
376
+ }, 0); // For ScreenReaders
377
+ },
378
+ onFocus: function onFocus(event) {
379
+ if (this.disabled) {
380
+ // For ScreenReaders
381
+ return;
382
+ }
383
+ if (!this.dirty && this.completeOnFocus) {
384
+ this.search(event, event.target.value, 'focus');
385
+ }
386
+ this.dirty = true;
387
+ this.focused = true;
388
+ this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
389
+ this.overlayVisible && this.scrollInView(this.focusedOptionIndex);
390
+ this.$emit('focus', event);
391
+ },
392
+ onBlur: function onBlur(event) {
393
+ this.dirty = false;
394
+ this.focused = false;
395
+ this.focusedOptionIndex = -1;
396
+ this.$emit('blur', event);
397
+ },
398
+ onKeyDown: function onKeyDown(event) {
399
+ if (this.disabled) {
400
+ event.preventDefault();
401
+ return;
402
+ }
403
+ switch (event.code) {
404
+ case 'ArrowDown':
405
+ this.onArrowDownKey(event);
406
+ break;
407
+ case 'ArrowUp':
408
+ this.onArrowUpKey(event);
409
+ break;
410
+ case 'ArrowLeft':
411
+ this.onArrowLeftKey(event);
412
+ break;
413
+ case 'ArrowRight':
414
+ this.onArrowRightKey(event);
415
+ break;
416
+ case 'Home':
417
+ this.onHomeKey(event);
418
+ break;
419
+ case 'End':
420
+ this.onEndKey(event);
421
+ break;
422
+ case 'PageDown':
423
+ this.onPageDownKey(event);
424
+ break;
425
+ case 'PageUp':
426
+ this.onPageUpKey(event);
427
+ break;
428
+ case 'Enter':
429
+ case 'NumpadEnter':
430
+ this.onEnterKey(event);
431
+ break;
432
+ case 'Escape':
433
+ this.onEscapeKey(event);
434
+ break;
435
+ case 'Tab':
436
+ this.onTabKey(event);
437
+ break;
438
+ case 'Backspace':
439
+ this.onBackspaceKey(event);
440
+ break;
441
+ }
442
+ },
443
+ onInput: function onInput(event) {
444
+ var _this3 = this;
445
+ if (this.searchTimeout) {
446
+ clearTimeout(this.searchTimeout);
447
+ }
448
+ var query = event.target.value;
449
+ if (!this.multiple) {
450
+ this.updateModel(event, query);
451
+ }
452
+ if (query.length === 0) {
453
+ this.hide();
454
+ this.$emit('clear');
455
+ } else {
456
+ if (query.length >= this.minLength) {
457
+ this.focusedOptionIndex = -1;
458
+ this.searchTimeout = setTimeout(function () {
459
+ _this3.search(event, query, 'input');
460
+ }, this.delay);
461
+ } else {
462
+ this.hide();
208
463
  }
464
+ }
209
465
  },
210
- mounted() {
211
- this.id = this.id || utils.UniqueComponentId();
212
-
213
- this.autoUpdateModel();
466
+ onChange: function onChange(event) {
467
+ var _this4 = this;
468
+ if (this.forceSelection) {
469
+ var valid = false;
470
+ if (this.visibleOptions) {
471
+ var matchedValue = this.visibleOptions.find(function (option) {
472
+ return _this4.isOptionMatched(option, _this4.$refs.focusInput.value || '');
473
+ });
474
+ if (matchedValue !== undefined) {
475
+ valid = true;
476
+ !this.isSelected(matchedValue) && this.onOptionSelect(event, matchedValue);
477
+ }
478
+ }
479
+ if (!valid) {
480
+ this.$refs.focusInput.value = '';
481
+ this.$emit('clear');
482
+ !this.multiple && this.updateModel(event, null);
483
+ }
484
+ }
485
+ },
486
+ onMultipleContainerFocus: function onMultipleContainerFocus() {
487
+ if (this.disabled) {
488
+ // For ScreenReaders
489
+ return;
490
+ }
491
+ this.focused = true;
492
+ },
493
+ onMultipleContainerBlur: function onMultipleContainerBlur() {
494
+ this.focusedMultipleOptionIndex = -1;
495
+ this.focused = false;
496
+ },
497
+ onMultipleContainerKeyDown: function onMultipleContainerKeyDown(event) {
498
+ if (this.disabled) {
499
+ event.preventDefault();
500
+ return;
501
+ }
502
+ switch (event.code) {
503
+ case 'ArrowLeft':
504
+ this.onArrowLeftKeyOnMultiple(event);
505
+ break;
506
+ case 'ArrowRight':
507
+ this.onArrowRightKeyOnMultiple(event);
508
+ break;
509
+ case 'Backspace':
510
+ this.onBackspaceKeyOnMultiple(event);
511
+ break;
512
+ }
513
+ },
514
+ onContainerClick: function onContainerClick(event) {
515
+ if (this.disabled || this.searching || this.isInputClicked(event) || this.isDropdownClicked(event)) {
516
+ return;
517
+ }
518
+ if (!this.overlay || !this.overlay.contains(event.target)) {
519
+ utils.DomHandler.focus(this.$refs.focusInput);
520
+ }
214
521
  },
215
- updated() {
216
- if (this.overlayVisible) {
217
- this.alignOverlay();
522
+ onDropdownClick: function onDropdownClick(event) {
523
+ var query = undefined;
524
+ if (this.overlayVisible) {
525
+ this.hide(true);
526
+ } else {
527
+ utils.DomHandler.focus(this.$refs.focusInput);
528
+ query = this.$refs.focusInput.value;
529
+ if (this.dropdownMode === 'blank') this.search(event, '', 'dropdown');else if (this.dropdownMode === 'current') this.search(event, query, 'dropdown');
530
+ }
531
+ this.$emit('dropdown-click', {
532
+ originalEvent: event,
533
+ query: query
534
+ });
535
+ },
536
+ onOptionSelect: function onOptionSelect(event, option) {
537
+ var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
538
+ var value = this.getOptionValue(option);
539
+ if (this.multiple) {
540
+ this.$refs.focusInput.value = '';
541
+ if (!this.isSelected(option)) {
542
+ this.updateModel(event, [].concat(_toConsumableArray(this.modelValue || []), [value]));
218
543
  }
544
+ } else {
545
+ this.updateModel(event, value);
546
+ }
547
+ this.$emit('item-select', {
548
+ originalEvent: event,
549
+ value: option
550
+ });
551
+ isHide && this.hide(true);
219
552
  },
220
- beforeUnmount() {
221
- this.unbindOutsideClickListener();
222
- this.unbindResizeListener();
223
-
224
- if (this.scrollHandler) {
225
- this.scrollHandler.destroy();
226
- this.scrollHandler = null;
553
+ onOptionMouseMove: function onOptionMouseMove(event, index) {
554
+ if (this.focusOnHover) {
555
+ this.changeFocusedOptionIndex(event, index);
556
+ }
557
+ },
558
+ onOverlayClick: function onOverlayClick(event) {
559
+ OverlayEventBus__default["default"].emit('overlay-click', {
560
+ originalEvent: event,
561
+ target: this.$el
562
+ });
563
+ },
564
+ onOverlayKeyDown: function onOverlayKeyDown(event) {
565
+ switch (event.code) {
566
+ case 'Escape':
567
+ this.onEscapeKey(event);
568
+ break;
569
+ }
570
+ },
571
+ onArrowDownKey: function onArrowDownKey(event) {
572
+ if (!this.overlayVisible) {
573
+ return;
574
+ }
575
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
576
+ this.changeFocusedOptionIndex(event, optionIndex);
577
+ event.preventDefault();
578
+ },
579
+ onArrowUpKey: function onArrowUpKey(event) {
580
+ if (!this.overlayVisible) {
581
+ return;
582
+ }
583
+ if (event.altKey) {
584
+ if (this.focusedOptionIndex !== -1) {
585
+ this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
227
586
  }
228
-
229
- if (this.overlay) {
230
- utils.ZIndexUtils.clear(this.overlay);
231
- this.overlay = null;
587
+ this.overlayVisible && this.hide();
588
+ event.preventDefault();
589
+ } else {
590
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
591
+ this.changeFocusedOptionIndex(event, optionIndex);
592
+ event.preventDefault();
593
+ }
594
+ },
595
+ onArrowLeftKey: function onArrowLeftKey(event) {
596
+ var target = event.currentTarget;
597
+ this.focusedOptionIndex = -1;
598
+ if (this.multiple) {
599
+ if (utils.ObjectUtils.isEmpty(target.value) && this.hasSelectedOption) {
600
+ utils.DomHandler.focus(this.$refs.multiContainer);
601
+ this.focusedMultipleOptionIndex = this.modelValue.length;
602
+ } else {
603
+ event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
232
604
  }
605
+ }
233
606
  },
234
- methods: {
235
- getOptionIndex(index, fn) {
236
- return this.virtualScrollerDisabled ? index : fn && fn(index)['index'];
237
- },
238
- getOptionLabel(option) {
239
- return this.field || this.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.field || this.optionLabel) : option;
240
- },
241
- getOptionValue(option) {
242
- return option; // TODO: The 'optionValue' properties can be added.
243
- },
244
- getOptionRenderKey(option, index) {
245
- return (this.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option)) + '_' + index;
246
- },
247
- getPTOptions(option, itemOptions, index, key) {
248
- return this.ptm(key, {
249
- context: {
250
- selected: this.isSelected(option),
251
- focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
252
- disabled: this.isOptionDisabled(option)
253
- }
254
- });
255
- },
256
- isOptionDisabled(option) {
257
- return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
258
- },
259
- isOptionGroup(option) {
260
- return this.optionGroupLabel && option.optionGroup && option.group;
261
- },
262
- getOptionGroupLabel(optionGroup) {
263
- return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
264
- },
265
- getOptionGroupChildren(optionGroup) {
266
- return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
267
- },
268
- getAriaPosInset(index) {
269
- return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter((option) => this.isOptionGroup(option)).length : index) + 1;
270
- },
271
- show(isFocus) {
272
- this.$emit('before-show');
273
- this.dirty = true;
274
- this.overlayVisible = true;
275
- this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
276
-
277
- isFocus && utils.DomHandler.focus(this.$refs.focusInput);
278
- },
279
- hide(isFocus) {
280
- const _hide = () => {
281
- this.$emit('before-hide');
282
- this.dirty = isFocus;
283
- this.overlayVisible = false;
284
- this.focusedOptionIndex = -1;
285
-
286
- isFocus && utils.DomHandler.focus(this.$refs.focusInput);
287
- };
288
-
289
- setTimeout(() => {
290
- _hide();
291
- }, 0); // For ScreenReaders
292
- },
293
- onFocus(event) {
294
- if (this.disabled) {
295
- // For ScreenReaders
296
- return;
297
- }
298
-
299
- if (!this.dirty && this.completeOnFocus) {
300
- this.search(event, event.target.value, 'focus');
301
- }
302
-
303
- this.dirty = true;
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.dirty = false;
311
- this.focused = false;
312
- this.focusedOptionIndex = -1;
313
- this.$emit('blur', event);
314
- },
315
- onKeyDown(event) {
316
- if (this.disabled) {
317
- event.preventDefault();
318
-
319
- return;
320
- }
321
-
322
- switch (event.code) {
323
- case 'ArrowDown':
324
- this.onArrowDownKey(event);
325
- break;
326
-
327
- case 'ArrowUp':
328
- this.onArrowUpKey(event);
329
- break;
330
-
331
- case 'ArrowLeft':
332
- this.onArrowLeftKey(event);
333
- break;
334
-
335
- case 'ArrowRight':
336
- this.onArrowRightKey(event);
337
- break;
338
-
339
- case 'Home':
340
- this.onHomeKey(event);
341
- break;
342
-
343
- case 'End':
344
- this.onEndKey(event);
345
- break;
346
-
347
- case 'PageDown':
348
- this.onPageDownKey(event);
349
- break;
350
-
351
- case 'PageUp':
352
- this.onPageUpKey(event);
353
- break;
354
-
355
- case 'Enter':
356
- case 'NumpadEnter':
357
- this.onEnterKey(event);
358
- break;
359
-
360
- case 'Escape':
361
- this.onEscapeKey(event);
362
- break;
363
-
364
- case 'Tab':
365
- this.onTabKey(event);
366
- break;
367
-
368
- case 'Backspace':
369
- this.onBackspaceKey(event);
370
- break;
371
- }
372
- },
373
- onInput(event) {
374
- if (this.searchTimeout) {
375
- clearTimeout(this.searchTimeout);
376
- }
377
-
378
- let query = event.target.value;
379
-
380
- if (!this.multiple) {
381
- this.updateModel(event, query);
382
- }
383
-
384
- if (query.length === 0) {
385
- this.hide();
386
- this.$emit('clear');
387
- } else {
388
- if (query.length >= this.minLength) {
389
- this.focusedOptionIndex = -1;
390
-
391
- this.searchTimeout = setTimeout(() => {
392
- this.search(event, query, 'input');
393
- }, this.delay);
394
- } else {
395
- this.hide();
396
- }
397
- }
398
- },
399
- onChange(event) {
400
- if (this.forceSelection) {
401
- let valid = false;
402
-
403
- if (this.visibleOptions) {
404
- const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, this.$refs.focusInput.value || ''));
405
-
406
- if (matchedValue !== undefined) {
407
- valid = true;
408
- !this.isSelected(matchedValue) && this.onOptionSelect(event, matchedValue);
409
- }
410
- }
411
-
412
- if (!valid) {
413
- this.$refs.focusInput.value = '';
414
- this.$emit('clear');
415
- !this.multiple && this.updateModel(event, null);
416
- }
417
- }
418
- },
419
- onMultipleContainerFocus() {
420
- if (this.disabled) {
421
- // For ScreenReaders
422
- return;
423
- }
424
-
425
- this.focused = true;
426
- },
427
- onMultipleContainerBlur() {
428
- this.focusedMultipleOptionIndex = -1;
429
- this.focused = false;
430
- },
431
- onMultipleContainerKeyDown(event) {
432
- if (this.disabled) {
433
- event.preventDefault();
434
-
435
- return;
436
- }
437
-
438
- switch (event.code) {
439
- case 'ArrowLeft':
440
- this.onArrowLeftKeyOnMultiple(event);
441
- break;
442
-
443
- case 'ArrowRight':
444
- this.onArrowRightKeyOnMultiple(event);
445
- break;
446
-
447
- case 'Backspace':
448
- this.onBackspaceKeyOnMultiple(event);
449
- break;
450
- }
451
- },
452
- onContainerClick(event) {
453
- if (this.disabled || this.searching || this.isInputClicked(event) || this.isDropdownClicked(event)) {
454
- return;
455
- }
456
-
457
- if (!this.overlay || !this.overlay.contains(event.target)) {
458
- utils.DomHandler.focus(this.$refs.focusInput);
459
- }
460
- },
461
- onDropdownClick(event) {
462
- let query = undefined;
463
-
464
- if (this.overlayVisible) {
465
- this.hide(true);
466
- } else {
467
- utils.DomHandler.focus(this.$refs.focusInput);
468
- query = this.$refs.focusInput.value;
469
-
470
- if (this.dropdownMode === 'blank') this.search(event, '', 'dropdown');
471
- else if (this.dropdownMode === 'current') this.search(event, query, 'dropdown');
472
- }
473
-
474
- this.$emit('dropdown-click', { originalEvent: event, query });
475
- },
476
- onOptionSelect(event, option, isHide = true) {
477
- const value = this.getOptionValue(option);
478
-
479
- if (this.multiple) {
480
- this.$refs.focusInput.value = '';
481
-
482
- if (!this.isSelected(option)) {
483
- this.updateModel(event, [...(this.modelValue || []), value]);
484
- }
485
- } else {
486
- this.updateModel(event, value);
487
- }
488
-
489
- this.$emit('item-select', { originalEvent: event, value: option });
490
-
491
- isHide && this.hide(true);
492
- },
493
- onOptionMouseMove(event, index) {
494
- if (this.focusOnHover) {
495
- this.changeFocusedOptionIndex(event, index);
496
- }
497
- },
498
- onOverlayClick(event) {
499
- OverlayEventBus__default["default"].emit('overlay-click', {
500
- originalEvent: event,
501
- target: this.$el
502
- });
503
- },
504
- onOverlayKeyDown(event) {
505
- switch (event.code) {
506
- case 'Escape':
507
- this.onEscapeKey(event);
508
- break;
509
- }
510
- },
511
- onArrowDownKey(event) {
512
- if (!this.overlayVisible) {
513
- return;
514
- }
515
-
516
- const optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
517
-
518
- this.changeFocusedOptionIndex(event, optionIndex);
519
-
520
- event.preventDefault();
521
- },
522
- onArrowUpKey(event) {
523
- if (!this.overlayVisible) {
524
- return;
525
- }
526
-
527
- if (event.altKey) {
528
- if (this.focusedOptionIndex !== -1) {
529
- this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
530
- }
531
-
532
- this.overlayVisible && this.hide();
533
- event.preventDefault();
534
- } else {
535
- const optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
536
-
537
- this.changeFocusedOptionIndex(event, optionIndex);
538
-
539
- event.preventDefault();
540
- }
541
- },
542
- onArrowLeftKey(event) {
543
- const target = event.currentTarget;
544
-
545
- this.focusedOptionIndex = -1;
546
-
547
- if (this.multiple) {
548
- if (utils.ObjectUtils.isEmpty(target.value) && this.hasSelectedOption) {
549
- utils.DomHandler.focus(this.$refs.multiContainer);
550
- this.focusedMultipleOptionIndex = this.modelValue.length;
551
- } else {
552
- event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
553
- }
554
- }
555
- },
556
- onArrowRightKey(event) {
557
- this.focusedOptionIndex = -1;
558
-
559
- this.multiple && event.stopPropagation(); // To prevent onArrowRightKeyOnMultiple method
560
- },
561
- onHomeKey(event) {
562
- const { currentTarget } = event;
563
- const len = currentTarget.value.length;
564
-
565
- currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
566
- this.focusedOptionIndex = -1;
567
-
568
- event.preventDefault();
569
- },
570
- onEndKey(event) {
571
- const { currentTarget } = event;
572
- const len = currentTarget.value.length;
573
-
574
- currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
575
- this.focusedOptionIndex = -1;
576
-
577
- event.preventDefault();
578
- },
579
- onPageUpKey(event) {
580
- this.scrollInView(0);
581
- event.preventDefault();
582
- },
583
- onPageDownKey(event) {
584
- this.scrollInView(this.visibleOptions.length - 1);
585
- event.preventDefault();
586
- },
587
- onEnterKey(event) {
588
- if (!this.overlayVisible) {
589
- this.onArrowDownKey(event);
590
- } else {
591
- if (this.focusedOptionIndex !== -1) {
592
- this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
593
- }
594
-
595
- this.hide();
596
- }
597
-
598
- event.preventDefault();
599
- },
600
- onEscapeKey(event) {
601
- this.overlayVisible && this.hide(true);
602
- event.preventDefault();
603
- },
604
- onTabKey(event) {
605
- if (this.focusedOptionIndex !== -1) {
606
- this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
607
- }
608
-
609
- this.overlayVisible && this.hide();
610
- },
611
- onBackspaceKey(event) {
612
- if (this.multiple) {
613
- if (utils.ObjectUtils.isNotEmpty(this.modelValue) && !this.$refs.focusInput.value) {
614
- const removedValue = this.modelValue[this.modelValue.length - 1];
615
- const newValue = this.modelValue.slice(0, -1);
616
-
617
- this.$emit('update:modelValue', newValue);
618
- this.$emit('item-unselect', { originalEvent: event, value: removedValue });
619
- }
620
-
621
- event.stopPropagation(); // To prevent onBackspaceKeyOnMultiple method
622
- }
623
- },
624
- onArrowLeftKeyOnMultiple() {
625
- this.focusedMultipleOptionIndex = this.focusedMultipleOptionIndex < 1 ? 0 : this.focusedMultipleOptionIndex - 1;
626
- },
627
- onArrowRightKeyOnMultiple() {
628
- this.focusedMultipleOptionIndex++;
629
-
630
- if (this.focusedMultipleOptionIndex > this.modelValue.length - 1) {
631
- this.focusedMultipleOptionIndex = -1;
632
- utils.DomHandler.focus(this.$refs.focusInput);
633
- }
634
- },
635
- onBackspaceKeyOnMultiple(event) {
636
- if (this.focusedMultipleOptionIndex !== -1) {
637
- this.removeOption(event, this.focusedMultipleOptionIndex);
638
- }
639
- },
640
- onOverlayEnter(el) {
641
- utils.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
642
- this.alignOverlay();
643
- },
644
- onOverlayAfterEnter() {
645
- this.bindOutsideClickListener();
646
- this.bindScrollListener();
647
- this.bindResizeListener();
648
-
649
- this.$emit('show');
650
- },
651
- onOverlayLeave() {
652
- this.unbindOutsideClickListener();
653
- this.unbindScrollListener();
654
- this.unbindResizeListener();
655
-
656
- this.$emit('hide');
657
- this.overlay = null;
658
- },
659
- onOverlayAfterLeave(el) {
660
- utils.ZIndexUtils.clear(el);
661
- },
662
- alignOverlay() {
663
- let target = this.multiple ? this.$refs.multiContainer : this.$refs.focusInput;
664
-
665
- if (this.appendTo === 'self') {
666
- utils.DomHandler.relativePosition(this.overlay, target);
667
- } else {
668
- this.overlay.style.minWidth = utils.DomHandler.getOuterWidth(target) + 'px';
669
- utils.DomHandler.absolutePosition(this.overlay, target);
670
- }
671
- },
672
- bindOutsideClickListener() {
673
- if (!this.outsideClickListener) {
674
- this.outsideClickListener = (event) => {
675
- if (this.overlayVisible && this.overlay && 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 utils.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 && !utils.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.overlay.contains(event.target) && !this.isInputClicked(event) && !this.isDropdownClicked(event);
724
- },
725
- isInputClicked(event) {
726
- if (this.multiple) return event.target === this.$refs.multiContainer || this.$refs.multiContainer.contains(event.target);
727
- else return event.target === this.$refs.focusInput;
728
- },
729
- isDropdownClicked(event) {
730
- return this.$refs.dropdownButton ? event.target === this.$refs.dropdownButton || this.$refs.dropdownButton.$el.contains(event.target) : false;
731
- },
732
- isOptionMatched(option, value) {
733
- return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
734
- },
735
- isValidOption(option) {
736
- return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
737
- },
738
- isValidSelectedOption(option) {
739
- return this.isValidOption(option) && this.isSelected(option);
740
- },
741
- isSelected(option) {
742
- return utils.ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
743
- },
744
- findFirstOptionIndex() {
745
- return this.visibleOptions.findIndex((option) => this.isValidOption(option));
746
- },
747
- findLastOptionIndex() {
748
- return utils.ObjectUtils.findLastIndex(this.visibleOptions, (option) => this.isValidOption(option));
749
- },
750
- findNextOptionIndex(index) {
751
- const matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((option) => this.isValidOption(option)) : -1;
752
-
753
- return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
754
- },
755
- findPrevOptionIndex(index) {
756
- const matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidOption(option)) : -1;
757
-
758
- return matchedOptionIndex > -1 ? matchedOptionIndex : index;
759
- },
760
- findSelectedOptionIndex() {
761
- return this.hasSelectedOption ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
762
- },
763
- findFirstFocusedOptionIndex() {
764
- const selectedIndex = this.findSelectedOptionIndex();
765
-
766
- return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
767
- },
768
- findLastFocusedOptionIndex() {
769
- const selectedIndex = this.findSelectedOptionIndex();
770
-
771
- return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
772
- },
773
- search(event, query, source) {
774
- //allow empty string but not undefined or null
775
- if (query === undefined || query === null) {
776
- return;
777
- }
778
-
779
- //do not search blank values on input change
780
- if (source === 'input' && query.trim().length === 0) {
781
- return;
782
- }
783
-
784
- this.searching = true;
785
- this.$emit('complete', { originalEvent: event, query });
786
- },
787
- removeOption(event, index) {
788
- const removedOption = this.modelValue[index];
789
- const value = this.modelValue.filter((_, i) => i !== index).map((option) => this.getOptionValue(option));
790
-
791
- this.updateModel(event, value);
792
- this.$emit('item-unselect', { originalEvent: event, value: removedOption });
793
- this.dirty = true;
794
- utils.DomHandler.focus(this.$refs.focusInput);
795
- },
796
- changeFocusedOptionIndex(event, index) {
797
- if (this.focusedOptionIndex !== index) {
798
- this.focusedOptionIndex = index;
799
- this.scrollInView();
800
-
801
- if (this.selectOnFocus || this.autoHighlight) {
802
- this.onOptionSelect(event, this.visibleOptions[index], false);
803
- }
804
- }
805
- },
806
- scrollInView(index = -1) {
807
- const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
808
- const element = utils.DomHandler.findSingle(this.list, `li[id="${id}"]`);
809
-
810
- if (element) {
811
- element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
812
- } else if (!this.virtualScrollerDisabled) {
813
- setTimeout(() => {
814
- this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
815
- }, 0);
816
- }
817
- },
818
- autoUpdateModel() {
819
- if ((this.selectOnFocus || this.autoHighlight) && this.autoOptionFocus && !this.hasSelectedOption) {
820
- this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
821
- this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
822
- }
823
- },
824
- updateModel(event, value) {
825
- this.$emit('update:modelValue', value);
826
- this.$emit('change', { originalEvent: event, value });
827
- },
828
- flatOptions(options) {
829
- return (options || []).reduce((result, option, index) => {
830
- result.push({ optionGroup: option, group: true, index });
831
-
832
- const optionGroupChildren = this.getOptionGroupChildren(option);
833
-
834
- optionGroupChildren && optionGroupChildren.forEach((o) => result.push(o));
835
-
836
- return result;
837
- }, []);
838
- },
839
- overlayRef(el) {
840
- this.overlay = el;
841
- },
842
- listRef(el, contentRef) {
843
- this.list = el;
844
- contentRef && contentRef(el); // For VirtualScroller
845
- },
846
- virtualScrollerRef(el) {
847
- this.virtualScroller = el;
607
+ onArrowRightKey: function onArrowRightKey(event) {
608
+ this.focusedOptionIndex = -1;
609
+ this.multiple && event.stopPropagation(); // To prevent onArrowRightKeyOnMultiple method
610
+ },
611
+ onHomeKey: function onHomeKey(event) {
612
+ var currentTarget = event.currentTarget;
613
+ var len = currentTarget.value.length;
614
+ currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
615
+ this.focusedOptionIndex = -1;
616
+ event.preventDefault();
617
+ },
618
+ onEndKey: function onEndKey(event) {
619
+ var currentTarget = event.currentTarget;
620
+ var len = currentTarget.value.length;
621
+ currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
622
+ this.focusedOptionIndex = -1;
623
+ event.preventDefault();
624
+ },
625
+ onPageUpKey: function onPageUpKey(event) {
626
+ this.scrollInView(0);
627
+ event.preventDefault();
628
+ },
629
+ onPageDownKey: function onPageDownKey(event) {
630
+ this.scrollInView(this.visibleOptions.length - 1);
631
+ event.preventDefault();
632
+ },
633
+ onEnterKey: function onEnterKey(event) {
634
+ if (!this.overlayVisible) {
635
+ this.onArrowDownKey(event);
636
+ } else {
637
+ if (this.focusedOptionIndex !== -1) {
638
+ this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
848
639
  }
640
+ this.hide();
641
+ }
642
+ event.preventDefault();
849
643
  },
850
- computed: {
851
- containerClass() {
852
- return [
853
- 'p-autocomplete p-component p-inputwrapper',
854
- {
855
- 'p-disabled': this.disabled,
856
- 'p-focus': this.focused,
857
- 'p-autocomplete-dd': this.dropdown,
858
- 'p-autocomplete-multiple': this.multiple,
859
- 'p-inputwrapper-filled': this.modelValue || utils.ObjectUtils.isNotEmpty(this.inputValue),
860
- 'p-inputwrapper-focus': this.focused,
861
- 'p-overlay-open': this.overlayVisible
862
- }
863
- ];
864
- },
865
- inputStyleClass() {
866
- return [
867
- 'p-autocomplete-input p-inputtext p-component',
868
- this.inputClass,
869
- {
870
- 'p-autocomplete-dd-input': this.dropdown
871
- }
872
- ];
873
- },
874
- multiContainerClass() {
875
- return ['p-autocomplete-multiple-container p-component p-inputtext'];
876
- },
877
- panelStyleClass() {
878
- return [
879
- 'p-autocomplete-panel p-component',
880
- this.panelClass,
881
- {
882
- 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
883
- 'p-ripple-disabled': this.$primevue.config.ripple === false
884
- }
885
- ];
886
- },
887
- visibleOptions() {
888
- return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];
889
- },
890
- inputValue() {
891
- if (this.modelValue) {
892
- if (typeof this.modelValue === 'object') {
893
- const label = this.getOptionLabel(this.modelValue);
894
-
895
- return label != null ? label : this.modelValue;
896
- } else {
897
- return this.modelValue;
898
- }
899
- } else {
900
- return '';
901
- }
902
- },
903
- hasSelectedOption() {
904
- return utils.ObjectUtils.isNotEmpty(this.modelValue);
905
- },
906
- equalityKey() {
907
- return this.dataKey; // TODO: The 'optionValue' properties can be added.
908
- },
909
- searchResultMessageText() {
910
- return utils.ObjectUtils.isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
911
- },
912
- searchMessageText() {
913
- return this.searchMessage || this.$primevue.config.locale.searchMessage || '';
914
- },
915
- emptySearchMessageText() {
916
- return this.emptySearchMessage || this.$primevue.config.locale.emptySearchMessage || '';
917
- },
918
- selectionMessageText() {
919
- return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
920
- },
921
- emptySelectionMessageText() {
922
- return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
923
- },
924
- selectedMessageText() {
925
- return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
926
- },
927
- focusedOptionId() {
928
- return this.focusedOptionIndex !== -1 ? `${this.id}_${this.focusedOptionIndex}` : null;
929
- },
930
- focusedMultipleOptionId() {
931
- return this.focusedMultipleOptionIndex !== -1 ? `${this.id}_multiple_option_${this.focusedMultipleOptionIndex}` : null;
932
- },
933
- ariaSetSize() {
934
- return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
935
- },
936
- virtualScrollerDisabled() {
937
- return !this.virtualScrollerOptions;
644
+ onEscapeKey: function onEscapeKey(event) {
645
+ this.overlayVisible && this.hide(true);
646
+ event.preventDefault();
647
+ },
648
+ onTabKey: function onTabKey(event) {
649
+ if (this.focusedOptionIndex !== -1) {
650
+ this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
651
+ }
652
+ this.overlayVisible && this.hide();
653
+ },
654
+ onBackspaceKey: function onBackspaceKey(event) {
655
+ if (this.multiple) {
656
+ if (utils.ObjectUtils.isNotEmpty(this.modelValue) && !this.$refs.focusInput.value) {
657
+ var removedValue = this.modelValue[this.modelValue.length - 1];
658
+ var newValue = this.modelValue.slice(0, -1);
659
+ this.$emit('update:modelValue', newValue);
660
+ this.$emit('item-unselect', {
661
+ originalEvent: event,
662
+ value: removedValue
663
+ });
938
664
  }
665
+ event.stopPropagation(); // To prevent onBackspaceKeyOnMultiple method
666
+ }
667
+ },
668
+ onArrowLeftKeyOnMultiple: function onArrowLeftKeyOnMultiple() {
669
+ this.focusedMultipleOptionIndex = this.focusedMultipleOptionIndex < 1 ? 0 : this.focusedMultipleOptionIndex - 1;
670
+ },
671
+ onArrowRightKeyOnMultiple: function onArrowRightKeyOnMultiple() {
672
+ this.focusedMultipleOptionIndex++;
673
+ if (this.focusedMultipleOptionIndex > this.modelValue.length - 1) {
674
+ this.focusedMultipleOptionIndex = -1;
675
+ utils.DomHandler.focus(this.$refs.focusInput);
676
+ }
677
+ },
678
+ onBackspaceKeyOnMultiple: function onBackspaceKeyOnMultiple(event) {
679
+ if (this.focusedMultipleOptionIndex !== -1) {
680
+ this.removeOption(event, this.focusedMultipleOptionIndex);
681
+ }
682
+ },
683
+ onOverlayEnter: function onOverlayEnter(el) {
684
+ utils.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
685
+ utils.DomHandler.addStyles(el, {
686
+ position: 'absolute',
687
+ top: '0',
688
+ left: '0'
689
+ });
690
+ this.alignOverlay();
691
+ },
692
+ onOverlayAfterEnter: function onOverlayAfterEnter() {
693
+ this.bindOutsideClickListener();
694
+ this.bindScrollListener();
695
+ this.bindResizeListener();
696
+ this.$emit('show');
697
+ },
698
+ onOverlayLeave: function onOverlayLeave() {
699
+ this.unbindOutsideClickListener();
700
+ this.unbindScrollListener();
701
+ this.unbindResizeListener();
702
+ this.$emit('hide');
703
+ this.overlay = null;
704
+ },
705
+ onOverlayAfterLeave: function onOverlayAfterLeave(el) {
706
+ utils.ZIndexUtils.clear(el);
707
+ },
708
+ alignOverlay: function alignOverlay() {
709
+ var target = this.multiple ? this.$refs.multiContainer : this.$refs.focusInput;
710
+ if (this.appendTo === 'self') {
711
+ utils.DomHandler.relativePosition(this.overlay, target);
712
+ } else {
713
+ this.overlay.style.minWidth = utils.DomHandler.getOuterWidth(target) + 'px';
714
+ utils.DomHandler.absolutePosition(this.overlay, target);
715
+ }
716
+ },
717
+ bindOutsideClickListener: function bindOutsideClickListener() {
718
+ var _this5 = this;
719
+ if (!this.outsideClickListener) {
720
+ this.outsideClickListener = function (event) {
721
+ if (_this5.overlayVisible && _this5.overlay && _this5.isOutsideClicked(event)) {
722
+ _this5.hide();
723
+ }
724
+ };
725
+ document.addEventListener('click', this.outsideClickListener);
726
+ }
727
+ },
728
+ unbindOutsideClickListener: function unbindOutsideClickListener() {
729
+ if (this.outsideClickListener) {
730
+ document.removeEventListener('click', this.outsideClickListener);
731
+ this.outsideClickListener = null;
732
+ }
733
+ },
734
+ bindScrollListener: function bindScrollListener() {
735
+ var _this6 = this;
736
+ if (!this.scrollHandler) {
737
+ this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, function () {
738
+ if (_this6.overlayVisible) {
739
+ _this6.hide();
740
+ }
741
+ });
742
+ }
743
+ this.scrollHandler.bindScrollListener();
744
+ },
745
+ unbindScrollListener: function unbindScrollListener() {
746
+ if (this.scrollHandler) {
747
+ this.scrollHandler.unbindScrollListener();
748
+ }
749
+ },
750
+ bindResizeListener: function bindResizeListener() {
751
+ var _this7 = this;
752
+ if (!this.resizeListener) {
753
+ this.resizeListener = function () {
754
+ if (_this7.overlayVisible && !utils.DomHandler.isTouchDevice()) {
755
+ _this7.hide();
756
+ }
757
+ };
758
+ window.addEventListener('resize', this.resizeListener);
759
+ }
760
+ },
761
+ unbindResizeListener: function unbindResizeListener() {
762
+ if (this.resizeListener) {
763
+ window.removeEventListener('resize', this.resizeListener);
764
+ this.resizeListener = null;
765
+ }
766
+ },
767
+ isOutsideClicked: function isOutsideClicked(event) {
768
+ return !this.overlay.contains(event.target) && !this.isInputClicked(event) && !this.isDropdownClicked(event);
769
+ },
770
+ isInputClicked: function isInputClicked(event) {
771
+ if (this.multiple) return event.target === this.$refs.multiContainer || this.$refs.multiContainer.contains(event.target);else return event.target === this.$refs.focusInput;
772
+ },
773
+ isDropdownClicked: function isDropdownClicked(event) {
774
+ return this.$refs.dropdownButton ? event.target === this.$refs.dropdownButton || this.$refs.dropdownButton.$el.contains(event.target) : false;
775
+ },
776
+ isOptionMatched: function isOptionMatched(option, value) {
777
+ return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
778
+ },
779
+ isValidOption: function isValidOption(option) {
780
+ return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
781
+ },
782
+ isValidSelectedOption: function isValidSelectedOption(option) {
783
+ return this.isValidOption(option) && this.isSelected(option);
784
+ },
785
+ isSelected: function isSelected(option) {
786
+ return utils.ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
787
+ },
788
+ findFirstOptionIndex: function findFirstOptionIndex() {
789
+ var _this8 = this;
790
+ return this.visibleOptions.findIndex(function (option) {
791
+ return _this8.isValidOption(option);
792
+ });
793
+ },
794
+ findLastOptionIndex: function findLastOptionIndex() {
795
+ var _this9 = this;
796
+ return utils.ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
797
+ return _this9.isValidOption(option);
798
+ });
799
+ },
800
+ findNextOptionIndex: function findNextOptionIndex(index) {
801
+ var _this10 = this;
802
+ var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
803
+ return _this10.isValidOption(option);
804
+ }) : -1;
805
+ return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
939
806
  },
940
- components: {
941
- Button: Button__default["default"],
942
- VirtualScroller: VirtualScroller__default["default"],
943
- Portal: Portal__default["default"],
944
- ChevronDownIcon: ChevronDownIcon__default["default"],
945
- SpinnerIcon: SpinnerIcon__default["default"],
946
- TimesCircleIcon: TimesCircleIcon__default["default"]
807
+ findPrevOptionIndex: function findPrevOptionIndex(index) {
808
+ var _this11 = this;
809
+ var matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
810
+ return _this11.isValidOption(option);
811
+ }) : -1;
812
+ return matchedOptionIndex > -1 ? matchedOptionIndex : index;
947
813
  },
948
- directives: {
949
- ripple: Ripple__default["default"]
814
+ findSelectedOptionIndex: function findSelectedOptionIndex() {
815
+ var _this12 = this;
816
+ return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
817
+ return _this12.isValidSelectedOption(option);
818
+ }) : -1;
819
+ },
820
+ findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
821
+ var selectedIndex = this.findSelectedOptionIndex();
822
+ return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
823
+ },
824
+ findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
825
+ var selectedIndex = this.findSelectedOptionIndex();
826
+ return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
827
+ },
828
+ search: function search(event, query, source) {
829
+ //allow empty string but not undefined or null
830
+ if (query === undefined || query === null) {
831
+ return;
832
+ }
833
+
834
+ //do not search blank values on input change
835
+ if (source === 'input' && query.trim().length === 0) {
836
+ return;
837
+ }
838
+ this.searching = true;
839
+ this.$emit('complete', {
840
+ originalEvent: event,
841
+ query: query
842
+ });
843
+ },
844
+ removeOption: function removeOption(event, index) {
845
+ var _this13 = this;
846
+ var removedOption = this.modelValue[index];
847
+ var value = this.modelValue.filter(function (_, i) {
848
+ return i !== index;
849
+ }).map(function (option) {
850
+ return _this13.getOptionValue(option);
851
+ });
852
+ this.updateModel(event, value);
853
+ this.$emit('item-unselect', {
854
+ originalEvent: event,
855
+ value: removedOption
856
+ });
857
+ this.dirty = true;
858
+ utils.DomHandler.focus(this.$refs.focusInput);
859
+ },
860
+ changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
861
+ if (this.focusedOptionIndex !== index) {
862
+ this.focusedOptionIndex = index;
863
+ this.scrollInView();
864
+ if (this.selectOnFocus || this.autoHighlight) {
865
+ this.onOptionSelect(event, this.visibleOptions[index], false);
866
+ }
867
+ }
868
+ },
869
+ scrollInView: function scrollInView() {
870
+ var _this14 = this;
871
+ var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
872
+ var id = index !== -1 ? "".concat(this.id, "_").concat(index) : this.focusedOptionId;
873
+ var element = utils.DomHandler.findSingle(this.list, "li[id=\"".concat(id, "\"]"));
874
+ if (element) {
875
+ element.scrollIntoView && element.scrollIntoView({
876
+ block: 'nearest',
877
+ inline: 'start'
878
+ });
879
+ } else if (!this.virtualScrollerDisabled) {
880
+ setTimeout(function () {
881
+ _this14.virtualScroller && _this14.virtualScroller.scrollToIndex(index !== -1 ? index : _this14.focusedOptionIndex);
882
+ }, 0);
883
+ }
884
+ },
885
+ autoUpdateModel: function autoUpdateModel() {
886
+ if ((this.selectOnFocus || this.autoHighlight) && this.autoOptionFocus && !this.hasSelectedOption) {
887
+ this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
888
+ this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
889
+ }
890
+ },
891
+ updateModel: function updateModel(event, value) {
892
+ this.$emit('update:modelValue', value);
893
+ this.$emit('change', {
894
+ originalEvent: event,
895
+ value: value
896
+ });
897
+ },
898
+ flatOptions: function flatOptions(options) {
899
+ var _this15 = this;
900
+ return (options || []).reduce(function (result, option, index) {
901
+ result.push({
902
+ optionGroup: option,
903
+ group: true,
904
+ index: index
905
+ });
906
+ var optionGroupChildren = _this15.getOptionGroupChildren(option);
907
+ optionGroupChildren && optionGroupChildren.forEach(function (o) {
908
+ return result.push(o);
909
+ });
910
+ return result;
911
+ }, []);
912
+ },
913
+ overlayRef: function overlayRef(el) {
914
+ this.overlay = el;
915
+ },
916
+ listRef: function listRef(el, contentRef) {
917
+ this.list = el;
918
+ contentRef && contentRef(el); // For VirtualScroller
919
+ },
920
+ virtualScrollerRef: function virtualScrollerRef(el) {
921
+ this.virtualScroller = el;
950
922
  }
923
+ },
924
+ computed: {
925
+ visibleOptions: function visibleOptions() {
926
+ return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];
927
+ },
928
+ inputValue: function inputValue() {
929
+ if (this.modelValue) {
930
+ if (_typeof$1(this.modelValue) === 'object') {
931
+ var label = this.getOptionLabel(this.modelValue);
932
+ return label != null ? label : this.modelValue;
933
+ } else {
934
+ return this.modelValue;
935
+ }
936
+ } else {
937
+ return '';
938
+ }
939
+ },
940
+ hasSelectedOption: function hasSelectedOption() {
941
+ return utils.ObjectUtils.isNotEmpty(this.modelValue);
942
+ },
943
+ equalityKey: function equalityKey() {
944
+ return this.dataKey; // TODO: The 'optionValue' properties can be added.
945
+ },
946
+ searchResultMessageText: function searchResultMessageText() {
947
+ return utils.ObjectUtils.isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
948
+ },
949
+ searchMessageText: function searchMessageText() {
950
+ return this.searchMessage || this.$primevue.config.locale.searchMessage || '';
951
+ },
952
+ emptySearchMessageText: function emptySearchMessageText() {
953
+ return this.emptySearchMessage || this.$primevue.config.locale.emptySearchMessage || '';
954
+ },
955
+ selectionMessageText: function selectionMessageText() {
956
+ return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
957
+ },
958
+ emptySelectionMessageText: function emptySelectionMessageText() {
959
+ return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
960
+ },
961
+ selectedMessageText: function selectedMessageText() {
962
+ return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
963
+ },
964
+ focusedOptionId: function focusedOptionId() {
965
+ return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
966
+ },
967
+ focusedMultipleOptionId: function focusedMultipleOptionId() {
968
+ return this.focusedMultipleOptionIndex !== -1 ? "".concat(this.id, "_multiple_option_").concat(this.focusedMultipleOptionIndex) : null;
969
+ },
970
+ ariaSetSize: function ariaSetSize() {
971
+ var _this16 = this;
972
+ return this.visibleOptions.filter(function (option) {
973
+ return !_this16.isOptionGroup(option);
974
+ }).length;
975
+ },
976
+ virtualScrollerDisabled: function virtualScrollerDisabled() {
977
+ return !this.virtualScrollerOptions;
978
+ }
979
+ },
980
+ components: {
981
+ Button: Button__default["default"],
982
+ VirtualScroller: VirtualScroller__default["default"],
983
+ Portal: Portal__default["default"],
984
+ ChevronDownIcon: ChevronDownIcon__default["default"],
985
+ SpinnerIcon: SpinnerIcon__default["default"],
986
+ TimesCircleIcon: TimesCircleIcon__default["default"]
987
+ },
988
+ directives: {
989
+ ripple: Ripple__default["default"]
990
+ }
951
991
  };
952
992
 
953
- const _hoisted_1 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
954
- const _hoisted_2 = ["aria-activedescendant"];
955
- const _hoisted_3 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
956
- const _hoisted_4 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
957
- const _hoisted_5 = ["id"];
958
- const _hoisted_6 = ["id"];
959
- const _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove"];
960
-
993
+ 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); }
994
+ 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; }
995
+ 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; }
996
+ 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; }
997
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
998
+ 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); }
999
+ var _hoisted_1 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
1000
+ var _hoisted_2 = ["aria-activedescendant"];
1001
+ var _hoisted_3 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
1002
+ var _hoisted_4 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
1003
+ var _hoisted_5 = ["id"];
1004
+ var _hoisted_6 = ["id"];
1005
+ var _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focus", "data-p-disabled"];
961
1006
  function render(_ctx, _cache, $props, $setup, $data, $options) {
962
- const _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
963
- const _component_Button = vue.resolveComponent("Button");
964
- const _component_VirtualScroller = vue.resolveComponent("VirtualScroller");
965
- const _component_Portal = vue.resolveComponent("Portal");
966
- const _directive_ripple = vue.resolveDirective("ripple");
967
-
968
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1007
+ var _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
1008
+ var _component_Button = vue.resolveComponent("Button");
1009
+ var _component_VirtualScroller = vue.resolveComponent("VirtualScroller");
1010
+ var _component_Portal = vue.resolveComponent("Portal");
1011
+ var _directive_ripple = vue.resolveDirective("ripple");
1012
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
969
1013
  ref: "container",
970
- class: $options.containerClass,
971
- onClick: _cache[15] || (_cache[15] = (...args) => ($options.onContainerClick && $options.onContainerClick(...args)))
972
- }, _ctx.ptm('root')), [
973
- (!$props.multiple)
974
- ? (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
975
- key: 0,
976
- ref: "focusInput",
977
- id: $props.inputId,
978
- type: "text",
979
- style: $props.inputStyle,
980
- class: $options.inputStyleClass,
981
- value: $options.inputValue,
982
- placeholder: $props.placeholder,
983
- tabindex: !$props.disabled ? $props.tabindex : -1,
984
- disabled: $props.disabled,
985
- autocomplete: "off",
986
- role: "combobox",
987
- "aria-label": _ctx.ariaLabel,
988
- "aria-labelledby": _ctx.ariaLabelledby,
989
- "aria-haspopup": "listbox",
990
- "aria-autocomplete": "list",
991
- "aria-expanded": $data.overlayVisible,
992
- "aria-controls": $data.id + '_list',
993
- "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
994
- onFocus: _cache[0] || (_cache[0] = (...args) => ($options.onFocus && $options.onFocus(...args))),
995
- onBlur: _cache[1] || (_cache[1] = (...args) => ($options.onBlur && $options.onBlur(...args))),
996
- onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
997
- onInput: _cache[3] || (_cache[3] = (...args) => ($options.onInput && $options.onInput(...args))),
998
- onChange: _cache[4] || (_cache[4] = (...args) => ($options.onChange && $options.onChange(...args)))
999
- }, { ...$props.inputProps, ..._ctx.ptm('input') }), null, 16, _hoisted_1))
1000
- : vue.createCommentVNode("", true),
1001
- ($props.multiple)
1002
- ? (vue.openBlock(), vue.createElementBlock("ul", vue.mergeProps({
1003
- key: 1,
1004
- ref: "multiContainer",
1005
- class: $options.multiContainerClass,
1006
- tabindex: "-1",
1007
- role: "listbox",
1008
- "aria-orientation": "horizontal",
1009
- "aria-activedescendant": $data.focused ? $options.focusedMultipleOptionId : undefined,
1010
- onFocus: _cache[10] || (_cache[10] = (...args) => ($options.onMultipleContainerFocus && $options.onMultipleContainerFocus(...args))),
1011
- onBlur: _cache[11] || (_cache[11] = (...args) => ($options.onMultipleContainerBlur && $options.onMultipleContainerBlur(...args))),
1012
- onKeydown: _cache[12] || (_cache[12] = (...args) => ($options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown(...args)))
1013
- }, _ctx.ptm('container')), [
1014
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.modelValue, (option, i) => {
1015
- return (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1016
- key: i,
1017
- id: $data.id + '_multiple_option_' + i,
1018
- class: ['p-autocomplete-token', { 'p-focus': $data.focusedMultipleOptionIndex === i }],
1019
- role: "option",
1020
- "aria-label": $options.getOptionLabel(option),
1021
- "aria-selected": true,
1022
- "aria-setsize": $props.modelValue.length,
1023
- "aria-posinset": i + 1
1024
- }, _ctx.ptm('token')), [
1025
- vue.renderSlot(_ctx.$slots, "chip", { value: option }, () => [
1026
- vue.createElementVNode("span", vue.mergeProps({ class: "p-autocomplete-token-label" }, _ctx.ptm('tokenLabel')), vue.toDisplayString($options.getOptionLabel(option)), 17)
1027
- ]),
1028
- vue.renderSlot(_ctx.$slots, "removetokenicon", {
1029
- class: "p-autocomplete-token-icon",
1030
- onClick: (event) => $options.removeOption(event, i)
1031
- }, () => [
1032
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.removeTokenIcon ? 'span' : 'TimesCircleIcon'), vue.mergeProps({
1033
- class: ['p-autocomplete-token-icon', $props.removeTokenIcon],
1034
- onClick: $event => ($options.removeOption($event, i)),
1035
- "aria-hidden": "true"
1036
- }, _ctx.ptm('removeTokenIcon')), null, 16, ["class", "onClick"]))
1037
- ])
1038
- ], 16, _hoisted_3))
1039
- }), 128)),
1040
- vue.createElementVNode("li", vue.mergeProps({
1041
- class: "p-autocomplete-input-token",
1042
- role: "option"
1043
- }, _ctx.ptm('token')), [
1044
- vue.createElementVNode("input", vue.mergeProps({
1045
- ref: "focusInput",
1046
- id: $props.inputId,
1047
- type: "text",
1048
- style: $props.inputStyle,
1049
- class: $props.inputClass,
1050
- placeholder: $props.placeholder,
1051
- tabindex: !$props.disabled ? $props.tabindex : -1,
1052
- disabled: $props.disabled,
1053
- autocomplete: "off",
1054
- role: "combobox",
1055
- "aria-label": _ctx.ariaLabel,
1056
- "aria-labelledby": _ctx.ariaLabelledby,
1057
- "aria-haspopup": "listbox",
1058
- "aria-autocomplete": "list",
1059
- "aria-expanded": $data.overlayVisible,
1060
- "aria-controls": $data.id + '_list',
1061
- "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
1062
- onFocus: _cache[5] || (_cache[5] = (...args) => ($options.onFocus && $options.onFocus(...args))),
1063
- onBlur: _cache[6] || (_cache[6] = (...args) => ($options.onBlur && $options.onBlur(...args))),
1064
- onKeydown: _cache[7] || (_cache[7] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
1065
- onInput: _cache[8] || (_cache[8] = (...args) => ($options.onInput && $options.onInput(...args))),
1066
- onChange: _cache[9] || (_cache[9] = (...args) => ($options.onChange && $options.onChange(...args)))
1067
- }, { ...$props.inputProps, ..._ctx.ptm('input') }), null, 16, _hoisted_4)
1068
- ], 16)
1069
- ], 16, _hoisted_2))
1070
- : vue.createCommentVNode("", true),
1071
- ($data.searching)
1072
- ? vue.renderSlot(_ctx.$slots, "loadingicon", { key: 2 }, () => [
1073
- ($props.loadingIcon)
1074
- ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
1075
- key: 0,
1076
- class: ['p-autocomplete-loader pi-spin', $props.loadingIcon],
1077
- "aria-hidden": "true"
1078
- }, _ctx.ptm('loadingIcon')), null, 16))
1079
- : (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, vue.mergeProps({
1080
- key: 1,
1081
- class: "p-autocomplete-loader",
1082
- spin: "",
1083
- "aria-hidden": "true"
1084
- }, _ctx.ptm('loadingIcon')), null, 16))
1085
- ])
1086
- : vue.createCommentVNode("", true),
1087
- ($props.dropdown)
1088
- ? (vue.openBlock(), vue.createBlock(_component_Button, {
1089
- key: 3,
1090
- ref: "dropdownButton",
1091
- type: "button",
1092
- tabindex: "-1",
1093
- class: vue.normalizeClass(['p-autocomplete-dropdown', $props.dropdownClass]),
1094
- disabled: $props.disabled,
1095
- "aria-hidden": "true",
1096
- onClick: $options.onDropdownClick,
1097
- pt: _ctx.ptm('dropdownButton')
1098
- }, {
1099
- icon: vue.withCtx(() => [
1100
- vue.renderSlot(_ctx.$slots, "dropdownicon", {}, () => [
1101
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.dropdownIcon ? 'span' : 'ChevronDownIcon'), vue.mergeProps({ class: $props.dropdownIcon }, _ctx.ptm('dropdownButton')['icon']), null, 16, ["class"]))
1102
- ])
1103
- ]),
1104
- _: 3
1105
- }, 8, ["class", "disabled", "onClick", "pt"]))
1106
- : vue.createCommentVNode("", true),
1107
- vue.createElementVNode("span", vue.mergeProps({
1108
- role: "status",
1109
- "aria-live": "polite",
1110
- class: "p-hidden-accessible"
1111
- }, _ctx.ptm('hiddenSearchResult')), vue.toDisplayString($options.searchResultMessageText), 17),
1112
- vue.createVNode(_component_Portal, { appendTo: $props.appendTo }, {
1113
- default: vue.withCtx(() => [
1114
- vue.createVNode(vue.Transition, {
1115
- name: "p-connected-overlay",
1116
- onEnter: $options.onOverlayEnter,
1117
- onAfterEnter: $options.onOverlayAfterEnter,
1118
- onLeave: $options.onOverlayLeave,
1119
- onAfterLeave: $options.onOverlayAfterLeave
1120
- }, {
1121
- default: vue.withCtx(() => [
1122
- ($data.overlayVisible)
1123
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1014
+ "class": _ctx.cx('root'),
1015
+ style: _ctx.sx('root'),
1016
+ onClick: _cache[15] || (_cache[15] = function () {
1017
+ return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
1018
+ })
1019
+ }, _ctx.ptm('root'), {
1020
+ "data-pc-name": "autocomplete"
1021
+ }), [!_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
1022
+ key: 0,
1023
+ ref: "focusInput",
1024
+ id: _ctx.inputId,
1025
+ type: "text",
1026
+ "class": [_ctx.cx('input'), _ctx.inputClass],
1027
+ style: _ctx.inputStyle,
1028
+ value: $options.inputValue,
1029
+ placeholder: _ctx.placeholder,
1030
+ tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
1031
+ disabled: _ctx.disabled,
1032
+ autocomplete: "off",
1033
+ role: "combobox",
1034
+ "aria-label": _ctx.ariaLabel,
1035
+ "aria-labelledby": _ctx.ariaLabelledby,
1036
+ "aria-haspopup": "listbox",
1037
+ "aria-autocomplete": "list",
1038
+ "aria-expanded": $data.overlayVisible,
1039
+ "aria-controls": $data.id + '_list',
1040
+ "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
1041
+ onFocus: _cache[0] || (_cache[0] = function () {
1042
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
1043
+ }),
1044
+ onBlur: _cache[1] || (_cache[1] = function () {
1045
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
1046
+ }),
1047
+ onKeydown: _cache[2] || (_cache[2] = function () {
1048
+ return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1049
+ }),
1050
+ onInput: _cache[3] || (_cache[3] = function () {
1051
+ return $options.onInput && $options.onInput.apply($options, arguments);
1052
+ }),
1053
+ onChange: _cache[4] || (_cache[4] = function () {
1054
+ return $options.onChange && $options.onChange.apply($options, arguments);
1055
+ })
1056
+ }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input'))), null, 16, _hoisted_1)) : vue.createCommentVNode("", true), _ctx.multiple ? (vue.openBlock(), vue.createElementBlock("ul", vue.mergeProps({
1057
+ key: 1,
1058
+ ref: "multiContainer",
1059
+ "class": _ctx.cx('container'),
1060
+ tabindex: "-1",
1061
+ role: "listbox",
1062
+ "aria-orientation": "horizontal",
1063
+ "aria-activedescendant": $data.focused ? $options.focusedMultipleOptionId : undefined,
1064
+ onFocus: _cache[10] || (_cache[10] = function () {
1065
+ return $options.onMultipleContainerFocus && $options.onMultipleContainerFocus.apply($options, arguments);
1066
+ }),
1067
+ onBlur: _cache[11] || (_cache[11] = function () {
1068
+ return $options.onMultipleContainerBlur && $options.onMultipleContainerBlur.apply($options, arguments);
1069
+ }),
1070
+ onKeydown: _cache[12] || (_cache[12] = function () {
1071
+ return $options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown.apply($options, arguments);
1072
+ })
1073
+ }, _ctx.ptm('container')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.modelValue, function (option, i) {
1074
+ return vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1075
+ key: i,
1076
+ id: $data.id + '_multiple_option_' + i,
1077
+ "class": _ctx.cx('token', {
1078
+ i: i
1079
+ }),
1080
+ role: "option",
1081
+ "aria-label": $options.getOptionLabel(option),
1082
+ "aria-selected": true,
1083
+ "aria-setsize": _ctx.modelValue.length,
1084
+ "aria-posinset": i + 1
1085
+ }, _ctx.ptm('token')), [vue.renderSlot(_ctx.$slots, "chip", {
1086
+ value: option
1087
+ }, function () {
1088
+ return [vue.createElementVNode("span", vue.mergeProps({
1089
+ "class": _ctx.cx('tokenLabel')
1090
+ }, _ctx.ptm('tokenLabel')), vue.toDisplayString($options.getOptionLabel(option)), 17)];
1091
+ }), vue.renderSlot(_ctx.$slots, "removetokenicon", {
1092
+ "class": vue.normalizeClass(_ctx.cx(_ctx.removeTokenIcon)),
1093
+ onClick: function onClick(event) {
1094
+ return $options.removeOption(event, i);
1095
+ }
1096
+ }, function () {
1097
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.removeTokenIcon ? 'span' : 'TimesCircleIcon'), vue.mergeProps({
1098
+ "class": [_ctx.cx(_ctx.removeTokenIcon), _ctx.removeTokenIcon],
1099
+ onClick: function onClick($event) {
1100
+ return $options.removeOption($event, i);
1101
+ },
1102
+ "aria-hidden": "true"
1103
+ }, _ctx.ptm('removeTokenIcon')), null, 16, ["class", "onClick"]))];
1104
+ })], 16, _hoisted_3);
1105
+ }), 128)), vue.createElementVNode("li", vue.mergeProps({
1106
+ "class": _ctx.cx('inputToken'),
1107
+ role: "option"
1108
+ }, _ctx.ptm('inputToken')), [vue.createElementVNode("input", vue.mergeProps({
1109
+ ref: "focusInput",
1110
+ id: _ctx.inputId,
1111
+ type: "text",
1112
+ style: _ctx.inputStyle,
1113
+ "class": _ctx.inputClass,
1114
+ placeholder: _ctx.placeholder,
1115
+ tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
1116
+ disabled: _ctx.disabled,
1117
+ autocomplete: "off",
1118
+ role: "combobox",
1119
+ "aria-label": _ctx.ariaLabel,
1120
+ "aria-labelledby": _ctx.ariaLabelledby,
1121
+ "aria-haspopup": "listbox",
1122
+ "aria-autocomplete": "list",
1123
+ "aria-expanded": $data.overlayVisible,
1124
+ "aria-controls": $data.id + '_list',
1125
+ "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
1126
+ onFocus: _cache[5] || (_cache[5] = function () {
1127
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
1128
+ }),
1129
+ onBlur: _cache[6] || (_cache[6] = function () {
1130
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
1131
+ }),
1132
+ onKeydown: _cache[7] || (_cache[7] = function () {
1133
+ return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1134
+ }),
1135
+ onInput: _cache[8] || (_cache[8] = function () {
1136
+ return $options.onInput && $options.onInput.apply($options, arguments);
1137
+ }),
1138
+ onChange: _cache[9] || (_cache[9] = function () {
1139
+ return $options.onChange && $options.onChange.apply($options, arguments);
1140
+ })
1141
+ }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input'))), null, 16, _hoisted_4)], 16)], 16, _hoisted_2)) : vue.createCommentVNode("", true), $data.searching ? vue.renderSlot(_ctx.$slots, "loadingicon", {
1142
+ key: 2,
1143
+ "class": vue.normalizeClass(_ctx.cx('loadingIcon'))
1144
+ }, function () {
1145
+ return [_ctx.loadingIcon ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
1146
+ key: 0,
1147
+ "class": ['pi-spin', _ctx.cx('loadingIcon'), _ctx.loadingIcon],
1148
+ "aria-hidden": "true"
1149
+ }, _ctx.ptm('loadingIcon')), null, 16)) : (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, vue.mergeProps({
1150
+ key: 1,
1151
+ "class": [_ctx.cx('loadingIcon'), _ctx.loadingIcon],
1152
+ spin: "",
1153
+ "aria-hidden": "true"
1154
+ }, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
1155
+ }) : vue.createCommentVNode("", true), _ctx.dropdown ? (vue.openBlock(), vue.createBlock(_component_Button, {
1156
+ key: 3,
1157
+ ref: "dropdownButton",
1158
+ type: "button",
1159
+ tabindex: "-1",
1160
+ "class": vue.normalizeClass([_ctx.cx('dropdownButton'), _ctx.dropdownClass]),
1161
+ disabled: _ctx.disabled,
1162
+ "aria-hidden": "true",
1163
+ onClick: $options.onDropdownClick,
1164
+ unstyled: _ctx.unstyled,
1165
+ pt: _ctx.ptm('dropdownButton'),
1166
+ "data-pc-section": "dropdownbutton"
1167
+ }, {
1168
+ icon: vue.withCtx(function () {
1169
+ return [vue.renderSlot(_ctx.$slots, "dropdownicon", {
1170
+ "class": vue.normalizeClass(_ctx.dropdownIcon)
1171
+ }, function () {
1172
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), vue.mergeProps({
1173
+ "class": _ctx.dropdownIcon
1174
+ }, _ctx.ptm('dropdownButton')['icon']), null, 16, ["class"]))];
1175
+ })];
1176
+ }),
1177
+ _: 3
1178
+ }, 8, ["class", "disabled", "onClick", "unstyled", "pt"])) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
1179
+ role: "status",
1180
+ "aria-live": "polite",
1181
+ "class": "p-hidden-accessible"
1182
+ }, _ctx.ptm('hiddenSearchResult'), {
1183
+ "data-p-hidden-accessible": true
1184
+ }), vue.toDisplayString($options.searchResultMessageText), 17), vue.createVNode(_component_Portal, {
1185
+ appendTo: _ctx.appendTo
1186
+ }, {
1187
+ "default": vue.withCtx(function () {
1188
+ return [vue.createVNode(vue.Transition, {
1189
+ name: "p-connected-overlay",
1190
+ onEnter: $options.onOverlayEnter,
1191
+ onAfterEnter: $options.onOverlayAfterEnter,
1192
+ onLeave: $options.onOverlayLeave,
1193
+ onAfterLeave: $options.onOverlayAfterLeave
1194
+ }, {
1195
+ "default": vue.withCtx(function () {
1196
+ return [$data.overlayVisible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1197
+ key: 0,
1198
+ ref: $options.overlayRef,
1199
+ "class": [_ctx.cx('panel'), _ctx.panelClass],
1200
+ style: _objectSpread(_objectSpread({}, _ctx.panelStyle), {}, {
1201
+ 'max-height': $options.virtualScrollerDisabled ? _ctx.scrollHeight : ''
1202
+ }),
1203
+ onClick: _cache[13] || (_cache[13] = function () {
1204
+ return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
1205
+ }),
1206
+ onKeydown: _cache[14] || (_cache[14] = function () {
1207
+ return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1208
+ })
1209
+ }, _objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.ptm('panel'))), [vue.renderSlot(_ctx.$slots, "header", {
1210
+ value: _ctx.modelValue,
1211
+ suggestions: $options.visibleOptions
1212
+ }), vue.createVNode(_component_VirtualScroller, vue.mergeProps({
1213
+ ref: $options.virtualScrollerRef
1214
+ }, _ctx.virtualScrollerOptions, {
1215
+ style: {
1216
+ height: _ctx.scrollHeight
1217
+ },
1218
+ items: $options.visibleOptions,
1219
+ tabindex: -1,
1220
+ disabled: $options.virtualScrollerDisabled,
1221
+ pt: _ctx.ptm('virtualScroller')
1222
+ }), vue.createSlots({
1223
+ content: vue.withCtx(function (_ref) {
1224
+ var styleClass = _ref.styleClass,
1225
+ contentRef = _ref.contentRef,
1226
+ items = _ref.items,
1227
+ getItemOptions = _ref.getItemOptions,
1228
+ contentStyle = _ref.contentStyle,
1229
+ itemSize = _ref.itemSize;
1230
+ return [vue.createElementVNode("ul", vue.mergeProps({
1231
+ ref: function ref(el) {
1232
+ return $options.listRef(el, contentRef);
1233
+ },
1234
+ id: $data.id + '_list',
1235
+ "class": [_ctx.cx('list'), styleClass],
1236
+ style: contentStyle,
1237
+ role: "listbox"
1238
+ }, _ctx.ptm('list')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, function (option, i) {
1239
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1240
+ key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
1241
+ }, [$options.isOptionGroup(option) ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1124
1242
  key: 0,
1125
- ref: $options.overlayRef,
1126
- class: $options.panelStyleClass,
1127
- style: { ...$props.panelStyle, 'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : '' },
1128
- onClick: _cache[13] || (_cache[13] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
1129
- onKeydown: _cache[14] || (_cache[14] = (...args) => ($options.onOverlayKeyDown && $options.onOverlayKeyDown(...args)))
1130
- }, { ...$props.panelProps, ..._ctx.ptm('panel') }), [
1131
- vue.renderSlot(_ctx.$slots, "header", {
1132
- value: $props.modelValue,
1133
- suggestions: $options.visibleOptions
1243
+ id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1244
+ style: {
1245
+ height: itemSize ? itemSize + 'px' : undefined
1246
+ },
1247
+ "class": _ctx.cx('itemGroup'),
1248
+ role: "option"
1249
+ }, _ctx.ptm('itemGroup')), [vue.renderSlot(_ctx.$slots, "optiongroup", {
1250
+ option: option.optionGroup,
1251
+ item: option.optionGroup,
1252
+ index: $options.getOptionIndex(i, getItemOptions)
1253
+ }, function () {
1254
+ return [vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
1255
+ })], 16, _hoisted_6)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1256
+ key: 1,
1257
+ id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1258
+ style: {
1259
+ height: itemSize ? itemSize + 'px' : undefined
1260
+ },
1261
+ "class": _ctx.cx('item', {
1262
+ option: option,
1263
+ i: i,
1264
+ getItemOptions: getItemOptions
1134
1265
  }),
1135
- vue.createVNode(_component_VirtualScroller, vue.mergeProps({ ref: $options.virtualScrollerRef }, { ...$props.virtualScrollerOptions, ..._ctx.ptm('virtualScroller') }, {
1136
- style: { height: $props.scrollHeight },
1137
- items: $options.visibleOptions,
1138
- tabindex: -1,
1139
- disabled: $options.virtualScrollerDisabled
1140
- }), vue.createSlots({
1141
- content: vue.withCtx(({ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }) => [
1142
- vue.createElementVNode("ul", vue.mergeProps({
1143
- ref: (el) => $options.listRef(el, contentRef),
1144
- id: $data.id + '_list',
1145
- class: ['p-autocomplete-items', styleClass],
1146
- style: contentStyle,
1147
- role: "listbox"
1148
- }, _ctx.ptm('list')), [
1149
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (option, i) => {
1150
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1151
- key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
1152
- }, [
1153
- ($options.isOptionGroup(option))
1154
- ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1155
- key: 0,
1156
- id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1157
- style: { height: itemSize ? itemSize + 'px' : undefined },
1158
- class: "p-autocomplete-item-group",
1159
- role: "option"
1160
- }, _ctx.ptm('itemGroup')), [
1161
- vue.renderSlot(_ctx.$slots, "optiongroup", {
1162
- option: option.optionGroup,
1163
- item: option.optionGroup,
1164
- index: $options.getOptionIndex(i, getItemOptions)
1165
- }, () => [
1166
- vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)
1167
- ])
1168
- ], 16, _hoisted_6))
1169
- : vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1170
- key: 1,
1171
- id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1172
- style: { height: itemSize ? itemSize + 'px' : undefined },
1173
- class: ['p-autocomplete-item', { 'p-highlight': $options.isSelected(option), 'p-focus': $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions), 'p-disabled': $options.isOptionDisabled(option) }],
1174
- role: "option",
1175
- "aria-label": $options.getOptionLabel(option),
1176
- "aria-selected": $options.isSelected(option),
1177
- "aria-disabled": $options.isOptionDisabled(option),
1178
- "aria-setsize": $options.ariaSetSize,
1179
- "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
1180
- onClick: $event => ($options.onOptionSelect($event, option)),
1181
- onMousemove: $event => ($options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions)))
1182
- }, $options.getPTOptions(option, getItemOptions, i, 'item')), [
1183
- (_ctx.$slots.option)
1184
- ? vue.renderSlot(_ctx.$slots, "option", {
1185
- key: 0,
1186
- option: option,
1187
- index: $options.getOptionIndex(i, getItemOptions)
1188
- }, () => [
1189
- vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)
1190
- ])
1191
- : vue.renderSlot(_ctx.$slots, "item", {
1192
- key: 1,
1193
- item: option,
1194
- index: $options.getOptionIndex(i, getItemOptions)
1195
- }, () => [
1196
- vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)
1197
- ])
1198
- ], 16, _hoisted_7)), [
1199
- [_directive_ripple]
1200
- ])
1201
- ], 64))
1202
- }), 128)),
1203
- (!items || (items && items.length === 0))
1204
- ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1205
- key: 0,
1206
- class: "p-autocomplete-empty-message",
1207
- role: "option"
1208
- }, _ctx.ptm('emptyMessage')), [
1209
- vue.renderSlot(_ctx.$slots, "empty", {}, () => [
1210
- vue.createTextVNode(vue.toDisplayString($options.searchResultMessageText), 1)
1211
- ])
1212
- ], 16))
1213
- : vue.createCommentVNode("", true)
1214
- ], 16, _hoisted_5)
1215
- ]),
1216
- _: 2
1217
- }, [
1218
- (_ctx.$slots.loader)
1219
- ? {
1220
- name: "loader",
1221
- fn: vue.withCtx(({ options }) => [
1222
- vue.renderSlot(_ctx.$slots, "loader", { options: options })
1223
- ]),
1224
- key: "0"
1225
- }
1226
- : undefined
1227
- ]), 1040, ["style", "items", "disabled"]),
1228
- vue.renderSlot(_ctx.$slots, "footer", {
1229
- value: $props.modelValue,
1230
- suggestions: $options.visibleOptions
1231
- }),
1232
- vue.createElementVNode("span", vue.mergeProps({
1233
- role: "status",
1234
- "aria-live": "polite",
1235
- class: "p-hidden-accessible"
1236
- }, _ctx.ptm('hiddenSelectedMessage')), vue.toDisplayString($options.selectedMessageText), 17)
1237
- ], 16))
1238
- : vue.createCommentVNode("", true)
1239
- ]),
1240
- _: 3
1241
- }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
1242
- ]),
1243
- _: 3
1244
- }, 8, ["appendTo"])
1245
- ], 16))
1246
- }
1247
-
1248
- function styleInject(css, ref) {
1249
- if ( ref === void 0 ) ref = {};
1250
- var insertAt = ref.insertAt;
1251
-
1252
- if (!css || typeof document === 'undefined') { return; }
1253
-
1254
- var head = document.head || document.getElementsByTagName('head')[0];
1255
- var style = document.createElement('style');
1256
- style.type = 'text/css';
1257
-
1258
- if (insertAt === 'top') {
1259
- if (head.firstChild) {
1260
- head.insertBefore(style, head.firstChild);
1261
- } else {
1262
- head.appendChild(style);
1263
- }
1264
- } else {
1265
- head.appendChild(style);
1266
- }
1267
-
1268
- if (style.styleSheet) {
1269
- style.styleSheet.cssText = css;
1270
- } else {
1271
- style.appendChild(document.createTextNode(css));
1272
- }
1266
+ role: "option",
1267
+ "aria-label": $options.getOptionLabel(option),
1268
+ "aria-selected": $options.isSelected(option),
1269
+ "aria-disabled": $options.isOptionDisabled(option),
1270
+ "aria-setsize": $options.ariaSetSize,
1271
+ "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
1272
+ onClick: function onClick($event) {
1273
+ return $options.onOptionSelect($event, option);
1274
+ },
1275
+ onMousemove: function onMousemove($event) {
1276
+ return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
1277
+ },
1278
+ "data-p-highlight": $options.isSelected(option),
1279
+ "data-p-focus": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
1280
+ "data-p-disabled": $options.isOptionDisabled(option)
1281
+ }, $options.getPTOptions(option, getItemOptions, i, 'item')), [_ctx.$slots.option ? vue.renderSlot(_ctx.$slots, "option", {
1282
+ key: 0,
1283
+ option: option,
1284
+ index: $options.getOptionIndex(i, getItemOptions)
1285
+ }, function () {
1286
+ return [vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)];
1287
+ }) : vue.renderSlot(_ctx.$slots, "item", {
1288
+ key: 1,
1289
+ item: option,
1290
+ index: $options.getOptionIndex(i, getItemOptions)
1291
+ }, function () {
1292
+ return [vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)];
1293
+ })], 16, _hoisted_7)), [[_directive_ripple]])], 64);
1294
+ }), 128)), !items || items && items.length === 0 ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1295
+ key: 0,
1296
+ "class": _ctx.cx('emptyMessage'),
1297
+ role: "option"
1298
+ }, _ctx.ptm('emptyMessage')), [vue.renderSlot(_ctx.$slots, "empty", {}, function () {
1299
+ return [vue.createTextVNode(vue.toDisplayString($options.searchResultMessageText), 1)];
1300
+ })], 16)) : vue.createCommentVNode("", true)], 16, _hoisted_5)];
1301
+ }),
1302
+ _: 2
1303
+ }, [_ctx.$slots.loader ? {
1304
+ name: "loader",
1305
+ fn: vue.withCtx(function (_ref2) {
1306
+ var options = _ref2.options;
1307
+ return [vue.renderSlot(_ctx.$slots, "loader", {
1308
+ options: options
1309
+ })];
1310
+ }),
1311
+ key: "0"
1312
+ } : undefined]), 1040, ["style", "items", "disabled", "pt"]), vue.renderSlot(_ctx.$slots, "footer", {
1313
+ value: _ctx.modelValue,
1314
+ suggestions: $options.visibleOptions
1315
+ }), vue.createElementVNode("span", vue.mergeProps({
1316
+ role: "status",
1317
+ "aria-live": "polite",
1318
+ "class": "p-hidden-accessible"
1319
+ }, _ctx.ptm('hiddenSelectedMessage'), {
1320
+ "data-p-hidden-accessible": true
1321
+ }), vue.toDisplayString($options.selectedMessageText), 17)], 16)) : vue.createCommentVNode("", true)];
1322
+ }),
1323
+ _: 3
1324
+ }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1325
+ }),
1326
+ _: 3
1327
+ }, 8, ["appendTo"])], 16);
1273
1328
  }
1274
1329
 
1275
- var css_248z = "\n.p-autocomplete {\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n";
1276
- styleInject(css_248z);
1277
-
1278
1330
  script.render = render;
1279
1331
 
1280
1332
  return script;
1281
1333
 
1282
- })(primevue.basecomponent, primevue.button, primevue.icons.chevrondown, primevue.icons.spinner, primevue.icons.timescircle, primevue.overlayeventbus, primevue.portal, primevue.ripple, primevue.utils, primevue.virtualscroller, Vue);
1334
+ })(primevue.button, primevue.icons.chevrondown, primevue.icons.spinner, primevue.icons.timescircle, primevue.overlayeventbus, primevue.portal, primevue.ripple, primevue.utils, primevue.virtualscroller, primevue.basecomponent, primevue.usestyle, Vue);