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,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var BaseComponent = require('primevue/basecomponent');
4
3
  var Button = require('primevue/button');
5
4
  var PlusIcon = require('primevue/icons/plus');
6
5
  var TimesIcon = require('primevue/icons/times');
@@ -8,13 +7,13 @@ var UploadIcon = require('primevue/icons/upload');
8
7
  var Message = require('primevue/message');
9
8
  var ProgressBar = require('primevue/progressbar');
10
9
  var Ripple = require('primevue/ripple');
11
- var utils = require('primevue/utils');
10
+ var BaseComponent = require('primevue/basecomponent');
11
+ var usestyle = require('primevue/usestyle');
12
12
  var Badge = require('primevue/badge');
13
13
  var vue = require('vue');
14
14
 
15
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
16
16
 
17
- var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
18
17
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
19
18
  var PlusIcon__default = /*#__PURE__*/_interopDefaultLegacy(PlusIcon);
20
19
  var TimesIcon__default = /*#__PURE__*/_interopDefaultLegacy(TimesIcon);
@@ -22,822 +21,850 @@ var UploadIcon__default = /*#__PURE__*/_interopDefaultLegacy(UploadIcon);
22
21
  var Message__default = /*#__PURE__*/_interopDefaultLegacy(Message);
23
22
  var ProgressBar__default = /*#__PURE__*/_interopDefaultLegacy(ProgressBar);
24
23
  var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
24
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
25
25
  var Badge__default = /*#__PURE__*/_interopDefaultLegacy(Badge);
26
26
 
27
- var script$1 = {
28
- extends: BaseComponent__default["default"],
29
- emits: ['remove'],
30
- props: {
31
- files: {
32
- type: Array,
33
- default: () => []
34
- },
35
- badgeSeverity: {
36
- type: String,
37
- default: 'warning'
38
- },
39
- badgeValue: {
40
- type: String,
41
- default: null
42
- },
43
- previewWidth: {
44
- type: Number,
45
- default: 50
46
- },
47
- templates: {
48
- type: null,
49
- default: null
50
- }
27
+ var styles = "\n.p-fileupload-content {\n position: relative;\n}\n\n.p-fileupload-content .p-progressbar {\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.p-button.p-fileupload-choose {\n position: relative;\n overflow: hidden;\n}\n\n.p-fileupload-buttonbar {\n display: flex;\n flex-wrap: wrap;\n}\n\n.p-fileupload > input[type='file'],\n.p-fileupload-basic input[type='file'] {\n display: none;\n}\n\n.p-fluid .p-fileupload .p-button {\n width: auto;\n}\n\n.p-fileupload-file {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n}\n\n.p-fileupload-file-thumbnail {\n flex-shrink: 0;\n}\n\n.p-fileupload-file-actions {\n margin-left: auto;\n}\n";
28
+ var classes = {
29
+ root: function root(_ref) {
30
+ var props = _ref.props;
31
+ return ["p-fileupload p-fileupload-".concat(props.mode, " p-component")];
32
+ },
33
+ buttonbar: 'p-fileupload-buttonbar',
34
+ chooseButton: function chooseButton(_ref2) {
35
+ var instance = _ref2.instance,
36
+ props = _ref2.props;
37
+ return ['p-button p-component p-fileupload-choose', {
38
+ 'p-fileupload-choose-selected': props.mode === 'basic' && instance.hasFiles,
39
+ 'p-disabled': props.disabled,
40
+ 'p-focus': instance.focused
41
+ }];
42
+ },
43
+ chooseIcon: 'p-button-icon p-button-icon-left',
44
+ chooseButtonLabel: 'p-button-label',
45
+ content: 'p-fileupload-content',
46
+ empty: 'p-fileupload-empty',
47
+ uploadIcon: 'p-button-icon p-button-icon-left',
48
+ label: 'p-button-label',
49
+ file: 'p-fileupload-file',
50
+ thumbnail: 'p-fileupload-file-thumbnail',
51
+ details: 'p-fileupload-file-details',
52
+ fileName: 'p-fileupload-file-name',
53
+ fileSize: 'p-fileupload-file-size',
54
+ badge: 'p-fileupload-file-badge',
55
+ actions: 'p-fileupload-file-actions',
56
+ removeButton: 'p-fileupload-file-remove'
57
+ };
58
+ var _useStyle = usestyle.useStyle(styles, {
59
+ name: 'fileupload',
60
+ manual: true
61
+ }),
62
+ loadStyle = _useStyle.load;
63
+ var script$2 = {
64
+ name: 'BaseFileUpload',
65
+ "extends": BaseComponent__default["default"],
66
+ props: {
67
+ name: {
68
+ type: String,
69
+ "default": null
51
70
  },
52
- methods: {
53
- formatSize(bytes) {
54
- if (bytes === 0) {
55
- return '0 B';
56
- }
57
-
58
- let k = 1000,
59
- dm = 3,
60
- sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
61
- i = Math.floor(Math.log(bytes) / Math.log(k));
71
+ url: {
72
+ type: String,
73
+ "default": null
74
+ },
75
+ mode: {
76
+ type: String,
77
+ "default": 'advanced'
78
+ },
79
+ multiple: {
80
+ type: Boolean,
81
+ "default": false
82
+ },
83
+ accept: {
84
+ type: String,
85
+ "default": null
86
+ },
87
+ disabled: {
88
+ type: Boolean,
89
+ "default": false
90
+ },
91
+ auto: {
92
+ type: Boolean,
93
+ "default": false
94
+ },
95
+ maxFileSize: {
96
+ type: Number,
97
+ "default": null
98
+ },
99
+ invalidFileSizeMessage: {
100
+ type: String,
101
+ "default": '{0}: Invalid file size, file size should be smaller than {1}.'
102
+ },
103
+ invalidFileTypeMessage: {
104
+ type: String,
105
+ "default": '{0}: Invalid file type, allowed file types: {1}.'
106
+ },
107
+ fileLimit: {
108
+ type: Number,
109
+ "default": null
110
+ },
111
+ invalidFileLimitMessage: {
112
+ type: String,
113
+ "default": 'Maximum number of files exceeded, limit is {0} at most.'
114
+ },
115
+ withCredentials: {
116
+ type: Boolean,
117
+ "default": false
118
+ },
119
+ previewWidth: {
120
+ type: Number,
121
+ "default": 50
122
+ },
123
+ chooseLabel: {
124
+ type: String,
125
+ "default": null
126
+ },
127
+ uploadLabel: {
128
+ type: String,
129
+ "default": null
130
+ },
131
+ cancelLabel: {
132
+ type: String,
133
+ "default": null
134
+ },
135
+ customUpload: {
136
+ type: Boolean,
137
+ "default": false
138
+ },
139
+ showUploadButton: {
140
+ type: Boolean,
141
+ "default": true
142
+ },
143
+ showCancelButton: {
144
+ type: Boolean,
145
+ "default": true
146
+ },
147
+ chooseIcon: {
148
+ type: String,
149
+ "default": undefined
150
+ },
151
+ uploadIcon: {
152
+ type: String,
153
+ "default": undefined
154
+ },
155
+ cancelIcon: {
156
+ type: String,
157
+ "default": undefined
158
+ },
159
+ style: null,
160
+ "class": null
161
+ },
162
+ css: {
163
+ classes: classes,
164
+ loadStyle: loadStyle
165
+ },
166
+ provide: function provide() {
167
+ return {
168
+ $parentInstance: this
169
+ };
170
+ }
171
+ };
62
172
 
63
- return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
64
- }
173
+ var script$1 = {
174
+ name: 'FileContent',
175
+ hostName: 'FileUpload',
176
+ "extends": BaseComponent__default["default"],
177
+ emits: ['remove'],
178
+ props: {
179
+ files: {
180
+ type: Array,
181
+ "default": function _default() {
182
+ return [];
183
+ }
65
184
  },
66
- components: {
67
- FileUploadButton: Button__default["default"],
68
- FileUploadBadge: Badge__default["default"],
69
- TimesIcon: TimesIcon__default["default"]
185
+ badgeSeverity: {
186
+ type: String,
187
+ "default": 'warning'
188
+ },
189
+ badgeValue: {
190
+ type: String,
191
+ "default": null
192
+ },
193
+ previewWidth: {
194
+ type: Number,
195
+ "default": 50
196
+ },
197
+ templates: {
198
+ type: null,
199
+ "default": null
70
200
  }
201
+ },
202
+ methods: {
203
+ formatSize: function formatSize(bytes) {
204
+ if (bytes === 0) {
205
+ return '0 B';
206
+ }
207
+ var k = 1000,
208
+ dm = 3,
209
+ sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
210
+ i = Math.floor(Math.log(bytes) / Math.log(k));
211
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
212
+ }
213
+ },
214
+ components: {
215
+ FileUploadButton: Button__default["default"],
216
+ FileUploadBadge: Badge__default["default"],
217
+ TimesIcon: TimesIcon__default["default"]
218
+ }
71
219
  };
72
220
 
73
- const _hoisted_1$1 = ["alt", "src", "width"];
74
-
221
+ var _hoisted_1$1 = ["alt", "src", "width"];
75
222
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
76
- const _component_FileUploadBadge = vue.resolveComponent("FileUploadBadge");
77
- const _component_TimesIcon = vue.resolveComponent("TimesIcon");
78
- const _component_FileUploadButton = vue.resolveComponent("FileUploadButton");
79
-
80
- return (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.files, (file, index) => {
81
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
223
+ var _component_FileUploadBadge = vue.resolveComponent("FileUploadBadge");
224
+ var _component_TimesIcon = vue.resolveComponent("TimesIcon");
225
+ var _component_FileUploadButton = vue.resolveComponent("FileUploadButton");
226
+ return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.files, function (file, index) {
227
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
82
228
  key: file.name + file.type + file.size,
83
- class: "p-fileupload-file"
84
- }, _ctx.ptm('file')), [
85
- vue.createElementVNode("img", vue.mergeProps({
86
- role: "presentation",
87
- class: "p-fileupload-file-thumbnail",
88
- alt: file.name,
89
- src: file.objectURL,
90
- width: $props.previewWidth
91
- }, _ctx.ptm('thumbnail')), null, 16, _hoisted_1$1),
92
- vue.createElementVNode("div", vue.mergeProps({ class: "p-fileupload-file-details" }, _ctx.ptm('details')), [
93
- vue.createElementVNode("div", vue.mergeProps({ class: "p-fileupload-file-name" }, _ctx.ptm('fileName')), vue.toDisplayString(file.name), 17),
94
- vue.createElementVNode("span", vue.mergeProps({ class: "p-fileupload-file-size" }, _ctx.ptm('fileSize')), vue.toDisplayString($options.formatSize(file.size)), 17),
95
- vue.createVNode(_component_FileUploadBadge, {
96
- value: $props.badgeValue,
97
- class: "p-fileupload-file-badge",
98
- severity: $props.badgeSeverity,
99
- pt: _ctx.ptm('badge')
100
- }, null, 8, ["value", "severity", "pt"])
101
- ], 16),
102
- vue.createElementVNode("div", vue.mergeProps({ class: "p-fileupload-file-actions" }, _ctx.ptm('actions')), [
103
- vue.createVNode(_component_FileUploadButton, {
104
- onClick: $event => (_ctx.$emit('remove', index)),
105
- text: "",
106
- rounded: "",
107
- severity: "danger",
108
- class: "p-fileupload-file-remove",
109
- pt: _ctx.ptm('removeButton')
110
- }, {
111
- icon: vue.withCtx((iconProps) => [
112
- ($props.templates.fileremoveicon)
113
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.fileremoveicon), {
114
- key: 0,
115
- class: vue.normalizeClass(iconProps.class),
116
- file: file,
117
- index: index
118
- }, null, 8, ["class", "file", "index"]))
119
- : (vue.openBlock(), vue.createBlock(_component_TimesIcon, vue.mergeProps({
120
- key: 1,
121
- class: iconProps.class,
122
- "aria-hidden": "true"
123
- }, _ctx.ptm('removeButton')['icon']), null, 16, ["class"]))
124
- ]),
125
- _: 2
126
- }, 1032, ["onClick", "pt"])
127
- ], 16)
128
- ], 16))
129
- }), 128))
229
+ "class": _ctx.cx('file')
230
+ }, _ctx.ptm('file')), [vue.createElementVNode("img", vue.mergeProps({
231
+ role: "presentation",
232
+ "class": _ctx.cx('thumbnail'),
233
+ alt: file.name,
234
+ src: file.objectURL,
235
+ width: $props.previewWidth
236
+ }, _ctx.ptm('thumbnail')), null, 16, _hoisted_1$1), vue.createElementVNode("div", vue.mergeProps({
237
+ "class": _ctx.cx('details')
238
+ }, _ctx.ptm('details')), [vue.createElementVNode("div", vue.mergeProps({
239
+ "class": _ctx.cx('fileName')
240
+ }, _ctx.ptm('fileName')), vue.toDisplayString(file.name), 17), vue.createElementVNode("span", vue.mergeProps({
241
+ "class": _ctx.cx('fileSize')
242
+ }, _ctx.ptm('fileSize')), vue.toDisplayString($options.formatSize(file.size)), 17), vue.createVNode(_component_FileUploadBadge, {
243
+ value: $props.badgeValue,
244
+ "class": vue.normalizeClass(_ctx.cx('badge')),
245
+ severity: $props.badgeSeverity,
246
+ unstyled: _ctx.unstyled,
247
+ pt: _ctx.ptm('badge')
248
+ }, null, 8, ["value", "class", "severity", "unstyled", "pt"])], 16), vue.createElementVNode("div", vue.mergeProps({
249
+ "class": _ctx.cx('actions')
250
+ }, _ctx.ptm('actions')), [vue.createVNode(_component_FileUploadButton, {
251
+ onClick: function onClick($event) {
252
+ return _ctx.$emit('remove', index);
253
+ },
254
+ text: "",
255
+ rounded: "",
256
+ severity: "danger",
257
+ "class": vue.normalizeClass(_ctx.cx('removeButton')),
258
+ unstyled: _ctx.unstyled,
259
+ pt: _ctx.ptm('removeButton')
260
+ }, {
261
+ icon: vue.withCtx(function (iconProps) {
262
+ return [$props.templates.fileremoveicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.fileremoveicon), {
263
+ key: 0,
264
+ "class": vue.normalizeClass(iconProps["class"]),
265
+ file: file,
266
+ index: index
267
+ }, null, 8, ["class", "file", "index"])) : (vue.openBlock(), vue.createBlock(_component_TimesIcon, vue.mergeProps({
268
+ key: 1,
269
+ "class": iconProps["class"],
270
+ "aria-hidden": "true"
271
+ }, _ctx.ptm('removeButton')['icon']), null, 16, ["class"]))];
272
+ }),
273
+ _: 2
274
+ }, 1032, ["onClick", "class", "unstyled", "pt"])], 16)], 16);
275
+ }), 128);
130
276
  }
131
277
 
132
278
  script$1.render = render$1;
133
279
 
280
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
281
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
282
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
283
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
284
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
285
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
286
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
134
287
  var script = {
135
- name: 'FileUpload',
136
- extends: BaseComponent__default["default"],
137
- emits: ['select', 'uploader', 'before-upload', 'progress', 'upload', 'error', 'before-send', 'clear', 'remove', 'remove-uploaded-file'],
138
- props: {
139
- name: {
140
- type: String,
141
- default: null
142
- },
143
- url: {
144
- type: String,
145
- default: null
146
- },
147
- mode: {
148
- type: String,
149
- default: 'advanced'
150
- },
151
- multiple: {
152
- type: Boolean,
153
- default: false
154
- },
155
- accept: {
156
- type: String,
157
- default: null
158
- },
159
- disabled: {
160
- type: Boolean,
161
- default: false
162
- },
163
- auto: {
164
- type: Boolean,
165
- default: false
166
- },
167
- maxFileSize: {
168
- type: Number,
169
- default: null
170
- },
171
- invalidFileSizeMessage: {
172
- type: String,
173
- default: '{0}: Invalid file size, file size should be smaller than {1}.'
174
- },
175
- invalidFileTypeMessage: {
176
- type: String,
177
- default: '{0}: Invalid file type, allowed file types: {1}.'
178
- },
179
- fileLimit: {
180
- type: Number,
181
- default: null
182
- },
183
- invalidFileLimitMessage: {
184
- type: String,
185
- default: 'Maximum number of files exceeded, limit is {0} at most.'
186
- },
187
- withCredentials: {
188
- type: Boolean,
189
- default: false
190
- },
191
- previewWidth: {
192
- type: Number,
193
- default: 50
194
- },
195
- chooseLabel: {
196
- type: String,
197
- default: null
198
- },
199
- uploadLabel: {
200
- type: String,
201
- default: null
202
- },
203
- cancelLabel: {
204
- type: String,
205
- default: null
206
- },
207
- customUpload: {
208
- type: Boolean,
209
- default: false
210
- },
211
- showUploadButton: {
212
- type: Boolean,
213
- default: true
214
- },
215
- showCancelButton: {
216
- type: Boolean,
217
- default: true
218
- },
219
- chooseIcon: {
220
- type: String,
221
- default: undefined
222
- },
223
- uploadIcon: {
224
- type: String,
225
- default: undefined
226
- },
227
- cancelIcon: {
228
- type: String,
229
- default: undefined
230
- },
231
- style: null,
232
- class: null
233
- },
234
- duplicateIEEvent: false,
235
- data() {
236
- return {
237
- uploadedFileCount: 0,
238
- files: [],
239
- messages: [],
240
- focused: false,
241
- progress: null,
242
- uploadedFiles: []
243
- };
244
- },
245
- methods: {
246
- onFileSelect(event) {
247
- if (event.type !== 'drop' && this.isIE11() && this.duplicateIEEvent) {
248
- this.duplicateIEEvent = false;
249
-
250
- return;
251
- }
252
-
253
- this.messages = [];
254
- this.files = this.files || [];
255
- let files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
256
-
257
- for (let file of files) {
258
- if (!this.isFileSelected(file)) {
259
- if (this.validate(file)) {
260
- if (this.isImage(file)) {
261
- file.objectURL = window.URL.createObjectURL(file);
262
- }
263
-
264
- this.files.push(file);
265
- }
266
- }
288
+ name: 'FileUpload',
289
+ "extends": script$2,
290
+ emits: ['select', 'uploader', 'before-upload', 'progress', 'upload', 'error', 'before-send', 'clear', 'remove', 'remove-uploaded-file'],
291
+ duplicateIEEvent: false,
292
+ data: function data() {
293
+ return {
294
+ uploadedFileCount: 0,
295
+ files: [],
296
+ messages: [],
297
+ focused: false,
298
+ progress: null,
299
+ uploadedFiles: []
300
+ };
301
+ },
302
+ methods: {
303
+ onFileSelect: function onFileSelect(event) {
304
+ if (event.type !== 'drop' && this.isIE11() && this.duplicateIEEvent) {
305
+ this.duplicateIEEvent = false;
306
+ return;
307
+ }
308
+ this.messages = [];
309
+ this.files = this.files || [];
310
+ var files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
311
+ var _iterator = _createForOfIteratorHelper(files),
312
+ _step;
313
+ try {
314
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
315
+ var file = _step.value;
316
+ if (!this.isFileSelected(file)) {
317
+ if (this.validate(file)) {
318
+ if (this.isImage(file)) {
319
+ file.objectURL = window.URL.createObjectURL(file);
320
+ }
321
+ this.files.push(file);
267
322
  }
268
-
269
- this.$emit('select', { originalEvent: event, files: this.files });
270
-
271
- if (this.fileLimit) {
272
- this.checkFileLimit();
273
- }
274
-
275
- if (this.auto && this.hasFiles && !this.isFileLimitExceeded()) {
276
- this.upload();
277
- }
278
-
279
- if (event.type !== 'drop' && this.isIE11()) {
280
- this.clearIEInput();
281
- } else {
282
- this.clearInputElement();
283
- }
284
- },
285
- choose() {
286
- this.$refs.fileInput.click();
287
- },
288
- upload() {
289
- if (this.customUpload) {
290
- if (this.fileLimit) {
291
- this.uploadedFileCount += this.files.length;
292
- }
293
-
294
- this.$emit('uploader', { files: this.files });
295
- this.clear();
323
+ }
324
+ }
325
+ } catch (err) {
326
+ _iterator.e(err);
327
+ } finally {
328
+ _iterator.f();
329
+ }
330
+ this.$emit('select', {
331
+ originalEvent: event,
332
+ files: this.files
333
+ });
334
+ if (this.fileLimit) {
335
+ this.checkFileLimit();
336
+ }
337
+ if (this.auto && this.hasFiles && !this.isFileLimitExceeded()) {
338
+ this.upload();
339
+ }
340
+ if (event.type !== 'drop' && this.isIE11()) {
341
+ this.clearIEInput();
342
+ } else {
343
+ this.clearInputElement();
344
+ }
345
+ },
346
+ choose: function choose() {
347
+ this.$refs.fileInput.click();
348
+ },
349
+ upload: function upload() {
350
+ var _this = this;
351
+ if (this.customUpload) {
352
+ if (this.fileLimit) {
353
+ this.uploadedFileCount += this.files.length;
354
+ }
355
+ this.$emit('uploader', {
356
+ files: this.files
357
+ });
358
+ this.clear();
359
+ } else {
360
+ var xhr = new XMLHttpRequest();
361
+ var formData = new FormData();
362
+ this.$emit('before-upload', {
363
+ xhr: xhr,
364
+ formData: formData
365
+ });
366
+ var _iterator2 = _createForOfIteratorHelper(this.files),
367
+ _step2;
368
+ try {
369
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
370
+ var file = _step2.value;
371
+ formData.append(this.name, file, file.name);
372
+ }
373
+ } catch (err) {
374
+ _iterator2.e(err);
375
+ } finally {
376
+ _iterator2.f();
377
+ }
378
+ xhr.upload.addEventListener('progress', function (event) {
379
+ if (event.lengthComputable) {
380
+ _this.progress = Math.round(event.loaded * 100 / event.total);
381
+ }
382
+ _this.$emit('progress', {
383
+ originalEvent: event,
384
+ progress: _this.progress
385
+ });
386
+ });
387
+ xhr.onreadystatechange = function () {
388
+ if (xhr.readyState === 4) {
389
+ var _this$uploadedFiles;
390
+ _this.progress = 0;
391
+ if (xhr.status >= 200 && xhr.status < 300) {
392
+ if (_this.fileLimit) {
393
+ _this.uploadedFileCount += _this.files.length;
394
+ }
395
+ _this.$emit('upload', {
396
+ xhr: xhr,
397
+ files: _this.files
398
+ });
296
399
  } else {
297
- let xhr = new XMLHttpRequest();
298
- let formData = new FormData();
299
-
300
- this.$emit('before-upload', {
301
- xhr: xhr,
302
- formData: formData
303
- });
304
-
305
- for (let file of this.files) {
306
- formData.append(this.name, file, file.name);
307
- }
308
-
309
- xhr.upload.addEventListener('progress', (event) => {
310
- if (event.lengthComputable) {
311
- this.progress = Math.round((event.loaded * 100) / event.total);
312
- }
313
-
314
- this.$emit('progress', {
315
- originalEvent: event,
316
- progress: this.progress
317
- });
318
- });
319
-
320
- xhr.onreadystatechange = () => {
321
- if (xhr.readyState === 4) {
322
- this.progress = 0;
323
-
324
- if (xhr.status >= 200 && xhr.status < 300) {
325
- if (this.fileLimit) {
326
- this.uploadedFileCount += this.files.length;
327
- }
328
-
329
- this.$emit('upload', {
330
- xhr: xhr,
331
- files: this.files
332
- });
333
- } else {
334
- this.$emit('error', {
335
- xhr: xhr,
336
- files: this.files
337
- });
338
- }
339
-
340
- this.uploadedFiles.push(...this.files);
341
- this.clear();
342
- }
343
- };
344
-
345
- xhr.open('POST', this.url, true);
346
-
347
- this.$emit('before-send', {
348
- xhr: xhr,
349
- formData: formData
350
- });
351
-
352
- xhr.withCredentials = this.withCredentials;
353
-
354
- xhr.send(formData);
355
- }
356
- },
357
- clear() {
358
- this.files = [];
359
- this.messages = null;
360
- this.$emit('clear');
361
-
362
- if (this.isAdvanced) {
363
- this.clearInputElement();
364
- }
365
- },
366
- onFocus() {
367
- this.focused = true;
368
- },
369
- onBlur() {
370
- this.focused = false;
371
- },
372
- isFileSelected(file) {
373
- if (this.files && this.files.length) {
374
- for (let sFile of this.files) {
375
- if (sFile.name + sFile.type + sFile.size === file.name + file.type + file.size) return true;
376
- }
400
+ _this.$emit('error', {
401
+ xhr: xhr,
402
+ files: _this.files
403
+ });
377
404
  }
378
-
379
- return false;
380
- },
381
- isIE11() {
382
- return !!window['MSInputMethodContext'] && !!document['documentMode'];
383
- },
384
- validate(file) {
385
- if (this.accept && !this.isFileTypeValid(file)) {
386
- this.messages.push(this.invalidFileTypeMessage.replace('{0}', file.name).replace('{1}', this.accept));
387
-
388
- return false;
389
- }
390
-
391
- if (this.maxFileSize && file.size > this.maxFileSize) {
392
- this.messages.push(this.invalidFileSizeMessage.replace('{0}', file.name).replace('{1}', this.formatSize(this.maxFileSize)));
393
-
394
- return false;
395
- }
396
-
405
+ (_this$uploadedFiles = _this.uploadedFiles).push.apply(_this$uploadedFiles, _toConsumableArray(_this.files));
406
+ _this.clear();
407
+ }
408
+ };
409
+ xhr.open('POST', this.url, true);
410
+ this.$emit('before-send', {
411
+ xhr: xhr,
412
+ formData: formData
413
+ });
414
+ xhr.withCredentials = this.withCredentials;
415
+ xhr.send(formData);
416
+ }
417
+ },
418
+ clear: function clear() {
419
+ this.files = [];
420
+ this.messages = null;
421
+ this.$emit('clear');
422
+ if (this.isAdvanced) {
423
+ this.clearInputElement();
424
+ }
425
+ },
426
+ onFocus: function onFocus() {
427
+ this.focused = true;
428
+ },
429
+ onBlur: function onBlur() {
430
+ this.focused = false;
431
+ },
432
+ isFileSelected: function isFileSelected(file) {
433
+ if (this.files && this.files.length) {
434
+ var _iterator3 = _createForOfIteratorHelper(this.files),
435
+ _step3;
436
+ try {
437
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
438
+ var sFile = _step3.value;
439
+ if (sFile.name + sFile.type + sFile.size === file.name + file.type + file.size) return true;
440
+ }
441
+ } catch (err) {
442
+ _iterator3.e(err);
443
+ } finally {
444
+ _iterator3.f();
445
+ }
446
+ }
447
+ return false;
448
+ },
449
+ isIE11: function isIE11() {
450
+ return !!window['MSInputMethodContext'] && !!document['documentMode'];
451
+ },
452
+ validate: function validate(file) {
453
+ if (this.accept && !this.isFileTypeValid(file)) {
454
+ this.messages.push(this.invalidFileTypeMessage.replace('{0}', file.name).replace('{1}', this.accept));
455
+ return false;
456
+ }
457
+ if (this.maxFileSize && file.size > this.maxFileSize) {
458
+ this.messages.push(this.invalidFileSizeMessage.replace('{0}', file.name).replace('{1}', this.formatSize(this.maxFileSize)));
459
+ return false;
460
+ }
461
+ return true;
462
+ },
463
+ isFileTypeValid: function isFileTypeValid(file) {
464
+ var acceptableTypes = this.accept.split(',').map(function (type) {
465
+ return type.trim();
466
+ });
467
+ var _iterator4 = _createForOfIteratorHelper(acceptableTypes),
468
+ _step4;
469
+ try {
470
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
471
+ var type = _step4.value;
472
+ var acceptable = this.isWildcard(type) ? this.getTypeClass(file.type) === this.getTypeClass(type) : file.type == type || this.getFileExtension(file).toLowerCase() === type.toLowerCase();
473
+ if (acceptable) {
397
474
  return true;
398
- },
399
- isFileTypeValid(file) {
400
- let acceptableTypes = this.accept.split(',').map((type) => type.trim());
401
-
402
- for (let type of acceptableTypes) {
403
- let acceptable = this.isWildcard(type) ? this.getTypeClass(file.type) === this.getTypeClass(type) : file.type == type || this.getFileExtension(file).toLowerCase() === type.toLowerCase();
404
-
405
- if (acceptable) {
406
- return true;
407
- }
408
- }
409
-
410
- return false;
411
- },
412
- getTypeClass(fileType) {
413
- return fileType.substring(0, fileType.indexOf('/'));
414
- },
415
- isWildcard(fileType) {
416
- return fileType.indexOf('*') !== -1;
417
- },
418
- getFileExtension(file) {
419
- return '.' + file.name.split('.').pop();
420
- },
421
- isImage(file) {
422
- return /^image\//.test(file.type);
423
- },
424
- onDragEnter(event) {
425
- if (!this.disabled) {
426
- event.stopPropagation();
427
- event.preventDefault();
428
- }
429
- },
430
- onDragOver(event) {
431
- if (!this.disabled) {
432
- utils.DomHandler.addClass(this.$refs.content, 'p-fileupload-highlight');
433
- event.stopPropagation();
434
- event.preventDefault();
435
- }
436
- },
437
- onDragLeave() {
438
- if (!this.disabled) {
439
- utils.DomHandler.removeClass(this.$refs.content, 'p-fileupload-highlight');
440
- }
441
- },
442
- onDrop(event) {
443
- if (!this.disabled) {
444
- utils.DomHandler.removeClass(this.$refs.content, 'p-fileupload-highlight');
445
- event.stopPropagation();
446
- event.preventDefault();
447
-
448
- const files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
449
- const allowDrop = this.multiple || (files && files.length === 1);
450
-
451
- if (allowDrop) {
452
- this.onFileSelect(event);
453
- }
454
- }
455
- },
456
- onBasicUploaderClick() {
457
- if (this.hasFiles) this.upload();
458
- else this.$refs.fileInput.click();
459
- },
460
- remove(index) {
461
- this.clearInputElement();
462
- let removedFile = this.files.splice(index, 1)[0];
463
-
464
- this.files = [...this.files];
465
- this.$emit('remove', {
466
- file: removedFile,
467
- files: this.files
468
- });
469
- },
470
- removeUploadedFile(index) {
471
- let removedFile = this.uploadedFiles.splice(index, 1)[0];
472
-
473
- this.uploadedFiles = [...this.uploadedFiles];
474
- this.$emit('remove-uploaded-file', {
475
- file: removedFile,
476
- files: this.uploadedFiles
477
- });
478
- },
479
- clearInputElement() {
480
- this.$refs.fileInput.value = '';
481
- },
482
- clearIEInput() {
483
- if (this.$refs.fileInput) {
484
- this.duplicateIEEvent = true; //IE11 fix to prevent onFileChange trigger again
485
- this.$refs.fileInput.value = '';
486
- }
487
- },
488
- formatSize(bytes) {
489
- if (bytes === 0) {
490
- return '0 B';
491
- }
492
-
493
- let k = 1000,
494
- dm = 3,
495
- sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
496
- i = Math.floor(Math.log(bytes) / Math.log(k));
497
-
498
- return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
499
- },
500
- isFileLimitExceeded() {
501
- if (this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount && this.focused) {
502
- this.focused = false;
503
- }
504
-
505
- return this.fileLimit && this.fileLimit < this.files.length + this.uploadedFileCount;
506
- },
507
- checkFileLimit() {
508
- if (this.isFileLimitExceeded()) {
509
- this.messages.push(this.invalidFileLimitMessage.replace('{0}', this.fileLimit.toString()));
510
- }
511
- },
512
- onMessageClose() {
513
- this.messages = null;
475
+ }
514
476
  }
477
+ } catch (err) {
478
+ _iterator4.e(err);
479
+ } finally {
480
+ _iterator4.f();
481
+ }
482
+ return false;
483
+ },
484
+ getTypeClass: function getTypeClass(fileType) {
485
+ return fileType.substring(0, fileType.indexOf('/'));
486
+ },
487
+ isWildcard: function isWildcard(fileType) {
488
+ return fileType.indexOf('*') !== -1;
489
+ },
490
+ getFileExtension: function getFileExtension(file) {
491
+ return '.' + file.name.split('.').pop();
492
+ },
493
+ isImage: function isImage(file) {
494
+ return /^image\//.test(file.type);
515
495
  },
516
- computed: {
517
- isAdvanced() {
518
- return this.mode === 'advanced';
519
- },
520
- isBasic() {
521
- return this.mode === 'basic';
522
- },
523
- advancedChooseButtonClass() {
524
- return [
525
- 'p-button p-component p-fileupload-choose',
526
- this.class,
527
- {
528
- 'p-disabled': this.disabled,
529
- 'p-focus': this.focused
530
- }
531
- ];
532
- },
533
- basicChooseButtonClass() {
534
- return [
535
- 'p-button p-component p-fileupload-choose',
536
- this.class,
537
- {
538
- 'p-fileupload-choose-selected': this.hasFiles,
539
- 'p-disabled': this.disabled,
540
- 'p-focus': this.focused
541
- }
542
- ];
543
- },
544
- basicChooseButtonLabel() {
545
- return this.auto ? this.chooseButtonLabel : this.hasFiles ? this.files.map((f) => f.name).join(', ') : this.chooseButtonLabel;
546
- },
547
- hasFiles() {
548
- return this.files && this.files.length > 0;
549
- },
550
- hasUploadedFiles() {
551
- return this.uploadedFiles && this.uploadedFiles.length > 0;
552
- },
553
- chooseDisabled() {
554
- return this.disabled || (this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount);
555
- },
556
- uploadDisabled() {
557
- return this.disabled || !this.hasFiles || (this.fileLimit && this.fileLimit < this.files.length);
558
- },
559
- cancelDisabled() {
560
- return this.disabled || !this.hasFiles;
561
- },
562
- chooseButtonLabel() {
563
- return this.chooseLabel || this.$primevue.config.locale.choose;
564
- },
565
- uploadButtonLabel() {
566
- return this.uploadLabel || this.$primevue.config.locale.upload;
567
- },
568
- cancelButtonLabel() {
569
- return this.cancelLabel || this.$primevue.config.locale.cancel;
570
- },
571
- completedLabel() {
572
- return this.$primevue.config.locale.completed;
573
- },
574
- pendingLabel() {
575
- return this.$primevue.config.locale.pending;
496
+ onDragEnter: function onDragEnter(event) {
497
+ if (!this.disabled) {
498
+ event.stopPropagation();
499
+ event.preventDefault();
500
+ }
501
+ },
502
+ onDragOver: function onDragOver(event) {
503
+ if (!this.disabled) {
504
+ this.$refs.content.setAttribute('data-p-highlight', true);
505
+ event.stopPropagation();
506
+ event.preventDefault();
507
+ }
508
+ },
509
+ onDragLeave: function onDragLeave() {
510
+ if (!this.disabled) {
511
+ this.$refs.content.setAttribute('data-p-highlight', false);
512
+ }
513
+ },
514
+ onDrop: function onDrop(event) {
515
+ if (!this.disabled) {
516
+ this.$refs.content.setAttribute('data-p-highlight', false);
517
+ event.stopPropagation();
518
+ event.preventDefault();
519
+ var files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
520
+ var allowDrop = this.multiple || files && files.length === 1;
521
+ if (allowDrop) {
522
+ this.onFileSelect(event);
576
523
  }
524
+ }
525
+ },
526
+ onBasicUploaderClick: function onBasicUploaderClick() {
527
+ if (this.hasFiles) this.upload();else this.$refs.fileInput.click();
528
+ },
529
+ remove: function remove(index) {
530
+ this.clearInputElement();
531
+ var removedFile = this.files.splice(index, 1)[0];
532
+ this.files = _toConsumableArray(this.files);
533
+ this.$emit('remove', {
534
+ file: removedFile,
535
+ files: this.files
536
+ });
537
+ },
538
+ removeUploadedFile: function removeUploadedFile(index) {
539
+ var removedFile = this.uploadedFiles.splice(index, 1)[0];
540
+ this.uploadedFiles = _toConsumableArray(this.uploadedFiles);
541
+ this.$emit('remove-uploaded-file', {
542
+ file: removedFile,
543
+ files: this.uploadedFiles
544
+ });
545
+ },
546
+ clearInputElement: function clearInputElement() {
547
+ this.$refs.fileInput.value = '';
548
+ },
549
+ clearIEInput: function clearIEInput() {
550
+ if (this.$refs.fileInput) {
551
+ this.duplicateIEEvent = true; //IE11 fix to prevent onFileChange trigger again
552
+ this.$refs.fileInput.value = '';
553
+ }
554
+ },
555
+ formatSize: function formatSize(bytes) {
556
+ if (bytes === 0) {
557
+ return '0 B';
558
+ }
559
+ var k = 1000,
560
+ dm = 3,
561
+ sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
562
+ i = Math.floor(Math.log(bytes) / Math.log(k));
563
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
564
+ },
565
+ isFileLimitExceeded: function isFileLimitExceeded() {
566
+ if (this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount && this.focused) {
567
+ this.focused = false;
568
+ }
569
+ return this.fileLimit && this.fileLimit < this.files.length + this.uploadedFileCount;
577
570
  },
578
- components: {
579
- FileUploadButton: Button__default["default"],
580
- FileUploadProgressBar: ProgressBar__default["default"],
581
- FileUploadMessage: Message__default["default"],
582
- FileContent: script$1,
583
- PlusIcon: PlusIcon__default["default"],
584
- UploadIcon: UploadIcon__default["default"],
585
- TimesIcon: TimesIcon__default["default"]
586
- },
587
- directives: {
588
- ripple: Ripple__default["default"]
571
+ checkFileLimit: function checkFileLimit() {
572
+ if (this.isFileLimitExceeded()) {
573
+ this.messages.push(this.invalidFileLimitMessage.replace('{0}', this.fileLimit.toString()));
574
+ }
575
+ },
576
+ onMessageClose: function onMessageClose() {
577
+ this.messages = null;
589
578
  }
590
- };
591
-
592
- const _hoisted_1 = ["multiple", "accept", "disabled"];
593
- const _hoisted_2 = ["accept", "disabled", "multiple"];
594
-
595
- function render(_ctx, _cache, $props, $setup, $data, $options) {
596
- const _component_FileUploadButton = vue.resolveComponent("FileUploadButton");
597
- const _component_FileUploadProgressBar = vue.resolveComponent("FileUploadProgressBar");
598
- const _component_FileUploadMessage = vue.resolveComponent("FileUploadMessage");
599
- const _component_FileContent = vue.resolveComponent("FileContent");
600
- const _directive_ripple = vue.resolveDirective("ripple");
601
-
602
- return ($options.isAdvanced)
603
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
604
- key: 0,
605
- class: "p-fileupload p-fileupload-advanced p-component"
606
- }, _ctx.ptm('root')), [
607
- vue.createElementVNode("input", vue.mergeProps({
608
- ref: "fileInput",
609
- type: "file",
610
- onChange: _cache[0] || (_cache[0] = (...args) => ($options.onFileSelect && $options.onFileSelect(...args))),
611
- multiple: $props.multiple,
612
- accept: $props.accept,
613
- disabled: $options.chooseDisabled
614
- }, _ctx.ptm('input')), null, 16, _hoisted_1),
615
- vue.createElementVNode("div", vue.mergeProps({ class: "p-fileupload-buttonbar" }, _ctx.ptm('buttonbar')), [
616
- vue.renderSlot(_ctx.$slots, "header", {
617
- files: $data.files,
618
- uploadedFiles: $data.uploadedFiles,
619
- chooseCallback: $options.choose,
620
- uploadCallback: $options.upload,
621
- clearCallback: $options.clear
622
- }, () => [
623
- vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
624
- class: $options.advancedChooseButtonClass,
625
- style: $props.style,
626
- onClick: _cache[1] || (_cache[1] = (...args) => ($options.choose && $options.choose(...args))),
627
- onKeydown: _cache[2] || (_cache[2] = vue.withKeys((...args) => ($options.choose && $options.choose(...args)), ["enter"])),
628
- onFocus: _cache[3] || (_cache[3] = (...args) => ($options.onFocus && $options.onFocus(...args))),
629
- onBlur: _cache[4] || (_cache[4] = (...args) => ($options.onBlur && $options.onBlur(...args))),
630
- tabindex: "0"
631
- }, _ctx.ptm('chooseButton')), [
632
- vue.renderSlot(_ctx.$slots, "chooseicon", {}, () => [
633
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.chooseIcon ? 'span' : 'PlusIcon'), vue.mergeProps({
634
- class: ['p-button-icon p-button-icon-left', $props.chooseIcon],
635
- "aria-hidden": "true"
636
- }, _ctx.ptm('chooseIcon')), null, 16, ["class"]))
637
- ]),
638
- vue.createElementVNode("span", vue.mergeProps({ class: "p-button-label" }, _ctx.ptm('chooseButtonLabel')), vue.toDisplayString($options.chooseButtonLabel), 17)
639
- ], 16)), [
640
- [_directive_ripple]
641
- ]),
642
- ($props.showUploadButton)
643
- ? (vue.openBlock(), vue.createBlock(_component_FileUploadButton, {
644
- key: 0,
645
- label: $options.uploadButtonLabel,
646
- onClick: $options.upload,
647
- disabled: $options.uploadDisabled,
648
- pt: _ctx.ptm('uploadButton')
649
- }, {
650
- icon: vue.withCtx((iconProps) => [
651
- vue.renderSlot(_ctx.$slots, "uploadicon", {}, () => [
652
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.uploadIcon ? 'span' : 'UploadIcon'), vue.mergeProps({
653
- class: [iconProps.class, $props.uploadIcon],
654
- "aria-hidden": "true"
655
- }, _ctx.ptm('uploadButton')['icon']), null, 16, ["class"]))
656
- ])
657
- ]),
658
- _: 3
659
- }, 8, ["label", "onClick", "disabled", "pt"]))
660
- : vue.createCommentVNode("", true),
661
- ($props.showCancelButton)
662
- ? (vue.openBlock(), vue.createBlock(_component_FileUploadButton, {
663
- key: 1,
664
- label: $options.cancelButtonLabel,
665
- onClick: $options.clear,
666
- disabled: $options.cancelDisabled,
667
- pt: _ctx.ptm('cancelButton')
668
- }, {
669
- icon: vue.withCtx((iconProps) => [
670
- vue.renderSlot(_ctx.$slots, "cancelicon", {}, () => [
671
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.cancelIcon ? 'span' : 'TimesIcon'), vue.mergeProps({
672
- class: [iconProps.class, $props.cancelIcon],
673
- "aria-hidden": "true"
674
- }, _ctx.ptm('cancelButton')['icon']), null, 16, ["class"]))
675
- ])
676
- ]),
677
- _: 3
678
- }, 8, ["label", "onClick", "disabled", "pt"]))
679
- : vue.createCommentVNode("", true)
680
- ])
681
- ], 16),
682
- vue.createElementVNode("div", vue.mergeProps({
683
- ref: "content",
684
- class: "p-fileupload-content",
685
- onDragenter: _cache[5] || (_cache[5] = (...args) => ($options.onDragEnter && $options.onDragEnter(...args))),
686
- onDragover: _cache[6] || (_cache[6] = (...args) => ($options.onDragOver && $options.onDragOver(...args))),
687
- onDragleave: _cache[7] || (_cache[7] = (...args) => ($options.onDragLeave && $options.onDragLeave(...args))),
688
- onDrop: _cache[8] || (_cache[8] = (...args) => ($options.onDrop && $options.onDrop(...args)))
689
- }, _ctx.ptm('content')), [
690
- vue.renderSlot(_ctx.$slots, "content", {
691
- files: $data.files,
692
- uploadedFiles: $data.uploadedFiles,
693
- removeUploadedFileCallback: $options.removeUploadedFile,
694
- removeFileCallback: $options.remove,
695
- progress: $data.progress,
696
- messages: $data.messages
697
- }, () => [
698
- ($options.hasFiles)
699
- ? (vue.openBlock(), vue.createBlock(_component_FileUploadProgressBar, {
700
- key: 0,
701
- value: $data.progress,
702
- showValue: false,
703
- pt: _ctx.ptm('progressbar')
704
- }, null, 8, ["value", "pt"]))
705
- : vue.createCommentVNode("", true),
706
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.messages, (msg) => {
707
- return (vue.openBlock(), vue.createBlock(_component_FileUploadMessage, {
708
- key: msg,
709
- severity: "error",
710
- onClose: $options.onMessageClose,
711
- pt: _ctx.ptm('message')
712
- }, {
713
- default: vue.withCtx(() => [
714
- vue.createTextVNode(vue.toDisplayString(msg), 1)
715
- ]),
716
- _: 2
717
- }, 1032, ["onClose", "pt"]))
718
- }), 128)),
719
- ($options.hasFiles)
720
- ? (vue.openBlock(), vue.createBlock(_component_FileContent, {
721
- key: 1,
722
- files: $data.files,
723
- onRemove: $options.remove,
724
- badgeValue: $options.pendingLabel,
725
- previewWidth: $props.previewWidth,
726
- templates: _ctx.$slots,
727
- pt: _ctx.pt
728
- }, null, 8, ["files", "onRemove", "badgeValue", "previewWidth", "templates", "pt"]))
729
- : vue.createCommentVNode("", true),
730
- vue.createVNode(_component_FileContent, {
731
- files: $data.uploadedFiles,
732
- onRemove: $options.removeUploadedFile,
733
- badgeValue: $options.completedLabel,
734
- badgeSeverity: "success",
735
- previewWidth: $props.previewWidth,
736
- templates: _ctx.$slots,
737
- pt: _ctx.pt
738
- }, null, 8, ["files", "onRemove", "badgeValue", "previewWidth", "templates", "pt"])
739
- ]),
740
- (_ctx.$slots.empty && !$options.hasFiles && !$options.hasUploadedFiles)
741
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
742
- key: 0,
743
- class: "p-fileupload-empty"
744
- }, _ctx.ptm('empty')), [
745
- vue.renderSlot(_ctx.$slots, "empty")
746
- ], 16))
747
- : vue.createCommentVNode("", true)
748
- ], 16)
749
- ], 16))
750
- : ($options.isBasic)
751
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
752
- key: 1,
753
- class: "p-fileupload p-fileupload-basic p-component"
754
- }, _ctx.ptm('root')), [
755
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.messages, (msg) => {
756
- return (vue.openBlock(), vue.createBlock(_component_FileUploadMessage, {
757
- key: msg,
758
- severity: "error",
759
- onClose: $options.onMessageClose,
760
- pt: _ctx.ptm('messages')
761
- }, {
762
- default: vue.withCtx(() => [
763
- vue.createTextVNode(vue.toDisplayString(msg), 1)
764
- ]),
765
- _: 2
766
- }, 1032, ["onClose", "pt"]))
767
- }), 128)),
768
- vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
769
- class: $options.basicChooseButtonClass,
770
- style: $props.style,
771
- onMouseup: _cache[12] || (_cache[12] = (...args) => ($options.onBasicUploaderClick && $options.onBasicUploaderClick(...args))),
772
- onKeydown: _cache[13] || (_cache[13] = vue.withKeys((...args) => ($options.choose && $options.choose(...args)), ["enter"])),
773
- onFocus: _cache[14] || (_cache[14] = (...args) => ($options.onFocus && $options.onFocus(...args))),
774
- onBlur: _cache[15] || (_cache[15] = (...args) => ($options.onBlur && $options.onBlur(...args))),
775
- tabindex: "0"
776
- }, _ctx.ptm('basicButton')), [
777
- (!$options.hasFiles || $props.auto)
778
- ? vue.renderSlot(_ctx.$slots, "uploadicon", { key: 0 }, () => [
779
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.uploadIcon ? 'span' : 'UploadIcon'), vue.mergeProps({
780
- class: ['p-button-icon p-button-icon-left', $props.uploadIcon],
781
- "aria-hidden": "true"
782
- }, _ctx.ptm('uploadIcon')), null, 16, ["class"]))
783
- ])
784
- : vue.renderSlot(_ctx.$slots, "chooseicon", { key: 1 }, () => [
785
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.chooseIcon ? 'span' : 'PlusIcon'), vue.mergeProps({
786
- class: ['p-button-icon p-button-icon-left', $props.chooseIcon],
787
- "aria-hidden": "true"
788
- }, _ctx.ptm('chooseIcon')), null, 16, ["class"]))
789
- ]),
790
- vue.createElementVNode("span", vue.mergeProps({ class: "p-button-label" }, _ctx.ptm('label')), vue.toDisplayString($options.basicChooseButtonLabel), 17),
791
- (!$options.hasFiles)
792
- ? (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
793
- key: 2,
794
- ref: "fileInput",
795
- type: "file",
796
- accept: $props.accept,
797
- disabled: $props.disabled,
798
- multiple: $props.multiple,
799
- onChange: _cache[9] || (_cache[9] = (...args) => ($options.onFileSelect && $options.onFileSelect(...args))),
800
- onFocus: _cache[10] || (_cache[10] = (...args) => ($options.onFocus && $options.onFocus(...args))),
801
- onBlur: _cache[11] || (_cache[11] = (...args) => ($options.onBlur && $options.onBlur(...args)))
802
- }, _ctx.ptm('input')), null, 16, _hoisted_2))
803
- : vue.createCommentVNode("", true)
804
- ], 16)), [
805
- [_directive_ripple]
806
- ])
807
- ], 16))
808
- : vue.createCommentVNode("", true)
809
- }
810
-
811
- function styleInject(css, ref) {
812
- if ( ref === void 0 ) ref = {};
813
- var insertAt = ref.insertAt;
814
-
815
- if (!css || typeof document === 'undefined') { return; }
816
-
817
- var head = document.head || document.getElementsByTagName('head')[0];
818
- var style = document.createElement('style');
819
- style.type = 'text/css';
820
-
821
- if (insertAt === 'top') {
822
- if (head.firstChild) {
823
- head.insertBefore(style, head.firstChild);
824
- } else {
825
- head.appendChild(style);
579
+ },
580
+ computed: {
581
+ isAdvanced: function isAdvanced() {
582
+ return this.mode === 'advanced';
583
+ },
584
+ isBasic: function isBasic() {
585
+ return this.mode === 'basic';
586
+ },
587
+ chooseButtonClass: function chooseButtonClass() {
588
+ return [this.cx('chooseButton'), this["class"]];
589
+ },
590
+ basicChooseButtonLabel: function basicChooseButtonLabel() {
591
+ return this.auto ? this.chooseButtonLabel : this.hasFiles ? this.files.map(function (f) {
592
+ return f.name;
593
+ }).join(', ') : this.chooseButtonLabel;
594
+ },
595
+ hasFiles: function hasFiles() {
596
+ return this.files && this.files.length > 0;
597
+ },
598
+ hasUploadedFiles: function hasUploadedFiles() {
599
+ return this.uploadedFiles && this.uploadedFiles.length > 0;
600
+ },
601
+ chooseDisabled: function chooseDisabled() {
602
+ return this.disabled || this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount;
603
+ },
604
+ uploadDisabled: function uploadDisabled() {
605
+ return this.disabled || !this.hasFiles || this.fileLimit && this.fileLimit < this.files.length;
606
+ },
607
+ cancelDisabled: function cancelDisabled() {
608
+ return this.disabled || !this.hasFiles;
609
+ },
610
+ chooseButtonLabel: function chooseButtonLabel() {
611
+ return this.chooseLabel || this.$primevue.config.locale.choose;
612
+ },
613
+ uploadButtonLabel: function uploadButtonLabel() {
614
+ return this.uploadLabel || this.$primevue.config.locale.upload;
615
+ },
616
+ cancelButtonLabel: function cancelButtonLabel() {
617
+ return this.cancelLabel || this.$primevue.config.locale.cancel;
618
+ },
619
+ completedLabel: function completedLabel() {
620
+ return this.$primevue.config.locale.completed;
621
+ },
622
+ pendingLabel: function pendingLabel() {
623
+ return this.$primevue.config.locale.pending;
826
624
  }
827
- } else {
828
- head.appendChild(style);
625
+ },
626
+ components: {
627
+ FileUploadButton: Button__default["default"],
628
+ FileUploadProgressBar: ProgressBar__default["default"],
629
+ FileUploadMessage: Message__default["default"],
630
+ FileContent: script$1,
631
+ PlusIcon: PlusIcon__default["default"],
632
+ UploadIcon: UploadIcon__default["default"],
633
+ TimesIcon: TimesIcon__default["default"]
634
+ },
635
+ directives: {
636
+ ripple: Ripple__default["default"]
829
637
  }
638
+ };
830
639
 
831
- if (style.styleSheet) {
832
- style.styleSheet.cssText = css;
833
- } else {
834
- style.appendChild(document.createTextNode(css));
835
- }
640
+ var _hoisted_1 = ["multiple", "accept", "disabled"];
641
+ var _hoisted_2 = ["accept", "disabled", "multiple"];
642
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
643
+ var _component_FileUploadButton = vue.resolveComponent("FileUploadButton");
644
+ var _component_FileUploadProgressBar = vue.resolveComponent("FileUploadProgressBar");
645
+ var _component_FileUploadMessage = vue.resolveComponent("FileUploadMessage");
646
+ var _component_FileContent = vue.resolveComponent("FileContent");
647
+ var _directive_ripple = vue.resolveDirective("ripple");
648
+ return $options.isAdvanced ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
649
+ key: 0,
650
+ "class": _ctx.cx('root')
651
+ }, _ctx.ptm('root'), {
652
+ "data-pc-name": "fileupload"
653
+ }), [vue.createElementVNode("input", vue.mergeProps({
654
+ ref: "fileInput",
655
+ type: "file",
656
+ onChange: _cache[0] || (_cache[0] = function () {
657
+ return $options.onFileSelect && $options.onFileSelect.apply($options, arguments);
658
+ }),
659
+ multiple: _ctx.multiple,
660
+ accept: _ctx.accept,
661
+ disabled: $options.chooseDisabled
662
+ }, _ctx.ptm('input')), null, 16, _hoisted_1), vue.createElementVNode("div", vue.mergeProps({
663
+ "class": _ctx.cx('buttonbar')
664
+ }, _ctx.ptm('buttonbar')), [vue.renderSlot(_ctx.$slots, "header", {
665
+ files: $data.files,
666
+ uploadedFiles: $data.uploadedFiles,
667
+ chooseCallback: $options.choose,
668
+ uploadCallback: $options.upload,
669
+ clearCallback: $options.clear
670
+ }, function () {
671
+ return [vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
672
+ "class": $options.chooseButtonClass,
673
+ style: _ctx.style,
674
+ onClick: _cache[1] || (_cache[1] = function () {
675
+ return $options.choose && $options.choose.apply($options, arguments);
676
+ }),
677
+ onKeydown: _cache[2] || (_cache[2] = vue.withKeys(function () {
678
+ return $options.choose && $options.choose.apply($options, arguments);
679
+ }, ["enter"])),
680
+ onFocus: _cache[3] || (_cache[3] = function () {
681
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
682
+ }),
683
+ onBlur: _cache[4] || (_cache[4] = function () {
684
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
685
+ }),
686
+ tabindex: "0"
687
+ }, _ctx.ptm('chooseButton')), [vue.renderSlot(_ctx.$slots, "chooseicon", {
688
+ "class": vue.normalizeClass(_ctx.cx('chooseIcon'))
689
+ }, function () {
690
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.chooseIcon ? 'span' : 'PlusIcon'), vue.mergeProps({
691
+ "class": [_ctx.cx('chooseIcon'), _ctx.chooseIcon],
692
+ "aria-hidden": "true"
693
+ }, _ctx.ptm('chooseIcon')), null, 16, ["class"]))];
694
+ }), vue.createElementVNode("span", vue.mergeProps({
695
+ "class": _ctx.cx('chooseButtonLabel')
696
+ }, _ctx.ptm('chooseButtonLabel')), vue.toDisplayString($options.chooseButtonLabel), 17)], 16)), [[_directive_ripple]]), _ctx.showUploadButton ? (vue.openBlock(), vue.createBlock(_component_FileUploadButton, {
697
+ key: 0,
698
+ label: $options.uploadButtonLabel,
699
+ onClick: $options.upload,
700
+ disabled: $options.uploadDisabled,
701
+ unstyled: _ctx.unstyled,
702
+ pt: _ctx.ptm('uploadButton')
703
+ }, {
704
+ icon: vue.withCtx(function (iconProps) {
705
+ return [vue.renderSlot(_ctx.$slots, "uploadicon", {}, function () {
706
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.uploadIcon ? 'span' : 'UploadIcon'), vue.mergeProps({
707
+ "class": [iconProps["class"], _ctx.uploadIcon],
708
+ "aria-hidden": "true"
709
+ }, _ctx.ptm('uploadButton')['icon']), null, 16, ["class"]))];
710
+ })];
711
+ }),
712
+ _: 3
713
+ }, 8, ["label", "onClick", "disabled", "unstyled", "pt"])) : vue.createCommentVNode("", true), _ctx.showCancelButton ? (vue.openBlock(), vue.createBlock(_component_FileUploadButton, {
714
+ key: 1,
715
+ label: $options.cancelButtonLabel,
716
+ onClick: $options.clear,
717
+ disabled: $options.cancelDisabled,
718
+ unstyled: _ctx.unstyled,
719
+ pt: _ctx.ptm('cancelButton')
720
+ }, {
721
+ icon: vue.withCtx(function (iconProps) {
722
+ return [vue.renderSlot(_ctx.$slots, "cancelicon", {}, function () {
723
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.cancelIcon ? 'span' : 'TimesIcon'), vue.mergeProps({
724
+ "class": [iconProps["class"], _ctx.cancelIcon],
725
+ "aria-hidden": "true"
726
+ }, _ctx.ptm('cancelButton')['icon']), null, 16, ["class"]))];
727
+ })];
728
+ }),
729
+ _: 3
730
+ }, 8, ["label", "onClick", "disabled", "unstyled", "pt"])) : vue.createCommentVNode("", true)];
731
+ })], 16), vue.createElementVNode("div", vue.mergeProps({
732
+ ref: "content",
733
+ "class": _ctx.cx('content'),
734
+ onDragenter: _cache[5] || (_cache[5] = function () {
735
+ return $options.onDragEnter && $options.onDragEnter.apply($options, arguments);
736
+ }),
737
+ onDragover: _cache[6] || (_cache[6] = function () {
738
+ return $options.onDragOver && $options.onDragOver.apply($options, arguments);
739
+ }),
740
+ onDragleave: _cache[7] || (_cache[7] = function () {
741
+ return $options.onDragLeave && $options.onDragLeave.apply($options, arguments);
742
+ }),
743
+ onDrop: _cache[8] || (_cache[8] = function () {
744
+ return $options.onDrop && $options.onDrop.apply($options, arguments);
745
+ })
746
+ }, _ctx.ptm('content'), {
747
+ "data-p-highlight": false
748
+ }), [vue.renderSlot(_ctx.$slots, "content", {
749
+ files: $data.files,
750
+ uploadedFiles: $data.uploadedFiles,
751
+ removeUploadedFileCallback: $options.removeUploadedFile,
752
+ removeFileCallback: $options.remove,
753
+ progress: $data.progress,
754
+ messages: $data.messages
755
+ }, function () {
756
+ return [$options.hasFiles ? (vue.openBlock(), vue.createBlock(_component_FileUploadProgressBar, {
757
+ key: 0,
758
+ value: $data.progress,
759
+ showValue: false,
760
+ unstyled: _ctx.unstyled,
761
+ pt: _ctx.ptm('progressbar')
762
+ }, null, 8, ["value", "unstyled", "pt"])) : vue.createCommentVNode("", true), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.messages, function (msg) {
763
+ return vue.openBlock(), vue.createBlock(_component_FileUploadMessage, {
764
+ key: msg,
765
+ severity: "error",
766
+ onClose: $options.onMessageClose,
767
+ unstyled: _ctx.unstyled,
768
+ pt: _ctx.ptm('message')
769
+ }, {
770
+ "default": vue.withCtx(function () {
771
+ return [vue.createTextVNode(vue.toDisplayString(msg), 1)];
772
+ }),
773
+ _: 2
774
+ }, 1032, ["onClose", "unstyled", "pt"]);
775
+ }), 128)), $options.hasFiles ? (vue.openBlock(), vue.createBlock(_component_FileContent, {
776
+ key: 1,
777
+ files: $data.files,
778
+ onRemove: $options.remove,
779
+ badgeValue: $options.pendingLabel,
780
+ previewWidth: _ctx.previewWidth,
781
+ templates: _ctx.$slots,
782
+ unstyled: _ctx.unstyled,
783
+ pt: _ctx.pt
784
+ }, null, 8, ["files", "onRemove", "badgeValue", "previewWidth", "templates", "unstyled", "pt"])) : vue.createCommentVNode("", true), vue.createVNode(_component_FileContent, {
785
+ files: $data.uploadedFiles,
786
+ onRemove: $options.removeUploadedFile,
787
+ badgeValue: $options.completedLabel,
788
+ badgeSeverity: "success",
789
+ previewWidth: _ctx.previewWidth,
790
+ templates: _ctx.$slots,
791
+ unstyled: _ctx.unstyled,
792
+ pt: _ctx.pt
793
+ }, null, 8, ["files", "onRemove", "badgeValue", "previewWidth", "templates", "unstyled", "pt"])];
794
+ }), _ctx.$slots.empty && !$options.hasFiles && !$options.hasUploadedFiles ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
795
+ key: 0,
796
+ "class": _ctx.cx('empty')
797
+ }, _ctx.ptm('empty')), [vue.renderSlot(_ctx.$slots, "empty")], 16)) : vue.createCommentVNode("", true)], 16)], 16)) : $options.isBasic ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
798
+ key: 1,
799
+ "class": _ctx.cx('root')
800
+ }, _ctx.ptm('root'), {
801
+ "data-pc-name": "fileupload"
802
+ }), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.messages, function (msg) {
803
+ return vue.openBlock(), vue.createBlock(_component_FileUploadMessage, {
804
+ key: msg,
805
+ severity: "error",
806
+ onClose: $options.onMessageClose,
807
+ unstyled: _ctx.unstyled,
808
+ pt: _ctx.ptm('messages')
809
+ }, {
810
+ "default": vue.withCtx(function () {
811
+ return [vue.createTextVNode(vue.toDisplayString(msg), 1)];
812
+ }),
813
+ _: 2
814
+ }, 1032, ["onClose", "unstyled", "pt"]);
815
+ }), 128)), vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
816
+ "class": $options.chooseButtonClass,
817
+ style: _ctx.style,
818
+ onMouseup: _cache[12] || (_cache[12] = function () {
819
+ return $options.onBasicUploaderClick && $options.onBasicUploaderClick.apply($options, arguments);
820
+ }),
821
+ onKeydown: _cache[13] || (_cache[13] = vue.withKeys(function () {
822
+ return $options.choose && $options.choose.apply($options, arguments);
823
+ }, ["enter"])),
824
+ onFocus: _cache[14] || (_cache[14] = function () {
825
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
826
+ }),
827
+ onBlur: _cache[15] || (_cache[15] = function () {
828
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
829
+ }),
830
+ tabindex: "0"
831
+ }, _ctx.ptm('chooseButton')), [!$options.hasFiles || _ctx.auto ? vue.renderSlot(_ctx.$slots, "uploadicon", {
832
+ key: 0,
833
+ "class": vue.normalizeClass(_ctx.cx('uploadIcon'))
834
+ }, function () {
835
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.uploadIcon ? 'span' : 'UploadIcon'), vue.mergeProps({
836
+ "class": [_ctx.cx('uploadIcon'), _ctx.uploadIcon],
837
+ "aria-hidden": "true"
838
+ }, _ctx.ptm('uploadIcon')), null, 16, ["class"]))];
839
+ }) : vue.renderSlot(_ctx.$slots, "chooseicon", {
840
+ key: 1,
841
+ "class": vue.normalizeClass(_ctx.cx('chooseIcon'))
842
+ }, function () {
843
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.chooseIcon ? 'span' : 'PlusIcon'), vue.mergeProps({
844
+ "class": [_ctx.cx('chooseIcon'), _ctx.chooseIcon],
845
+ "aria-hidden": "true"
846
+ }, _ctx.ptm('chooseIcon')), null, 16, ["class"]))];
847
+ }), vue.createElementVNode("span", vue.mergeProps({
848
+ "class": _ctx.cx('label')
849
+ }, _ctx.ptm('label')), vue.toDisplayString($options.basicChooseButtonLabel), 17), !$options.hasFiles ? (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
850
+ key: 2,
851
+ ref: "fileInput",
852
+ type: "file",
853
+ accept: _ctx.accept,
854
+ disabled: _ctx.disabled,
855
+ multiple: _ctx.multiple,
856
+ onChange: _cache[9] || (_cache[9] = function () {
857
+ return $options.onFileSelect && $options.onFileSelect.apply($options, arguments);
858
+ }),
859
+ onFocus: _cache[10] || (_cache[10] = function () {
860
+ return $options.onFocus && $options.onFocus.apply($options, arguments);
861
+ }),
862
+ onBlur: _cache[11] || (_cache[11] = function () {
863
+ return $options.onBlur && $options.onBlur.apply($options, arguments);
864
+ })
865
+ }, _ctx.ptm('input')), null, 16, _hoisted_2)) : vue.createCommentVNode("", true)], 16)), [[_directive_ripple]])], 16)) : vue.createCommentVNode("", true);
836
866
  }
837
867
 
838
- var css_248z = "\n.p-fileupload-content {\n position: relative;\n}\n.p-fileupload-content .p-progressbar {\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-button.p-fileupload-choose {\n position: relative;\n overflow: hidden;\n}\n.p-fileupload-buttonbar {\n display: flex;\n flex-wrap: wrap;\n}\n.p-fileupload > input[type='file'],\n.p-fileupload-basic input[type='file'] {\n display: none;\n}\n.p-fluid .p-fileupload .p-button {\n width: auto;\n}\n.p-fileupload-file {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n}\n.p-fileupload-file-thumbnail {\n flex-shrink: 0;\n}\n.p-fileupload-file-actions {\n margin-left: auto;\n}\n";
839
- styleInject(css_248z);
840
-
841
868
  script.render = render;
842
869
 
843
870
  module.exports = script;