primeng 19.0.5 → 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 (364) hide show
  1. package/badge/badge.d.ts +2 -2
  2. package/base/style/basestyle.d.ts +4 -6
  3. package/config/primeng.d.ts +3 -0
  4. package/dataview/dataview.interface.d.ts +9 -19
  5. package/datepicker/datepicker.d.ts +1 -0
  6. package/datepicker/style/datepickerstyle.d.ts +1 -0
  7. package/dragdrop/dragdrop.d.ts +3 -2
  8. package/dynamicdialog/dynamicdialog-config.d.ts +1 -1
  9. package/dynamicdialog/dynamicdialog.d.ts +2 -1
  10. package/fesm2022/primeng-accordion.mjs +347 -560
  11. package/fesm2022/primeng-accordion.mjs.map +1 -1
  12. package/fesm2022/primeng-animateonscroll.mjs +37 -40
  13. package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
  14. package/fesm2022/primeng-api.mjs +79 -89
  15. package/fesm2022/primeng-api.mjs.map +1 -1
  16. package/fesm2022/primeng-autocomplete.mjs +507 -788
  17. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  18. package/fesm2022/primeng-autofocus.mjs +26 -27
  19. package/fesm2022/primeng-autofocus.mjs.map +1 -1
  20. package/fesm2022/primeng-avatar.mjs +72 -120
  21. package/fesm2022/primeng-avatar.mjs.map +1 -1
  22. package/fesm2022/primeng-avatargroup.mjs +44 -54
  23. package/fesm2022/primeng-avatargroup.mjs.map +1 -1
  24. package/fesm2022/primeng-badge.mjs +62 -71
  25. package/fesm2022/primeng-badge.mjs.map +1 -1
  26. package/fesm2022/primeng-base.mjs +14 -8
  27. package/fesm2022/primeng-base.mjs.map +1 -1
  28. package/fesm2022/primeng-basecomponent.mjs +17 -17
  29. package/fesm2022/primeng-basecomponent.mjs.map +1 -1
  30. package/fesm2022/primeng-blockui.mjs +66 -87
  31. package/fesm2022/primeng-blockui.mjs.map +1 -1
  32. package/fesm2022/primeng-breadcrumb.mjs +175 -386
  33. package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
  34. package/fesm2022/primeng-button.mjs +223 -328
  35. package/fesm2022/primeng-button.mjs.map +1 -1
  36. package/fesm2022/primeng-buttongroup.mjs +36 -40
  37. package/fesm2022/primeng-buttongroup.mjs.map +1 -1
  38. package/fesm2022/primeng-calendar.mjs +727 -1127
  39. package/fesm2022/primeng-calendar.mjs.map +1 -1
  40. package/fesm2022/primeng-card.mjs +89 -193
  41. package/fesm2022/primeng-card.mjs.map +1 -1
  42. package/fesm2022/primeng-carousel.mjs +227 -410
  43. package/fesm2022/primeng-carousel.mjs.map +1 -1
  44. package/fesm2022/primeng-cascadeselect.mjs +393 -577
  45. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  46. package/fesm2022/primeng-chart.mjs +57 -63
  47. package/fesm2022/primeng-chart.mjs.map +1 -1
  48. package/fesm2022/primeng-checkbox.mjs +133 -185
  49. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  50. package/fesm2022/primeng-chip.mjs +92 -188
  51. package/fesm2022/primeng-chip.mjs.map +1 -1
  52. package/fesm2022/primeng-colorpicker.mjs +142 -167
  53. package/fesm2022/primeng-colorpicker.mjs.map +1 -1
  54. package/fesm2022/primeng-config.mjs +18 -16
  55. package/fesm2022/primeng-config.mjs.map +1 -1
  56. package/fesm2022/primeng-confirmdialog.mjs +220 -347
  57. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  58. package/fesm2022/primeng-confirmpopup.mjs +161 -251
  59. package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
  60. package/fesm2022/primeng-contextmenu.mjs +336 -450
  61. package/fesm2022/primeng-contextmenu.mjs.map +1 -1
  62. package/fesm2022/primeng-dataview.mjs +249 -352
  63. package/fesm2022/primeng-dataview.mjs.map +1 -1
  64. package/fesm2022/primeng-datepicker.mjs +751 -1144
  65. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  66. package/fesm2022/primeng-defer.mjs +25 -31
  67. package/fesm2022/primeng-defer.mjs.map +1 -1
  68. package/fesm2022/primeng-dialog.mjs +277 -478
  69. package/fesm2022/primeng-dialog.mjs.map +1 -1
  70. package/fesm2022/primeng-divider.mjs +68 -77
  71. package/fesm2022/primeng-divider.mjs.map +1 -1
  72. package/fesm2022/primeng-dock.mjs +138 -167
  73. package/fesm2022/primeng-dock.mjs.map +1 -1
  74. package/fesm2022/primeng-dragdrop.mjs +85 -79
  75. package/fesm2022/primeng-dragdrop.mjs.map +1 -1
  76. package/fesm2022/primeng-drawer.mjs +172 -269
  77. package/fesm2022/primeng-drawer.mjs.map +1 -1
  78. package/fesm2022/primeng-dropdown.mjs +531 -869
  79. package/fesm2022/primeng-dropdown.mjs.map +1 -1
  80. package/fesm2022/primeng-dynamicdialog.mjs +163 -304
  81. package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
  82. package/fesm2022/primeng-editor.mjs +118 -156
  83. package/fesm2022/primeng-editor.mjs.map +1 -1
  84. package/fesm2022/primeng-fieldset.mjs +153 -247
  85. package/fesm2022/primeng-fieldset.mjs.map +1 -1
  86. package/fesm2022/primeng-fileupload.mjs +370 -690
  87. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  88. package/fesm2022/primeng-floatlabel.mjs +38 -46
  89. package/fesm2022/primeng-floatlabel.mjs.map +1 -1
  90. package/fesm2022/primeng-fluid.mjs +33 -41
  91. package/fesm2022/primeng-fluid.mjs.map +1 -1
  92. package/fesm2022/primeng-focustrap.mjs +23 -24
  93. package/fesm2022/primeng-focustrap.mjs.map +1 -1
  94. package/fesm2022/primeng-galleria.mjs +529 -761
  95. package/fesm2022/primeng-galleria.mjs.map +1 -1
  96. package/fesm2022/primeng-iconfield.mjs +42 -51
  97. package/fesm2022/primeng-iconfield.mjs.map +1 -1
  98. package/fesm2022/primeng-icons-angledoubledown.mjs +19 -19
  99. package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
  100. package/fesm2022/primeng-icons-angledoubleleft.mjs +19 -19
  101. package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
  102. package/fesm2022/primeng-icons-angledoubleright.mjs +19 -19
  103. package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
  104. package/fesm2022/primeng-icons-angledoubleup.mjs +19 -19
  105. package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
  106. package/fesm2022/primeng-icons-angledown.mjs +17 -19
  107. package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
  108. package/fesm2022/primeng-icons-angleleft.mjs +17 -19
  109. package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
  110. package/fesm2022/primeng-icons-angleright.mjs +17 -19
  111. package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
  112. package/fesm2022/primeng-icons-angleup.mjs +17 -19
  113. package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
  114. package/fesm2022/primeng-icons-arrowdown.mjs +26 -26
  115. package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
  116. package/fesm2022/primeng-icons-arrowdownleft.mjs +17 -19
  117. package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
  118. package/fesm2022/primeng-icons-arrowdownright.mjs +17 -19
  119. package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
  120. package/fesm2022/primeng-icons-arrowleft.mjs +26 -26
  121. package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
  122. package/fesm2022/primeng-icons-arrowright.mjs +19 -19
  123. package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
  124. package/fesm2022/primeng-icons-arrowup.mjs +26 -26
  125. package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
  126. package/fesm2022/primeng-icons-ban.mjs +24 -26
  127. package/fesm2022/primeng-icons-ban.mjs.map +1 -1
  128. package/fesm2022/primeng-icons-bars.mjs +19 -19
  129. package/fesm2022/primeng-icons-bars.mjs.map +1 -1
  130. package/fesm2022/primeng-icons-baseicon.mjs +28 -33
  131. package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
  132. package/fesm2022/primeng-icons-blank.mjs +14 -16
  133. package/fesm2022/primeng-icons-blank.mjs.map +1 -1
  134. package/fesm2022/primeng-icons-calendar.mjs +17 -19
  135. package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
  136. package/fesm2022/primeng-icons-caretleft.mjs +17 -19
  137. package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
  138. package/fesm2022/primeng-icons-caretright.mjs +17 -19
  139. package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
  140. package/fesm2022/primeng-icons-check.mjs +17 -19
  141. package/fesm2022/primeng-icons-check.mjs.map +1 -1
  142. package/fesm2022/primeng-icons-chevrondown.mjs +17 -19
  143. package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
  144. package/fesm2022/primeng-icons-chevronleft.mjs +17 -19
  145. package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
  146. package/fesm2022/primeng-icons-chevronright.mjs +17 -19
  147. package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
  148. package/fesm2022/primeng-icons-chevronup.mjs +17 -19
  149. package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
  150. package/fesm2022/primeng-icons-exclamationtriangle.mjs +32 -26
  151. package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
  152. package/fesm2022/primeng-icons-eye.mjs +19 -19
  153. package/fesm2022/primeng-icons-eye.mjs.map +1 -1
  154. package/fesm2022/primeng-icons-eyeslash.mjs +26 -26
  155. package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
  156. package/fesm2022/primeng-icons-filter.mjs +24 -26
  157. package/fesm2022/primeng-icons-filter.mjs.map +1 -1
  158. package/fesm2022/primeng-icons-filterslash.mjs +26 -26
  159. package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
  160. package/fesm2022/primeng-icons-home.mjs +26 -26
  161. package/fesm2022/primeng-icons-home.mjs.map +1 -1
  162. package/fesm2022/primeng-icons-infocircle.mjs +26 -26
  163. package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
  164. package/fesm2022/primeng-icons-minus.mjs +17 -19
  165. package/fesm2022/primeng-icons-minus.mjs.map +1 -1
  166. package/fesm2022/primeng-icons-pencil.mjs +24 -26
  167. package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
  168. package/fesm2022/primeng-icons-plus.mjs +24 -26
  169. package/fesm2022/primeng-icons-plus.mjs.map +1 -1
  170. package/fesm2022/primeng-icons-refresh.mjs +26 -26
  171. package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
  172. package/fesm2022/primeng-icons-search.mjs +26 -26
  173. package/fesm2022/primeng-icons-search.mjs.map +1 -1
  174. package/fesm2022/primeng-icons-searchminus.mjs +26 -26
  175. package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
  176. package/fesm2022/primeng-icons-searchplus.mjs +26 -26
  177. package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
  178. package/fesm2022/primeng-icons-sortalt.mjs +30 -26
  179. package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
  180. package/fesm2022/primeng-icons-sortamountdown.mjs +24 -26
  181. package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
  182. package/fesm2022/primeng-icons-sortamountupalt.mjs +24 -26
  183. package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
  184. package/fesm2022/primeng-icons-spinner.mjs +24 -26
  185. package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
  186. package/fesm2022/primeng-icons-star.mjs +24 -26
  187. package/fesm2022/primeng-icons-star.mjs.map +1 -1
  188. package/fesm2022/primeng-icons-starfill.mjs +24 -26
  189. package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
  190. package/fesm2022/primeng-icons-thlarge.mjs +26 -26
  191. package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
  192. package/fesm2022/primeng-icons-times.mjs +17 -19
  193. package/fesm2022/primeng-icons-times.mjs.map +1 -1
  194. package/fesm2022/primeng-icons-timescircle.mjs +26 -26
  195. package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
  196. package/fesm2022/primeng-icons-trash.mjs +26 -26
  197. package/fesm2022/primeng-icons-trash.mjs.map +1 -1
  198. package/fesm2022/primeng-icons-undo.mjs +26 -26
  199. package/fesm2022/primeng-icons-undo.mjs.map +1 -1
  200. package/fesm2022/primeng-icons-upload.mjs +26 -26
  201. package/fesm2022/primeng-icons-upload.mjs.map +1 -1
  202. package/fesm2022/primeng-icons-windowmaximize.mjs +26 -26
  203. package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
  204. package/fesm2022/primeng-icons-windowminimize.mjs +26 -26
  205. package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
  206. package/fesm2022/primeng-iftalabel.mjs +32 -38
  207. package/fesm2022/primeng-iftalabel.mjs.map +1 -1
  208. package/fesm2022/primeng-image.mjs +189 -370
  209. package/fesm2022/primeng-image.mjs.map +1 -1
  210. package/fesm2022/primeng-imagecompare.mjs +57 -86
  211. package/fesm2022/primeng-imagecompare.mjs.map +1 -1
  212. package/fesm2022/primeng-inplace.mjs +108 -206
  213. package/fesm2022/primeng-inplace.mjs.map +1 -1
  214. package/fesm2022/primeng-inputgroup.mjs +40 -50
  215. package/fesm2022/primeng-inputgroup.mjs.map +1 -1
  216. package/fesm2022/primeng-inputgroupaddon.mjs +40 -51
  217. package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
  218. package/fesm2022/primeng-inputicon.mjs +39 -48
  219. package/fesm2022/primeng-inputicon.mjs.map +1 -1
  220. package/fesm2022/primeng-inputmask.mjs +157 -182
  221. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  222. package/fesm2022/primeng-inputnumber.mjs +303 -420
  223. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  224. package/fesm2022/primeng-inputotp.mjs +99 -123
  225. package/fesm2022/primeng-inputotp.mjs.map +1 -1
  226. package/fesm2022/primeng-inputswitch.mjs +87 -92
  227. package/fesm2022/primeng-inputswitch.mjs.map +1 -1
  228. package/fesm2022/primeng-inputtext.mjs +56 -57
  229. package/fesm2022/primeng-inputtext.mjs.map +1 -1
  230. package/fesm2022/primeng-inputtextarea.mjs +51 -56
  231. package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
  232. package/fesm2022/primeng-keyfilter.mjs +44 -47
  233. package/fesm2022/primeng-keyfilter.mjs.map +1 -1
  234. package/fesm2022/primeng-knob.mjs +105 -111
  235. package/fesm2022/primeng-knob.mjs.map +1 -1
  236. package/fesm2022/primeng-listbox.mjs +511 -791
  237. package/fesm2022/primeng-listbox.mjs.map +1 -1
  238. package/fesm2022/primeng-megamenu.mjs +377 -611
  239. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  240. package/fesm2022/primeng-menu.mjs +291 -473
  241. package/fesm2022/primeng-menu.mjs.map +1 -1
  242. package/fesm2022/primeng-menubar.mjs +357 -549
  243. package/fesm2022/primeng-menubar.mjs.map +1 -1
  244. package/fesm2022/primeng-message.mjs +160 -244
  245. package/fesm2022/primeng-message.mjs.map +1 -1
  246. package/fesm2022/primeng-messages.mjs +162 -278
  247. package/fesm2022/primeng-messages.mjs.map +1 -1
  248. package/fesm2022/primeng-metergroup.mjs +135 -264
  249. package/fesm2022/primeng-metergroup.mjs.map +1 -1
  250. package/fesm2022/primeng-multiselect.mjs +660 -1135
  251. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  252. package/fesm2022/primeng-orderlist.mjs +228 -330
  253. package/fesm2022/primeng-orderlist.mjs.map +1 -1
  254. package/fesm2022/primeng-organizationchart.mjs +161 -311
  255. package/fesm2022/primeng-organizationchart.mjs.map +1 -1
  256. package/fesm2022/primeng-overlay.mjs +135 -147
  257. package/fesm2022/primeng-overlay.mjs.map +1 -1
  258. package/fesm2022/primeng-overlaybadge.mjs +50 -58
  259. package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
  260. package/fesm2022/primeng-overlaypanel.mjs +134 -154
  261. package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
  262. package/fesm2022/primeng-paginator.mjs +212 -447
  263. package/fesm2022/primeng-paginator.mjs.map +1 -1
  264. package/fesm2022/primeng-panel.mjs +219 -317
  265. package/fesm2022/primeng-panel.mjs.map +1 -1
  266. package/fesm2022/primeng-panelmenu.mjs +439 -783
  267. package/fesm2022/primeng-panelmenu.mjs.map +1 -1
  268. package/fesm2022/primeng-password.mjs +271 -410
  269. package/fesm2022/primeng-password.mjs.map +1 -1
  270. package/fesm2022/primeng-picklist.mjs +564 -856
  271. package/fesm2022/primeng-picklist.mjs.map +1 -1
  272. package/fesm2022/primeng-popover.mjs +129 -148
  273. package/fesm2022/primeng-popover.mjs.map +1 -1
  274. package/fesm2022/primeng-progressbar.mjs +81 -121
  275. package/fesm2022/primeng-progressbar.mjs.map +1 -1
  276. package/fesm2022/primeng-progressspinner.mjs +48 -58
  277. package/fesm2022/primeng-progressspinner.mjs.map +1 -1
  278. package/fesm2022/primeng-radiobutton.mjs +117 -108
  279. package/fesm2022/primeng-radiobutton.mjs.map +1 -1
  280. package/fesm2022/primeng-rating.mjs +134 -218
  281. package/fesm2022/primeng-rating.mjs.map +1 -1
  282. package/fesm2022/primeng-ripple.mjs +28 -29
  283. package/fesm2022/primeng-ripple.mjs.map +1 -1
  284. package/fesm2022/primeng-scroller.mjs +167 -295
  285. package/fesm2022/primeng-scroller.mjs.map +1 -1
  286. package/fesm2022/primeng-scrollpanel.mjs +96 -116
  287. package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
  288. package/fesm2022/primeng-scrolltop.mjs +106 -150
  289. package/fesm2022/primeng-scrolltop.mjs.map +1 -1
  290. package/fesm2022/primeng-select.mjs +581 -957
  291. package/fesm2022/primeng-select.mjs.map +1 -1
  292. package/fesm2022/primeng-selectbutton.mjs +106 -133
  293. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  294. package/fesm2022/primeng-sidebar.mjs +151 -239
  295. package/fesm2022/primeng-sidebar.mjs.map +1 -1
  296. package/fesm2022/primeng-skeleton.mjs +46 -54
  297. package/fesm2022/primeng-skeleton.mjs.map +1 -1
  298. package/fesm2022/primeng-slider.mjs +186 -182
  299. package/fesm2022/primeng-slider.mjs.map +1 -1
  300. package/fesm2022/primeng-speeddial.mjs +192 -254
  301. package/fesm2022/primeng-speeddial.mjs.map +1 -1
  302. package/fesm2022/primeng-splitbutton.mjs +211 -231
  303. package/fesm2022/primeng-splitbutton.mjs.map +1 -1
  304. package/fesm2022/primeng-splitter.mjs +126 -159
  305. package/fesm2022/primeng-splitter.mjs.map +1 -1
  306. package/fesm2022/primeng-stepper.mjs +235 -341
  307. package/fesm2022/primeng-stepper.mjs.map +1 -1
  308. package/fesm2022/primeng-steps.mjs +117 -170
  309. package/fesm2022/primeng-steps.mjs.map +1 -1
  310. package/fesm2022/primeng-styleclass.mjs +50 -53
  311. package/fesm2022/primeng-styleclass.mjs.map +1 -1
  312. package/fesm2022/primeng-table.mjs +1869 -2628
  313. package/fesm2022/primeng-table.mjs.map +1 -1
  314. package/fesm2022/primeng-tabmenu.mjs +173 -319
  315. package/fesm2022/primeng-tabmenu.mjs.map +1 -1
  316. package/fesm2022/primeng-tabs.mjs +193 -308
  317. package/fesm2022/primeng-tabs.mjs.map +1 -1
  318. package/fesm2022/primeng-tabview.mjs +263 -435
  319. package/fesm2022/primeng-tabview.mjs.map +1 -1
  320. package/fesm2022/primeng-tag.mjs +63 -110
  321. package/fesm2022/primeng-tag.mjs.map +1 -1
  322. package/fesm2022/primeng-terminal.mjs +60 -104
  323. package/fesm2022/primeng-terminal.mjs.map +1 -1
  324. package/fesm2022/primeng-textarea.mjs +59 -64
  325. package/fesm2022/primeng-textarea.mjs.map +1 -1
  326. package/fesm2022/primeng-tieredmenu.mjs +338 -457
  327. package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
  328. package/fesm2022/primeng-timeline.mjs +90 -156
  329. package/fesm2022/primeng-timeline.mjs.map +1 -1
  330. package/fesm2022/primeng-toast.mjs +260 -365
  331. package/fesm2022/primeng-toast.mjs.map +1 -1
  332. package/fesm2022/primeng-togglebutton.mjs +117 -150
  333. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  334. package/fesm2022/primeng-toggleswitch.mjs +98 -121
  335. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  336. package/fesm2022/primeng-toolbar.mjs +62 -121
  337. package/fesm2022/primeng-toolbar.mjs.map +1 -1
  338. package/fesm2022/primeng-tooltip.mjs +74 -75
  339. package/fesm2022/primeng-tooltip.mjs.map +1 -1
  340. package/fesm2022/primeng-tree.mjs +455 -729
  341. package/fesm2022/primeng-tree.mjs.map +1 -1
  342. package/fesm2022/primeng-treeselect.mjs +344 -533
  343. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  344. package/fesm2022/primeng-treetable.mjs +1027 -1584
  345. package/fesm2022/primeng-treetable.mjs.map +1 -1
  346. package/fesm2022/primeng-usestyle.mjs +6 -6
  347. package/fesm2022/primeng-usestyle.mjs.map +1 -1
  348. package/fesm2022/primeng-utils.mjs +3 -1
  349. package/fesm2022/primeng-utils.mjs.map +1 -1
  350. package/listbox/listbox.d.ts +17 -3
  351. package/message/message.d.ts +1 -0
  352. package/overlaybadge/overlaybadge.d.ts +1 -1
  353. package/package.json +189 -190
  354. package/password/password.d.ts +8 -1
  355. package/password/style/passwordstyle.d.ts +1 -0
  356. package/picklist/picklist.d.ts +11 -1
  357. package/stepper/stepper.d.ts +2 -1
  358. package/table/table.d.ts +1 -1
  359. package/table/table.interface.d.ts +2 -2
  360. package/tabs/tablist.d.ts +1 -1
  361. package/toast/toast.d.ts +1 -1
  362. package/tree/tree.d.ts +10 -2
  363. package/tree/tree.interface.d.ts +8 -0
  364. package/utils/zindexutils.d.ts +2 -0
@@ -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';
@@ -49,9 +49,6 @@ const theme = ({ dt }) => `
49
49
 
50
50
  .p-fileupload-content .p-progressbar {
51
51
  width: 100%;
52
- position: absolute;
53
- top: 0;
54
- left: 0;
55
52
  height: ${dt('fileupload.progressbar.height')};
56
53
  }
57
54
 
@@ -125,12 +122,12 @@ class FileUploadStyle extends BaseStyle {
125
122
  name = 'fileupload';
126
123
  theme = theme;
127
124
  classes = classes;
128
- static ɵfac = /*@__PURE__*/ (() => { let ɵFileUploadStyle_BaseFactory; return function FileUploadStyle_Factory(__ngFactoryType__) { return (ɵFileUploadStyle_BaseFactory || (ɵFileUploadStyle_BaseFactory = i0.ɵɵgetInheritedFactory(FileUploadStyle)))(__ngFactoryType__ || FileUploadStyle); }; })();
129
- 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 });
130
127
  }
131
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileUploadStyle, [{
132
- type: Injectable
133
- }], null, null); })();
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadStyle, decorators: [{
129
+ type: Injectable
130
+ }] });
134
131
  /**
135
132
  *
136
133
  * FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
@@ -204,474 +201,6 @@ var FileUploadClasses;
204
201
  FileUploadClasses["pcFileRemoveButton"] = "p-fileupload-file-remove-button";
205
202
  })(FileUploadClasses || (FileUploadClasses = {}));
206
203
 
207
- const _c0 = ["file"];
208
- const _c1 = ["header"];
209
- const _c2 = ["content"];
210
- const _c3 = ["toolbar"];
211
- const _c4 = ["chooseicon"];
212
- const _c5 = ["filelabel"];
213
- const _c6 = ["uploadicon"];
214
- const _c7 = ["cancelicon"];
215
- const _c8 = ["empty"];
216
- const _c9 = ["advancedfileinput"];
217
- const _c10 = ["basicfileinput"];
218
- const _c11 = (a0, a1, a2, a3, a4) => ({ $implicit: a0, uploadedFiles: a1, chooseCallback: a2, clearCallback: a3, uploadCallback: a4 });
219
- 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 });
220
- const _c13 = a0 => ({ $implicit: a0 });
221
- function FileUpload_div_0_ng_container_4_span_4_Template(rf, ctx) { if (rf & 1) {
222
- i0.ɵɵelement(0, "span");
223
- } if (rf & 2) {
224
- const ctx_r1 = i0.ɵɵnextContext(3);
225
- i0.ɵɵclassMap(ctx_r1.chooseIcon);
226
- i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
227
- } }
228
- function FileUpload_div_0_ng_container_4_ng_container_5_PlusIcon_1_Template(rf, ctx) { if (rf & 1) {
229
- i0.ɵɵelement(0, "PlusIcon");
230
- } if (rf & 2) {
231
- i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
232
- } }
233
- function FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_ng_template_0_Template(rf, ctx) { }
234
- function FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_Template(rf, ctx) { if (rf & 1) {
235
- i0.ɵɵtemplate(0, FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
236
- } }
237
- function FileUpload_div_0_ng_container_4_ng_container_5_span_2_Template(rf, ctx) { if (rf & 1) {
238
- i0.ɵɵelementStart(0, "span");
239
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_Template, 1, 0, null, 11);
240
- i0.ɵɵelementEnd();
241
- } if (rf & 2) {
242
- const ctx_r1 = i0.ɵɵnextContext(4);
243
- i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
244
- i0.ɵɵadvance();
245
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
246
- } }
247
- function FileUpload_div_0_ng_container_4_ng_container_5_Template(rf, ctx) { if (rf & 1) {
248
- i0.ɵɵelementContainerStart(0);
249
- 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);
250
- i0.ɵɵelementContainerEnd();
251
- } if (rf & 2) {
252
- const ctx_r1 = i0.ɵɵnextContext(3);
253
- i0.ɵɵadvance();
254
- i0.ɵɵproperty("ngIf", !ctx_r1.chooseIconTemplate && !ctx_r1._chooseIconTemplate);
255
- i0.ɵɵadvance();
256
- i0.ɵɵproperty("ngIf", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
257
- } }
258
- function FileUpload_div_0_ng_container_4_p_button_6_span_1_Template(rf, ctx) { if (rf & 1) {
259
- i0.ɵɵelement(0, "span", 21);
260
- } if (rf & 2) {
261
- const ctx_r1 = i0.ɵɵnextContext(4);
262
- i0.ɵɵproperty("ngClass", ctx_r1.uploadIcon);
263
- i0.ɵɵattribute("aria-hidden", true);
264
- } }
265
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_UploadIcon_1_Template(rf, ctx) { if (rf & 1) {
266
- i0.ɵɵelement(0, "UploadIcon");
267
- } }
268
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) { }
269
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_Template(rf, ctx) { if (rf & 1) {
270
- 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");
271
- } }
272
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
273
- i0.ɵɵelementStart(0, "span");
274
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_Template, 1, 0, null, 11);
275
- i0.ɵɵelementEnd();
276
- } if (rf & 2) {
277
- const ctx_r1 = i0.ɵɵnextContext(5);
278
- i0.ɵɵattribute("aria-hidden", true);
279
- i0.ɵɵadvance();
280
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.uploadIconTemplate || ctx_r1._uploadIconTemplate);
281
- } }
282
- function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
283
- i0.ɵɵelementContainerStart(0);
284
- 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);
285
- i0.ɵɵelementContainerEnd();
286
- } if (rf & 2) {
287
- const ctx_r1 = i0.ɵɵnextContext(4);
288
- i0.ɵɵadvance();
289
- i0.ɵɵproperty("ngIf", !ctx_r1.uploadIconTemplate && !ctx_r1._uploadIconTemplate);
290
- i0.ɵɵadvance();
291
- i0.ɵɵproperty("ngIf", ctx_r1.uploadIconTemplate || ctx_r1._uploadIconTemplate);
292
- } }
293
- function FileUpload_div_0_ng_container_4_p_button_6_Template(rf, ctx) { if (rf & 1) {
294
- const _r4 = i0.ɵɵgetCurrentView();
295
- i0.ɵɵelementStart(0, "p-button", 19);
296
- 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()); });
297
- 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);
298
- i0.ɵɵelementEnd();
299
- } if (rf & 2) {
300
- const ctx_r1 = i0.ɵɵnextContext(3);
301
- 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);
302
- i0.ɵɵadvance();
303
- i0.ɵɵproperty("ngIf", ctx_r1.uploadIcon);
304
- i0.ɵɵadvance();
305
- i0.ɵɵproperty("ngIf", !ctx_r1.uploadIcon);
306
- } }
307
- function FileUpload_div_0_ng_container_4_p_button_7_span_1_Template(rf, ctx) { if (rf & 1) {
308
- i0.ɵɵelement(0, "span", 21);
309
- } if (rf & 2) {
310
- const ctx_r1 = i0.ɵɵnextContext(4);
311
- i0.ɵɵproperty("ngClass", ctx_r1.cancelIcon);
312
- } }
313
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
314
- i0.ɵɵelement(0, "TimesIcon");
315
- } if (rf & 2) {
316
- i0.ɵɵattribute("aria-hidden", true);
317
- } }
318
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) { }
319
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_Template(rf, ctx) { if (rf & 1) {
320
- 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");
321
- } }
322
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
323
- i0.ɵɵelementStart(0, "span");
324
- i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_Template, 1, 0, null, 11);
325
- i0.ɵɵelementEnd();
326
- } if (rf & 2) {
327
- const ctx_r1 = i0.ɵɵnextContext(5);
328
- i0.ɵɵattribute("aria-hidden", true);
329
- i0.ɵɵadvance();
330
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
331
- } }
332
- function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_Template(rf, ctx) { if (rf & 1) {
333
- i0.ɵɵelementContainerStart(0);
334
- 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);
335
- i0.ɵɵelementContainerEnd();
336
- } if (rf & 2) {
337
- const ctx_r1 = i0.ɵɵnextContext(4);
338
- i0.ɵɵadvance();
339
- i0.ɵɵproperty("ngIf", !ctx_r1.cancelIconTemplate && !ctx_r1._cancelIconTemplate);
340
- i0.ɵɵadvance();
341
- i0.ɵɵproperty("ngIf", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
342
- } }
343
- function FileUpload_div_0_ng_container_4_p_button_7_Template(rf, ctx) { if (rf & 1) {
344
- const _r5 = i0.ɵɵgetCurrentView();
345
- i0.ɵɵelementStart(0, "p-button", 19);
346
- 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()); });
347
- 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);
348
- i0.ɵɵelementEnd();
349
- } if (rf & 2) {
350
- const ctx_r1 = i0.ɵɵnextContext(3);
351
- 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);
352
- i0.ɵɵadvance();
353
- i0.ɵɵproperty("ngIf", ctx_r1.cancelIcon);
354
- i0.ɵɵadvance();
355
- i0.ɵɵproperty("ngIf", !ctx_r1.cancelIcon);
356
- } }
357
- function FileUpload_div_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
358
- const _r3 = i0.ɵɵgetCurrentView();
359
- i0.ɵɵelementContainerStart(0);
360
- i0.ɵɵelementStart(1, "p-button", 16);
361
- 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()); });
362
- i0.ɵɵelementStart(2, "input", 7, 0);
363
- 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)); });
364
- i0.ɵɵelementEnd();
365
- 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);
366
- i0.ɵɵelementEnd();
367
- 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);
368
- i0.ɵɵelementContainerEnd();
369
- } if (rf & 2) {
370
- const ctx_r1 = i0.ɵɵnextContext(2);
371
- i0.ɵɵadvance();
372
- 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);
373
- i0.ɵɵattribute("data-pc-section", "choosebutton");
374
- i0.ɵɵadvance();
375
- i0.ɵɵproperty("multiple", ctx_r1.multiple)("accept", ctx_r1.accept)("disabled", ctx_r1.disabled || ctx_r1.isChooseDisabled());
376
- i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("title", "")("data-pc-section", "input");
377
- i0.ɵɵadvance(2);
378
- i0.ɵɵproperty("ngIf", ctx_r1.chooseIcon);
379
- i0.ɵɵadvance();
380
- i0.ɵɵproperty("ngIf", !ctx_r1.chooseIcon);
381
- i0.ɵɵadvance();
382
- i0.ɵɵproperty("ngIf", !ctx_r1.auto && ctx_r1.showUploadButton);
383
- i0.ɵɵadvance();
384
- i0.ɵɵproperty("ngIf", !ctx_r1.auto && ctx_r1.showCancelButton);
385
- } }
386
- function FileUpload_div_0_ng_container_5_Template(rf, ctx) { if (rf & 1) {
387
- i0.ɵɵelementContainer(0);
388
- } }
389
- function FileUpload_div_0_ng_container_6_Template(rf, ctx) { if (rf & 1) {
390
- i0.ɵɵelementContainer(0);
391
- } }
392
- function FileUpload_div_0_p_progressbar_9_Template(rf, ctx) { if (rf & 1) {
393
- i0.ɵɵelement(0, "p-progressbar", 22);
394
- } if (rf & 2) {
395
- const ctx_r1 = i0.ɵɵnextContext(2);
396
- i0.ɵɵproperty("value", ctx_r1.progress)("showValue", false);
397
- } }
398
- function FileUpload_div_0_For_11_Template(rf, ctx) { if (rf & 1) {
399
- i0.ɵɵelement(0, "p-message", 14);
400
- } if (rf & 2) {
401
- const message_r6 = ctx.$implicit;
402
- i0.ɵɵproperty("severity", message_r6.severity)("text", message_r6.text);
403
- } }
404
- function FileUpload_div_0_div_12_Conditional_1_div_0_img_1_Template(rf, ctx) { if (rf & 1) {
405
- const _r8 = i0.ɵɵgetCurrentView();
406
- i0.ɵɵelementStart(0, "img", 33);
407
- 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)); });
408
- i0.ɵɵelementEnd();
409
- } if (rf & 2) {
410
- const file_r9 = i0.ɵɵnextContext().$implicit;
411
- const ctx_r1 = i0.ɵɵnextContext(4);
412
- i0.ɵɵproperty("src", file_r9.objectURL, i0.ɵɵsanitizeUrl)("width", ctx_r1.previewWidth);
413
- } }
414
- function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_TimesIcon_0_Template(rf, ctx) { if (rf & 1) {
415
- i0.ɵɵelement(0, "TimesIcon");
416
- } }
417
- function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_ng_template_0_Template(rf, ctx) { }
418
- function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_Template(rf, ctx) { if (rf & 1) {
419
- i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_ng_template_0_Template, 0, 0, "ng-template");
420
- } }
421
- function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_Template(rf, ctx) { if (rf & 1) {
422
- 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);
423
- } if (rf & 2) {
424
- const ctx_r1 = i0.ɵɵnextContext(5);
425
- i0.ɵɵproperty("ngIf", !ctx_r1.cancelIconTemplate && !ctx_r1._cancelIconTemplate);
426
- i0.ɵɵadvance();
427
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
428
- } }
429
- function FileUpload_div_0_div_12_Conditional_1_div_0_Template(rf, ctx) { if (rf & 1) {
430
- const _r7 = i0.ɵɵgetCurrentView();
431
- i0.ɵɵelementStart(0, "div", 24);
432
- i0.ɵɵtemplate(1, FileUpload_div_0_div_12_Conditional_1_div_0_img_1_Template, 1, 2, "img", 27);
433
- i0.ɵɵelementStart(2, "div", 28)(3, "div", 29);
434
- i0.ɵɵtext(4);
435
- i0.ɵɵelementEnd();
436
- i0.ɵɵelementStart(5, "span", 30);
437
- i0.ɵɵtext(6);
438
- i0.ɵɵelementEnd()();
439
- i0.ɵɵelementStart(7, "div", 31)(8, "p-button", 32);
440
- 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)); });
441
- i0.ɵɵtemplate(9, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_Template, 2, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
442
- i0.ɵɵelementEnd()()();
443
- } if (rf & 2) {
444
- const file_r9 = ctx.$implicit;
445
- const ctx_r1 = i0.ɵɵnextContext(4);
446
- i0.ɵɵadvance();
447
- i0.ɵɵproperty("ngIf", ctx_r1.isImage(file_r9));
448
- i0.ɵɵadvance(3);
449
- i0.ɵɵtextInterpolate(file_r9.name);
450
- i0.ɵɵadvance(2);
451
- i0.ɵɵtextInterpolate(ctx_r1.formatSize(file_r9.size));
452
- i0.ɵɵadvance(2);
453
- i0.ɵɵproperty("disabled", ctx_r1.uploading)("styleClass", "p-fileupload-file-remove-button " + ctx_r1.removeStyleClass);
454
- } }
455
- function FileUpload_div_0_div_12_Conditional_1_Template(rf, ctx) { if (rf & 1) {
456
- i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_1_div_0_Template, 11, 5, "div", 26);
457
- } if (rf & 2) {
458
- const ctx_r1 = i0.ɵɵnextContext(3);
459
- i0.ɵɵproperty("ngForOf", ctx_r1.files);
460
- } }
461
- function FileUpload_div_0_div_12_Conditional_2_ng_template_0_Template(rf, ctx) { }
462
- function FileUpload_div_0_div_12_Conditional_2_Template(rf, ctx) { if (rf & 1) {
463
- i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_2_ng_template_0_Template, 0, 0, "ng-template", 25);
464
- } if (rf & 2) {
465
- const ctx_r1 = i0.ɵɵnextContext(3);
466
- i0.ɵɵproperty("ngForOf", ctx_r1.files)("ngForTemplate", ctx_r1.fileTemplate || ctx_r1._fileTemplate);
467
- } }
468
- function FileUpload_div_0_div_12_Template(rf, ctx) { if (rf & 1) {
469
- i0.ɵɵelementStart(0, "div", 23);
470
- 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);
471
- i0.ɵɵelementEnd();
472
- } if (rf & 2) {
473
- const ctx_r1 = i0.ɵɵnextContext(2);
474
- i0.ɵɵadvance();
475
- i0.ɵɵconditional(!ctx_r1.fileTemplate && !ctx_r1._fileTemplate ? 1 : -1);
476
- i0.ɵɵadvance();
477
- i0.ɵɵconditional(ctx_r1.fileTemplate || ctx_r1._fileTemplate ? 2 : -1);
478
- } }
479
- function FileUpload_div_0_ng_container_13_Template(rf, ctx) { if (rf & 1) {
480
- i0.ɵɵelementContainer(0);
481
- } }
482
- function FileUpload_div_0_Conditional_14_ng_container_0_Template(rf, ctx) { if (rf & 1) {
483
- i0.ɵɵelementContainer(0);
484
- } }
485
- function FileUpload_div_0_Conditional_14_Template(rf, ctx) { if (rf & 1) {
486
- i0.ɵɵtemplate(0, FileUpload_div_0_Conditional_14_ng_container_0_Template, 1, 0, "ng-container", 11);
487
- } if (rf & 2) {
488
- const ctx_r1 = i0.ɵɵnextContext(2);
489
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.emptyTemplate || ctx_r1._emptyTemplate);
490
- } }
491
- function FileUpload_div_0_Template(rf, ctx) { if (rf & 1) {
492
- const _r1 = i0.ɵɵgetCurrentView();
493
- i0.ɵɵelementStart(0, "div", 6)(1, "input", 7, 0);
494
- 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)); });
495
- i0.ɵɵelementEnd();
496
- i0.ɵɵelementStart(3, "div", 8);
497
- 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);
498
- i0.ɵɵelementEnd();
499
- i0.ɵɵelementStart(7, "div", 12, 1);
500
- 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)); });
501
- i0.ɵɵtemplate(9, FileUpload_div_0_p_progressbar_9_Template, 1, 2, "p-progressbar", 13);
502
- i0.ɵɵrepeaterCreate(10, FileUpload_div_0_For_11_Template, 1, 2, "p-message", 14, i0.ɵɵrepeaterTrackByIdentity);
503
- 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");
504
- i0.ɵɵelementEnd()();
505
- } if (rf & 2) {
506
- const ctx_r1 = i0.ɵɵnextContext();
507
- i0.ɵɵclassMap(ctx_r1.styleClass);
508
- i0.ɵɵproperty("ngClass", "p-fileupload p-fileupload-advanced p-component")("ngStyle", ctx_r1.style);
509
- i0.ɵɵattribute("data-pc-name", "fileupload")("data-pc-section", "root");
510
- i0.ɵɵadvance();
511
- i0.ɵɵstyleProp("display", "none");
512
- i0.ɵɵproperty("multiple", ctx_r1.multiple)("accept", ctx_r1.accept)("disabled", ctx_r1.disabled || ctx_r1.isChooseDisabled());
513
- i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("title", "")("data-pc-section", "input");
514
- i0.ɵɵadvance(3);
515
- i0.ɵɵproperty("ngIf", !ctx_r1.headerTemplate && !ctx_r1._headerTemplate);
516
- i0.ɵɵadvance();
517
- 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)));
518
- i0.ɵɵadvance();
519
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.toolbarTemplate || ctx_r1._toolbarTemplate);
520
- i0.ɵɵadvance();
521
- i0.ɵɵattribute("data-pc-section", "content");
522
- i0.ɵɵadvance(2);
523
- i0.ɵɵproperty("ngIf", ctx_r1.hasFiles());
524
- i0.ɵɵadvance();
525
- i0.ɵɵrepeater(ctx_r1.msgs);
526
- i0.ɵɵadvance(2);
527
- i0.ɵɵproperty("ngIf", ctx_r1.hasFiles());
528
- i0.ɵɵadvance();
529
- 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));
530
- i0.ɵɵadvance();
531
- i0.ɵɵconditional((ctx_r1.emptyTemplate || ctx_r1._emptyTemplate) && !ctx_r1.hasFiles() && !ctx_r1.hasUploadedFiles() ? 14 : -1);
532
- } }
533
- function FileUpload_div_1_For_2_Template(rf, ctx) { if (rf & 1) {
534
- i0.ɵɵelement(0, "p-message", 14);
535
- } if (rf & 2) {
536
- const message_r12 = ctx.$implicit;
537
- i0.ɵɵproperty("severity", message_r12.severity)("text", message_r12.text);
538
- } }
539
- function FileUpload_div_1_ng_template_4_Conditional_0_span_0_Template(rf, ctx) { if (rf & 1) {
540
- i0.ɵɵelement(0, "span", 37);
541
- } if (rf & 2) {
542
- const ctx_r1 = i0.ɵɵnextContext(4);
543
- i0.ɵɵproperty("ngClass", ctx_r1.uploadIcon);
544
- } }
545
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_UploadIcon_1_Template(rf, ctx) { if (rf & 1) {
546
- i0.ɵɵelement(0, "UploadIcon", 40);
547
- } if (rf & 2) {
548
- i0.ɵɵproperty("styleClass", "p-button-icon p-button-icon-left");
549
- } }
550
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_ng_template_0_Template(rf, ctx) { }
551
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_Template(rf, ctx) { if (rf & 1) {
552
- 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");
553
- } }
554
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_Template(rf, ctx) { if (rf & 1) {
555
- i0.ɵɵelementStart(0, "span", 41);
556
- i0.ɵɵtemplate(1, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_Template, 1, 0, null, 11);
557
- i0.ɵɵelementEnd();
558
- } if (rf & 2) {
559
- const ctx_r1 = i0.ɵɵnextContext(5);
560
- i0.ɵɵadvance();
561
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1._uploadIconTemplate || ctx_r1.uploadIconTemplate);
562
- } }
563
- function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
564
- i0.ɵɵelementContainerStart(0);
565
- 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);
566
- i0.ɵɵelementContainerEnd();
567
- } if (rf & 2) {
568
- const ctx_r1 = i0.ɵɵnextContext(4);
569
- i0.ɵɵadvance();
570
- i0.ɵɵproperty("ngIf", !ctx_r1.uploadIconTemplate && !ctx_r1._uploadIconTemplate);
571
- i0.ɵɵadvance();
572
- i0.ɵɵproperty("ngIf", ctx_r1._uploadIconTemplate || ctx_r1.uploadIconTemplate);
573
- } }
574
- function FileUpload_div_1_ng_template_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
575
- 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);
576
- } if (rf & 2) {
577
- const ctx_r1 = i0.ɵɵnextContext(3);
578
- i0.ɵɵproperty("ngIf", ctx_r1.uploadIcon);
579
- i0.ɵɵadvance();
580
- i0.ɵɵproperty("ngIf", !ctx_r1.uploadIcon);
581
- } }
582
- function FileUpload_div_1_ng_template_4_Conditional_1_span_0_Template(rf, ctx) { if (rf & 1) {
583
- i0.ɵɵelement(0, "span", 43);
584
- } if (rf & 2) {
585
- const ctx_r1 = i0.ɵɵnextContext(4);
586
- i0.ɵɵproperty("ngClass", ctx_r1.chooseIcon);
587
- } }
588
- function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_PlusIcon_1_Template(rf, ctx) { if (rf & 1) {
589
- i0.ɵɵelement(0, "PlusIcon");
590
- } if (rf & 2) {
591
- i0.ɵɵattribute("data-pc-section", "uploadicon");
592
- } }
593
- function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_ng_template_0_Template(rf, ctx) { }
594
- function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_Template(rf, ctx) { if (rf & 1) {
595
- i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_ng_template_0_Template, 0, 0, "ng-template");
596
- } }
597
- function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
598
- i0.ɵɵelementContainerStart(0);
599
- 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);
600
- i0.ɵɵelementContainerEnd();
601
- } if (rf & 2) {
602
- const ctx_r1 = i0.ɵɵnextContext(4);
603
- i0.ɵɵadvance();
604
- i0.ɵɵproperty("ngIf", !ctx_r1.chooseIconTemplate && !ctx_r1._chooseIconTemplate);
605
- i0.ɵɵadvance();
606
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
607
- } }
608
- function FileUpload_div_1_ng_template_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
609
- 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);
610
- } if (rf & 2) {
611
- const ctx_r1 = i0.ɵɵnextContext(3);
612
- i0.ɵɵproperty("ngIf", ctx_r1.chooseIcon);
613
- i0.ɵɵadvance();
614
- i0.ɵɵproperty("ngIf", !ctx_r1.chooseIcon);
615
- } }
616
- function FileUpload_div_1_ng_template_4_Template(rf, ctx) { if (rf & 1) {
617
- 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);
618
- } if (rf & 2) {
619
- const ctx_r1 = i0.ɵɵnextContext(2);
620
- i0.ɵɵconditional(ctx_r1.hasFiles() && !ctx_r1.auto ? 0 : 1);
621
- } }
622
- function FileUpload_div_1_Conditional_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
623
- i0.ɵɵelementStart(0, "span");
624
- i0.ɵɵtext(1);
625
- i0.ɵɵelementEnd();
626
- } if (rf & 2) {
627
- const ctx_r1 = i0.ɵɵnextContext(3);
628
- i0.ɵɵclassMap(ctx_r1.cx("filelabel"));
629
- i0.ɵɵadvance();
630
- i0.ɵɵtextInterpolate1(" ", ctx_r1.basicFileChosenLabel(), " ");
631
- } }
632
- function FileUpload_div_1_Conditional_8_Conditional_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
633
- i0.ɵɵelementContainer(0);
634
- } }
635
- function FileUpload_div_1_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
636
- i0.ɵɵtemplate(0, FileUpload_div_1_Conditional_8_Conditional_1_ng_container_0_Template, 1, 0, "ng-container", 10);
637
- } if (rf & 2) {
638
- const ctx_r1 = i0.ɵɵnextContext(3);
639
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.fileLabelTemplate || ctx_r1._fileLabelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, ctx_r1.files));
640
- } }
641
- function FileUpload_div_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
642
- 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");
643
- } if (rf & 2) {
644
- const ctx_r1 = i0.ɵɵnextContext(2);
645
- i0.ɵɵconditional(!ctx_r1.fileLabelTemplate && !ctx_r1._fileLabelTemplate ? 0 : 1);
646
- } }
647
- function FileUpload_div_1_Template(rf, ctx) { if (rf & 1) {
648
- const _r11 = i0.ɵɵgetCurrentView();
649
- i0.ɵɵelementStart(0, "div", 21);
650
- i0.ɵɵrepeaterCreate(1, FileUpload_div_1_For_2_Template, 1, 2, "p-message", 14, i0.ɵɵrepeaterTrackByIdentity);
651
- i0.ɵɵelementStart(3, "p-button", 34);
652
- 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)); });
653
- i0.ɵɵtemplate(4, FileUpload_div_1_ng_template_4_Template, 2, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
654
- i0.ɵɵelementStart(6, "input", 35, 3);
655
- 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()); });
656
- i0.ɵɵelementEnd()();
657
- i0.ɵɵtemplate(8, FileUpload_div_1_Conditional_8_Template, 2, 1);
658
- i0.ɵɵelementEnd();
659
- } if (rf & 2) {
660
- const ctx_r1 = i0.ɵɵnextContext();
661
- i0.ɵɵclassMap(ctx_r1.styleClass);
662
- i0.ɵɵproperty("ngClass", "p-fileupload p-fileupload-basic p-component");
663
- i0.ɵɵattribute("data-pc-name", "fileupload");
664
- i0.ɵɵadvance();
665
- i0.ɵɵrepeater(ctx_r1.msgs);
666
- i0.ɵɵadvance(2);
667
- i0.ɵɵstyleMap(ctx_r1.style);
668
- i0.ɵɵproperty("styleClass", "p-fileupload-choose-button " + ctx_r1.chooseStyleClass)("disabled", ctx_r1.disabled)("label", ctx_r1.chooseButtonLabel)("buttonProps", ctx_r1.chooseButtonProps);
669
- i0.ɵɵadvance(3);
670
- i0.ɵɵproperty("accept", ctx_r1.accept)("multiple", ctx_r1.multiple)("disabled", ctx_r1.disabled);
671
- i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("data-pc-section", "input");
672
- i0.ɵɵadvance(2);
673
- i0.ɵɵconditional(!ctx_r1.auto ? 8 : -1);
674
- } }
675
204
  /**
676
205
  * FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
677
206
  * @group Components
@@ -1305,7 +834,7 @@ class FileUpload extends BaseComponent {
1305
834
  }
1306
835
  checkFileLimit(files) {
1307
836
  this.msgs ??= [];
1308
- const hasExistingValidationMessages = this.msgs.length > 0 && this.fileLimit < files.length;
837
+ const hasExistingValidationMessages = this.msgs.length > 0 && this.fileLimit && this.fileLimit < files.length;
1309
838
  if (this.isFileLimitExceeded() || hasExistingValidationMessages) {
1310
839
  const text = `${this.invalidFileLimitMessageSummary.replace('{0}', this.fileLimit.toString())} ${this.invalidFileLimitMessageDetail.replace('{0}', this.fileLimit.toString())}`;
1311
840
  this.msgs.push({
@@ -1431,54 +960,207 @@ class FileUpload extends BaseComponent {
1431
960
  }
1432
961
  super.ngOnDestroy();
1433
962
  }
1434
- static ɵfac = /*@__PURE__*/ (() => { let ɵFileUpload_BaseFactory; return function FileUpload_Factory(__ngFactoryType__) { return (ɵFileUpload_BaseFactory || (ɵFileUpload_BaseFactory = i0.ɵɵgetInheritedFactory(FileUpload)))(__ngFactoryType__ || FileUpload); }; })();
1435
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileUpload, selectors: [["p-fileupload"], ["p-fileUpload"]], contentQueries: function FileUpload_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1436
- i0.ɵɵcontentQuery(dirIndex, _c0, 4);
1437
- i0.ɵɵcontentQuery(dirIndex, _c1, 4);
1438
- i0.ɵɵcontentQuery(dirIndex, _c2, 4);
1439
- i0.ɵɵcontentQuery(dirIndex, _c3, 4);
1440
- i0.ɵɵcontentQuery(dirIndex, _c4, 4);
1441
- i0.ɵɵcontentQuery(dirIndex, _c5, 4);
1442
- i0.ɵɵcontentQuery(dirIndex, _c6, 4);
1443
- i0.ɵɵcontentQuery(dirIndex, _c7, 4);
1444
- i0.ɵɵcontentQuery(dirIndex, _c8, 4);
1445
- i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
1446
- } if (rf & 2) {
1447
- let _t;
1448
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileTemplate = _t.first);
1449
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
1450
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
1451
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.toolbarTemplate = _t.first);
1452
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chooseIconTemplate = _t.first);
1453
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileLabelTemplate = _t.first);
1454
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.uploadIconTemplate = _t.first);
1455
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cancelIconTemplate = _t.first);
1456
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyTemplate = _t.first);
1457
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
1458
- } }, viewQuery: function FileUpload_Query(rf, ctx) { if (rf & 1) {
1459
- i0.ɵɵviewQuery(_c9, 5);
1460
- i0.ɵɵviewQuery(_c10, 5);
1461
- i0.ɵɵviewQuery(_c2, 5);
1462
- } if (rf & 2) {
1463
- let _t;
1464
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.advancedFileInput = _t.first);
1465
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.basicFileInput = _t.first);
1466
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
1467
- } }, 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) {
1468
- i0.ɵɵtemplate(0, FileUpload_div_0_Template, 15, 39, "div", 4)(1, FileUpload_div_1_Template, 9, 16, "div", 5);
1469
- } if (rf & 2) {
1470
- i0.ɵɵproperty("ngIf", ctx.mode === "advanced");
1471
- i0.ɵɵadvance();
1472
- i0.ɵɵproperty("ngIf", ctx.mode === "basic");
1473
- } }, 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 });
1474
1156
  }
1475
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileUpload, [{
1476
- type: Component,
1477
- args: [{
1478
- selector: 'p-fileupload, p-fileUpload',
1479
- standalone: true,
1480
- imports: [CommonModule, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule],
1481
- 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: `
1482
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'">
1483
1165
  <input
1484
1166
  [attr.aria-label]="browseFilesLabel"
@@ -1670,172 +1352,170 @@ class FileUpload extends BaseComponent {
1670
1352
  }
1671
1353
  </div>
1672
1354
  `,
1673
- changeDetection: ChangeDetectionStrategy.OnPush,
1674
- encapsulation: ViewEncapsulation.None,
1675
- providers: [FileUploadStyle]
1676
- }]
1677
- }], null, { name: [{
1678
- type: Input
1679
- }], url: [{
1680
- type: Input
1681
- }], method: [{
1682
- type: Input
1683
- }], multiple: [{
1684
- type: Input,
1685
- args: [{ transform: booleanAttribute }]
1686
- }], accept: [{
1687
- type: Input
1688
- }], disabled: [{
1689
- type: Input,
1690
- args: [{ transform: booleanAttribute }]
1691
- }], auto: [{
1692
- type: Input,
1693
- args: [{ transform: booleanAttribute }]
1694
- }], withCredentials: [{
1695
- type: Input,
1696
- args: [{ transform: booleanAttribute }]
1697
- }], maxFileSize: [{
1698
- type: Input,
1699
- args: [{ transform: numberAttribute }]
1700
- }], invalidFileSizeMessageSummary: [{
1701
- type: Input
1702
- }], invalidFileSizeMessageDetail: [{
1703
- type: Input
1704
- }], invalidFileTypeMessageSummary: [{
1705
- type: Input
1706
- }], invalidFileTypeMessageDetail: [{
1707
- type: Input
1708
- }], invalidFileLimitMessageDetail: [{
1709
- type: Input
1710
- }], invalidFileLimitMessageSummary: [{
1711
- type: Input
1712
- }], style: [{
1713
- type: Input
1714
- }], styleClass: [{
1715
- type: Input
1716
- }], previewWidth: [{
1717
- type: Input,
1718
- args: [{ transform: numberAttribute }]
1719
- }], chooseLabel: [{
1720
- type: Input
1721
- }], uploadLabel: [{
1722
- type: Input
1723
- }], cancelLabel: [{
1724
- type: Input
1725
- }], chooseIcon: [{
1726
- type: Input
1727
- }], uploadIcon: [{
1728
- type: Input
1729
- }], cancelIcon: [{
1730
- type: Input
1731
- }], showUploadButton: [{
1732
- type: Input,
1733
- args: [{ transform: booleanAttribute }]
1734
- }], showCancelButton: [{
1735
- type: Input,
1736
- args: [{ transform: booleanAttribute }]
1737
- }], mode: [{
1738
- type: Input
1739
- }], headers: [{
1740
- type: Input
1741
- }], customUpload: [{
1742
- type: Input,
1743
- args: [{ transform: booleanAttribute }]
1744
- }], fileLimit: [{
1745
- type: Input,
1746
- args: [{ transform: (value) => numberAttribute(value, null) }]
1747
- }], uploadStyleClass: [{
1748
- type: Input
1749
- }], cancelStyleClass: [{
1750
- type: Input
1751
- }], removeStyleClass: [{
1752
- type: Input
1753
- }], chooseStyleClass: [{
1754
- type: Input
1755
- }], chooseButtonProps: [{
1756
- type: Input
1757
- }], uploadButtonProps: [{
1758
- type: Input
1759
- }], cancelButtonProps: [{
1760
- type: Input
1761
- }], onBeforeUpload: [{
1762
- type: Output
1763
- }], onSend: [{
1764
- type: Output
1765
- }], onUpload: [{
1766
- type: Output
1767
- }], onError: [{
1768
- type: Output
1769
- }], onClear: [{
1770
- type: Output
1771
- }], onRemove: [{
1772
- type: Output
1773
- }], onSelect: [{
1774
- type: Output
1775
- }], onProgress: [{
1776
- type: Output
1777
- }], uploadHandler: [{
1778
- type: Output
1779
- }], onImageError: [{
1780
- type: Output
1781
- }], onRemoveUploadedFile: [{
1782
- type: Output
1783
- }], fileTemplate: [{
1784
- type: ContentChild,
1785
- args: ['file', { descendants: false }]
1786
- }], headerTemplate: [{
1787
- type: ContentChild,
1788
- args: ['header', { descendants: false }]
1789
- }], contentTemplate: [{
1790
- type: ContentChild,
1791
- args: ['content', { descendants: false }]
1792
- }], toolbarTemplate: [{
1793
- type: ContentChild,
1794
- args: ['toolbar', { descendants: false }]
1795
- }], chooseIconTemplate: [{
1796
- type: ContentChild,
1797
- args: ['chooseicon', { descendants: false }]
1798
- }], fileLabelTemplate: [{
1799
- type: ContentChild,
1800
- args: ['filelabel', { descendants: false }]
1801
- }], uploadIconTemplate: [{
1802
- type: ContentChild,
1803
- args: ['uploadicon', { descendants: false }]
1804
- }], cancelIconTemplate: [{
1805
- type: ContentChild,
1806
- args: ['cancelicon', { descendants: false }]
1807
- }], emptyTemplate: [{
1808
- type: ContentChild,
1809
- args: ['empty', { descendants: false }]
1810
- }], advancedFileInput: [{
1811
- type: ViewChild,
1812
- args: ['advancedfileinput']
1813
- }], basicFileInput: [{
1814
- type: ViewChild,
1815
- args: ['basicfileinput']
1816
- }], content: [{
1817
- type: ViewChild,
1818
- args: ['content']
1819
- }], files: [{
1820
- type: Input
1821
- }], templates: [{
1822
- type: ContentChildren,
1823
- args: [PrimeTemplate]
1824
- }] }); })();
1825
- (() => { (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
+ }] } });
1826
1507
  class FileUploadModule {
1827
- static ɵfac = function FileUploadModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FileUploadModule)(); };
1828
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FileUploadModule });
1829
- 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] });
1830
1511
  }
1831
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileUploadModule, [{
1832
- type: NgModule,
1833
- args: [{
1834
- imports: [FileUpload, SharedModule],
1835
- exports: [FileUpload, SharedModule]
1836
- }]
1837
- }], null, null); })();
1838
- (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
+ }] });
1839
1519
 
1840
1520
  /**
1841
1521
  * Generated bundle index. Do not edit.