primenglab 22.0.0-beta.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/LICENSE.md +77 -0
- package/README.md +11 -0
- package/fesm2022/primenglab-accordion.mjs +656 -0
- package/fesm2022/primenglab-accordion.mjs.map +1 -0
- package/fesm2022/primenglab-animateonscroll.mjs +166 -0
- package/fesm2022/primenglab-animateonscroll.mjs.map +1 -0
- package/fesm2022/primenglab-api.mjs +850 -0
- package/fesm2022/primenglab-api.mjs.map +1 -0
- package/fesm2022/primenglab-autocomplete.mjs +2140 -0
- package/fesm2022/primenglab-autocomplete.mjs.map +1 -0
- package/fesm2022/primenglab-autofocus.mjs +78 -0
- package/fesm2022/primenglab-autofocus.mjs.map +1 -0
- package/fesm2022/primenglab-avatar.mjs +211 -0
- package/fesm2022/primenglab-avatar.mjs.map +1 -0
- package/fesm2022/primenglab-avatargroup.mjs +99 -0
- package/fesm2022/primenglab-avatargroup.mjs.map +1 -0
- package/fesm2022/primenglab-badge.mjs +161 -0
- package/fesm2022/primenglab-badge.mjs.map +1 -0
- package/fesm2022/primenglab-base.mjs +124 -0
- package/fesm2022/primenglab-base.mjs.map +1 -0
- package/fesm2022/primenglab-basecomponent.mjs +477 -0
- package/fesm2022/primenglab-basecomponent.mjs.map +1 -0
- package/fesm2022/primenglab-baseeditableholder.mjs +70 -0
- package/fesm2022/primenglab-baseeditableholder.mjs.map +1 -0
- package/fesm2022/primenglab-baseinput.mjs +100 -0
- package/fesm2022/primenglab-baseinput.mjs.map +1 -0
- package/fesm2022/primenglab-basemodelholder.mjs +27 -0
- package/fesm2022/primenglab-basemodelholder.mjs.map +1 -0
- package/fesm2022/primenglab-bind.mjs +97 -0
- package/fesm2022/primenglab-bind.mjs.map +1 -0
- package/fesm2022/primenglab-blockui.mjs +240 -0
- package/fesm2022/primenglab-blockui.mjs.map +1 -0
- package/fesm2022/primenglab-breadcrumb.mjs +582 -0
- package/fesm2022/primenglab-breadcrumb.mjs.map +1 -0
- package/fesm2022/primenglab-button.mjs +799 -0
- package/fesm2022/primenglab-button.mjs.map +1 -0
- package/fesm2022/primenglab-buttongroup.mjs +110 -0
- package/fesm2022/primenglab-buttongroup.mjs.map +1 -0
- package/fesm2022/primenglab-card.mjs +252 -0
- package/fesm2022/primenglab-card.mjs.map +1 -0
- package/fesm2022/primenglab-carousel.mjs +2052 -0
- package/fesm2022/primenglab-carousel.mjs.map +1 -0
- package/fesm2022/primenglab-cascadeselect.mjs +1756 -0
- package/fesm2022/primenglab-cascadeselect.mjs.map +1 -0
- package/fesm2022/primenglab-chart.mjs +235 -0
- package/fesm2022/primenglab-chart.mjs.map +1 -0
- package/fesm2022/primenglab-checkbox.mjs +441 -0
- package/fesm2022/primenglab-checkbox.mjs.map +1 -0
- package/fesm2022/primenglab-chip.mjs +304 -0
- package/fesm2022/primenglab-chip.mjs.map +1 -0
- package/fesm2022/primenglab-classnames.mjs +49 -0
- package/fesm2022/primenglab-classnames.mjs.map +1 -0
- package/fesm2022/primenglab-colorpicker.mjs +741 -0
- package/fesm2022/primenglab-colorpicker.mjs.map +1 -0
- package/fesm2022/primenglab-commandmenu.mjs +419 -0
- package/fesm2022/primenglab-commandmenu.mjs.map +1 -0
- package/fesm2022/primenglab-compare.mjs +520 -0
- package/fesm2022/primenglab-compare.mjs.map +1 -0
- package/fesm2022/primenglab-config.mjs +322 -0
- package/fesm2022/primenglab-config.mjs.map +1 -0
- package/fesm2022/primenglab-confirmdialog.mjs +746 -0
- package/fesm2022/primenglab-confirmdialog.mjs.map +1 -0
- package/fesm2022/primenglab-confirmpopup.mjs +685 -0
- package/fesm2022/primenglab-confirmpopup.mjs.map +1 -0
- package/fesm2022/primenglab-contextmenu.mjs +1485 -0
- package/fesm2022/primenglab-contextmenu.mjs.map +1 -0
- package/fesm2022/primenglab-dataview.mjs +765 -0
- package/fesm2022/primenglab-dataview.mjs.map +1 -0
- package/fesm2022/primenglab-datepicker.mjs +4373 -0
- package/fesm2022/primenglab-datepicker.mjs.map +1 -0
- package/fesm2022/primenglab-dialog.mjs +1234 -0
- package/fesm2022/primenglab-dialog.mjs.map +1 -0
- package/fesm2022/primenglab-divider.mjs +160 -0
- package/fesm2022/primenglab-divider.mjs.map +1 -0
- package/fesm2022/primenglab-dock.mjs +580 -0
- package/fesm2022/primenglab-dock.mjs.map +1 -0
- package/fesm2022/primenglab-dom.mjs +778 -0
- package/fesm2022/primenglab-dom.mjs.map +1 -0
- package/fesm2022/primenglab-dragdrop.mjs +312 -0
- package/fesm2022/primenglab-dragdrop.mjs.map +1 -0
- package/fesm2022/primenglab-drawer.mjs +708 -0
- package/fesm2022/primenglab-drawer.mjs.map +1 -0
- package/fesm2022/primenglab-dynamicdialog.mjs +1096 -0
- package/fesm2022/primenglab-dynamicdialog.mjs.map +1 -0
- package/fesm2022/primenglab-editor.mjs +496 -0
- package/fesm2022/primenglab-editor.mjs.map +1 -0
- package/fesm2022/primenglab-fieldset.mjs +418 -0
- package/fesm2022/primenglab-fieldset.mjs.map +1 -0
- package/fesm2022/primenglab-fileupload.mjs +1486 -0
- package/fesm2022/primenglab-fileupload.mjs.map +1 -0
- package/fesm2022/primenglab-floatlabel.mjs +106 -0
- package/fesm2022/primenglab-floatlabel.mjs.map +1 -0
- package/fesm2022/primenglab-fluid.mjs +89 -0
- package/fesm2022/primenglab-fluid.mjs.map +1 -0
- package/fesm2022/primenglab-focustrap.mjs +113 -0
- package/fesm2022/primenglab-focustrap.mjs.map +1 -0
- package/fesm2022/primenglab-galleria.mjs +1854 -0
- package/fesm2022/primenglab-galleria.mjs.map +1 -0
- package/fesm2022/primenglab-gallery.mjs +1859 -0
- package/fesm2022/primenglab-gallery.mjs.map +1 -0
- package/fesm2022/primenglab-iconfield.mjs +97 -0
- package/fesm2022/primenglab-iconfield.mjs.map +1 -0
- package/fesm2022/primenglab-icons-angledoubledown.mjs +37 -0
- package/fesm2022/primenglab-icons-angledoubledown.mjs.map +1 -0
- package/fesm2022/primenglab-icons-angledoubleleft.mjs +37 -0
- package/fesm2022/primenglab-icons-angledoubleleft.mjs.map +1 -0
- package/fesm2022/primenglab-icons-angledoubleright.mjs +37 -0
- package/fesm2022/primenglab-icons-angledoubleright.mjs.map +1 -0
- package/fesm2022/primenglab-icons-angledoubleup.mjs +37 -0
- package/fesm2022/primenglab-icons-angledoubleup.mjs.map +1 -0
- package/fesm2022/primenglab-icons-angledown.mjs +33 -0
- package/fesm2022/primenglab-icons-angledown.mjs.map +1 -0
- package/fesm2022/primenglab-icons-angleleft.mjs +33 -0
- package/fesm2022/primenglab-icons-angleleft.mjs.map +1 -0
- package/fesm2022/primenglab-icons-angleright.mjs +33 -0
- package/fesm2022/primenglab-icons-angleright.mjs.map +1 -0
- package/fesm2022/primenglab-icons-angleup.mjs +33 -0
- package/fesm2022/primenglab-icons-angleup.mjs.map +1 -0
- package/fesm2022/primenglab-icons-arrowdown.mjs +56 -0
- package/fesm2022/primenglab-icons-arrowdown.mjs.map +1 -0
- package/fesm2022/primenglab-icons-arrowdownleft.mjs +33 -0
- package/fesm2022/primenglab-icons-arrowdownleft.mjs.map +1 -0
- package/fesm2022/primenglab-icons-arrowdownright.mjs +33 -0
- package/fesm2022/primenglab-icons-arrowdownright.mjs.map +1 -0
- package/fesm2022/primenglab-icons-arrowleft.mjs +56 -0
- package/fesm2022/primenglab-icons-arrowleft.mjs.map +1 -0
- package/fesm2022/primenglab-icons-arrowright.mjs +37 -0
- package/fesm2022/primenglab-icons-arrowright.mjs.map +1 -0
- package/fesm2022/primenglab-icons-arrowup.mjs +56 -0
- package/fesm2022/primenglab-icons-arrowup.mjs.map +1 -0
- package/fesm2022/primenglab-icons-ban.mjs +52 -0
- package/fesm2022/primenglab-icons-ban.mjs.map +1 -0
- package/fesm2022/primenglab-icons-bars.mjs +37 -0
- package/fesm2022/primenglab-icons-bars.mjs.map +1 -0
- package/fesm2022/primenglab-icons-baseicon.mjs +103 -0
- package/fesm2022/primenglab-icons-baseicon.mjs.map +1 -0
- package/fesm2022/primenglab-icons-blank.mjs +23 -0
- package/fesm2022/primenglab-icons-blank.mjs.map +1 -0
- package/fesm2022/primenglab-icons-calendar.mjs +33 -0
- package/fesm2022/primenglab-icons-calendar.mjs.map +1 -0
- package/fesm2022/primenglab-icons-caretleft.mjs +33 -0
- package/fesm2022/primenglab-icons-caretleft.mjs.map +1 -0
- package/fesm2022/primenglab-icons-caretright.mjs +33 -0
- package/fesm2022/primenglab-icons-caretright.mjs.map +1 -0
- package/fesm2022/primenglab-icons-check.mjs +33 -0
- package/fesm2022/primenglab-icons-check.mjs.map +1 -0
- package/fesm2022/primenglab-icons-chevrondown.mjs +33 -0
- package/fesm2022/primenglab-icons-chevrondown.mjs.map +1 -0
- package/fesm2022/primenglab-icons-chevronleft.mjs +33 -0
- package/fesm2022/primenglab-icons-chevronleft.mjs.map +1 -0
- package/fesm2022/primenglab-icons-chevronright.mjs +33 -0
- package/fesm2022/primenglab-icons-chevronright.mjs.map +1 -0
- package/fesm2022/primenglab-icons-chevronup.mjs +33 -0
- package/fesm2022/primenglab-icons-chevronup.mjs.map +1 -0
- package/fesm2022/primenglab-icons-exclamationtriangle.mjs +68 -0
- package/fesm2022/primenglab-icons-exclamationtriangle.mjs.map +1 -0
- package/fesm2022/primenglab-icons-eye.mjs +37 -0
- package/fesm2022/primenglab-icons-eye.mjs.map +1 -0
- package/fesm2022/primenglab-icons-eyeslash.mjs +56 -0
- package/fesm2022/primenglab-icons-eyeslash.mjs.map +1 -0
- package/fesm2022/primenglab-icons-filter.mjs +52 -0
- package/fesm2022/primenglab-icons-filter.mjs.map +1 -0
- package/fesm2022/primenglab-icons-filterfill.mjs +33 -0
- package/fesm2022/primenglab-icons-filterfill.mjs.map +1 -0
- package/fesm2022/primenglab-icons-filterslash.mjs +56 -0
- package/fesm2022/primenglab-icons-filterslash.mjs.map +1 -0
- package/fesm2022/primenglab-icons-home.mjs +56 -0
- package/fesm2022/primenglab-icons-home.mjs.map +1 -0
- package/fesm2022/primenglab-icons-infocircle.mjs +56 -0
- package/fesm2022/primenglab-icons-infocircle.mjs.map +1 -0
- package/fesm2022/primenglab-icons-minus.mjs +33 -0
- package/fesm2022/primenglab-icons-minus.mjs.map +1 -0
- package/fesm2022/primenglab-icons-pencil.mjs +52 -0
- package/fesm2022/primenglab-icons-pencil.mjs.map +1 -0
- package/fesm2022/primenglab-icons-plus.mjs +52 -0
- package/fesm2022/primenglab-icons-plus.mjs.map +1 -0
- package/fesm2022/primenglab-icons-refresh.mjs +56 -0
- package/fesm2022/primenglab-icons-refresh.mjs.map +1 -0
- package/fesm2022/primenglab-icons-search.mjs +56 -0
- package/fesm2022/primenglab-icons-search.mjs.map +1 -0
- package/fesm2022/primenglab-icons-searchminus.mjs +56 -0
- package/fesm2022/primenglab-icons-searchminus.mjs.map +1 -0
- package/fesm2022/primenglab-icons-searchplus.mjs +56 -0
- package/fesm2022/primenglab-icons-searchplus.mjs.map +1 -0
- package/fesm2022/primenglab-icons-sortalt.mjs +64 -0
- package/fesm2022/primenglab-icons-sortalt.mjs.map +1 -0
- package/fesm2022/primenglab-icons-sortamountdown.mjs +52 -0
- package/fesm2022/primenglab-icons-sortamountdown.mjs.map +1 -0
- package/fesm2022/primenglab-icons-sortamountupalt.mjs +52 -0
- package/fesm2022/primenglab-icons-sortamountupalt.mjs.map +1 -0
- package/fesm2022/primenglab-icons-spinner.mjs +52 -0
- package/fesm2022/primenglab-icons-spinner.mjs.map +1 -0
- package/fesm2022/primenglab-icons-star.mjs +52 -0
- package/fesm2022/primenglab-icons-star.mjs.map +1 -0
- package/fesm2022/primenglab-icons-starfill.mjs +52 -0
- package/fesm2022/primenglab-icons-starfill.mjs.map +1 -0
- package/fesm2022/primenglab-icons-thlarge.mjs +56 -0
- package/fesm2022/primenglab-icons-thlarge.mjs.map +1 -0
- package/fesm2022/primenglab-icons-times.mjs +33 -0
- package/fesm2022/primenglab-icons-times.mjs.map +1 -0
- package/fesm2022/primenglab-icons-timescircle.mjs +56 -0
- package/fesm2022/primenglab-icons-timescircle.mjs.map +1 -0
- package/fesm2022/primenglab-icons-trash.mjs +56 -0
- package/fesm2022/primenglab-icons-trash.mjs.map +1 -0
- package/fesm2022/primenglab-icons-undo.mjs +56 -0
- package/fesm2022/primenglab-icons-undo.mjs.map +1 -0
- package/fesm2022/primenglab-icons-upload.mjs +56 -0
- package/fesm2022/primenglab-icons-upload.mjs.map +1 -0
- package/fesm2022/primenglab-icons-windowmaximize.mjs +56 -0
- package/fesm2022/primenglab-icons-windowmaximize.mjs.map +1 -0
- package/fesm2022/primenglab-icons-windowminimize.mjs +56 -0
- package/fesm2022/primenglab-icons-windowminimize.mjs.map +1 -0
- package/fesm2022/primenglab-icons.mjs +63 -0
- package/fesm2022/primenglab-icons.mjs.map +1 -0
- package/fesm2022/primenglab-iftalabel.mjs +90 -0
- package/fesm2022/primenglab-iftalabel.mjs.map +1 -0
- package/fesm2022/primenglab-image.mjs +728 -0
- package/fesm2022/primenglab-image.mjs.map +1 -0
- package/fesm2022/primenglab-imagecompare.mjs +177 -0
- package/fesm2022/primenglab-imagecompare.mjs.map +1 -0
- package/fesm2022/primenglab-inplace.mjs +237 -0
- package/fesm2022/primenglab-inplace.mjs.map +1 -0
- package/fesm2022/primenglab-inputcolor.mjs +2262 -0
- package/fesm2022/primenglab-inputcolor.mjs.map +1 -0
- package/fesm2022/primenglab-inputgroup.mjs +121 -0
- package/fesm2022/primenglab-inputgroup.mjs.map +1 -0
- package/fesm2022/primenglab-inputgroupaddon.mjs +70 -0
- package/fesm2022/primenglab-inputgroupaddon.mjs.map +1 -0
- package/fesm2022/primenglab-inputicon.mjs +74 -0
- package/fesm2022/primenglab-inputicon.mjs.map +1 -0
- package/fesm2022/primenglab-inputmask.mjs +1495 -0
- package/fesm2022/primenglab-inputmask.mjs.map +1 -0
- package/fesm2022/primenglab-inputnumber.mjs +1624 -0
- package/fesm2022/primenglab-inputnumber.mjs.map +1 -0
- package/fesm2022/primenglab-inputotp.mjs +445 -0
- package/fesm2022/primenglab-inputotp.mjs.map +1 -0
- package/fesm2022/primenglab-inputpassword.mjs +102 -0
- package/fesm2022/primenglab-inputpassword.mjs.map +1 -0
- package/fesm2022/primenglab-inputtags.mjs +748 -0
- package/fesm2022/primenglab-inputtags.mjs.map +1 -0
- package/fesm2022/primenglab-inputtext.mjs +174 -0
- package/fesm2022/primenglab-inputtext.mjs.map +1 -0
- package/fesm2022/primenglab-keyfilter.mjs +252 -0
- package/fesm2022/primenglab-keyfilter.mjs.map +1 -0
- package/fesm2022/primenglab-knob.mjs +467 -0
- package/fesm2022/primenglab-knob.mjs.map +1 -0
- package/fesm2022/primenglab-label.mjs +85 -0
- package/fesm2022/primenglab-label.mjs.map +1 -0
- package/fesm2022/primenglab-license.mjs +39 -0
- package/fesm2022/primenglab-license.mjs.map +1 -0
- package/fesm2022/primenglab-listbox.mjs +2108 -0
- package/fesm2022/primenglab-listbox.mjs.map +1 -0
- package/fesm2022/primenglab-megamenu.mjs +1595 -0
- package/fesm2022/primenglab-megamenu.mjs.map +1 -0
- package/fesm2022/primenglab-menu.mjs +1224 -0
- package/fesm2022/primenglab-menu.mjs.map +1 -0
- package/fesm2022/primenglab-menubar.mjs +1448 -0
- package/fesm2022/primenglab-menubar.mjs.map +1 -0
- package/fesm2022/primenglab-message.mjs +306 -0
- package/fesm2022/primenglab-message.mjs.map +1 -0
- package/fesm2022/primenglab-metergroup.mjs +412 -0
- package/fesm2022/primenglab-metergroup.mjs.map +1 -0
- package/fesm2022/primenglab-motion.mjs +719 -0
- package/fesm2022/primenglab-motion.mjs.map +1 -0
- package/fesm2022/primenglab-multiselect.mjs +2543 -0
- package/fesm2022/primenglab-multiselect.mjs.map +1 -0
- package/fesm2022/primenglab-orderlist.mjs +868 -0
- package/fesm2022/primenglab-orderlist.mjs.map +1 -0
- package/fesm2022/primenglab-organizationchart.mjs +617 -0
- package/fesm2022/primenglab-organizationchart.mjs.map +1 -0
- package/fesm2022/primenglab-overlay.mjs +751 -0
- package/fesm2022/primenglab-overlay.mjs.map +1 -0
- package/fesm2022/primenglab-overlaybadge.mjs +134 -0
- package/fesm2022/primenglab-overlaybadge.mjs.map +1 -0
- package/fesm2022/primenglab-paginator.mjs +759 -0
- package/fesm2022/primenglab-paginator.mjs.map +1 -0
- package/fesm2022/primenglab-panel.mjs +487 -0
- package/fesm2022/primenglab-panel.mjs.map +1 -0
- package/fesm2022/primenglab-panelmenu.mjs +1599 -0
- package/fesm2022/primenglab-panelmenu.mjs.map +1 -0
- package/fesm2022/primenglab-passthrough.mjs +21 -0
- package/fesm2022/primenglab-passthrough.mjs.map +1 -0
- package/fesm2022/primenglab-password.mjs +1089 -0
- package/fesm2022/primenglab-password.mjs.map +1 -0
- package/fesm2022/primenglab-picklist.mjs +1992 -0
- package/fesm2022/primenglab-picklist.mjs.map +1 -0
- package/fesm2022/primenglab-popover.mjs +488 -0
- package/fesm2022/primenglab-popover.mjs.map +1 -0
- package/fesm2022/primenglab-progressbar.mjs +200 -0
- package/fesm2022/primenglab-progressbar.mjs.map +1 -0
- package/fesm2022/primenglab-progressspinner.mjs +313 -0
- package/fesm2022/primenglab-progressspinner.mjs.map +1 -0
- package/fesm2022/primenglab-radiobutton.mjs +347 -0
- package/fesm2022/primenglab-radiobutton.mjs.map +1 -0
- package/fesm2022/primenglab-rating.mjs +488 -0
- package/fesm2022/primenglab-rating.mjs.map +1 -0
- package/fesm2022/primenglab-ripple.mjs +192 -0
- package/fesm2022/primenglab-ripple.mjs.map +1 -0
- package/fesm2022/primenglab-scrollarea.mjs +730 -0
- package/fesm2022/primenglab-scrollarea.mjs.map +1 -0
- package/fesm2022/primenglab-scroller.mjs +1183 -0
- package/fesm2022/primenglab-scroller.mjs.map +1 -0
- package/fesm2022/primenglab-scrollpanel.mjs +543 -0
- package/fesm2022/primenglab-scrollpanel.mjs.map +1 -0
- package/fesm2022/primenglab-scrolltop.mjs +323 -0
- package/fesm2022/primenglab-scrolltop.mjs.map +1 -0
- package/fesm2022/primenglab-select.mjs +2287 -0
- package/fesm2022/primenglab-select.mjs.map +1 -0
- package/fesm2022/primenglab-selectbutton.mjs +390 -0
- package/fesm2022/primenglab-selectbutton.mjs.map +1 -0
- package/fesm2022/primenglab-sidebar.mjs +1461 -0
- package/fesm2022/primenglab-sidebar.mjs.map +1 -0
- package/fesm2022/primenglab-skeleton.mjs +161 -0
- package/fesm2022/primenglab-skeleton.mjs.map +1 -0
- package/fesm2022/primenglab-slider.mjs +776 -0
- package/fesm2022/primenglab-slider.mjs.map +1 -0
- package/fesm2022/primenglab-speeddial.mjs +892 -0
- package/fesm2022/primenglab-speeddial.mjs.map +1 -0
- package/fesm2022/primenglab-splitbutton.mjs +544 -0
- package/fesm2022/primenglab-splitbutton.mjs.map +1 -0
- package/fesm2022/primenglab-splitter.mjs +853 -0
- package/fesm2022/primenglab-splitter.mjs.map +1 -0
- package/fesm2022/primenglab-stepper.mjs +724 -0
- package/fesm2022/primenglab-stepper.mjs.map +1 -0
- package/fesm2022/primenglab-steps.mjs +425 -0
- package/fesm2022/primenglab-steps.mjs.map +1 -0
- package/fesm2022/primenglab-styleclass.mjs +331 -0
- package/fesm2022/primenglab-styleclass.mjs.map +1 -0
- package/fesm2022/primenglab-table.mjs +7125 -0
- package/fesm2022/primenglab-table.mjs.map +1 -0
- package/fesm2022/primenglab-tabs.mjs +932 -0
- package/fesm2022/primenglab-tabs.mjs.map +1 -0
- package/fesm2022/primenglab-tag.mjs +179 -0
- package/fesm2022/primenglab-tag.mjs.map +1 -0
- package/fesm2022/primenglab-terminal.mjs +253 -0
- package/fesm2022/primenglab-terminal.mjs.map +1 -0
- package/fesm2022/primenglab-textarea.mjs +208 -0
- package/fesm2022/primenglab-textarea.mjs.map +1 -0
- package/fesm2022/primenglab-tieredmenu.mjs +1547 -0
- package/fesm2022/primenglab-tieredmenu.mjs.map +1 -0
- package/fesm2022/primenglab-timeline.mjs +211 -0
- package/fesm2022/primenglab-timeline.mjs.map +1 -0
- package/fesm2022/primenglab-toast.mjs +1140 -0
- package/fesm2022/primenglab-toast.mjs.map +1 -0
- package/fesm2022/primenglab-togglebutton.mjs +343 -0
- package/fesm2022/primenglab-togglebutton.mjs.map +1 -0
- package/fesm2022/primenglab-toggleswitch.mjs +296 -0
- package/fesm2022/primenglab-toggleswitch.mjs.map +1 -0
- package/fesm2022/primenglab-toolbar.mjs +167 -0
- package/fesm2022/primenglab-toolbar.mjs.map +1 -0
- package/fesm2022/primenglab-tooltip.mjs +770 -0
- package/fesm2022/primenglab-tooltip.mjs.map +1 -0
- package/fesm2022/primenglab-tree.mjs +2332 -0
- package/fesm2022/primenglab-tree.mjs.map +1 -0
- package/fesm2022/primenglab-treeselect.mjs +1263 -0
- package/fesm2022/primenglab-treeselect.mjs.map +1 -0
- package/fesm2022/primenglab-treetable.mjs +4817 -0
- package/fesm2022/primenglab-treetable.mjs.map +1 -0
- package/fesm2022/primenglab-ts-helpers.mjs +4 -0
- package/fesm2022/primenglab-ts-helpers.mjs.map +1 -0
- package/fesm2022/primenglab-types-accordion.mjs +4 -0
- package/fesm2022/primenglab-types-accordion.mjs.map +1 -0
- package/fesm2022/primenglab-types-autocomplete.mjs +4 -0
- package/fesm2022/primenglab-types-autocomplete.mjs.map +1 -0
- package/fesm2022/primenglab-types-avatar.mjs +4 -0
- package/fesm2022/primenglab-types-avatar.mjs.map +1 -0
- package/fesm2022/primenglab-types-avatargroup.mjs +4 -0
- package/fesm2022/primenglab-types-avatargroup.mjs.map +1 -0
- package/fesm2022/primenglab-types-badge.mjs +4 -0
- package/fesm2022/primenglab-types-badge.mjs.map +1 -0
- package/fesm2022/primenglab-types-blockui.mjs +4 -0
- package/fesm2022/primenglab-types-blockui.mjs.map +1 -0
- package/fesm2022/primenglab-types-breadcrumb.mjs +4 -0
- package/fesm2022/primenglab-types-breadcrumb.mjs.map +1 -0
- package/fesm2022/primenglab-types-button.mjs +4 -0
- package/fesm2022/primenglab-types-button.mjs.map +1 -0
- package/fesm2022/primenglab-types-card.mjs +4 -0
- package/fesm2022/primenglab-types-card.mjs.map +1 -0
- package/fesm2022/primenglab-types-carousel.mjs +4 -0
- package/fesm2022/primenglab-types-carousel.mjs.map +1 -0
- package/fesm2022/primenglab-types-cascadeselect.mjs +4 -0
- package/fesm2022/primenglab-types-cascadeselect.mjs.map +1 -0
- package/fesm2022/primenglab-types-chart.mjs +4 -0
- package/fesm2022/primenglab-types-chart.mjs.map +1 -0
- package/fesm2022/primenglab-types-checkbox.mjs +4 -0
- package/fesm2022/primenglab-types-checkbox.mjs.map +1 -0
- package/fesm2022/primenglab-types-chip.mjs +4 -0
- package/fesm2022/primenglab-types-chip.mjs.map +1 -0
- package/fesm2022/primenglab-types-colorpicker.mjs +4 -0
- package/fesm2022/primenglab-types-colorpicker.mjs.map +1 -0
- package/fesm2022/primenglab-types-commandmenu.mjs +4 -0
- package/fesm2022/primenglab-types-commandmenu.mjs.map +1 -0
- package/fesm2022/primenglab-types-compare.mjs +4 -0
- package/fesm2022/primenglab-types-compare.mjs.map +1 -0
- package/fesm2022/primenglab-types-confirmdialog.mjs +4 -0
- package/fesm2022/primenglab-types-confirmdialog.mjs.map +1 -0
- package/fesm2022/primenglab-types-confirmpopup.mjs +4 -0
- package/fesm2022/primenglab-types-confirmpopup.mjs.map +1 -0
- package/fesm2022/primenglab-types-contextmenu.mjs +4 -0
- package/fesm2022/primenglab-types-contextmenu.mjs.map +1 -0
- package/fesm2022/primenglab-types-dataview.mjs +4 -0
- package/fesm2022/primenglab-types-dataview.mjs.map +1 -0
- package/fesm2022/primenglab-types-datepicker.mjs +4 -0
- package/fesm2022/primenglab-types-datepicker.mjs.map +1 -0
- package/fesm2022/primenglab-types-dialog.mjs +4 -0
- package/fesm2022/primenglab-types-dialog.mjs.map +1 -0
- package/fesm2022/primenglab-types-divider.mjs +4 -0
- package/fesm2022/primenglab-types-divider.mjs.map +1 -0
- package/fesm2022/primenglab-types-dock.mjs +4 -0
- package/fesm2022/primenglab-types-dock.mjs.map +1 -0
- package/fesm2022/primenglab-types-drawer.mjs +4 -0
- package/fesm2022/primenglab-types-drawer.mjs.map +1 -0
- package/fesm2022/primenglab-types-editor.mjs +4 -0
- package/fesm2022/primenglab-types-editor.mjs.map +1 -0
- package/fesm2022/primenglab-types-fieldset.mjs +4 -0
- package/fesm2022/primenglab-types-fieldset.mjs.map +1 -0
- package/fesm2022/primenglab-types-fileupload.mjs +4 -0
- package/fesm2022/primenglab-types-fileupload.mjs.map +1 -0
- package/fesm2022/primenglab-types-floatlabel.mjs +4 -0
- package/fesm2022/primenglab-types-floatlabel.mjs.map +1 -0
- package/fesm2022/primenglab-types-fluid.mjs +4 -0
- package/fesm2022/primenglab-types-fluid.mjs.map +1 -0
- package/fesm2022/primenglab-types-galleria.mjs +4 -0
- package/fesm2022/primenglab-types-galleria.mjs.map +1 -0
- package/fesm2022/primenglab-types-gallery.mjs +4 -0
- package/fesm2022/primenglab-types-gallery.mjs.map +1 -0
- package/fesm2022/primenglab-types-iconfield.mjs +4 -0
- package/fesm2022/primenglab-types-iconfield.mjs.map +1 -0
- package/fesm2022/primenglab-types-iftalabel.mjs +4 -0
- package/fesm2022/primenglab-types-iftalabel.mjs.map +1 -0
- package/fesm2022/primenglab-types-image.mjs +4 -0
- package/fesm2022/primenglab-types-image.mjs.map +1 -0
- package/fesm2022/primenglab-types-imagecompare.mjs +4 -0
- package/fesm2022/primenglab-types-imagecompare.mjs.map +1 -0
- package/fesm2022/primenglab-types-inplace.mjs +4 -0
- package/fesm2022/primenglab-types-inplace.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputcolor.mjs +4 -0
- package/fesm2022/primenglab-types-inputcolor.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputgroup.mjs +4 -0
- package/fesm2022/primenglab-types-inputgroup.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputgroupaddon.mjs +4 -0
- package/fesm2022/primenglab-types-inputgroupaddon.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputicon.mjs +4 -0
- package/fesm2022/primenglab-types-inputicon.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputmask.mjs +4 -0
- package/fesm2022/primenglab-types-inputmask.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputnumber.mjs +4 -0
- package/fesm2022/primenglab-types-inputnumber.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputotp.mjs +4 -0
- package/fesm2022/primenglab-types-inputotp.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputpassword.mjs +4 -0
- package/fesm2022/primenglab-types-inputpassword.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputtags.mjs +4 -0
- package/fesm2022/primenglab-types-inputtags.mjs.map +1 -0
- package/fesm2022/primenglab-types-inputtext.mjs +4 -0
- package/fesm2022/primenglab-types-inputtext.mjs.map +1 -0
- package/fesm2022/primenglab-types-knob.mjs +4 -0
- package/fesm2022/primenglab-types-knob.mjs.map +1 -0
- package/fesm2022/primenglab-types-label.mjs +4 -0
- package/fesm2022/primenglab-types-label.mjs.map +1 -0
- package/fesm2022/primenglab-types-listbox.mjs +4 -0
- package/fesm2022/primenglab-types-listbox.mjs.map +1 -0
- package/fesm2022/primenglab-types-megamenu.mjs +4 -0
- package/fesm2022/primenglab-types-megamenu.mjs.map +1 -0
- package/fesm2022/primenglab-types-menu.mjs +4 -0
- package/fesm2022/primenglab-types-menu.mjs.map +1 -0
- package/fesm2022/primenglab-types-menubar.mjs +4 -0
- package/fesm2022/primenglab-types-menubar.mjs.map +1 -0
- package/fesm2022/primenglab-types-message.mjs +4 -0
- package/fesm2022/primenglab-types-message.mjs.map +1 -0
- package/fesm2022/primenglab-types-metergroup.mjs +4 -0
- package/fesm2022/primenglab-types-metergroup.mjs.map +1 -0
- package/fesm2022/primenglab-types-motion.mjs +4 -0
- package/fesm2022/primenglab-types-motion.mjs.map +1 -0
- package/fesm2022/primenglab-types-multiselect.mjs +4 -0
- package/fesm2022/primenglab-types-multiselect.mjs.map +1 -0
- package/fesm2022/primenglab-types-orderlist.mjs +4 -0
- package/fesm2022/primenglab-types-orderlist.mjs.map +1 -0
- package/fesm2022/primenglab-types-organizationchart.mjs +4 -0
- package/fesm2022/primenglab-types-organizationchart.mjs.map +1 -0
- package/fesm2022/primenglab-types-overlay.mjs +4 -0
- package/fesm2022/primenglab-types-overlay.mjs.map +1 -0
- package/fesm2022/primenglab-types-overlaybadge.mjs +4 -0
- package/fesm2022/primenglab-types-overlaybadge.mjs.map +1 -0
- package/fesm2022/primenglab-types-paginator.mjs +4 -0
- package/fesm2022/primenglab-types-paginator.mjs.map +1 -0
- package/fesm2022/primenglab-types-panel.mjs +4 -0
- package/fesm2022/primenglab-types-panel.mjs.map +1 -0
- package/fesm2022/primenglab-types-panelmenu.mjs +4 -0
- package/fesm2022/primenglab-types-panelmenu.mjs.map +1 -0
- package/fesm2022/primenglab-types-password.mjs +4 -0
- package/fesm2022/primenglab-types-password.mjs.map +1 -0
- package/fesm2022/primenglab-types-picklist.mjs +4 -0
- package/fesm2022/primenglab-types-picklist.mjs.map +1 -0
- package/fesm2022/primenglab-types-popover.mjs +4 -0
- package/fesm2022/primenglab-types-popover.mjs.map +1 -0
- package/fesm2022/primenglab-types-progressbar.mjs +4 -0
- package/fesm2022/primenglab-types-progressbar.mjs.map +1 -0
- package/fesm2022/primenglab-types-progressspinner.mjs +4 -0
- package/fesm2022/primenglab-types-progressspinner.mjs.map +1 -0
- package/fesm2022/primenglab-types-radiobutton.mjs +4 -0
- package/fesm2022/primenglab-types-radiobutton.mjs.map +1 -0
- package/fesm2022/primenglab-types-rating.mjs +4 -0
- package/fesm2022/primenglab-types-rating.mjs.map +1 -0
- package/fesm2022/primenglab-types-scrollarea.mjs +4 -0
- package/fesm2022/primenglab-types-scrollarea.mjs.map +1 -0
- package/fesm2022/primenglab-types-scroller.mjs +4 -0
- package/fesm2022/primenglab-types-scroller.mjs.map +1 -0
- package/fesm2022/primenglab-types-scrollpanel.mjs +4 -0
- package/fesm2022/primenglab-types-scrollpanel.mjs.map +1 -0
- package/fesm2022/primenglab-types-scrolltop.mjs +4 -0
- package/fesm2022/primenglab-types-scrolltop.mjs.map +1 -0
- package/fesm2022/primenglab-types-select.mjs +4 -0
- package/fesm2022/primenglab-types-select.mjs.map +1 -0
- package/fesm2022/primenglab-types-selectbutton.mjs +4 -0
- package/fesm2022/primenglab-types-selectbutton.mjs.map +1 -0
- package/fesm2022/primenglab-types-shared.mjs +4 -0
- package/fesm2022/primenglab-types-shared.mjs.map +1 -0
- package/fesm2022/primenglab-types-sidebar.mjs +4 -0
- package/fesm2022/primenglab-types-sidebar.mjs.map +1 -0
- package/fesm2022/primenglab-types-skeleton.mjs +4 -0
- package/fesm2022/primenglab-types-skeleton.mjs.map +1 -0
- package/fesm2022/primenglab-types-slider.mjs +4 -0
- package/fesm2022/primenglab-types-slider.mjs.map +1 -0
- package/fesm2022/primenglab-types-speeddial.mjs +4 -0
- package/fesm2022/primenglab-types-speeddial.mjs.map +1 -0
- package/fesm2022/primenglab-types-splitbutton.mjs +4 -0
- package/fesm2022/primenglab-types-splitbutton.mjs.map +1 -0
- package/fesm2022/primenglab-types-splitter.mjs +4 -0
- package/fesm2022/primenglab-types-splitter.mjs.map +1 -0
- package/fesm2022/primenglab-types-stepper.mjs +4 -0
- package/fesm2022/primenglab-types-stepper.mjs.map +1 -0
- package/fesm2022/primenglab-types-table.mjs +4 -0
- package/fesm2022/primenglab-types-table.mjs.map +1 -0
- package/fesm2022/primenglab-types-tabs.mjs +4 -0
- package/fesm2022/primenglab-types-tabs.mjs.map +1 -0
- package/fesm2022/primenglab-types-tag.mjs +4 -0
- package/fesm2022/primenglab-types-tag.mjs.map +1 -0
- package/fesm2022/primenglab-types-terminal.mjs +4 -0
- package/fesm2022/primenglab-types-terminal.mjs.map +1 -0
- package/fesm2022/primenglab-types-textarea.mjs +4 -0
- package/fesm2022/primenglab-types-textarea.mjs.map +1 -0
- package/fesm2022/primenglab-types-tieredmenu.mjs +4 -0
- package/fesm2022/primenglab-types-tieredmenu.mjs.map +1 -0
- package/fesm2022/primenglab-types-timeline.mjs +4 -0
- package/fesm2022/primenglab-types-timeline.mjs.map +1 -0
- package/fesm2022/primenglab-types-toast.mjs +4 -0
- package/fesm2022/primenglab-types-toast.mjs.map +1 -0
- package/fesm2022/primenglab-types-togglebutton.mjs +4 -0
- package/fesm2022/primenglab-types-togglebutton.mjs.map +1 -0
- package/fesm2022/primenglab-types-toggleswitch.mjs +4 -0
- package/fesm2022/primenglab-types-toggleswitch.mjs.map +1 -0
- package/fesm2022/primenglab-types-toolbar.mjs +4 -0
- package/fesm2022/primenglab-types-toolbar.mjs.map +1 -0
- package/fesm2022/primenglab-types-tooltip.mjs +4 -0
- package/fesm2022/primenglab-types-tooltip.mjs.map +1 -0
- package/fesm2022/primenglab-types-tree.mjs +4 -0
- package/fesm2022/primenglab-types-tree.mjs.map +1 -0
- package/fesm2022/primenglab-types-treeselect.mjs +4 -0
- package/fesm2022/primenglab-types-treeselect.mjs.map +1 -0
- package/fesm2022/primenglab-types-treetable.mjs +4 -0
- package/fesm2022/primenglab-types-treetable.mjs.map +1 -0
- package/fesm2022/primenglab-usestyle.mjs +54 -0
- package/fesm2022/primenglab-usestyle.mjs.map +1 -0
- package/fesm2022/primenglab-utils.mjs +332 -0
- package/fesm2022/primenglab-utils.mjs.map +1 -0
- package/fesm2022/primenglab.mjs +6 -0
- package/fesm2022/primenglab.mjs.map +1 -0
- package/package.json +1188 -0
- package/types/primenglab-accordion.d.ts +252 -0
- package/types/primenglab-animateonscroll.d.ts +68 -0
- package/types/primenglab-api.d.ts +2000 -0
- package/types/primenglab-autocomplete.d.ts +774 -0
- package/types/primenglab-autofocus.d.ts +29 -0
- package/types/primenglab-avatar.d.ts +133 -0
- package/types/primenglab-avatargroup.d.ts +58 -0
- package/types/primenglab-badge.d.ts +96 -0
- package/types/primenglab-base.d.ts +58 -0
- package/types/primenglab-basecomponent.d.ts +178 -0
- package/types/primenglab-baseeditableholder.d.ts +45 -0
- package/types/primenglab-baseinput.d.ts +74 -0
- package/types/primenglab-basemodelholder.d.ts +12 -0
- package/types/primenglab-bind.d.ts +37 -0
- package/types/primenglab-blockui.d.ts +97 -0
- package/types/primenglab-breadcrumb.d.ts +150 -0
- package/types/primenglab-button.d.ts +468 -0
- package/types/primenglab-buttongroup.d.ts +44 -0
- package/types/primenglab-card.d.ts +138 -0
- package/types/primenglab-carousel.d.ts +687 -0
- package/types/primenglab-cascadeselect.d.ts +581 -0
- package/types/primenglab-chart.d.ts +133 -0
- package/types/primenglab-checkbox.d.ts +227 -0
- package/types/primenglab-chip.d.ts +159 -0
- package/types/primenglab-classnames.d.ts +32 -0
- package/types/primenglab-colorpicker.d.ts +295 -0
- package/types/primenglab-commandmenu.d.ts +182 -0
- package/types/primenglab-compare.d.ts +225 -0
- package/types/primenglab-config.d.ts +313 -0
- package/types/primenglab-confirmdialog.d.ts +344 -0
- package/types/primenglab-confirmpopup.d.ts +230 -0
- package/types/primenglab-contextmenu.d.ts +388 -0
- package/types/primenglab-dataview.d.ts +361 -0
- package/types/primenglab-datepicker.d.ts +967 -0
- package/types/primenglab-dialog.d.ts +481 -0
- package/types/primenglab-divider.d.ts +116 -0
- package/types/primenglab-dock.d.ts +189 -0
- package/types/primenglab-dom.d.ts +109 -0
- package/types/primenglab-dragdrop.d.ts +117 -0
- package/types/primenglab-drawer.d.ts +272 -0
- package/types/primenglab-dynamicdialog.d.ts +576 -0
- package/types/primenglab-editor.d.ts +182 -0
- package/types/primenglab-fieldset.d.ts +182 -0
- package/types/primenglab-fileupload.d.ts +542 -0
- package/types/primenglab-floatlabel.d.ts +67 -0
- package/types/primenglab-fluid.d.ts +54 -0
- package/types/primenglab-focustrap.d.ts +32 -0
- package/types/primenglab-galleria.d.ts +450 -0
- package/types/primenglab-gallery.d.ts +653 -0
- package/types/primenglab-iconfield.d.ts +61 -0
- package/types/primenglab-icons-angledoubledown.d.ts +9 -0
- package/types/primenglab-icons-angledoubleleft.d.ts +9 -0
- package/types/primenglab-icons-angledoubleright.d.ts +9 -0
- package/types/primenglab-icons-angledoubleup.d.ts +9 -0
- package/types/primenglab-icons-angledown.d.ts +9 -0
- package/types/primenglab-icons-angleleft.d.ts +9 -0
- package/types/primenglab-icons-angleright.d.ts +9 -0
- package/types/primenglab-icons-angleup.d.ts +9 -0
- package/types/primenglab-icons-arrowdown.d.ts +11 -0
- package/types/primenglab-icons-arrowdownleft.d.ts +9 -0
- package/types/primenglab-icons-arrowdownright.d.ts +9 -0
- package/types/primenglab-icons-arrowleft.d.ts +11 -0
- package/types/primenglab-icons-arrowright.d.ts +9 -0
- package/types/primenglab-icons-arrowup.d.ts +11 -0
- package/types/primenglab-icons-ban.d.ts +11 -0
- package/types/primenglab-icons-bars.d.ts +9 -0
- package/types/primenglab-icons-baseicon.d.ts +33 -0
- package/types/primenglab-icons-blank.d.ts +9 -0
- package/types/primenglab-icons-calendar.d.ts +9 -0
- package/types/primenglab-icons-caretleft.d.ts +9 -0
- package/types/primenglab-icons-caretright.d.ts +9 -0
- package/types/primenglab-icons-check.d.ts +9 -0
- package/types/primenglab-icons-chevrondown.d.ts +9 -0
- package/types/primenglab-icons-chevronleft.d.ts +9 -0
- package/types/primenglab-icons-chevronright.d.ts +9 -0
- package/types/primenglab-icons-chevronup.d.ts +9 -0
- package/types/primenglab-icons-exclamationtriangle.d.ts +11 -0
- package/types/primenglab-icons-eye.d.ts +9 -0
- package/types/primenglab-icons-eyeslash.d.ts +11 -0
- package/types/primenglab-icons-filter.d.ts +11 -0
- package/types/primenglab-icons-filterfill.d.ts +9 -0
- package/types/primenglab-icons-filterslash.d.ts +11 -0
- package/types/primenglab-icons-home.d.ts +11 -0
- package/types/primenglab-icons-infocircle.d.ts +11 -0
- package/types/primenglab-icons-minus.d.ts +9 -0
- package/types/primenglab-icons-pencil.d.ts +11 -0
- package/types/primenglab-icons-plus.d.ts +11 -0
- package/types/primenglab-icons-refresh.d.ts +11 -0
- package/types/primenglab-icons-search.d.ts +11 -0
- package/types/primenglab-icons-searchminus.d.ts +11 -0
- package/types/primenglab-icons-searchplus.d.ts +11 -0
- package/types/primenglab-icons-sortalt.d.ts +11 -0
- package/types/primenglab-icons-sortamountdown.d.ts +11 -0
- package/types/primenglab-icons-sortamountupalt.d.ts +11 -0
- package/types/primenglab-icons-spinner.d.ts +11 -0
- package/types/primenglab-icons-star.d.ts +11 -0
- package/types/primenglab-icons-starfill.d.ts +11 -0
- package/types/primenglab-icons-thlarge.d.ts +11 -0
- package/types/primenglab-icons-times.d.ts +9 -0
- package/types/primenglab-icons-timescircle.d.ts +11 -0
- package/types/primenglab-icons-trash.d.ts +11 -0
- package/types/primenglab-icons-undo.d.ts +11 -0
- package/types/primenglab-icons-upload.d.ts +11 -0
- package/types/primenglab-icons-windowmaximize.d.ts +11 -0
- package/types/primenglab-icons-windowminimize.d.ts +11 -0
- package/types/primenglab-icons.d.ts +53 -0
- package/types/primenglab-iftalabel.d.ts +56 -0
- package/types/primenglab-image.d.ts +336 -0
- package/types/primenglab-imagecompare.d.ts +97 -0
- package/types/primenglab-inplace.d.ts +132 -0
- package/types/primenglab-inputcolor.d.ts +568 -0
- package/types/primenglab-inputgroup.d.ts +59 -0
- package/types/primenglab-inputgroupaddon.d.ts +37 -0
- package/types/primenglab-inputicon.d.ts +38 -0
- package/types/primenglab-inputmask.d.ts +385 -0
- package/types/primenglab-inputnumber.d.ts +424 -0
- package/types/primenglab-inputotp.d.ts +177 -0
- package/types/primenglab-inputpassword.d.ts +63 -0
- package/types/primenglab-inputtags.d.ts +315 -0
- package/types/primenglab-inputtext.d.ts +112 -0
- package/types/primenglab-keyfilter.d.ts +58 -0
- package/types/primenglab-knob.d.ts +202 -0
- package/types/primenglab-label.d.ts +55 -0
- package/types/primenglab-license.d.ts +23 -0
- package/types/primenglab-listbox.d.ts +775 -0
- package/types/primenglab-megamenu.d.ts +402 -0
- package/types/primenglab-menu.d.ts +382 -0
- package/types/primenglab-menubar.d.ts +374 -0
- package/types/primenglab-message.d.ts +166 -0
- package/types/primenglab-metergroup.d.ts +209 -0
- package/types/primenglab-motion.d.ts +398 -0
- package/types/primenglab-multiselect.d.ts +877 -0
- package/types/primenglab-orderlist.d.ts +390 -0
- package/types/primenglab-organizationchart.d.ts +189 -0
- package/types/primenglab-overlay.d.ts +300 -0
- package/types/primenglab-overlaybadge.d.ts +70 -0
- package/types/primenglab-paginator.d.ts +330 -0
- package/types/primenglab-panel.d.ts +234 -0
- package/types/primenglab-panelmenu.d.ts +248 -0
- package/types/primenglab-passthrough.d.ts +14 -0
- package/types/primenglab-password.d.ts +459 -0
- package/types/primenglab-picklist.d.ts +751 -0
- package/types/primenglab-popover.d.ts +183 -0
- package/types/primenglab-progressbar.d.ts +118 -0
- package/types/primenglab-progressspinner.d.ts +126 -0
- package/types/primenglab-radiobutton.d.ts +188 -0
- package/types/primenglab-rating.d.ts +210 -0
- package/types/primenglab-ripple.d.ts +60 -0
- package/types/primenglab-scrollarea.d.ts +286 -0
- package/types/primenglab-scroller.d.ts +462 -0
- package/types/primenglab-scrollpanel.d.ts +147 -0
- package/types/primenglab-scrolltop.d.ts +143 -0
- package/types/primenglab-select.d.ts +757 -0
- package/types/primenglab-selectbutton.d.ts +184 -0
- package/types/primenglab-sidebar.d.ts +669 -0
- package/types/primenglab-skeleton.d.ts +103 -0
- package/types/primenglab-slider.d.ts +327 -0
- package/types/primenglab-speeddial.d.ts +394 -0
- package/types/primenglab-splitbutton.d.ts +259 -0
- package/types/primenglab-splitter.d.ts +334 -0
- package/types/primenglab-stepper.d.ts +311 -0
- package/types/primenglab-steps.d.ts +153 -0
- package/types/primenglab-styleclass.d.ts +110 -0
- package/types/primenglab-table.d.ts +1953 -0
- package/types/primenglab-tabs.d.ts +356 -0
- package/types/primenglab-tag.d.ts +104 -0
- package/types/primenglab-terminal.d.ts +137 -0
- package/types/primenglab-textarea.d.ts +126 -0
- package/types/primenglab-tieredmenu.d.ts +419 -0
- package/types/primenglab-timeline.d.ts +128 -0
- package/types/primenglab-toast.d.ts +268 -0
- package/types/primenglab-togglebutton.d.ts +200 -0
- package/types/primenglab-toggleswitch.d.ts +161 -0
- package/types/primenglab-toolbar.d.ts +95 -0
- package/types/primenglab-tooltip.d.ts +251 -0
- package/types/primenglab-tree.d.ts +571 -0
- package/types/primenglab-treeselect.d.ts +560 -0
- package/types/primenglab-treetable.d.ts +1290 -0
- package/types/primenglab-ts-helpers.d.ts +6 -0
- package/types/primenglab-types-accordion.d.ts +135 -0
- package/types/primenglab-types-autocomplete.d.ts +312 -0
- package/types/primenglab-types-avatar.d.ts +50 -0
- package/types/primenglab-types-avatargroup.d.ts +28 -0
- package/types/primenglab-types-badge.d.ts +36 -0
- package/types/primenglab-types-blockui.d.ts +39 -0
- package/types/primenglab-types-breadcrumb.d.ts +96 -0
- package/types/primenglab-types-button.d.ts +140 -0
- package/types/primenglab-types-card.d.ts +75 -0
- package/types/primenglab-types-carousel.d.ts +244 -0
- package/types/primenglab-types-cascadeselect.d.ts +278 -0
- package/types/primenglab-types-chart.d.ts +57 -0
- package/types/primenglab-types-checkbox.d.ts +85 -0
- package/types/primenglab-types-chip.d.ts +70 -0
- package/types/primenglab-types-colorpicker.d.ts +83 -0
- package/types/primenglab-types-commandmenu.d.ts +154 -0
- package/types/primenglab-types-compare.d.ts +55 -0
- package/types/primenglab-types-confirmdialog.d.ts +161 -0
- package/types/primenglab-types-confirmpopup.d.ts +110 -0
- package/types/primenglab-types-contextmenu.d.ts +135 -0
- package/types/primenglab-types-dataview.d.ts +263 -0
- package/types/primenglab-types-datepicker.d.ts +535 -0
- package/types/primenglab-types-dialog.d.ts +124 -0
- package/types/primenglab-types-divider.d.ts +43 -0
- package/types/primenglab-types-dock.d.ts +75 -0
- package/types/primenglab-types-drawer.d.ts +83 -0
- package/types/primenglab-types-editor.d.ts +210 -0
- package/types/primenglab-types-fieldset.d.ts +120 -0
- package/types/primenglab-types-fileupload.d.ts +416 -0
- package/types/primenglab-types-floatlabel.d.ts +27 -0
- package/types/primenglab-types-fluid.d.ts +28 -0
- package/types/primenglab-types-galleria.d.ts +259 -0
- package/types/primenglab-types-gallery.d.ts +434 -0
- package/types/primenglab-types-iconfield.d.ts +27 -0
- package/types/primenglab-types-iftalabel.d.ts +26 -0
- package/types/primenglab-types-image.d.ts +149 -0
- package/types/primenglab-types-imagecompare.d.ts +43 -0
- package/types/primenglab-types-inplace.d.ts +72 -0
- package/types/primenglab-types-inputcolor.d.ts +206 -0
- package/types/primenglab-types-inputgroup.d.ts +28 -0
- package/types/primenglab-types-inputgroupaddon.d.ts +28 -0
- package/types/primenglab-types-inputicon.d.ts +26 -0
- package/types/primenglab-types-inputmask.d.ts +56 -0
- package/types/primenglab-types-inputnumber.d.ts +115 -0
- package/types/primenglab-types-inputotp.d.ts +101 -0
- package/types/primenglab-types-inputpassword.d.ts +24 -0
- package/types/primenglab-types-inputtags.d.ts +178 -0
- package/types/primenglab-types-inputtext.d.ts +24 -0
- package/types/primenglab-types-knob.d.ts +40 -0
- package/types/primenglab-types-label.d.ts +24 -0
- package/types/primenglab-types-listbox.d.ts +359 -0
- package/types/primenglab-types-megamenu.d.ts +183 -0
- package/types/primenglab-types-menu.d.ts +135 -0
- package/types/primenglab-types-menubar.d.ts +171 -0
- package/types/primenglab-types-message.d.ts +112 -0
- package/types/primenglab-types-metergroup.d.ts +178 -0
- package/types/primenglab-types-motion.d.ts +26 -0
- package/types/primenglab-types-multiselect.d.ts +454 -0
- package/types/primenglab-types-orderlist.d.ts +177 -0
- package/types/primenglab-types-organizationchart.d.ts +187 -0
- package/types/primenglab-types-overlay.d.ts +60 -0
- package/types/primenglab-types-overlaybadge.d.ts +34 -0
- package/types/primenglab-types-paginator.d.ts +167 -0
- package/types/primenglab-types-panel.d.ts +139 -0
- package/types/primenglab-types-panelmenu.d.ts +180 -0
- package/types/primenglab-types-password.d.ts +120 -0
- package/types/primenglab-types-picklist.d.ts +358 -0
- package/types/primenglab-types-popover.d.ts +59 -0
- package/types/primenglab-types-progressbar.d.ts +63 -0
- package/types/primenglab-types-progressspinner.d.ts +44 -0
- package/types/primenglab-types-radiobutton.d.ts +51 -0
- package/types/primenglab-types-rating.d.ts +94 -0
- package/types/primenglab-types-scrollarea.d.ts +60 -0
- package/types/primenglab-types-scroller.d.ts +231 -0
- package/types/primenglab-types-scrollpanel.d.ts +56 -0
- package/types/primenglab-types-scrolltop.d.ts +71 -0
- package/types/primenglab-types-select.d.ts +330 -0
- package/types/primenglab-types-selectbutton.d.ts +92 -0
- package/types/primenglab-types-shared.d.ts +27 -0
- package/types/primenglab-types-sidebar.d.ts +108 -0
- package/types/primenglab-types-skeleton.d.ts +28 -0
- package/types/primenglab-types-slider.d.ts +91 -0
- package/types/primenglab-types-speeddial.d.ts +110 -0
- package/types/primenglab-types-splitbutton.d.ts +60 -0
- package/types/primenglab-types-splitter.d.ts +127 -0
- package/types/primenglab-types-stepper.d.ts +186 -0
- package/types/primenglab-types-table.d.ts +902 -0
- package/types/primenglab-types-tabs.d.ts +120 -0
- package/types/primenglab-types-tag.d.ts +48 -0
- package/types/primenglab-types-terminal.d.ts +60 -0
- package/types/primenglab-types-textarea.d.ts +28 -0
- package/types/primenglab-types-tieredmenu.d.ts +203 -0
- package/types/primenglab-types-timeline.d.ts +93 -0
- package/types/primenglab-types-toast.d.ts +148 -0
- package/types/primenglab-types-togglebutton.d.ts +91 -0
- package/types/primenglab-types-toggleswitch.d.ts +73 -0
- package/types/primenglab-types-toolbar.d.ts +55 -0
- package/types/primenglab-types-tooltip.d.ts +42 -0
- package/types/primenglab-types-tree.d.ts +355 -0
- package/types/primenglab-types-treeselect.d.ts +266 -0
- package/types/primenglab-types-treetable.d.ts +659 -0
- package/types/primenglab-usestyle.d.ts +15 -0
- package/types/primenglab-utils.d.ts +43 -0
- package/types/primenglab.d.ts +2 -0
|
@@ -0,0 +1,1859 @@
|
|
|
1
|
+
export * from 'primenglab/types/gallery';
|
|
2
|
+
import { NgTemplateOutlet, isPlatformServer } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Injectable, inject, input, numberAttribute, DestroyRef, signal, computed, afterNextRender, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive, viewChild, booleanAttribute, contentChildren, model, output, NgModule } from '@angular/core';
|
|
5
|
+
import { BaseComponent, PARENT_INSTANCE } from 'primenglab/basecomponent';
|
|
6
|
+
import * as i1 from 'primenglab/bind';
|
|
7
|
+
import { Bind, BindModule } from 'primenglab/bind';
|
|
8
|
+
import { SharedModule } from 'primenglab/api';
|
|
9
|
+
import { style } from '@primeuix/styles/gallery';
|
|
10
|
+
import { BaseStyle } from 'primenglab/base';
|
|
11
|
+
import * as i2 from 'primenglab/carousel';
|
|
12
|
+
import { CarouselModule } from 'primenglab/carousel';
|
|
13
|
+
|
|
14
|
+
const classes = {
|
|
15
|
+
root: 'p-gallery',
|
|
16
|
+
backdrop: 'p-gallery-backdrop',
|
|
17
|
+
header: 'p-gallery-header',
|
|
18
|
+
footer: 'p-gallery-footer',
|
|
19
|
+
content: 'p-gallery-content',
|
|
20
|
+
item: 'p-gallery-item',
|
|
21
|
+
next: 'p-gallery-next',
|
|
22
|
+
prev: 'p-gallery-prev',
|
|
23
|
+
toolbar: 'p-gallery-toolbar',
|
|
24
|
+
toolbarItem: 'p-gallery-toolbar-item',
|
|
25
|
+
zoomIn: 'p-gallery-action',
|
|
26
|
+
zoomOut: 'p-gallery-action',
|
|
27
|
+
zoomToggle: 'p-gallery-action',
|
|
28
|
+
rotateLeft: 'p-gallery-action',
|
|
29
|
+
rotateRight: 'p-gallery-action',
|
|
30
|
+
flipX: 'p-gallery-action',
|
|
31
|
+
flipY: 'p-gallery-action',
|
|
32
|
+
download: 'p-gallery-action',
|
|
33
|
+
fullScreen: 'p-gallery-action',
|
|
34
|
+
thumbnail: 'p-gallery-thumbnail',
|
|
35
|
+
thumbnailContent: 'p-gallery-thumbnail-content',
|
|
36
|
+
thumbnailItem: 'p-gallery-thumbnail-item'
|
|
37
|
+
};
|
|
38
|
+
class GalleryStyle extends BaseStyle {
|
|
39
|
+
name = 'gallery';
|
|
40
|
+
style = style;
|
|
41
|
+
classes = classes;
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
43
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryStyle });
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryStyle, decorators: [{
|
|
46
|
+
type: Injectable
|
|
47
|
+
}] });
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* Gallery groups a collection of contents in items.
|
|
51
|
+
*
|
|
52
|
+
* [Live Demo](https://www.primeng.org/gallery/)
|
|
53
|
+
*
|
|
54
|
+
* @module gallerystyle
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
var GalleryClasses;
|
|
58
|
+
(function (GalleryClasses) {
|
|
59
|
+
/**
|
|
60
|
+
* Class name of the root element
|
|
61
|
+
*/
|
|
62
|
+
GalleryClasses["root"] = "p-gallery";
|
|
63
|
+
/**
|
|
64
|
+
* Class name of the backdrop element
|
|
65
|
+
*/
|
|
66
|
+
GalleryClasses["backdrop"] = "p-gallery-backdrop";
|
|
67
|
+
/**
|
|
68
|
+
* Class name of the header element
|
|
69
|
+
*/
|
|
70
|
+
GalleryClasses["header"] = "p-gallery-header";
|
|
71
|
+
/**
|
|
72
|
+
* Class name of the footer element
|
|
73
|
+
*/
|
|
74
|
+
GalleryClasses["footer"] = "p-gallery-footer";
|
|
75
|
+
/**
|
|
76
|
+
* Class name of the content element
|
|
77
|
+
*/
|
|
78
|
+
GalleryClasses["content"] = "p-gallery-content";
|
|
79
|
+
/**
|
|
80
|
+
* Class name of the item element
|
|
81
|
+
*/
|
|
82
|
+
GalleryClasses["item"] = "p-gallery-item";
|
|
83
|
+
/**
|
|
84
|
+
* Class name of the next button element
|
|
85
|
+
*/
|
|
86
|
+
GalleryClasses["next"] = "p-gallery-next";
|
|
87
|
+
/**
|
|
88
|
+
* Class name of the prev button element
|
|
89
|
+
*/
|
|
90
|
+
GalleryClasses["prev"] = "p-gallery-prev";
|
|
91
|
+
/**
|
|
92
|
+
* Class name of the toolbar element
|
|
93
|
+
*/
|
|
94
|
+
GalleryClasses["toolbar"] = "p-gallery-toolbar";
|
|
95
|
+
/**
|
|
96
|
+
* Class name of the toolbar item element
|
|
97
|
+
*/
|
|
98
|
+
GalleryClasses["toolbarItem"] = "p-gallery-toolbar-item";
|
|
99
|
+
/**
|
|
100
|
+
* Class name of the action element
|
|
101
|
+
*/
|
|
102
|
+
GalleryClasses["action"] = "p-gallery-action";
|
|
103
|
+
/**
|
|
104
|
+
* Class name of the thumbnail element
|
|
105
|
+
*/
|
|
106
|
+
GalleryClasses["thumbnail"] = "p-gallery-thumbnail";
|
|
107
|
+
/**
|
|
108
|
+
* Class name of the thumbnail content element
|
|
109
|
+
*/
|
|
110
|
+
GalleryClasses["thumbnailContent"] = "p-gallery-thumbnail-content";
|
|
111
|
+
/**
|
|
112
|
+
* Class name of the thumbnail item element
|
|
113
|
+
*/
|
|
114
|
+
GalleryClasses["thumbnailItem"] = "p-gallery-thumbnail-item";
|
|
115
|
+
})(GalleryClasses || (GalleryClasses = {}));
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* GalleryItem represents an individual item in the gallery.
|
|
119
|
+
* @group Components
|
|
120
|
+
*/
|
|
121
|
+
class GalleryItem extends BaseComponent {
|
|
122
|
+
componentName = 'GalleryItem';
|
|
123
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
124
|
+
/**
|
|
125
|
+
* The normal scale of the gallery item.
|
|
126
|
+
* @group Props
|
|
127
|
+
* @defaultValue 1
|
|
128
|
+
*/
|
|
129
|
+
normalScale = input(1, { ...(ngDevMode ? { debugName: "normalScale" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
130
|
+
/**
|
|
131
|
+
* The zoomed scale of the gallery item.
|
|
132
|
+
* @group Props
|
|
133
|
+
* @defaultValue 3
|
|
134
|
+
*/
|
|
135
|
+
zoomedScale = input(3, { ...(ngDevMode ? { debugName: "zoomedScale" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
136
|
+
gallery = inject(Gallery);
|
|
137
|
+
_destroyRef = inject(DestroyRef);
|
|
138
|
+
index = signal(-1, /* @ts-ignore */
|
|
139
|
+
...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
140
|
+
isActive = computed(() => this.gallery.activeIndex() === this.index(), /* @ts-ignore */
|
|
141
|
+
...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
|
|
142
|
+
dataActive = computed(() => (this.isActive() ? 'true' : 'false'), /* @ts-ignore */
|
|
143
|
+
...(ngDevMode ? [{ debugName: "dataActive" }] : /* istanbul ignore next */ []));
|
|
144
|
+
stylePositionX = computed(() => this.position().x + 'px', /* @ts-ignore */
|
|
145
|
+
...(ngDevMode ? [{ debugName: "stylePositionX" }] : /* istanbul ignore next */ []));
|
|
146
|
+
stylePositionY = computed(() => this.position().y + 'px', /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "stylePositionY" }] : /* istanbul ignore next */ []));
|
|
148
|
+
styleRotation = computed(() => this.rotation() + 'deg', /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "styleRotation" }] : /* istanbul ignore next */ []));
|
|
150
|
+
styleFlipX = computed(() => this.flip().x, /* @ts-ignore */
|
|
151
|
+
...(ngDevMode ? [{ debugName: "styleFlipX" }] : /* istanbul ignore next */ []));
|
|
152
|
+
styleFlipY = computed(() => this.flip().y, /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "styleFlipY" }] : /* istanbul ignore next */ []));
|
|
154
|
+
position = signal({ x: 0, y: 0 }, /* @ts-ignore */
|
|
155
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
156
|
+
scale = signal(1, /* @ts-ignore */
|
|
157
|
+
...(ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []));
|
|
158
|
+
rotation = signal(0, /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "rotation" }] : /* istanbul ignore next */ []));
|
|
160
|
+
isRotating = signal(false, /* @ts-ignore */
|
|
161
|
+
...(ngDevMode ? [{ debugName: "isRotating" }] : /* istanbul ignore next */ []));
|
|
162
|
+
flip = signal({ x: 1, y: 1 }, /* @ts-ignore */
|
|
163
|
+
...(ngDevMode ? [{ debugName: "flip" }] : /* istanbul ignore next */ []));
|
|
164
|
+
registeredIndex = null;
|
|
165
|
+
pointerData = new Map();
|
|
166
|
+
pointerStart = { x: 0, y: 0 };
|
|
167
|
+
initialPinchDistance = 0;
|
|
168
|
+
initialPinchScale = 1;
|
|
169
|
+
liveScale = 1;
|
|
170
|
+
livePosition = { x: 0, y: 0 };
|
|
171
|
+
isDragging = false;
|
|
172
|
+
dragStart = { x: 0, y: 0 };
|
|
173
|
+
hasDragged = false;
|
|
174
|
+
wheelSyncTimer = null;
|
|
175
|
+
wheelListener = null;
|
|
176
|
+
resizeListener = null;
|
|
177
|
+
imageLoadListener = null;
|
|
178
|
+
constructor() {
|
|
179
|
+
super();
|
|
180
|
+
afterNextRender(() => {
|
|
181
|
+
const newIndex = this.gallery.registerItem(this.registeredIndex);
|
|
182
|
+
this.registeredIndex = newIndex;
|
|
183
|
+
if (newIndex !== this.index()) {
|
|
184
|
+
this.index.set(newIndex);
|
|
185
|
+
}
|
|
186
|
+
this.setupWheelListener();
|
|
187
|
+
this.setupResizeListener();
|
|
188
|
+
this.setupImageLoadListener();
|
|
189
|
+
});
|
|
190
|
+
// Watch activeIndex to recalculate item size
|
|
191
|
+
effect(() => {
|
|
192
|
+
const activeIndex = this.gallery.activeIndex();
|
|
193
|
+
const idx = this.index();
|
|
194
|
+
if (activeIndex === idx) {
|
|
195
|
+
this.calculateItemSize();
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
// Watch rotation changes to recalculate item size
|
|
199
|
+
effect(() => {
|
|
200
|
+
this.rotation(); // track rotation
|
|
201
|
+
const activeIndex = this.gallery.activeIndex();
|
|
202
|
+
const idx = this.index();
|
|
203
|
+
if (activeIndex === idx) {
|
|
204
|
+
this.calculateItemSize();
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
// Watch fullscreen changes to recalculate item size
|
|
208
|
+
effect(() => {
|
|
209
|
+
this.gallery.isFullscreen(); // track fullscreen
|
|
210
|
+
const activeIndex = this.gallery.activeIndex();
|
|
211
|
+
const idx = this.index();
|
|
212
|
+
if (activeIndex === idx) {
|
|
213
|
+
this.calculateItemSize();
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
// Watch pendingAction and execute on active item
|
|
217
|
+
effect(() => {
|
|
218
|
+
const action = this.gallery.pendingAction();
|
|
219
|
+
if (!action || !this.isActive())
|
|
220
|
+
return;
|
|
221
|
+
switch (action.type) {
|
|
222
|
+
case 'zoom-in':
|
|
223
|
+
this.zoomIn();
|
|
224
|
+
break;
|
|
225
|
+
case 'zoom-out':
|
|
226
|
+
this.zoomOut();
|
|
227
|
+
break;
|
|
228
|
+
case 'rotate-left':
|
|
229
|
+
this.rotateLeft();
|
|
230
|
+
break;
|
|
231
|
+
case 'rotate-right':
|
|
232
|
+
this.rotateRight();
|
|
233
|
+
break;
|
|
234
|
+
case 'flip-x':
|
|
235
|
+
this.flipX();
|
|
236
|
+
break;
|
|
237
|
+
case 'flip-y':
|
|
238
|
+
this.flipY();
|
|
239
|
+
break;
|
|
240
|
+
case 'download':
|
|
241
|
+
this.download();
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
this.gallery.clearPendingAction();
|
|
245
|
+
});
|
|
246
|
+
// Report item state to gallery
|
|
247
|
+
effect(() => {
|
|
248
|
+
const active = this.isActive();
|
|
249
|
+
const s = this.scale();
|
|
250
|
+
const r = this.rotation();
|
|
251
|
+
const f = this.flip();
|
|
252
|
+
const ns = this.normalScale();
|
|
253
|
+
if (active) {
|
|
254
|
+
this.gallery.reportItemState({
|
|
255
|
+
zoomed: s > ns,
|
|
256
|
+
rotated: r !== 0,
|
|
257
|
+
flipped: f.x === -1 || f.y === -1,
|
|
258
|
+
scale: s,
|
|
259
|
+
rotation: r,
|
|
260
|
+
flip: f
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
// Sync liveScale/livePosition with signals (for toolbar-triggered changes)
|
|
265
|
+
effect(() => {
|
|
266
|
+
this.liveScale = this.scale();
|
|
267
|
+
});
|
|
268
|
+
effect(() => {
|
|
269
|
+
const p = this.position();
|
|
270
|
+
this.livePosition = { x: p.x, y: p.y };
|
|
271
|
+
});
|
|
272
|
+
// Reset position when scale <= 1
|
|
273
|
+
effect(() => {
|
|
274
|
+
if (this.scale() <= 1) {
|
|
275
|
+
this.position.set({ x: 0, y: 0 });
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
this._destroyRef.onDestroy(() => {
|
|
279
|
+
this.wheelListener?.();
|
|
280
|
+
this.resizeListener?.();
|
|
281
|
+
this.imageLoadListener?.();
|
|
282
|
+
if (this.rotateTimer) {
|
|
283
|
+
clearTimeout(this.rotateTimer);
|
|
284
|
+
}
|
|
285
|
+
if (this.wheelSyncTimer) {
|
|
286
|
+
clearTimeout(this.wheelSyncTimer);
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
onAfterViewChecked() {
|
|
291
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
292
|
+
}
|
|
293
|
+
setupImageLoadListener() {
|
|
294
|
+
const el = this.$el;
|
|
295
|
+
const imageElement = el.querySelector('img');
|
|
296
|
+
if (!imageElement)
|
|
297
|
+
return;
|
|
298
|
+
if (imageElement.complete && imageElement.naturalWidth > 0) {
|
|
299
|
+
this.calculateItemSize();
|
|
300
|
+
}
|
|
301
|
+
const handler = () => {
|
|
302
|
+
this.calculateItemSize();
|
|
303
|
+
};
|
|
304
|
+
imageElement.addEventListener('load', handler);
|
|
305
|
+
this.imageLoadListener = () => imageElement.removeEventListener('load', handler);
|
|
306
|
+
}
|
|
307
|
+
setupWheelListener() {
|
|
308
|
+
const el = this.$el;
|
|
309
|
+
const handler = (e) => {
|
|
310
|
+
if (!e.ctrlKey || !this.isActive())
|
|
311
|
+
return;
|
|
312
|
+
e.preventDefault();
|
|
313
|
+
el.style.transition = 'none';
|
|
314
|
+
const delta = -e.deltaY;
|
|
315
|
+
const scaleFactor = 1 + delta * 0.01;
|
|
316
|
+
const newScale = Math.max(this.normalScale(), Math.min(this.zoomedScale(), this.liveScale * scaleFactor));
|
|
317
|
+
const constraints = this.calculateConstraints(newScale);
|
|
318
|
+
const constrainedX = Math.max(constraints.minX, Math.min(constraints.maxX, this.livePosition.x));
|
|
319
|
+
const constrainedY = Math.max(constraints.minY, Math.min(constraints.maxY, this.livePosition.y));
|
|
320
|
+
this.liveScale = newScale;
|
|
321
|
+
this.livePosition = { x: constrainedX, y: constrainedY };
|
|
322
|
+
el.style.setProperty('--px-scale', `${newScale}`);
|
|
323
|
+
el.style.setProperty('--px-position-x', `${constrainedX}px`);
|
|
324
|
+
el.style.setProperty('--px-position-y', `${constrainedY}px`);
|
|
325
|
+
if (this.wheelSyncTimer) {
|
|
326
|
+
clearTimeout(this.wheelSyncTimer);
|
|
327
|
+
}
|
|
328
|
+
this.wheelSyncTimer = setTimeout(() => {
|
|
329
|
+
el.style.transition = '';
|
|
330
|
+
el.style.cursor = this.liveScale > this.normalScale() ? 'zoom-out' : 'zoom-in';
|
|
331
|
+
this.scale.set(this.liveScale);
|
|
332
|
+
this.position.set(this.livePosition);
|
|
333
|
+
this.wheelSyncTimer = null;
|
|
334
|
+
}, 150);
|
|
335
|
+
};
|
|
336
|
+
el.addEventListener('wheel', handler, { passive: false });
|
|
337
|
+
this.wheelListener = () => el.removeEventListener('wheel', handler);
|
|
338
|
+
}
|
|
339
|
+
setupResizeListener() {
|
|
340
|
+
const handler = () => {
|
|
341
|
+
if (this.gallery.activeIndex() === this.index()) {
|
|
342
|
+
this.calculateItemSize();
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
window.addEventListener('resize', handler);
|
|
346
|
+
this.resizeListener = () => window.removeEventListener('resize', handler);
|
|
347
|
+
}
|
|
348
|
+
calculateItemSize() {
|
|
349
|
+
const contentEl = this.gallery.contentEl();
|
|
350
|
+
const el = this.$el;
|
|
351
|
+
if (!contentEl || !el)
|
|
352
|
+
return;
|
|
353
|
+
const contentRect = contentEl.getBoundingClientRect();
|
|
354
|
+
const imageElement = el.firstElementChild;
|
|
355
|
+
if (!imageElement)
|
|
356
|
+
return;
|
|
357
|
+
let naturalWidth = imageElement.naturalWidth || imageElement.offsetWidth;
|
|
358
|
+
let naturalHeight = imageElement.naturalHeight || imageElement.offsetHeight;
|
|
359
|
+
if (naturalWidth === 0 || naturalHeight === 0)
|
|
360
|
+
return;
|
|
361
|
+
const isRotated = Math.abs(this.rotation()) % 180 === 90;
|
|
362
|
+
if (isRotated) {
|
|
363
|
+
[naturalWidth, naturalHeight] = [naturalHeight, naturalWidth];
|
|
364
|
+
}
|
|
365
|
+
const naturalAspectRatio = naturalWidth / naturalHeight;
|
|
366
|
+
const contentAspectRatio = contentRect.width / contentRect.height;
|
|
367
|
+
let targetWidth, targetHeight;
|
|
368
|
+
if (naturalAspectRatio > contentAspectRatio) {
|
|
369
|
+
targetWidth = Math.min(contentRect.width * 0.99, naturalWidth);
|
|
370
|
+
targetHeight = targetWidth / naturalAspectRatio;
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
targetHeight = Math.min(contentRect.height * 0.99, naturalHeight);
|
|
374
|
+
targetWidth = targetHeight * naturalAspectRatio;
|
|
375
|
+
}
|
|
376
|
+
if (isRotated) {
|
|
377
|
+
imageElement.style.width = `${targetHeight}px`;
|
|
378
|
+
imageElement.style.height = `${targetWidth}px`;
|
|
379
|
+
el.style.width = `${targetHeight > 0 ? targetHeight : 'auto'}px`;
|
|
380
|
+
el.style.height = `${targetWidth > 0 ? targetWidth : 'auto'}px`;
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
imageElement.style.width = `${targetWidth}px`;
|
|
384
|
+
imageElement.style.height = `${targetHeight}px`;
|
|
385
|
+
el.style.width = `${targetWidth > 0 ? targetWidth : 'auto'}px`;
|
|
386
|
+
el.style.height = `${targetHeight > 0 ? targetHeight : 'auto'}px`;
|
|
387
|
+
}
|
|
388
|
+
el.style.aspectRatio = `${naturalWidth / naturalHeight}`;
|
|
389
|
+
}
|
|
390
|
+
calculateConstraints(targetScale) {
|
|
391
|
+
const contentEl = this.gallery.contentEl();
|
|
392
|
+
const el = this.$el;
|
|
393
|
+
if (!contentEl || !el)
|
|
394
|
+
return { minX: 0, maxX: 0, minY: 0, maxY: 0 };
|
|
395
|
+
const contentRect = contentEl.getBoundingClientRect();
|
|
396
|
+
const scaleToUse = targetScale !== undefined ? targetScale : this.liveScale;
|
|
397
|
+
const itemElement = el.firstElementChild;
|
|
398
|
+
if (!itemElement)
|
|
399
|
+
return { minX: 0, maxX: 0, minY: 0, maxY: 0 };
|
|
400
|
+
let originalWidth = itemElement.offsetWidth;
|
|
401
|
+
let originalHeight = itemElement.offsetHeight;
|
|
402
|
+
const isRotated = Math.abs(this.rotation()) % 180 === 90;
|
|
403
|
+
if (isRotated) {
|
|
404
|
+
[originalWidth, originalHeight] = [originalHeight, originalWidth];
|
|
405
|
+
}
|
|
406
|
+
const scaledWidth = originalWidth * scaleToUse;
|
|
407
|
+
const scaledHeight = originalHeight * scaleToUse;
|
|
408
|
+
const contentCenterX = contentRect.width / 2;
|
|
409
|
+
const contentCenterY = contentRect.height / 2;
|
|
410
|
+
const halfScaledWidth = scaledWidth / 2;
|
|
411
|
+
const halfScaledHeight = scaledHeight / 2;
|
|
412
|
+
const maxX = halfScaledWidth > contentCenterX ? halfScaledWidth - contentCenterX : 0;
|
|
413
|
+
const minX = halfScaledWidth > contentCenterX ? -(halfScaledWidth - contentCenterX) : 0;
|
|
414
|
+
const maxY = halfScaledHeight > contentCenterY ? halfScaledHeight - contentCenterY : 0;
|
|
415
|
+
const minY = halfScaledHeight > contentCenterY ? -(halfScaledHeight - contentCenterY) : 0;
|
|
416
|
+
return { minX, maxX, minY, maxY };
|
|
417
|
+
}
|
|
418
|
+
zoomIn() {
|
|
419
|
+
this.scale.set(this.zoomedScale());
|
|
420
|
+
const el = this.$el;
|
|
421
|
+
if (el) {
|
|
422
|
+
el.style.cursor = 'zoom-out';
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
zoomOut() {
|
|
426
|
+
this.scale.set(this.normalScale());
|
|
427
|
+
this.position.set({ x: 0, y: 0 });
|
|
428
|
+
const el = this.$el;
|
|
429
|
+
if (el) {
|
|
430
|
+
el.style.cursor = 'zoom-in';
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
rotateLeft() {
|
|
434
|
+
this.markRotating();
|
|
435
|
+
this.rotation.update((prev) => prev - 90);
|
|
436
|
+
}
|
|
437
|
+
rotateRight() {
|
|
438
|
+
this.markRotating();
|
|
439
|
+
this.rotation.update((prev) => prev + 90);
|
|
440
|
+
}
|
|
441
|
+
rotateTimer = null;
|
|
442
|
+
markRotating() {
|
|
443
|
+
this.isRotating.set(true);
|
|
444
|
+
const el = this.$el;
|
|
445
|
+
if (el)
|
|
446
|
+
el.style.transition = '';
|
|
447
|
+
if (this.rotateTimer)
|
|
448
|
+
clearTimeout(this.rotateTimer);
|
|
449
|
+
this.rotateTimer = setTimeout(() => this.isRotating.set(false), 300);
|
|
450
|
+
}
|
|
451
|
+
flipX() {
|
|
452
|
+
this.flip.update((prev) => ({ ...prev, x: Math.sign(prev.x) * -1 }));
|
|
453
|
+
}
|
|
454
|
+
flipY() {
|
|
455
|
+
this.flip.update((prev) => ({ ...prev, y: Math.sign(prev.y) * -1 }));
|
|
456
|
+
}
|
|
457
|
+
download() {
|
|
458
|
+
const el = this.$el;
|
|
459
|
+
if (!el)
|
|
460
|
+
return;
|
|
461
|
+
const imageElement = el.querySelector('img');
|
|
462
|
+
if (!imageElement || !imageElement.src)
|
|
463
|
+
return;
|
|
464
|
+
const link = document.createElement('a');
|
|
465
|
+
link.href = imageElement.src;
|
|
466
|
+
const urlParts = imageElement.src.split('/');
|
|
467
|
+
const filename = urlParts[urlParts.length - 1] || 'image.jpg';
|
|
468
|
+
link.download = filename;
|
|
469
|
+
link.target = '_blank';
|
|
470
|
+
document.body.appendChild(link);
|
|
471
|
+
link.click();
|
|
472
|
+
document.body.removeChild(link);
|
|
473
|
+
}
|
|
474
|
+
handleClick(e) {
|
|
475
|
+
if (this.hasDragged) {
|
|
476
|
+
this.hasDragged = false;
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
const el = this.$el;
|
|
480
|
+
if (this.liveScale === this.normalScale()) {
|
|
481
|
+
if (el) {
|
|
482
|
+
const itemRect = el.getBoundingClientRect();
|
|
483
|
+
const itemCenterX = itemRect.width / 2;
|
|
484
|
+
const itemCenterY = itemRect.height / 2;
|
|
485
|
+
const clickX = e.clientX - itemRect.left;
|
|
486
|
+
const clickY = e.clientY - itemRect.top;
|
|
487
|
+
const offsetX = itemCenterX - clickX;
|
|
488
|
+
const offsetY = itemCenterY - clickY;
|
|
489
|
+
const zoomedScale = this.zoomedScale();
|
|
490
|
+
const zoomOffsetX = offsetX * (zoomedScale - 1);
|
|
491
|
+
const zoomOffsetY = offsetY * (zoomedScale - 1);
|
|
492
|
+
const constraints = this.calculateConstraints(zoomedScale);
|
|
493
|
+
const constrainedX = Math.max(constraints.minX, Math.min(constraints.maxX, zoomOffsetX));
|
|
494
|
+
const constrainedY = Math.max(constraints.minY, Math.min(constraints.maxY, zoomOffsetY));
|
|
495
|
+
this.position.set({ x: constrainedX, y: constrainedY });
|
|
496
|
+
}
|
|
497
|
+
this.zoomIn();
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
this.zoomOut();
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
handleDragStart(e) {
|
|
504
|
+
e.preventDefault();
|
|
505
|
+
}
|
|
506
|
+
handlePointerDown(e) {
|
|
507
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
508
|
+
this.pointerData.set(e.pointerId, { x: e.clientX, y: e.clientY });
|
|
509
|
+
this.pointerStart = { x: e.clientX, y: e.clientY };
|
|
510
|
+
if (e.pointerType === 'touch' && this.pointerData.size >= 2) {
|
|
511
|
+
this.isDragging = false;
|
|
512
|
+
this.initialPinchDistance = 0;
|
|
513
|
+
this.initialPinchScale = this.liveScale;
|
|
514
|
+
}
|
|
515
|
+
else if (this.liveScale > 1) {
|
|
516
|
+
if (e.pointerType === 'mouse' || (e.pointerType === 'touch' && this.pointerData.size === 1)) {
|
|
517
|
+
this.isDragging = true;
|
|
518
|
+
this.dragStart = { x: e.clientX - this.livePosition.x, y: e.clientY - this.livePosition.y };
|
|
519
|
+
this.hasDragged = false;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
handlePointerMove(e) {
|
|
524
|
+
if (!this.pointerData.has(e.pointerId))
|
|
525
|
+
return;
|
|
526
|
+
const el = this.$el;
|
|
527
|
+
if (!el)
|
|
528
|
+
return;
|
|
529
|
+
el.style.transition = 'none';
|
|
530
|
+
if (e.pointerType === 'mouse' && !el.style.cursor) {
|
|
531
|
+
el.style.cursor = this.liveScale > this.normalScale() ? 'zoom-out' : 'zoom-in';
|
|
532
|
+
}
|
|
533
|
+
this.pointerData.set(e.pointerId, { x: e.clientX, y: e.clientY });
|
|
534
|
+
const pointers = Array.from(this.pointerData.values());
|
|
535
|
+
if (pointers.length === 2) {
|
|
536
|
+
const [p1, p2] = pointers;
|
|
537
|
+
const distance = Math.hypot(p2.x - p1.x, p2.y - p1.y);
|
|
538
|
+
this.hasDragged = true;
|
|
539
|
+
if (this.initialPinchDistance === 0) {
|
|
540
|
+
this.initialPinchDistance = distance;
|
|
541
|
+
this.initialPinchScale = this.liveScale;
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
const ratio = distance / this.initialPinchDistance;
|
|
545
|
+
const newScale = Math.max(this.normalScale(), Math.min(this.zoomedScale(), this.initialPinchScale * ratio));
|
|
546
|
+
const constraints = this.calculateConstraints(newScale);
|
|
547
|
+
const constrainedX = Math.max(constraints.minX, Math.min(constraints.maxX, this.livePosition.x));
|
|
548
|
+
const constrainedY = Math.max(constraints.minY, Math.min(constraints.maxY, this.livePosition.y));
|
|
549
|
+
this.liveScale = newScale;
|
|
550
|
+
this.livePosition = { x: constrainedX, y: constrainedY };
|
|
551
|
+
el.style.setProperty('--px-scale', `${newScale}`);
|
|
552
|
+
el.style.setProperty('--px-position-x', `${constrainedX}px`);
|
|
553
|
+
el.style.setProperty('--px-position-y', `${constrainedY}px`);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
else if (pointers.length === 1 && this.isDragging) {
|
|
557
|
+
const pointer = pointers[0];
|
|
558
|
+
const newX = pointer.x - this.dragStart.x;
|
|
559
|
+
const newY = pointer.y - this.dragStart.y;
|
|
560
|
+
const constraints = this.calculateConstraints(this.liveScale);
|
|
561
|
+
const computedX = Math.max(constraints.minX, Math.min(constraints.maxX, newX));
|
|
562
|
+
const computedY = Math.max(constraints.minY, Math.min(constraints.maxY, newY));
|
|
563
|
+
this.livePosition = { x: computedX, y: computedY };
|
|
564
|
+
el.style.setProperty('--px-position-x', `${computedX}px`);
|
|
565
|
+
el.style.setProperty('--px-position-y', `${computedY}px`);
|
|
566
|
+
const distFromStart = Math.hypot(pointer.x - this.pointerStart.x, pointer.y - this.pointerStart.y);
|
|
567
|
+
if (distFromStart > 5) {
|
|
568
|
+
this.hasDragged = true;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
handlePointerUp(e) {
|
|
573
|
+
const el = this.$el;
|
|
574
|
+
if (!el)
|
|
575
|
+
return;
|
|
576
|
+
el.style.transition = '';
|
|
577
|
+
if (e.pointerType === 'mouse') {
|
|
578
|
+
el.style.cursor = this.liveScale > this.normalScale() ? 'zoom-out' : 'zoom-in';
|
|
579
|
+
}
|
|
580
|
+
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
581
|
+
this.pointerData.delete(e.pointerId);
|
|
582
|
+
if (this.pointerData.size < 2) {
|
|
583
|
+
this.initialPinchDistance = 0;
|
|
584
|
+
this.initialPinchScale = 1;
|
|
585
|
+
}
|
|
586
|
+
if (this.pointerData.size === 0) {
|
|
587
|
+
this.isDragging = false;
|
|
588
|
+
this.scale.set(this.liveScale);
|
|
589
|
+
this.position.set(this.livePosition);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
593
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: GalleryItem, isStandalone: true, selector: "p-gallery-item", inputs: { normalScale: { classPropertyName: "normalScale", publicName: "normalScale", isSignal: true, isRequired: false, transformFunction: null }, zoomedScale: { classPropertyName: "zoomedScale", publicName: "zoomedScale", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "handleClick($event)", "pointerdown": "handlePointerDown($event)", "pointermove": "handlePointerMove($event)", "pointerup": "handlePointerUp($event)", "dragstart": "handleDragStart($event)" }, properties: { "class": "gallery.cx('item')", "attr.data-scope": "'gallery'", "attr.data-part": "'item'", "attr.data-index": "index()", "attr.data-active": "isActive() ? '' : null", "attr.data-rotating": "isRotating() ? '' : null", "style.--px-position-x": "stylePositionX()", "style.--px-position-y": "stylePositionY()", "style.--px-scale": "scale()", "style.--px-rotation": "styleRotation()", "style.--px-flip-x": "styleFlipX()", "style.--px-flip-y": "styleFlipY()" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryItem }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
594
|
+
}
|
|
595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryItem, decorators: [{
|
|
596
|
+
type: Component,
|
|
597
|
+
args: [{
|
|
598
|
+
selector: 'p-gallery-item',
|
|
599
|
+
standalone: true,
|
|
600
|
+
imports: [BindModule],
|
|
601
|
+
template: `<ng-content></ng-content>`,
|
|
602
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryItem }],
|
|
603
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
604
|
+
encapsulation: ViewEncapsulation.None,
|
|
605
|
+
host: {
|
|
606
|
+
'[class]': "gallery.cx('item')",
|
|
607
|
+
'[attr.data-scope]': "'gallery'",
|
|
608
|
+
'[attr.data-part]': "'item'",
|
|
609
|
+
'[attr.data-index]': 'index()',
|
|
610
|
+
'[attr.data-active]': "isActive() ? '' : null",
|
|
611
|
+
'[attr.data-rotating]': "isRotating() ? '' : null",
|
|
612
|
+
'[style.--px-position-x]': 'stylePositionX()',
|
|
613
|
+
'[style.--px-position-y]': 'stylePositionY()',
|
|
614
|
+
'[style.--px-scale]': 'scale()',
|
|
615
|
+
'[style.--px-rotation]': 'styleRotation()',
|
|
616
|
+
'[style.--px-flip-x]': 'styleFlipX()',
|
|
617
|
+
'[style.--px-flip-y]': 'styleFlipY()',
|
|
618
|
+
'(click)': 'handleClick($event)',
|
|
619
|
+
'(pointerdown)': 'handlePointerDown($event)',
|
|
620
|
+
'(pointermove)': 'handlePointerMove($event)',
|
|
621
|
+
'(pointerup)': 'handlePointerUp($event)',
|
|
622
|
+
'(dragstart)': 'handleDragStart($event)'
|
|
623
|
+
},
|
|
624
|
+
hostDirectives: [Bind]
|
|
625
|
+
}]
|
|
626
|
+
}], ctorParameters: () => [], propDecorators: { normalScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "normalScale", required: false }] }], zoomedScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomedScale", required: false }] }] } });
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* GalleryHeader represents the header section of the gallery.
|
|
630
|
+
* @group Components
|
|
631
|
+
*/
|
|
632
|
+
class GalleryHeader extends BaseComponent {
|
|
633
|
+
componentName = 'GalleryHeader';
|
|
634
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
635
|
+
gallery = inject(Gallery);
|
|
636
|
+
onAfterViewChecked() {
|
|
637
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
638
|
+
}
|
|
639
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryHeader, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
640
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.3", type: GalleryHeader, isStandalone: true, selector: "p-gallery-header", host: { properties: { "class": "gallery.cx('header')", "attr.data-scope": "'gallery'", "attr.data-part": "'header'" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryHeader }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
641
|
+
}
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryHeader, decorators: [{
|
|
643
|
+
type: Component,
|
|
644
|
+
args: [{
|
|
645
|
+
selector: 'p-gallery-header',
|
|
646
|
+
standalone: true,
|
|
647
|
+
imports: [BindModule],
|
|
648
|
+
template: `<ng-content></ng-content>`,
|
|
649
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryHeader }],
|
|
650
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
651
|
+
encapsulation: ViewEncapsulation.None,
|
|
652
|
+
host: {
|
|
653
|
+
'[class]': "gallery.cx('header')",
|
|
654
|
+
'[attr.data-scope]': "'gallery'",
|
|
655
|
+
'[attr.data-part]': "'header'"
|
|
656
|
+
},
|
|
657
|
+
hostDirectives: [Bind]
|
|
658
|
+
}]
|
|
659
|
+
}] });
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* GalleryContent represents the main content area of the gallery.
|
|
663
|
+
* @group Components
|
|
664
|
+
*/
|
|
665
|
+
class GalleryContent extends BaseComponent {
|
|
666
|
+
componentName = 'GalleryContent';
|
|
667
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
668
|
+
gallery = inject(Gallery);
|
|
669
|
+
onAfterViewChecked() {
|
|
670
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
671
|
+
}
|
|
672
|
+
constructor() {
|
|
673
|
+
super();
|
|
674
|
+
afterNextRender(() => {
|
|
675
|
+
this.gallery.setContentEl(this.$el);
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
679
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.3", type: GalleryContent, isStandalone: true, selector: "p-gallery-content", host: { properties: { "class": "gallery.cx('content')", "attr.data-scope": "'gallery'", "attr.data-part": "'content'" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryContent }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
680
|
+
}
|
|
681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryContent, decorators: [{
|
|
682
|
+
type: Component,
|
|
683
|
+
args: [{
|
|
684
|
+
selector: 'p-gallery-content',
|
|
685
|
+
standalone: true,
|
|
686
|
+
imports: [BindModule],
|
|
687
|
+
template: `<ng-content></ng-content>`,
|
|
688
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryContent }],
|
|
689
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
690
|
+
encapsulation: ViewEncapsulation.None,
|
|
691
|
+
host: {
|
|
692
|
+
'[class]': "gallery.cx('content')",
|
|
693
|
+
'[attr.data-scope]': "'gallery'",
|
|
694
|
+
'[attr.data-part]': "'content'"
|
|
695
|
+
},
|
|
696
|
+
hostDirectives: [Bind]
|
|
697
|
+
}]
|
|
698
|
+
}], ctorParameters: () => [] });
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* GalleryFooter represents the footer section of the gallery.
|
|
702
|
+
* @group Components
|
|
703
|
+
*/
|
|
704
|
+
class GalleryFooter extends BaseComponent {
|
|
705
|
+
componentName = 'GalleryFooter';
|
|
706
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
707
|
+
gallery = inject(Gallery);
|
|
708
|
+
onAfterViewChecked() {
|
|
709
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
710
|
+
}
|
|
711
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryFooter, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
712
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.3", type: GalleryFooter, isStandalone: true, selector: "p-gallery-footer", host: { properties: { "class": "gallery.cx('footer')", "attr.data-scope": "'gallery'", "attr.data-part": "'footer'" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryFooter }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
713
|
+
}
|
|
714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryFooter, decorators: [{
|
|
715
|
+
type: Component,
|
|
716
|
+
args: [{
|
|
717
|
+
selector: 'p-gallery-footer',
|
|
718
|
+
standalone: true,
|
|
719
|
+
imports: [BindModule],
|
|
720
|
+
template: `<ng-content></ng-content>`,
|
|
721
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryFooter }],
|
|
722
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
723
|
+
encapsulation: ViewEncapsulation.None,
|
|
724
|
+
host: {
|
|
725
|
+
'[class]': "gallery.cx('footer')",
|
|
726
|
+
'[attr.data-scope]': "'gallery'",
|
|
727
|
+
'[attr.data-part]': "'footer'"
|
|
728
|
+
},
|
|
729
|
+
hostDirectives: [Bind]
|
|
730
|
+
}]
|
|
731
|
+
}] });
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* GalleryBackdrop represents the backdrop element for fullscreen mode.
|
|
735
|
+
* @group Components
|
|
736
|
+
*/
|
|
737
|
+
class GalleryBackdrop extends BaseComponent {
|
|
738
|
+
componentName = 'GalleryBackdrop';
|
|
739
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
740
|
+
gallery = inject(Gallery);
|
|
741
|
+
onAfterViewChecked() {
|
|
742
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
743
|
+
}
|
|
744
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryBackdrop, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
745
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.3", type: GalleryBackdrop, isStandalone: true, selector: "p-gallery-backdrop", host: { properties: { "class": "gallery.cx('backdrop')", "attr.data-scope": "'gallery'", "attr.data-part": "'backdrop'" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryBackdrop }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
746
|
+
}
|
|
747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryBackdrop, decorators: [{
|
|
748
|
+
type: Component,
|
|
749
|
+
args: [{
|
|
750
|
+
selector: 'p-gallery-backdrop',
|
|
751
|
+
standalone: true,
|
|
752
|
+
imports: [BindModule],
|
|
753
|
+
template: `<ng-content></ng-content>`,
|
|
754
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryBackdrop }],
|
|
755
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
756
|
+
encapsulation: ViewEncapsulation.None,
|
|
757
|
+
host: {
|
|
758
|
+
'[class]': "gallery.cx('backdrop')",
|
|
759
|
+
'[attr.data-scope]': "'gallery'",
|
|
760
|
+
'[attr.data-part]': "'backdrop'"
|
|
761
|
+
},
|
|
762
|
+
hostDirectives: [Bind]
|
|
763
|
+
}]
|
|
764
|
+
}] });
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* GalleryToolbar represents the toolbar container.
|
|
768
|
+
* @group Components
|
|
769
|
+
*/
|
|
770
|
+
class GalleryToolbar extends BaseComponent {
|
|
771
|
+
componentName = 'GalleryToolbar';
|
|
772
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
773
|
+
gallery = inject(Gallery);
|
|
774
|
+
onAfterViewChecked() {
|
|
775
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
776
|
+
}
|
|
777
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryToolbar, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
778
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.3", type: GalleryToolbar, isStandalone: true, selector: "p-gallery-toolbar", host: { properties: { "class": "gallery.cx('toolbar')", "attr.data-scope": "'gallery'", "attr.data-part": "'toolbar'" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryToolbar }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
779
|
+
}
|
|
780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryToolbar, decorators: [{
|
|
781
|
+
type: Component,
|
|
782
|
+
args: [{
|
|
783
|
+
selector: 'p-gallery-toolbar',
|
|
784
|
+
standalone: true,
|
|
785
|
+
imports: [BindModule],
|
|
786
|
+
template: `<ng-content></ng-content>`,
|
|
787
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryToolbar }],
|
|
788
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
789
|
+
encapsulation: ViewEncapsulation.None,
|
|
790
|
+
host: {
|
|
791
|
+
'[class]': "gallery.cx('toolbar')",
|
|
792
|
+
'[attr.data-scope]': "'gallery'",
|
|
793
|
+
'[attr.data-part]': "'toolbar'"
|
|
794
|
+
},
|
|
795
|
+
hostDirectives: [Bind]
|
|
796
|
+
}]
|
|
797
|
+
}] });
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* GalleryToolbarItem represents an individual toolbar item.
|
|
801
|
+
* @group Components
|
|
802
|
+
*/
|
|
803
|
+
class GalleryToolbarItem extends BaseComponent {
|
|
804
|
+
componentName = 'GalleryToolbarItem';
|
|
805
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
806
|
+
/**
|
|
807
|
+
* The action to dispatch when the toolbar item is clicked.
|
|
808
|
+
* @group Props
|
|
809
|
+
*/
|
|
810
|
+
action = input(/* @ts-ignore */
|
|
811
|
+
...(ngDevMode ? [undefined, { debugName: "action" }] : /* istanbul ignore next */ []));
|
|
812
|
+
gallery = inject(Gallery);
|
|
813
|
+
onAfterViewChecked() {
|
|
814
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
815
|
+
}
|
|
816
|
+
onClick() {
|
|
817
|
+
this.gallery.handleClickAction(this.action());
|
|
818
|
+
}
|
|
819
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryToolbarItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
820
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: GalleryToolbarItem, isStandalone: true, selector: "p-gallery-toolbar-item", inputs: { action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('toolbarItem')", "attr.data-scope": "'gallery'", "attr.data-part": "'toolbarItem'" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryToolbarItem }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
821
|
+
}
|
|
822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryToolbarItem, decorators: [{
|
|
823
|
+
type: Component,
|
|
824
|
+
args: [{
|
|
825
|
+
selector: 'p-gallery-toolbar-item',
|
|
826
|
+
standalone: true,
|
|
827
|
+
imports: [BindModule],
|
|
828
|
+
template: `<ng-content></ng-content>`,
|
|
829
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryToolbarItem }],
|
|
830
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
831
|
+
encapsulation: ViewEncapsulation.None,
|
|
832
|
+
host: {
|
|
833
|
+
'[class]': "gallery.cx('toolbarItem')",
|
|
834
|
+
'[attr.data-scope]': "'gallery'",
|
|
835
|
+
'[attr.data-part]': "'toolbarItem'",
|
|
836
|
+
'(click)': 'onClick()'
|
|
837
|
+
},
|
|
838
|
+
hostDirectives: [Bind]
|
|
839
|
+
}]
|
|
840
|
+
}], propDecorators: { action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }] } });
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* GalleryPrev represents the previous navigation button.
|
|
844
|
+
* @group Components
|
|
845
|
+
*/
|
|
846
|
+
class GalleryPrev extends BaseComponent {
|
|
847
|
+
componentName = 'GalleryPrev';
|
|
848
|
+
gallery = inject(Gallery);
|
|
849
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
850
|
+
_componentStyle = inject(GalleryStyle);
|
|
851
|
+
onClick() {
|
|
852
|
+
this.gallery.handlePrev();
|
|
853
|
+
}
|
|
854
|
+
onAfterViewChecked() {
|
|
855
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
856
|
+
}
|
|
857
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryPrev, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
858
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryPrev, isStandalone: true, selector: "[pGalleryPrev]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('prev')", "attr.data-scope": "'gallery'", "attr.data-part": "'prev'" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryPrev }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
859
|
+
}
|
|
860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryPrev, decorators: [{
|
|
861
|
+
type: Directive,
|
|
862
|
+
args: [{
|
|
863
|
+
selector: '[pGalleryPrev]',
|
|
864
|
+
standalone: true,
|
|
865
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryPrev }],
|
|
866
|
+
host: {
|
|
867
|
+
'[class]': "gallery.cx('prev')",
|
|
868
|
+
'[attr.data-scope]': "'gallery'",
|
|
869
|
+
'[attr.data-part]': "'prev'",
|
|
870
|
+
'(click)': 'onClick()'
|
|
871
|
+
},
|
|
872
|
+
hostDirectives: [Bind]
|
|
873
|
+
}]
|
|
874
|
+
}] });
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* GalleryNext represents the next navigation button.
|
|
878
|
+
* @group Components
|
|
879
|
+
*/
|
|
880
|
+
class GalleryNext extends BaseComponent {
|
|
881
|
+
componentName = 'GalleryNext';
|
|
882
|
+
gallery = inject(Gallery);
|
|
883
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
884
|
+
_componentStyle = inject(GalleryStyle);
|
|
885
|
+
onClick() {
|
|
886
|
+
this.gallery.handleNext();
|
|
887
|
+
}
|
|
888
|
+
onAfterViewChecked() {
|
|
889
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
890
|
+
}
|
|
891
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryNext, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
892
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryNext, isStandalone: true, selector: "[pGalleryNext]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('next')", "attr.data-scope": "'gallery'", "attr.data-part": "'next'" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryNext }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
893
|
+
}
|
|
894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryNext, decorators: [{
|
|
895
|
+
type: Directive,
|
|
896
|
+
args: [{
|
|
897
|
+
selector: '[pGalleryNext]',
|
|
898
|
+
standalone: true,
|
|
899
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryNext }],
|
|
900
|
+
host: {
|
|
901
|
+
'[class]': "gallery.cx('next')",
|
|
902
|
+
'[attr.data-scope]': "'gallery'",
|
|
903
|
+
'[attr.data-part]': "'next'",
|
|
904
|
+
'(click)': 'onClick()'
|
|
905
|
+
},
|
|
906
|
+
hostDirectives: [Bind]
|
|
907
|
+
}]
|
|
908
|
+
}] });
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* GalleryZoomIn represents the zoom in action button.
|
|
912
|
+
* @group Components
|
|
913
|
+
*/
|
|
914
|
+
class GalleryZoomIn extends BaseComponent {
|
|
915
|
+
componentName = 'GalleryZoomIn';
|
|
916
|
+
gallery = inject(Gallery);
|
|
917
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
918
|
+
_componentStyle = inject(GalleryStyle);
|
|
919
|
+
disabledState = computed(() => (this.gallery.activeItemTransform().zoomed ? true : null), /* @ts-ignore */
|
|
920
|
+
...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
|
|
921
|
+
onClick() {
|
|
922
|
+
this.gallery.handleClickAction('zoomIn');
|
|
923
|
+
}
|
|
924
|
+
onAfterViewChecked() {
|
|
925
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
926
|
+
}
|
|
927
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryZoomIn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
928
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryZoomIn, isStandalone: true, selector: "[pGalleryZoomIn]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('zoomIn')", "attr.data-scope": "'gallery'", "attr.data-part": "'zoomIn'", "attr.data-action": "'zoom-in'", "attr.disabled": "disabledState()" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryZoomIn }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
929
|
+
}
|
|
930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryZoomIn, decorators: [{
|
|
931
|
+
type: Directive,
|
|
932
|
+
args: [{
|
|
933
|
+
selector: '[pGalleryZoomIn]',
|
|
934
|
+
standalone: true,
|
|
935
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryZoomIn }],
|
|
936
|
+
host: {
|
|
937
|
+
'[class]': "gallery.cx('zoomIn')",
|
|
938
|
+
'[attr.data-scope]': "'gallery'",
|
|
939
|
+
'[attr.data-part]': "'zoomIn'",
|
|
940
|
+
'[attr.data-action]': "'zoom-in'",
|
|
941
|
+
'[attr.disabled]': 'disabledState()',
|
|
942
|
+
'(click)': 'onClick()'
|
|
943
|
+
},
|
|
944
|
+
hostDirectives: [Bind]
|
|
945
|
+
}]
|
|
946
|
+
}] });
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* GalleryZoomOut represents the zoom out action button.
|
|
950
|
+
* @group Components
|
|
951
|
+
*/
|
|
952
|
+
class GalleryZoomOut extends BaseComponent {
|
|
953
|
+
componentName = 'GalleryZoomOut';
|
|
954
|
+
gallery = inject(Gallery);
|
|
955
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
956
|
+
_componentStyle = inject(GalleryStyle);
|
|
957
|
+
disabledState = computed(() => (!this.gallery.activeItemTransform().zoomed ? true : null), /* @ts-ignore */
|
|
958
|
+
...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
|
|
959
|
+
onClick() {
|
|
960
|
+
this.gallery.handleClickAction('zoomOut');
|
|
961
|
+
}
|
|
962
|
+
onAfterViewChecked() {
|
|
963
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
964
|
+
}
|
|
965
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryZoomOut, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
966
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryZoomOut, isStandalone: true, selector: "[pGalleryZoomOut]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('zoomOut')", "attr.data-scope": "'gallery'", "attr.data-part": "'zoomOut'", "attr.data-action": "'zoom-out'", "attr.disabled": "disabledState()" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryZoomOut }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
967
|
+
}
|
|
968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryZoomOut, decorators: [{
|
|
969
|
+
type: Directive,
|
|
970
|
+
args: [{
|
|
971
|
+
selector: '[pGalleryZoomOut]',
|
|
972
|
+
standalone: true,
|
|
973
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryZoomOut }],
|
|
974
|
+
host: {
|
|
975
|
+
'[class]': "gallery.cx('zoomOut')",
|
|
976
|
+
'[attr.data-scope]': "'gallery'",
|
|
977
|
+
'[attr.data-part]': "'zoomOut'",
|
|
978
|
+
'[attr.data-action]': "'zoom-out'",
|
|
979
|
+
'[attr.disabled]': 'disabledState()',
|
|
980
|
+
'(click)': 'onClick()'
|
|
981
|
+
},
|
|
982
|
+
hostDirectives: [Bind]
|
|
983
|
+
}]
|
|
984
|
+
}] });
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* GalleryZoomToggle represents the zoom toggle action button.
|
|
988
|
+
* @group Components
|
|
989
|
+
*/
|
|
990
|
+
class GalleryZoomToggle extends BaseComponent {
|
|
991
|
+
componentName = 'GalleryZoomToggle';
|
|
992
|
+
gallery = inject(Gallery);
|
|
993
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
994
|
+
_componentStyle = inject(GalleryStyle);
|
|
995
|
+
onToggle() {
|
|
996
|
+
this.gallery.handleClickAction(this.gallery.activeItemTransform().zoomed ? 'zoomOut' : 'zoomIn');
|
|
997
|
+
}
|
|
998
|
+
onAfterViewChecked() {
|
|
999
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1000
|
+
}
|
|
1001
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryZoomToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1002
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryZoomToggle, isStandalone: true, selector: "[pGalleryZoomToggle]", host: { listeners: { "click": "onToggle()" }, properties: { "class": "gallery.cx('zoomToggle')", "attr.data-scope": "'gallery'", "attr.data-part": "'zoomToggle'", "attr.data-action": "'zoom-toggle'" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryZoomToggle }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
1003
|
+
}
|
|
1004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryZoomToggle, decorators: [{
|
|
1005
|
+
type: Directive,
|
|
1006
|
+
args: [{
|
|
1007
|
+
selector: '[pGalleryZoomToggle]',
|
|
1008
|
+
standalone: true,
|
|
1009
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryZoomToggle }],
|
|
1010
|
+
host: {
|
|
1011
|
+
'[class]': "gallery.cx('zoomToggle')",
|
|
1012
|
+
'[attr.data-scope]': "'gallery'",
|
|
1013
|
+
'[attr.data-part]': "'zoomToggle'",
|
|
1014
|
+
'[attr.data-action]': "'zoom-toggle'",
|
|
1015
|
+
'(click)': 'onToggle()'
|
|
1016
|
+
},
|
|
1017
|
+
hostDirectives: [Bind]
|
|
1018
|
+
}]
|
|
1019
|
+
}] });
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* GalleryRotateLeft represents the rotate left action button.
|
|
1023
|
+
* @group Components
|
|
1024
|
+
*/
|
|
1025
|
+
class GalleryRotateLeft extends BaseComponent {
|
|
1026
|
+
componentName = 'GalleryRotateLeft';
|
|
1027
|
+
gallery = inject(Gallery);
|
|
1028
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1029
|
+
_componentStyle = inject(GalleryStyle);
|
|
1030
|
+
onClick() {
|
|
1031
|
+
this.gallery.handleClickAction('rotateLeft');
|
|
1032
|
+
}
|
|
1033
|
+
onAfterViewChecked() {
|
|
1034
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1035
|
+
}
|
|
1036
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryRotateLeft, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1037
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryRotateLeft, isStandalone: true, selector: "[pGalleryRotateLeft]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('rotateLeft')", "attr.data-scope": "'gallery'", "attr.data-part": "'rotateLeft'", "attr.data-action": "'rotate-left'" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryRotateLeft }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
1038
|
+
}
|
|
1039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryRotateLeft, decorators: [{
|
|
1040
|
+
type: Directive,
|
|
1041
|
+
args: [{
|
|
1042
|
+
selector: '[pGalleryRotateLeft]',
|
|
1043
|
+
standalone: true,
|
|
1044
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryRotateLeft }],
|
|
1045
|
+
host: {
|
|
1046
|
+
'[class]': "gallery.cx('rotateLeft')",
|
|
1047
|
+
'[attr.data-scope]': "'gallery'",
|
|
1048
|
+
'[attr.data-part]': "'rotateLeft'",
|
|
1049
|
+
'[attr.data-action]': "'rotate-left'",
|
|
1050
|
+
'(click)': 'onClick()'
|
|
1051
|
+
},
|
|
1052
|
+
hostDirectives: [Bind]
|
|
1053
|
+
}]
|
|
1054
|
+
}] });
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* GalleryRotateRight represents the rotate right action button.
|
|
1058
|
+
* @group Components
|
|
1059
|
+
*/
|
|
1060
|
+
class GalleryRotateRight extends BaseComponent {
|
|
1061
|
+
componentName = 'GalleryRotateRight';
|
|
1062
|
+
gallery = inject(Gallery);
|
|
1063
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1064
|
+
_componentStyle = inject(GalleryStyle);
|
|
1065
|
+
onClick() {
|
|
1066
|
+
this.gallery.handleClickAction('rotateRight');
|
|
1067
|
+
}
|
|
1068
|
+
onAfterViewChecked() {
|
|
1069
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1070
|
+
}
|
|
1071
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryRotateRight, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1072
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryRotateRight, isStandalone: true, selector: "[pGalleryRotateRight]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('rotateRight')", "attr.data-scope": "'gallery'", "attr.data-part": "'rotateRight'", "attr.data-action": "'rotate-right'" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryRotateRight }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
1073
|
+
}
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryRotateRight, decorators: [{
|
|
1075
|
+
type: Directive,
|
|
1076
|
+
args: [{
|
|
1077
|
+
selector: '[pGalleryRotateRight]',
|
|
1078
|
+
standalone: true,
|
|
1079
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryRotateRight }],
|
|
1080
|
+
host: {
|
|
1081
|
+
'[class]': "gallery.cx('rotateRight')",
|
|
1082
|
+
'[attr.data-scope]': "'gallery'",
|
|
1083
|
+
'[attr.data-part]': "'rotateRight'",
|
|
1084
|
+
'[attr.data-action]': "'rotate-right'",
|
|
1085
|
+
'(click)': 'onClick()'
|
|
1086
|
+
},
|
|
1087
|
+
hostDirectives: [Bind]
|
|
1088
|
+
}]
|
|
1089
|
+
}] });
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* GalleryFlipX represents the horizontal flip action button.
|
|
1093
|
+
* @group Components
|
|
1094
|
+
*/
|
|
1095
|
+
class GalleryFlipX extends BaseComponent {
|
|
1096
|
+
componentName = 'GalleryFlipX';
|
|
1097
|
+
gallery = inject(Gallery);
|
|
1098
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1099
|
+
_componentStyle = inject(GalleryStyle);
|
|
1100
|
+
onClick() {
|
|
1101
|
+
this.gallery.handleClickAction('flipX');
|
|
1102
|
+
}
|
|
1103
|
+
onAfterViewChecked() {
|
|
1104
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1105
|
+
}
|
|
1106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryFlipX, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1107
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryFlipX, isStandalone: true, selector: "[pGalleryFlipX]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('flipX')", "attr.data-scope": "'gallery'", "attr.data-part": "'flipX'", "attr.data-action": "'flip-x'" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryFlipX }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
1108
|
+
}
|
|
1109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryFlipX, decorators: [{
|
|
1110
|
+
type: Directive,
|
|
1111
|
+
args: [{
|
|
1112
|
+
selector: '[pGalleryFlipX]',
|
|
1113
|
+
standalone: true,
|
|
1114
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryFlipX }],
|
|
1115
|
+
host: {
|
|
1116
|
+
'[class]': "gallery.cx('flipX')",
|
|
1117
|
+
'[attr.data-scope]': "'gallery'",
|
|
1118
|
+
'[attr.data-part]': "'flipX'",
|
|
1119
|
+
'[attr.data-action]': "'flip-x'",
|
|
1120
|
+
'(click)': 'onClick()'
|
|
1121
|
+
},
|
|
1122
|
+
hostDirectives: [Bind]
|
|
1123
|
+
}]
|
|
1124
|
+
}] });
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* GalleryFlipY represents the vertical flip action button.
|
|
1128
|
+
* @group Components
|
|
1129
|
+
*/
|
|
1130
|
+
class GalleryFlipY extends BaseComponent {
|
|
1131
|
+
componentName = 'GalleryFlipY';
|
|
1132
|
+
gallery = inject(Gallery);
|
|
1133
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1134
|
+
_componentStyle = inject(GalleryStyle);
|
|
1135
|
+
onClick() {
|
|
1136
|
+
this.gallery.handleClickAction('flipY');
|
|
1137
|
+
}
|
|
1138
|
+
onAfterViewChecked() {
|
|
1139
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1140
|
+
}
|
|
1141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryFlipY, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1142
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryFlipY, isStandalone: true, selector: "[pGalleryFlipY]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('flipY')", "attr.data-scope": "'gallery'", "attr.data-part": "'flipY'", "attr.data-action": "'flip-y'" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryFlipY }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
1143
|
+
}
|
|
1144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryFlipY, decorators: [{
|
|
1145
|
+
type: Directive,
|
|
1146
|
+
args: [{
|
|
1147
|
+
selector: '[pGalleryFlipY]',
|
|
1148
|
+
standalone: true,
|
|
1149
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryFlipY }],
|
|
1150
|
+
host: {
|
|
1151
|
+
'[class]': "gallery.cx('flipY')",
|
|
1152
|
+
'[attr.data-scope]': "'gallery'",
|
|
1153
|
+
'[attr.data-part]': "'flipY'",
|
|
1154
|
+
'[attr.data-action]': "'flip-y'",
|
|
1155
|
+
'(click)': 'onClick()'
|
|
1156
|
+
},
|
|
1157
|
+
hostDirectives: [Bind]
|
|
1158
|
+
}]
|
|
1159
|
+
}] });
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* GalleryFullScreen represents the fullscreen toggle button.
|
|
1163
|
+
* @group Components
|
|
1164
|
+
*/
|
|
1165
|
+
class GalleryFullScreen extends BaseComponent {
|
|
1166
|
+
componentName = 'GalleryFullScreen';
|
|
1167
|
+
gallery = inject(Gallery);
|
|
1168
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1169
|
+
_componentStyle = inject(GalleryStyle);
|
|
1170
|
+
dataFullscreen = computed(() => (this.gallery.isFullscreen() ? '' : null), /* @ts-ignore */
|
|
1171
|
+
...(ngDevMode ? [{ debugName: "dataFullscreen" }] : /* istanbul ignore next */ []));
|
|
1172
|
+
onClick() {
|
|
1173
|
+
this.gallery.handleClickAction('toggleFullScreen');
|
|
1174
|
+
}
|
|
1175
|
+
onAfterViewChecked() {
|
|
1176
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1177
|
+
}
|
|
1178
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryFullScreen, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1179
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryFullScreen, isStandalone: true, selector: "[pGalleryFullScreen]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('fullScreen')", "attr.data-scope": "'gallery'", "attr.data-part": "'fullScreen'", "attr.data-action": "'fullscreen'", "attr.data-fullscreen": "dataFullscreen()" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryFullScreen }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
1180
|
+
}
|
|
1181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryFullScreen, decorators: [{
|
|
1182
|
+
type: Directive,
|
|
1183
|
+
args: [{
|
|
1184
|
+
selector: '[pGalleryFullScreen]',
|
|
1185
|
+
standalone: true,
|
|
1186
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryFullScreen }],
|
|
1187
|
+
host: {
|
|
1188
|
+
'[class]': "gallery.cx('fullScreen')",
|
|
1189
|
+
'[attr.data-scope]': "'gallery'",
|
|
1190
|
+
'[attr.data-part]': "'fullScreen'",
|
|
1191
|
+
'[attr.data-action]': "'fullscreen'",
|
|
1192
|
+
'[attr.data-fullscreen]': 'dataFullscreen()',
|
|
1193
|
+
'(click)': 'onClick()'
|
|
1194
|
+
},
|
|
1195
|
+
hostDirectives: [Bind]
|
|
1196
|
+
}]
|
|
1197
|
+
}] });
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* GalleryDownload represents the download action button.
|
|
1201
|
+
* @group Components
|
|
1202
|
+
*/
|
|
1203
|
+
class GalleryDownload extends BaseComponent {
|
|
1204
|
+
componentName = 'GalleryDownload';
|
|
1205
|
+
gallery = inject(Gallery);
|
|
1206
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1207
|
+
_componentStyle = inject(GalleryStyle);
|
|
1208
|
+
onClick() {
|
|
1209
|
+
this.gallery.handleClickAction('download');
|
|
1210
|
+
}
|
|
1211
|
+
onAfterViewChecked() {
|
|
1212
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1213
|
+
}
|
|
1214
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryDownload, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1215
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.3", type: GalleryDownload, isStandalone: true, selector: "[pGalleryDownload]", host: { listeners: { "click": "onClick()" }, properties: { "class": "gallery.cx('download')", "attr.data-scope": "'gallery'", "attr.data-part": "'download'", "attr.data-action": "'download'" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryDownload }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
1216
|
+
}
|
|
1217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryDownload, decorators: [{
|
|
1218
|
+
type: Directive,
|
|
1219
|
+
args: [{
|
|
1220
|
+
selector: '[pGalleryDownload]',
|
|
1221
|
+
standalone: true,
|
|
1222
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: GalleryDownload }],
|
|
1223
|
+
host: {
|
|
1224
|
+
'[class]': "gallery.cx('download')",
|
|
1225
|
+
'[attr.data-scope]': "'gallery'",
|
|
1226
|
+
'[attr.data-part]': "'download'",
|
|
1227
|
+
'[attr.data-action]': "'download'",
|
|
1228
|
+
'(click)': 'onClick()'
|
|
1229
|
+
},
|
|
1230
|
+
hostDirectives: [Bind]
|
|
1231
|
+
}]
|
|
1232
|
+
}] });
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* GalleryThumbnailItem represents an individual thumbnail item.
|
|
1236
|
+
* Exposes its content as a TemplateRef so GalleryThumbnail can render it inside a carousel item.
|
|
1237
|
+
* @group Components
|
|
1238
|
+
*/
|
|
1239
|
+
class GalleryThumbnailItem {
|
|
1240
|
+
/**
|
|
1241
|
+
* The index of the thumbnail item.
|
|
1242
|
+
* @group Props
|
|
1243
|
+
*/
|
|
1244
|
+
index = input(/* @ts-ignore */
|
|
1245
|
+
...(ngDevMode ? [undefined, { debugName: "index" }] : /* istanbul ignore next */ []));
|
|
1246
|
+
gallery = inject(Gallery);
|
|
1247
|
+
templateRef = viewChild('content', /* @ts-ignore */
|
|
1248
|
+
...(ngDevMode ? [{ debugName: "templateRef" }] : /* istanbul ignore next */ []));
|
|
1249
|
+
isActive = computed(() => {
|
|
1250
|
+
const idx = this.index();
|
|
1251
|
+
return idx !== undefined && this.gallery.activeIndex() === idx;
|
|
1252
|
+
}, /* @ts-ignore */
|
|
1253
|
+
...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
|
|
1254
|
+
hostClass = computed(() => this.gallery.cx('thumbnailItem'), /* @ts-ignore */
|
|
1255
|
+
...(ngDevMode ? [{ debugName: "hostClass" }] : /* istanbul ignore next */ []));
|
|
1256
|
+
dataActive = computed(() => (this.isActive() ? '' : null), /* @ts-ignore */
|
|
1257
|
+
...(ngDevMode ? [{ debugName: "dataActive" }] : /* istanbul ignore next */ []));
|
|
1258
|
+
onClick() {
|
|
1259
|
+
const idx = this.index();
|
|
1260
|
+
if (idx !== undefined) {
|
|
1261
|
+
this.gallery.selectItem(idx);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryThumbnailItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.3", type: GalleryThumbnailItem, isStandalone: true, selector: "p-gallery-thumbnail-item", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1266
|
+
<ng-template #content>
|
|
1267
|
+
<ng-content></ng-content>
|
|
1268
|
+
</ng-template>
|
|
1269
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1270
|
+
}
|
|
1271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryThumbnailItem, decorators: [{
|
|
1272
|
+
type: Component,
|
|
1273
|
+
args: [{
|
|
1274
|
+
selector: 'p-gallery-thumbnail-item',
|
|
1275
|
+
standalone: true,
|
|
1276
|
+
template: `
|
|
1277
|
+
<ng-template #content>
|
|
1278
|
+
<ng-content></ng-content>
|
|
1279
|
+
</ng-template>
|
|
1280
|
+
`,
|
|
1281
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1282
|
+
encapsulation: ViewEncapsulation.None
|
|
1283
|
+
}]
|
|
1284
|
+
}], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }], templateRef: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* GalleryThumbnail represents the thumbnail carousel wrapper.
|
|
1288
|
+
* @group Components
|
|
1289
|
+
*/
|
|
1290
|
+
class GalleryThumbnail extends BaseComponent {
|
|
1291
|
+
componentName = 'GalleryThumbnail';
|
|
1292
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1293
|
+
gallery = inject(Gallery);
|
|
1294
|
+
onAfterViewChecked() {
|
|
1295
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Whether the carousel should auto size items.
|
|
1299
|
+
* @group Props
|
|
1300
|
+
* @defaultValue true
|
|
1301
|
+
*/
|
|
1302
|
+
autoSize = input(true, { ...(ngDevMode ? { debugName: "autoSize" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1303
|
+
/**
|
|
1304
|
+
* Whether the carousel should loop.
|
|
1305
|
+
* @group Props
|
|
1306
|
+
* @defaultValue true
|
|
1307
|
+
*/
|
|
1308
|
+
loop = input(true, { ...(ngDevMode ? { debugName: "loop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1309
|
+
/**
|
|
1310
|
+
* Alignment of the carousel items.
|
|
1311
|
+
* @group Props
|
|
1312
|
+
* @defaultValue 'center'
|
|
1313
|
+
*/
|
|
1314
|
+
align = input('center', /* @ts-ignore */
|
|
1315
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
1316
|
+
/**
|
|
1317
|
+
* Spacing between carousel items in pixels.
|
|
1318
|
+
* @group Props
|
|
1319
|
+
* @defaultValue 8
|
|
1320
|
+
*/
|
|
1321
|
+
spacing = input(8, { ...(ngDevMode ? { debugName: "spacing" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
1322
|
+
/**
|
|
1323
|
+
* Orientation of the carousel.
|
|
1324
|
+
* @group Props
|
|
1325
|
+
* @defaultValue 'horizontal'
|
|
1326
|
+
*/
|
|
1327
|
+
orientation = input('horizontal', /* @ts-ignore */
|
|
1328
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
1329
|
+
/**
|
|
1330
|
+
* Scroll snap type applied to the track.
|
|
1331
|
+
* @group Props
|
|
1332
|
+
* @defaultValue 'mandatory'
|
|
1333
|
+
*/
|
|
1334
|
+
snapType = input('mandatory', /* @ts-ignore */
|
|
1335
|
+
...(ngDevMode ? [{ debugName: "snapType" }] : /* istanbul ignore next */ []));
|
|
1336
|
+
/**
|
|
1337
|
+
* How many slides are visible per page.
|
|
1338
|
+
* @group Props
|
|
1339
|
+
* @defaultValue 1
|
|
1340
|
+
*/
|
|
1341
|
+
slidesPerPage = input(1, { ...(ngDevMode ? { debugName: "slidesPerPage" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
1342
|
+
thumbnailItems = contentChildren(GalleryThumbnailItem, { ...(ngDevMode ? { debugName: "thumbnailItems" } : /* istanbul ignore next */ {}), descendants: true });
|
|
1343
|
+
slide = computed(() => this.gallery.activeIndex(), /* @ts-ignore */
|
|
1344
|
+
...(ngDevMode ? [{ debugName: "slide" }] : /* istanbul ignore next */ []));
|
|
1345
|
+
onItemKeydown(event, index) {
|
|
1346
|
+
const items = this.thumbnailItems();
|
|
1347
|
+
switch (event.code) {
|
|
1348
|
+
case 'Enter':
|
|
1349
|
+
case 'Space':
|
|
1350
|
+
event.preventDefault();
|
|
1351
|
+
items[index]?.onClick();
|
|
1352
|
+
break;
|
|
1353
|
+
case 'ArrowRight':
|
|
1354
|
+
case 'ArrowDown':
|
|
1355
|
+
event.preventDefault();
|
|
1356
|
+
this.focusItem((index + 1) % items.length);
|
|
1357
|
+
break;
|
|
1358
|
+
case 'ArrowLeft':
|
|
1359
|
+
case 'ArrowUp':
|
|
1360
|
+
event.preventDefault();
|
|
1361
|
+
this.focusItem((index - 1 + items.length) % items.length);
|
|
1362
|
+
break;
|
|
1363
|
+
case 'Home':
|
|
1364
|
+
event.preventDefault();
|
|
1365
|
+
this.focusItem(0);
|
|
1366
|
+
break;
|
|
1367
|
+
case 'End':
|
|
1368
|
+
event.preventDefault();
|
|
1369
|
+
this.focusItem(items.length - 1);
|
|
1370
|
+
break;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
focusItem(nextIndex) {
|
|
1374
|
+
this.gallery.selectItem(nextIndex);
|
|
1375
|
+
const carouselItems = this.$el?.querySelectorAll('[data-pc-name="pccarouselitem"][tabindex]');
|
|
1376
|
+
carouselItems?.[nextIndex]?.focus();
|
|
1377
|
+
}
|
|
1378
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryThumbnail, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1379
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.3", type: GalleryThumbnail, isStandalone: true, selector: "p-gallery-thumbnail", inputs: { autoSize: { classPropertyName: "autoSize", publicName: "autoSize", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, snapType: { classPropertyName: "snapType", publicName: "snapType", isSignal: true, isRequired: false, transformFunction: null }, slidesPerPage: { classPropertyName: "slidesPerPage", publicName: "slidesPerPage", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "gallery.cx('thumbnail')", "attr.data-scope": "'gallery'", "attr.data-part": "'thumbnail'" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryThumbnail }], queries: [{ propertyName: "thumbnailItems", predicate: GalleryThumbnailItem, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
1380
|
+
<p-carousel
|
|
1381
|
+
[autoSize]="autoSize()"
|
|
1382
|
+
[loop]="loop()"
|
|
1383
|
+
[align]="align()"
|
|
1384
|
+
[spacing]="spacing()"
|
|
1385
|
+
[orientation]="orientation()"
|
|
1386
|
+
[snapType]="snapType()"
|
|
1387
|
+
[slidesPerPage]="slidesPerPage()"
|
|
1388
|
+
[slide]="slide()"
|
|
1389
|
+
[unstyled]="gallery.$unstyled()"
|
|
1390
|
+
[pt]="ptm('pcCarousel')"
|
|
1391
|
+
>
|
|
1392
|
+
<p-carousel-content [pt]="ptm('pcCarouselContent')">
|
|
1393
|
+
@if (thumbnailItems().length > 0) {
|
|
1394
|
+
@for (item of thumbnailItems(); track item; let i = $index) {
|
|
1395
|
+
<p-carousel-item [class]="item.hostClass()" [attr.data-active]="item.dataActive()" [attr.tabindex]="0" (click)="item.onClick()" (keydown)="onItemKeydown($event, i)" [pt]="ptm('pcCarouselItem')">
|
|
1396
|
+
<ng-container *ngTemplateOutlet="item.templateRef()"></ng-container>
|
|
1397
|
+
</p-carousel-item>
|
|
1398
|
+
}
|
|
1399
|
+
} @else {
|
|
1400
|
+
<ng-content></ng-content>
|
|
1401
|
+
}
|
|
1402
|
+
</p-carousel-content>
|
|
1403
|
+
</p-carousel>
|
|
1404
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: CarouselModule }, { kind: "component", type: i2.Carousel, selector: "p-carousel", inputs: ["align", "loop", "snapType", "spacing", "autoSize", "slidesPerPage", "slide"], outputs: ["onPageChange", "onSlideChange"] }, { kind: "component", type: i2.CarouselContent, selector: "p-carousel-content" }, { kind: "component", type: i2.CarouselItem, selector: "p-carousel-item", inputs: ["value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1405
|
+
}
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryThumbnail, decorators: [{
|
|
1407
|
+
type: Component,
|
|
1408
|
+
args: [{
|
|
1409
|
+
selector: 'p-gallery-thumbnail',
|
|
1410
|
+
standalone: true,
|
|
1411
|
+
imports: [BindModule, NgTemplateOutlet, CarouselModule],
|
|
1412
|
+
template: `
|
|
1413
|
+
<p-carousel
|
|
1414
|
+
[autoSize]="autoSize()"
|
|
1415
|
+
[loop]="loop()"
|
|
1416
|
+
[align]="align()"
|
|
1417
|
+
[spacing]="spacing()"
|
|
1418
|
+
[orientation]="orientation()"
|
|
1419
|
+
[snapType]="snapType()"
|
|
1420
|
+
[slidesPerPage]="slidesPerPage()"
|
|
1421
|
+
[slide]="slide()"
|
|
1422
|
+
[unstyled]="gallery.$unstyled()"
|
|
1423
|
+
[pt]="ptm('pcCarousel')"
|
|
1424
|
+
>
|
|
1425
|
+
<p-carousel-content [pt]="ptm('pcCarouselContent')">
|
|
1426
|
+
@if (thumbnailItems().length > 0) {
|
|
1427
|
+
@for (item of thumbnailItems(); track item; let i = $index) {
|
|
1428
|
+
<p-carousel-item [class]="item.hostClass()" [attr.data-active]="item.dataActive()" [attr.tabindex]="0" (click)="item.onClick()" (keydown)="onItemKeydown($event, i)" [pt]="ptm('pcCarouselItem')">
|
|
1429
|
+
<ng-container *ngTemplateOutlet="item.templateRef()"></ng-container>
|
|
1430
|
+
</p-carousel-item>
|
|
1431
|
+
}
|
|
1432
|
+
} @else {
|
|
1433
|
+
<ng-content></ng-content>
|
|
1434
|
+
}
|
|
1435
|
+
</p-carousel-content>
|
|
1436
|
+
</p-carousel>
|
|
1437
|
+
`,
|
|
1438
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryThumbnail }],
|
|
1439
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1440
|
+
encapsulation: ViewEncapsulation.None,
|
|
1441
|
+
host: {
|
|
1442
|
+
'[class]': "gallery.cx('thumbnail')",
|
|
1443
|
+
'[attr.data-scope]': "'gallery'",
|
|
1444
|
+
'[attr.data-part]': "'thumbnail'"
|
|
1445
|
+
},
|
|
1446
|
+
hostDirectives: [Bind]
|
|
1447
|
+
}]
|
|
1448
|
+
}], propDecorators: { autoSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoSize", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], snapType: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapType", required: false }] }], slidesPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "slidesPerPage", required: false }] }], thumbnailItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GalleryThumbnailItem), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* GalleryThumbnailContent represents the thumbnail carousel content area.
|
|
1452
|
+
* @group Components
|
|
1453
|
+
*/
|
|
1454
|
+
class GalleryThumbnailContent extends BaseComponent {
|
|
1455
|
+
componentName = 'GalleryThumbnailContent';
|
|
1456
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1457
|
+
gallery = inject(Gallery);
|
|
1458
|
+
onAfterViewChecked() {
|
|
1459
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1460
|
+
}
|
|
1461
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryThumbnailContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1462
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.3", type: GalleryThumbnailContent, isStandalone: true, selector: "p-gallery-thumbnail-content", host: { properties: { "class": "gallery.cx('thumbnailContent')", "attr.data-scope": "'gallery'", "attr.data-part": "'thumbnailContent'" } }, providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryThumbnailContent }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1463
|
+
}
|
|
1464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryThumbnailContent, decorators: [{
|
|
1465
|
+
type: Component,
|
|
1466
|
+
args: [{
|
|
1467
|
+
selector: 'p-gallery-thumbnail-content',
|
|
1468
|
+
standalone: true,
|
|
1469
|
+
imports: [BindModule],
|
|
1470
|
+
template: `<ng-content></ng-content>`,
|
|
1471
|
+
providers: [{ provide: PARENT_INSTANCE, useExisting: GalleryThumbnailContent }],
|
|
1472
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1473
|
+
encapsulation: ViewEncapsulation.None,
|
|
1474
|
+
host: {
|
|
1475
|
+
'[class]': "gallery.cx('thumbnailContent')",
|
|
1476
|
+
'[attr.data-scope]': "'gallery'",
|
|
1477
|
+
'[attr.data-part]': "'thumbnailContent'"
|
|
1478
|
+
},
|
|
1479
|
+
hostDirectives: [Bind]
|
|
1480
|
+
}]
|
|
1481
|
+
}] });
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Gallery is the main container component for the Gallery.
|
|
1485
|
+
* @group Components
|
|
1486
|
+
*/
|
|
1487
|
+
class Gallery extends BaseComponent {
|
|
1488
|
+
componentName = 'Gallery';
|
|
1489
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1490
|
+
onAfterViewChecked() {
|
|
1491
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* The index of the active item.
|
|
1495
|
+
* @group Props
|
|
1496
|
+
* @defaultValue 0
|
|
1497
|
+
*/
|
|
1498
|
+
activeIndex = model(0, /* @ts-ignore */
|
|
1499
|
+
...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
1500
|
+
/**
|
|
1501
|
+
* When defined, puts the fullscreen state in controlled mode; the value drives whether the gallery is fullscreen and changes are reported via onFullscreenChange instead of being handled internally.
|
|
1502
|
+
* @group Props
|
|
1503
|
+
*/
|
|
1504
|
+
fullscreen = input(undefined, { ...(ngDevMode ? { debugName: "fullscreen" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
1505
|
+
/**
|
|
1506
|
+
* Whether pressing the Escape key exits fullscreen mode.
|
|
1507
|
+
* @defaultValue true
|
|
1508
|
+
* @group Props
|
|
1509
|
+
*/
|
|
1510
|
+
closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1511
|
+
/**
|
|
1512
|
+
* Callback fired when the gallery's active index changes.
|
|
1513
|
+
* @param {GalleryActiveIndexChangeEvent} event - Custom active index change event.
|
|
1514
|
+
* @group Emits
|
|
1515
|
+
*/
|
|
1516
|
+
onActiveIndexChange = output();
|
|
1517
|
+
/**
|
|
1518
|
+
* Callback fired when the fullscreen state should change (controlled mode).
|
|
1519
|
+
* @param {boolean} value - The next fullscreen state.
|
|
1520
|
+
* @group Emits
|
|
1521
|
+
*/
|
|
1522
|
+
onFullscreenChange = output();
|
|
1523
|
+
/**
|
|
1524
|
+
* Callback fired when the active item's zoom scale changes.
|
|
1525
|
+
* @param {number} scale - The current zoom scale.
|
|
1526
|
+
* @group Emits
|
|
1527
|
+
*/
|
|
1528
|
+
onZoomChange = output();
|
|
1529
|
+
/**
|
|
1530
|
+
* Callback fired when the active item's rotation changes.
|
|
1531
|
+
* @param {number} rotation - The current rotation in degrees.
|
|
1532
|
+
* @group Emits
|
|
1533
|
+
*/
|
|
1534
|
+
onRotateChange = output();
|
|
1535
|
+
/**
|
|
1536
|
+
* Callback fired when the active item's flip state changes.
|
|
1537
|
+
* @param {{ x: number; y: number }} flip - The current flip state.
|
|
1538
|
+
* @group Emits
|
|
1539
|
+
*/
|
|
1540
|
+
onFlipChange = output();
|
|
1541
|
+
_componentStyle = inject(GalleryStyle);
|
|
1542
|
+
isFullscreenInternal = signal(false, /* @ts-ignore */
|
|
1543
|
+
...(ngDevMode ? [{ debugName: "isFullscreenInternal" }] : /* istanbul ignore next */ []));
|
|
1544
|
+
fullscreenResizeTimer = null;
|
|
1545
|
+
destroyed = false;
|
|
1546
|
+
isFullscreen = computed(() => this.fullscreen() ?? this.isFullscreenInternal(), /* @ts-ignore */
|
|
1547
|
+
...(ngDevMode ? [{ debugName: "isFullscreen" }] : /* istanbul ignore next */ []));
|
|
1548
|
+
activeItemTransform = signal({ zoomed: false, rotated: false, flipped: false }, /* @ts-ignore */
|
|
1549
|
+
...(ngDevMode ? [{ debugName: "activeItemTransform" }] : /* istanbul ignore next */ []));
|
|
1550
|
+
pendingAction = signal(null, /* @ts-ignore */
|
|
1551
|
+
...(ngDevMode ? [{ debugName: "pendingAction" }] : /* istanbul ignore next */ []));
|
|
1552
|
+
itemCounter = 0;
|
|
1553
|
+
contentEl = signal(null, /* @ts-ignore */
|
|
1554
|
+
...(ngDevMode ? [{ debugName: "contentEl" }] : /* istanbul ignore next */ []));
|
|
1555
|
+
dataFullscreen = computed(() => (this.isFullscreen() ? '' : null), /* @ts-ignore */
|
|
1556
|
+
...(ngDevMode ? [{ debugName: "dataFullscreen" }] : /* istanbul ignore next */ []));
|
|
1557
|
+
dataZoomed = computed(() => (this.activeItemTransform().zoomed ? '' : null), /* @ts-ignore */
|
|
1558
|
+
...(ngDevMode ? [{ debugName: "dataZoomed" }] : /* istanbul ignore next */ []));
|
|
1559
|
+
dataRotated = computed(() => (this.activeItemTransform().rotated ? '' : null), /* @ts-ignore */
|
|
1560
|
+
...(ngDevMode ? [{ debugName: "dataRotated" }] : /* istanbul ignore next */ []));
|
|
1561
|
+
dataFlipped = computed(() => (this.activeItemTransform().flipped ? '' : null), /* @ts-ignore */
|
|
1562
|
+
...(ngDevMode ? [{ debugName: "dataFlipped" }] : /* istanbul ignore next */ []));
|
|
1563
|
+
registerItem(existingIndex) {
|
|
1564
|
+
if (existingIndex !== null) {
|
|
1565
|
+
if (existingIndex >= this.itemCounter) {
|
|
1566
|
+
this.itemCounter = existingIndex + 1;
|
|
1567
|
+
}
|
|
1568
|
+
return existingIndex;
|
|
1569
|
+
}
|
|
1570
|
+
const newIndex = this.itemCounter;
|
|
1571
|
+
this.itemCounter += 1;
|
|
1572
|
+
return newIndex;
|
|
1573
|
+
}
|
|
1574
|
+
handleNext() {
|
|
1575
|
+
if (this.itemCounter <= 0)
|
|
1576
|
+
return;
|
|
1577
|
+
const newIndex = (this.activeIndex() + 1) % this.itemCounter;
|
|
1578
|
+
this.activeIndex.set(newIndex);
|
|
1579
|
+
this.onActiveIndexChange.emit({ value: newIndex });
|
|
1580
|
+
}
|
|
1581
|
+
handlePrev() {
|
|
1582
|
+
if (this.itemCounter <= 0)
|
|
1583
|
+
return;
|
|
1584
|
+
const newIndex = (this.activeIndex() - 1 + this.itemCounter) % this.itemCounter;
|
|
1585
|
+
this.activeIndex.set(newIndex);
|
|
1586
|
+
this.onActiveIndexChange.emit({ value: newIndex });
|
|
1587
|
+
}
|
|
1588
|
+
selectItem(index) {
|
|
1589
|
+
if (index < 0 || index >= this.itemCounter)
|
|
1590
|
+
return;
|
|
1591
|
+
this.activeIndex.set(index);
|
|
1592
|
+
this.onActiveIndexChange.emit({ value: index });
|
|
1593
|
+
}
|
|
1594
|
+
dispatchAction(type) {
|
|
1595
|
+
this.pendingAction.set({ type, timestamp: Date.now() });
|
|
1596
|
+
}
|
|
1597
|
+
clearPendingAction() {
|
|
1598
|
+
this.pendingAction.set(null);
|
|
1599
|
+
}
|
|
1600
|
+
constructor() {
|
|
1601
|
+
super();
|
|
1602
|
+
effect(() => {
|
|
1603
|
+
const fullscreenActive = this.fullscreen();
|
|
1604
|
+
if (fullscreenActive === undefined || isPlatformServer(this.platformId))
|
|
1605
|
+
return;
|
|
1606
|
+
const el = this.$el;
|
|
1607
|
+
if (!el || !this.document)
|
|
1608
|
+
return;
|
|
1609
|
+
const isNativeFullscreen = this.document.fullscreenElement === el;
|
|
1610
|
+
if (fullscreenActive && !isNativeFullscreen) {
|
|
1611
|
+
el.requestFullscreen?.()?.catch(() => { });
|
|
1612
|
+
}
|
|
1613
|
+
else if (!fullscreenActive && this.document.fullscreenElement) {
|
|
1614
|
+
this.document.exitFullscreen?.()?.catch(() => { });
|
|
1615
|
+
}
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
onInit() {
|
|
1619
|
+
super.onInit();
|
|
1620
|
+
if (!isPlatformServer(this.platformId)) {
|
|
1621
|
+
this.document?.addEventListener('fullscreenchange', this.onNativeFullscreenChange);
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
onDestroy() {
|
|
1625
|
+
this.destroyed = true;
|
|
1626
|
+
if (this.fullscreenResizeTimer) {
|
|
1627
|
+
clearTimeout(this.fullscreenResizeTimer);
|
|
1628
|
+
this.fullscreenResizeTimer = null;
|
|
1629
|
+
}
|
|
1630
|
+
this.document?.removeEventListener('fullscreenchange', this.onNativeFullscreenChange);
|
|
1631
|
+
if (this.document?.fullscreenElement === this.$el) {
|
|
1632
|
+
this.document.exitFullscreen?.().catch(() => { });
|
|
1633
|
+
}
|
|
1634
|
+
super.onDestroy();
|
|
1635
|
+
}
|
|
1636
|
+
onNativeFullscreenChange = () => {
|
|
1637
|
+
const active = this.document?.fullscreenElement === this.$el;
|
|
1638
|
+
this.isFullscreenInternal.set(active);
|
|
1639
|
+
if (this.fullscreen() !== undefined && this.fullscreen() !== active) {
|
|
1640
|
+
this.onFullscreenChange.emit(active);
|
|
1641
|
+
}
|
|
1642
|
+
// Nudge a resize so items recalculate, but track the timer so it can be cleared on destroy —
|
|
1643
|
+
// otherwise it fires after teardown and the resulting cascade emits on destroyed outputs (NG0953).
|
|
1644
|
+
if (this.fullscreenResizeTimer)
|
|
1645
|
+
clearTimeout(this.fullscreenResizeTimer);
|
|
1646
|
+
this.fullscreenResizeTimer = setTimeout(() => {
|
|
1647
|
+
this.fullscreenResizeTimer = null;
|
|
1648
|
+
window.dispatchEvent(new Event('resize'));
|
|
1649
|
+
}, 100);
|
|
1650
|
+
};
|
|
1651
|
+
handleKeyDown(event) {
|
|
1652
|
+
if (event.key === 'ArrowRight') {
|
|
1653
|
+
event.preventDefault();
|
|
1654
|
+
this.handleNext();
|
|
1655
|
+
}
|
|
1656
|
+
else if (event.key === 'ArrowLeft') {
|
|
1657
|
+
event.preventDefault();
|
|
1658
|
+
this.handlePrev();
|
|
1659
|
+
}
|
|
1660
|
+
else if (event.key === 'Escape' && this.closeOnEscape() && this.isFullscreen()) {
|
|
1661
|
+
event.preventDefault();
|
|
1662
|
+
this.toggleFullScreen();
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
toggleFullScreen() {
|
|
1666
|
+
if (this.fullscreen() !== undefined) {
|
|
1667
|
+
this.onFullscreenChange.emit(!this.fullscreen());
|
|
1668
|
+
return;
|
|
1669
|
+
}
|
|
1670
|
+
const el = this.$el;
|
|
1671
|
+
if (!el || isPlatformServer(this.platformId))
|
|
1672
|
+
return;
|
|
1673
|
+
if (this.document?.fullscreenElement) {
|
|
1674
|
+
this.document.exitFullscreen?.();
|
|
1675
|
+
}
|
|
1676
|
+
else {
|
|
1677
|
+
el.requestFullscreen?.();
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
prevReported = null;
|
|
1681
|
+
reportItemState(itemState) {
|
|
1682
|
+
if (this.destroyed)
|
|
1683
|
+
return;
|
|
1684
|
+
this.activeItemTransform.set({ zoomed: itemState.zoomed, rotated: itemState.rotated, flipped: itemState.flipped });
|
|
1685
|
+
const prev = this.prevReported;
|
|
1686
|
+
if (!prev || prev.scale !== itemState.scale)
|
|
1687
|
+
this.onZoomChange.emit(itemState.scale);
|
|
1688
|
+
if (!prev || prev.rotation !== itemState.rotation)
|
|
1689
|
+
this.onRotateChange.emit(itemState.rotation);
|
|
1690
|
+
if (!prev || prev.flip.x !== itemState.flip.x || prev.flip.y !== itemState.flip.y)
|
|
1691
|
+
this.onFlipChange.emit(itemState.flip);
|
|
1692
|
+
this.prevReported = { scale: itemState.scale, rotation: itemState.rotation, flip: itemState.flip };
|
|
1693
|
+
}
|
|
1694
|
+
handleClickAction(action) {
|
|
1695
|
+
if (!action)
|
|
1696
|
+
return;
|
|
1697
|
+
const actionMap = {
|
|
1698
|
+
zoomIn: () => this.dispatchAction('zoom-in'),
|
|
1699
|
+
zoomOut: () => this.dispatchAction('zoom-out'),
|
|
1700
|
+
rotateLeft: () => this.dispatchAction('rotate-left'),
|
|
1701
|
+
rotateRight: () => this.dispatchAction('rotate-right'),
|
|
1702
|
+
flipX: () => this.dispatchAction('flip-x'),
|
|
1703
|
+
flipY: () => this.dispatchAction('flip-y'),
|
|
1704
|
+
download: () => this.dispatchAction('download'),
|
|
1705
|
+
next: () => this.handleNext(),
|
|
1706
|
+
prev: () => this.handlePrev(),
|
|
1707
|
+
toggleFullScreen: () => this.toggleFullScreen()
|
|
1708
|
+
};
|
|
1709
|
+
actionMap[action]?.();
|
|
1710
|
+
}
|
|
1711
|
+
setContentEl(el) {
|
|
1712
|
+
this.contentEl.set(el);
|
|
1713
|
+
}
|
|
1714
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: Gallery, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1715
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: Gallery, isStandalone: true, selector: "p-gallery", inputs: { activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null }, fullscreen: { classPropertyName: "fullscreen", publicName: "fullscreen", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeIndex: "activeIndexChange", onActiveIndexChange: "onActiveIndexChange", onFullscreenChange: "onFullscreenChange", onZoomChange: "onZoomChange", onRotateChange: "onRotateChange", onFlipChange: "onFlipChange" }, host: { attributes: { "tabindex": "0" }, listeners: { "keydown": "handleKeyDown($event)" }, properties: { "class": "cx('root')", "attr.data-scope": "'gallery'", "attr.data-part": "'root'", "attr.data-fullscreen": "dataFullscreen()", "attr.data-zoomed": "dataZoomed()", "attr.data-rotated": "dataRotated()", "attr.data-flipped": "dataFlipped()" } }, providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: Gallery }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1716
|
+
}
|
|
1717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: Gallery, decorators: [{
|
|
1718
|
+
type: Component,
|
|
1719
|
+
args: [{
|
|
1720
|
+
selector: 'p-gallery',
|
|
1721
|
+
standalone: true,
|
|
1722
|
+
imports: [BindModule],
|
|
1723
|
+
template: `<ng-content></ng-content>`,
|
|
1724
|
+
providers: [GalleryStyle, { provide: PARENT_INSTANCE, useExisting: Gallery }],
|
|
1725
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1726
|
+
encapsulation: ViewEncapsulation.None,
|
|
1727
|
+
host: {
|
|
1728
|
+
'[class]': "cx('root')",
|
|
1729
|
+
tabindex: '0',
|
|
1730
|
+
'[attr.data-scope]': "'gallery'",
|
|
1731
|
+
'[attr.data-part]': "'root'",
|
|
1732
|
+
'[attr.data-fullscreen]': 'dataFullscreen()',
|
|
1733
|
+
'[attr.data-zoomed]': 'dataZoomed()',
|
|
1734
|
+
'[attr.data-rotated]': 'dataRotated()',
|
|
1735
|
+
'[attr.data-flipped]': 'dataFlipped()',
|
|
1736
|
+
'(keydown)': 'handleKeyDown($event)'
|
|
1737
|
+
},
|
|
1738
|
+
hostDirectives: [Bind]
|
|
1739
|
+
}]
|
|
1740
|
+
}], ctorParameters: () => [], propDecorators: { activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], fullscreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullscreen", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], onActiveIndexChange: [{ type: i0.Output, args: ["onActiveIndexChange"] }], onFullscreenChange: [{ type: i0.Output, args: ["onFullscreenChange"] }], onZoomChange: [{ type: i0.Output, args: ["onZoomChange"] }], onRotateChange: [{ type: i0.Output, args: ["onRotateChange"] }], onFlipChange: [{ type: i0.Output, args: ["onFlipChange"] }] } });
|
|
1741
|
+
class GalleryModule {
|
|
1742
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1743
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.3", ngImport: i0, type: GalleryModule, imports: [Gallery, GalleryItem,
|
|
1744
|
+
GalleryHeader,
|
|
1745
|
+
GalleryContent,
|
|
1746
|
+
GalleryFooter,
|
|
1747
|
+
GalleryBackdrop,
|
|
1748
|
+
GalleryToolbar,
|
|
1749
|
+
GalleryToolbarItem,
|
|
1750
|
+
GalleryPrev,
|
|
1751
|
+
GalleryNext,
|
|
1752
|
+
GalleryZoomIn,
|
|
1753
|
+
GalleryZoomOut,
|
|
1754
|
+
GalleryZoomToggle,
|
|
1755
|
+
GalleryRotateLeft,
|
|
1756
|
+
GalleryRotateRight,
|
|
1757
|
+
GalleryFlipX,
|
|
1758
|
+
GalleryFlipY,
|
|
1759
|
+
GalleryFullScreen,
|
|
1760
|
+
GalleryDownload,
|
|
1761
|
+
GalleryThumbnail,
|
|
1762
|
+
GalleryThumbnailContent,
|
|
1763
|
+
GalleryThumbnailItem,
|
|
1764
|
+
SharedModule], exports: [Gallery, GalleryItem,
|
|
1765
|
+
GalleryHeader,
|
|
1766
|
+
GalleryContent,
|
|
1767
|
+
GalleryFooter,
|
|
1768
|
+
GalleryBackdrop,
|
|
1769
|
+
GalleryToolbar,
|
|
1770
|
+
GalleryToolbarItem,
|
|
1771
|
+
GalleryPrev,
|
|
1772
|
+
GalleryNext,
|
|
1773
|
+
GalleryZoomIn,
|
|
1774
|
+
GalleryZoomOut,
|
|
1775
|
+
GalleryZoomToggle,
|
|
1776
|
+
GalleryRotateLeft,
|
|
1777
|
+
GalleryRotateRight,
|
|
1778
|
+
GalleryFlipX,
|
|
1779
|
+
GalleryFlipY,
|
|
1780
|
+
GalleryFullScreen,
|
|
1781
|
+
GalleryDownload,
|
|
1782
|
+
GalleryThumbnail,
|
|
1783
|
+
GalleryThumbnailContent,
|
|
1784
|
+
GalleryThumbnailItem,
|
|
1785
|
+
SharedModule] });
|
|
1786
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryModule, imports: [Gallery,
|
|
1787
|
+
GalleryItem,
|
|
1788
|
+
GalleryHeader,
|
|
1789
|
+
GalleryContent,
|
|
1790
|
+
GalleryFooter,
|
|
1791
|
+
GalleryBackdrop,
|
|
1792
|
+
GalleryToolbar,
|
|
1793
|
+
GalleryToolbarItem,
|
|
1794
|
+
GalleryThumbnail,
|
|
1795
|
+
GalleryThumbnailContent,
|
|
1796
|
+
SharedModule, SharedModule] });
|
|
1797
|
+
}
|
|
1798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: GalleryModule, decorators: [{
|
|
1799
|
+
type: NgModule,
|
|
1800
|
+
args: [{
|
|
1801
|
+
imports: [
|
|
1802
|
+
Gallery,
|
|
1803
|
+
GalleryItem,
|
|
1804
|
+
GalleryHeader,
|
|
1805
|
+
GalleryContent,
|
|
1806
|
+
GalleryFooter,
|
|
1807
|
+
GalleryBackdrop,
|
|
1808
|
+
GalleryToolbar,
|
|
1809
|
+
GalleryToolbarItem,
|
|
1810
|
+
GalleryPrev,
|
|
1811
|
+
GalleryNext,
|
|
1812
|
+
GalleryZoomIn,
|
|
1813
|
+
GalleryZoomOut,
|
|
1814
|
+
GalleryZoomToggle,
|
|
1815
|
+
GalleryRotateLeft,
|
|
1816
|
+
GalleryRotateRight,
|
|
1817
|
+
GalleryFlipX,
|
|
1818
|
+
GalleryFlipY,
|
|
1819
|
+
GalleryFullScreen,
|
|
1820
|
+
GalleryDownload,
|
|
1821
|
+
GalleryThumbnail,
|
|
1822
|
+
GalleryThumbnailContent,
|
|
1823
|
+
GalleryThumbnailItem,
|
|
1824
|
+
SharedModule
|
|
1825
|
+
],
|
|
1826
|
+
exports: [
|
|
1827
|
+
Gallery,
|
|
1828
|
+
GalleryItem,
|
|
1829
|
+
GalleryHeader,
|
|
1830
|
+
GalleryContent,
|
|
1831
|
+
GalleryFooter,
|
|
1832
|
+
GalleryBackdrop,
|
|
1833
|
+
GalleryToolbar,
|
|
1834
|
+
GalleryToolbarItem,
|
|
1835
|
+
GalleryPrev,
|
|
1836
|
+
GalleryNext,
|
|
1837
|
+
GalleryZoomIn,
|
|
1838
|
+
GalleryZoomOut,
|
|
1839
|
+
GalleryZoomToggle,
|
|
1840
|
+
GalleryRotateLeft,
|
|
1841
|
+
GalleryRotateRight,
|
|
1842
|
+
GalleryFlipX,
|
|
1843
|
+
GalleryFlipY,
|
|
1844
|
+
GalleryFullScreen,
|
|
1845
|
+
GalleryDownload,
|
|
1846
|
+
GalleryThumbnail,
|
|
1847
|
+
GalleryThumbnailContent,
|
|
1848
|
+
GalleryThumbnailItem,
|
|
1849
|
+
SharedModule
|
|
1850
|
+
]
|
|
1851
|
+
}]
|
|
1852
|
+
}] });
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Generated bundle index. Do not edit.
|
|
1856
|
+
*/
|
|
1857
|
+
|
|
1858
|
+
export { Gallery, GalleryBackdrop, GalleryClasses, GalleryContent, GalleryDownload, GalleryFlipX, GalleryFlipY, GalleryFooter, GalleryFullScreen, GalleryHeader, GalleryItem, GalleryModule, GalleryNext, GalleryPrev, GalleryRotateLeft, GalleryRotateRight, GalleryStyle, GalleryThumbnail, GalleryThumbnailContent, GalleryThumbnailItem, GalleryToolbar, GalleryToolbarItem, GalleryZoomIn, GalleryZoomOut, GalleryZoomToggle };
|
|
1859
|
+
//# sourceMappingURL=primenglab-gallery.mjs.map
|