@exhaustive-ui/core 3.0.0-alpha.1 → 22.0.0-alpha.1
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/README.md +3 -3
- package/fesm2022/exhaustive-ui-core-accordion.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +433 -377
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-buttongroup.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-buttongroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-card.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +241 -207
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +80 -72
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +110 -98
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +302 -324
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +944 -794
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +168 -128
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-divider.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-divider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -402
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fluid.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iftalabel.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-iftalabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +304 -260
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +7 -7
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +422 -334
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +427 -347
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressbar.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-ripple.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-ripple.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +392 -338
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-skeleton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +338 -294
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tag.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-tag.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +316 -326
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +12 -8
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +12 -12
- package/schematics/migrate-from-primeng/index.js +1 -1
- package/schematics/migrations.json +5 -5
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +1 -1
- package/types/exhaustive-ui-core-autocomplete.d.ts +1 -1
- package/types/exhaustive-ui-core-avatar.d.ts +1 -1
- package/types/exhaustive-ui-core-avatargroup.d.ts +1 -1
- package/types/exhaustive-ui-core-badge.d.ts +1 -1
- package/types/exhaustive-ui-core-blockui.d.ts +1 -1
- package/types/exhaustive-ui-core-breadcrumb.d.ts +1 -1
- package/types/exhaustive-ui-core-button.d.ts +1 -1
- package/types/exhaustive-ui-core-buttongroup.d.ts +1 -1
- package/types/exhaustive-ui-core-card.d.ts +1 -1
- package/types/exhaustive-ui-core-carousel.d.ts +1 -1
- package/types/exhaustive-ui-core-cascadeselect.d.ts +1 -1
- package/types/exhaustive-ui-core-chart.d.ts +1 -1
- package/types/exhaustive-ui-core-checkbox.d.ts +1 -1
- package/types/exhaustive-ui-core-chip.d.ts +1 -1
- package/types/exhaustive-ui-core-colorpicker.d.ts +1 -1
- package/types/exhaustive-ui-core-confirmdialog.d.ts +1 -1
- package/types/exhaustive-ui-core-confirmpopup.d.ts +1 -1
- package/types/exhaustive-ui-core-contextmenu.d.ts +1 -1
- package/types/exhaustive-ui-core-dataview.d.ts +1 -1
- package/types/exhaustive-ui-core-datepicker.d.ts +1 -1
- package/types/exhaustive-ui-core-dialog.d.ts +1 -1
- package/types/exhaustive-ui-core-divider.d.ts +1 -1
- package/types/exhaustive-ui-core-dock.d.ts +1 -1
- package/types/exhaustive-ui-core-drawer.d.ts +1 -1
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +1 -1
- package/types/exhaustive-ui-core-editor.d.ts +1 -1
- package/types/exhaustive-ui-core-fieldset.d.ts +1 -1
- package/types/exhaustive-ui-core-fileupload.d.ts +1 -1
- package/types/exhaustive-ui-core-floatlabel.d.ts +1 -1
- package/types/exhaustive-ui-core-fluid.d.ts +1 -1
- package/types/exhaustive-ui-core-galleria.d.ts +1 -1
- package/types/exhaustive-ui-core-iconfield.d.ts +1 -1
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +1 -1
- package/types/exhaustive-ui-core-iftalabel.d.ts +1 -1
- package/types/exhaustive-ui-core-image.d.ts +1 -1
- package/types/exhaustive-ui-core-imagecompare.d.ts +1 -1
- package/types/exhaustive-ui-core-inplace.d.ts +1 -1
- package/types/exhaustive-ui-core-inputgroup.d.ts +1 -1
- package/types/exhaustive-ui-core-inputmask.d.ts +1 -1
- package/types/exhaustive-ui-core-inputnumber.d.ts +1 -1
- package/types/exhaustive-ui-core-inputotp.d.ts +1 -1
- package/types/exhaustive-ui-core-inputtext.d.ts +1 -1
- package/types/exhaustive-ui-core-knob.d.ts +1 -1
- package/types/exhaustive-ui-core-listbox.d.ts +1 -1
- package/types/exhaustive-ui-core-megamenu.d.ts +1 -1
- package/types/exhaustive-ui-core-menu.d.ts +1 -1
- package/types/exhaustive-ui-core-menubar.d.ts +1 -1
- package/types/exhaustive-ui-core-message.d.ts +1 -1
- package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
- package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
- package/types/exhaustive-ui-core-orderlist.d.ts +1 -1
- package/types/exhaustive-ui-core-organizationchart.d.ts +1 -1
- package/types/exhaustive-ui-core-paginator.d.ts +1 -1
- package/types/exhaustive-ui-core-panel.d.ts +1 -1
- package/types/exhaustive-ui-core-panelmenu.d.ts +1 -1
- package/types/exhaustive-ui-core-password.d.ts +1 -1
- package/types/exhaustive-ui-core-picklist.d.ts +1 -1
- package/types/exhaustive-ui-core-progressbar.d.ts +1 -1
- package/types/exhaustive-ui-core-progressspinner.d.ts +1 -1
- package/types/exhaustive-ui-core-radiobutton.d.ts +1 -1
- package/types/exhaustive-ui-core-rating.d.ts +1 -1
- package/types/exhaustive-ui-core-ripple.d.ts +1 -1
- package/types/exhaustive-ui-core-scroller.d.ts +1 -1
- package/types/exhaustive-ui-core-scrollpanel.d.ts +1 -1
- package/types/exhaustive-ui-core-scrolltop.d.ts +1 -1
- package/types/exhaustive-ui-core-select.d.ts +1 -1
- package/types/exhaustive-ui-core-selectbutton.d.ts +1 -1
- package/types/exhaustive-ui-core-skeleton.d.ts +1 -1
- package/types/exhaustive-ui-core-slider.d.ts +1 -1
- package/types/exhaustive-ui-core-speeddial.d.ts +1 -1
- package/types/exhaustive-ui-core-splitbutton.d.ts +1 -1
- package/types/exhaustive-ui-core-splitter.d.ts +1 -1
- package/types/exhaustive-ui-core-stepper.d.ts +1 -1
- package/types/exhaustive-ui-core-steps.d.ts +1 -1
- package/types/exhaustive-ui-core-table.d.ts +1 -1
- package/types/exhaustive-ui-core-tabs.d.ts +1 -1
- package/types/exhaustive-ui-core-tag.d.ts +1 -1
- package/types/exhaustive-ui-core-terminal.d.ts +1 -1
- package/types/exhaustive-ui-core-textarea.d.ts +1 -1
- package/types/exhaustive-ui-core-tieredmenu.d.ts +1 -1
- package/types/exhaustive-ui-core-timeline.d.ts +1 -1
- package/types/exhaustive-ui-core-toast.d.ts +1 -1
- package/types/exhaustive-ui-core-togglebutton.d.ts +1 -1
- package/types/exhaustive-ui-core-toggleswitch.d.ts +1 -1
- package/types/exhaustive-ui-core-toolbar.d.ts +1 -1
- package/types/exhaustive-ui-core-tooltip.d.ts +1 -1
- package/types/exhaustive-ui-core-tree.d.ts +1 -1
- package/types/exhaustive-ui-core-treeselect.d.ts +1 -1
- package/types/exhaustive-ui-core-treetable.d.ts +1 -1
|
@@ -51,7 +51,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
51
51
|
*
|
|
52
52
|
* FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
|
|
53
53
|
*
|
|
54
|
-
* [Live Demo](https://exhaustive-ui.
|
|
54
|
+
* [Live Demo](https://exhaustive-ui.com/fileupload/)
|
|
55
55
|
*
|
|
56
56
|
* @module fileuploadstyle
|
|
57
57
|
*
|
|
@@ -993,460 +993,544 @@ class FileUpload extends BaseComponent {
|
|
|
993
993
|
}
|
|
994
994
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: FileUpload, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
995
995
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: FileUpload, isStandalone: true, selector: "p-fileupload, p-fileUpload", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, invalidFileSizeMessageSummary: { classPropertyName: "invalidFileSizeMessageSummary", publicName: "invalidFileSizeMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, invalidFileSizeMessageDetail: { classPropertyName: "invalidFileSizeMessageDetail", publicName: "invalidFileSizeMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileTypeMessageSummary: { classPropertyName: "invalidFileTypeMessageSummary", publicName: "invalidFileTypeMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, invalidFileTypeMessageDetail: { classPropertyName: "invalidFileTypeMessageDetail", publicName: "invalidFileTypeMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileLimitMessageDetail: { classPropertyName: "invalidFileLimitMessageDetail", publicName: "invalidFileLimitMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileLimitMessageSummary: { classPropertyName: "invalidFileLimitMessageSummary", publicName: "invalidFileLimitMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, previewWidth: { classPropertyName: "previewWidth", publicName: "previewWidth", isSignal: true, isRequired: false, transformFunction: null }, chooseLabel: { classPropertyName: "chooseLabel", publicName: "chooseLabel", isSignal: true, isRequired: false, transformFunction: null }, uploadLabel: { classPropertyName: "uploadLabel", publicName: "uploadLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, chooseIcon: { classPropertyName: "chooseIcon", publicName: "chooseIcon", isSignal: true, isRequired: false, transformFunction: null }, uploadIcon: { classPropertyName: "uploadIcon", publicName: "uploadIcon", isSignal: true, isRequired: false, transformFunction: null }, cancelIcon: { classPropertyName: "cancelIcon", publicName: "cancelIcon", isSignal: true, isRequired: false, transformFunction: null }, showUploadButton: { classPropertyName: "showUploadButton", publicName: "showUploadButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null }, fileLimit: { classPropertyName: "fileLimit", publicName: "fileLimit", isSignal: true, isRequired: false, transformFunction: null }, uploadStyleClass: { classPropertyName: "uploadStyleClass", publicName: "uploadStyleClass", isSignal: true, isRequired: false, transformFunction: null }, cancelStyleClass: { classPropertyName: "cancelStyleClass", publicName: "cancelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, chooseStyleClass: { classPropertyName: "chooseStyleClass", publicName: "chooseStyleClass", isSignal: true, isRequired: false, transformFunction: null }, chooseButtonProps: { classPropertyName: "chooseButtonProps", publicName: "chooseButtonProps", isSignal: true, isRequired: false, transformFunction: null }, uploadButtonProps: { classPropertyName: "uploadButtonProps", publicName: "uploadButtonProps", isSignal: true, isRequired: false, transformFunction: null }, cancelButtonProps: { classPropertyName: "cancelButtonProps", publicName: "cancelButtonProps", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null } }, 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, { provide: FILEUPLOAD_INSTANCE, useExisting: FileUpload }, { provide: PARENT_INSTANCE, useExisting: FileUpload }], queries: [{ propertyName: "fileTemplate", first: true, predicate: ["file"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "toolbarTemplate", first: true, predicate: ["toolbar"], isSignal: true }, { propertyName: "chooseIconTemplate", first: true, predicate: ["chooseicon"], isSignal: true }, { propertyName: "fileLabelTemplate", first: true, predicate: ["filelabel"], isSignal: true }, { propertyName: "uploadIconTemplate", first: true, predicate: ["uploadicon"], isSignal: true }, { propertyName: "cancelIconTemplate", first: true, predicate: ["cancelicon"], isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "advancedFileInput", first: true, predicate: ["advancedfileinput"], descendants: true, isSignal: true }, { propertyName: "basicFileInput", first: true, predicate: ["basicfileinput"], descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
|
|
996
|
-
|
|
997
|
-
<
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
<
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
(focus)="onFocus()"
|
|
1014
|
-
[label]="chooseButtonLabel()"
|
|
1015
|
-
(blur)="onBlur()"
|
|
1016
|
-
(onClick)="choose()"
|
|
1017
|
-
(keydown.enter)="choose()"
|
|
1018
|
-
[buttonProps]="chooseButtonProps()"
|
|
1019
|
-
[pt]="ptm('pcChooseButton')"
|
|
1020
|
-
[unstyled]="unstyled()"
|
|
1021
|
-
>
|
|
1022
|
-
<input
|
|
1023
|
-
[attr.aria-label]="browseFilesLabel()"
|
|
1024
|
-
#advancedfileinput
|
|
1025
|
-
type="file"
|
|
1026
|
-
(change)="onFileSelect($event)"
|
|
1027
|
-
[multiple]="multiple()"
|
|
1028
|
-
[accept]="accept()"
|
|
996
|
+
@if (mode() === 'advanced') {
|
|
997
|
+
<div [class]="cn(cx('root'), styleClass())" [ngStyle]="style()" [pBind]="ptm('root')">
|
|
998
|
+
<input
|
|
999
|
+
[attr.aria-label]="browseFilesLabel()"
|
|
1000
|
+
#advancedfileinput
|
|
1001
|
+
type="file"
|
|
1002
|
+
(change)="onFileSelect($event)"
|
|
1003
|
+
[multiple]="multiple()"
|
|
1004
|
+
[accept]="accept()"
|
|
1005
|
+
[disabled]="disabled() || isChooseDisabled()"
|
|
1006
|
+
[attr.title]="''"
|
|
1007
|
+
[pBind]="ptm('input')"
|
|
1008
|
+
/>
|
|
1009
|
+
<div [class]="cx('header')" [pBind]="ptm('header')">
|
|
1010
|
+
@if (!headerTemplate() && !_headerTemplate()) {
|
|
1011
|
+
<p-button
|
|
1012
|
+
[styleClass]="cn(cx('pcChooseButton'), chooseStyleClass())"
|
|
1029
1013
|
[disabled]="disabled() || isChooseDisabled()"
|
|
1030
|
-
|
|
1031
|
-
[
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1014
|
+
(focus)="onFocus()"
|
|
1015
|
+
[label]="chooseButtonLabel()"
|
|
1016
|
+
(blur)="onBlur()"
|
|
1017
|
+
(onClick)="choose()"
|
|
1018
|
+
(keydown.enter)="choose()"
|
|
1019
|
+
[buttonProps]="chooseButtonProps()"
|
|
1020
|
+
[pt]="ptm('pcChooseButton')"
|
|
1021
|
+
[unstyled]="unstyled()"
|
|
1022
|
+
>
|
|
1023
|
+
<input
|
|
1024
|
+
[attr.aria-label]="browseFilesLabel()"
|
|
1025
|
+
#advancedfileinput
|
|
1026
|
+
type="file"
|
|
1027
|
+
(change)="onFileSelect($event)"
|
|
1028
|
+
[multiple]="multiple()"
|
|
1029
|
+
[accept]="accept()"
|
|
1030
|
+
[disabled]="disabled() || isChooseDisabled()"
|
|
1031
|
+
[attr.title]="''"
|
|
1032
|
+
[pBind]="ptm('input')"
|
|
1033
|
+
/>
|
|
1034
|
+
<ng-template #icon>
|
|
1035
|
+
@if (chooseIcon()) {
|
|
1036
|
+
<span [class]="chooseIcon()" [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1037
|
+
}
|
|
1038
|
+
@if (!chooseIcon()) {
|
|
1039
|
+
@if (!chooseIconTemplate() && !_chooseIconTemplate()) {
|
|
1040
|
+
<svg data-p-icon="plus" [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1041
|
+
}
|
|
1042
|
+
@if (chooseIconTemplate() || _chooseIconTemplate()) {
|
|
1043
|
+
<span [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon">
|
|
1044
|
+
<ng-template *ngTemplateOutlet="chooseIconTemplate() || _chooseIconTemplate()"></ng-template>
|
|
1045
|
+
</span>
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
</ng-template>
|
|
1049
|
+
</p-button>
|
|
1043
1050
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
[buttonProps]="cancelButtonProps()"
|
|
1071
|
-
[pt]="ptm('pcCancelButton')"
|
|
1072
|
-
[unstyled]="unstyled()"
|
|
1073
|
-
>
|
|
1074
|
-
<ng-template #icon>
|
|
1075
|
-
<span *ngIf="cancelIcon()" [ngClass]="cancelIcon()"></span>
|
|
1076
|
-
<ng-container *ngIf="!cancelIcon()">
|
|
1077
|
-
<svg data-p-icon="times" *ngIf="!cancelIconTemplate() && !_cancelIconTemplate()" [attr.aria-hidden]="true" />
|
|
1078
|
-
<span *ngIf="cancelIconTemplate() || _cancelIconTemplate()" [attr.aria-hidden]="true">
|
|
1079
|
-
<ng-template *ngTemplateOutlet="cancelIconTemplate() || _cancelIconTemplate()"></ng-template>
|
|
1080
|
-
</span>
|
|
1081
|
-
</ng-container>
|
|
1082
|
-
</ng-template>
|
|
1083
|
-
</p-button>
|
|
1084
|
-
</ng-container>
|
|
1085
|
-
<ng-container
|
|
1086
|
-
*ngTemplateOutlet="
|
|
1087
|
-
headerTemplate() || _headerTemplate();
|
|
1088
|
-
context: {
|
|
1089
|
-
$implicit: _files(),
|
|
1090
|
-
uploadedFiles: uploadedFiles(),
|
|
1091
|
-
chooseCallback: choose.bind(this),
|
|
1092
|
-
clearCallback: clear.bind(this),
|
|
1093
|
-
uploadCallback: upload.bind(this)
|
|
1051
|
+
@if (!auto() && showUploadButton()) {
|
|
1052
|
+
<p-button
|
|
1053
|
+
[label]="uploadButtonLabel()"
|
|
1054
|
+
(onClick)="upload()"
|
|
1055
|
+
[disabled]="!hasFiles() || isFileLimitExceeded()"
|
|
1056
|
+
[styleClass]="cn(cx('pcUploadButton'), uploadStyleClass())"
|
|
1057
|
+
[buttonProps]="uploadButtonProps()"
|
|
1058
|
+
[pt]="ptm('pcUploadButton')"
|
|
1059
|
+
[unstyled]="unstyled()"
|
|
1060
|
+
>
|
|
1061
|
+
<ng-template #icon>
|
|
1062
|
+
@if (uploadIcon()) {
|
|
1063
|
+
<span [ngClass]="uploadIcon()" [attr.aria-hidden]="true" [pBind]="ptm('pcUploadButton')?.icon"></span>
|
|
1064
|
+
}
|
|
1065
|
+
@if (!uploadIcon()) {
|
|
1066
|
+
@if (!uploadIconTemplate() && !_uploadIconTemplate()) {
|
|
1067
|
+
<svg data-p-icon="upload" [pBind]="ptm('pcUploadButton')?.icon" />
|
|
1068
|
+
}
|
|
1069
|
+
@if (uploadIconTemplate() || _uploadIconTemplate()) {
|
|
1070
|
+
<span [attr.aria-hidden]="true" [pBind]="ptm('pcUploadButton')?.icon">
|
|
1071
|
+
<ng-template *ngTemplateOutlet="uploadIconTemplate() || _uploadIconTemplate()"></ng-template>
|
|
1072
|
+
</span>
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
</ng-template>
|
|
1076
|
+
</p-button>
|
|
1094
1077
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1078
|
+
@if (!auto() && showCancelButton()) {
|
|
1079
|
+
<p-button
|
|
1080
|
+
[label]="cancelButtonLabel()"
|
|
1081
|
+
(onClick)="clear()"
|
|
1082
|
+
[disabled]="!hasFiles() || uploading()"
|
|
1083
|
+
[styleClass]="cn(cx('pcCancelButton'), cancelStyleClass())"
|
|
1084
|
+
[buttonProps]="cancelButtonProps()"
|
|
1085
|
+
[pt]="ptm('pcCancelButton')"
|
|
1086
|
+
[unstyled]="unstyled()"
|
|
1087
|
+
>
|
|
1088
|
+
<ng-template #icon>
|
|
1089
|
+
@if (cancelIcon()) {
|
|
1090
|
+
<span [ngClass]="cancelIcon()"></span>
|
|
1091
|
+
}
|
|
1092
|
+
@if (!cancelIcon()) {
|
|
1093
|
+
@if (!cancelIconTemplate() && !_cancelIconTemplate()) {
|
|
1094
|
+
<svg data-p-icon="times" [attr.aria-hidden]="true" />
|
|
1095
|
+
}
|
|
1096
|
+
@if (cancelIconTemplate() || _cancelIconTemplate()) {
|
|
1097
|
+
<span [attr.aria-hidden]="true">
|
|
1098
|
+
<ng-template *ngTemplateOutlet="cancelIconTemplate() || _cancelIconTemplate()"></ng-template>
|
|
1099
|
+
</span>
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
</ng-template>
|
|
1103
|
+
</p-button>
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1101
1106
|
<ng-container
|
|
1102
1107
|
*ngTemplateOutlet="
|
|
1103
|
-
|
|
1108
|
+
headerTemplate() || _headerTemplate();
|
|
1104
1109
|
context: {
|
|
1105
1110
|
$implicit: _files(),
|
|
1106
1111
|
uploadedFiles: uploadedFiles(),
|
|
1107
1112
|
chooseCallback: choose.bind(this),
|
|
1108
1113
|
clearCallback: clear.bind(this),
|
|
1109
|
-
|
|
1110
|
-
removeFileCallback: remove.bind(this),
|
|
1111
|
-
progress: progress(),
|
|
1112
|
-
messages: msgs()
|
|
1114
|
+
uploadCallback: upload.bind(this)
|
|
1113
1115
|
}
|
|
1114
1116
|
"
|
|
1115
1117
|
></ng-container>
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1118
|
+
<ng-container *ngTemplateOutlet="toolbarTemplate() || _toolbarTemplate()"></ng-container>
|
|
1119
|
+
</div>
|
|
1120
|
+
<div #content [class]="cx('content')" (dragenter)="onDragEnter($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)" [pBind]="ptm('content')">
|
|
1121
|
+
@if (contentTemplate() || _contentTemplate()) {
|
|
1122
|
+
<ng-container
|
|
1123
|
+
*ngTemplateOutlet="
|
|
1124
|
+
contentTemplate() || _contentTemplate();
|
|
1125
|
+
context: {
|
|
1126
|
+
$implicit: _files(),
|
|
1127
|
+
uploadedFiles: uploadedFiles(),
|
|
1128
|
+
chooseCallback: choose.bind(this),
|
|
1129
|
+
clearCallback: clear.bind(this),
|
|
1130
|
+
removeUploadedFileCallback: removeUploadedFile.bind(this),
|
|
1131
|
+
removeFileCallback: remove.bind(this),
|
|
1132
|
+
progress: progress(),
|
|
1133
|
+
messages: msgs()
|
|
1134
|
+
}
|
|
1135
|
+
"
|
|
1136
|
+
></ng-container>
|
|
1137
|
+
} @else {
|
|
1138
|
+
@if (hasFiles()) {
|
|
1139
|
+
<p-progressbar [value]="progress()" [showValue]="false" [pt]="ptm('pcProgressBar')"></p-progressbar>
|
|
1140
|
+
}
|
|
1141
|
+
@for (message of msgs(); track message) {
|
|
1142
|
+
<p-message [severity]="message.severity" [text]="message.text" [pt]="ptm('pcMessage')" [unstyled]="unstyled()"></p-message>
|
|
1143
|
+
}
|
|
1121
1144
|
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1145
|
+
@if (hasFiles()) {
|
|
1146
|
+
<div [class]="cx('fileList')" [pBind]="ptm('fileList')">
|
|
1147
|
+
@for (file of _files(); track file) {
|
|
1148
|
+
<ng-container *ngTemplateOutlet="fileTemplate() || _fileTemplate(); context: { $implicit: file, ngForOf: _files(), index: $index, count: $count, first: $first, last: $last, even: $even, odd: $odd }"></ng-container>
|
|
1149
|
+
}
|
|
1150
|
+
@if (!fileTemplate() && !_fileTemplate()) {
|
|
1151
|
+
<div
|
|
1152
|
+
pFileContent
|
|
1153
|
+
[unstyled]="unstyled()"
|
|
1154
|
+
[files]="_files()"
|
|
1155
|
+
(onRemove)="onRemoveClick($event)"
|
|
1156
|
+
[badgeValue]="pendingLabel()"
|
|
1157
|
+
[previewWidth]="previewWidth()"
|
|
1158
|
+
[fileRemoveIconTemplate]="cancelIconTemplate() || _cancelIconTemplate()"
|
|
1159
|
+
></div>
|
|
1160
|
+
}
|
|
1161
|
+
</div>
|
|
1162
|
+
}
|
|
1163
|
+
@if (hasUploadedFiles()) {
|
|
1164
|
+
<div [class]="cx('fileList')" [pBind]="ptm('fileList')">
|
|
1165
|
+
@for (file of uploadedFiles(); track file) {
|
|
1166
|
+
<ng-container
|
|
1167
|
+
*ngTemplateOutlet="fileTemplate() || _fileTemplate(); context: { $implicit: file, ngForOf: uploadedFiles(), index: $index, count: $count, first: $first, last: $last, even: $even, odd: $odd }"
|
|
1168
|
+
></ng-container>
|
|
1169
|
+
}
|
|
1170
|
+
@if (!fileTemplate() && !_fileTemplate()) {
|
|
1171
|
+
<div
|
|
1172
|
+
pFileContent
|
|
1173
|
+
[unstyled]="unstyled()"
|
|
1174
|
+
[files]="uploadedFiles()"
|
|
1175
|
+
(onRemove)="onRemoveUploadedFileClick($event)"
|
|
1176
|
+
[badgeValue]="completedLabel()"
|
|
1177
|
+
badgeSeverity="success"
|
|
1178
|
+
[previewWidth]="previewWidth()"
|
|
1179
|
+
[fileRemoveIconTemplate]="cancelIconTemplate() || _cancelIconTemplate()"
|
|
1180
|
+
></div>
|
|
1181
|
+
}
|
|
1182
|
+
</div>
|
|
1183
|
+
}
|
|
1137
1184
|
}
|
|
1138
|
-
@if (hasUploadedFiles()) {
|
|
1139
|
-
<
|
|
1140
|
-
<ng-template ngFor [ngForOf]="uploadedFiles()" [ngForTemplate]="fileTemplate() || _fileTemplate()"></ng-template>
|
|
1141
|
-
@if (!fileTemplate() && !_fileTemplate()) {
|
|
1142
|
-
<div
|
|
1143
|
-
pFileContent
|
|
1144
|
-
[unstyled]="unstyled()"
|
|
1145
|
-
[files]="uploadedFiles()"
|
|
1146
|
-
(onRemove)="onRemoveUploadedFileClick($event)"
|
|
1147
|
-
[badgeValue]="completedLabel()"
|
|
1148
|
-
badgeSeverity="success"
|
|
1149
|
-
[previewWidth]="previewWidth()"
|
|
1150
|
-
[fileRemoveIconTemplate]="cancelIconTemplate() || _cancelIconTemplate()"
|
|
1151
|
-
></div>
|
|
1152
|
-
}
|
|
1153
|
-
</div>
|
|
1185
|
+
@if ((emptyTemplate() || _emptyTemplate()) && !hasFiles() && !hasUploadedFiles()) {
|
|
1186
|
+
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()" [pBind]="ptm('empty')"></ng-container>
|
|
1154
1187
|
}
|
|
1155
|
-
|
|
1156
|
-
@if ((emptyTemplate() || _emptyTemplate()) && !hasFiles() && !hasUploadedFiles()) {
|
|
1157
|
-
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()" [pBind]="ptm('empty')"></ng-container>
|
|
1158
|
-
}
|
|
1188
|
+
</div>
|
|
1159
1189
|
</div>
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
<div [class]="cx('basicContent')" [pBind]="ptm('basicContent')">
|
|
1167
|
-
<p-button
|
|
1168
|
-
[styleClass]="cn(cx('pcChooseButton'), chooseStyleClass())"
|
|
1169
|
-
[disabled]="disabled()"
|
|
1170
|
-
[label]="chooseButtonLabel()"
|
|
1171
|
-
[style]="style()"
|
|
1172
|
-
(onClick)="onBasicUploaderClick()"
|
|
1173
|
-
(keydown)="onBasicKeydown($event)"
|
|
1174
|
-
[buttonProps]="chooseButtonProps()"
|
|
1175
|
-
[pt]="ptm('pcChooseButton')"
|
|
1176
|
-
[unstyled]="unstyled()"
|
|
1177
|
-
>
|
|
1178
|
-
<ng-template #icon>
|
|
1179
|
-
@if (hasFiles() && !auto()) {
|
|
1180
|
-
<span *ngIf="uploadIcon()" class="p-button-icon p-button-icon-left" [ngClass]="uploadIcon()" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1181
|
-
<ng-container *ngIf="!uploadIcon()">
|
|
1182
|
-
<svg data-p-icon="upload" *ngIf="!uploadIconTemplate() && !_uploadIconTemplate()" [class]="'p-button-icon p-button-icon-left'" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1183
|
-
<span *ngIf="_uploadIconTemplate() || uploadIconTemplate()" class="p-button-icon p-button-icon-left" [pBind]="ptm('pcChooseButton')?.icon">
|
|
1184
|
-
<ng-template *ngTemplateOutlet="_uploadIconTemplate() || uploadIconTemplate()"></ng-template>
|
|
1185
|
-
</span>
|
|
1186
|
-
</ng-container>
|
|
1187
|
-
} @else {
|
|
1188
|
-
<span *ngIf="chooseIcon()" class="p-button-icon p-button-icon-left pi" [ngClass]="chooseIcon()" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1189
|
-
<ng-container *ngIf="!chooseIcon()">
|
|
1190
|
-
<svg data-p-icon="plus" *ngIf="!chooseIconTemplate() && !_chooseIconTemplate()" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1191
|
-
<ng-template *ngTemplateOutlet="chooseIconTemplate() || _chooseIconTemplate()"></ng-template>
|
|
1192
|
-
</ng-container>
|
|
1193
|
-
}
|
|
1194
|
-
</ng-template>
|
|
1195
|
-
<input
|
|
1196
|
-
[attr.aria-label]="browseFilesLabel()"
|
|
1197
|
-
#basicfileinput
|
|
1198
|
-
type="file"
|
|
1199
|
-
[accept]="accept()"
|
|
1200
|
-
[multiple]="multiple()"
|
|
1201
|
-
[disabled]="disabled()"
|
|
1202
|
-
(change)="onFileSelect($event)"
|
|
1203
|
-
(focus)="onFocus()"
|
|
1204
|
-
(blur)="onBlur()"
|
|
1205
|
-
[pBind]="ptm('input')"
|
|
1206
|
-
/>
|
|
1207
|
-
</p-button>
|
|
1208
|
-
@if (!auto()) {
|
|
1209
|
-
@if (!fileLabelTemplate() && !_fileLabelTemplate()) {
|
|
1210
|
-
<span>
|
|
1211
|
-
{{ basicFileChosenLabel() }}
|
|
1212
|
-
</span>
|
|
1213
|
-
} @else {
|
|
1214
|
-
<ng-container *ngTemplateOutlet="fileLabelTemplate() || _fileLabelTemplate(); context: { $implicit: _files() }"></ng-container>
|
|
1215
|
-
}
|
|
1190
|
+
}
|
|
1191
|
+
@if (mode() === 'basic') {
|
|
1192
|
+
<div [class]="cn(cx('root'), styleClass())" [pBind]="ptm('root')">
|
|
1193
|
+
@for (message of msgs(); track message) {
|
|
1194
|
+
<p-message [severity]="message.severity" [text]="message.text" [pt]="ptm('pcMessage')" [unstyled]="unstyled()"></p-message>
|
|
1216
1195
|
}
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
`, 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: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ProgressBar, selector: "p-progressBar, p-progressbar, p-progress-bar", inputs: ["value", "showValue", "valueStyleClass", "unit", "mode", "color"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "closable", "icon", "closeIcon", "life", "size", "variant", "motionOptions"], outputs: ["onClose"] }, { kind: "component", type: PlusIcon, selector: "[data-p-icon=\"plus\"]" }, { kind: "component", type: UploadIcon, selector: "[data-p-icon=\"upload\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: FileContent, selector: "[pFileContent]", inputs: ["files", "badgeSeverity", "badgeValue", "previewWidth", "fileRemoveIconTemplate"], outputs: ["onRemove"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1220
|
-
}
|
|
1221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: FileUpload, decorators: [{
|
|
1222
|
-
type: Component,
|
|
1223
|
-
args: [{
|
|
1224
|
-
selector: 'p-fileupload, p-fileUpload',
|
|
1225
|
-
imports: [CommonModule, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule, FileContent, Bind],
|
|
1226
|
-
template: `
|
|
1227
|
-
<div [class]="cn(cx('root'), styleClass())" [ngStyle]="style()" *ngIf="mode() === 'advanced'" [pBind]="ptm('root')">
|
|
1228
|
-
<input
|
|
1229
|
-
[attr.aria-label]="browseFilesLabel()"
|
|
1230
|
-
#advancedfileinput
|
|
1231
|
-
type="file"
|
|
1232
|
-
(change)="onFileSelect($event)"
|
|
1233
|
-
[multiple]="multiple()"
|
|
1234
|
-
[accept]="accept()"
|
|
1235
|
-
[disabled]="disabled() || isChooseDisabled()"
|
|
1236
|
-
[attr.title]="''"
|
|
1237
|
-
[pBind]="ptm('input')"
|
|
1238
|
-
/>
|
|
1239
|
-
<div [class]="cx('header')" [pBind]="ptm('header')">
|
|
1240
|
-
<ng-container *ngIf="!headerTemplate() && !_headerTemplate()">
|
|
1196
|
+
|
|
1197
|
+
<div [class]="cx('basicContent')" [pBind]="ptm('basicContent')">
|
|
1241
1198
|
<p-button
|
|
1242
1199
|
[styleClass]="cn(cx('pcChooseButton'), chooseStyleClass())"
|
|
1243
|
-
[disabled]="disabled()
|
|
1244
|
-
(focus)="onFocus()"
|
|
1200
|
+
[disabled]="disabled()"
|
|
1245
1201
|
[label]="chooseButtonLabel()"
|
|
1246
|
-
|
|
1247
|
-
(onClick)="
|
|
1248
|
-
(keydown
|
|
1202
|
+
[style]="style()"
|
|
1203
|
+
(onClick)="onBasicUploaderClick()"
|
|
1204
|
+
(keydown)="onBasicKeydown($event)"
|
|
1249
1205
|
[buttonProps]="chooseButtonProps()"
|
|
1250
1206
|
[pt]="ptm('pcChooseButton')"
|
|
1251
1207
|
[unstyled]="unstyled()"
|
|
1252
1208
|
>
|
|
1209
|
+
<ng-template #icon>
|
|
1210
|
+
@if (hasFiles() && !auto()) {
|
|
1211
|
+
@if (uploadIcon()) {
|
|
1212
|
+
<span class="p-button-icon p-button-icon-left" [ngClass]="uploadIcon()" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1213
|
+
}
|
|
1214
|
+
@if (!uploadIcon()) {
|
|
1215
|
+
@if (!uploadIconTemplate() && !_uploadIconTemplate()) {
|
|
1216
|
+
<svg data-p-icon="upload" [class]="'p-button-icon p-button-icon-left'" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1217
|
+
}
|
|
1218
|
+
@if (_uploadIconTemplate() || uploadIconTemplate()) {
|
|
1219
|
+
<span class="p-button-icon p-button-icon-left" [pBind]="ptm('pcChooseButton')?.icon">
|
|
1220
|
+
<ng-template *ngTemplateOutlet="_uploadIconTemplate() || uploadIconTemplate()"></ng-template>
|
|
1221
|
+
</span>
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
} @else {
|
|
1225
|
+
@if (chooseIcon()) {
|
|
1226
|
+
<span class="p-button-icon p-button-icon-left pi" [ngClass]="chooseIcon()" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1227
|
+
}
|
|
1228
|
+
@if (!chooseIcon()) {
|
|
1229
|
+
@if (!chooseIconTemplate() && !_chooseIconTemplate()) {
|
|
1230
|
+
<svg data-p-icon="plus" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1231
|
+
}
|
|
1232
|
+
<ng-template *ngTemplateOutlet="chooseIconTemplate() || _chooseIconTemplate()"></ng-template>
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
</ng-template>
|
|
1253
1236
|
<input
|
|
1254
1237
|
[attr.aria-label]="browseFilesLabel()"
|
|
1255
|
-
#
|
|
1238
|
+
#basicfileinput
|
|
1256
1239
|
type="file"
|
|
1257
|
-
(change)="onFileSelect($event)"
|
|
1258
|
-
[multiple]="multiple()"
|
|
1259
1240
|
[accept]="accept()"
|
|
1260
|
-
[
|
|
1261
|
-
[
|
|
1241
|
+
[multiple]="multiple()"
|
|
1242
|
+
[disabled]="disabled()"
|
|
1243
|
+
(change)="onFileSelect($event)"
|
|
1244
|
+
(focus)="onFocus()"
|
|
1245
|
+
(blur)="onBlur()"
|
|
1262
1246
|
[pBind]="ptm('input')"
|
|
1263
1247
|
/>
|
|
1264
|
-
<ng-template #icon>
|
|
1265
|
-
<span *ngIf="chooseIcon()" [class]="chooseIcon()" [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1266
|
-
<ng-container *ngIf="!chooseIcon()">
|
|
1267
|
-
<svg data-p-icon="plus" *ngIf="!chooseIconTemplate() && !_chooseIconTemplate()" [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1268
|
-
<span *ngIf="chooseIconTemplate() || _chooseIconTemplate()" [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon">
|
|
1269
|
-
<ng-template *ngTemplateOutlet="chooseIconTemplate() || _chooseIconTemplate()"></ng-template>
|
|
1270
|
-
</span>
|
|
1271
|
-
</ng-container>
|
|
1272
|
-
</ng-template>
|
|
1273
1248
|
</p-button>
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
[buttonProps]="uploadButtonProps()"
|
|
1282
|
-
[pt]="ptm('pcUploadButton')"
|
|
1283
|
-
[unstyled]="unstyled()"
|
|
1284
|
-
>
|
|
1285
|
-
<ng-template #icon>
|
|
1286
|
-
<span *ngIf="uploadIcon()" [ngClass]="uploadIcon()" [attr.aria-hidden]="true" [pBind]="ptm('pcUploadButton')?.icon"></span>
|
|
1287
|
-
<ng-container *ngIf="!uploadIcon()">
|
|
1288
|
-
<svg data-p-icon="upload" *ngIf="!uploadIconTemplate() && !_uploadIconTemplate()" [pBind]="ptm('pcUploadButton')?.icon" />
|
|
1289
|
-
<span *ngIf="uploadIconTemplate() || _uploadIconTemplate()" [attr.aria-hidden]="true" [pBind]="ptm('pcUploadButton')?.icon">
|
|
1290
|
-
<ng-template *ngTemplateOutlet="uploadIconTemplate() || _uploadIconTemplate()"></ng-template>
|
|
1291
|
-
</span>
|
|
1292
|
-
</ng-container>
|
|
1293
|
-
</ng-template>
|
|
1294
|
-
</p-button>
|
|
1295
|
-
<p-button
|
|
1296
|
-
*ngIf="!auto() && showCancelButton()"
|
|
1297
|
-
[label]="cancelButtonLabel()"
|
|
1298
|
-
(onClick)="clear()"
|
|
1299
|
-
[disabled]="!hasFiles() || uploading()"
|
|
1300
|
-
[styleClass]="cn(cx('pcCancelButton'), cancelStyleClass())"
|
|
1301
|
-
[buttonProps]="cancelButtonProps()"
|
|
1302
|
-
[pt]="ptm('pcCancelButton')"
|
|
1303
|
-
[unstyled]="unstyled()"
|
|
1304
|
-
>
|
|
1305
|
-
<ng-template #icon>
|
|
1306
|
-
<span *ngIf="cancelIcon()" [ngClass]="cancelIcon()"></span>
|
|
1307
|
-
<ng-container *ngIf="!cancelIcon()">
|
|
1308
|
-
<svg data-p-icon="times" *ngIf="!cancelIconTemplate() && !_cancelIconTemplate()" [attr.aria-hidden]="true" />
|
|
1309
|
-
<span *ngIf="cancelIconTemplate() || _cancelIconTemplate()" [attr.aria-hidden]="true">
|
|
1310
|
-
<ng-template *ngTemplateOutlet="cancelIconTemplate() || _cancelIconTemplate()"></ng-template>
|
|
1311
|
-
</span>
|
|
1312
|
-
</ng-container>
|
|
1313
|
-
</ng-template>
|
|
1314
|
-
</p-button>
|
|
1315
|
-
</ng-container>
|
|
1316
|
-
<ng-container
|
|
1317
|
-
*ngTemplateOutlet="
|
|
1318
|
-
headerTemplate() || _headerTemplate();
|
|
1319
|
-
context: {
|
|
1320
|
-
$implicit: _files(),
|
|
1321
|
-
uploadedFiles: uploadedFiles(),
|
|
1322
|
-
chooseCallback: choose.bind(this),
|
|
1323
|
-
clearCallback: clear.bind(this),
|
|
1324
|
-
uploadCallback: upload.bind(this)
|
|
1249
|
+
@if (!auto()) {
|
|
1250
|
+
@if (!fileLabelTemplate() && !_fileLabelTemplate()) {
|
|
1251
|
+
<span>
|
|
1252
|
+
{{ basicFileChosenLabel() }}
|
|
1253
|
+
</span>
|
|
1254
|
+
} @else {
|
|
1255
|
+
<ng-container *ngTemplateOutlet="fileLabelTemplate() || _fileLabelTemplate(); context: { $implicit: _files() }"></ng-container>
|
|
1325
1256
|
}
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
<ng-container *ngTemplateOutlet="toolbarTemplate() || _toolbarTemplate()"></ng-container>
|
|
1257
|
+
}
|
|
1258
|
+
</div>
|
|
1329
1259
|
</div>
|
|
1330
|
-
|
|
1331
|
-
|
|
1260
|
+
}
|
|
1261
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ProgressBar, selector: "p-progressBar, p-progressbar, p-progress-bar", inputs: ["value", "showValue", "valueStyleClass", "unit", "mode", "color"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "closable", "icon", "closeIcon", "life", "size", "variant", "motionOptions"], outputs: ["onClose"] }, { kind: "component", type: PlusIcon, selector: "[data-p-icon=\"plus\"]" }, { kind: "component", type: UploadIcon, selector: "[data-p-icon=\"upload\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: FileContent, selector: "[pFileContent]", inputs: ["files", "badgeSeverity", "badgeValue", "previewWidth", "fileRemoveIconTemplate"], outputs: ["onRemove"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1262
|
+
}
|
|
1263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: FileUpload, decorators: [{
|
|
1264
|
+
type: Component,
|
|
1265
|
+
args: [{
|
|
1266
|
+
selector: 'p-fileupload, p-fileUpload',
|
|
1267
|
+
imports: [CommonModule, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule, FileContent, Bind],
|
|
1268
|
+
template: `
|
|
1269
|
+
@if (mode() === 'advanced') {
|
|
1270
|
+
<div [class]="cn(cx('root'), styleClass())" [ngStyle]="style()" [pBind]="ptm('root')">
|
|
1271
|
+
<input
|
|
1272
|
+
[attr.aria-label]="browseFilesLabel()"
|
|
1273
|
+
#advancedfileinput
|
|
1274
|
+
type="file"
|
|
1275
|
+
(change)="onFileSelect($event)"
|
|
1276
|
+
[multiple]="multiple()"
|
|
1277
|
+
[accept]="accept()"
|
|
1278
|
+
[disabled]="disabled() || isChooseDisabled()"
|
|
1279
|
+
[attr.title]="''"
|
|
1280
|
+
[pBind]="ptm('input')"
|
|
1281
|
+
/>
|
|
1282
|
+
<div [class]="cx('header')" [pBind]="ptm('header')">
|
|
1283
|
+
@if (!headerTemplate() && !_headerTemplate()) {
|
|
1284
|
+
<p-button
|
|
1285
|
+
[styleClass]="cn(cx('pcChooseButton'), chooseStyleClass())"
|
|
1286
|
+
[disabled]="disabled() || isChooseDisabled()"
|
|
1287
|
+
(focus)="onFocus()"
|
|
1288
|
+
[label]="chooseButtonLabel()"
|
|
1289
|
+
(blur)="onBlur()"
|
|
1290
|
+
(onClick)="choose()"
|
|
1291
|
+
(keydown.enter)="choose()"
|
|
1292
|
+
[buttonProps]="chooseButtonProps()"
|
|
1293
|
+
[pt]="ptm('pcChooseButton')"
|
|
1294
|
+
[unstyled]="unstyled()"
|
|
1295
|
+
>
|
|
1296
|
+
<input
|
|
1297
|
+
[attr.aria-label]="browseFilesLabel()"
|
|
1298
|
+
#advancedfileinput
|
|
1299
|
+
type="file"
|
|
1300
|
+
(change)="onFileSelect($event)"
|
|
1301
|
+
[multiple]="multiple()"
|
|
1302
|
+
[accept]="accept()"
|
|
1303
|
+
[disabled]="disabled() || isChooseDisabled()"
|
|
1304
|
+
[attr.title]="''"
|
|
1305
|
+
[pBind]="ptm('input')"
|
|
1306
|
+
/>
|
|
1307
|
+
<ng-template #icon>
|
|
1308
|
+
@if (chooseIcon()) {
|
|
1309
|
+
<span [class]="chooseIcon()" [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1310
|
+
}
|
|
1311
|
+
@if (!chooseIcon()) {
|
|
1312
|
+
@if (!chooseIconTemplate() && !_chooseIconTemplate()) {
|
|
1313
|
+
<svg data-p-icon="plus" [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1314
|
+
}
|
|
1315
|
+
@if (chooseIconTemplate() || _chooseIconTemplate()) {
|
|
1316
|
+
<span [attr.aria-label]="true" [pBind]="ptm('pcChooseButton')?.icon">
|
|
1317
|
+
<ng-template *ngTemplateOutlet="chooseIconTemplate() || _chooseIconTemplate()"></ng-template>
|
|
1318
|
+
</span>
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
</ng-template>
|
|
1322
|
+
</p-button>
|
|
1323
|
+
|
|
1324
|
+
@if (!auto() && showUploadButton()) {
|
|
1325
|
+
<p-button
|
|
1326
|
+
[label]="uploadButtonLabel()"
|
|
1327
|
+
(onClick)="upload()"
|
|
1328
|
+
[disabled]="!hasFiles() || isFileLimitExceeded()"
|
|
1329
|
+
[styleClass]="cn(cx('pcUploadButton'), uploadStyleClass())"
|
|
1330
|
+
[buttonProps]="uploadButtonProps()"
|
|
1331
|
+
[pt]="ptm('pcUploadButton')"
|
|
1332
|
+
[unstyled]="unstyled()"
|
|
1333
|
+
>
|
|
1334
|
+
<ng-template #icon>
|
|
1335
|
+
@if (uploadIcon()) {
|
|
1336
|
+
<span [ngClass]="uploadIcon()" [attr.aria-hidden]="true" [pBind]="ptm('pcUploadButton')?.icon"></span>
|
|
1337
|
+
}
|
|
1338
|
+
@if (!uploadIcon()) {
|
|
1339
|
+
@if (!uploadIconTemplate() && !_uploadIconTemplate()) {
|
|
1340
|
+
<svg data-p-icon="upload" [pBind]="ptm('pcUploadButton')?.icon" />
|
|
1341
|
+
}
|
|
1342
|
+
@if (uploadIconTemplate() || _uploadIconTemplate()) {
|
|
1343
|
+
<span [attr.aria-hidden]="true" [pBind]="ptm('pcUploadButton')?.icon">
|
|
1344
|
+
<ng-template *ngTemplateOutlet="uploadIconTemplate() || _uploadIconTemplate()"></ng-template>
|
|
1345
|
+
</span>
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
</ng-template>
|
|
1349
|
+
</p-button>
|
|
1350
|
+
}
|
|
1351
|
+
@if (!auto() && showCancelButton()) {
|
|
1352
|
+
<p-button
|
|
1353
|
+
[label]="cancelButtonLabel()"
|
|
1354
|
+
(onClick)="clear()"
|
|
1355
|
+
[disabled]="!hasFiles() || uploading()"
|
|
1356
|
+
[styleClass]="cn(cx('pcCancelButton'), cancelStyleClass())"
|
|
1357
|
+
[buttonProps]="cancelButtonProps()"
|
|
1358
|
+
[pt]="ptm('pcCancelButton')"
|
|
1359
|
+
[unstyled]="unstyled()"
|
|
1360
|
+
>
|
|
1361
|
+
<ng-template #icon>
|
|
1362
|
+
@if (cancelIcon()) {
|
|
1363
|
+
<span [ngClass]="cancelIcon()"></span>
|
|
1364
|
+
}
|
|
1365
|
+
@if (!cancelIcon()) {
|
|
1366
|
+
@if (!cancelIconTemplate() && !_cancelIconTemplate()) {
|
|
1367
|
+
<svg data-p-icon="times" [attr.aria-hidden]="true" />
|
|
1368
|
+
}
|
|
1369
|
+
@if (cancelIconTemplate() || _cancelIconTemplate()) {
|
|
1370
|
+
<span [attr.aria-hidden]="true">
|
|
1371
|
+
<ng-template *ngTemplateOutlet="cancelIconTemplate() || _cancelIconTemplate()"></ng-template>
|
|
1372
|
+
</span>
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
</ng-template>
|
|
1376
|
+
</p-button>
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1332
1379
|
<ng-container
|
|
1333
1380
|
*ngTemplateOutlet="
|
|
1334
|
-
|
|
1381
|
+
headerTemplate() || _headerTemplate();
|
|
1335
1382
|
context: {
|
|
1336
1383
|
$implicit: _files(),
|
|
1337
1384
|
uploadedFiles: uploadedFiles(),
|
|
1338
1385
|
chooseCallback: choose.bind(this),
|
|
1339
1386
|
clearCallback: clear.bind(this),
|
|
1340
|
-
|
|
1341
|
-
removeFileCallback: remove.bind(this),
|
|
1342
|
-
progress: progress(),
|
|
1343
|
-
messages: msgs()
|
|
1387
|
+
uploadCallback: upload.bind(this)
|
|
1344
1388
|
}
|
|
1345
1389
|
"
|
|
1346
1390
|
></ng-container>
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1391
|
+
<ng-container *ngTemplateOutlet="toolbarTemplate() || _toolbarTemplate()"></ng-container>
|
|
1392
|
+
</div>
|
|
1393
|
+
<div #content [class]="cx('content')" (dragenter)="onDragEnter($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)" [pBind]="ptm('content')">
|
|
1394
|
+
@if (contentTemplate() || _contentTemplate()) {
|
|
1395
|
+
<ng-container
|
|
1396
|
+
*ngTemplateOutlet="
|
|
1397
|
+
contentTemplate() || _contentTemplate();
|
|
1398
|
+
context: {
|
|
1399
|
+
$implicit: _files(),
|
|
1400
|
+
uploadedFiles: uploadedFiles(),
|
|
1401
|
+
chooseCallback: choose.bind(this),
|
|
1402
|
+
clearCallback: clear.bind(this),
|
|
1403
|
+
removeUploadedFileCallback: removeUploadedFile.bind(this),
|
|
1404
|
+
removeFileCallback: remove.bind(this),
|
|
1405
|
+
progress: progress(),
|
|
1406
|
+
messages: msgs()
|
|
1407
|
+
}
|
|
1408
|
+
"
|
|
1409
|
+
></ng-container>
|
|
1410
|
+
} @else {
|
|
1411
|
+
@if (hasFiles()) {
|
|
1412
|
+
<p-progressbar [value]="progress()" [showValue]="false" [pt]="ptm('pcProgressBar')"></p-progressbar>
|
|
1413
|
+
}
|
|
1414
|
+
@for (message of msgs(); track message) {
|
|
1415
|
+
<p-message [severity]="message.severity" [text]="message.text" [pt]="ptm('pcMessage')" [unstyled]="unstyled()"></p-message>
|
|
1416
|
+
}
|
|
1352
1417
|
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1418
|
+
@if (hasFiles()) {
|
|
1419
|
+
<div [class]="cx('fileList')" [pBind]="ptm('fileList')">
|
|
1420
|
+
@for (file of _files(); track file) {
|
|
1421
|
+
<ng-container *ngTemplateOutlet="fileTemplate() || _fileTemplate(); context: { $implicit: file, ngForOf: _files(), index: $index, count: $count, first: $first, last: $last, even: $even, odd: $odd }"></ng-container>
|
|
1422
|
+
}
|
|
1423
|
+
@if (!fileTemplate() && !_fileTemplate()) {
|
|
1424
|
+
<div
|
|
1425
|
+
pFileContent
|
|
1426
|
+
[unstyled]="unstyled()"
|
|
1427
|
+
[files]="_files()"
|
|
1428
|
+
(onRemove)="onRemoveClick($event)"
|
|
1429
|
+
[badgeValue]="pendingLabel()"
|
|
1430
|
+
[previewWidth]="previewWidth()"
|
|
1431
|
+
[fileRemoveIconTemplate]="cancelIconTemplate() || _cancelIconTemplate()"
|
|
1432
|
+
></div>
|
|
1433
|
+
}
|
|
1434
|
+
</div>
|
|
1435
|
+
}
|
|
1436
|
+
@if (hasUploadedFiles()) {
|
|
1437
|
+
<div [class]="cx('fileList')" [pBind]="ptm('fileList')">
|
|
1438
|
+
@for (file of uploadedFiles(); track file) {
|
|
1439
|
+
<ng-container
|
|
1440
|
+
*ngTemplateOutlet="fileTemplate() || _fileTemplate(); context: { $implicit: file, ngForOf: uploadedFiles(), index: $index, count: $count, first: $first, last: $last, even: $even, odd: $odd }"
|
|
1441
|
+
></ng-container>
|
|
1442
|
+
}
|
|
1443
|
+
@if (!fileTemplate() && !_fileTemplate()) {
|
|
1444
|
+
<div
|
|
1445
|
+
pFileContent
|
|
1446
|
+
[unstyled]="unstyled()"
|
|
1447
|
+
[files]="uploadedFiles()"
|
|
1448
|
+
(onRemove)="onRemoveUploadedFileClick($event)"
|
|
1449
|
+
[badgeValue]="completedLabel()"
|
|
1450
|
+
badgeSeverity="success"
|
|
1451
|
+
[previewWidth]="previewWidth()"
|
|
1452
|
+
[fileRemoveIconTemplate]="cancelIconTemplate() || _cancelIconTemplate()"
|
|
1453
|
+
></div>
|
|
1454
|
+
}
|
|
1455
|
+
</div>
|
|
1456
|
+
}
|
|
1368
1457
|
}
|
|
1369
|
-
@if (hasUploadedFiles()) {
|
|
1370
|
-
<
|
|
1371
|
-
<ng-template ngFor [ngForOf]="uploadedFiles()" [ngForTemplate]="fileTemplate() || _fileTemplate()"></ng-template>
|
|
1372
|
-
@if (!fileTemplate() && !_fileTemplate()) {
|
|
1373
|
-
<div
|
|
1374
|
-
pFileContent
|
|
1375
|
-
[unstyled]="unstyled()"
|
|
1376
|
-
[files]="uploadedFiles()"
|
|
1377
|
-
(onRemove)="onRemoveUploadedFileClick($event)"
|
|
1378
|
-
[badgeValue]="completedLabel()"
|
|
1379
|
-
badgeSeverity="success"
|
|
1380
|
-
[previewWidth]="previewWidth()"
|
|
1381
|
-
[fileRemoveIconTemplate]="cancelIconTemplate() || _cancelIconTemplate()"
|
|
1382
|
-
></div>
|
|
1383
|
-
}
|
|
1384
|
-
</div>
|
|
1458
|
+
@if ((emptyTemplate() || _emptyTemplate()) && !hasFiles() && !hasUploadedFiles()) {
|
|
1459
|
+
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()" [pBind]="ptm('empty')"></ng-container>
|
|
1385
1460
|
}
|
|
1386
|
-
|
|
1387
|
-
@if ((emptyTemplate() || _emptyTemplate()) && !hasFiles() && !hasUploadedFiles()) {
|
|
1388
|
-
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()" [pBind]="ptm('empty')"></ng-container>
|
|
1389
|
-
}
|
|
1461
|
+
</div>
|
|
1390
1462
|
</div>
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1463
|
+
}
|
|
1464
|
+
@if (mode() === 'basic') {
|
|
1465
|
+
<div [class]="cn(cx('root'), styleClass())" [pBind]="ptm('root')">
|
|
1466
|
+
@for (message of msgs(); track message) {
|
|
1467
|
+
<p-message [severity]="message.severity" [text]="message.text" [pt]="ptm('pcMessage')" [unstyled]="unstyled()"></p-message>
|
|
1468
|
+
}
|
|
1396
1469
|
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1470
|
+
<div [class]="cx('basicContent')" [pBind]="ptm('basicContent')">
|
|
1471
|
+
<p-button
|
|
1472
|
+
[styleClass]="cn(cx('pcChooseButton'), chooseStyleClass())"
|
|
1473
|
+
[disabled]="disabled()"
|
|
1474
|
+
[label]="chooseButtonLabel()"
|
|
1475
|
+
[style]="style()"
|
|
1476
|
+
(onClick)="onBasicUploaderClick()"
|
|
1477
|
+
(keydown)="onBasicKeydown($event)"
|
|
1478
|
+
[buttonProps]="chooseButtonProps()"
|
|
1479
|
+
[pt]="ptm('pcChooseButton')"
|
|
1480
|
+
[unstyled]="unstyled()"
|
|
1481
|
+
>
|
|
1482
|
+
<ng-template #icon>
|
|
1483
|
+
@if (hasFiles() && !auto()) {
|
|
1484
|
+
@if (uploadIcon()) {
|
|
1485
|
+
<span class="p-button-icon p-button-icon-left" [ngClass]="uploadIcon()" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1486
|
+
}
|
|
1487
|
+
@if (!uploadIcon()) {
|
|
1488
|
+
@if (!uploadIconTemplate() && !_uploadIconTemplate()) {
|
|
1489
|
+
<svg data-p-icon="upload" [class]="'p-button-icon p-button-icon-left'" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1490
|
+
}
|
|
1491
|
+
@if (_uploadIconTemplate() || uploadIconTemplate()) {
|
|
1492
|
+
<span class="p-button-icon p-button-icon-left" [pBind]="ptm('pcChooseButton')?.icon">
|
|
1493
|
+
<ng-template *ngTemplateOutlet="_uploadIconTemplate() || uploadIconTemplate()"></ng-template>
|
|
1494
|
+
</span>
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
} @else {
|
|
1498
|
+
@if (chooseIcon()) {
|
|
1499
|
+
<span class="p-button-icon p-button-icon-left pi" [ngClass]="chooseIcon()" [pBind]="ptm('pcChooseButton')?.icon"></span>
|
|
1500
|
+
}
|
|
1501
|
+
@if (!chooseIcon()) {
|
|
1502
|
+
@if (!chooseIconTemplate() && !_chooseIconTemplate()) {
|
|
1503
|
+
<svg data-p-icon="plus" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1504
|
+
}
|
|
1505
|
+
<ng-template *ngTemplateOutlet="chooseIconTemplate() || _chooseIconTemplate()"></ng-template>
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
</ng-template>
|
|
1509
|
+
<input
|
|
1510
|
+
[attr.aria-label]="browseFilesLabel()"
|
|
1511
|
+
#basicfileinput
|
|
1512
|
+
type="file"
|
|
1513
|
+
[accept]="accept()"
|
|
1514
|
+
[multiple]="multiple()"
|
|
1515
|
+
[disabled]="disabled()"
|
|
1516
|
+
(change)="onFileSelect($event)"
|
|
1517
|
+
(focus)="onFocus()"
|
|
1518
|
+
(blur)="onBlur()"
|
|
1519
|
+
[pBind]="ptm('input')"
|
|
1520
|
+
/>
|
|
1521
|
+
</p-button>
|
|
1522
|
+
@if (!auto()) {
|
|
1523
|
+
@if (!fileLabelTemplate() && !_fileLabelTemplate()) {
|
|
1524
|
+
<span>
|
|
1525
|
+
{{ basicFileChosenLabel() }}
|
|
1526
|
+
</span>
|
|
1418
1527
|
} @else {
|
|
1419
|
-
<
|
|
1420
|
-
<ng-container *ngIf="!chooseIcon()">
|
|
1421
|
-
<svg data-p-icon="plus" *ngIf="!chooseIconTemplate() && !_chooseIconTemplate()" [pBind]="ptm('pcChooseButton')?.icon" />
|
|
1422
|
-
<ng-template *ngTemplateOutlet="chooseIconTemplate() || _chooseIconTemplate()"></ng-template>
|
|
1423
|
-
</ng-container>
|
|
1528
|
+
<ng-container *ngTemplateOutlet="fileLabelTemplate() || _fileLabelTemplate(); context: { $implicit: _files() }"></ng-container>
|
|
1424
1529
|
}
|
|
1425
|
-
</ng-template>
|
|
1426
|
-
<input
|
|
1427
|
-
[attr.aria-label]="browseFilesLabel()"
|
|
1428
|
-
#basicfileinput
|
|
1429
|
-
type="file"
|
|
1430
|
-
[accept]="accept()"
|
|
1431
|
-
[multiple]="multiple()"
|
|
1432
|
-
[disabled]="disabled()"
|
|
1433
|
-
(change)="onFileSelect($event)"
|
|
1434
|
-
(focus)="onFocus()"
|
|
1435
|
-
(blur)="onBlur()"
|
|
1436
|
-
[pBind]="ptm('input')"
|
|
1437
|
-
/>
|
|
1438
|
-
</p-button>
|
|
1439
|
-
@if (!auto()) {
|
|
1440
|
-
@if (!fileLabelTemplate() && !_fileLabelTemplate()) {
|
|
1441
|
-
<span>
|
|
1442
|
-
{{ basicFileChosenLabel() }}
|
|
1443
|
-
</span>
|
|
1444
|
-
} @else {
|
|
1445
|
-
<ng-container *ngTemplateOutlet="fileLabelTemplate() || _fileLabelTemplate(); context: { $implicit: _files() }"></ng-container>
|
|
1446
1530
|
}
|
|
1447
|
-
|
|
1531
|
+
</div>
|
|
1448
1532
|
</div>
|
|
1449
|
-
|
|
1533
|
+
}
|
|
1450
1534
|
`,
|
|
1451
1535
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1452
1536
|
encapsulation: ViewEncapsulation.None,
|