primeng 19.0.6 → 19.0.8
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/accordion/accordion.d.ts +1 -1
- package/basecomponent/basecomponent.d.ts +1 -0
- package/confirmdialog/confirmdialog.d.ts +2 -1
- package/dataview/dataview.interface.d.ts +9 -19
- package/dragdrop/dragdrop.d.ts +3 -2
- package/dynamicdialog/dynamicdialog.d.ts +1 -1
- package/fesm2022/primeng-accordion.mjs +358 -561
- 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 +505 -786
- 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 +70 -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 +6 -6
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +19 -16
- 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 +88 -192
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +218 -405
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +392 -576
- 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 +131 -183
- 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 +12 -12
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +232 -350
- 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 +740 -1136
- 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 +171 -268
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +529 -867
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +152 -301
- 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 -687
- 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 +34 -40
- 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 +156 -181
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +299 -416
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +97 -121
- 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 +51 -57
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +50 -55
- 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 +473 -790
- 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 +289 -460
- 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 +158 -244
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +163 -279
- 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 +687 -1162
- 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 +138 -156
- 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 +268 -408
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +560 -856
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +133 -150
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +83 -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 +115 -106
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +120 -208
- 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 +580 -955
- 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 +227 -342
- 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 +1808 -2584
- 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 +185 -300
- 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 +56 -61
- 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 +251 -358
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +113 -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 +73 -74
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +441 -730
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +342 -531
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +1026 -1583
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +6 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/listbox/listbox.d.ts +2 -2
- package/multiselect/multiselect.d.ts +4 -2
- package/package.json +139 -140
- package/password/password.d.ts +7 -1
- package/picklist/picklist.d.ts +11 -1
@@ -2,10 +2,10 @@ import * as i1 from '@angular/common';
|
|
2
2
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
3
3
|
import { HttpClient, HttpEventType } from '@angular/common/http';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, EventEmitter, inject, NgZone,
|
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';
|
@@ -122,12 +122,12 @@ class FileUploadStyle extends BaseStyle {
|
|
122
122
|
name = 'fileupload';
|
123
123
|
theme = theme;
|
124
124
|
classes = classes;
|
125
|
-
static ɵfac =
|
126
|
-
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 });
|
127
127
|
}
|
128
|
-
(
|
129
|
-
|
130
|
-
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadStyle, decorators: [{
|
129
|
+
type: Injectable
|
130
|
+
}] });
|
131
131
|
/**
|
132
132
|
*
|
133
133
|
* FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
|
@@ -201,474 +201,6 @@ var FileUploadClasses;
|
|
201
201
|
FileUploadClasses["pcFileRemoveButton"] = "p-fileupload-file-remove-button";
|
202
202
|
})(FileUploadClasses || (FileUploadClasses = {}));
|
203
203
|
|
204
|
-
const _c0 = ["file"];
|
205
|
-
const _c1 = ["header"];
|
206
|
-
const _c2 = ["content"];
|
207
|
-
const _c3 = ["toolbar"];
|
208
|
-
const _c4 = ["chooseicon"];
|
209
|
-
const _c5 = ["filelabel"];
|
210
|
-
const _c6 = ["uploadicon"];
|
211
|
-
const _c7 = ["cancelicon"];
|
212
|
-
const _c8 = ["empty"];
|
213
|
-
const _c9 = ["advancedfileinput"];
|
214
|
-
const _c10 = ["basicfileinput"];
|
215
|
-
const _c11 = (a0, a1, a2, a3, a4) => ({ $implicit: a0, uploadedFiles: a1, chooseCallback: a2, clearCallback: a3, uploadCallback: a4 });
|
216
|
-
const _c12 = (a0, a1, a2, a3, a4, a5, a6, a7) => ({ $implicit: a0, uploadedFiles: a1, chooseCallback: a2, clearCallback: a3, removeUploadedFileCallback: a4, removeFileCallback: a5, progress: a6, messages: a7 });
|
217
|
-
const _c13 = a0 => ({ $implicit: a0 });
|
218
|
-
function FileUpload_div_0_ng_container_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
219
|
-
i0.ɵɵelement(0, "span");
|
220
|
-
} if (rf & 2) {
|
221
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
222
|
-
i0.ɵɵclassMap(ctx_r1.chooseIcon);
|
223
|
-
i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
|
224
|
-
} }
|
225
|
-
function FileUpload_div_0_ng_container_4_ng_container_5_PlusIcon_1_Template(rf, ctx) { if (rf & 1) {
|
226
|
-
i0.ɵɵelement(0, "PlusIcon");
|
227
|
-
} if (rf & 2) {
|
228
|
-
i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
|
229
|
-
} }
|
230
|
-
function FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_ng_template_0_Template(rf, ctx) { }
|
231
|
-
function FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_Template(rf, ctx) { if (rf & 1) {
|
232
|
-
i0.ɵɵtemplate(0, FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
233
|
-
} }
|
234
|
-
function FileUpload_div_0_ng_container_4_ng_container_5_span_2_Template(rf, ctx) { if (rf & 1) {
|
235
|
-
i0.ɵɵelementStart(0, "span");
|
236
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_ng_container_5_span_2_1_Template, 1, 0, null, 11);
|
237
|
-
i0.ɵɵelementEnd();
|
238
|
-
} if (rf & 2) {
|
239
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
240
|
-
i0.ɵɵattribute("aria-label", true)("data-pc-section", "chooseicon");
|
241
|
-
i0.ɵɵadvance();
|
242
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
|
243
|
-
} }
|
244
|
-
function FileUpload_div_0_ng_container_4_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
245
|
-
i0.ɵɵelementContainerStart(0);
|
246
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_ng_container_5_PlusIcon_1_Template, 1, 2, "PlusIcon", 9)(2, FileUpload_div_0_ng_container_4_ng_container_5_span_2_Template, 2, 3, "span", 9);
|
247
|
-
i0.ɵɵelementContainerEnd();
|
248
|
-
} if (rf & 2) {
|
249
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
250
|
-
i0.ɵɵadvance();
|
251
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.chooseIconTemplate && !ctx_r1._chooseIconTemplate);
|
252
|
-
i0.ɵɵadvance();
|
253
|
-
i0.ɵɵproperty("ngIf", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
|
254
|
-
} }
|
255
|
-
function FileUpload_div_0_ng_container_4_p_button_6_span_1_Template(rf, ctx) { if (rf & 1) {
|
256
|
-
i0.ɵɵelement(0, "span", 21);
|
257
|
-
} if (rf & 2) {
|
258
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
259
|
-
i0.ɵɵproperty("ngClass", ctx_r1.uploadIcon);
|
260
|
-
i0.ɵɵattribute("aria-hidden", true);
|
261
|
-
} }
|
262
|
-
function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_UploadIcon_1_Template(rf, ctx) { if (rf & 1) {
|
263
|
-
i0.ɵɵelement(0, "UploadIcon");
|
264
|
-
} }
|
265
|
-
function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) { }
|
266
|
-
function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_Template(rf, ctx) { if (rf & 1) {
|
267
|
-
i0.ɵɵtemplate(0, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
268
|
-
} }
|
269
|
-
function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
|
270
|
-
i0.ɵɵelementStart(0, "span");
|
271
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_1_Template, 1, 0, null, 11);
|
272
|
-
i0.ɵɵelementEnd();
|
273
|
-
} if (rf & 2) {
|
274
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
275
|
-
i0.ɵɵattribute("aria-hidden", true);
|
276
|
-
i0.ɵɵadvance();
|
277
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.uploadIconTemplate || ctx_r1._uploadIconTemplate);
|
278
|
-
} }
|
279
|
-
function FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
280
|
-
i0.ɵɵelementContainerStart(0);
|
281
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_UploadIcon_1_Template, 1, 0, "UploadIcon", 9)(2, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_span_2_Template, 2, 2, "span", 9);
|
282
|
-
i0.ɵɵelementContainerEnd();
|
283
|
-
} if (rf & 2) {
|
284
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
285
|
-
i0.ɵɵadvance();
|
286
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.uploadIconTemplate && !ctx_r1._uploadIconTemplate);
|
287
|
-
i0.ɵɵadvance();
|
288
|
-
i0.ɵɵproperty("ngIf", ctx_r1.uploadIconTemplate || ctx_r1._uploadIconTemplate);
|
289
|
-
} }
|
290
|
-
function FileUpload_div_0_ng_container_4_p_button_6_Template(rf, ctx) { if (rf & 1) {
|
291
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
292
|
-
i0.ɵɵelementStart(0, "p-button", 19);
|
293
|
-
i0.ɵɵlistener("onClick", function FileUpload_div_0_ng_container_4_p_button_6_Template_p_button_onClick_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.upload()); });
|
294
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_6_span_1_Template, 1, 2, "span", 20)(2, FileUpload_div_0_ng_container_4_p_button_6_ng_container_2_Template, 3, 2, "ng-container", 9);
|
295
|
-
i0.ɵɵelementEnd();
|
296
|
-
} if (rf & 2) {
|
297
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
298
|
-
i0.ɵɵproperty("label", ctx_r1.uploadButtonLabel)("disabled", !ctx_r1.hasFiles() || ctx_r1.isFileLimitExceeded())("styleClass", "p-fileupload-upload-button " + ctx_r1.uploadStyleClass)("buttonProps", ctx_r1.uploadButtonProps);
|
299
|
-
i0.ɵɵadvance();
|
300
|
-
i0.ɵɵproperty("ngIf", ctx_r1.uploadIcon);
|
301
|
-
i0.ɵɵadvance();
|
302
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.uploadIcon);
|
303
|
-
} }
|
304
|
-
function FileUpload_div_0_ng_container_4_p_button_7_span_1_Template(rf, ctx) { if (rf & 1) {
|
305
|
-
i0.ɵɵelement(0, "span", 21);
|
306
|
-
} if (rf & 2) {
|
307
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
308
|
-
i0.ɵɵproperty("ngClass", ctx_r1.cancelIcon);
|
309
|
-
} }
|
310
|
-
function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
|
311
|
-
i0.ɵɵelement(0, "TimesIcon");
|
312
|
-
} if (rf & 2) {
|
313
|
-
i0.ɵɵattribute("aria-hidden", true);
|
314
|
-
} }
|
315
|
-
function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) { }
|
316
|
-
function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_Template(rf, ctx) { if (rf & 1) {
|
317
|
-
i0.ɵɵtemplate(0, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
318
|
-
} }
|
319
|
-
function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
|
320
|
-
i0.ɵɵelementStart(0, "span");
|
321
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_1_Template, 1, 0, null, 11);
|
322
|
-
i0.ɵɵelementEnd();
|
323
|
-
} if (rf & 2) {
|
324
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
325
|
-
i0.ɵɵattribute("aria-hidden", true);
|
326
|
-
i0.ɵɵadvance();
|
327
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
|
328
|
-
} }
|
329
|
-
function FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
330
|
-
i0.ɵɵelementContainerStart(0);
|
331
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_TimesIcon_1_Template, 1, 1, "TimesIcon", 9)(2, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_span_2_Template, 2, 2, "span", 9);
|
332
|
-
i0.ɵɵelementContainerEnd();
|
333
|
-
} if (rf & 2) {
|
334
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
335
|
-
i0.ɵɵadvance();
|
336
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.cancelIconTemplate && !ctx_r1._cancelIconTemplate);
|
337
|
-
i0.ɵɵadvance();
|
338
|
-
i0.ɵɵproperty("ngIf", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
|
339
|
-
} }
|
340
|
-
function FileUpload_div_0_ng_container_4_p_button_7_Template(rf, ctx) { if (rf & 1) {
|
341
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
342
|
-
i0.ɵɵelementStart(0, "p-button", 19);
|
343
|
-
i0.ɵɵlistener("onClick", function FileUpload_div_0_ng_container_4_p_button_7_Template_p_button_onClick_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.clear()); });
|
344
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_ng_container_4_p_button_7_span_1_Template, 1, 1, "span", 20)(2, FileUpload_div_0_ng_container_4_p_button_7_ng_container_2_Template, 3, 2, "ng-container", 9);
|
345
|
-
i0.ɵɵelementEnd();
|
346
|
-
} if (rf & 2) {
|
347
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
348
|
-
i0.ɵɵproperty("label", ctx_r1.cancelButtonLabel)("disabled", !ctx_r1.hasFiles() || ctx_r1.uploading)("styleClass", "p-fileupload-cancel-button " + ctx_r1.cancelStyleClass)("buttonProps", ctx_r1.cancelButtonProps);
|
349
|
-
i0.ɵɵadvance();
|
350
|
-
i0.ɵɵproperty("ngIf", ctx_r1.cancelIcon);
|
351
|
-
i0.ɵɵadvance();
|
352
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.cancelIcon);
|
353
|
-
} }
|
354
|
-
function FileUpload_div_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
355
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
356
|
-
i0.ɵɵelementContainerStart(0);
|
357
|
-
i0.ɵɵelementStart(1, "p-button", 16);
|
358
|
-
i0.ɵɵlistener("focus", function FileUpload_div_0_ng_container_4_Template_p_button_focus_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFocus()); })("blur", function FileUpload_div_0_ng_container_4_Template_p_button_blur_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onBlur()); })("onClick", function FileUpload_div_0_ng_container_4_Template_p_button_onClick_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.choose()); })("keydown.enter", function FileUpload_div_0_ng_container_4_Template_p_button_keydown_enter_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.choose()); });
|
359
|
-
i0.ɵɵelementStart(2, "input", 7, 0);
|
360
|
-
i0.ɵɵlistener("change", function FileUpload_div_0_ng_container_4_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event)); });
|
361
|
-
i0.ɵɵelementEnd();
|
362
|
-
i0.ɵɵtemplate(4, FileUpload_div_0_ng_container_4_span_4_Template, 1, 4, "span", 17)(5, FileUpload_div_0_ng_container_4_ng_container_5_Template, 3, 2, "ng-container", 9);
|
363
|
-
i0.ɵɵelementEnd();
|
364
|
-
i0.ɵɵtemplate(6, FileUpload_div_0_ng_container_4_p_button_6_Template, 3, 6, "p-button", 18)(7, FileUpload_div_0_ng_container_4_p_button_7_Template, 3, 6, "p-button", 18);
|
365
|
-
i0.ɵɵelementContainerEnd();
|
366
|
-
} if (rf & 2) {
|
367
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
368
|
-
i0.ɵɵadvance();
|
369
|
-
i0.ɵɵproperty("styleClass", "p-fileupload-choose-button " + ctx_r1.chooseStyleClass)("disabled", ctx_r1.disabled || ctx_r1.isChooseDisabled())("label", ctx_r1.chooseButtonLabel)("buttonProps", ctx_r1.chooseButtonProps);
|
370
|
-
i0.ɵɵattribute("data-pc-section", "choosebutton");
|
371
|
-
i0.ɵɵadvance();
|
372
|
-
i0.ɵɵproperty("multiple", ctx_r1.multiple)("accept", ctx_r1.accept)("disabled", ctx_r1.disabled || ctx_r1.isChooseDisabled());
|
373
|
-
i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("title", "")("data-pc-section", "input");
|
374
|
-
i0.ɵɵadvance(2);
|
375
|
-
i0.ɵɵproperty("ngIf", ctx_r1.chooseIcon);
|
376
|
-
i0.ɵɵadvance();
|
377
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.chooseIcon);
|
378
|
-
i0.ɵɵadvance();
|
379
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.auto && ctx_r1.showUploadButton);
|
380
|
-
i0.ɵɵadvance();
|
381
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.auto && ctx_r1.showCancelButton);
|
382
|
-
} }
|
383
|
-
function FileUpload_div_0_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
384
|
-
i0.ɵɵelementContainer(0);
|
385
|
-
} }
|
386
|
-
function FileUpload_div_0_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
387
|
-
i0.ɵɵelementContainer(0);
|
388
|
-
} }
|
389
|
-
function FileUpload_div_0_p_progressbar_9_Template(rf, ctx) { if (rf & 1) {
|
390
|
-
i0.ɵɵelement(0, "p-progressbar", 22);
|
391
|
-
} if (rf & 2) {
|
392
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
393
|
-
i0.ɵɵproperty("value", ctx_r1.progress)("showValue", false);
|
394
|
-
} }
|
395
|
-
function FileUpload_div_0_For_11_Template(rf, ctx) { if (rf & 1) {
|
396
|
-
i0.ɵɵelement(0, "p-message", 14);
|
397
|
-
} if (rf & 2) {
|
398
|
-
const message_r6 = ctx.$implicit;
|
399
|
-
i0.ɵɵproperty("severity", message_r6.severity)("text", message_r6.text);
|
400
|
-
} }
|
401
|
-
function FileUpload_div_0_div_12_Conditional_1_div_0_img_1_Template(rf, ctx) { if (rf & 1) {
|
402
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
403
|
-
i0.ɵɵelementStart(0, "img", 33);
|
404
|
-
i0.ɵɵlistener("error", function FileUpload_div_0_div_12_Conditional_1_div_0_img_1_Template_img_error_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.imageError($event)); });
|
405
|
-
i0.ɵɵelementEnd();
|
406
|
-
} if (rf & 2) {
|
407
|
-
const file_r9 = i0.ɵɵnextContext().$implicit;
|
408
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
409
|
-
i0.ɵɵproperty("src", file_r9.objectURL, i0.ɵɵsanitizeUrl)("width", ctx_r1.previewWidth);
|
410
|
-
} }
|
411
|
-
function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_TimesIcon_0_Template(rf, ctx) { if (rf & 1) {
|
412
|
-
i0.ɵɵelement(0, "TimesIcon");
|
413
|
-
} }
|
414
|
-
function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_ng_template_0_Template(rf, ctx) { }
|
415
|
-
function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_Template(rf, ctx) { if (rf & 1) {
|
416
|
-
i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_ng_template_0_Template, 0, 0, "ng-template");
|
417
|
-
} }
|
418
|
-
function FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
419
|
-
i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_TimesIcon_0_Template, 1, 0, "TimesIcon", 9)(1, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_1_Template, 1, 0, null, 11);
|
420
|
-
} if (rf & 2) {
|
421
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
422
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.cancelIconTemplate && !ctx_r1._cancelIconTemplate);
|
423
|
-
i0.ɵɵadvance();
|
424
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.cancelIconTemplate || ctx_r1._cancelIconTemplate);
|
425
|
-
} }
|
426
|
-
function FileUpload_div_0_div_12_Conditional_1_div_0_Template(rf, ctx) { if (rf & 1) {
|
427
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
428
|
-
i0.ɵɵelementStart(0, "div", 24);
|
429
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_div_12_Conditional_1_div_0_img_1_Template, 1, 2, "img", 27);
|
430
|
-
i0.ɵɵelementStart(2, "div", 28)(3, "div", 29);
|
431
|
-
i0.ɵɵtext(4);
|
432
|
-
i0.ɵɵelementEnd();
|
433
|
-
i0.ɵɵelementStart(5, "span", 30);
|
434
|
-
i0.ɵɵtext(6);
|
435
|
-
i0.ɵɵelementEnd()();
|
436
|
-
i0.ɵɵelementStart(7, "div", 31)(8, "p-button", 32);
|
437
|
-
i0.ɵɵlistener("onClick", function FileUpload_div_0_div_12_Conditional_1_div_0_Template_p_button_onClick_8_listener($event) { const i_r10 = i0.ɵɵrestoreView(_r7).index; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.remove($event, i_r10)); });
|
438
|
-
i0.ɵɵtemplate(9, FileUpload_div_0_div_12_Conditional_1_div_0_ng_template_9_Template, 2, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
439
|
-
i0.ɵɵelementEnd()()();
|
440
|
-
} if (rf & 2) {
|
441
|
-
const file_r9 = ctx.$implicit;
|
442
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
443
|
-
i0.ɵɵadvance();
|
444
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isImage(file_r9));
|
445
|
-
i0.ɵɵadvance(3);
|
446
|
-
i0.ɵɵtextInterpolate(file_r9.name);
|
447
|
-
i0.ɵɵadvance(2);
|
448
|
-
i0.ɵɵtextInterpolate(ctx_r1.formatSize(file_r9.size));
|
449
|
-
i0.ɵɵadvance(2);
|
450
|
-
i0.ɵɵproperty("disabled", ctx_r1.uploading)("styleClass", "p-fileupload-file-remove-button " + ctx_r1.removeStyleClass);
|
451
|
-
} }
|
452
|
-
function FileUpload_div_0_div_12_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
453
|
-
i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_1_div_0_Template, 11, 5, "div", 26);
|
454
|
-
} if (rf & 2) {
|
455
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
456
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.files);
|
457
|
-
} }
|
458
|
-
function FileUpload_div_0_div_12_Conditional_2_ng_template_0_Template(rf, ctx) { }
|
459
|
-
function FileUpload_div_0_div_12_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
460
|
-
i0.ɵɵtemplate(0, FileUpload_div_0_div_12_Conditional_2_ng_template_0_Template, 0, 0, "ng-template", 25);
|
461
|
-
} if (rf & 2) {
|
462
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
463
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.files)("ngForTemplate", ctx_r1.fileTemplate || ctx_r1._fileTemplate);
|
464
|
-
} }
|
465
|
-
function FileUpload_div_0_div_12_Template(rf, ctx) { if (rf & 1) {
|
466
|
-
i0.ɵɵelementStart(0, "div", 23);
|
467
|
-
i0.ɵɵtemplate(1, FileUpload_div_0_div_12_Conditional_1_Template, 1, 1, "div", 24)(2, FileUpload_div_0_div_12_Conditional_2_Template, 1, 2, null, 25);
|
468
|
-
i0.ɵɵelementEnd();
|
469
|
-
} if (rf & 2) {
|
470
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
471
|
-
i0.ɵɵadvance();
|
472
|
-
i0.ɵɵconditional(!ctx_r1.fileTemplate && !ctx_r1._fileTemplate ? 1 : -1);
|
473
|
-
i0.ɵɵadvance();
|
474
|
-
i0.ɵɵconditional(ctx_r1.fileTemplate || ctx_r1._fileTemplate ? 2 : -1);
|
475
|
-
} }
|
476
|
-
function FileUpload_div_0_ng_container_13_Template(rf, ctx) { if (rf & 1) {
|
477
|
-
i0.ɵɵelementContainer(0);
|
478
|
-
} }
|
479
|
-
function FileUpload_div_0_Conditional_14_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
480
|
-
i0.ɵɵelementContainer(0);
|
481
|
-
} }
|
482
|
-
function FileUpload_div_0_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
483
|
-
i0.ɵɵtemplate(0, FileUpload_div_0_Conditional_14_ng_container_0_Template, 1, 0, "ng-container", 11);
|
484
|
-
} if (rf & 2) {
|
485
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
486
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.emptyTemplate || ctx_r1._emptyTemplate);
|
487
|
-
} }
|
488
|
-
function FileUpload_div_0_Template(rf, ctx) { if (rf & 1) {
|
489
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
490
|
-
i0.ɵɵelementStart(0, "div", 6)(1, "input", 7, 0);
|
491
|
-
i0.ɵɵlistener("change", function FileUpload_div_0_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onFileSelect($event)); });
|
492
|
-
i0.ɵɵelementEnd();
|
493
|
-
i0.ɵɵelementStart(3, "div", 8);
|
494
|
-
i0.ɵɵtemplate(4, FileUpload_div_0_ng_container_4_Template, 8, 15, "ng-container", 9)(5, FileUpload_div_0_ng_container_5_Template, 1, 0, "ng-container", 10)(6, FileUpload_div_0_ng_container_6_Template, 1, 0, "ng-container", 11);
|
495
|
-
i0.ɵɵelementEnd();
|
496
|
-
i0.ɵɵelementStart(7, "div", 12, 1);
|
497
|
-
i0.ɵɵlistener("dragenter", function FileUpload_div_0_Template_div_dragenter_7_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDragEnter($event)); })("dragleave", function FileUpload_div_0_Template_div_dragleave_7_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDragLeave($event)); })("drop", function FileUpload_div_0_Template_div_drop_7_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDrop($event)); });
|
498
|
-
i0.ɵɵtemplate(9, FileUpload_div_0_p_progressbar_9_Template, 1, 2, "p-progressbar", 13);
|
499
|
-
i0.ɵɵrepeaterCreate(10, FileUpload_div_0_For_11_Template, 1, 2, "p-message", 14, i0.ɵɵrepeaterTrackByIdentity);
|
500
|
-
i0.ɵɵtemplate(12, FileUpload_div_0_div_12_Template, 3, 2, "div", 15)(13, FileUpload_div_0_ng_container_13_Template, 1, 0, "ng-container", 10)(14, FileUpload_div_0_Conditional_14_Template, 1, 1, "ng-container");
|
501
|
-
i0.ɵɵelementEnd()();
|
502
|
-
} if (rf & 2) {
|
503
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
504
|
-
i0.ɵɵclassMap(ctx_r1.styleClass);
|
505
|
-
i0.ɵɵproperty("ngClass", "p-fileupload p-fileupload-advanced p-component")("ngStyle", ctx_r1.style);
|
506
|
-
i0.ɵɵattribute("data-pc-name", "fileupload")("data-pc-section", "root");
|
507
|
-
i0.ɵɵadvance();
|
508
|
-
i0.ɵɵstyleProp("display", "none");
|
509
|
-
i0.ɵɵproperty("multiple", ctx_r1.multiple)("accept", ctx_r1.accept)("disabled", ctx_r1.disabled || ctx_r1.isChooseDisabled());
|
510
|
-
i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("title", "")("data-pc-section", "input");
|
511
|
-
i0.ɵɵadvance(3);
|
512
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.headerTemplate && !ctx_r1._headerTemplate);
|
513
|
-
i0.ɵɵadvance();
|
514
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.headerTemplate || ctx_r1._headerTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction5(24, _c11, ctx_r1.files, ctx_r1.uploadedFiles, ctx_r1.choose.bind(ctx_r1), ctx_r1.clear.bind(ctx_r1), ctx_r1.upload.bind(ctx_r1)));
|
515
|
-
i0.ɵɵadvance();
|
516
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.toolbarTemplate || ctx_r1._toolbarTemplate);
|
517
|
-
i0.ɵɵadvance();
|
518
|
-
i0.ɵɵattribute("data-pc-section", "content");
|
519
|
-
i0.ɵɵadvance(2);
|
520
|
-
i0.ɵɵproperty("ngIf", ctx_r1.hasFiles());
|
521
|
-
i0.ɵɵadvance();
|
522
|
-
i0.ɵɵrepeater(ctx_r1.msgs);
|
523
|
-
i0.ɵɵadvance(2);
|
524
|
-
i0.ɵɵproperty("ngIf", ctx_r1.hasFiles());
|
525
|
-
i0.ɵɵadvance();
|
526
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.contentTemplate || ctx_r1._contentTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction8(30, _c12, ctx_r1.files, ctx_r1.uploadedFiles, ctx_r1.choose.bind(ctx_r1), ctx_r1.clear.bind(ctx_r1), ctx_r1.removeUploadedFile.bind(ctx_r1), ctx_r1.remove.bind(ctx_r1), ctx_r1.progress, ctx_r1.msgs));
|
527
|
-
i0.ɵɵadvance();
|
528
|
-
i0.ɵɵconditional((ctx_r1.emptyTemplate || ctx_r1._emptyTemplate) && !ctx_r1.hasFiles() && !ctx_r1.hasUploadedFiles() ? 14 : -1);
|
529
|
-
} }
|
530
|
-
function FileUpload_div_1_For_2_Template(rf, ctx) { if (rf & 1) {
|
531
|
-
i0.ɵɵelement(0, "p-message", 14);
|
532
|
-
} if (rf & 2) {
|
533
|
-
const message_r12 = ctx.$implicit;
|
534
|
-
i0.ɵɵproperty("severity", message_r12.severity)("text", message_r12.text);
|
535
|
-
} }
|
536
|
-
function FileUpload_div_1_ng_template_4_Conditional_0_span_0_Template(rf, ctx) { if (rf & 1) {
|
537
|
-
i0.ɵɵelement(0, "span", 37);
|
538
|
-
} if (rf & 2) {
|
539
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
540
|
-
i0.ɵɵproperty("ngClass", ctx_r1.uploadIcon);
|
541
|
-
} }
|
542
|
-
function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_UploadIcon_1_Template(rf, ctx) { if (rf & 1) {
|
543
|
-
i0.ɵɵelement(0, "UploadIcon", 40);
|
544
|
-
} if (rf & 2) {
|
545
|
-
i0.ɵɵproperty("styleClass", "p-button-icon p-button-icon-left");
|
546
|
-
} }
|
547
|
-
function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_ng_template_0_Template(rf, ctx) { }
|
548
|
-
function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_Template(rf, ctx) { if (rf & 1) {
|
549
|
-
i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
550
|
-
} }
|
551
|
-
function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
552
|
-
i0.ɵɵelementStart(0, "span", 41);
|
553
|
-
i0.ɵɵtemplate(1, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_1_Template, 1, 0, null, 11);
|
554
|
-
i0.ɵɵelementEnd();
|
555
|
-
} if (rf & 2) {
|
556
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
557
|
-
i0.ɵɵadvance();
|
558
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1._uploadIconTemplate || ctx_r1.uploadIconTemplate);
|
559
|
-
} }
|
560
|
-
function FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
561
|
-
i0.ɵɵelementContainerStart(0);
|
562
|
-
i0.ɵɵtemplate(1, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_UploadIcon_1_Template, 1, 1, "UploadIcon", 38)(2, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_span_2_Template, 2, 1, "span", 39);
|
563
|
-
i0.ɵɵelementContainerEnd();
|
564
|
-
} if (rf & 2) {
|
565
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
566
|
-
i0.ɵɵadvance();
|
567
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.uploadIconTemplate && !ctx_r1._uploadIconTemplate);
|
568
|
-
i0.ɵɵadvance();
|
569
|
-
i0.ɵɵproperty("ngIf", ctx_r1._uploadIconTemplate || ctx_r1.uploadIconTemplate);
|
570
|
-
} }
|
571
|
-
function FileUpload_div_1_ng_template_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
572
|
-
i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_0_span_0_Template, 1, 1, "span", 36)(1, FileUpload_div_1_ng_template_4_Conditional_0_ng_container_1_Template, 3, 2, "ng-container", 9);
|
573
|
-
} if (rf & 2) {
|
574
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
575
|
-
i0.ɵɵproperty("ngIf", ctx_r1.uploadIcon);
|
576
|
-
i0.ɵɵadvance();
|
577
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.uploadIcon);
|
578
|
-
} }
|
579
|
-
function FileUpload_div_1_ng_template_4_Conditional_1_span_0_Template(rf, ctx) { if (rf & 1) {
|
580
|
-
i0.ɵɵelement(0, "span", 43);
|
581
|
-
} if (rf & 2) {
|
582
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
583
|
-
i0.ɵɵproperty("ngClass", ctx_r1.chooseIcon);
|
584
|
-
} }
|
585
|
-
function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_PlusIcon_1_Template(rf, ctx) { if (rf & 1) {
|
586
|
-
i0.ɵɵelement(0, "PlusIcon");
|
587
|
-
} if (rf & 2) {
|
588
|
-
i0.ɵɵattribute("data-pc-section", "uploadicon");
|
589
|
-
} }
|
590
|
-
function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_ng_template_0_Template(rf, ctx) { }
|
591
|
-
function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_Template(rf, ctx) { if (rf & 1) {
|
592
|
-
i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_ng_template_0_Template, 0, 0, "ng-template");
|
593
|
-
} }
|
594
|
-
function FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
595
|
-
i0.ɵɵelementContainerStart(0);
|
596
|
-
i0.ɵɵtemplate(1, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_PlusIcon_1_Template, 1, 1, "PlusIcon", 9)(2, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_2_Template, 1, 0, null, 11);
|
597
|
-
i0.ɵɵelementContainerEnd();
|
598
|
-
} if (rf & 2) {
|
599
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
600
|
-
i0.ɵɵadvance();
|
601
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.chooseIconTemplate && !ctx_r1._chooseIconTemplate);
|
602
|
-
i0.ɵɵadvance();
|
603
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.chooseIconTemplate || ctx_r1._chooseIconTemplate);
|
604
|
-
} }
|
605
|
-
function FileUpload_div_1_ng_template_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
606
|
-
i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_1_span_0_Template, 1, 1, "span", 42)(1, FileUpload_div_1_ng_template_4_Conditional_1_ng_container_1_Template, 3, 2, "ng-container", 9);
|
607
|
-
} if (rf & 2) {
|
608
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
609
|
-
i0.ɵɵproperty("ngIf", ctx_r1.chooseIcon);
|
610
|
-
i0.ɵɵadvance();
|
611
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.chooseIcon);
|
612
|
-
} }
|
613
|
-
function FileUpload_div_1_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
614
|
-
i0.ɵɵtemplate(0, FileUpload_div_1_ng_template_4_Conditional_0_Template, 2, 2)(1, FileUpload_div_1_ng_template_4_Conditional_1_Template, 2, 2);
|
615
|
-
} if (rf & 2) {
|
616
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
617
|
-
i0.ɵɵconditional(ctx_r1.hasFiles() && !ctx_r1.auto ? 0 : 1);
|
618
|
-
} }
|
619
|
-
function FileUpload_div_1_Conditional_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
620
|
-
i0.ɵɵelementStart(0, "span");
|
621
|
-
i0.ɵɵtext(1);
|
622
|
-
i0.ɵɵelementEnd();
|
623
|
-
} if (rf & 2) {
|
624
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
625
|
-
i0.ɵɵclassMap(ctx_r1.cx("filelabel"));
|
626
|
-
i0.ɵɵadvance();
|
627
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.basicFileChosenLabel(), " ");
|
628
|
-
} }
|
629
|
-
function FileUpload_div_1_Conditional_8_Conditional_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
630
|
-
i0.ɵɵelementContainer(0);
|
631
|
-
} }
|
632
|
-
function FileUpload_div_1_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
633
|
-
i0.ɵɵtemplate(0, FileUpload_div_1_Conditional_8_Conditional_1_ng_container_0_Template, 1, 0, "ng-container", 10);
|
634
|
-
} if (rf & 2) {
|
635
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
636
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.fileLabelTemplate || ctx_r1._fileLabelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, ctx_r1.files));
|
637
|
-
} }
|
638
|
-
function FileUpload_div_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
639
|
-
i0.ɵɵtemplate(0, FileUpload_div_1_Conditional_8_Conditional_0_Template, 2, 3, "span", 44)(1, FileUpload_div_1_Conditional_8_Conditional_1_Template, 1, 4, "ng-container");
|
640
|
-
} if (rf & 2) {
|
641
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
642
|
-
i0.ɵɵconditional(!ctx_r1.fileLabelTemplate && !ctx_r1._fileLabelTemplate ? 0 : 1);
|
643
|
-
} }
|
644
|
-
function FileUpload_div_1_Template(rf, ctx) { if (rf & 1) {
|
645
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
646
|
-
i0.ɵɵelementStart(0, "div", 21);
|
647
|
-
i0.ɵɵrepeaterCreate(1, FileUpload_div_1_For_2_Template, 1, 2, "p-message", 14, i0.ɵɵrepeaterTrackByIdentity);
|
648
|
-
i0.ɵɵelementStart(3, "p-button", 34);
|
649
|
-
i0.ɵɵlistener("onClick", function FileUpload_div_1_Template_p_button_onClick_3_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBasicUploaderClick()); })("keydown", function FileUpload_div_1_Template_p_button_keydown_3_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBasicKeydown($event)); });
|
650
|
-
i0.ɵɵtemplate(4, FileUpload_div_1_ng_template_4_Template, 2, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
651
|
-
i0.ɵɵelementStart(6, "input", 35, 3);
|
652
|
-
i0.ɵɵlistener("change", function FileUpload_div_1_Template_input_change_6_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onFileSelect($event)); })("focus", function FileUpload_div_1_Template_input_focus_6_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onFocus()); })("blur", function FileUpload_div_1_Template_input_blur_6_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBlur()); });
|
653
|
-
i0.ɵɵelementEnd()();
|
654
|
-
i0.ɵɵtemplate(8, FileUpload_div_1_Conditional_8_Template, 2, 1);
|
655
|
-
i0.ɵɵelementEnd();
|
656
|
-
} if (rf & 2) {
|
657
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
658
|
-
i0.ɵɵclassMap(ctx_r1.styleClass);
|
659
|
-
i0.ɵɵproperty("ngClass", "p-fileupload p-fileupload-basic p-component");
|
660
|
-
i0.ɵɵattribute("data-pc-name", "fileupload");
|
661
|
-
i0.ɵɵadvance();
|
662
|
-
i0.ɵɵrepeater(ctx_r1.msgs);
|
663
|
-
i0.ɵɵadvance(2);
|
664
|
-
i0.ɵɵstyleMap(ctx_r1.style);
|
665
|
-
i0.ɵɵproperty("styleClass", "p-fileupload-choose-button " + ctx_r1.chooseStyleClass)("disabled", ctx_r1.disabled)("label", ctx_r1.chooseButtonLabel)("buttonProps", ctx_r1.chooseButtonProps);
|
666
|
-
i0.ɵɵadvance(3);
|
667
|
-
i0.ɵɵproperty("accept", ctx_r1.accept)("multiple", ctx_r1.multiple)("disabled", ctx_r1.disabled);
|
668
|
-
i0.ɵɵattribute("aria-label", ctx_r1.browseFilesLabel)("data-pc-section", "input");
|
669
|
-
i0.ɵɵadvance(2);
|
670
|
-
i0.ɵɵconditional(!ctx_r1.auto ? 8 : -1);
|
671
|
-
} }
|
672
204
|
/**
|
673
205
|
* FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
|
674
206
|
* @group Components
|
@@ -1302,7 +834,7 @@ class FileUpload extends BaseComponent {
|
|
1302
834
|
}
|
1303
835
|
checkFileLimit(files) {
|
1304
836
|
this.msgs ??= [];
|
1305
|
-
const hasExistingValidationMessages = this.msgs.length > 0 && this.fileLimit < files.length;
|
837
|
+
const hasExistingValidationMessages = this.msgs.length > 0 && this.fileLimit && this.fileLimit < files.length;
|
1306
838
|
if (this.isFileLimitExceeded() || hasExistingValidationMessages) {
|
1307
839
|
const text = `${this.invalidFileLimitMessageSummary.replace('{0}', this.fileLimit.toString())} ${this.invalidFileLimitMessageDetail.replace('{0}', this.fileLimit.toString())}`;
|
1308
840
|
this.msgs.push({
|
@@ -1428,54 +960,207 @@ class FileUpload extends BaseComponent {
|
|
1428
960
|
}
|
1429
961
|
super.ngOnDestroy();
|
1430
962
|
}
|
1431
|
-
static ɵfac =
|
1432
|
-
static ɵcmp =
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
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
|
-
|
963
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
964
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: FileUpload, isStandalone: true, selector: "p-fileupload, p-fileUpload", inputs: { name: "name", url: "url", method: "method", multiple: ["multiple", "multiple", booleanAttribute], accept: "accept", disabled: ["disabled", "disabled", booleanAttribute], auto: ["auto", "auto", booleanAttribute], withCredentials: ["withCredentials", "withCredentials", booleanAttribute], maxFileSize: ["maxFileSize", "maxFileSize", numberAttribute], invalidFileSizeMessageSummary: "invalidFileSizeMessageSummary", invalidFileSizeMessageDetail: "invalidFileSizeMessageDetail", invalidFileTypeMessageSummary: "invalidFileTypeMessageSummary", invalidFileTypeMessageDetail: "invalidFileTypeMessageDetail", invalidFileLimitMessageDetail: "invalidFileLimitMessageDetail", invalidFileLimitMessageSummary: "invalidFileLimitMessageSummary", style: "style", styleClass: "styleClass", previewWidth: ["previewWidth", "previewWidth", numberAttribute], chooseLabel: "chooseLabel", uploadLabel: "uploadLabel", cancelLabel: "cancelLabel", chooseIcon: "chooseIcon", uploadIcon: "uploadIcon", cancelIcon: "cancelIcon", showUploadButton: ["showUploadButton", "showUploadButton", booleanAttribute], showCancelButton: ["showCancelButton", "showCancelButton", booleanAttribute], mode: "mode", headers: "headers", customUpload: ["customUpload", "customUpload", booleanAttribute], fileLimit: ["fileLimit", "fileLimit", (value) => numberAttribute(value, null)], uploadStyleClass: "uploadStyleClass", cancelStyleClass: "cancelStyleClass", removeStyleClass: "removeStyleClass", chooseStyleClass: "chooseStyleClass", chooseButtonProps: "chooseButtonProps", uploadButtonProps: "uploadButtonProps", cancelButtonProps: "cancelButtonProps", files: "files" }, outputs: { onBeforeUpload: "onBeforeUpload", onSend: "onSend", onUpload: "onUpload", onError: "onError", onClear: "onClear", onRemove: "onRemove", onSelect: "onSelect", onProgress: "onProgress", uploadHandler: "uploadHandler", onImageError: "onImageError", onRemoveUploadedFile: "onRemoveUploadedFile" }, providers: [FileUploadStyle], queries: [{ propertyName: "fileTemplate", first: true, predicate: ["file"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "contentTemplate", first: true, predicate: ["content"] }, { propertyName: "toolbarTemplate", first: true, predicate: ["toolbar"] }, { propertyName: "chooseIconTemplate", first: true, predicate: ["chooseicon"] }, { propertyName: "fileLabelTemplate", first: true, predicate: ["filelabel"] }, { propertyName: "uploadIconTemplate", first: true, predicate: ["uploadicon"] }, { propertyName: "cancelIconTemplate", first: true, predicate: ["cancelicon"] }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "advancedFileInput", first: true, predicate: ["advancedfileinput"], descendants: true }, { propertyName: "basicFileInput", first: true, predicate: ["basicfileinput"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
965
|
+
<div [ngClass]="'p-fileupload p-fileupload-advanced p-component'" [ngStyle]="style" [class]="styleClass" *ngIf="mode === 'advanced'" [attr.data-pc-name]="'fileupload'" [attr.data-pc-section]="'root'">
|
966
|
+
<input
|
967
|
+
[attr.aria-label]="browseFilesLabel"
|
968
|
+
#advancedfileinput
|
969
|
+
type="file"
|
970
|
+
(change)="onFileSelect($event)"
|
971
|
+
[multiple]="multiple"
|
972
|
+
[accept]="accept"
|
973
|
+
[disabled]="disabled || isChooseDisabled()"
|
974
|
+
[attr.title]="''"
|
975
|
+
[attr.data-pc-section]="'input'"
|
976
|
+
[style.display]="'none'"
|
977
|
+
/>
|
978
|
+
<div class="p-fileupload-header">
|
979
|
+
<ng-container *ngIf="!headerTemplate && !_headerTemplate">
|
980
|
+
<p-button
|
981
|
+
[styleClass]="'p-fileupload-choose-button ' + chooseStyleClass"
|
982
|
+
[disabled]="disabled || isChooseDisabled()"
|
983
|
+
(focus)="onFocus()"
|
984
|
+
[label]="chooseButtonLabel"
|
985
|
+
(blur)="onBlur()"
|
986
|
+
(onClick)="choose()"
|
987
|
+
(keydown.enter)="choose()"
|
988
|
+
tabindex="0"
|
989
|
+
[attr.data-pc-section]="'choosebutton'"
|
990
|
+
[buttonProps]="chooseButtonProps"
|
991
|
+
>
|
992
|
+
<input
|
993
|
+
[attr.aria-label]="browseFilesLabel"
|
994
|
+
#advancedfileinput
|
995
|
+
type="file"
|
996
|
+
(change)="onFileSelect($event)"
|
997
|
+
[multiple]="multiple"
|
998
|
+
[accept]="accept"
|
999
|
+
[disabled]="disabled || isChooseDisabled()"
|
1000
|
+
[attr.title]="''"
|
1001
|
+
[attr.data-pc-section]="'input'"
|
1002
|
+
/>
|
1003
|
+
<span *ngIf="chooseIcon" [class]="chooseIcon" [attr.aria-label]="true" [attr.data-pc-section]="'chooseicon'"></span>
|
1004
|
+
<ng-container *ngIf="!chooseIcon">
|
1005
|
+
<PlusIcon *ngIf="!chooseIconTemplate && !_chooseIconTemplate" [attr.aria-label]="true" [attr.data-pc-section]="'chooseicon'" />
|
1006
|
+
<span *ngIf="chooseIconTemplate || _chooseIconTemplate" [attr.aria-label]="true" [attr.data-pc-section]="'chooseicon'">
|
1007
|
+
<ng-template *ngTemplateOutlet="chooseIconTemplate || _chooseIconTemplate"></ng-template>
|
1008
|
+
</span>
|
1009
|
+
</ng-container>
|
1010
|
+
</p-button>
|
1011
|
+
|
1012
|
+
<p-button
|
1013
|
+
*ngIf="!auto && showUploadButton"
|
1014
|
+
[label]="uploadButtonLabel"
|
1015
|
+
(onClick)="upload()"
|
1016
|
+
[disabled]="!hasFiles() || isFileLimitExceeded()"
|
1017
|
+
[styleClass]="'p-fileupload-upload-button ' + uploadStyleClass"
|
1018
|
+
[buttonProps]="uploadButtonProps"
|
1019
|
+
>
|
1020
|
+
<span *ngIf="uploadIcon" [ngClass]="uploadIcon" [attr.aria-hidden]="true"></span>
|
1021
|
+
<ng-container *ngIf="!uploadIcon">
|
1022
|
+
<UploadIcon *ngIf="!uploadIconTemplate && !_uploadIconTemplate" />
|
1023
|
+
<span *ngIf="uploadIconTemplate || _uploadIconTemplate" [attr.aria-hidden]="true">
|
1024
|
+
<ng-template *ngTemplateOutlet="uploadIconTemplate || _uploadIconTemplate"></ng-template>
|
1025
|
+
</span>
|
1026
|
+
</ng-container>
|
1027
|
+
</p-button>
|
1028
|
+
<p-button *ngIf="!auto && showCancelButton" [label]="cancelButtonLabel" (onClick)="clear()" [disabled]="!hasFiles() || uploading" [styleClass]="'p-fileupload-cancel-button ' + cancelStyleClass" [buttonProps]="cancelButtonProps">
|
1029
|
+
<span *ngIf="cancelIcon" [ngClass]="cancelIcon"></span>
|
1030
|
+
<ng-container *ngIf="!cancelIcon">
|
1031
|
+
<TimesIcon *ngIf="!cancelIconTemplate && !_cancelIconTemplate" [attr.aria-hidden]="true" />
|
1032
|
+
<span *ngIf="cancelIconTemplate || _cancelIconTemplate" [attr.aria-hidden]="true">
|
1033
|
+
<ng-template *ngTemplateOutlet="cancelIconTemplate || _cancelIconTemplate"></ng-template>
|
1034
|
+
</span>
|
1035
|
+
</ng-container>
|
1036
|
+
</p-button>
|
1037
|
+
</ng-container>
|
1038
|
+
<ng-container
|
1039
|
+
*ngTemplateOutlet="
|
1040
|
+
headerTemplate || _headerTemplate;
|
1041
|
+
context: {
|
1042
|
+
$implicit: files,
|
1043
|
+
uploadedFiles: uploadedFiles,
|
1044
|
+
chooseCallback: choose.bind(this),
|
1045
|
+
clearCallback: clear.bind(this),
|
1046
|
+
uploadCallback: upload.bind(this)
|
1047
|
+
}
|
1048
|
+
"
|
1049
|
+
></ng-container>
|
1050
|
+
<ng-container *ngTemplateOutlet="toolbarTemplate || _toolbarTemplate"></ng-container>
|
1051
|
+
</div>
|
1052
|
+
<div #content class="p-fileupload-content" (dragenter)="onDragEnter($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)" [attr.data-pc-section]="'content'">
|
1053
|
+
<p-progressbar [value]="progress" [showValue]="false" *ngIf="hasFiles()"></p-progressbar>
|
1054
|
+
@for (message of msgs; track message) {
|
1055
|
+
<p-message [severity]="message.severity" [text]="message.text"></p-message>
|
1056
|
+
}
|
1057
|
+
|
1058
|
+
<div class="p-fileupload-file-list" *ngIf="hasFiles()">
|
1059
|
+
@if (!fileTemplate && !_fileTemplate) {
|
1060
|
+
<div class="p-fileupload-file" *ngFor="let file of files; let i = index">
|
1061
|
+
<img [src]="file.objectURL" *ngIf="isImage(file)" [width]="previewWidth" (error)="imageError($event)" class="p-fileupload-file-thumbnail" />
|
1062
|
+
<div class="p-fileupload-file-info">
|
1063
|
+
<div class="p-fileupload-file-name">{{ file.name }}</div>
|
1064
|
+
<span class="p-fileupload-file-size">{{ formatSize(file.size) }}</span>
|
1065
|
+
</div>
|
1066
|
+
<div class="p-fileupload-file-actions">
|
1067
|
+
<p-button (onClick)="remove($event, i)" [disabled]="uploading" text rounded severity="danger" [styleClass]="'p-fileupload-file-remove-button ' + removeStyleClass">
|
1068
|
+
<ng-template #icon>
|
1069
|
+
<TimesIcon *ngIf="!cancelIconTemplate && !_cancelIconTemplate" />
|
1070
|
+
<ng-template *ngTemplateOutlet="cancelIconTemplate || _cancelIconTemplate"></ng-template>
|
1071
|
+
</ng-template>
|
1072
|
+
</p-button>
|
1073
|
+
</div>
|
1074
|
+
</div>
|
1075
|
+
}
|
1076
|
+
@if (fileTemplate || _fileTemplate) {
|
1077
|
+
<ng-template ngFor [ngForOf]="files" [ngForTemplate]="fileTemplate || _fileTemplate"></ng-template>
|
1078
|
+
}
|
1079
|
+
</div>
|
1080
|
+
<ng-container
|
1081
|
+
*ngTemplateOutlet="
|
1082
|
+
contentTemplate || _contentTemplate;
|
1083
|
+
context: {
|
1084
|
+
$implicit: files,
|
1085
|
+
uploadedFiles: uploadedFiles,
|
1086
|
+
chooseCallback: choose.bind(this),
|
1087
|
+
clearCallback: clear.bind(this),
|
1088
|
+
removeUploadedFileCallback: removeUploadedFile.bind(this),
|
1089
|
+
removeFileCallback: remove.bind(this),
|
1090
|
+
progress: progress,
|
1091
|
+
messages: msgs
|
1092
|
+
}
|
1093
|
+
"
|
1094
|
+
></ng-container>
|
1095
|
+
@if ((emptyTemplate || _emptyTemplate) && !hasFiles() && !hasUploadedFiles()) {
|
1096
|
+
<ng-container *ngTemplateOutlet="emptyTemplate || _emptyTemplate"></ng-container>
|
1097
|
+
}
|
1098
|
+
</div>
|
1099
|
+
</div>
|
1100
|
+
<div [ngClass]="'p-fileupload p-fileupload-basic p-component'" [class]="styleClass" *ngIf="mode === 'basic'" [attr.data-pc-name]="'fileupload'">
|
1101
|
+
@for (message of msgs; track message) {
|
1102
|
+
<p-message [severity]="message.severity" [text]="message.text"></p-message>
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
<p-button
|
1106
|
+
[styleClass]="'p-fileupload-choose-button ' + chooseStyleClass"
|
1107
|
+
[disabled]="disabled"
|
1108
|
+
[label]="chooseButtonLabel"
|
1109
|
+
[style]="style"
|
1110
|
+
(onClick)="onBasicUploaderClick()"
|
1111
|
+
(keydown)="onBasicKeydown($event)"
|
1112
|
+
tabindex="0"
|
1113
|
+
[buttonProps]="chooseButtonProps"
|
1114
|
+
>
|
1115
|
+
<ng-template #icon>
|
1116
|
+
@if (hasFiles() && !auto) {
|
1117
|
+
<span *ngIf="uploadIcon" class="p-button-icon p-button-icon-left" [ngClass]="uploadIcon"></span>
|
1118
|
+
<ng-container *ngIf="!uploadIcon">
|
1119
|
+
<UploadIcon *ngIf="!uploadIconTemplate && !_uploadIconTemplate" [styleClass]="'p-button-icon p-button-icon-left'" />
|
1120
|
+
<span *ngIf="_uploadIconTemplate || uploadIconTemplate" class="p-button-icon p-button-icon-left">
|
1121
|
+
<ng-template *ngTemplateOutlet="_uploadIconTemplate || uploadIconTemplate"></ng-template>
|
1122
|
+
</span>
|
1123
|
+
</ng-container>
|
1124
|
+
} @else {
|
1125
|
+
<span *ngIf="chooseIcon" class="p-button-icon p-button-icon-left pi" [ngClass]="chooseIcon"></span>
|
1126
|
+
<ng-container *ngIf="!chooseIcon">
|
1127
|
+
<PlusIcon *ngIf="!chooseIconTemplate && !_chooseIconTemplate" [attr.data-pc-section]="'uploadicon'" />
|
1128
|
+
<ng-template *ngTemplateOutlet="chooseIconTemplate || _chooseIconTemplate"></ng-template>
|
1129
|
+
</ng-container>
|
1130
|
+
}
|
1131
|
+
</ng-template>
|
1132
|
+
<input
|
1133
|
+
[attr.aria-label]="browseFilesLabel"
|
1134
|
+
#basicfileinput
|
1135
|
+
type="file"
|
1136
|
+
[accept]="accept"
|
1137
|
+
[multiple]="multiple"
|
1138
|
+
[disabled]="disabled"
|
1139
|
+
(change)="onFileSelect($event)"
|
1140
|
+
(focus)="onFocus()"
|
1141
|
+
(blur)="onBlur()"
|
1142
|
+
[attr.data-pc-section]="'input'"
|
1143
|
+
/>
|
1144
|
+
</p-button>
|
1145
|
+
@if (!auto) {
|
1146
|
+
@if (!fileLabelTemplate && !_fileLabelTemplate) {
|
1147
|
+
<span [class]="cx('filelabel')">
|
1148
|
+
{{ basicFileChosenLabel() }}
|
1149
|
+
</span>
|
1150
|
+
} @else {
|
1151
|
+
<ng-container *ngTemplateOutlet="fileLabelTemplate || _fileLabelTemplate; context: { $implicit: files }"></ng-container>
|
1152
|
+
}
|
1153
|
+
}
|
1154
|
+
</div>
|
1155
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ProgressBar, selector: "p-progressBar, p-progressbar, p-progress-bar", inputs: ["value", "showValue", "styleClass", "valueStyleClass", "style", "unit", "mode", "color"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }, { kind: "component", type: PlusIcon, selector: "PlusIcon" }, { kind: "component", type: UploadIcon, selector: "UploadIcon" }, { kind: "component", type: TimesIcon, selector: "TimesIcon" }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1471
1156
|
}
|
1472
|
-
(
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUpload, decorators: [{
|
1158
|
+
type: Component,
|
1159
|
+
args: [{
|
1160
|
+
selector: 'p-fileupload, p-fileUpload',
|
1161
|
+
standalone: true,
|
1162
|
+
imports: [CommonModule, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule],
|
1163
|
+
template: `
|
1479
1164
|
<div [ngClass]="'p-fileupload p-fileupload-advanced p-component'" [ngStyle]="style" [class]="styleClass" *ngIf="mode === 'advanced'" [attr.data-pc-name]="'fileupload'" [attr.data-pc-section]="'root'">
|
1480
1165
|
<input
|
1481
1166
|
[attr.aria-label]="browseFilesLabel"
|
@@ -1667,172 +1352,170 @@ class FileUpload extends BaseComponent {
|
|
1667
1352
|
}
|
1668
1353
|
</div>
|
1669
1354
|
`,
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
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
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileUpload, { className: "FileUpload", filePath: "fileupload.ts", lineNumber: 243 }); })();
|
1355
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1356
|
+
encapsulation: ViewEncapsulation.None,
|
1357
|
+
providers: [FileUploadStyle]
|
1358
|
+
}]
|
1359
|
+
}], propDecorators: { name: [{
|
1360
|
+
type: Input
|
1361
|
+
}], url: [{
|
1362
|
+
type: Input
|
1363
|
+
}], method: [{
|
1364
|
+
type: Input
|
1365
|
+
}], multiple: [{
|
1366
|
+
type: Input,
|
1367
|
+
args: [{ transform: booleanAttribute }]
|
1368
|
+
}], accept: [{
|
1369
|
+
type: Input
|
1370
|
+
}], disabled: [{
|
1371
|
+
type: Input,
|
1372
|
+
args: [{ transform: booleanAttribute }]
|
1373
|
+
}], auto: [{
|
1374
|
+
type: Input,
|
1375
|
+
args: [{ transform: booleanAttribute }]
|
1376
|
+
}], withCredentials: [{
|
1377
|
+
type: Input,
|
1378
|
+
args: [{ transform: booleanAttribute }]
|
1379
|
+
}], maxFileSize: [{
|
1380
|
+
type: Input,
|
1381
|
+
args: [{ transform: numberAttribute }]
|
1382
|
+
}], invalidFileSizeMessageSummary: [{
|
1383
|
+
type: Input
|
1384
|
+
}], invalidFileSizeMessageDetail: [{
|
1385
|
+
type: Input
|
1386
|
+
}], invalidFileTypeMessageSummary: [{
|
1387
|
+
type: Input
|
1388
|
+
}], invalidFileTypeMessageDetail: [{
|
1389
|
+
type: Input
|
1390
|
+
}], invalidFileLimitMessageDetail: [{
|
1391
|
+
type: Input
|
1392
|
+
}], invalidFileLimitMessageSummary: [{
|
1393
|
+
type: Input
|
1394
|
+
}], style: [{
|
1395
|
+
type: Input
|
1396
|
+
}], styleClass: [{
|
1397
|
+
type: Input
|
1398
|
+
}], previewWidth: [{
|
1399
|
+
type: Input,
|
1400
|
+
args: [{ transform: numberAttribute }]
|
1401
|
+
}], chooseLabel: [{
|
1402
|
+
type: Input
|
1403
|
+
}], uploadLabel: [{
|
1404
|
+
type: Input
|
1405
|
+
}], cancelLabel: [{
|
1406
|
+
type: Input
|
1407
|
+
}], chooseIcon: [{
|
1408
|
+
type: Input
|
1409
|
+
}], uploadIcon: [{
|
1410
|
+
type: Input
|
1411
|
+
}], cancelIcon: [{
|
1412
|
+
type: Input
|
1413
|
+
}], showUploadButton: [{
|
1414
|
+
type: Input,
|
1415
|
+
args: [{ transform: booleanAttribute }]
|
1416
|
+
}], showCancelButton: [{
|
1417
|
+
type: Input,
|
1418
|
+
args: [{ transform: booleanAttribute }]
|
1419
|
+
}], mode: [{
|
1420
|
+
type: Input
|
1421
|
+
}], headers: [{
|
1422
|
+
type: Input
|
1423
|
+
}], customUpload: [{
|
1424
|
+
type: Input,
|
1425
|
+
args: [{ transform: booleanAttribute }]
|
1426
|
+
}], fileLimit: [{
|
1427
|
+
type: Input,
|
1428
|
+
args: [{ transform: (value) => numberAttribute(value, null) }]
|
1429
|
+
}], uploadStyleClass: [{
|
1430
|
+
type: Input
|
1431
|
+
}], cancelStyleClass: [{
|
1432
|
+
type: Input
|
1433
|
+
}], removeStyleClass: [{
|
1434
|
+
type: Input
|
1435
|
+
}], chooseStyleClass: [{
|
1436
|
+
type: Input
|
1437
|
+
}], chooseButtonProps: [{
|
1438
|
+
type: Input
|
1439
|
+
}], uploadButtonProps: [{
|
1440
|
+
type: Input
|
1441
|
+
}], cancelButtonProps: [{
|
1442
|
+
type: Input
|
1443
|
+
}], onBeforeUpload: [{
|
1444
|
+
type: Output
|
1445
|
+
}], onSend: [{
|
1446
|
+
type: Output
|
1447
|
+
}], onUpload: [{
|
1448
|
+
type: Output
|
1449
|
+
}], onError: [{
|
1450
|
+
type: Output
|
1451
|
+
}], onClear: [{
|
1452
|
+
type: Output
|
1453
|
+
}], onRemove: [{
|
1454
|
+
type: Output
|
1455
|
+
}], onSelect: [{
|
1456
|
+
type: Output
|
1457
|
+
}], onProgress: [{
|
1458
|
+
type: Output
|
1459
|
+
}], uploadHandler: [{
|
1460
|
+
type: Output
|
1461
|
+
}], onImageError: [{
|
1462
|
+
type: Output
|
1463
|
+
}], onRemoveUploadedFile: [{
|
1464
|
+
type: Output
|
1465
|
+
}], fileTemplate: [{
|
1466
|
+
type: ContentChild,
|
1467
|
+
args: ['file', { descendants: false }]
|
1468
|
+
}], headerTemplate: [{
|
1469
|
+
type: ContentChild,
|
1470
|
+
args: ['header', { descendants: false }]
|
1471
|
+
}], contentTemplate: [{
|
1472
|
+
type: ContentChild,
|
1473
|
+
args: ['content', { descendants: false }]
|
1474
|
+
}], toolbarTemplate: [{
|
1475
|
+
type: ContentChild,
|
1476
|
+
args: ['toolbar', { descendants: false }]
|
1477
|
+
}], chooseIconTemplate: [{
|
1478
|
+
type: ContentChild,
|
1479
|
+
args: ['chooseicon', { descendants: false }]
|
1480
|
+
}], fileLabelTemplate: [{
|
1481
|
+
type: ContentChild,
|
1482
|
+
args: ['filelabel', { descendants: false }]
|
1483
|
+
}], uploadIconTemplate: [{
|
1484
|
+
type: ContentChild,
|
1485
|
+
args: ['uploadicon', { descendants: false }]
|
1486
|
+
}], cancelIconTemplate: [{
|
1487
|
+
type: ContentChild,
|
1488
|
+
args: ['cancelicon', { descendants: false }]
|
1489
|
+
}], emptyTemplate: [{
|
1490
|
+
type: ContentChild,
|
1491
|
+
args: ['empty', { descendants: false }]
|
1492
|
+
}], advancedFileInput: [{
|
1493
|
+
type: ViewChild,
|
1494
|
+
args: ['advancedfileinput']
|
1495
|
+
}], basicFileInput: [{
|
1496
|
+
type: ViewChild,
|
1497
|
+
args: ['basicfileinput']
|
1498
|
+
}], content: [{
|
1499
|
+
type: ViewChild,
|
1500
|
+
args: ['content']
|
1501
|
+
}], files: [{
|
1502
|
+
type: Input
|
1503
|
+
}], templates: [{
|
1504
|
+
type: ContentChildren,
|
1505
|
+
args: [PrimeTemplate]
|
1506
|
+
}] } });
|
1823
1507
|
class FileUploadModule {
|
1824
|
-
static ɵfac =
|
1825
|
-
static ɵmod =
|
1826
|
-
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] });
|
1827
1511
|
}
|
1828
|
-
(
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FileUploadModule, { imports: [FileUpload, SharedModule], exports: [FileUpload, SharedModule] }); })();
|
1512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: FileUploadModule, decorators: [{
|
1513
|
+
type: NgModule,
|
1514
|
+
args: [{
|
1515
|
+
imports: [FileUpload, SharedModule],
|
1516
|
+
exports: [FileUpload, SharedModule]
|
1517
|
+
}]
|
1518
|
+
}] });
|
1836
1519
|
|
1837
1520
|
/**
|
1838
1521
|
* Generated bundle index. Do not edit.
|