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,1131 +1,1191 @@
1
- import BaseComponent from 'primevue/basecomponent';
2
1
  import AngleRightIcon from 'primevue/icons/angleright';
3
2
  import ChevronDownIcon from 'primevue/icons/chevrondown';
4
3
  import SpinnerIcon from 'primevue/icons/spinner';
5
4
  import OverlayEventBus from 'primevue/overlayeventbus';
6
5
  import Portal from 'primevue/portal';
7
6
  import { ObjectUtils, DomHandler, UniqueComponentId, ZIndexUtils, ConnectedOverlayScrollHandler } from 'primevue/utils';
7
+ import BaseComponent from 'primevue/basecomponent';
8
+ import { useStyle } from 'primevue/usestyle';
8
9
  import Ripple from 'primevue/ripple';
9
- import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, Fragment, renderList, withDirectives, createBlock, resolveDynamicComponent, toDisplayString, normalizeClass, createCommentVNode, createElementVNode, renderSlot, createTextVNode, createVNode, withCtx, Transition } from 'vue';
10
+ import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, Fragment, renderList, withDirectives, createBlock, resolveDynamicComponent, toDisplayString, createCommentVNode, normalizeClass, createElementVNode, renderSlot, createTextVNode, createVNode, withCtx, Transition } from 'vue';
11
+
12
+ var styles = "\n.p-cascadeselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n}\n\n.p-cascadeselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.p-cascadeselect-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n\n.p-cascadeselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-cascadeselect .p-cascadeselect-panel {\n min-width: 100%;\n}\n\n.p-cascadeselect-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n}\n\n.p-cascadeselect-item-content {\n display: flex;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-cascadeselect-group-icon {\n margin-left: auto;\n}\n\n.p-cascadeselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n min-width: 100%;\n}\n\n.p-fluid .p-cascadeselect {\n display: flex;\n}\n\n.p-fluid .p-cascadeselect .p-cascadeselect-label {\n width: 1%;\n}\n\n.p-cascadeselect-sublist {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n display: none;\n}\n\n.p-cascadeselect-item-active {\n overflow: visible !important;\n}\n\n.p-cascadeselect-item-active > .p-cascadeselect-sublist {\n display: block;\n left: 100%;\n top: 0;\n}\n";
13
+ var inlineStyles = {
14
+ root: function root(_ref) {
15
+ var props = _ref.props;
16
+ return {
17
+ position: props.appendTo === 'self' ? 'relative' : undefined
18
+ };
19
+ }
20
+ };
21
+ var classes = {
22
+ root: function root(_ref2) {
23
+ var instance = _ref2.instance,
24
+ props = _ref2.props;
25
+ return ['p-cascadeselect p-component p-inputwrapper', {
26
+ 'p-disabled': props.disabled,
27
+ 'p-focus': instance.focused,
28
+ 'p-inputwrapper-filled': props.modelValue,
29
+ 'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
30
+ 'p-overlay-open': instance.overlayVisible
31
+ }];
32
+ },
33
+ label: function label(_ref3) {
34
+ var instance = _ref3.instance,
35
+ props = _ref3.props;
36
+ return ['p-cascadeselect-label p-inputtext', {
37
+ 'p-placeholder': instance.label === props.placeholder,
38
+ 'p-cascadeselect-label-empty': !instance.$slots['value'] && (instance.label === 'p-emptylabel' || instance.label.length === 0)
39
+ }];
40
+ },
41
+ dropdownButton: 'p-cascadeselect-trigger',
42
+ loadingIcon: 'p-cascadeselect-trigger-icon',
43
+ dropdownIcon: 'p-cascadeselect-trigger-icon',
44
+ panel: function panel(_ref4) {
45
+ var instance = _ref4.instance;
46
+ return ['p-cascadeselect-panel p-component', {
47
+ 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
48
+ 'p-ripple-disabled': instance.$primevue.config.ripple === false
49
+ }];
50
+ },
51
+ wrapper: 'p-cascadeselect-items-wrapper',
52
+ list: 'p-cascadeselect-panel p-cascadeselect-items',
53
+ item: function item(_ref5) {
54
+ var instance = _ref5.instance,
55
+ processedOption = _ref5.processedOption;
56
+ return ['p-cascadeselect-item', {
57
+ 'p-cascadeselect-item-group': instance.isOptionGroup(processedOption),
58
+ 'p-cascadeselect-item-active p-highlight': instance.isOptionActive(processedOption),
59
+ 'p-focus': instance.isOptionFocused(processedOption),
60
+ 'p-disabled': instance.isOptionDisabled(processedOption)
61
+ }];
62
+ },
63
+ content: 'p-cascadeselect-item-content',
64
+ text: 'p-cascadeselect-item-text',
65
+ groupIcon: 'p-cascadeselect-group-icon',
66
+ sublist: 'p-cascadeselect-sublist'
67
+ };
68
+ var _useStyle = useStyle(styles, {
69
+ name: 'cascadeselect',
70
+ manual: true
71
+ }),
72
+ loadStyle = _useStyle.load;
73
+ var script$2 = {
74
+ name: 'BaseCascadeSelect',
75
+ "extends": BaseComponent,
76
+ props: {
77
+ modelValue: null,
78
+ options: Array,
79
+ optionLabel: null,
80
+ optionValue: null,
81
+ optionDisabled: null,
82
+ optionGroupLabel: null,
83
+ optionGroupChildren: null,
84
+ placeholder: String,
85
+ disabled: Boolean,
86
+ dataKey: null,
87
+ inputId: {
88
+ type: String,
89
+ "default": null
90
+ },
91
+ inputClass: {
92
+ type: [String, Object],
93
+ "default": null
94
+ },
95
+ inputStyle: {
96
+ type: Object,
97
+ "default": null
98
+ },
99
+ inputProps: {
100
+ type: null,
101
+ "default": null
102
+ },
103
+ panelClass: {
104
+ type: [String, Object],
105
+ "default": null
106
+ },
107
+ panelStyle: {
108
+ type: Object,
109
+ "default": null
110
+ },
111
+ panelProps: {
112
+ type: null,
113
+ "default": null
114
+ },
115
+ appendTo: {
116
+ type: String,
117
+ "default": 'body'
118
+ },
119
+ loading: {
120
+ type: Boolean,
121
+ "default": false
122
+ },
123
+ dropdownIcon: {
124
+ type: String,
125
+ "default": undefined
126
+ },
127
+ loadingIcon: {
128
+ type: String,
129
+ "default": undefined
130
+ },
131
+ optionGroupIcon: {
132
+ type: String,
133
+ "default": undefined
134
+ },
135
+ autoOptionFocus: {
136
+ type: Boolean,
137
+ "default": true
138
+ },
139
+ selectOnFocus: {
140
+ type: Boolean,
141
+ "default": false
142
+ },
143
+ searchLocale: {
144
+ type: String,
145
+ "default": undefined
146
+ },
147
+ searchMessage: {
148
+ type: String,
149
+ "default": null
150
+ },
151
+ selectionMessage: {
152
+ type: String,
153
+ "default": null
154
+ },
155
+ emptySelectionMessage: {
156
+ type: String,
157
+ "default": null
158
+ },
159
+ emptySearchMessage: {
160
+ type: String,
161
+ "default": null
162
+ },
163
+ emptyMessage: {
164
+ type: String,
165
+ "default": null
166
+ },
167
+ tabindex: {
168
+ type: Number,
169
+ "default": 0
170
+ },
171
+ 'aria-labelledby': {
172
+ type: String,
173
+ "default": null
174
+ },
175
+ 'aria-label': {
176
+ type: String,
177
+ "default": null
178
+ }
179
+ },
180
+ css: {
181
+ classes: classes,
182
+ inlineStyles: inlineStyles,
183
+ loadStyle: loadStyle
184
+ },
185
+ provide: function provide() {
186
+ return {
187
+ $parentInstance: this
188
+ };
189
+ }
190
+ };
10
191
 
11
192
  var script$1 = {
12
- name: 'CascadeSelectSub',
13
- extends: BaseComponent,
14
- emits: ['option-change'],
15
- props: {
16
- selectId: String,
17
- focusedOptionId: String,
18
- options: Array,
19
- optionLabel: String,
20
- optionValue: String,
21
- optionDisabled: null,
22
- optionGroupIcon: String,
23
- optionGroupLabel: String,
24
- optionGroupChildren: Array,
25
- activeOptionPath: Array,
26
- level: Number,
27
- templates: null
28
- },
29
- mounted() {
30
- if (ObjectUtils.isNotEmpty(this.parentKey)) {
31
- this.position();
32
- }
193
+ name: 'CascadeSelectSub',
194
+ hostName: 'CascadeSelect',
195
+ "extends": BaseComponent,
196
+ emits: ['option-change'],
197
+ props: {
198
+ selectId: String,
199
+ focusedOptionId: String,
200
+ options: Array,
201
+ optionLabel: String,
202
+ optionValue: String,
203
+ optionDisabled: null,
204
+ optionGroupIcon: String,
205
+ optionGroupLabel: String,
206
+ optionGroupChildren: Array,
207
+ activeOptionPath: Array,
208
+ level: Number,
209
+ templates: null
210
+ },
211
+ mounted: function mounted() {
212
+ if (ObjectUtils.isNotEmpty(this.parentKey)) {
213
+ this.position();
214
+ }
215
+ },
216
+ methods: {
217
+ getOptionId: function getOptionId(processedOption) {
218
+ return "".concat(this.selectId, "_").concat(processedOption.key);
33
219
  },
34
- methods: {
35
- getOptionId(processedOption) {
36
- return `${this.selectId}_${processedOption.key}`;
37
- },
38
- getOptionLabel(processedOption) {
39
- return this.optionLabel ? ObjectUtils.resolveFieldData(processedOption.option, this.optionLabel) : processedOption.option;
40
- },
41
- getOptionValue(processedOption) {
42
- return this.optionValue ? ObjectUtils.resolveFieldData(processedOption.option, this.optionValue) : processedOption.option;
43
- },
44
- isOptionDisabled(processedOption) {
45
- return this.optionDisabled ? ObjectUtils.resolveFieldData(processedOption.option, this.optionDisabled) : false;
46
- },
47
- getOptionGroupLabel(processedOption) {
48
- return this.optionGroupLabel ? ObjectUtils.resolveFieldData(processedOption.option, this.optionGroupLabel) : null;
49
- },
50
- getOptionGroupChildren(processedOption) {
51
- return processedOption.children;
52
- },
53
- isOptionGroup(processedOption) {
54
- return ObjectUtils.isNotEmpty(processedOption.children);
55
- },
56
- isOptionSelected(processedOption) {
57
- return !this.isOptionGroup(processedOption) && this.isOptionActive(processedOption);
58
- },
59
- isOptionActive(processedOption) {
60
- return this.activeOptionPath.some((path) => path.key === processedOption.key);
61
- },
62
- isOptionFocused(processedOption) {
63
- return this.focusedOptionId === this.getOptionId(processedOption);
64
- },
65
- getOptionLabelToRender(processedOption) {
66
- return this.isOptionGroup(processedOption) ? this.getOptionGroupLabel(processedOption) : this.getOptionLabel(processedOption);
67
- },
68
- onOptionClick(event, processedOption) {
69
- this.$emit('option-change', { originalEvent: event, processedOption, isFocus: true });
70
- },
71
- onOptionChange(event) {
72
- this.$emit('option-change', event);
73
- },
74
- position() {
75
- const parentItem = this.$el.parentElement;
76
- const containerOffset = DomHandler.getOffset(parentItem);
77
- const viewport = DomHandler.getViewport();
78
- const sublistWidth = this.$el.offsetParent ? this.$el.offsetWidth : DomHandler.getHiddenElementOuterWidth(this.$el);
79
- const itemOuterWidth = DomHandler.getOuterWidth(parentItem.children[0]);
80
-
81
- if (parseInt(containerOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - DomHandler.calculateScrollbarWidth()) {
82
- this.$el.style.left = '-100%';
83
- }
84
- },
85
- getOptionClass(processedOption) {
86
- return [
87
- 'p-cascadeselect-item',
88
- {
89
- 'p-cascadeselect-item-group': this.isOptionGroup(processedOption),
90
- 'p-cascadeselect-item-active p-highlight': this.isOptionActive(processedOption),
91
- 'p-focus': this.isOptionFocused(processedOption),
92
- 'p-disabled': this.isOptionDisabled(processedOption)
93
- }
94
- ];
95
- }
220
+ getOptionLabel: function getOptionLabel(processedOption) {
221
+ return this.optionLabel ? ObjectUtils.resolveFieldData(processedOption.option, this.optionLabel) : processedOption.option;
222
+ },
223
+ getOptionValue: function getOptionValue(processedOption) {
224
+ return this.optionValue ? ObjectUtils.resolveFieldData(processedOption.option, this.optionValue) : processedOption.option;
225
+ },
226
+ isOptionDisabled: function isOptionDisabled(processedOption) {
227
+ return this.optionDisabled ? ObjectUtils.resolveFieldData(processedOption.option, this.optionDisabled) : false;
228
+ },
229
+ getOptionGroupLabel: function getOptionGroupLabel(processedOption) {
230
+ return this.optionGroupLabel ? ObjectUtils.resolveFieldData(processedOption.option, this.optionGroupLabel) : null;
231
+ },
232
+ getOptionGroupChildren: function getOptionGroupChildren(processedOption) {
233
+ return processedOption.children;
96
234
  },
97
- directives: {
98
- ripple: Ripple
235
+ isOptionGroup: function isOptionGroup(processedOption) {
236
+ return ObjectUtils.isNotEmpty(processedOption.children);
99
237
  },
100
- components: {
101
- AngleRightIcon: AngleRightIcon
238
+ isOptionSelected: function isOptionSelected(processedOption) {
239
+ return !this.isOptionGroup(processedOption) && this.isOptionActive(processedOption);
240
+ },
241
+ isOptionActive: function isOptionActive(processedOption) {
242
+ return this.activeOptionPath.some(function (path) {
243
+ return path.key === processedOption.key;
244
+ });
245
+ },
246
+ isOptionFocused: function isOptionFocused(processedOption) {
247
+ return this.focusedOptionId === this.getOptionId(processedOption);
248
+ },
249
+ getOptionLabelToRender: function getOptionLabelToRender(processedOption) {
250
+ return this.isOptionGroup(processedOption) ? this.getOptionGroupLabel(processedOption) : this.getOptionLabel(processedOption);
251
+ },
252
+ onOptionClick: function onOptionClick(event, processedOption) {
253
+ this.$emit('option-change', {
254
+ originalEvent: event,
255
+ processedOption: processedOption,
256
+ isFocus: true
257
+ });
258
+ },
259
+ onOptionChange: function onOptionChange(event) {
260
+ this.$emit('option-change', event);
261
+ },
262
+ position: function position() {
263
+ var parentItem = this.$el.parentElement;
264
+ var containerOffset = DomHandler.getOffset(parentItem);
265
+ var viewport = DomHandler.getViewport();
266
+ var sublistWidth = this.$el.offsetParent ? this.$el.offsetWidth : DomHandler.getHiddenElementOuterWidth(this.$el);
267
+ var itemOuterWidth = DomHandler.getOuterWidth(parentItem.children[0]);
268
+ if (parseInt(containerOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - DomHandler.calculateScrollbarWidth()) {
269
+ this.$el.style.left = '-100%';
270
+ }
102
271
  }
272
+ },
273
+ directives: {
274
+ ripple: Ripple
275
+ },
276
+ components: {
277
+ AngleRightIcon: AngleRightIcon
278
+ }
103
279
  };
104
280
 
105
- const _hoisted_1$1 = ["id", "aria-label", "aria-selected", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset"];
106
- const _hoisted_2 = ["onClick"];
107
-
281
+ var _hoisted_1$1 = ["id", "aria-label", "aria-selected", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset", "data-p-item-group", "data-p-highlight", "data-p-focus", "data-p-disabled"];
282
+ var _hoisted_2 = ["onClick"];
108
283
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
109
- const _component_CascadeSelectSub = resolveComponent("CascadeSelectSub", true);
110
- const _directive_ripple = resolveDirective("ripple");
111
-
112
- return (openBlock(), createElementBlock("ul", mergeProps({ class: "p-cascadeselect-panel p-cascadeselect-items" }, _ctx.ptm('list')), [
113
- (openBlock(true), createElementBlock(Fragment, null, renderList($props.options, (processedOption, index) => {
114
- return (openBlock(), createElementBlock("li", mergeProps({
115
- key: $options.getOptionLabelToRender(processedOption),
116
- id: $options.getOptionId(processedOption),
117
- class: $options.getOptionClass(processedOption),
118
- role: "treeitem",
119
- "aria-label": $options.getOptionLabelToRender(processedOption),
120
- "aria-selected": $options.isOptionGroup(processedOption) ? undefined : $options.isOptionSelected(processedOption),
121
- "aria-expanded": $options.isOptionGroup(processedOption) ? $options.isOptionActive(processedOption) : undefined,
122
- "aria-level": $props.level + 1,
123
- "aria-setsize": $props.options.length,
124
- "aria-posinset": index + 1
125
- }, _ctx.ptm('item')), [
126
- withDirectives((openBlock(), createElementBlock("div", mergeProps({
127
- class: "p-cascadeselect-item-content",
128
- onClick: $event => ($options.onOptionClick($event, processedOption))
129
- }, _ctx.ptm('content')), [
130
- ($props.templates['option'])
131
- ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['option']), {
132
- key: 0,
133
- option: processedOption.option
134
- }, null, 8, ["option"]))
135
- : (openBlock(), createElementBlock("span", mergeProps({
136
- key: 1,
137
- class: "p-cascadeselect-item-text"
138
- }, _ctx.ptm('text')), toDisplayString($options.getOptionLabelToRender(processedOption)), 17)),
139
- ($options.isOptionGroup(processedOption))
140
- ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['optiongroupicon'] ? $props.templates['optiongroupicon'] : $props.optionGroupIcon ? 'span' : 'AngleRightIcon'), {
141
- key: 2,
142
- class: normalizeClass(['p-cascadeselect-group-icon', $props.optionGroupIcon]),
143
- "aria-hidden": "true"
144
- }, null, 8, ["class"]))
145
- : createCommentVNode("", true)
146
- ], 16, _hoisted_2)), [
147
- [_directive_ripple]
148
- ]),
149
- ($options.isOptionGroup(processedOption) && $options.isOptionActive(processedOption))
150
- ? (openBlock(), createBlock(_component_CascadeSelectSub, {
151
- key: 0,
152
- role: "group",
153
- class: "p-cascadeselect-sublist",
154
- selectId: $props.selectId,
155
- focusedOptionId: $props.focusedOptionId,
156
- options: $options.getOptionGroupChildren(processedOption),
157
- activeOptionPath: $props.activeOptionPath,
158
- level: $props.level + 1,
159
- templates: $props.templates,
160
- optionLabel: $props.optionLabel,
161
- optionValue: $props.optionValue,
162
- optionDisabled: $props.optionDisabled,
163
- optionGroupIcon: $props.optionGroupIcon,
164
- optionGroupLabel: $props.optionGroupLabel,
165
- optionGroupChildren: $props.optionGroupChildren,
166
- onOptionChange: $options.onOptionChange,
167
- pt: _ctx.pt
168
- }, null, 8, ["selectId", "focusedOptionId", "options", "activeOptionPath", "level", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupIcon", "optionGroupLabel", "optionGroupChildren", "onOptionChange", "pt"]))
169
- : createCommentVNode("", true)
170
- ], 16, _hoisted_1$1))
171
- }), 128))
172
- ], 16))
284
+ var _component_AngleRightIcon = resolveComponent("AngleRightIcon");
285
+ var _component_CascadeSelectSub = resolveComponent("CascadeSelectSub", true);
286
+ var _directive_ripple = resolveDirective("ripple");
287
+ return openBlock(), createElementBlock("ul", mergeProps({
288
+ "class": _ctx.cx('list')
289
+ }, $props.level === 0 ? _ctx.ptm('list') : _ctx.ptm('sublist')), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.options, function (processedOption, index) {
290
+ return openBlock(), createElementBlock("li", mergeProps({
291
+ key: $options.getOptionLabelToRender(processedOption),
292
+ id: $options.getOptionId(processedOption),
293
+ "class": _ctx.cx('item', {
294
+ processedOption: processedOption
295
+ }),
296
+ role: "treeitem",
297
+ "aria-label": $options.getOptionLabelToRender(processedOption),
298
+ "aria-selected": $options.isOptionGroup(processedOption) ? undefined : $options.isOptionSelected(processedOption),
299
+ "aria-expanded": $options.isOptionGroup(processedOption) ? $options.isOptionActive(processedOption) : undefined,
300
+ "aria-level": $props.level + 1,
301
+ "aria-setsize": $props.options.length,
302
+ "aria-posinset": index + 1
303
+ }, _ctx.ptm('item'), {
304
+ "data-p-item-group": $options.isOptionGroup(processedOption),
305
+ "data-p-highlight": $options.isOptionActive(processedOption),
306
+ "data-p-focus": $options.isOptionFocused(processedOption),
307
+ "data-p-disabled": $options.isOptionDisabled(processedOption)
308
+ }), [withDirectives((openBlock(), createElementBlock("div", mergeProps({
309
+ "class": _ctx.cx('content'),
310
+ onClick: function onClick($event) {
311
+ return $options.onOptionClick($event, processedOption);
312
+ }
313
+ }, _ctx.ptm('content')), [$props.templates['option'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['option']), {
314
+ key: 0,
315
+ option: processedOption.option
316
+ }, null, 8, ["option"])) : (openBlock(), createElementBlock("span", mergeProps({
317
+ key: 1,
318
+ "class": _ctx.cx('text')
319
+ }, _ctx.ptm('text')), toDisplayString($options.getOptionLabelToRender(processedOption)), 17)), $options.isOptionGroup(processedOption) ? (openBlock(), createElementBlock(Fragment, {
320
+ key: 2
321
+ }, [$props.templates['optiongroupicon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['optiongroupicon']), {
322
+ key: 0,
323
+ "aria-hidden": "true"
324
+ })) : $props.optionGroupIcon ? (openBlock(), createElementBlock("span", mergeProps({
325
+ key: 1,
326
+ "class": [_ctx.cx('groupIcon'), $props.optionGroupIcon],
327
+ "aria-hidden": "true"
328
+ }, _ctx.ptm('groupIcon')), null, 16)) : (openBlock(), createBlock(_component_AngleRightIcon, mergeProps({
329
+ key: 2,
330
+ "class": _ctx.cx('groupIcon'),
331
+ "aria-hidden": "true"
332
+ }, _ctx.ptm('groupIcon')), null, 16, ["class"]))], 64)) : createCommentVNode("", true)], 16, _hoisted_2)), [[_directive_ripple]]), $options.isOptionGroup(processedOption) && $options.isOptionActive(processedOption) ? (openBlock(), createBlock(_component_CascadeSelectSub, {
333
+ key: 0,
334
+ role: "group",
335
+ "class": normalizeClass(_ctx.cx('sublist')),
336
+ selectId: $props.selectId,
337
+ focusedOptionId: $props.focusedOptionId,
338
+ options: $options.getOptionGroupChildren(processedOption),
339
+ activeOptionPath: $props.activeOptionPath,
340
+ level: $props.level + 1,
341
+ templates: $props.templates,
342
+ optionLabel: $props.optionLabel,
343
+ optionValue: $props.optionValue,
344
+ optionDisabled: $props.optionDisabled,
345
+ optionGroupIcon: $props.optionGroupIcon,
346
+ optionGroupLabel: $props.optionGroupLabel,
347
+ optionGroupChildren: $props.optionGroupChildren,
348
+ onOptionChange: $options.onOptionChange,
349
+ pt: _ctx.pt
350
+ }, null, 8, ["class", "selectId", "focusedOptionId", "options", "activeOptionPath", "level", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupIcon", "optionGroupLabel", "optionGroupChildren", "onOptionChange", "pt"])) : createCommentVNode("", true)], 16, _hoisted_1$1);
351
+ }), 128))], 16);
173
352
  }
174
353
 
175
354
  script$1.render = render$1;
176
355
 
177
356
  var script = {
178
- name: 'CascadeSelect',
179
- extends: BaseComponent,
180
- emits: ['update:modelValue', 'change', 'focus', 'blur', 'click', 'group-change', 'before-show', 'before-hide', 'hide', 'show'],
181
- props: {
182
- modelValue: null,
183
- options: Array,
184
- optionLabel: null,
185
- optionValue: null,
186
- optionDisabled: null,
187
- optionGroupLabel: null,
188
- optionGroupChildren: null,
189
- placeholder: String,
190
- disabled: Boolean,
191
- dataKey: null,
192
- inputId: {
193
- type: String,
194
- default: null
195
- },
196
- inputClass: {
197
- type: [String, Object],
198
- default: null
199
- },
200
- inputStyle: {
201
- type: Object,
202
- default: null
203
- },
204
- inputProps: {
205
- type: null,
206
- default: null
207
- },
208
- panelClass: {
209
- type: [String, Object],
210
- default: null
211
- },
212
- panelStyle: {
213
- type: Object,
214
- default: null
215
- },
216
- panelProps: {
217
- type: null,
218
- default: null
219
- },
220
- appendTo: {
221
- type: String,
222
- default: 'body'
223
- },
224
- loading: {
225
- type: Boolean,
226
- default: false
227
- },
228
- dropdownIcon: {
229
- type: String,
230
- default: undefined
231
- },
232
- loadingIcon: {
233
- type: String,
234
- default: undefined
235
- },
236
- optionGroupIcon: {
237
- type: String,
238
- default: undefined
239
- },
240
- autoOptionFocus: {
241
- type: Boolean,
242
- default: true
243
- },
244
- selectOnFocus: {
245
- type: Boolean,
246
- default: false
247
- },
248
- searchLocale: {
249
- type: String,
250
- default: undefined
251
- },
252
- searchMessage: {
253
- type: String,
254
- default: null
255
- },
256
- selectionMessage: {
257
- type: String,
258
- default: null
259
- },
260
- emptySelectionMessage: {
261
- type: String,
262
- default: null
263
- },
264
- emptySearchMessage: {
265
- type: String,
266
- default: null
267
- },
268
- emptyMessage: {
269
- type: String,
270
- default: null
271
- },
272
- tabindex: {
273
- type: Number,
274
- default: 0
275
- },
276
- 'aria-labelledby': {
277
- type: String,
278
- default: null
279
- },
280
- 'aria-label': {
281
- type: String,
282
- default: null
283
- }
357
+ name: 'CascadeSelect',
358
+ "extends": script$2,
359
+ emits: ['update:modelValue', 'change', 'focus', 'blur', 'click', 'group-change', 'before-show', 'before-hide', 'hide', 'show'],
360
+ outsideClickListener: null,
361
+ scrollHandler: null,
362
+ resizeListener: null,
363
+ overlay: null,
364
+ searchTimeout: null,
365
+ searchValue: null,
366
+ focusOnHover: false,
367
+ data: function data() {
368
+ return {
369
+ id: this.$attrs.id,
370
+ focused: false,
371
+ focusedOptionInfo: {
372
+ index: -1,
373
+ level: 0,
374
+ parentKey: ''
375
+ },
376
+ activeOptionPath: [],
377
+ overlayVisible: false,
378
+ dirty: false
379
+ };
380
+ },
381
+ watch: {
382
+ '$attrs.id': function $attrsId(newValue) {
383
+ this.id = newValue || UniqueComponentId();
384
+ },
385
+ options: function options() {
386
+ this.autoUpdateModel();
387
+ }
388
+ },
389
+ mounted: function mounted() {
390
+ this.id = this.id || UniqueComponentId();
391
+ this.autoUpdateModel();
392
+ },
393
+ beforeUnmount: function beforeUnmount() {
394
+ this.unbindOutsideClickListener();
395
+ this.unbindResizeListener();
396
+ if (this.scrollHandler) {
397
+ this.scrollHandler.destroy();
398
+ this.scrollHandler = null;
399
+ }
400
+ if (this.overlay) {
401
+ ZIndexUtils.clear(this.overlay);
402
+ this.overlay = null;
403
+ }
404
+ },
405
+ methods: {
406
+ getOptionLabel: function getOptionLabel(option) {
407
+ return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
408
+ },
409
+ getOptionValue: function getOptionValue(option) {
410
+ return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
411
+ },
412
+ isOptionDisabled: function isOptionDisabled(option) {
413
+ return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
414
+ },
415
+ getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
416
+ return this.optionGroupLabel ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel) : null;
417
+ },
418
+ getOptionGroupChildren: function getOptionGroupChildren(optionGroup, level) {
419
+ return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren[level]);
284
420
  },
285
- outsideClickListener: null,
286
- scrollHandler: null,
287
- resizeListener: null,
288
- overlay: null,
289
- searchTimeout: null,
290
- searchValue: null,
291
- focusOnHover: false,
292
- data() {
293
- return {
294
- id: this.$attrs.id,
295
- focused: false,
296
- focusedOptionInfo: { index: -1, level: 0, parentKey: '' },
297
- activeOptionPath: [],
298
- overlayVisible: false,
299
- dirty: false
421
+ isOptionGroup: function isOptionGroup(option, level) {
422
+ return Object.prototype.hasOwnProperty.call(option, this.optionGroupChildren[level]);
423
+ },
424
+ getProccessedOptionLabel: function getProccessedOptionLabel(processedOption) {
425
+ var grouped = this.isProccessedOptionGroup(processedOption);
426
+ return grouped ? this.getOptionGroupLabel(processedOption.option, processedOption.level) : this.getOptionLabel(processedOption.option);
427
+ },
428
+ isProccessedOptionGroup: function isProccessedOptionGroup(processedOption) {
429
+ return ObjectUtils.isNotEmpty(processedOption.children);
430
+ },
431
+ show: function show(isFocus) {
432
+ this.$emit('before-show');
433
+ this.overlayVisible = true;
434
+ this.activeOptionPath = this.hasSelectedOption ? this.findOptionPathByValue(this.modelValue) : this.activeOptionPath;
435
+ if (this.hasSelectedOption && ObjectUtils.isNotEmpty(this.activeOptionPath)) {
436
+ var processedOption = this.activeOptionPath[this.activeOptionPath.length - 1];
437
+ this.focusedOptionInfo = {
438
+ index: this.autoOptionFocus ? processedOption.index : -1,
439
+ level: processedOption.level,
440
+ parentKey: processedOption.parentKey
441
+ };
442
+ } else {
443
+ this.focusedOptionInfo = {
444
+ index: this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1,
445
+ level: 0,
446
+ parentKey: ''
300
447
  };
448
+ }
449
+ isFocus && DomHandler.focus(this.$refs.focusInput);
301
450
  },
302
- watch: {
303
- '$attrs.id': function (newValue) {
304
- this.id = newValue || UniqueComponentId();
305
- },
306
- options() {
307
- this.autoUpdateModel();
308
- }
451
+ hide: function hide(isFocus) {
452
+ var _this = this;
453
+ var _hide = function _hide() {
454
+ _this.$emit('before-hide');
455
+ _this.overlayVisible = false;
456
+ _this.activeOptionPath = [];
457
+ _this.focusedOptionInfo = {
458
+ index: -1,
459
+ level: 0,
460
+ parentKey: ''
461
+ };
462
+ isFocus && DomHandler.focus(_this.$refs.focusInput);
463
+ };
464
+ setTimeout(function () {
465
+ _hide();
466
+ }, 0); // For ScreenReaders
309
467
  },
310
- mounted() {
311
- this.id = this.id || UniqueComponentId();
312
-
313
- this.autoUpdateModel();
468
+ onFocus: function onFocus(event) {
469
+ if (this.disabled) {
470
+ // For ScreenReaders
471
+ return;
472
+ }
473
+ this.focused = true;
474
+ this.$emit('focus', event);
314
475
  },
315
- beforeUnmount() {
316
- this.unbindOutsideClickListener();
317
- this.unbindResizeListener();
318
-
319
- if (this.scrollHandler) {
320
- this.scrollHandler.destroy();
321
- this.scrollHandler = null;
476
+ onBlur: function onBlur(event) {
477
+ this.focused = false;
478
+ this.focusedOptionInfo = {
479
+ index: -1,
480
+ level: 0,
481
+ parentKey: ''
482
+ };
483
+ this.searchValue = '';
484
+ this.$emit('blur', event);
485
+ },
486
+ onKeyDown: function onKeyDown(event) {
487
+ if (this.disabled || this.loading) {
488
+ event.preventDefault();
489
+ return;
490
+ }
491
+ var metaKey = event.metaKey || event.ctrlKey;
492
+ switch (event.code) {
493
+ case 'ArrowDown':
494
+ this.onArrowDownKey(event);
495
+ break;
496
+ case 'ArrowUp':
497
+ this.onArrowUpKey(event);
498
+ break;
499
+ case 'ArrowLeft':
500
+ this.onArrowLeftKey(event);
501
+ break;
502
+ case 'ArrowRight':
503
+ this.onArrowRightKey(event);
504
+ break;
505
+ case 'Home':
506
+ this.onHomeKey(event);
507
+ break;
508
+ case 'End':
509
+ this.onEndKey(event);
510
+ break;
511
+ case 'Space':
512
+ this.onSpaceKey(event);
513
+ break;
514
+ case 'Enter':
515
+ this.onEnterKey(event);
516
+ break;
517
+ case 'Escape':
518
+ this.onEscapeKey(event);
519
+ break;
520
+ case 'Tab':
521
+ this.onTabKey(event);
522
+ break;
523
+ case 'PageDown':
524
+ case 'PageUp':
525
+ case 'Backspace':
526
+ case 'ShiftLeft':
527
+ case 'ShiftRight':
528
+ //NOOP
529
+ break;
530
+ default:
531
+ if (!metaKey && ObjectUtils.isPrintableCharacter(event.key)) {
532
+ !this.overlayVisible && this.show();
533
+ this.searchOptions(event, event.key);
534
+ }
535
+ break;
536
+ }
537
+ },
538
+ onOptionChange: function onOptionChange(event) {
539
+ var originalEvent = event.originalEvent,
540
+ processedOption = event.processedOption,
541
+ isFocus = event.isFocus,
542
+ isHide = event.isHide;
543
+ if (ObjectUtils.isEmpty(processedOption)) return;
544
+ var index = processedOption.index,
545
+ level = processedOption.level,
546
+ parentKey = processedOption.parentKey,
547
+ children = processedOption.children;
548
+ var grouped = ObjectUtils.isNotEmpty(children);
549
+ var activeOptionPath = this.activeOptionPath.filter(function (p) {
550
+ return p.parentKey !== parentKey;
551
+ });
552
+ activeOptionPath.push(processedOption);
553
+ this.focusedOptionInfo = {
554
+ index: index,
555
+ level: level,
556
+ parentKey: parentKey
557
+ };
558
+ this.activeOptionPath = activeOptionPath;
559
+ grouped ? this.onOptionGroupSelect(originalEvent, processedOption) : this.onOptionSelect(originalEvent, processedOption, isHide);
560
+ isFocus && DomHandler.focus(this.$refs.focusInput);
561
+ },
562
+ onOptionSelect: function onOptionSelect(event, processedOption) {
563
+ var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
564
+ var value = this.getOptionValue(processedOption.option);
565
+ this.activeOptionPath.forEach(function (p) {
566
+ return p.selected = true;
567
+ });
568
+ this.updateModel(event, value);
569
+ isHide && this.hide(true);
570
+ },
571
+ onOptionGroupSelect: function onOptionGroupSelect(event, processedOption) {
572
+ this.dirty = true;
573
+ this.$emit('group-change', {
574
+ originalEvent: event,
575
+ value: processedOption.option
576
+ });
577
+ },
578
+ onContainerClick: function onContainerClick(event) {
579
+ if (this.disabled || this.loading) {
580
+ return;
581
+ }
582
+ if (!this.overlay || !this.overlay.contains(event.target)) {
583
+ this.overlayVisible ? this.hide() : this.show();
584
+ DomHandler.focus(this.$refs.focusInput);
585
+ }
586
+ this.$emit('click', event);
587
+ },
588
+ onOverlayClick: function onOverlayClick(event) {
589
+ OverlayEventBus.emit('overlay-click', {
590
+ originalEvent: event,
591
+ target: this.$el
592
+ });
593
+ },
594
+ onOverlayKeyDown: function onOverlayKeyDown(event) {
595
+ switch (event.code) {
596
+ case 'Escape':
597
+ this.onEscapeKey(event);
598
+ break;
599
+ }
600
+ },
601
+ onArrowDownKey: function onArrowDownKey(event) {
602
+ var optionIndex = this.focusedOptionInfo.index !== -1 ? this.findNextOptionIndex(this.focusedOptionInfo.index) : this.findFirstFocusedOptionIndex();
603
+ this.changeFocusedOptionIndex(event, optionIndex);
604
+ !this.overlayVisible && this.show();
605
+ event.preventDefault();
606
+ },
607
+ onArrowUpKey: function onArrowUpKey(event) {
608
+ if (event.altKey) {
609
+ if (this.focusedOptionInfo.index !== -1) {
610
+ var processedOption = this.visibleOptions[this.focusedOptionInfo.index];
611
+ var grouped = this.isProccessedOptionGroup(processedOption);
612
+ !grouped && this.onOptionChange({
613
+ originalEvent: event,
614
+ processedOption: processedOption
615
+ });
322
616
  }
323
-
324
- if (this.overlay) {
325
- ZIndexUtils.clear(this.overlay);
326
- this.overlay = null;
617
+ this.overlayVisible && this.hide();
618
+ event.preventDefault();
619
+ } else {
620
+ var optionIndex = this.focusedOptionInfo.index !== -1 ? this.findPrevOptionIndex(this.focusedOptionInfo.index) : this.findLastFocusedOptionIndex();
621
+ this.changeFocusedOptionIndex(event, optionIndex);
622
+ !this.overlayVisible && this.show();
623
+ event.preventDefault();
624
+ }
625
+ },
626
+ onArrowLeftKey: function onArrowLeftKey(event) {
627
+ var _this2 = this;
628
+ if (this.overlayVisible) {
629
+ var processedOption = this.visibleOptions[this.focusedOptionInfo.index];
630
+ var parentOption = this.activeOptionPath.find(function (p) {
631
+ return p.key === processedOption.parentKey;
632
+ });
633
+ var matched = this.focusedOptionInfo.parentKey === '' || parentOption && parentOption.key === this.focusedOptionInfo.parentKey;
634
+ var root = ObjectUtils.isEmpty(processedOption.parent);
635
+ if (matched) {
636
+ this.activeOptionPath = this.activeOptionPath.filter(function (p) {
637
+ return p.parentKey !== _this2.focusedOptionInfo.parentKey;
638
+ });
639
+ }
640
+ if (!root) {
641
+ this.focusedOptionInfo = {
642
+ index: -1,
643
+ parentKey: parentOption ? parentOption.parentKey : ''
644
+ };
645
+ this.searchValue = '';
646
+ this.onArrowDownKey(event);
327
647
  }
648
+ event.preventDefault();
649
+ }
328
650
  },
329
- methods: {
330
- getOptionLabel(option) {
331
- return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
332
- },
333
- getOptionValue(option) {
334
- return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
335
- },
336
- isOptionDisabled(option) {
337
- return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
338
- },
339
- getOptionGroupLabel(optionGroup) {
340
- return this.optionGroupLabel ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel) : null;
341
- },
342
- getOptionGroupChildren(optionGroup, level) {
343
- return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren[level]);
344
- },
345
- isOptionGroup(option, level) {
346
- return Object.prototype.hasOwnProperty.call(option, this.optionGroupChildren[level]);
347
- },
348
- getProccessedOptionLabel(processedOption) {
349
- const grouped = this.isProccessedOptionGroup(processedOption);
350
-
351
- return grouped ? this.getOptionGroupLabel(processedOption.option, processedOption.level) : this.getOptionLabel(processedOption.option);
352
- },
353
- isProccessedOptionGroup(processedOption) {
354
- return ObjectUtils.isNotEmpty(processedOption.children);
355
- },
356
- show(isFocus) {
357
- this.$emit('before-show');
358
- this.overlayVisible = true;
359
- this.activeOptionPath = this.hasSelectedOption ? this.findOptionPathByValue(this.modelValue) : this.activeOptionPath;
360
-
361
- if (this.hasSelectedOption && ObjectUtils.isNotEmpty(this.activeOptionPath)) {
362
- const processedOption = this.activeOptionPath[this.activeOptionPath.length - 1];
363
-
364
- this.focusedOptionInfo = { index: this.autoOptionFocus ? processedOption.index : -1, level: processedOption.level, parentKey: processedOption.parentKey };
365
- } else {
366
- this.focusedOptionInfo = { index: this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1, level: 0, parentKey: '' };
367
- }
368
-
369
- isFocus && DomHandler.focus(this.$refs.focusInput);
370
- },
371
- hide(isFocus) {
372
- const _hide = () => {
373
- this.$emit('before-hide');
374
- this.overlayVisible = false;
375
- this.activeOptionPath = [];
376
- this.focusedOptionInfo = { index: -1, level: 0, parentKey: '' };
377
-
378
- isFocus && DomHandler.focus(this.$refs.focusInput);
651
+ onArrowRightKey: function onArrowRightKey(event) {
652
+ if (this.overlayVisible) {
653
+ var processedOption = this.visibleOptions[this.focusedOptionInfo.index];
654
+ var grouped = this.isProccessedOptionGroup(processedOption);
655
+ if (grouped) {
656
+ var matched = this.activeOptionPath.some(function (p) {
657
+ return processedOption.key === p.key;
658
+ });
659
+ if (matched) {
660
+ this.focusedOptionInfo = {
661
+ index: -1,
662
+ parentKey: processedOption.key
379
663
  };
380
-
381
- setTimeout(() => {
382
- _hide();
383
- }, 0); // For ScreenReaders
384
- },
385
- onFocus(event) {
386
- if (this.disabled) {
387
- // For ScreenReaders
388
- return;
389
- }
390
-
391
- this.focused = true;
392
- this.$emit('focus', event);
393
- },
394
- onBlur(event) {
395
- this.focused = false;
396
- this.focusedOptionInfo = { index: -1, level: 0, parentKey: '' };
397
664
  this.searchValue = '';
398
- this.$emit('blur', event);
399
- },
400
- onKeyDown(event) {
401
- if (this.disabled || this.loading) {
402
- event.preventDefault();
403
-
404
- return;
405
- }
406
-
407
- const metaKey = event.metaKey || event.ctrlKey;
408
-
409
- switch (event.code) {
410
- case 'ArrowDown':
411
- this.onArrowDownKey(event);
412
- break;
413
-
414
- case 'ArrowUp':
415
- this.onArrowUpKey(event);
416
- break;
417
-
418
- case 'ArrowLeft':
419
- this.onArrowLeftKey(event);
420
- break;
421
-
422
- case 'ArrowRight':
423
- this.onArrowRightKey(event);
424
- break;
425
-
426
- case 'Home':
427
- this.onHomeKey(event);
428
- break;
429
-
430
- case 'End':
431
- this.onEndKey(event);
432
- break;
433
-
434
- case 'Space':
435
- this.onSpaceKey(event);
436
- break;
437
-
438
- case 'Enter':
439
- this.onEnterKey(event);
440
- break;
441
-
442
- case 'Escape':
443
- this.onEscapeKey(event);
444
- break;
445
-
446
- case 'Tab':
447
- this.onTabKey(event);
448
- break;
449
-
450
- case 'PageDown':
451
- case 'PageUp':
452
- case 'Backspace':
453
- case 'ShiftLeft':
454
- case 'ShiftRight':
455
- //NOOP
456
- break;
457
-
458
- default:
459
- if (!metaKey && ObjectUtils.isPrintableCharacter(event.key)) {
460
- !this.overlayVisible && this.show();
461
- this.searchOptions(event, event.key);
462
- }
463
-
464
- break;
465
- }
466
- },
467
- onOptionChange(event) {
468
- const { originalEvent, processedOption, isFocus, isHide } = event;
469
-
470
- if (ObjectUtils.isEmpty(processedOption)) return;
471
-
472
- const { index, level, parentKey, children } = processedOption;
473
- const grouped = ObjectUtils.isNotEmpty(children);
474
-
475
- const activeOptionPath = this.activeOptionPath.filter((p) => p.parentKey !== parentKey);
476
-
477
- activeOptionPath.push(processedOption);
478
-
479
- this.focusedOptionInfo = { index, level, parentKey };
480
- this.activeOptionPath = activeOptionPath;
481
-
482
- grouped ? this.onOptionGroupSelect(originalEvent, processedOption) : this.onOptionSelect(originalEvent, processedOption, isHide);
483
- isFocus && DomHandler.focus(this.$refs.focusInput);
484
- },
485
- onOptionSelect(event, processedOption, isHide = true) {
486
- const value = this.getOptionValue(processedOption.option);
487
-
488
- this.activeOptionPath.forEach((p) => (p.selected = true));
489
- this.updateModel(event, value);
490
- isHide && this.hide(true);
491
- },
492
- onOptionGroupSelect(event, processedOption) {
493
- this.dirty = true;
494
- this.$emit('group-change', { originalEvent: event, value: processedOption.option });
495
- },
496
- onContainerClick(event) {
497
- if (this.disabled || this.loading) {
498
- return;
499
- }
500
-
501
- if (!this.overlay || !this.overlay.contains(event.target)) {
502
- this.overlayVisible ? this.hide() : this.show();
503
- DomHandler.focus(this.$refs.focusInput);
504
- }
505
-
506
- this.$emit('click', event);
507
- },
508
- onOverlayClick(event) {
509
- OverlayEventBus.emit('overlay-click', {
510
- originalEvent: event,
511
- target: this.$el
665
+ this.onArrowDownKey(event);
666
+ } else {
667
+ this.onOptionChange({
668
+ originalEvent: event,
669
+ processedOption: processedOption
512
670
  });
513
- },
514
- onOverlayKeyDown(event) {
515
- switch (event.code) {
516
- case 'Escape':
517
- this.onEscapeKey(event);
518
- break;
519
- }
520
- },
521
- onArrowDownKey(event) {
522
- const optionIndex = this.focusedOptionInfo.index !== -1 ? this.findNextOptionIndex(this.focusedOptionInfo.index) : this.findFirstFocusedOptionIndex();
523
-
524
- this.changeFocusedOptionIndex(event, optionIndex);
525
-
526
- !this.overlayVisible && this.show();
527
- event.preventDefault();
528
- },
529
- onArrowUpKey(event) {
530
- if (event.altKey) {
531
- if (this.focusedOptionInfo.index !== -1) {
532
- const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
533
- const grouped = this.isProccessedOptionGroup(processedOption);
534
-
535
- !grouped && this.onOptionChange({ originalEvent: event, processedOption });
536
- }
537
-
538
- this.overlayVisible && this.hide();
539
- event.preventDefault();
540
- } else {
541
- const optionIndex = this.focusedOptionInfo.index !== -1 ? this.findPrevOptionIndex(this.focusedOptionInfo.index) : this.findLastFocusedOptionIndex();
542
-
543
- this.changeFocusedOptionIndex(event, optionIndex);
544
-
545
- !this.overlayVisible && this.show();
546
- event.preventDefault();
547
- }
548
- },
549
- onArrowLeftKey(event) {
550
- if (this.overlayVisible) {
551
- const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
552
- const parentOption = this.activeOptionPath.find((p) => p.key === processedOption.parentKey);
553
- const matched = this.focusedOptionInfo.parentKey === '' || (parentOption && parentOption.key === this.focusedOptionInfo.parentKey);
554
- const root = ObjectUtils.isEmpty(processedOption.parent);
555
-
556
- if (matched) {
557
- this.activeOptionPath = this.activeOptionPath.filter((p) => p.parentKey !== this.focusedOptionInfo.parentKey);
558
- }
559
-
560
- if (!root) {
561
- this.focusedOptionInfo = { index: -1, parentKey: parentOption ? parentOption.parentKey : '' };
562
- this.searchValue = '';
563
- this.onArrowDownKey(event);
564
- }
565
-
566
- event.preventDefault();
567
- }
568
- },
569
- onArrowRightKey(event) {
570
- if (this.overlayVisible) {
571
- const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
572
- const grouped = this.isProccessedOptionGroup(processedOption);
573
-
574
- if (grouped) {
575
- const matched = this.activeOptionPath.some((p) => processedOption.key === p.key);
576
-
577
- if (matched) {
578
- this.focusedOptionInfo = { index: -1, parentKey: processedOption.key };
579
- this.searchValue = '';
580
- this.onArrowDownKey(event);
581
- } else {
582
- this.onOptionChange({ originalEvent: event, processedOption });
583
- }
584
- }
585
-
586
- event.preventDefault();
587
- }
588
- },
589
- onHomeKey(event) {
590
- this.changeFocusedOptionIndex(event, this.findFirstOptionIndex());
591
-
592
- !this.overlayVisible && this.show();
593
- event.preventDefault();
594
- },
595
- onEndKey(event) {
596
- this.changeFocusedOptionIndex(event, this.findLastOptionIndex());
597
-
598
- !this.overlayVisible && this.show();
599
- event.preventDefault();
600
- },
601
- onEnterKey(event) {
602
- if (!this.overlayVisible) {
603
- this.onArrowDownKey(event);
604
- } else {
605
- if (this.focusedOptionInfo.index !== -1) {
606
- const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
607
- const grouped = this.isProccessedOptionGroup(processedOption);
608
-
609
- this.onOptionChange({ originalEvent: event, processedOption });
610
- !grouped && this.hide();
611
- }
612
- }
613
-
614
- event.preventDefault();
615
- },
616
- onSpaceKey(event) {
617
- this.onEnterKey(event);
618
- },
619
- onEscapeKey(event) {
620
- this.overlayVisible && this.hide(true);
621
- event.preventDefault();
622
- },
623
- onTabKey(event) {
624
- if (this.focusedOptionInfo.index !== -1) {
625
- const processedOption = this.visibleOptions[this.focusedOptionInfo.index];
626
- const grouped = this.isProccessedOptionGroup(processedOption);
627
-
628
- !grouped && this.onOptionChange({ originalEvent: event, processedOption });
629
- }
630
-
631
- this.overlayVisible && this.hide();
632
- },
633
- onOverlayEnter(el) {
634
- ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
635
- this.alignOverlay();
636
- this.scrollInView();
637
- },
638
- onOverlayAfterEnter() {
639
- this.bindOutsideClickListener();
640
- this.bindScrollListener();
641
- this.bindResizeListener();
642
-
643
- this.$emit('show');
644
- },
645
- onOverlayLeave() {
646
- this.unbindOutsideClickListener();
647
- this.unbindScrollListener();
648
- this.unbindResizeListener();
649
-
650
- this.$emit('hide');
651
- this.overlay = null;
652
- this.dirty = false;
653
- },
654
- onOverlayAfterLeave(el) {
655
- ZIndexUtils.clear(el);
656
- },
657
- alignOverlay() {
658
- if (this.appendTo === 'self') {
659
- DomHandler.relativePosition(this.overlay, this.$el);
660
- } else {
661
- this.overlay.style.minWidth = DomHandler.getOuterWidth(this.$el) + 'px';
662
- DomHandler.absolutePosition(this.overlay, this.$el);
663
- }
664
- },
665
- bindOutsideClickListener() {
666
- if (!this.outsideClickListener) {
667
- this.outsideClickListener = (event) => {
668
- if (this.overlayVisible && this.overlay && !this.$el.contains(event.target) && !this.overlay.contains(event.target)) {
669
- this.hide();
670
- }
671
- };
672
-
673
- document.addEventListener('click', this.outsideClickListener);
674
- }
675
- },
676
- unbindOutsideClickListener() {
677
- if (this.outsideClickListener) {
678
- document.removeEventListener('click', this.outsideClickListener);
679
- this.outsideClickListener = null;
680
- }
681
- },
682
- bindScrollListener() {
683
- if (!this.scrollHandler) {
684
- this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, () => {
685
- if (this.overlayVisible) {
686
- this.hide();
687
- }
688
- });
689
- }
690
-
691
- this.scrollHandler.bindScrollListener();
692
- },
693
- unbindScrollListener() {
694
- if (this.scrollHandler) {
695
- this.scrollHandler.unbindScrollListener();
696
- }
697
- },
698
- bindResizeListener() {
699
- if (!this.resizeListener) {
700
- this.resizeListener = () => {
701
- if (this.overlayVisible && !DomHandler.isTouchDevice()) {
702
- this.hide();
703
- }
704
- };
705
-
706
- window.addEventListener('resize', this.resizeListener);
707
- }
708
- },
709
- unbindResizeListener() {
710
- if (this.resizeListener) {
711
- window.removeEventListener('resize', this.resizeListener);
712
- this.resizeListener = null;
713
- }
714
- },
715
- isOptionMatched(processedOption) {
716
- return this.isValidOption(processedOption) && this.getProccessedOptionLabel(processedOption).toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale));
717
- },
718
- isValidOption(processedOption) {
719
- return !!processedOption && !this.isOptionDisabled(processedOption.option);
720
- },
721
- isValidSelectedOption(processedOption) {
722
- return this.isValidOption(processedOption) && this.isSelected(processedOption);
723
- },
724
- isSelected(processedOption) {
725
- return this.activeOptionPath.some((p) => p.key === processedOption.key);
726
- },
727
- findFirstOptionIndex() {
728
- return this.visibleOptions.findIndex((processedOption) => this.isValidOption(processedOption));
729
- },
730
- findLastOptionIndex() {
731
- return ObjectUtils.findLastIndex(this.visibleOptions, (processedOption) => this.isValidOption(processedOption));
732
- },
733
- findNextOptionIndex(index) {
734
- const matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((processedOption) => this.isValidOption(processedOption)) : -1;
735
-
736
- return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
737
- },
738
- findPrevOptionIndex(index) {
739
- const matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (processedOption) => this.isValidOption(processedOption)) : -1;
740
-
741
- return matchedOptionIndex > -1 ? matchedOptionIndex : index;
742
- },
743
- findSelectedOptionIndex() {
744
- return this.visibleOptions.findIndex((processedOption) => this.isValidSelectedOption(processedOption));
745
- },
746
- findFirstFocusedOptionIndex() {
747
- const selectedIndex = this.findSelectedOptionIndex();
748
-
749
- return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
750
- },
751
- findLastFocusedOptionIndex() {
752
- const selectedIndex = this.findSelectedOptionIndex();
753
-
754
- return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
755
- },
756
- findOptionPathByValue(value, processedOptions, level = 0) {
757
- processedOptions = processedOptions || (level === 0 && this.processedOptions);
758
-
759
- if (!processedOptions) return null;
760
- if (ObjectUtils.isEmpty(value)) return [];
761
-
762
- for (let i = 0; i < processedOptions.length; i++) {
763
- const processedOption = processedOptions[i];
764
-
765
- if (ObjectUtils.equals(value, this.getOptionValue(processedOption.option), this.equalityKey)) {
766
- return [processedOption];
767
- }
768
-
769
- const matchedOptions = this.findOptionPathByValue(value, processedOption.children, level + 1);
770
-
771
- if (matchedOptions) {
772
- matchedOptions.unshift(processedOption);
773
-
774
- return matchedOptions;
775
- }
776
- }
777
- },
778
- searchOptions(event, char) {
779
- this.searchValue = (this.searchValue || '') + char;
780
-
781
- let optionIndex = -1;
782
- let matched = false;
783
-
784
- if (this.focusedOptionInfo.index !== -1) {
785
- optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex((processedOption) => this.isOptionMatched(processedOption));
786
- optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex((processedOption) => this.isOptionMatched(processedOption)) : optionIndex + this.focusedOptionInfo.index;
787
- } else {
788
- optionIndex = this.visibleOptions.findIndex((processedOption) => this.isOptionMatched(processedOption));
789
- }
790
-
791
- if (optionIndex !== -1) {
792
- matched = true;
793
- }
794
-
795
- if (optionIndex === -1 && this.focusedOptionInfo.index === -1) {
796
- optionIndex = this.findFirstFocusedOptionIndex();
797
- }
798
-
799
- if (optionIndex !== -1) {
800
- this.changeFocusedOptionIndex(event, optionIndex);
801
- }
802
-
803
- if (this.searchTimeout) {
804
- clearTimeout(this.searchTimeout);
805
- }
806
-
807
- this.searchTimeout = setTimeout(() => {
808
- this.searchValue = '';
809
- this.searchTimeout = null;
810
- }, 500);
811
-
812
- return matched;
813
- },
814
- changeFocusedOptionIndex(event, index) {
815
- if (this.focusedOptionInfo.index !== index) {
816
- this.focusedOptionInfo.index = index;
817
- this.scrollInView();
818
-
819
- if (this.selectOnFocus) {
820
- this.onOptionChange({ originalEvent: event, processedOption: this.visibleOptions[index], isHide: false });
821
- }
822
- }
823
- },
824
- scrollInView(index = -1) {
825
- const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
826
- const element = DomHandler.findSingle(this.list, `li[id="${id}"]`);
827
-
828
- if (element) {
829
- element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
830
- }
831
- },
832
- autoUpdateModel() {
833
- if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
834
- this.focusedOptionInfo.index = this.findFirstFocusedOptionIndex();
835
- this.onOptionChange({ processedOption: this.visibleOptions[this.focusedOptionInfo.index], isHide: false });
836
-
837
- !this.overlayVisible && (this.focusedOptionInfo = { index: -1, level: 0, parentKey: '' });
838
- }
839
- },
840
- updateModel(event, value) {
841
- this.$emit('update:modelValue', value);
842
- this.$emit('change', { originalEvent: event, value });
843
- },
844
- createProcessedOptions(options, level = 0, parent = {}, parentKey = '') {
845
- const processedOptions = [];
846
-
847
- options &&
848
- options.forEach((option, index) => {
849
- const key = (parentKey !== '' ? parentKey + '_' : '') + index;
850
- const newOption = {
851
- option,
852
- index,
853
- level,
854
- key,
855
- parent,
856
- parentKey
857
- };
858
-
859
- newOption['children'] = this.createProcessedOptions(this.getOptionGroupChildren(option, level), level + 1, newOption, key);
860
- processedOptions.push(newOption);
861
- });
862
-
863
- return processedOptions;
864
- },
865
- overlayRef(el) {
866
- this.overlay = el;
671
+ }
867
672
  }
673
+ event.preventDefault();
674
+ }
868
675
  },
869
- computed: {
870
- containerClass() {
871
- return [
872
- 'p-cascadeselect p-component p-inputwrapper',
873
- {
874
- 'p-disabled': this.disabled,
875
- 'p-focus': this.focused,
876
- 'p-inputwrapper-filled': this.modelValue,
877
- 'p-inputwrapper-focus': this.focused || this.overlayVisible,
878
- 'p-overlay-open': this.overlayVisible
879
- }
880
- ];
881
- },
882
- labelClass() {
883
- return [
884
- 'p-cascadeselect-label p-inputtext',
885
- {
886
- 'p-placeholder': this.label === this.placeholder,
887
- 'p-cascadeselect-label-empty': !this.$slots['value'] && (this.label === 'p-emptylabel' || this.label.length === 0)
888
- }
889
- ];
890
- },
891
- panelStyleClass() {
892
- return [
893
- 'p-cascadeselect-panel p-component',
894
- this.panelClass,
895
- {
896
- 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
897
- 'p-ripple-disabled': this.$primevue.config.ripple === false
898
- }
899
- ];
900
- },
901
- hasSelectedOption() {
902
- return ObjectUtils.isNotEmpty(this.modelValue);
903
- },
904
- label() {
905
- const label = this.placeholder || 'p-emptylabel';
906
-
907
- if (this.hasSelectedOption) {
908
- const activeOptionPath = this.findOptionPathByValue(this.modelValue);
909
- const processedOption = ObjectUtils.isNotEmpty(activeOptionPath) ? activeOptionPath[activeOptionPath.length - 1] : null;
910
-
911
- return processedOption ? this.getOptionLabel(processedOption.option) : label;
912
- }
913
-
914
- return label;
915
- },
916
- processedOptions() {
917
- return this.createProcessedOptions(this.options || []);
918
- },
919
- visibleOptions() {
920
- const processedOption = this.activeOptionPath.find((p) => p.key === this.focusedOptionInfo.parentKey);
921
-
922
- return processedOption ? processedOption.children : this.processedOptions;
923
- },
924
- equalityKey() {
925
- return this.optionValue ? null : this.dataKey;
926
- },
927
- searchResultMessageText() {
928
- return ObjectUtils.isNotEmpty(this.visibleOptions) ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
929
- },
930
- searchMessageText() {
931
- return this.searchMessage || this.$primevue.config.locale.searchMessage || '';
932
- },
933
- emptySearchMessageText() {
934
- return this.emptySearchMessage || this.$primevue.config.locale.emptySearchMessage || '';
935
- },
936
- emptyMessageText() {
937
- return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
938
- },
939
- selectionMessageText() {
940
- return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
941
- },
942
- emptySelectionMessageText() {
943
- return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
944
- },
945
- selectedMessageText() {
946
- return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', '1') : this.emptySelectionMessageText;
947
- },
948
- focusedOptionId() {
949
- return this.focusedOptionInfo.index !== -1 ? `${this.id}${ObjectUtils.isNotEmpty(this.focusedOptionInfo.parentKey) ? '_' + this.focusedOptionInfo.parentKey : ''}_${this.focusedOptionInfo.index}` : null;
676
+ onHomeKey: function onHomeKey(event) {
677
+ this.changeFocusedOptionIndex(event, this.findFirstOptionIndex());
678
+ !this.overlayVisible && this.show();
679
+ event.preventDefault();
680
+ },
681
+ onEndKey: function onEndKey(event) {
682
+ this.changeFocusedOptionIndex(event, this.findLastOptionIndex());
683
+ !this.overlayVisible && this.show();
684
+ event.preventDefault();
685
+ },
686
+ onEnterKey: function onEnterKey(event) {
687
+ if (!this.overlayVisible) {
688
+ this.onArrowDownKey(event);
689
+ } else {
690
+ if (this.focusedOptionInfo.index !== -1) {
691
+ var processedOption = this.visibleOptions[this.focusedOptionInfo.index];
692
+ var grouped = this.isProccessedOptionGroup(processedOption);
693
+ this.onOptionChange({
694
+ originalEvent: event,
695
+ processedOption: processedOption
696
+ });
697
+ !grouped && this.hide();
698
+ }
699
+ }
700
+ event.preventDefault();
701
+ },
702
+ onSpaceKey: function onSpaceKey(event) {
703
+ this.onEnterKey(event);
704
+ },
705
+ onEscapeKey: function onEscapeKey(event) {
706
+ this.overlayVisible && this.hide(true);
707
+ event.preventDefault();
708
+ },
709
+ onTabKey: function onTabKey(event) {
710
+ if (this.focusedOptionInfo.index !== -1) {
711
+ var processedOption = this.visibleOptions[this.focusedOptionInfo.index];
712
+ var grouped = this.isProccessedOptionGroup(processedOption);
713
+ !grouped && this.onOptionChange({
714
+ originalEvent: event,
715
+ processedOption: processedOption
716
+ });
717
+ }
718
+ this.overlayVisible && this.hide();
719
+ },
720
+ onOverlayEnter: function onOverlayEnter(el) {
721
+ ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
722
+ DomHandler.addStyles(el, {
723
+ position: 'absolute',
724
+ top: '0',
725
+ left: '0'
726
+ });
727
+ this.alignOverlay();
728
+ this.scrollInView();
729
+ },
730
+ onOverlayAfterEnter: function onOverlayAfterEnter() {
731
+ this.bindOutsideClickListener();
732
+ this.bindScrollListener();
733
+ this.bindResizeListener();
734
+ this.$emit('show');
735
+ },
736
+ onOverlayLeave: function onOverlayLeave() {
737
+ this.unbindOutsideClickListener();
738
+ this.unbindScrollListener();
739
+ this.unbindResizeListener();
740
+ this.$emit('hide');
741
+ this.overlay = null;
742
+ this.dirty = false;
743
+ },
744
+ onOverlayAfterLeave: function onOverlayAfterLeave(el) {
745
+ ZIndexUtils.clear(el);
746
+ },
747
+ alignOverlay: function alignOverlay() {
748
+ if (this.appendTo === 'self') {
749
+ DomHandler.relativePosition(this.overlay, this.$el);
750
+ } else {
751
+ this.overlay.style.minWidth = DomHandler.getOuterWidth(this.$el) + 'px';
752
+ DomHandler.absolutePosition(this.overlay, this.$el);
753
+ }
754
+ },
755
+ bindOutsideClickListener: function bindOutsideClickListener() {
756
+ var _this3 = this;
757
+ if (!this.outsideClickListener) {
758
+ this.outsideClickListener = function (event) {
759
+ if (_this3.overlayVisible && _this3.overlay && !_this3.$el.contains(event.target) && !_this3.overlay.contains(event.target)) {
760
+ _this3.hide();
761
+ }
762
+ };
763
+ document.addEventListener('click', this.outsideClickListener);
764
+ }
765
+ },
766
+ unbindOutsideClickListener: function unbindOutsideClickListener() {
767
+ if (this.outsideClickListener) {
768
+ document.removeEventListener('click', this.outsideClickListener);
769
+ this.outsideClickListener = null;
770
+ }
771
+ },
772
+ bindScrollListener: function bindScrollListener() {
773
+ var _this4 = this;
774
+ if (!this.scrollHandler) {
775
+ this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
776
+ if (_this4.overlayVisible) {
777
+ _this4.hide();
778
+ }
779
+ });
780
+ }
781
+ this.scrollHandler.bindScrollListener();
782
+ },
783
+ unbindScrollListener: function unbindScrollListener() {
784
+ if (this.scrollHandler) {
785
+ this.scrollHandler.unbindScrollListener();
786
+ }
787
+ },
788
+ bindResizeListener: function bindResizeListener() {
789
+ var _this5 = this;
790
+ if (!this.resizeListener) {
791
+ this.resizeListener = function () {
792
+ if (_this5.overlayVisible && !DomHandler.isTouchDevice()) {
793
+ _this5.hide();
794
+ }
795
+ };
796
+ window.addEventListener('resize', this.resizeListener);
797
+ }
798
+ },
799
+ unbindResizeListener: function unbindResizeListener() {
800
+ if (this.resizeListener) {
801
+ window.removeEventListener('resize', this.resizeListener);
802
+ this.resizeListener = null;
803
+ }
804
+ },
805
+ isOptionMatched: function isOptionMatched(processedOption) {
806
+ return this.isValidOption(processedOption) && this.getProccessedOptionLabel(processedOption).toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale));
807
+ },
808
+ isValidOption: function isValidOption(processedOption) {
809
+ return !!processedOption && !this.isOptionDisabled(processedOption.option);
810
+ },
811
+ isValidSelectedOption: function isValidSelectedOption(processedOption) {
812
+ return this.isValidOption(processedOption) && this.isSelected(processedOption);
813
+ },
814
+ isSelected: function isSelected(processedOption) {
815
+ return this.activeOptionPath.some(function (p) {
816
+ return p.key === processedOption.key;
817
+ });
818
+ },
819
+ findFirstOptionIndex: function findFirstOptionIndex() {
820
+ var _this6 = this;
821
+ return this.visibleOptions.findIndex(function (processedOption) {
822
+ return _this6.isValidOption(processedOption);
823
+ });
824
+ },
825
+ findLastOptionIndex: function findLastOptionIndex() {
826
+ var _this7 = this;
827
+ return ObjectUtils.findLastIndex(this.visibleOptions, function (processedOption) {
828
+ return _this7.isValidOption(processedOption);
829
+ });
830
+ },
831
+ findNextOptionIndex: function findNextOptionIndex(index) {
832
+ var _this8 = this;
833
+ var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (processedOption) {
834
+ return _this8.isValidOption(processedOption);
835
+ }) : -1;
836
+ return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
837
+ },
838
+ findPrevOptionIndex: function findPrevOptionIndex(index) {
839
+ var _this9 = this;
840
+ var matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (processedOption) {
841
+ return _this9.isValidOption(processedOption);
842
+ }) : -1;
843
+ return matchedOptionIndex > -1 ? matchedOptionIndex : index;
844
+ },
845
+ findSelectedOptionIndex: function findSelectedOptionIndex() {
846
+ var _this10 = this;
847
+ return this.visibleOptions.findIndex(function (processedOption) {
848
+ return _this10.isValidSelectedOption(processedOption);
849
+ });
850
+ },
851
+ findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
852
+ var selectedIndex = this.findSelectedOptionIndex();
853
+ return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
854
+ },
855
+ findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
856
+ var selectedIndex = this.findSelectedOptionIndex();
857
+ return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
858
+ },
859
+ findOptionPathByValue: function findOptionPathByValue(value, processedOptions) {
860
+ var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
861
+ processedOptions = processedOptions || level === 0 && this.processedOptions;
862
+ if (!processedOptions) return null;
863
+ if (ObjectUtils.isEmpty(value)) return [];
864
+ for (var i = 0; i < processedOptions.length; i++) {
865
+ var processedOption = processedOptions[i];
866
+ if (ObjectUtils.equals(value, this.getOptionValue(processedOption.option), this.equalityKey)) {
867
+ return [processedOption];
868
+ }
869
+ var matchedOptions = this.findOptionPathByValue(value, processedOption.children, level + 1);
870
+ if (matchedOptions) {
871
+ matchedOptions.unshift(processedOption);
872
+ return matchedOptions;
950
873
  }
874
+ }
875
+ },
876
+ searchOptions: function searchOptions(event, _char) {
877
+ var _this11 = this;
878
+ this.searchValue = (this.searchValue || '') + _char;
879
+ var optionIndex = -1;
880
+ var matched = false;
881
+ if (this.focusedOptionInfo.index !== -1) {
882
+ optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex(function (processedOption) {
883
+ return _this11.isOptionMatched(processedOption);
884
+ });
885
+ optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex(function (processedOption) {
886
+ return _this11.isOptionMatched(processedOption);
887
+ }) : optionIndex + this.focusedOptionInfo.index;
888
+ } else {
889
+ optionIndex = this.visibleOptions.findIndex(function (processedOption) {
890
+ return _this11.isOptionMatched(processedOption);
891
+ });
892
+ }
893
+ if (optionIndex !== -1) {
894
+ matched = true;
895
+ }
896
+ if (optionIndex === -1 && this.focusedOptionInfo.index === -1) {
897
+ optionIndex = this.findFirstFocusedOptionIndex();
898
+ }
899
+ if (optionIndex !== -1) {
900
+ this.changeFocusedOptionIndex(event, optionIndex);
901
+ }
902
+ if (this.searchTimeout) {
903
+ clearTimeout(this.searchTimeout);
904
+ }
905
+ this.searchTimeout = setTimeout(function () {
906
+ _this11.searchValue = '';
907
+ _this11.searchTimeout = null;
908
+ }, 500);
909
+ return matched;
910
+ },
911
+ changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
912
+ if (this.focusedOptionInfo.index !== index) {
913
+ this.focusedOptionInfo.index = index;
914
+ this.scrollInView();
915
+ if (this.selectOnFocus) {
916
+ this.onOptionChange({
917
+ originalEvent: event,
918
+ processedOption: this.visibleOptions[index],
919
+ isHide: false
920
+ });
921
+ }
922
+ }
923
+ },
924
+ scrollInView: function scrollInView() {
925
+ var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
926
+ var id = index !== -1 ? "".concat(this.id, "_").concat(index) : this.focusedOptionId;
927
+ var element = DomHandler.findSingle(this.list, "li[id=\"".concat(id, "\"]"));
928
+ if (element) {
929
+ element.scrollIntoView && element.scrollIntoView({
930
+ block: 'nearest',
931
+ inline: 'start'
932
+ });
933
+ }
934
+ },
935
+ autoUpdateModel: function autoUpdateModel() {
936
+ if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
937
+ this.focusedOptionInfo.index = this.findFirstFocusedOptionIndex();
938
+ this.onOptionChange({
939
+ processedOption: this.visibleOptions[this.focusedOptionInfo.index],
940
+ isHide: false
941
+ });
942
+ !this.overlayVisible && (this.focusedOptionInfo = {
943
+ index: -1,
944
+ level: 0,
945
+ parentKey: ''
946
+ });
947
+ }
948
+ },
949
+ updateModel: function updateModel(event, value) {
950
+ this.$emit('update:modelValue', value);
951
+ this.$emit('change', {
952
+ originalEvent: event,
953
+ value: value
954
+ });
955
+ },
956
+ createProcessedOptions: function createProcessedOptions(options) {
957
+ var _this12 = this;
958
+ var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
959
+ var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
960
+ var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
961
+ var processedOptions = [];
962
+ options && options.forEach(function (option, index) {
963
+ var key = (parentKey !== '' ? parentKey + '_' : '') + index;
964
+ var newOption = {
965
+ option: option,
966
+ index: index,
967
+ level: level,
968
+ key: key,
969
+ parent: parent,
970
+ parentKey: parentKey
971
+ };
972
+ newOption['children'] = _this12.createProcessedOptions(_this12.getOptionGroupChildren(option, level), level + 1, newOption, key);
973
+ processedOptions.push(newOption);
974
+ });
975
+ return processedOptions;
951
976
  },
952
- components: {
953
- CascadeSelectSub: script$1,
954
- Portal: Portal,
955
- ChevronDownIcon: ChevronDownIcon,
956
- SpinnerIcon: SpinnerIcon,
957
- AngleRightIcon: AngleRightIcon
977
+ overlayRef: function overlayRef(el) {
978
+ this.overlay = el;
958
979
  }
980
+ },
981
+ computed: {
982
+ hasSelectedOption: function hasSelectedOption() {
983
+ return ObjectUtils.isNotEmpty(this.modelValue);
984
+ },
985
+ label: function label() {
986
+ var label = this.placeholder || 'p-emptylabel';
987
+ if (this.hasSelectedOption) {
988
+ var activeOptionPath = this.findOptionPathByValue(this.modelValue);
989
+ var processedOption = ObjectUtils.isNotEmpty(activeOptionPath) ? activeOptionPath[activeOptionPath.length - 1] : null;
990
+ return processedOption ? this.getOptionLabel(processedOption.option) : label;
991
+ }
992
+ return label;
993
+ },
994
+ processedOptions: function processedOptions() {
995
+ return this.createProcessedOptions(this.options || []);
996
+ },
997
+ visibleOptions: function visibleOptions() {
998
+ var _this13 = this;
999
+ var processedOption = this.activeOptionPath.find(function (p) {
1000
+ return p.key === _this13.focusedOptionInfo.parentKey;
1001
+ });
1002
+ return processedOption ? processedOption.children : this.processedOptions;
1003
+ },
1004
+ equalityKey: function equalityKey() {
1005
+ return this.optionValue ? null : this.dataKey;
1006
+ },
1007
+ searchResultMessageText: function searchResultMessageText() {
1008
+ return ObjectUtils.isNotEmpty(this.visibleOptions) ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
1009
+ },
1010
+ searchMessageText: function searchMessageText() {
1011
+ return this.searchMessage || this.$primevue.config.locale.searchMessage || '';
1012
+ },
1013
+ emptySearchMessageText: function emptySearchMessageText() {
1014
+ return this.emptySearchMessage || this.$primevue.config.locale.emptySearchMessage || '';
1015
+ },
1016
+ emptyMessageText: function emptyMessageText() {
1017
+ return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
1018
+ },
1019
+ selectionMessageText: function selectionMessageText() {
1020
+ return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
1021
+ },
1022
+ emptySelectionMessageText: function emptySelectionMessageText() {
1023
+ return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
1024
+ },
1025
+ selectedMessageText: function selectedMessageText() {
1026
+ return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', '1') : this.emptySelectionMessageText;
1027
+ },
1028
+ focusedOptionId: function focusedOptionId() {
1029
+ return this.focusedOptionInfo.index !== -1 ? "".concat(this.id).concat(ObjectUtils.isNotEmpty(this.focusedOptionInfo.parentKey) ? '_' + this.focusedOptionInfo.parentKey : '', "_").concat(this.focusedOptionInfo.index) : null;
1030
+ }
1031
+ },
1032
+ components: {
1033
+ CascadeSelectSub: script$1,
1034
+ Portal: Portal,
1035
+ ChevronDownIcon: ChevronDownIcon,
1036
+ SpinnerIcon: SpinnerIcon,
1037
+ AngleRightIcon: AngleRightIcon
1038
+ }
959
1039
  };
960
1040
 
961
- const _hoisted_1 = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
962
-
1041
+ 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); }
1042
+ 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; }
1043
+ 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; }
1044
+ 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; }
1045
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1046
+ 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); }
1047
+ var _hoisted_1 = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
963
1048
  function render(_ctx, _cache, $props, $setup, $data, $options) {
964
- const _component_SpinnerIcon = resolveComponent("SpinnerIcon");
965
- const _component_CascadeSelectSub = resolveComponent("CascadeSelectSub");
966
- const _component_Portal = resolveComponent("Portal");
967
-
968
- return (openBlock(), createElementBlock("div", mergeProps({
1049
+ var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
1050
+ var _component_CascadeSelectSub = resolveComponent("CascadeSelectSub");
1051
+ var _component_Portal = resolveComponent("Portal");
1052
+ return openBlock(), createElementBlock("div", mergeProps({
969
1053
  ref: "container",
970
- class: $options.containerClass,
971
- onClick: _cache[5] || (_cache[5] = $event => ($options.onContainerClick($event)))
972
- }, _ctx.ptm('root')), [
973
- createElementVNode("div", mergeProps({ class: "p-hidden-accessible" }, _ctx.ptm('hiddenInputWrapper')), [
974
- createElementVNode("input", mergeProps({
975
- ref: "focusInput",
976
- id: $props.inputId,
977
- type: "text",
978
- style: $props.inputStyle,
979
- class: $props.inputClass,
980
- readonly: "",
981
- disabled: $props.disabled,
982
- placeholder: $props.placeholder,
983
- tabindex: !$props.disabled ? $props.tabindex : -1,
984
- role: "combobox",
985
- "aria-label": _ctx.ariaLabel,
986
- "aria-labelledby": _ctx.ariaLabelledby,
987
- "aria-haspopup": "tree",
988
- "aria-expanded": $data.overlayVisible,
989
- "aria-controls": $data.id + '_tree',
990
- "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
991
- onFocus: _cache[0] || (_cache[0] = (...args) => ($options.onFocus && $options.onFocus(...args))),
992
- onBlur: _cache[1] || (_cache[1] = (...args) => ($options.onBlur && $options.onBlur(...args))),
993
- onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args)))
994
- }, { ...$props.inputProps, ..._ctx.ptm('input') }), null, 16, _hoisted_1)
995
- ], 16),
996
- createElementVNode("span", mergeProps({ class: $options.labelClass }, _ctx.ptm('label')), [
997
- renderSlot(_ctx.$slots, "value", {
998
- value: $props.modelValue,
999
- placeholder: $props.placeholder
1000
- }, () => [
1001
- createTextVNode(toDisplayString($options.label), 1)
1002
- ])
1003
- ], 16),
1004
- createElementVNode("div", mergeProps({
1005
- class: "p-cascadeselect-trigger",
1006
- role: "button",
1007
- tabindex: "-1",
1054
+ "class": _ctx.cx('root'),
1055
+ style: _ctx.sx('root'),
1056
+ onClick: _cache[5] || (_cache[5] = function ($event) {
1057
+ return $options.onContainerClick($event);
1058
+ })
1059
+ }, _ctx.ptm('root'), {
1060
+ "data-pc-name": "cascadeselect"
1061
+ }), [createElementVNode("div", mergeProps({
1062
+ "class": "p-hidden-accessible"
1063
+ }, _ctx.ptm('hiddenInputWrapper'), {
1064
+ "data-p-hidden-accessible": true
1065
+ }), [createElementVNode("input", mergeProps({
1066
+ ref: "focusInput",
1067
+ id: _ctx.inputId,
1068
+ type: "text",
1069
+ "class": _ctx.inputClass,
1070
+ style: _ctx.inputStyle,
1071
+ readonly: "",
1072
+ disabled: _ctx.disabled,
1073
+ placeholder: _ctx.placeholder,
1074
+ tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
1075
+ role: "combobox",
1076
+ "aria-label": _ctx.ariaLabel,
1077
+ "aria-labelledby": _ctx.ariaLabelledby,
1078
+ "aria-haspopup": "tree",
1079
+ "aria-expanded": $data.overlayVisible,
1080
+ "aria-controls": $data.id + '_tree',
1081
+ "aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
1082
+ onFocus: _cache[0] || (_cache[0] = function () {
1083
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
1084
+ }),
1085
+ onBlur: _cache[1] || (_cache[1] = function () {
1086
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
1087
+ }),
1088
+ onKeydown: _cache[2] || (_cache[2] = function () {
1089
+ return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1090
+ })
1091
+ }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input'))), null, 16, _hoisted_1)], 16), createElementVNode("span", mergeProps({
1092
+ "class": _ctx.cx('label')
1093
+ }, _ctx.ptm('label')), [renderSlot(_ctx.$slots, "value", {
1094
+ value: _ctx.modelValue,
1095
+ placeholder: _ctx.placeholder
1096
+ }, function () {
1097
+ return [createTextVNode(toDisplayString($options.label), 1)];
1098
+ })], 16), createElementVNode("div", mergeProps({
1099
+ "class": _ctx.cx('dropdownButton'),
1100
+ role: "button",
1101
+ tabindex: "-1",
1102
+ "aria-hidden": "true"
1103
+ }, _ctx.ptm('dropdownButton')), [_ctx.loading ? renderSlot(_ctx.$slots, "loadingicon", {
1104
+ key: 0,
1105
+ "class": normalizeClass(_ctx.cx('loadingIcon'))
1106
+ }, function () {
1107
+ return [_ctx.loadingIcon ? (openBlock(), createElementBlock("span", mergeProps({
1108
+ key: 0,
1109
+ "class": [_ctx.cx('loadingIcon'), 'pi-spin', _ctx.loadingIcon],
1110
+ "aria-hidden": "true"
1111
+ }, _ctx.ptm('loadingIcon')), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
1112
+ key: 1,
1113
+ "class": _ctx.cx('loadingIcon'),
1114
+ spin: "",
1115
+ "aria-hidden": "true"
1116
+ }, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
1117
+ }) : renderSlot(_ctx.$slots, "dropdownicon", {
1118
+ key: 1,
1119
+ "class": normalizeClass(_ctx.cx('dropdownIcon'))
1120
+ }, function () {
1121
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
1122
+ "class": [_ctx.cx('dropdownIcon'), _ctx.dropdownIcon],
1008
1123
  "aria-hidden": "true"
1009
- }, _ctx.ptm('dropdownButton')), [
1010
- ($props.loading)
1011
- ? renderSlot(_ctx.$slots, "loadingicon", {
1124
+ }, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))];
1125
+ })], 16), createElementVNode("span", mergeProps({
1126
+ role: "status",
1127
+ "aria-live": "polite",
1128
+ "class": "p-hidden-accessible"
1129
+ }, _ctx.ptm('hiddenSearchResult'), {
1130
+ "data-p-hidden-accessible": true
1131
+ }), toDisplayString($options.searchResultMessageText), 17), createVNode(_component_Portal, {
1132
+ appendTo: _ctx.appendTo
1133
+ }, {
1134
+ "default": withCtx(function () {
1135
+ return [createVNode(Transition, {
1136
+ name: "p-connected-overlay",
1137
+ onEnter: $options.onOverlayEnter,
1138
+ onAfterEnter: $options.onOverlayAfterEnter,
1139
+ onLeave: $options.onOverlayLeave,
1140
+ onAfterLeave: $options.onOverlayAfterLeave
1141
+ }, {
1142
+ "default": withCtx(function () {
1143
+ return [$data.overlayVisible ? (openBlock(), createElementBlock("div", mergeProps({
1012
1144
  key: 0,
1013
- class: "p-cascadeselect-trigger-icon"
1014
- }, () => [
1015
- ($props.loadingIcon)
1016
- ? (openBlock(), createElementBlock("span", mergeProps({
1017
- key: 0,
1018
- class: ['p-cascadeselect-trigger-icon pi-spin', $props.loadingIcon],
1019
- "aria-hidden": "true"
1020
- }, _ctx.ptm('loadingIcon')), null, 16))
1021
- : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
1022
- key: 1,
1023
- class: "p-cascadeselect-trigger-icon",
1024
- spin: "",
1025
- "aria-hidden": "true"
1026
- }, _ctx.ptm('loadingIcon')), null, 16))
1027
- ])
1028
- : renderSlot(_ctx.$slots, "dropdownicon", {
1029
- key: 1,
1030
- class: "p-cascadeselect-trigger-icon"
1031
- }, () => [
1032
- (openBlock(), createBlock(resolveDynamicComponent($props.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
1033
- class: ['p-cascadeselect-trigger-icon', $props.dropdownIcon],
1034
- "aria-hidden": "true"
1035
- }, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))
1036
- ])
1037
- ], 16),
1038
- createElementVNode("span", mergeProps({
1039
- role: "status",
1040
- "aria-live": "polite",
1041
- class: "p-hidden-accessible"
1042
- }, _ctx.ptm('searchResultAria')), toDisplayString($options.searchResultMessageText), 17),
1043
- createVNode(_component_Portal, { appendTo: $props.appendTo }, {
1044
- default: withCtx(() => [
1045
- createVNode(Transition, {
1046
- name: "p-connected-overlay",
1047
- onEnter: $options.onOverlayEnter,
1048
- onAfterEnter: $options.onOverlayAfterEnter,
1049
- onLeave: $options.onOverlayLeave,
1050
- onAfterLeave: $options.onOverlayAfterLeave
1051
- }, {
1052
- default: withCtx(() => [
1053
- ($data.overlayVisible)
1054
- ? (openBlock(), createElementBlock("div", mergeProps({
1055
- key: 0,
1056
- ref: $options.overlayRef,
1057
- style: $props.panelStyle,
1058
- class: $options.panelStyleClass,
1059
- onClick: _cache[3] || (_cache[3] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
1060
- onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onOverlayKeyDown && $options.onOverlayKeyDown(...args)))
1061
- }, { ...$props.panelProps, ..._ctx.ptm('panel') }), [
1062
- createElementVNode("div", mergeProps({ class: "p-cascadeselect-items-wrapper" }, _ctx.ptm('wrapper')), [
1063
- createVNode(_component_CascadeSelectSub, {
1064
- id: $data.id + '_tree',
1065
- role: "tree",
1066
- "aria-orientation": "horizontal",
1067
- selectId: $data.id,
1068
- focusedOptionId: $data.focused ? $options.focusedOptionId : undefined,
1069
- options: $options.processedOptions,
1070
- activeOptionPath: $data.activeOptionPath,
1071
- level: 0,
1072
- templates: _ctx.$slots,
1073
- optionLabel: $props.optionLabel,
1074
- optionValue: $props.optionValue,
1075
- optionDisabled: $props.optionDisabled,
1076
- optionGroupIcon: $props.optionGroupIcon,
1077
- optionGroupLabel: $props.optionGroupLabel,
1078
- optionGroupChildren: $props.optionGroupChildren,
1079
- onOptionChange: $options.onOptionChange,
1080
- pt: _ctx.pt
1081
- }, null, 8, ["id", "selectId", "focusedOptionId", "options", "activeOptionPath", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupIcon", "optionGroupLabel", "optionGroupChildren", "onOptionChange", "pt"])
1082
- ], 16),
1083
- createElementVNode("span", mergeProps({
1084
- role: "status",
1085
- "aria-live": "polite",
1086
- class: "p-hidden-accessible"
1087
- }, _ctx.ptm('hiddenSelectedMessage')), toDisplayString($options.selectedMessageText), 17)
1088
- ], 16))
1089
- : createCommentVNode("", true)
1090
- ]),
1091
- _: 1
1092
- }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
1093
- ]),
1094
- _: 1
1095
- }, 8, ["appendTo"])
1096
- ], 16))
1097
- }
1098
-
1099
- function styleInject(css, ref) {
1100
- if ( ref === void 0 ) ref = {};
1101
- var insertAt = ref.insertAt;
1102
-
1103
- if (!css || typeof document === 'undefined') { return; }
1104
-
1105
- var head = document.head || document.getElementsByTagName('head')[0];
1106
- var style = document.createElement('style');
1107
- style.type = 'text/css';
1108
-
1109
- if (insertAt === 'top') {
1110
- if (head.firstChild) {
1111
- head.insertBefore(style, head.firstChild);
1112
- } else {
1113
- head.appendChild(style);
1114
- }
1115
- } else {
1116
- head.appendChild(style);
1117
- }
1118
-
1119
- if (style.styleSheet) {
1120
- style.styleSheet.cssText = css;
1121
- } else {
1122
- style.appendChild(document.createTextNode(css));
1123
- }
1145
+ ref: $options.overlayRef,
1146
+ "class": [_ctx.cx('panel'), _ctx.panelClass],
1147
+ style: _ctx.panelStyle,
1148
+ onClick: _cache[3] || (_cache[3] = function () {
1149
+ return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
1150
+ }),
1151
+ onKeydown: _cache[4] || (_cache[4] = function () {
1152
+ return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1153
+ })
1154
+ }, _objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.ptm('panel'))), [createElementVNode("div", mergeProps({
1155
+ "class": _ctx.cx('wrapper')
1156
+ }, _ctx.ptm('wrapper')), [createVNode(_component_CascadeSelectSub, {
1157
+ id: $data.id + '_tree',
1158
+ role: "tree",
1159
+ "aria-orientation": "horizontal",
1160
+ selectId: $data.id,
1161
+ focusedOptionId: $data.focused ? $options.focusedOptionId : undefined,
1162
+ options: $options.processedOptions,
1163
+ activeOptionPath: $data.activeOptionPath,
1164
+ level: 0,
1165
+ templates: _ctx.$slots,
1166
+ optionLabel: _ctx.optionLabel,
1167
+ optionValue: _ctx.optionValue,
1168
+ optionDisabled: _ctx.optionDisabled,
1169
+ optionGroupIcon: _ctx.optionGroupIcon,
1170
+ optionGroupLabel: _ctx.optionGroupLabel,
1171
+ optionGroupChildren: _ctx.optionGroupChildren,
1172
+ onOptionChange: $options.onOptionChange,
1173
+ pt: _ctx.pt
1174
+ }, null, 8, ["id", "selectId", "focusedOptionId", "options", "activeOptionPath", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupIcon", "optionGroupLabel", "optionGroupChildren", "onOptionChange", "pt"])], 16), createElementVNode("span", mergeProps({
1175
+ role: "status",
1176
+ "aria-live": "polite",
1177
+ "class": "p-hidden-accessible"
1178
+ }, _ctx.ptm('hiddenSelectedMessage'), {
1179
+ "data-p-hidden-accessible": true
1180
+ }), toDisplayString($options.selectedMessageText), 17)], 16)) : createCommentVNode("", true)];
1181
+ }),
1182
+ _: 1
1183
+ }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1184
+ }),
1185
+ _: 1
1186
+ }, 8, ["appendTo"])], 16);
1124
1187
  }
1125
1188
 
1126
- var css_248z = "\n.p-cascadeselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n}\n.p-cascadeselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n.p-cascadeselect-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.p-cascadeselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-cascadeselect .p-cascadeselect-panel {\n min-width: 100%;\n}\n.p-cascadeselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-cascadeselect-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n}\n.p-cascadeselect-item-content {\n display: flex;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n.p-cascadeselect-group-icon {\n margin-left: auto;\n}\n.p-cascadeselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n min-width: 100%;\n}\n.p-fluid .p-cascadeselect {\n display: flex;\n}\n.p-fluid .p-cascadeselect .p-cascadeselect-label {\n width: 1%;\n}\n.p-cascadeselect-sublist {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n display: none;\n}\n.p-cascadeselect-item-active {\n overflow: visible !important;\n}\n.p-cascadeselect-item-active > .p-cascadeselect-sublist {\n display: block;\n left: 100%;\n top: 0;\n}\n";
1127
- styleInject(css_248z);
1128
-
1129
1189
  script.render = render;
1130
1190
 
1131
1191
  export { script as default };