primeng 19.0.6 → 19.0.7

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 (345) hide show
  1. package/dataview/dataview.interface.d.ts +9 -19
  2. package/dragdrop/dragdrop.d.ts +3 -2
  3. package/dynamicdialog/dynamicdialog.d.ts +1 -1
  4. package/fesm2022/primeng-accordion.mjs +347 -560
  5. package/fesm2022/primeng-accordion.mjs.map +1 -1
  6. package/fesm2022/primeng-animateonscroll.mjs +37 -40
  7. package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
  8. package/fesm2022/primeng-api.mjs +79 -89
  9. package/fesm2022/primeng-api.mjs.map +1 -1
  10. package/fesm2022/primeng-autocomplete.mjs +505 -786
  11. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  12. package/fesm2022/primeng-autofocus.mjs +26 -27
  13. package/fesm2022/primeng-autofocus.mjs.map +1 -1
  14. package/fesm2022/primeng-avatar.mjs +70 -120
  15. package/fesm2022/primeng-avatar.mjs.map +1 -1
  16. package/fesm2022/primeng-avatargroup.mjs +44 -54
  17. package/fesm2022/primeng-avatargroup.mjs.map +1 -1
  18. package/fesm2022/primeng-badge.mjs +62 -71
  19. package/fesm2022/primeng-badge.mjs.map +1 -1
  20. package/fesm2022/primeng-base.mjs +6 -6
  21. package/fesm2022/primeng-base.mjs.map +1 -1
  22. package/fesm2022/primeng-basecomponent.mjs +15 -15
  23. package/fesm2022/primeng-basecomponent.mjs.map +1 -1
  24. package/fesm2022/primeng-blockui.mjs +66 -87
  25. package/fesm2022/primeng-blockui.mjs.map +1 -1
  26. package/fesm2022/primeng-breadcrumb.mjs +175 -386
  27. package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
  28. package/fesm2022/primeng-button.mjs +223 -328
  29. package/fesm2022/primeng-button.mjs.map +1 -1
  30. package/fesm2022/primeng-buttongroup.mjs +36 -40
  31. package/fesm2022/primeng-buttongroup.mjs.map +1 -1
  32. package/fesm2022/primeng-calendar.mjs +727 -1127
  33. package/fesm2022/primeng-calendar.mjs.map +1 -1
  34. package/fesm2022/primeng-card.mjs +88 -192
  35. package/fesm2022/primeng-card.mjs.map +1 -1
  36. package/fesm2022/primeng-carousel.mjs +218 -405
  37. package/fesm2022/primeng-carousel.mjs.map +1 -1
  38. package/fesm2022/primeng-cascadeselect.mjs +392 -576
  39. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  40. package/fesm2022/primeng-chart.mjs +57 -63
  41. package/fesm2022/primeng-chart.mjs.map +1 -1
  42. package/fesm2022/primeng-checkbox.mjs +131 -183
  43. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  44. package/fesm2022/primeng-chip.mjs +92 -188
  45. package/fesm2022/primeng-chip.mjs.map +1 -1
  46. package/fesm2022/primeng-colorpicker.mjs +142 -167
  47. package/fesm2022/primeng-colorpicker.mjs.map +1 -1
  48. package/fesm2022/primeng-config.mjs +12 -12
  49. package/fesm2022/primeng-config.mjs.map +1 -1
  50. package/fesm2022/primeng-confirmdialog.mjs +220 -347
  51. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  52. package/fesm2022/primeng-confirmpopup.mjs +161 -251
  53. package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
  54. package/fesm2022/primeng-contextmenu.mjs +336 -450
  55. package/fesm2022/primeng-contextmenu.mjs.map +1 -1
  56. package/fesm2022/primeng-dataview.mjs +249 -352
  57. package/fesm2022/primeng-dataview.mjs.map +1 -1
  58. package/fesm2022/primeng-datepicker.mjs +740 -1136
  59. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  60. package/fesm2022/primeng-defer.mjs +25 -31
  61. package/fesm2022/primeng-defer.mjs.map +1 -1
  62. package/fesm2022/primeng-dialog.mjs +277 -478
  63. package/fesm2022/primeng-dialog.mjs.map +1 -1
  64. package/fesm2022/primeng-divider.mjs +68 -77
  65. package/fesm2022/primeng-divider.mjs.map +1 -1
  66. package/fesm2022/primeng-dock.mjs +138 -167
  67. package/fesm2022/primeng-dock.mjs.map +1 -1
  68. package/fesm2022/primeng-dragdrop.mjs +85 -79
  69. package/fesm2022/primeng-dragdrop.mjs.map +1 -1
  70. package/fesm2022/primeng-drawer.mjs +171 -268
  71. package/fesm2022/primeng-drawer.mjs.map +1 -1
  72. package/fesm2022/primeng-dropdown.mjs +529 -867
  73. package/fesm2022/primeng-dropdown.mjs.map +1 -1
  74. package/fesm2022/primeng-dynamicdialog.mjs +152 -301
  75. package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
  76. package/fesm2022/primeng-editor.mjs +118 -156
  77. package/fesm2022/primeng-editor.mjs.map +1 -1
  78. package/fesm2022/primeng-fieldset.mjs +153 -247
  79. package/fesm2022/primeng-fieldset.mjs.map +1 -1
  80. package/fesm2022/primeng-fileupload.mjs +370 -687
  81. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  82. package/fesm2022/primeng-floatlabel.mjs +38 -46
  83. package/fesm2022/primeng-floatlabel.mjs.map +1 -1
  84. package/fesm2022/primeng-fluid.mjs +33 -41
  85. package/fesm2022/primeng-fluid.mjs.map +1 -1
  86. package/fesm2022/primeng-focustrap.mjs +23 -24
  87. package/fesm2022/primeng-focustrap.mjs.map +1 -1
  88. package/fesm2022/primeng-galleria.mjs +529 -761
  89. package/fesm2022/primeng-galleria.mjs.map +1 -1
  90. package/fesm2022/primeng-iconfield.mjs +42 -51
  91. package/fesm2022/primeng-iconfield.mjs.map +1 -1
  92. package/fesm2022/primeng-icons-angledoubledown.mjs +19 -19
  93. package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
  94. package/fesm2022/primeng-icons-angledoubleleft.mjs +19 -19
  95. package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
  96. package/fesm2022/primeng-icons-angledoubleright.mjs +19 -19
  97. package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
  98. package/fesm2022/primeng-icons-angledoubleup.mjs +19 -19
  99. package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
  100. package/fesm2022/primeng-icons-angledown.mjs +17 -19
  101. package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
  102. package/fesm2022/primeng-icons-angleleft.mjs +17 -19
  103. package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
  104. package/fesm2022/primeng-icons-angleright.mjs +17 -19
  105. package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
  106. package/fesm2022/primeng-icons-angleup.mjs +17 -19
  107. package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
  108. package/fesm2022/primeng-icons-arrowdown.mjs +26 -26
  109. package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
  110. package/fesm2022/primeng-icons-arrowdownleft.mjs +17 -19
  111. package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
  112. package/fesm2022/primeng-icons-arrowdownright.mjs +17 -19
  113. package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
  114. package/fesm2022/primeng-icons-arrowleft.mjs +26 -26
  115. package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
  116. package/fesm2022/primeng-icons-arrowright.mjs +19 -19
  117. package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
  118. package/fesm2022/primeng-icons-arrowup.mjs +26 -26
  119. package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
  120. package/fesm2022/primeng-icons-ban.mjs +24 -26
  121. package/fesm2022/primeng-icons-ban.mjs.map +1 -1
  122. package/fesm2022/primeng-icons-bars.mjs +19 -19
  123. package/fesm2022/primeng-icons-bars.mjs.map +1 -1
  124. package/fesm2022/primeng-icons-baseicon.mjs +28 -33
  125. package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
  126. package/fesm2022/primeng-icons-blank.mjs +14 -16
  127. package/fesm2022/primeng-icons-blank.mjs.map +1 -1
  128. package/fesm2022/primeng-icons-calendar.mjs +17 -19
  129. package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
  130. package/fesm2022/primeng-icons-caretleft.mjs +17 -19
  131. package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
  132. package/fesm2022/primeng-icons-caretright.mjs +17 -19
  133. package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
  134. package/fesm2022/primeng-icons-check.mjs +17 -19
  135. package/fesm2022/primeng-icons-check.mjs.map +1 -1
  136. package/fesm2022/primeng-icons-chevrondown.mjs +17 -19
  137. package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
  138. package/fesm2022/primeng-icons-chevronleft.mjs +17 -19
  139. package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
  140. package/fesm2022/primeng-icons-chevronright.mjs +17 -19
  141. package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
  142. package/fesm2022/primeng-icons-chevronup.mjs +17 -19
  143. package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
  144. package/fesm2022/primeng-icons-exclamationtriangle.mjs +32 -26
  145. package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
  146. package/fesm2022/primeng-icons-eye.mjs +19 -19
  147. package/fesm2022/primeng-icons-eye.mjs.map +1 -1
  148. package/fesm2022/primeng-icons-eyeslash.mjs +26 -26
  149. package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
  150. package/fesm2022/primeng-icons-filter.mjs +24 -26
  151. package/fesm2022/primeng-icons-filter.mjs.map +1 -1
  152. package/fesm2022/primeng-icons-filterslash.mjs +26 -26
  153. package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
  154. package/fesm2022/primeng-icons-home.mjs +26 -26
  155. package/fesm2022/primeng-icons-home.mjs.map +1 -1
  156. package/fesm2022/primeng-icons-infocircle.mjs +26 -26
  157. package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
  158. package/fesm2022/primeng-icons-minus.mjs +17 -19
  159. package/fesm2022/primeng-icons-minus.mjs.map +1 -1
  160. package/fesm2022/primeng-icons-pencil.mjs +24 -26
  161. package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
  162. package/fesm2022/primeng-icons-plus.mjs +24 -26
  163. package/fesm2022/primeng-icons-plus.mjs.map +1 -1
  164. package/fesm2022/primeng-icons-refresh.mjs +26 -26
  165. package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
  166. package/fesm2022/primeng-icons-search.mjs +26 -26
  167. package/fesm2022/primeng-icons-search.mjs.map +1 -1
  168. package/fesm2022/primeng-icons-searchminus.mjs +26 -26
  169. package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
  170. package/fesm2022/primeng-icons-searchplus.mjs +26 -26
  171. package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
  172. package/fesm2022/primeng-icons-sortalt.mjs +30 -26
  173. package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
  174. package/fesm2022/primeng-icons-sortamountdown.mjs +24 -26
  175. package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
  176. package/fesm2022/primeng-icons-sortamountupalt.mjs +24 -26
  177. package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
  178. package/fesm2022/primeng-icons-spinner.mjs +24 -26
  179. package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
  180. package/fesm2022/primeng-icons-star.mjs +24 -26
  181. package/fesm2022/primeng-icons-star.mjs.map +1 -1
  182. package/fesm2022/primeng-icons-starfill.mjs +24 -26
  183. package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
  184. package/fesm2022/primeng-icons-thlarge.mjs +26 -26
  185. package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
  186. package/fesm2022/primeng-icons-times.mjs +17 -19
  187. package/fesm2022/primeng-icons-times.mjs.map +1 -1
  188. package/fesm2022/primeng-icons-timescircle.mjs +26 -26
  189. package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
  190. package/fesm2022/primeng-icons-trash.mjs +26 -26
  191. package/fesm2022/primeng-icons-trash.mjs.map +1 -1
  192. package/fesm2022/primeng-icons-undo.mjs +26 -26
  193. package/fesm2022/primeng-icons-undo.mjs.map +1 -1
  194. package/fesm2022/primeng-icons-upload.mjs +26 -26
  195. package/fesm2022/primeng-icons-upload.mjs.map +1 -1
  196. package/fesm2022/primeng-icons-windowmaximize.mjs +26 -26
  197. package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
  198. package/fesm2022/primeng-icons-windowminimize.mjs +26 -26
  199. package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
  200. package/fesm2022/primeng-iftalabel.mjs +32 -38
  201. package/fesm2022/primeng-iftalabel.mjs.map +1 -1
  202. package/fesm2022/primeng-image.mjs +189 -370
  203. package/fesm2022/primeng-image.mjs.map +1 -1
  204. package/fesm2022/primeng-imagecompare.mjs +57 -86
  205. package/fesm2022/primeng-imagecompare.mjs.map +1 -1
  206. package/fesm2022/primeng-inplace.mjs +108 -206
  207. package/fesm2022/primeng-inplace.mjs.map +1 -1
  208. package/fesm2022/primeng-inputgroup.mjs +40 -50
  209. package/fesm2022/primeng-inputgroup.mjs.map +1 -1
  210. package/fesm2022/primeng-inputgroupaddon.mjs +40 -51
  211. package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
  212. package/fesm2022/primeng-inputicon.mjs +39 -48
  213. package/fesm2022/primeng-inputicon.mjs.map +1 -1
  214. package/fesm2022/primeng-inputmask.mjs +156 -181
  215. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  216. package/fesm2022/primeng-inputnumber.mjs +299 -416
  217. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  218. package/fesm2022/primeng-inputotp.mjs +97 -121
  219. package/fesm2022/primeng-inputotp.mjs.map +1 -1
  220. package/fesm2022/primeng-inputswitch.mjs +87 -92
  221. package/fesm2022/primeng-inputswitch.mjs.map +1 -1
  222. package/fesm2022/primeng-inputtext.mjs +51 -57
  223. package/fesm2022/primeng-inputtext.mjs.map +1 -1
  224. package/fesm2022/primeng-inputtextarea.mjs +50 -55
  225. package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
  226. package/fesm2022/primeng-keyfilter.mjs +44 -47
  227. package/fesm2022/primeng-keyfilter.mjs.map +1 -1
  228. package/fesm2022/primeng-knob.mjs +105 -111
  229. package/fesm2022/primeng-knob.mjs.map +1 -1
  230. package/fesm2022/primeng-listbox.mjs +473 -790
  231. package/fesm2022/primeng-listbox.mjs.map +1 -1
  232. package/fesm2022/primeng-megamenu.mjs +377 -611
  233. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  234. package/fesm2022/primeng-menu.mjs +289 -460
  235. package/fesm2022/primeng-menu.mjs.map +1 -1
  236. package/fesm2022/primeng-menubar.mjs +357 -549
  237. package/fesm2022/primeng-menubar.mjs.map +1 -1
  238. package/fesm2022/primeng-message.mjs +156 -244
  239. package/fesm2022/primeng-message.mjs.map +1 -1
  240. package/fesm2022/primeng-messages.mjs +162 -278
  241. package/fesm2022/primeng-messages.mjs.map +1 -1
  242. package/fesm2022/primeng-metergroup.mjs +135 -264
  243. package/fesm2022/primeng-metergroup.mjs.map +1 -1
  244. package/fesm2022/primeng-multiselect.mjs +655 -1132
  245. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  246. package/fesm2022/primeng-orderlist.mjs +228 -330
  247. package/fesm2022/primeng-orderlist.mjs.map +1 -1
  248. package/fesm2022/primeng-organizationchart.mjs +161 -311
  249. package/fesm2022/primeng-organizationchart.mjs.map +1 -1
  250. package/fesm2022/primeng-overlay.mjs +135 -147
  251. package/fesm2022/primeng-overlay.mjs.map +1 -1
  252. package/fesm2022/primeng-overlaybadge.mjs +50 -58
  253. package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
  254. package/fesm2022/primeng-overlaypanel.mjs +134 -154
  255. package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
  256. package/fesm2022/primeng-paginator.mjs +212 -447
  257. package/fesm2022/primeng-paginator.mjs.map +1 -1
  258. package/fesm2022/primeng-panel.mjs +219 -317
  259. package/fesm2022/primeng-panel.mjs.map +1 -1
  260. package/fesm2022/primeng-panelmenu.mjs +439 -783
  261. package/fesm2022/primeng-panelmenu.mjs.map +1 -1
  262. package/fesm2022/primeng-password.mjs +268 -408
  263. package/fesm2022/primeng-password.mjs.map +1 -1
  264. package/fesm2022/primeng-picklist.mjs +560 -856
  265. package/fesm2022/primeng-picklist.mjs.map +1 -1
  266. package/fesm2022/primeng-popover.mjs +129 -148
  267. package/fesm2022/primeng-popover.mjs.map +1 -1
  268. package/fesm2022/primeng-progressbar.mjs +81 -121
  269. package/fesm2022/primeng-progressbar.mjs.map +1 -1
  270. package/fesm2022/primeng-progressspinner.mjs +48 -58
  271. package/fesm2022/primeng-progressspinner.mjs.map +1 -1
  272. package/fesm2022/primeng-radiobutton.mjs +115 -106
  273. package/fesm2022/primeng-radiobutton.mjs.map +1 -1
  274. package/fesm2022/primeng-rating.mjs +120 -208
  275. package/fesm2022/primeng-rating.mjs.map +1 -1
  276. package/fesm2022/primeng-ripple.mjs +28 -29
  277. package/fesm2022/primeng-ripple.mjs.map +1 -1
  278. package/fesm2022/primeng-scroller.mjs +167 -295
  279. package/fesm2022/primeng-scroller.mjs.map +1 -1
  280. package/fesm2022/primeng-scrollpanel.mjs +96 -116
  281. package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
  282. package/fesm2022/primeng-scrolltop.mjs +106 -150
  283. package/fesm2022/primeng-scrolltop.mjs.map +1 -1
  284. package/fesm2022/primeng-select.mjs +579 -955
  285. package/fesm2022/primeng-select.mjs.map +1 -1
  286. package/fesm2022/primeng-selectbutton.mjs +106 -133
  287. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  288. package/fesm2022/primeng-sidebar.mjs +151 -239
  289. package/fesm2022/primeng-sidebar.mjs.map +1 -1
  290. package/fesm2022/primeng-skeleton.mjs +46 -54
  291. package/fesm2022/primeng-skeleton.mjs.map +1 -1
  292. package/fesm2022/primeng-slider.mjs +186 -182
  293. package/fesm2022/primeng-slider.mjs.map +1 -1
  294. package/fesm2022/primeng-speeddial.mjs +192 -254
  295. package/fesm2022/primeng-speeddial.mjs.map +1 -1
  296. package/fesm2022/primeng-splitbutton.mjs +211 -231
  297. package/fesm2022/primeng-splitbutton.mjs.map +1 -1
  298. package/fesm2022/primeng-splitter.mjs +126 -159
  299. package/fesm2022/primeng-splitter.mjs.map +1 -1
  300. package/fesm2022/primeng-stepper.mjs +227 -342
  301. package/fesm2022/primeng-stepper.mjs.map +1 -1
  302. package/fesm2022/primeng-steps.mjs +117 -170
  303. package/fesm2022/primeng-steps.mjs.map +1 -1
  304. package/fesm2022/primeng-styleclass.mjs +50 -53
  305. package/fesm2022/primeng-styleclass.mjs.map +1 -1
  306. package/fesm2022/primeng-table.mjs +1808 -2584
  307. package/fesm2022/primeng-table.mjs.map +1 -1
  308. package/fesm2022/primeng-tabmenu.mjs +173 -319
  309. package/fesm2022/primeng-tabmenu.mjs.map +1 -1
  310. package/fesm2022/primeng-tabs.mjs +185 -300
  311. package/fesm2022/primeng-tabs.mjs.map +1 -1
  312. package/fesm2022/primeng-tabview.mjs +263 -435
  313. package/fesm2022/primeng-tabview.mjs.map +1 -1
  314. package/fesm2022/primeng-tag.mjs +63 -110
  315. package/fesm2022/primeng-tag.mjs.map +1 -1
  316. package/fesm2022/primeng-terminal.mjs +60 -104
  317. package/fesm2022/primeng-terminal.mjs.map +1 -1
  318. package/fesm2022/primeng-textarea.mjs +56 -61
  319. package/fesm2022/primeng-textarea.mjs.map +1 -1
  320. package/fesm2022/primeng-tieredmenu.mjs +338 -457
  321. package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
  322. package/fesm2022/primeng-timeline.mjs +90 -156
  323. package/fesm2022/primeng-timeline.mjs.map +1 -1
  324. package/fesm2022/primeng-toast.mjs +251 -358
  325. package/fesm2022/primeng-toast.mjs.map +1 -1
  326. package/fesm2022/primeng-togglebutton.mjs +113 -150
  327. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  328. package/fesm2022/primeng-toggleswitch.mjs +98 -121
  329. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  330. package/fesm2022/primeng-toolbar.mjs +62 -121
  331. package/fesm2022/primeng-toolbar.mjs.map +1 -1
  332. package/fesm2022/primeng-tooltip.mjs +73 -74
  333. package/fesm2022/primeng-tooltip.mjs.map +1 -1
  334. package/fesm2022/primeng-tree.mjs +441 -730
  335. package/fesm2022/primeng-tree.mjs.map +1 -1
  336. package/fesm2022/primeng-treeselect.mjs +342 -531
  337. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  338. package/fesm2022/primeng-treetable.mjs +1026 -1583
  339. package/fesm2022/primeng-treetable.mjs.map +1 -1
  340. package/fesm2022/primeng-usestyle.mjs +6 -6
  341. package/fesm2022/primeng-usestyle.mjs.map +1 -1
  342. package/listbox/listbox.d.ts +2 -2
  343. package/package.json +178 -179
  344. package/password/password.d.ts +7 -1
  345. package/picklist/picklist.d.ts +11 -1
@@ -2,10 +2,10 @@ import * as i1 from '@angular/common';
2
2
  import { isPlatformBrowser, CommonModule } from '@angular/common';
3
3
  import { HttpClient, HttpEventType } from '@angular/common/http';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, EventEmitter, inject, NgZone, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChild, ViewChild, ContentChildren, NgModule } from '@angular/core';
5
+ import { Injectable, EventEmitter, inject, NgZone, numberAttribute, booleanAttribute, ContentChildren, Input, ViewChild, ContentChild, Output, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { DomSanitizer } from '@angular/platform-browser';
7
7
  import { addClass, removeClass } from '@primeuix/utils';
8
- import { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';
8
+ import { TranslationKeys, SharedModule, PrimeTemplate } from 'primeng/api';
9
9
  import { BaseComponent } from 'primeng/basecomponent';
10
10
  import { Button } from 'primeng/button';
11
11
  import { PlusIcon, UploadIcon, TimesIcon } from 'primeng/icons';
@@ -122,12 +122,12 @@ class FileUploadStyle extends BaseStyle {
122
122
  name = 'fileupload';
123
123
  theme = theme;
124
124
  classes = classes;
125
- static ɵfac = /*@__PURE__*/ (() => { let ɵFileUploadStyle_BaseFactory; return function FileUploadStyle_Factory(__ngFactoryType__) { return (ɵFileUploadStyle_BaseFactory || (ɵFileUploadStyle_BaseFactory = i0.ɵɵgetInheritedFactory(FileUploadStyle)))(__ngFactoryType__ || FileUploadStyle); }; })();
126
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FileUploadStyle, factory: FileUploadStyle.ɵfac });
125
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
126
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadStyle });
127
127
  }
128
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileUploadStyle, [{
129
- type: Injectable
130
- }], null, null); })();
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadStyle, decorators: [{
129
+ type: Injectable
130
+ }] });
131
131
  /**
132
132
  *
133
133
  * FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
@@ -201,474 +201,6 @@ var FileUploadClasses;
201
201
  FileUploadClasses["pcFileRemoveButton"] = "p-fileupload-file-remove-button";
202
202
  })(FileUploadClasses || (FileUploadClasses = {}));
203
203
 
204
- const _c0 = ["file"];
205
- const _c1 = ["header"];
206
- const _c2 = ["content"];
207
- const _c3 = ["toolbar"];
208
- const _c4 = ["chooseicon"];
209
- const _c5 = ["filelabel"];
210
- const _c6 = ["uploadicon"];
211
- const _c7 = ["cancelicon"];
212
- const _c8 = ["empty"];
213
- const _c9 = ["advancedfileinput"];
214
- const _c10 = ["basicfileinput"];
215
- const _c11 = (a0, a1, a2, a3, a4) => ({ $implicit: a0, uploadedFiles: a1, chooseCallback: a2, clearCallback: a3, uploadCallback: a4 });
216
- const _c12 = (a0, a1, a2, a3, a4, a5, a6, a7) => ({ $implicit: a0, uploadedFiles: a1, chooseCallback: a2, clearCallback: a3, removeUploadedFileCallback: a4, removeFileCallback: a5, progress: a6, messages: a7 });
217
- const _c13 = a0 => ({ $implicit: a0 });
218
- function FileUpload_div_0_ng_container_4_span_4_Template(rf, ctx) { if (rf & 1) {
219
- i0.ɵɵelement(0, "span");
220
- } if (rf & 2) {
221
- const ctx_r1 = i0.ɵɵnextContext(3);
222
- i0.ɵɵclassMap(ctx_r1.chooseIcon);
223
- i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
224
- } }
225
- function FileUpload_div_0_ng_container_4_ng_container_5_PlusIcon_1_Template(rf, ctx) { if (rf & 1) {
226
- i0.ɵɵelement(0, "PlusIcon");
227
- } if (rf & 2) {
228
- i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
229
- } }
230
- function FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_ng_template_0_Template(rf, ctx) { }
231
- function FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_Template(rf, ctx) { if (rf & 1) {
232
- i0.ɵɵtemplate(0, FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
233
- } }
234
- function FileUpload_div_0_ng_container_4_ng_container_5_span_2_Template(rf, ctx) { if (rf & 1) {
235
- i0.ɵɵelementStart(0, "span");
236
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_Template, 1, 0, null, 11);
237
- i0.ɵɵelementEnd();
238
- } if (rf & 2) {
239
- const ctx_r1 = i0.ɵɵnextContext(4);
240
- i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
241
- i0.ɵɵadvance();
242
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
243
- } }
244
- function FileUpload_div_0_ng_container_4_ng_container_5_Template(rf, ctx) { if (rf & 1) {
245
- i0.ɵɵelementContainerStart(0);
246
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_ng_container_5_PlusIcon_1_Template, 1, 2, "PlusIcon", 9)(2, FileUpload_div_0_ng_container_4_ng_container_5_span_2_Template, 2, 3, "span", 9);
247
- i0.ɵɵelementContainerEnd();
248
- } if (rf & 2) {
249
- const ctx_r1 = i0.ɵɵnextContext(3);
250
- i0.ɵɵadvance();
251
- i0.ɵɵproperty("ngIf", !ctx_r1.chooseIconTemplate && !ctx_r1._chooseIconTemplate);
252
- i0.ɵɵadvance();
253
- i0.ɵɵproperty("ngIf", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
254
- } }
255
- function FileUpload_div_0_ng_container_4_p_button_6_span_1_Template(rf, ctx) { if (rf & 1) {
256
- i0.ɵɵelement(0, "span", 21);
257
- } if (rf & 2) {
258
- const ctx_r1 = i0.ɵɵnextContext(4);
259
- i0.ɵɵproperty("ngClass", ctx_r1.uploadIcon);
260
- i0.ɵɵattribute("aria-hidden", true);
261
- } }
262
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_UploadIcon_1_Template(rf, ctx) { if (rf & 1) {
263
- i0.ɵɵelement(0, "UploadIcon");
264
- } }
265
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) { }
266
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_Template(rf, ctx) { if (rf & 1) {
267
- i0.ɵɵtemplate(0, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
268
- } }
269
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
270
- i0.ɵɵelementStart(0, "span");
271
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_Template, 1, 0, null, 11);
272
- i0.ɵɵelementEnd();
273
- } if (rf & 2) {
274
- const ctx_r1 = i0.ɵɵnextContext(5);
275
- i0.ɵɵattribute("aria-hidden", true);
276
- i0.ɵɵadvance();
277
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.uploadIconTemplate || ctx_r1._uploadIconTemplate);
278
- } }
279
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
280
- i0.ɵɵelementContainerStart(0);
281
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_UploadIcon_1_Template, 1, 0, "UploadIcon", 9)(2, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_Template, 2, 2, "span", 9);
282
- i0.ɵɵelementContainerEnd();
283
- } if (rf & 2) {
284
- const ctx_r1 = i0.ɵɵnextContext(4);
285
- i0.ɵɵadvance();
286
- i0.ɵɵproperty("ngIf", !ctx_r1.uploadIconTemplate && !ctx_r1._uploadIconTemplate);
287
- i0.ɵɵadvance();
288
- i0.ɵɵproperty("ngIf", ctx_r1.uploadIconTemplate || ctx_r1._uploadIconTemplate);
289
- } }
290
- function FileUpload_div_0_ng_container_4_p_button_6_Template(rf, ctx) { if (rf & 1) {
291
- const _r4 = i0.ɵɵgetCurrentView();
292
- i0.ɵɵelementStart(0, "p-button", 19);
293
- i0.ɵɵlistener("onClick", function FileUpload_div_0_ng_container_4_p_button_6_Template_p_button_onClick_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.upload()); });
294
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_6_span_1_Template, 1, 2, "span", 20)(2, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_Template, 3, 2, "ng-container", 9);
295
- i0.ɵɵelementEnd();
296
- } if (rf & 2) {
297
- const ctx_r1 = i0.ɵɵnextContext(3);
298
- i0.ɵɵproperty("label", ctx_r1.uploadButtonLabel)("disabled", !ctx_r1.hasFiles() || ctx_r1.isFileLimitExceeded())("styleClass", "p-fileupload-upload-button " + ctx_r1.uploadStyleClass)("buttonProps", ctx_r1.uploadButtonProps);
299
- i0.ɵɵadvance();
300
- i0.ɵɵproperty("ngIf", ctx_r1.uploadIcon);
301
- i0.ɵɵadvance();
302
- i0.ɵɵproperty("ngIf", !ctx_r1.uploadIcon);
303
- } }
304
- function FileUpload_div_0_ng_container_4_p_button_7_span_1_Template(rf, ctx) { if (rf & 1) {
305
- i0.ɵɵelement(0, "span", 21);
306
- } if (rf & 2) {
307
- const ctx_r1 = i0.ɵɵnextContext(4);
308
- i0.ɵɵproperty("ngClass", ctx_r1.cancelIcon);
309
- } }
310
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
311
- i0.ɵɵelement(0, "TimesIcon");
312
- } if (rf & 2) {
313
- i0.ɵɵattribute("aria-hidden", true);
314
- } }
315
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) { }
316
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_Template(rf, ctx) { if (rf & 1) {
317
- i0.ɵɵtemplate(0, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
318
- } }
319
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
320
- i0.ɵɵelementStart(0, "span");
321
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_Template, 1, 0, null, 11);
322
- i0.ɵɵelementEnd();
323
- } if (rf & 2) {
324
- const ctx_r1 = i0.ɵɵnextContext(5);
325
- i0.ɵɵattribute("aria-hidden", true);
326
- i0.ɵɵadvance();
327
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
328
- } }
329
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_Template(rf, ctx) { if (rf & 1) {
330
- i0.ɵɵelementContainerStart(0);
331
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_TimesIcon_1_Template, 1, 1, "TimesIcon", 9)(2, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_Template, 2, 2, "span", 9);
332
- i0.ɵɵelementContainerEnd();
333
- } if (rf & 2) {
334
- const ctx_r1 = i0.ɵɵnextContext(4);
335
- i0.ɵɵadvance();
336
- i0.ɵɵproperty("ngIf", !ctx_r1.cancelIconTemplate && !ctx_r1._cancelIconTemplate);
337
- i0.ɵɵadvance();
338
- i0.ɵɵproperty("ngIf", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
339
- } }
340
- function FileUpload_div_0_ng_container_4_p_button_7_Template(rf, ctx) { if (rf & 1) {
341
- const _r5 = i0.ɵɵgetCurrentView();
342
- i0.ɵɵelementStart(0, "p-button", 19);
343
- i0.ɵɵlistener("onClick", function FileUpload_div_0_ng_container_4_p_button_7_Template_p_button_onClick_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.clear()); });
344
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_7_span_1_Template, 1, 1, "span", 20)(2, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_Template, 3, 2, "ng-container", 9);
345
- i0.ɵɵelementEnd();
346
- } if (rf & 2) {
347
- const ctx_r1 = i0.ɵɵnextContext(3);
348
- i0.ɵɵproperty("label", ctx_r1.cancelButtonLabel)("disabled", !ctx_r1.hasFiles() || ctx_r1.uploading)("styleClass", "p-fileupload-cancel-button " + ctx_r1.cancelStyleClass)("buttonProps", ctx_r1.cancelButtonProps);
349
- i0.ɵɵadvance();
350
- i0.ɵɵproperty("ngIf", ctx_r1.cancelIcon);
351
- i0.ɵɵadvance();
352
- i0.ɵɵproperty("ngIf", !ctx_r1.cancelIcon);
353
- } }
354
- function FileUpload_div_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
355
- const _r3 = i0.ɵɵgetCurrentView();
356
- i0.ɵɵelementContainerStart(0);
357
- i0.ɵɵelementStart(1, "p-button", 16);
358
- i0.ɵɵlistener("focus", function FileUpload_div_0_ng_container_4_Template_p_button_focus_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFocus()); })("blur", function FileUpload_div_0_ng_container_4_Template_p_button_blur_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onBlur()); })("onClick", function FileUpload_div_0_ng_container_4_Template_p_button_onClick_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.choose()); })("keydown.enter", function FileUpload_div_0_ng_container_4_Template_p_button_keydown_enter_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.choose()); });
359
- i0.ɵɵelementStart(2, "input", 7, 0);
360
- i0.ɵɵlistener("change", function FileUpload_div_0_ng_container_4_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event)); });
361
- i0.ɵɵelementEnd();
362
- i0.ɵɵtemplate(4, FileUpload_div_0_ng_container_4_span_4_Template, 1, 4, "span", 17)(5, FileUpload_div_0_ng_container_4_ng_container_5_Template, 3, 2, "ng-container", 9);
363
- i0.ɵɵelementEnd();
364
- i0.ɵɵtemplate(6, FileUpload_div_0_ng_container_4_p_button_6_Template, 3, 6, "p-button", 18)(7, FileUpload_div_0_ng_container_4_p_button_7_Template, 3, 6, "p-button", 18);
365
- i0.ɵɵelementContainerEnd();
366
- } if (rf & 2) {
367
- const ctx_r1 = i0.ɵɵnextContext(2);
368
- i0.ɵɵadvance();
369
- i0.ɵɵproperty("styleClass", "p-fileupload-choose-button " + ctx_r1.chooseStyleClass)("disabled", ctx_r1.disabled || ctx_r1.isChooseDisabled())("label", ctx_r1.chooseButtonLabel)("buttonProps", ctx_r1.chooseButtonProps);
370
- i0.ɵɵattribute("data-pc-section", "choosebutton");
371
- i0.ɵɵadvance();
372
- i0.ɵɵproperty("multiple", ctx_r1.multiple)("accept", ctx_r1.accept)("disabled", ctx_r1.disabled || ctx_r1.isChooseDisabled());
373
- i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("title", "")("data-pc-section", "input");
374
- i0.ɵɵadvance(2);
375
- i0.ɵɵproperty("ngIf", ctx_r1.chooseIcon);
376
- i0.ɵɵadvance();
377
- i0.ɵɵproperty("ngIf", !ctx_r1.chooseIcon);
378
- i0.ɵɵadvance();
379
- i0.ɵɵproperty("ngIf", !ctx_r1.auto && ctx_r1.showUploadButton);
380
- i0.ɵɵadvance();
381
- i0.ɵɵproperty("ngIf", !ctx_r1.auto && ctx_r1.showCancelButton);
382
- } }
383
- function FileUpload_div_0_ng_container_5_Template(rf, ctx) { if (rf & 1) {
384
- i0.ɵɵelementContainer(0);
385
- } }
386
- function FileUpload_div_0_ng_container_6_Template(rf, ctx) { if (rf & 1) {
387
- i0.ɵɵelementContainer(0);
388
- } }
389
- function FileUpload_div_0_p_progressbar_9_Template(rf, ctx) { if (rf & 1) {
390
- i0.ɵɵelement(0, "p-progressbar", 22);
391
- } if (rf & 2) {
392
- const ctx_r1 = i0.ɵɵnextContext(2);
393
- i0.ɵɵproperty("value", ctx_r1.progress)("showValue", false);
394
- } }
395
- function FileUpload_div_0_For_11_Template(rf, ctx) { if (rf & 1) {
396
- i0.ɵɵelement(0, "p-message", 14);
397
- } if (rf & 2) {
398
- const message_r6 = ctx.$implicit;
399
- i0.ɵɵproperty("severity", message_r6.severity)("text", message_r6.text);
400
- } }
401
- function FileUpload_div_0_div_12_Conditional_1_div_0_img_1_Template(rf, ctx) { if (rf & 1) {
402
- const _r8 = i0.ɵɵgetCurrentView();
403
- i0.ɵɵelementStart(0, "img", 33);
404
- i0.ɵɵlistener("error", function FileUpload_div_0_div_12_Conditional_1_div_0_img_1_Template_img_error_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.imageError($event)); });
405
- i0.ɵɵelementEnd();
406
- } if (rf & 2) {
407
- const file_r9 = i0.ɵɵnextContext().$implicit;
408
- const ctx_r1 = i0.ɵɵnextContext(4);
409
- i0.ɵɵproperty("src", file_r9.objectURL, i0.ɵɵsanitizeUrl)("width", ctx_r1.previewWidth);
410
- } }
411
- function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_TimesIcon_0_Template(rf, ctx) { if (rf & 1) {
412
- i0.ɵɵelement(0, "TimesIcon");
413
- } }
414
- function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_ng_template_0_Template(rf, ctx) { }
415
- function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_Template(rf, ctx) { if (rf & 1) {
416
- i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_ng_template_0_Template, 0, 0, "ng-template");
417
- } }
418
- function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_Template(rf, ctx) { if (rf & 1) {
419
- i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_TimesIcon_0_Template, 1, 0, "TimesIcon", 9)(1, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_Template, 1, 0, null, 11);
420
- } if (rf & 2) {
421
- const ctx_r1 = i0.ɵɵnextContext(5);
422
- i0.ɵɵproperty("ngIf", !ctx_r1.cancelIconTemplate && !ctx_r1._cancelIconTemplate);
423
- i0.ɵɵadvance();
424
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
425
- } }
426
- function FileUpload_div_0_div_12_Conditional_1_div_0_Template(rf, ctx) { if (rf & 1) {
427
- const _r7 = i0.ɵɵgetCurrentView();
428
- i0.ɵɵelementStart(0, "div", 24);
429
- i0.ɵɵtemplate(1, FileUpload_div_0_div_12_Conditional_1_div_0_img_1_Template, 1, 2, "img", 27);
430
- i0.ɵɵelementStart(2, "div", 28)(3, "div", 29);
431
- i0.ɵɵtext(4);
432
- i0.ɵɵelementEnd();
433
- i0.ɵɵelementStart(5, "span", 30);
434
- i0.ɵɵtext(6);
435
- i0.ɵɵelementEnd()();
436
- i0.ɵɵelementStart(7, "div", 31)(8, "p-button", 32);
437
- i0.ɵɵlistener("onClick", function FileUpload_div_0_div_12_Conditional_1_div_0_Template_p_button_onClick_8_listener($event) { const i_r10 = i0.ɵɵrestoreView(_r7).index; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.remove($event, i_r10)); });
438
- i0.ɵɵtemplate(9, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_Template, 2, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
439
- i0.ɵɵelementEnd()()();
440
- } if (rf & 2) {
441
- const file_r9 = ctx.$implicit;
442
- const ctx_r1 = i0.ɵɵnextContext(4);
443
- i0.ɵɵadvance();
444
- i0.ɵɵproperty("ngIf", ctx_r1.isImage(file_r9));
445
- i0.ɵɵadvance(3);
446
- i0.ɵɵtextInterpolate(file_r9.name);
447
- i0.ɵɵadvance(2);
448
- i0.ɵɵtextInterpolate(ctx_r1.formatSize(file_r9.size));
449
- i0.ɵɵadvance(2);
450
- i0.ɵɵproperty("disabled", ctx_r1.uploading)("styleClass", "p-fileupload-file-remove-button " + ctx_r1.removeStyleClass);
451
- } }
452
- function FileUpload_div_0_div_12_Conditional_1_Template(rf, ctx) { if (rf & 1) {
453
- i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_1_div_0_Template, 11, 5, "div", 26);
454
- } if (rf & 2) {
455
- const ctx_r1 = i0.ɵɵnextContext(3);
456
- i0.ɵɵproperty("ngForOf", ctx_r1.files);
457
- } }
458
- function FileUpload_div_0_div_12_Conditional_2_ng_template_0_Template(rf, ctx) { }
459
- function FileUpload_div_0_div_12_Conditional_2_Template(rf, ctx) { if (rf & 1) {
460
- i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_2_ng_template_0_Template, 0, 0, "ng-template", 25);
461
- } if (rf & 2) {
462
- const ctx_r1 = i0.ɵɵnextContext(3);
463
- i0.ɵɵproperty("ngForOf", ctx_r1.files)("ngForTemplate", ctx_r1.fileTemplate || ctx_r1._fileTemplate);
464
- } }
465
- function FileUpload_div_0_div_12_Template(rf, ctx) { if (rf & 1) {
466
- i0.ɵɵelementStart(0, "div", 23);
467
- i0.ɵɵtemplate(1, FileUpload_div_0_div_12_Conditional_1_Template, 1, 1, "div", 24)(2, FileUpload_div_0_div_12_Conditional_2_Template, 1, 2, null, 25);
468
- i0.ɵɵelementEnd();
469
- } if (rf & 2) {
470
- const ctx_r1 = i0.ɵɵnextContext(2);
471
- i0.ɵɵadvance();
472
- i0.ɵɵconditional(!ctx_r1.fileTemplate && !ctx_r1._fileTemplate ? 1 : -1);
473
- i0.ɵɵadvance();
474
- i0.ɵɵconditional(ctx_r1.fileTemplate || ctx_r1._fileTemplate ? 2 : -1);
475
- } }
476
- function FileUpload_div_0_ng_container_13_Template(rf, ctx) { if (rf & 1) {
477
- i0.ɵɵelementContainer(0);
478
- } }
479
- function FileUpload_div_0_Conditional_14_ng_container_0_Template(rf, ctx) { if (rf & 1) {
480
- i0.ɵɵelementContainer(0);
481
- } }
482
- function FileUpload_div_0_Conditional_14_Template(rf, ctx) { if (rf & 1) {
483
- i0.ɵɵtemplate(0, FileUpload_div_0_Conditional_14_ng_container_0_Template, 1, 0, "ng-container", 11);
484
- } if (rf & 2) {
485
- const ctx_r1 = i0.ɵɵnextContext(2);
486
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.emptyTemplate || ctx_r1._emptyTemplate);
487
- } }
488
- function FileUpload_div_0_Template(rf, ctx) { if (rf & 1) {
489
- const _r1 = i0.ɵɵgetCurrentView();
490
- i0.ɵɵelementStart(0, "div", 6)(1, "input", 7, 0);
491
- i0.ɵɵlistener("change", function FileUpload_div_0_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onFileSelect($event)); });
492
- i0.ɵɵelementEnd();
493
- i0.ɵɵelementStart(3, "div", 8);
494
- i0.ɵɵtemplate(4, FileUpload_div_0_ng_container_4_Template, 8, 15, "ng-container", 9)(5, FileUpload_div_0_ng_container_5_Template, 1, 0, "ng-container", 10)(6, FileUpload_div_0_ng_container_6_Template, 1, 0, "ng-container", 11);
495
- i0.ɵɵelementEnd();
496
- i0.ɵɵelementStart(7, "div", 12, 1);
497
- i0.ɵɵlistener("dragenter", function FileUpload_div_0_Template_div_dragenter_7_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDragEnter($event)); })("dragleave", function FileUpload_div_0_Template_div_dragleave_7_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDragLeave($event)); })("drop", function FileUpload_div_0_Template_div_drop_7_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDrop($event)); });
498
- i0.ɵɵtemplate(9, FileUpload_div_0_p_progressbar_9_Template, 1, 2, "p-progressbar", 13);
499
- i0.ɵɵrepeaterCreate(10, FileUpload_div_0_For_11_Template, 1, 2, "p-message", 14, i0.ɵɵrepeaterTrackByIdentity);
500
- i0.ɵɵtemplate(12, FileUpload_div_0_div_12_Template, 3, 2, "div", 15)(13, FileUpload_div_0_ng_container_13_Template, 1, 0, "ng-container", 10)(14, FileUpload_div_0_Conditional_14_Template, 1, 1, "ng-container");
501
- i0.ɵɵelementEnd()();
502
- } if (rf & 2) {
503
- const ctx_r1 = i0.ɵɵnextContext();
504
- i0.ɵɵclassMap(ctx_r1.styleClass);
505
- i0.ɵɵproperty("ngClass", "p-fileupload p-fileupload-advanced p-component")("ngStyle", ctx_r1.style);
506
- i0.ɵɵattribute("data-pc-name", "fileupload")("data-pc-section", "root");
507
- i0.ɵɵadvance();
508
- i0.ɵɵstyleProp("display", "none");
509
- i0.ɵɵproperty("multiple", ctx_r1.multiple)("accept", ctx_r1.accept)("disabled", ctx_r1.disabled || ctx_r1.isChooseDisabled());
510
- i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("title", "")("data-pc-section", "input");
511
- i0.ɵɵadvance(3);
512
- i0.ɵɵproperty("ngIf", !ctx_r1.headerTemplate && !ctx_r1._headerTemplate);
513
- i0.ɵɵadvance();
514
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.headerTemplate || ctx_r1._headerTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction5(24, _c11, ctx_r1.files, ctx_r1.uploadedFiles, ctx_r1.choose.bind(ctx_r1), ctx_r1.clear.bind(ctx_r1), ctx_r1.upload.bind(ctx_r1)));
515
- i0.ɵɵadvance();
516
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.toolbarTemplate || ctx_r1._toolbarTemplate);
517
- i0.ɵɵadvance();
518
- i0.ɵɵattribute("data-pc-section", "content");
519
- i0.ɵɵadvance(2);
520
- i0.ɵɵproperty("ngIf", ctx_r1.hasFiles());
521
- i0.ɵɵadvance();
522
- i0.ɵɵrepeater(ctx_r1.msgs);
523
- i0.ɵɵadvance(2);
524
- i0.ɵɵproperty("ngIf", ctx_r1.hasFiles());
525
- i0.ɵɵadvance();
526
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.contentTemplate || ctx_r1._contentTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction8(30, _c12, ctx_r1.files, ctx_r1.uploadedFiles, ctx_r1.choose.bind(ctx_r1), ctx_r1.clear.bind(ctx_r1), ctx_r1.removeUploadedFile.bind(ctx_r1), ctx_r1.remove.bind(ctx_r1), ctx_r1.progress, ctx_r1.msgs));
527
- i0.ɵɵadvance();
528
- i0.ɵɵconditional((ctx_r1.emptyTemplate || ctx_r1._emptyTemplate) && !ctx_r1.hasFiles() && !ctx_r1.hasUploadedFiles() ? 14 : -1);
529
- } }
530
- function FileUpload_div_1_For_2_Template(rf, ctx) { if (rf & 1) {
531
- i0.ɵɵelement(0, "p-message", 14);
532
- } if (rf & 2) {
533
- const message_r12 = ctx.$implicit;
534
- i0.ɵɵproperty("severity", message_r12.severity)("text", message_r12.text);
535
- } }
536
- function FileUpload_div_1_ng_template_4_Conditional_0_span_0_Template(rf, ctx) { if (rf & 1) {
537
- i0.ɵɵelement(0, "span", 37);
538
- } if (rf & 2) {
539
- const ctx_r1 = i0.ɵɵnextContext(4);
540
- i0.ɵɵproperty("ngClass", ctx_r1.uploadIcon);
541
- } }
542
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_UploadIcon_1_Template(rf, ctx) { if (rf & 1) {
543
- i0.ɵɵelement(0, "UploadIcon", 40);
544
- } if (rf & 2) {
545
- i0.ɵɵproperty("styleClass", "p-button-icon p-button-icon-left");
546
- } }
547
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_ng_template_0_Template(rf, ctx) { }
548
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_Template(rf, ctx) { if (rf & 1) {
549
- i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
550
- } }
551
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_Template(rf, ctx) { if (rf & 1) {
552
- i0.ɵɵelementStart(0, "span", 41);
553
- i0.ɵɵtemplate(1, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_Template, 1, 0, null, 11);
554
- i0.ɵɵelementEnd();
555
- } if (rf & 2) {
556
- const ctx_r1 = i0.ɵɵnextContext(5);
557
- i0.ɵɵadvance();
558
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1._uploadIconTemplate || ctx_r1.uploadIconTemplate);
559
- } }
560
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
561
- i0.ɵɵelementContainerStart(0);
562
- i0.ɵɵtemplate(1, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_UploadIcon_1_Template, 1, 1, "UploadIcon", 38)(2, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_Template, 2, 1, "span", 39);
563
- i0.ɵɵelementContainerEnd();
564
- } if (rf & 2) {
565
- const ctx_r1 = i0.ɵɵnextContext(4);
566
- i0.ɵɵadvance();
567
- i0.ɵɵproperty("ngIf", !ctx_r1.uploadIconTemplate && !ctx_r1._uploadIconTemplate);
568
- i0.ɵɵadvance();
569
- i0.ɵɵproperty("ngIf", ctx_r1._uploadIconTemplate || ctx_r1.uploadIconTemplate);
570
- } }
571
- function FileUpload_div_1_ng_template_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
572
- i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_0_span_0_Template, 1, 1, "span", 36)(1, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_Template, 3, 2, "ng-container", 9);
573
- } if (rf & 2) {
574
- const ctx_r1 = i0.ɵɵnextContext(3);
575
- i0.ɵɵproperty("ngIf", ctx_r1.uploadIcon);
576
- i0.ɵɵadvance();
577
- i0.ɵɵproperty("ngIf", !ctx_r1.uploadIcon);
578
- } }
579
- function FileUpload_div_1_ng_template_4_Conditional_1_span_0_Template(rf, ctx) { if (rf & 1) {
580
- i0.ɵɵelement(0, "span", 43);
581
- } if (rf & 2) {
582
- const ctx_r1 = i0.ɵɵnextContext(4);
583
- i0.ɵɵproperty("ngClass", ctx_r1.chooseIcon);
584
- } }
585
- function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_PlusIcon_1_Template(rf, ctx) { if (rf & 1) {
586
- i0.ɵɵelement(0, "PlusIcon");
587
- } if (rf & 2) {
588
- i0.ɵɵattribute("data-pc-section", "uploadicon");
589
- } }
590
- function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_ng_template_0_Template(rf, ctx) { }
591
- function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_Template(rf, ctx) { if (rf & 1) {
592
- i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_ng_template_0_Template, 0, 0, "ng-template");
593
- } }
594
- function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
595
- i0.ɵɵelementContainerStart(0);
596
- i0.ɵɵtemplate(1, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_PlusIcon_1_Template, 1, 1, "PlusIcon", 9)(2, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_Template, 1, 0, null, 11);
597
- i0.ɵɵelementContainerEnd();
598
- } if (rf & 2) {
599
- const ctx_r1 = i0.ɵɵnextContext(4);
600
- i0.ɵɵadvance();
601
- i0.ɵɵproperty("ngIf", !ctx_r1.chooseIconTemplate && !ctx_r1._chooseIconTemplate);
602
- i0.ɵɵadvance();
603
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
604
- } }
605
- function FileUpload_div_1_ng_template_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
606
- i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_1_span_0_Template, 1, 1, "span", 42)(1, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_Template, 3, 2, "ng-container", 9);
607
- } if (rf & 2) {
608
- const ctx_r1 = i0.ɵɵnextContext(3);
609
- i0.ɵɵproperty("ngIf", ctx_r1.chooseIcon);
610
- i0.ɵɵadvance();
611
- i0.ɵɵproperty("ngIf", !ctx_r1.chooseIcon);
612
- } }
613
- function FileUpload_div_1_ng_template_4_Template(rf, ctx) { if (rf & 1) {
614
- i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_0_Template, 2, 2)(1, FileUpload_div_1_ng_template_4_Conditional_1_Template, 2, 2);
615
- } if (rf & 2) {
616
- const ctx_r1 = i0.ɵɵnextContext(2);
617
- i0.ɵɵconditional(ctx_r1.hasFiles() && !ctx_r1.auto ? 0 : 1);
618
- } }
619
- function FileUpload_div_1_Conditional_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
620
- i0.ɵɵelementStart(0, "span");
621
- i0.ɵɵtext(1);
622
- i0.ɵɵelementEnd();
623
- } if (rf & 2) {
624
- const ctx_r1 = i0.ɵɵnextContext(3);
625
- i0.ɵɵclassMap(ctx_r1.cx("filelabel"));
626
- i0.ɵɵadvance();
627
- i0.ɵɵtextInterpolate1(" ", ctx_r1.basicFileChosenLabel(), " ");
628
- } }
629
- function FileUpload_div_1_Conditional_8_Conditional_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
630
- i0.ɵɵelementContainer(0);
631
- } }
632
- function FileUpload_div_1_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
633
- i0.ɵɵtemplate(0, FileUpload_div_1_Conditional_8_Conditional_1_ng_container_0_Template, 1, 0, "ng-container", 10);
634
- } if (rf & 2) {
635
- const ctx_r1 = i0.ɵɵnextContext(3);
636
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.fileLabelTemplate || ctx_r1._fileLabelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, ctx_r1.files));
637
- } }
638
- function FileUpload_div_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
639
- i0.ɵɵtemplate(0, FileUpload_div_1_Conditional_8_Conditional_0_Template, 2, 3, "span", 44)(1, FileUpload_div_1_Conditional_8_Conditional_1_Template, 1, 4, "ng-container");
640
- } if (rf & 2) {
641
- const ctx_r1 = i0.ɵɵnextContext(2);
642
- i0.ɵɵconditional(!ctx_r1.fileLabelTemplate && !ctx_r1._fileLabelTemplate ? 0 : 1);
643
- } }
644
- function FileUpload_div_1_Template(rf, ctx) { if (rf & 1) {
645
- const _r11 = i0.ɵɵgetCurrentView();
646
- i0.ɵɵelementStart(0, "div", 21);
647
- i0.ɵɵrepeaterCreate(1, FileUpload_div_1_For_2_Template, 1, 2, "p-message", 14, i0.ɵɵrepeaterTrackByIdentity);
648
- i0.ɵɵelementStart(3, "p-button", 34);
649
- i0.ɵɵlistener("onClick", function FileUpload_div_1_Template_p_button_onClick_3_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBasicUploaderClick()); })("keydown", function FileUpload_div_1_Template_p_button_keydown_3_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBasicKeydown($event)); });
650
- i0.ɵɵtemplate(4, FileUpload_div_1_ng_template_4_Template, 2, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
651
- i0.ɵɵelementStart(6, "input", 35, 3);
652
- i0.ɵɵlistener("change", function FileUpload_div_1_Template_input_change_6_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onFileSelect($event)); })("focus", function FileUpload_div_1_Template_input_focus_6_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onFocus()); })("blur", function FileUpload_div_1_Template_input_blur_6_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBlur()); });
653
- i0.ɵɵelementEnd()();
654
- i0.ɵɵtemplate(8, FileUpload_div_1_Conditional_8_Template, 2, 1);
655
- i0.ɵɵelementEnd();
656
- } if (rf & 2) {
657
- const ctx_r1 = i0.ɵɵnextContext();
658
- i0.ɵɵclassMap(ctx_r1.styleClass);
659
- i0.ɵɵproperty("ngClass", "p-fileupload p-fileupload-basic p-component");
660
- i0.ɵɵattribute("data-pc-name", "fileupload");
661
- i0.ɵɵadvance();
662
- i0.ɵɵrepeater(ctx_r1.msgs);
663
- i0.ɵɵadvance(2);
664
- i0.ɵɵstyleMap(ctx_r1.style);
665
- i0.ɵɵproperty("styleClass", "p-fileupload-choose-button " + ctx_r1.chooseStyleClass)("disabled", ctx_r1.disabled)("label", ctx_r1.chooseButtonLabel)("buttonProps", ctx_r1.chooseButtonProps);
666
- i0.ɵɵadvance(3);
667
- i0.ɵɵproperty("accept", ctx_r1.accept)("multiple", ctx_r1.multiple)("disabled", ctx_r1.disabled);
668
- i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("data-pc-section", "input");
669
- i0.ɵɵadvance(2);
670
- i0.ɵɵconditional(!ctx_r1.auto ? 8 : -1);
671
- } }
672
204
  /**
673
205
  * FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
674
206
  * @group Components
@@ -1302,7 +834,7 @@ class FileUpload extends BaseComponent {
1302
834
  }
1303
835
  checkFileLimit(files) {
1304
836
  this.msgs ??= [];
1305
- const hasExistingValidationMessages = this.msgs.length > 0 && this.fileLimit < files.length;
837
+ const hasExistingValidationMessages = this.msgs.length > 0 && this.fileLimit && this.fileLimit < files.length;
1306
838
  if (this.isFileLimitExceeded() || hasExistingValidationMessages) {
1307
839
  const text = `${this.invalidFileLimitMessageSummary.replace('{0}', this.fileLimit.toString())} ${this.invalidFileLimitMessageDetail.replace('{0}', this.fileLimit.toString())}`;
1308
840
  this.msgs.push({
@@ -1428,54 +960,207 @@ class FileUpload extends BaseComponent {
1428
960
  }
1429
961
  super.ngOnDestroy();
1430
962
  }
1431
- static ɵfac = /*@__PURE__*/ (() => { let ɵFileUpload_BaseFactory; return function FileUpload_Factory(__ngFactoryType__) { return (ɵFileUpload_BaseFactory || (ɵFileUpload_BaseFactory = i0.ɵɵgetInheritedFactory(FileUpload)))(__ngFactoryType__ || FileUpload); }; })();
1432
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileUpload, selectors: [["p-fileupload"], ["p-fileUpload"]], contentQueries: function FileUpload_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1433
- i0.ɵɵcontentQuery(dirIndex, _c0, 4);
1434
- i0.ɵɵcontentQuery(dirIndex, _c1, 4);
1435
- i0.ɵɵcontentQuery(dirIndex, _c2, 4);
1436
- i0.ɵɵcontentQuery(dirIndex, _c3, 4);
1437
- i0.ɵɵcontentQuery(dirIndex, _c4, 4);
1438
- i0.ɵɵcontentQuery(dirIndex, _c5, 4);
1439
- i0.ɵɵcontentQuery(dirIndex, _c6, 4);
1440
- i0.ɵɵcontentQuery(dirIndex, _c7, 4);
1441
- i0.ɵɵcontentQuery(dirIndex, _c8, 4);
1442
- i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
1443
- } if (rf & 2) {
1444
- let _t;
1445
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileTemplate = _t.first);
1446
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
1447
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
1448
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.toolbarTemplate = _t.first);
1449
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chooseIconTemplate = _t.first);
1450
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileLabelTemplate = _t.first);
1451
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.uploadIconTemplate = _t.first);
1452
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cancelIconTemplate = _t.first);
1453
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyTemplate = _t.first);
1454
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
1455
- } }, viewQuery: function FileUpload_Query(rf, ctx) { if (rf & 1) {
1456
- i0.ɵɵviewQuery(_c9, 5);
1457
- i0.ɵɵviewQuery(_c10, 5);
1458
- i0.ɵɵviewQuery(_c2, 5);
1459
- } if (rf & 2) {
1460
- let _t;
1461
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.advancedFileInput = _t.first);
1462
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.basicFileInput = _t.first);
1463
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
1464
- } }, inputs: { name: "name", url: "url", method: "method", multiple: [2, "multiple", "multiple", booleanAttribute], accept: "accept", disabled: [2, "disabled", "disabled", booleanAttribute], auto: [2, "auto", "auto", booleanAttribute], withCredentials: [2, "withCredentials", "withCredentials", booleanAttribute], maxFileSize: [2, "maxFileSize", "maxFileSize", numberAttribute], invalidFileSizeMessageSummary: "invalidFileSizeMessageSummary", invalidFileSizeMessageDetail: "invalidFileSizeMessageDetail", invalidFileTypeMessageSummary: "invalidFileTypeMessageSummary", invalidFileTypeMessageDetail: "invalidFileTypeMessageDetail", invalidFileLimitMessageDetail: "invalidFileLimitMessageDetail", invalidFileLimitMessageSummary: "invalidFileLimitMessageSummary", style: "style", styleClass: "styleClass", previewWidth: [2, "previewWidth", "previewWidth", numberAttribute], chooseLabel: "chooseLabel", uploadLabel: "uploadLabel", cancelLabel: "cancelLabel", chooseIcon: "chooseIcon", uploadIcon: "uploadIcon", cancelIcon: "cancelIcon", showUploadButton: [2, "showUploadButton", "showUploadButton", booleanAttribute], showCancelButton: [2, "showCancelButton", "showCancelButton", booleanAttribute], mode: "mode", headers: "headers", customUpload: [2, "customUpload", "customUpload", booleanAttribute], fileLimit: [2, "fileLimit", "fileLimit", (value) => numberAttribute(value, null)], uploadStyleClass: "uploadStyleClass", cancelStyleClass: "cancelStyleClass", removeStyleClass: "removeStyleClass", chooseStyleClass: "chooseStyleClass", chooseButtonProps: "chooseButtonProps", uploadButtonProps: "uploadButtonProps", cancelButtonProps: "cancelButtonProps", files: "files" }, outputs: { onBeforeUpload: "onBeforeUpload", onSend: "onSend", onUpload: "onUpload", onError: "onError", onClear: "onClear", onRemove: "onRemove", onSelect: "onSelect", onProgress: "onProgress", uploadHandler: "uploadHandler", onImageError: "onImageError", onRemoveUploadedFile: "onRemoveUploadedFile" }, features: [i0.ɵɵProvidersFeature([FileUploadStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["advancedfileinput", ""], ["content", ""], ["icon", ""], ["basicfileinput", ""], [3, "ngClass", "ngStyle", "class", 4, "ngIf"], [3, "ngClass", "class", 4, "ngIf"], [3, "ngClass", "ngStyle"], ["type", "file", 3, "change", "multiple", "accept", "disabled"], [1, "p-fileupload-header"], [4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "ngTemplateOutlet"], [1, "p-fileupload-content", 3, "dragenter", "dragleave", "drop"], [3, "value", "showValue", 4, "ngIf"], [3, "severity", "text"], ["class", "p-fileupload-file-list", 4, "ngIf"], ["tabindex", "0", 3, "focus", "blur", "onClick", "keydown.enter", "styleClass", "disabled", "label", "buttonProps"], [3, "class", 4, "ngIf"], [3, "label", "disabled", "styleClass", "buttonProps", "onClick", 4, "ngIf"], [3, "onClick", "label", "disabled", "styleClass", "buttonProps"], [3, "ngClass", 4, "ngIf"], [3, "ngClass"], [3, "value", "showValue"], [1, "p-fileupload-file-list"], [1, "p-fileupload-file"], ["ngFor", "", 3, "ngForOf", "ngForTemplate"], ["class", "p-fileupload-file", 4, "ngFor", "ngForOf"], ["class", "p-fileupload-file-thumbnail", 3, "src", "width", "error", 4, "ngIf"], [1, "p-fileupload-file-info"], [1, "p-fileupload-file-name"], [1, "p-fileupload-file-size"], [1, "p-fileupload-file-actions"], ["text", "", "rounded", "", "severity", "danger", 3, "onClick", "disabled", "styleClass"], [1, "p-fileupload-file-thumbnail", 3, "error", "src", "width"], ["tabindex", "0", 3, "onClick", "keydown", "styleClass", "disabled", "label", "buttonProps"], ["type", "file", 3, "change", "focus", "blur", "accept", "multiple", "disabled"], ["class", "p-button-icon p-button-icon-left", 3, "ngClass", 4, "ngIf"], [1, "p-button-icon", "p-button-icon-left", 3, "ngClass"], [3, "styleClass", 4, "ngIf"], ["class", "p-button-icon p-button-icon-left", 4, "ngIf"], [3, "styleClass"], [1, "p-button-icon", "p-button-icon-left"], ["class", "p-button-icon p-button-icon-left pi", 3, "ngClass", 4, "ngIf"], [1, "p-button-icon", "p-button-icon-left", "pi", 3, "ngClass"], [3, "class"]], template: function FileUpload_Template(rf, ctx) { if (rf & 1) {
1465
- i0.ɵɵtemplate(0, FileUpload_div_0_Template, 15, 39, "div", 4)(1, FileUpload_div_1_Template, 9, 16, "div", 5);
1466
- } if (rf & 2) {
1467
- i0.ɵɵproperty("ngIf", ctx.mode === "advanced");
1468
- i0.ɵɵadvance();
1469
- i0.ɵɵproperty("ngIf", ctx.mode === "basic");
1470
- } }, dependencies: [CommonModule, i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule], encapsulation: 2, changeDetection: 0 });
963
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
964
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: FileUpload, isStandalone: true, selector: "p-fileupload, p-fileUpload", inputs: { name: "name", url: "url", method: "method", multiple: ["multiple", "multiple", booleanAttribute], accept: "accept", disabled: ["disabled", "disabled", booleanAttribute], auto: ["auto", "auto", booleanAttribute], withCredentials: ["withCredentials", "withCredentials", booleanAttribute], maxFileSize: ["maxFileSize", "maxFileSize", numberAttribute], invalidFileSizeMessageSummary: "invalidFileSizeMessageSummary", invalidFileSizeMessageDetail: "invalidFileSizeMessageDetail", invalidFileTypeMessageSummary: "invalidFileTypeMessageSummary", invalidFileTypeMessageDetail: "invalidFileTypeMessageDetail", invalidFileLimitMessageDetail: "invalidFileLimitMessageDetail", invalidFileLimitMessageSummary: "invalidFileLimitMessageSummary", style: "style", styleClass: "styleClass", previewWidth: ["previewWidth", "previewWidth", numberAttribute], chooseLabel: "chooseLabel", uploadLabel: "uploadLabel", cancelLabel: "cancelLabel", chooseIcon: "chooseIcon", uploadIcon: "uploadIcon", cancelIcon: "cancelIcon", showUploadButton: ["showUploadButton", "showUploadButton", booleanAttribute], showCancelButton: ["showCancelButton", "showCancelButton", booleanAttribute], mode: "mode", headers: "headers", customUpload: ["customUpload", "customUpload", booleanAttribute], fileLimit: ["fileLimit", "fileLimit", (value) => numberAttribute(value, null)], uploadStyleClass: "uploadStyleClass", cancelStyleClass: "cancelStyleClass", removeStyleClass: "removeStyleClass", chooseStyleClass: "chooseStyleClass", chooseButtonProps: "chooseButtonProps", uploadButtonProps: "uploadButtonProps", cancelButtonProps: "cancelButtonProps", files: "files" }, outputs: { onBeforeUpload: "onBeforeUpload", onSend: "onSend", onUpload: "onUpload", onError: "onError", onClear: "onClear", onRemove: "onRemove", onSelect: "onSelect", onProgress: "onProgress", uploadHandler: "uploadHandler", onImageError: "onImageError", onRemoveUploadedFile: "onRemoveUploadedFile" }, providers: [FileUploadStyle], queries: [{ propertyName: "fileTemplate", first: true, predicate: ["file"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "contentTemplate", first: true, predicate: ["content"] }, { propertyName: "toolbarTemplate", first: true, predicate: ["toolbar"] }, { propertyName: "chooseIconTemplate", first: true, predicate: ["chooseicon"] }, { propertyName: "fileLabelTemplate", first: true, predicate: ["filelabel"] }, { propertyName: "uploadIconTemplate", first: true, predicate: ["uploadicon"] }, { propertyName: "cancelIconTemplate", first: true, predicate: ["cancelicon"] }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "advancedFileInput", first: true, predicate: ["advancedfileinput"], descendants: true }, { propertyName: "basicFileInput", first: true, predicate: ["basicfileinput"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
965
+ <div [ngClass]="'p-fileupload p-fileupload-advanced p-component'" [ngStyle]="style" [class]="styleClass" *ngIf="mode === 'advanced'" [attr.data-pc-name]="'fileupload'" [attr.data-pc-section]="'root'">
966
+ <input
967
+ [attr.aria-label]="browseFilesLabel"
968
+ #advancedfileinput
969
+ type="file"
970
+ (change)="onFileSelect($event)"
971
+ [multiple]="multiple"
972
+ [accept]="accept"
973
+ [disabled]="disabled || isChooseDisabled()"
974
+ [attr.title]="''"
975
+ [attr.data-pc-section]="'input'"
976
+ [style.display]="'none'"
977
+ />
978
+ <div class="p-fileupload-header">
979
+ <ng-container *ngIf="!headerTemplate && !_headerTemplate">
980
+ <p-button
981
+ [styleClass]="'p-fileupload-choose-button ' + chooseStyleClass"
982
+ [disabled]="disabled || isChooseDisabled()"
983
+ (focus)="onFocus()"
984
+ [label]="chooseButtonLabel"
985
+ (blur)="onBlur()"
986
+ (onClick)="choose()"
987
+ (keydown.enter)="choose()"
988
+ tabindex="0"
989
+ [attr.data-pc-section]="'choosebutton'"
990
+ [buttonProps]="chooseButtonProps"
991
+ >
992
+ <input
993
+ [attr.aria-label]="browseFilesLabel"
994
+ #advancedfileinput
995
+ type="file"
996
+ (change)="onFileSelect($event)"
997
+ [multiple]="multiple"
998
+ [accept]="accept"
999
+ [disabled]="disabled || isChooseDisabled()"
1000
+ [attr.title]="''"
1001
+ [attr.data-pc-section]="'input'"
1002
+ />
1003
+ <span *ngIf="chooseIcon" [class]="chooseIcon" [attr.aria-label]="true" [attr.data-pc-section]="'chooseicon'"></span>
1004
+ <ng-container *ngIf="!chooseIcon">
1005
+ <PlusIcon *ngIf="!chooseIconTemplate && !_chooseIconTemplate" [attr.aria-label]="true" [attr.data-pc-section]="'chooseicon'" />
1006
+ <span *ngIf="chooseIconTemplate || _chooseIconTemplate" [attr.aria-label]="true" [attr.data-pc-section]="'chooseicon'">
1007
+ <ng-template *ngTemplateOutlet="chooseIconTemplate || _chooseIconTemplate"></ng-template>
1008
+ </span>
1009
+ </ng-container>
1010
+ </p-button>
1011
+
1012
+ <p-button
1013
+ *ngIf="!auto && showUploadButton"
1014
+ [label]="uploadButtonLabel"
1015
+ (onClick)="upload()"
1016
+ [disabled]="!hasFiles() || isFileLimitExceeded()"
1017
+ [styleClass]="'p-fileupload-upload-button ' + uploadStyleClass"
1018
+ [buttonProps]="uploadButtonProps"
1019
+ >
1020
+ <span *ngIf="uploadIcon" [ngClass]="uploadIcon" [attr.aria-hidden]="true"></span>
1021
+ <ng-container *ngIf="!uploadIcon">
1022
+ <UploadIcon *ngIf="!uploadIconTemplate && !_uploadIconTemplate" />
1023
+ <span *ngIf="uploadIconTemplate || _uploadIconTemplate" [attr.aria-hidden]="true">
1024
+ <ng-template *ngTemplateOutlet="uploadIconTemplate || _uploadIconTemplate"></ng-template>
1025
+ </span>
1026
+ </ng-container>
1027
+ </p-button>
1028
+ <p-button *ngIf="!auto && showCancelButton" [label]="cancelButtonLabel" (onClick)="clear()" [disabled]="!hasFiles() || uploading" [styleClass]="'p-fileupload-cancel-button ' + cancelStyleClass" [buttonProps]="cancelButtonProps">
1029
+ <span *ngIf="cancelIcon" [ngClass]="cancelIcon"></span>
1030
+ <ng-container *ngIf="!cancelIcon">
1031
+ <TimesIcon *ngIf="!cancelIconTemplate && !_cancelIconTemplate" [attr.aria-hidden]="true" />
1032
+ <span *ngIf="cancelIconTemplate || _cancelIconTemplate" [attr.aria-hidden]="true">
1033
+ <ng-template *ngTemplateOutlet="cancelIconTemplate || _cancelIconTemplate"></ng-template>
1034
+ </span>
1035
+ </ng-container>
1036
+ </p-button>
1037
+ </ng-container>
1038
+ <ng-container
1039
+ *ngTemplateOutlet="
1040
+ headerTemplate || _headerTemplate;
1041
+ context: {
1042
+ $implicit: files,
1043
+ uploadedFiles: uploadedFiles,
1044
+ chooseCallback: choose.bind(this),
1045
+ clearCallback: clear.bind(this),
1046
+ uploadCallback: upload.bind(this)
1047
+ }
1048
+ "
1049
+ ></ng-container>
1050
+ <ng-container *ngTemplateOutlet="toolbarTemplate || _toolbarTemplate"></ng-container>
1051
+ </div>
1052
+ <div #content class="p-fileupload-content" (dragenter)="onDragEnter($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)" [attr.data-pc-section]="'content'">
1053
+ <p-progressbar [value]="progress" [showValue]="false" *ngIf="hasFiles()"></p-progressbar>
1054
+ @for (message of msgs; track message) {
1055
+ <p-message [severity]="message.severity" [text]="message.text"></p-message>
1056
+ }
1057
+
1058
+ <div class="p-fileupload-file-list" *ngIf="hasFiles()">
1059
+ @if (!fileTemplate && !_fileTemplate) {
1060
+ <div class="p-fileupload-file" *ngFor="let file of files; let i = index">
1061
+ <img [src]="file.objectURL" *ngIf="isImage(file)" [width]="previewWidth" (error)="imageError($event)" class="p-fileupload-file-thumbnail" />
1062
+ <div class="p-fileupload-file-info">
1063
+ <div class="p-fileupload-file-name">{{ file.name }}</div>
1064
+ <span class="p-fileupload-file-size">{{ formatSize(file.size) }}</span>
1065
+ </div>
1066
+ <div class="p-fileupload-file-actions">
1067
+ <p-button (onClick)="remove($event, i)" [disabled]="uploading" text rounded severity="danger" [styleClass]="'p-fileupload-file-remove-button ' + removeStyleClass">
1068
+ <ng-template #icon>
1069
+ <TimesIcon *ngIf="!cancelIconTemplate && !_cancelIconTemplate" />
1070
+ <ng-template *ngTemplateOutlet="cancelIconTemplate || _cancelIconTemplate"></ng-template>
1071
+ </ng-template>
1072
+ </p-button>
1073
+ </div>
1074
+ </div>
1075
+ }
1076
+ @if (fileTemplate || _fileTemplate) {
1077
+ <ng-template ngFor [ngForOf]="files" [ngForTemplate]="fileTemplate || _fileTemplate"></ng-template>
1078
+ }
1079
+ </div>
1080
+ <ng-container
1081
+ *ngTemplateOutlet="
1082
+ contentTemplate || _contentTemplate;
1083
+ context: {
1084
+ $implicit: files,
1085
+ uploadedFiles: uploadedFiles,
1086
+ chooseCallback: choose.bind(this),
1087
+ clearCallback: clear.bind(this),
1088
+ removeUploadedFileCallback: removeUploadedFile.bind(this),
1089
+ removeFileCallback: remove.bind(this),
1090
+ progress: progress,
1091
+ messages: msgs
1092
+ }
1093
+ "
1094
+ ></ng-container>
1095
+ @if ((emptyTemplate || _emptyTemplate) && !hasFiles() && !hasUploadedFiles()) {
1096
+ <ng-container *ngTemplateOutlet="emptyTemplate || _emptyTemplate"></ng-container>
1097
+ }
1098
+ </div>
1099
+ </div>
1100
+ <div [ngClass]="'p-fileupload p-fileupload-basic p-component'" [class]="styleClass" *ngIf="mode === 'basic'" [attr.data-pc-name]="'fileupload'">
1101
+ @for (message of msgs; track message) {
1102
+ <p-message [severity]="message.severity" [text]="message.text"></p-message>
1103
+ }
1104
+
1105
+ <p-button
1106
+ [styleClass]="'p-fileupload-choose-button ' + chooseStyleClass"
1107
+ [disabled]="disabled"
1108
+ [label]="chooseButtonLabel"
1109
+ [style]="style"
1110
+ (onClick)="onBasicUploaderClick()"
1111
+ (keydown)="onBasicKeydown($event)"
1112
+ tabindex="0"
1113
+ [buttonProps]="chooseButtonProps"
1114
+ >
1115
+ <ng-template #icon>
1116
+ @if (hasFiles() && !auto) {
1117
+ <span *ngIf="uploadIcon" class="p-button-icon p-button-icon-left" [ngClass]="uploadIcon"></span>
1118
+ <ng-container *ngIf="!uploadIcon">
1119
+ <UploadIcon *ngIf="!uploadIconTemplate && !_uploadIconTemplate" [styleClass]="'p-button-icon p-button-icon-left'" />
1120
+ <span *ngIf="_uploadIconTemplate || uploadIconTemplate" class="p-button-icon p-button-icon-left">
1121
+ <ng-template *ngTemplateOutlet="_uploadIconTemplate || uploadIconTemplate"></ng-template>
1122
+ </span>
1123
+ </ng-container>
1124
+ } @else {
1125
+ <span *ngIf="chooseIcon" class="p-button-icon p-button-icon-left pi" [ngClass]="chooseIcon"></span>
1126
+ <ng-container *ngIf="!chooseIcon">
1127
+ <PlusIcon *ngIf="!chooseIconTemplate && !_chooseIconTemplate" [attr.data-pc-section]="'uploadicon'" />
1128
+ <ng-template *ngTemplateOutlet="chooseIconTemplate || _chooseIconTemplate"></ng-template>
1129
+ </ng-container>
1130
+ }
1131
+ </ng-template>
1132
+ <input
1133
+ [attr.aria-label]="browseFilesLabel"
1134
+ #basicfileinput
1135
+ type="file"
1136
+ [accept]="accept"
1137
+ [multiple]="multiple"
1138
+ [disabled]="disabled"
1139
+ (change)="onFileSelect($event)"
1140
+ (focus)="onFocus()"
1141
+ (blur)="onBlur()"
1142
+ [attr.data-pc-section]="'input'"
1143
+ />
1144
+ </p-button>
1145
+ @if (!auto) {
1146
+ @if (!fileLabelTemplate && !_fileLabelTemplate) {
1147
+ <span [class]="cx('filelabel')">
1148
+ {{ basicFileChosenLabel() }}
1149
+ </span>
1150
+ } @else {
1151
+ <ng-container *ngTemplateOutlet="fileLabelTemplate || _fileLabelTemplate; context: { $implicit: files }"></ng-container>
1152
+ }
1153
+ }
1154
+ </div>
1155
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ProgressBar, selector: "p-progressBar, p-progressbar, p-progress-bar", inputs: ["value", "showValue", "styleClass", "valueStyleClass", "style", "unit", "mode", "color"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }, { kind: "component", type: PlusIcon, selector: "PlusIcon" }, { kind: "component", type: UploadIcon, selector: "UploadIcon" }, { kind: "component", type: TimesIcon, selector: "TimesIcon" }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1471
1156
  }
1472
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileUpload, [{
1473
- type: Component,
1474
- args: [{
1475
- selector: 'p-fileupload, p-fileUpload',
1476
- standalone: true,
1477
- imports: [CommonModule, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule],
1478
- template: `
1157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUpload, decorators: [{
1158
+ type: Component,
1159
+ args: [{
1160
+ selector: 'p-fileupload, p-fileUpload',
1161
+ standalone: true,
1162
+ imports: [CommonModule, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule],
1163
+ template: `
1479
1164
  <div [ngClass]="'p-fileupload p-fileupload-advanced p-component'" [ngStyle]="style" [class]="styleClass" *ngIf="mode === 'advanced'" [attr.data-pc-name]="'fileupload'" [attr.data-pc-section]="'root'">
1480
1165
  <input
1481
1166
  [attr.aria-label]="browseFilesLabel"
@@ -1667,172 +1352,170 @@ class FileUpload extends BaseComponent {
1667
1352
  }
1668
1353
  </div>
1669
1354
  `,
1670
- changeDetection: ChangeDetectionStrategy.OnPush,
1671
- encapsulation: ViewEncapsulation.None,
1672
- providers: [FileUploadStyle]
1673
- }]
1674
- }], null, { name: [{
1675
- type: Input
1676
- }], url: [{
1677
- type: Input
1678
- }], method: [{
1679
- type: Input
1680
- }], multiple: [{
1681
- type: Input,
1682
- args: [{ transform: booleanAttribute }]
1683
- }], accept: [{
1684
- type: Input
1685
- }], disabled: [{
1686
- type: Input,
1687
- args: [{ transform: booleanAttribute }]
1688
- }], auto: [{
1689
- type: Input,
1690
- args: [{ transform: booleanAttribute }]
1691
- }], withCredentials: [{
1692
- type: Input,
1693
- args: [{ transform: booleanAttribute }]
1694
- }], maxFileSize: [{
1695
- type: Input,
1696
- args: [{ transform: numberAttribute }]
1697
- }], invalidFileSizeMessageSummary: [{
1698
- type: Input
1699
- }], invalidFileSizeMessageDetail: [{
1700
- type: Input
1701
- }], invalidFileTypeMessageSummary: [{
1702
- type: Input
1703
- }], invalidFileTypeMessageDetail: [{
1704
- type: Input
1705
- }], invalidFileLimitMessageDetail: [{
1706
- type: Input
1707
- }], invalidFileLimitMessageSummary: [{
1708
- type: Input
1709
- }], style: [{
1710
- type: Input
1711
- }], styleClass: [{
1712
- type: Input
1713
- }], previewWidth: [{
1714
- type: Input,
1715
- args: [{ transform: numberAttribute }]
1716
- }], chooseLabel: [{
1717
- type: Input
1718
- }], uploadLabel: [{
1719
- type: Input
1720
- }], cancelLabel: [{
1721
- type: Input
1722
- }], chooseIcon: [{
1723
- type: Input
1724
- }], uploadIcon: [{
1725
- type: Input
1726
- }], cancelIcon: [{
1727
- type: Input
1728
- }], showUploadButton: [{
1729
- type: Input,
1730
- args: [{ transform: booleanAttribute }]
1731
- }], showCancelButton: [{
1732
- type: Input,
1733
- args: [{ transform: booleanAttribute }]
1734
- }], mode: [{
1735
- type: Input
1736
- }], headers: [{
1737
- type: Input
1738
- }], customUpload: [{
1739
- type: Input,
1740
- args: [{ transform: booleanAttribute }]
1741
- }], fileLimit: [{
1742
- type: Input,
1743
- args: [{ transform: (value) => numberAttribute(value, null) }]
1744
- }], uploadStyleClass: [{
1745
- type: Input
1746
- }], cancelStyleClass: [{
1747
- type: Input
1748
- }], removeStyleClass: [{
1749
- type: Input
1750
- }], chooseStyleClass: [{
1751
- type: Input
1752
- }], chooseButtonProps: [{
1753
- type: Input
1754
- }], uploadButtonProps: [{
1755
- type: Input
1756
- }], cancelButtonProps: [{
1757
- type: Input
1758
- }], onBeforeUpload: [{
1759
- type: Output
1760
- }], onSend: [{
1761
- type: Output
1762
- }], onUpload: [{
1763
- type: Output
1764
- }], onError: [{
1765
- type: Output
1766
- }], onClear: [{
1767
- type: Output
1768
- }], onRemove: [{
1769
- type: Output
1770
- }], onSelect: [{
1771
- type: Output
1772
- }], onProgress: [{
1773
- type: Output
1774
- }], uploadHandler: [{
1775
- type: Output
1776
- }], onImageError: [{
1777
- type: Output
1778
- }], onRemoveUploadedFile: [{
1779
- type: Output
1780
- }], fileTemplate: [{
1781
- type: ContentChild,
1782
- args: ['file', { descendants: false }]
1783
- }], headerTemplate: [{
1784
- type: ContentChild,
1785
- args: ['header', { descendants: false }]
1786
- }], contentTemplate: [{
1787
- type: ContentChild,
1788
- args: ['content', { descendants: false }]
1789
- }], toolbarTemplate: [{
1790
- type: ContentChild,
1791
- args: ['toolbar', { descendants: false }]
1792
- }], chooseIconTemplate: [{
1793
- type: ContentChild,
1794
- args: ['chooseicon', { descendants: false }]
1795
- }], fileLabelTemplate: [{
1796
- type: ContentChild,
1797
- args: ['filelabel', { descendants: false }]
1798
- }], uploadIconTemplate: [{
1799
- type: ContentChild,
1800
- args: ['uploadicon', { descendants: false }]
1801
- }], cancelIconTemplate: [{
1802
- type: ContentChild,
1803
- args: ['cancelicon', { descendants: false }]
1804
- }], emptyTemplate: [{
1805
- type: ContentChild,
1806
- args: ['empty', { descendants: false }]
1807
- }], advancedFileInput: [{
1808
- type: ViewChild,
1809
- args: ['advancedfileinput']
1810
- }], basicFileInput: [{
1811
- type: ViewChild,
1812
- args: ['basicfileinput']
1813
- }], content: [{
1814
- type: ViewChild,
1815
- args: ['content']
1816
- }], files: [{
1817
- type: Input
1818
- }], templates: [{
1819
- type: ContentChildren,
1820
- args: [PrimeTemplate]
1821
- }] }); })();
1822
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileUpload, { className: "FileUpload", filePath: "fileupload.ts", lineNumber: 243 }); })();
1355
+ changeDetection: ChangeDetectionStrategy.OnPush,
1356
+ encapsulation: ViewEncapsulation.None,
1357
+ providers: [FileUploadStyle]
1358
+ }]
1359
+ }], propDecorators: { name: [{
1360
+ type: Input
1361
+ }], url: [{
1362
+ type: Input
1363
+ }], method: [{
1364
+ type: Input
1365
+ }], multiple: [{
1366
+ type: Input,
1367
+ args: [{ transform: booleanAttribute }]
1368
+ }], accept: [{
1369
+ type: Input
1370
+ }], disabled: [{
1371
+ type: Input,
1372
+ args: [{ transform: booleanAttribute }]
1373
+ }], auto: [{
1374
+ type: Input,
1375
+ args: [{ transform: booleanAttribute }]
1376
+ }], withCredentials: [{
1377
+ type: Input,
1378
+ args: [{ transform: booleanAttribute }]
1379
+ }], maxFileSize: [{
1380
+ type: Input,
1381
+ args: [{ transform: numberAttribute }]
1382
+ }], invalidFileSizeMessageSummary: [{
1383
+ type: Input
1384
+ }], invalidFileSizeMessageDetail: [{
1385
+ type: Input
1386
+ }], invalidFileTypeMessageSummary: [{
1387
+ type: Input
1388
+ }], invalidFileTypeMessageDetail: [{
1389
+ type: Input
1390
+ }], invalidFileLimitMessageDetail: [{
1391
+ type: Input
1392
+ }], invalidFileLimitMessageSummary: [{
1393
+ type: Input
1394
+ }], style: [{
1395
+ type: Input
1396
+ }], styleClass: [{
1397
+ type: Input
1398
+ }], previewWidth: [{
1399
+ type: Input,
1400
+ args: [{ transform: numberAttribute }]
1401
+ }], chooseLabel: [{
1402
+ type: Input
1403
+ }], uploadLabel: [{
1404
+ type: Input
1405
+ }], cancelLabel: [{
1406
+ type: Input
1407
+ }], chooseIcon: [{
1408
+ type: Input
1409
+ }], uploadIcon: [{
1410
+ type: Input
1411
+ }], cancelIcon: [{
1412
+ type: Input
1413
+ }], showUploadButton: [{
1414
+ type: Input,
1415
+ args: [{ transform: booleanAttribute }]
1416
+ }], showCancelButton: [{
1417
+ type: Input,
1418
+ args: [{ transform: booleanAttribute }]
1419
+ }], mode: [{
1420
+ type: Input
1421
+ }], headers: [{
1422
+ type: Input
1423
+ }], customUpload: [{
1424
+ type: Input,
1425
+ args: [{ transform: booleanAttribute }]
1426
+ }], fileLimit: [{
1427
+ type: Input,
1428
+ args: [{ transform: (value) => numberAttribute(value, null) }]
1429
+ }], uploadStyleClass: [{
1430
+ type: Input
1431
+ }], cancelStyleClass: [{
1432
+ type: Input
1433
+ }], removeStyleClass: [{
1434
+ type: Input
1435
+ }], chooseStyleClass: [{
1436
+ type: Input
1437
+ }], chooseButtonProps: [{
1438
+ type: Input
1439
+ }], uploadButtonProps: [{
1440
+ type: Input
1441
+ }], cancelButtonProps: [{
1442
+ type: Input
1443
+ }], onBeforeUpload: [{
1444
+ type: Output
1445
+ }], onSend: [{
1446
+ type: Output
1447
+ }], onUpload: [{
1448
+ type: Output
1449
+ }], onError: [{
1450
+ type: Output
1451
+ }], onClear: [{
1452
+ type: Output
1453
+ }], onRemove: [{
1454
+ type: Output
1455
+ }], onSelect: [{
1456
+ type: Output
1457
+ }], onProgress: [{
1458
+ type: Output
1459
+ }], uploadHandler: [{
1460
+ type: Output
1461
+ }], onImageError: [{
1462
+ type: Output
1463
+ }], onRemoveUploadedFile: [{
1464
+ type: Output
1465
+ }], fileTemplate: [{
1466
+ type: ContentChild,
1467
+ args: ['file', { descendants: false }]
1468
+ }], headerTemplate: [{
1469
+ type: ContentChild,
1470
+ args: ['header', { descendants: false }]
1471
+ }], contentTemplate: [{
1472
+ type: ContentChild,
1473
+ args: ['content', { descendants: false }]
1474
+ }], toolbarTemplate: [{
1475
+ type: ContentChild,
1476
+ args: ['toolbar', { descendants: false }]
1477
+ }], chooseIconTemplate: [{
1478
+ type: ContentChild,
1479
+ args: ['chooseicon', { descendants: false }]
1480
+ }], fileLabelTemplate: [{
1481
+ type: ContentChild,
1482
+ args: ['filelabel', { descendants: false }]
1483
+ }], uploadIconTemplate: [{
1484
+ type: ContentChild,
1485
+ args: ['uploadicon', { descendants: false }]
1486
+ }], cancelIconTemplate: [{
1487
+ type: ContentChild,
1488
+ args: ['cancelicon', { descendants: false }]
1489
+ }], emptyTemplate: [{
1490
+ type: ContentChild,
1491
+ args: ['empty', { descendants: false }]
1492
+ }], advancedFileInput: [{
1493
+ type: ViewChild,
1494
+ args: ['advancedfileinput']
1495
+ }], basicFileInput: [{
1496
+ type: ViewChild,
1497
+ args: ['basicfileinput']
1498
+ }], content: [{
1499
+ type: ViewChild,
1500
+ args: ['content']
1501
+ }], files: [{
1502
+ type: Input
1503
+ }], templates: [{
1504
+ type: ContentChildren,
1505
+ args: [PrimeTemplate]
1506
+ }] } });
1823
1507
  class FileUploadModule {
1824
- static ɵfac = function FileUploadModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FileUploadModule)(); };
1825
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FileUploadModule });
1826
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [FileUpload, SharedModule, SharedModule] });
1508
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1509
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: FileUploadModule, imports: [FileUpload, SharedModule], exports: [FileUpload, SharedModule] });
1510
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadModule, imports: [FileUpload, SharedModule, SharedModule] });
1827
1511
  }
1828
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileUploadModule, [{
1829
- type: NgModule,
1830
- args: [{
1831
- imports: [FileUpload, SharedModule],
1832
- exports: [FileUpload, SharedModule]
1833
- }]
1834
- }], null, null); })();
1835
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FileUploadModule, { imports: [FileUpload, SharedModule], exports: [FileUpload, SharedModule] }); })();
1512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadModule, decorators: [{
1513
+ type: NgModule,
1514
+ args: [{
1515
+ imports: [FileUpload, SharedModule],
1516
+ exports: [FileUpload, SharedModule]
1517
+ }]
1518
+ }] });
1836
1519
 
1837
1520
  /**
1838
1521
  * Generated bundle index. Do not edit.