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.
- package/badge/badge.d.ts +2 -2
- package/base/style/basestyle.d.ts +4 -6
- package/config/primeng.d.ts +3 -0
- package/dataview/dataview.interface.d.ts +9 -19
- package/datepicker/datepicker.d.ts +1 -0
- package/datepicker/style/datepickerstyle.d.ts +1 -0
- package/dragdrop/dragdrop.d.ts +3 -2
- package/dynamicdialog/dynamicdialog-config.d.ts +1 -1
- package/dynamicdialog/dynamicdialog.d.ts +2 -1
- package/fesm2022/primeng-accordion.mjs +347 -560
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +37 -40
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +79 -89
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +507 -788
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +26 -27
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +72 -120
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-avatargroup.mjs +44 -54
- package/fesm2022/primeng-avatargroup.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +62 -71
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +14 -8
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +17 -17
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +66 -87
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +175 -386
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +223 -328
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +36 -40
- package/fesm2022/primeng-buttongroup.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +727 -1127
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +89 -193
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +227 -410
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +393 -577
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +57 -63
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +133 -185
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +92 -188
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +142 -167
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +18 -16
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +220 -347
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +161 -251
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +336 -450
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +249 -352
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +751 -1144
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-defer.mjs +25 -31
- package/fesm2022/primeng-defer.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +277 -478
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +68 -77
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +138 -167
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +85 -79
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +172 -269
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +531 -869
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +163 -304
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +118 -156
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +153 -247
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +370 -690
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-floatlabel.mjs +38 -46
- package/fesm2022/primeng-floatlabel.mjs.map +1 -1
- package/fesm2022/primeng-fluid.mjs +33 -41
- package/fesm2022/primeng-fluid.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +23 -24
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +529 -761
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-iconfield.mjs +42 -51
- package/fesm2022/primeng-iconfield.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubledown.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleleft.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleright.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleup.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledown.mjs +17 -19
- package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleleft.mjs +17 -19
- package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleright.mjs +17 -19
- package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleup.mjs +17 -19
- package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdown.mjs +26 -26
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownleft.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownright.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowleft.mjs +26 -26
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowright.mjs +19 -19
- package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowup.mjs +26 -26
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
- package/fesm2022/primeng-icons-ban.mjs +24 -26
- package/fesm2022/primeng-icons-ban.mjs.map +1 -1
- package/fesm2022/primeng-icons-bars.mjs +19 -19
- package/fesm2022/primeng-icons-bars.mjs.map +1 -1
- package/fesm2022/primeng-icons-baseicon.mjs +28 -33
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-icons-blank.mjs +14 -16
- package/fesm2022/primeng-icons-blank.mjs.map +1 -1
- package/fesm2022/primeng-icons-calendar.mjs +17 -19
- package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretleft.mjs +17 -19
- package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretright.mjs +17 -19
- package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
- package/fesm2022/primeng-icons-check.mjs +17 -19
- package/fesm2022/primeng-icons-check.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevrondown.mjs +17 -19
- package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronleft.mjs +17 -19
- package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronright.mjs +17 -19
- package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronup.mjs +17 -19
- package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +32 -26
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/primeng-icons-eye.mjs +19 -19
- package/fesm2022/primeng-icons-eye.mjs.map +1 -1
- package/fesm2022/primeng-icons-eyeslash.mjs +26 -26
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-filter.mjs +24 -26
- package/fesm2022/primeng-icons-filter.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterslash.mjs +26 -26
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-home.mjs +26 -26
- package/fesm2022/primeng-icons-home.mjs.map +1 -1
- package/fesm2022/primeng-icons-infocircle.mjs +26 -26
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-minus.mjs +17 -19
- package/fesm2022/primeng-icons-minus.mjs.map +1 -1
- package/fesm2022/primeng-icons-pencil.mjs +24 -26
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
- package/fesm2022/primeng-icons-plus.mjs +24 -26
- package/fesm2022/primeng-icons-plus.mjs.map +1 -1
- package/fesm2022/primeng-icons-refresh.mjs +26 -26
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
- package/fesm2022/primeng-icons-search.mjs +26 -26
- package/fesm2022/primeng-icons-search.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchminus.mjs +26 -26
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchplus.mjs +26 -26
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortalt.mjs +30 -26
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountdown.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountupalt.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-spinner.mjs +24 -26
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
- package/fesm2022/primeng-icons-star.mjs +24 -26
- package/fesm2022/primeng-icons-star.mjs.map +1 -1
- package/fesm2022/primeng-icons-starfill.mjs +24 -26
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-thlarge.mjs +26 -26
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
- package/fesm2022/primeng-icons-times.mjs +17 -19
- package/fesm2022/primeng-icons-times.mjs.map +1 -1
- package/fesm2022/primeng-icons-timescircle.mjs +26 -26
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-trash.mjs +26 -26
- package/fesm2022/primeng-icons-trash.mjs.map +1 -1
- package/fesm2022/primeng-icons-undo.mjs +26 -26
- package/fesm2022/primeng-icons-undo.mjs.map +1 -1
- package/fesm2022/primeng-icons-upload.mjs +26 -26
- package/fesm2022/primeng-icons-upload.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowmaximize.mjs +26 -26
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowminimize.mjs +26 -26
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +32 -38
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +189 -370
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +57 -86
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +108 -206
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputgroup.mjs +40 -50
- package/fesm2022/primeng-inputgroup.mjs.map +1 -1
- package/fesm2022/primeng-inputgroupaddon.mjs +40 -51
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/primeng-inputicon.mjs +39 -48
- package/fesm2022/primeng-inputicon.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +157 -182
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +303 -420
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +99 -123
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputswitch.mjs +87 -92
- package/fesm2022/primeng-inputswitch.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +56 -57
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +51 -56
- package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +44 -47
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +105 -111
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +511 -791
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +377 -611
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +291 -473
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +357 -549
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +160 -244
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +162 -278
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +135 -264
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +660 -1135
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +228 -330
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +161 -311
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +135 -147
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs +50 -58
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +134 -154
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +212 -447
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +219 -317
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +439 -783
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +271 -410
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +564 -856
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +129 -148
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +81 -121
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-progressspinner.mjs +48 -58
- package/fesm2022/primeng-progressspinner.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +117 -108
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +134 -218
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +28 -29
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +167 -295
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +96 -116
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +106 -150
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +581 -957
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +106 -133
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +151 -239
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-skeleton.mjs +46 -54
- package/fesm2022/primeng-skeleton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +186 -182
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +192 -254
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +211 -231
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +126 -159
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +235 -341
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +117 -170
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +50 -53
- package/fesm2022/primeng-styleclass.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +1869 -2628
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +173 -319
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +193 -308
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +263 -435
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +63 -110
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-terminal.mjs +60 -104
- package/fesm2022/primeng-terminal.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +59 -64
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +338 -457
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +90 -156
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +260 -365
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +117 -150
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +98 -121
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +62 -121
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +74 -75
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +455 -729
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +344 -533
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +1027 -1584
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +6 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/fesm2022/primeng-utils.mjs +3 -1
- package/fesm2022/primeng-utils.mjs.map +1 -1
- package/listbox/listbox.d.ts +17 -3
- package/message/message.d.ts +1 -0
- package/overlaybadge/overlaybadge.d.ts +1 -1
- package/package.json +189 -190
- package/password/password.d.ts +8 -1
- package/password/style/passwordstyle.d.ts +1 -0
- package/picklist/picklist.d.ts +11 -1
- package/stepper/stepper.d.ts +2 -1
- package/table/table.d.ts +1 -1
- package/table/table.interface.d.ts +2 -2
- package/tabs/tablist.d.ts +1 -1
- package/toast/toast.d.ts +1 -1
- package/tree/tree.d.ts +10 -2
- package/tree/tree.interface.d.ts +8 -0
- 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,
|
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,
|
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 =
|
129
|
-
static ɵprov =
|
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
|
-
(
|
132
|
-
|
133
|
-
|
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 =
|
1435
|
-
static ɵcmp =
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
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
|
-
(
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
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
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
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 =
|
1828
|
-
static ɵmod =
|
1829
|
-
static ɵinj =
|
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
|
-
(
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
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.
|